* gdbarch.sh: Generate an error when conflicting macro
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
83905903
AC
12001-06-17 Andrew Cagney <ac131313@redhat.com>
2
3 * gdbarch.sh: Generate an error when conflicting macro
4 definitions. Generate an error when both pure multi-arch and
5 "tm.h".
6 * gdbarch.h, gdbarch.c: Regenerate.
7 * defs.h (GDB_MULTI_ARCH_TM): Rewrite definition.
8
c2202abf
AC
92001-06-17 Andrew Cagney <ac131313@redhat.com>
10
11 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Down grade to
12 GDB_MULTI_ARCH_PARTIAL from two.
13
0d70f41b
FN
142001-06-17 Fernando Nasser <fnasser@redhat.com>
15
16 From 2001-06-15 Eirik Fuller <eirik@hackrat.com>
17 * cli/cli-script.c (free_command_lines): Reset list pointer.
18
7824d2f2
AC
192001-06-16 Andrew Cagney <ac131313@redhat.com>
20
21 * arch-utils.c (init_frame_pc_default): New function
22 * arch-utils.h (init_frame_pc_default): Declare.
23 * gdbarch.sh (INIT_FRAME_PC): Default to init_frame_pc_default and
24 not init_frame_pc_noop.
25 * gdbarch.h, gdbarch.c: Re-generate.
26 * blockframe.c (INIT_FRAME_PC): Delete macro definition.
27 * mips-tdep.c (mips_gdbarch_init): Set init_frame_pc to
28 init_frame_pc_noop.
29
1622c8f7
AC
302001-06-16 Andrew Cagney <ac131313@redhat.com>
31
32 * gdbarch.c: Regenerate. Out-of-sync with gdbarch.sh.
33
01fb7433
AC
342001-06-15 Andrew Cagney <ac131313@redhat.com>
35
36 * gdbarch.sh (CANNOT_FETCH_REGISTER): Multi-arch.
37 (CANNOT_STORE_REGISTER): Ditto.
38 * infptrace.c (CANNOT_FETCH_REGISTER): Delete definition.
39 (CANNOT_STORE_REGISTER): Ditto.
40 * regcache.c (CANNOT_STORE_REGISTER): Ditto.
41 * lynx-nat.c (CANNOT_STORE_REGISTER): Ditto.
42 * arch-utils.h (cannot_register_not): Define.
43 * arch-utils.c (cannot_register_not): Declare.
44
10312cc4
AC
452001-06-15 Andrew Cagney <ac131313@redhat.com>
46
47 * gdbarch.sh: Clarify pre/post default
48 (INIT_FRAME_PC_FIRST, INIT_FRAME_PC): Multiarch.
49 * blockframe.c (get_prev_frame): Remove #ifdef from around
50 INIT_FRAME_PC_FIRST call.
51 * arch-utils.c (init_frame_pc_noop): Define.
52 * arch-utils.h (init_frame_pc_noop): Declare.
53 * config/mips/tm-mips.h (INIT_FRAME_PC_FIRST): Delete.
54 (INIT_FRAME_PC, mips_init_frame_pc_first): Ditto.
55 * mips-tdep.c (mips_init_frame_pc_first): Make static.
56 (mips_gdbarch_init): Initialize init_frame_pc_first.
57 (mips_dump_tdep): Update.
58
dd80620e
MS
592001-06-15 Michael Snyder <msnyder@redhat.com>
60
61 * infrun.c (context_switch): New function. Abstract the operation
62 of saving and restoring infrun's state when switching threads.
63 (handle_inferior_event): Normalize the handling of the 'thread hop'
64 event (when the wrong thread hits a thread-specific breakpoint,
65 and we need to solo-step that thread past the breakpoint).
66 Call keep_going, instead of target_resume. Handle the subsequent
67 singlestep-trap as a normal event instead of just resuming.
68
875e1767
AC
692001-06-15 Andrew Cagney <ac131313@redhat.com>
70
71 * arch-utils.c (core_addr_identity): New function. Rename
72 default_convert_from_func_ptr_addr.
73 * gdbarch.sh (CONVERT_FROM_FUNC_PTR_ADDR): Update.
74 (ADDR_BITS_REMOVE): Define. Default to core_addr_identity.
75 * defs.h (ADDR_BITS_REMOVE): Delete macro definition.
76 * config/mips/tm-mips.h (ADDR_BITS_REMOVE): Delete definition.
77 * mips-tdep.c (mips_addr_bits_remove): Make static.
78 (mips_gdbarch_init): Initialize addr_bits_remove.
79
4009c677
AC
802001-06-15 Andrew Cagney <ac131313@redhat.com>
81
82 From 2001-02-26 D.J. Barrow <djbarrow@de.ibm.com>:
83 * configure.tgt: Add S/390 31 & 64 bit target configuration.
84 * configure.host: Ditto for host.
85
d6dd581e
AC
862001-06-15 Andrew Cagney <ac131313@redhat.com>
87
88 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS_P): Delete definition.
89 (EXTRACT_STRUCT_VALUE_ADDRESS): Change to a function with
90 predicate.
91 * gdbarch.h, gdbarch.c: Regenerate.
92 * values.c (value_being_returned): Change the reference to
93 EXTRACT_STRUCT_VALUE_ADDRESS_P to a function call.
94
09843d7f
JB
952001-06-15 Joel Brobecker <brobecker@act-europe.fr>
96
97 * MAINTAINERS: Add Paul Hilfinger and Joel Brobecker to the
98 Write After Approval list.
99
dc8acb97
MS
1002001-06-14 Michael Snyder <msnyder@redhat.com>
101
102 * remote.c (show_remote_protocol_qSymbol_packet_cmd,
103 set_remote_protocol_qSymbol_packet_cmd): New functions.
104 (init_all_packet_configs, show_remote_cmd): Add qSymbol packet.
105 (remote_check_symbols): New function. Implement qSymbol packet,
106 allowing target to request symbol lookup service from gdb.
107 (remote_open_1, remote_async_open_1): Call remote_check_symbols,
108 allowing symbol lookup from exec_bfd on connection to target.
109 (remote_new_objfile): New function. Catch new objfile notifications
110 from shared library module, and call remote_check_symbols.
111 (_initialize_remote): Hook remote_new_objfile into the shared
112 library notification chain. Add "set remote symbol-lookup" command.
113
578c1fe6
KS
1142001-06-14 Keith Seitz <keiths@redhat.com>
115
116 * tracepoint.c (trace_command): We now have tracepoint
117 events. Get rid of those ugly hooks.
118 (tracepoint_operation): Likewise.
119 (trace_pass_command): Likewise.
120
6c0d3f6a
MS
1212001-06-13 Michael Snyder <msnyder@redhat.com>
122
123 * gdbthread.h (struct thread_info): Add new fields:
124 current_line, current_symtab, step_sp, for saved infrun state.
125 * thread.c (save_infrun_state, load_infrun_state): Save and
126 restore current_line, current_symtab, and step_sp.
127 (add_thread): Rather than adding assignments to initialize
128 the new fields, just use memset (tp, 0, sizeof (*tp).
129 This way future new fields will not be overlooked.
130 * infrun.c (handle_inferior_event): Save and restore save_sp,
131 current_line, and current_symtab when switching threads.
132
16075ace
EZ
1332001-06-13 Elena Zannoni <ezannoni@redhat.com>
134
135 * MAINTAINERS: Add Andrew Cagney as co-maintainer of
136 testsuite/gdb.mi.
137
31889e00
AC
1382001-06-11 Andrew Cagney <ac131313@redhat.com>
139
140 * symtab.c (lookup_symtab_1): Replace basename with lbasename.
141 (lookup_partial_symtab, file_matches): Ditto.
142 (make_source_files_completion_list): Ditto.
143 (make_file_symbol_completion_list): Ditto. Make local char*
144 variable ``tail'' constant.
145 (make_source_files_completion_list): Ditto with ``base_name''.
146 * source.c (open_source_file): Use lbasename. Make ``p'' const
147 char *.
148
4ac40b29
EZ
1492001-06-13 Eli Zaretskii <eliz@is.elta.co.il>
150
151 * config/i386/xm-go32.h (SLASH_P, ROOTED_P, SLASH_CHAR)
152 (SLASH_STRING): Remove unised definitions.
153 * config/i386/xm-cygwin.h: Likewise.
154
6b28c186
AC
1552001-06-12 Andrew Cagney <ac131313@redhat.com>
156
157 * ui-out.c (ui_out_list_begin): Add parameter ``id''.
158 (make_cleanup_ui_out_list_begin_end): Ditto. Open the list.
159 * ui-out.h: Update declarations.
160
1f8cc6db
AC
161Mon Jun 11 17:26:43 2001 Andrew Cagney <cagney@b1.cygnus.com>
162
163 * source.c (openp): Make parameters ``path'' and ``string''
164 constant.
165 (openp): Use alloca to safely duplicate ``string''. Make local
166 variables ``p'' and ``p1'' constant. Delete char* casts.
167 * defs.h: Update.
168
169 * symtab.c (lookup_symtab_1): Make parameter ``name'' constant.
170 (lookup_symtab, lookup_partial_symtab): Ditto.
171 * symtab.h (lookup_symtab, lookup_partial_symtab): Update.
172
88379baf
AC
1732001-06-11 Andrew Cagney <ac131313@redhat.com>
174
175 * ui-out.h (ui_out_table_begin): Make char* parameters constant.
176 (ui_out_table_header, ui_out_field_int): Ditto.
177 (ui_out_field_core_addr, ui_out_field_string): Ditto.
178 (ui_out_field_stream, ui_out_field_fmt): Ditto.
179 (ui_out_field_skip, ui_out_text, ui_out_message): Ditto.
180 * ui-out.c (ui_out_table_begin, ui_out_table_header): Update.
181 (ui_out_field_core_addr, ui_out_field_stream): Update.
182 (ui_out_field_string, ui_out_field_fmt): Update.
183 (ui_out_text, ui_out_message): Update.
184 (append_header_to_list): Make char* parameters constant.
185 (uo_table_header, uo_table_begin): Ditto.
186 (uo_field_int, uo_field_skip): Ditto.
187 (uo_field_string, uo_field_fmt): Ditto.
188 (uo_text, uo_message): Ditto.
189
c94fdfd0
EZ
1902001-06-11 Eli Zaretskii <eliz@is.elta.co.il>
191
192 * completer.c (gdb_completer_loc_break_characters): New variable.
193 (line_completion_function): If we are completing on locations,
194 back up the start of word pointer past all characters which can
195 appear in a location spec.
196 (location_completer): New function.
197
198 * completer.h: Add prototype for location_completer.
199
200 * symtab.c (make_source_files_completion_list)
201 (add_filename_to_list, not_interesting_fname): New functions.
202 (filename_seen): New function, body extracted from
203 output_source_filename.
204 (output_source_filename): Call filename_seen to check if the file
205 was already printed.
206 (make_symbol_completion_list): If TEXT includes a
207 double-quoted string, return an empty list, not NULL.
208 (make_file_symbol_completion_list): New function, similar to
209 make_symbol_completion_list but with an additional argument
210 SRCFILE.
211
212 * symtab.h (make_file_symbol_completion_list)
213 (make_source_files_completion_list): Add prototypes.
214
215 * breakpoint.c (_initialize_breakpoint): Make location_completer
216 be the completion function for all commands which set breakpoints
217 and watchpoints.
218 (top-level): #include "completer.h".
219
220 * tracepoint.c (_initialize_tracepoint): Make location_completer
221 be the completion function for the "trace" command.
222 (top-level): #include "completer.h".
223
224 * printcmd.c (_initialize_printcmd): Make location_completer be
225 the completion function for the "print", "inspect", "call", and
226 "disassemble" commands.
227 (top-level): #include "completer.h".
228
229 * infcmd.c (_initialize_infcmd): Make location_completer be the
230 completion function for the "go", "jump", and "until" commands.
231 (top-level): #include "completer.h".
232
0b6a968e
CF
2332001-06-10 Christopher Faylor <cgf@redhat.com>
234
235 * gnu-regex.c: Eliminate obsolete check for _MSC_VER.
236 * utils.c (notice_quit): Remove dummy function only used for _MSC_VER.
237 * values.c (unpack_double): Remove obsolete check for _MSC_VER.
238 * defs.h: Ditto.
239 * m32r-rom.c: Ditto.
240 * p-exp.y: Ditto.
241 * ser-e7kpc.c: Ditto. Define WIN32_LEAN_AND_MEAN under _WIN32, for
242 faster compilation.
243 (get_ds_base): Remove _MSC_VER version of this function.
67bfdb89
CF
244 * nindy-share/ttyflush.c: Ditto.
245 * rdi-share/host.h: Ditto.
0b6a968e
CF
246 * ser-go32.c (dos_readchar): Remove call to obsolete function.
247 * remote-sim.c (gdb_os_poll_quit): Ditto.
248 * remote-e7000.c (expect): Remove obsolete #if 0'ed code.
249
250 * main.c (captured_main): Eliminate special Cygwin checks.
251 * ser-tcp.c: Remove unneeded __CYGWIN__ guard against system include.
252
e2e11a41
AC
2532001-06-09 Andrew Cagney <ac131313@redhat.com>
254
bf5efbab
AC
255 * Makefile.in (gdbcmd_h): Add ui_out_h.
256 (breakpoint.o, infcmd.o, main.o, printcmd.o, stack.o): Ditto.
257 (thread.o, top.o): Ditto.
258
e2e11a41
AC
259 * ui-out.h (table_begin_ftype): Make string parameters constant.
260 (table_header_ftype): Ditto.
261 (field_int_ftype): Ditto.
262 (field_skip_ftype): Ditto.
263 (field_string_ftype): Ditto.
264 (field_fmt_ftype): Ditto.
265 (text_ftype): Ditto.
266 (message_ftype): Ditto.
267 * cli-out.c (cli_table_begin): Ditto.
268 (cli_table_header): Ditto.
269 (cli_field_int): Ditto.
270 (cli_field_skip): Ditto.
271 (cli_field_string): Ditto.
272 (cli_field_fmt): Ditto.
273 (cli_text): Ditto.
274 (cli_message): Ditto.
275 (out_field_fmt): Ditto.
276 * ui-out.c (default_table_begin): Ditto.
277 (default_table_header): Ditto.
278 (default_field_int): Ditto.
279 (default_field_skip): Ditto.
280 (default_field_string): Ditto.
281 (default_field_fmt): Ditto.
282 (default_text): Ditto.
283 (default_message): Ditto.
284
2e663524
MS
2852001-06-08 Michael Snyder <msnyder@redhat.com>
286
287 * breakpoint.c (delete_breakpoint): Pass mark_inserted to
288 remove_breakpoint, so that the subsequent test for
289 bpt->inserted will succeed, and duplicates will be fixed up.
290
bebd888e
PB
2912001-06-08 Per Bothner <per@bothner.com>
292
293 * dwarf2read.c (set_cu_language): Handle DW_LANG_Java.
294
8f45b7fe
KS
2952001-06-07 Keith Seitz <keiths@redhat.com>
296
297 * tracepoint.c (tracepoint_opertation): Add ui event
298 notifications.
299 (trace_pass_command): Ditto.
300
b76a2a57
AC
3012001-06-07 Andrew Cagney <ac131313@redhat.com>
302
303 * MAINTAINERS (Write After Approval): Note the entry criteria.
a4f1e24f 304 (HP/PA): Jeff Law stepped down
b76a2a57 305
72e74a21
JB
3062001-06-07 Jim Blandy <jimb@redhat.com>
307
308 * gdbarch.sh: Make sure that '[' doesn't interpret interesting
309 variable values as operators.
310
8c6ee715
KS
3112001-06-07 Keith Seitz <keiths@redhat.com>
312
313 * gdb-events.sh: Fix quote escaping which was obsoleted
314 by last patch.
315
9e791099
KS
3162001-06-07 Keith Seitz <keiths@redhat.com>
317
318 * gdb-events.sh: Make if statements and tests
319 a little more portable.
320 Don't use shell's echo command to put strings containing
321 escaped characeters into a file -- different flavors of /bin/sh
322 require differnt levels of escaping. Use cat <<EOF instead.
323 Our internal field separator is a colon. Change all
324 commands which assume it is a space.
325
fce0e6e1
MK
3262001-06-06 Mark Kettenis <kettenis@gnu.org>
327
328 * lin-lwp.c (struct lwp_info): Add member `resumed'.
329 (iterate_over_lwps): Make sure we can handle CALLBACK deleting the
330 LWP it's called for.
331 (lin_lwp_attach): Mark LWP as resumed to make sure the fake
332 SIGSTOP is reported.
333 (resume_clear_callback): New function.
334 (resume_set_callback): New function.
335 (lin_lwp_resume): Mark all LWP's that we're going to resume as
336 resumed, and unmark all others.
337 (status_callback): Only report a pending wait status if we pretend
338 that LP has been resumed.
339 (resumed_callback): New function.
340 (lin_lwp_wait): Add assertions to check that LWP's are properly
341 marked as resumed. Partially revert 2001-05-25 patch by Michael
342 Snyder: do not resume all threads. Add comment explaining the
343 problems associated with this bit of code.
344
54403c59
KS
3452001-06-07 Keith Seitz <keiths@redhat.com>
346
347 * MAINTAINTERS: Syd Polk is stepping down from
348 maintaining libgui. I am replacing him.
349
1d06468c
EZ
3502001-06-07 Eli Zaretskii <elis@is.elta.co.il>
351
352 * config/mips/tm-irix6.h: New file.
353
354 * config/mips/irix6.mh: New file.
355
356 * config/mips/irix6.mt: New file.
357
358 * config/mips/xm-irix6.h: New file.
359
360 * config/mips/nm-irix6.h: New file.
361
362 * mips-tdep.c (mips_gdbarch_init) <MIPS_ABI_N32>: Set up the
363 disassembler info in tm_print_insn_info as appropriate for the N32
364 ABI. Force N32 ABI to be the default if the CPU is R8000 or
365 R10000.
366
367 * configure.tgt (mips*-sgi-irix6*): Map to irix6.
368
369 * configure.host (mips*-sgi-irix6*): Ditto.
370
3d499020
AC
3712001-06-07 Andrew Cagney <ac131313@redhat.com>
372
373 * gnu-v3-abi.c: Include "gdb_assert.h".
374 (build_gdb_vtable_type): Replace abort() with gdb_assert().
375
ceaa8edf
JB
3762001-06-06 Jim Blandy <jimb@redhat.com>
377
c5f5341b
JB
378 * cp-abi.h: Rearrange code to put documentation comments above the
379 functions we export. The actual function table itself simply
380 refers to those functions. Minor doc fixes.
381
ceaa8edf
JB
382 * gdbarch.sh: Changes to effect the following:
383 * gdbarch.c (initialize_non_multiarch): New function.
384 * gdbarch.h (initialize_non_multiarch): New declaration.
385 * arch-utils.c (initialize_current_architecture): For
386 non-multiarch configurations, call initialize_non_multiarch.
387
0cd64fe2
AC
3882001-06-06 Andrew Cagney <ac131313@redhat.com>
389
390 * symfile.c (compare_psymbols): Replace PTR with void*. Delete
391 declaration.
392 (compare_symbols): Ditto.
393
8849f47d
JL
3942001-06-06 Jonathan Larmour <jlarmour@redhat.com>
395
396 * arch-utils.c (generic_prepare_to_proceed): Allow for having
397 stopped due to a Ctrl-C as well as breakpoints.
398
399 * hppa-tdep.c (hppa_prepare_to_proceed): Add FIXME as this may not
400 support thread switches after Ctrl-C.
401 * lin-lwp.c (lin_lwp_prepare_to_proceed): Ditto.
402 * linux-thread.c (linuxthreads_prepare_to_proceed): Ditto.
403 * m3-nat.c (mach3_prepare_to_proceed): Ditto.
404
b3cc3077
JB
4052001-06-06 Jim Blandy <jimb@redhat.com>
406
407 * gdbarch.sh, gdbarch.c: Revert change of 2001-06-01; all
408 per-architecture data should be registered at initialization time,
409 before any gdbarch objects get used, so the generality is
410 unnecessary.
411
ba9fe036
KS
4122001-06-06 Keith Seitz <keiths@redhat.com>
413
414 * gdb-events.sh (function_list): Add tracepoint_create,
415 tracepoint_delete, and tracepoint_modify events.
416 * gdb-events.c: Regenerated.
417 * gdb-events.h: Regenerated.
418
e28f816a
KS
4192001-06-06 Keith Seitz <keiths@redhat.com>
420
421 * gdb-events.sh: Update copyrights.
422 Change free to xfree.
423 * gdb-events.c: Regenerated.
424 * gdb-events.h: Regenerated.
425
c3690141
EZ
4262001-06-06 Eli Zaretskii <eliz@is.elta.co.il>
427
428 * source.c (mod_path, openp): Use #ifdef HAVE_DOS_BASED_FILE_SYSTEM
429 instead of #if HAVE_DOS_BASED_FILE_SYSTEM.
430 * completer.c: Ditto.
431 * cli/cli-cmds.c (cd_command): Ditto.
432
37ba1196
EZ
4332001-06-04 Eli Zaretskii <eliz@is.elta.co.il>
434
1012bd0e
EZ
435 * mips-tdep.c (show_mipsfpu_command): Remove unused variable msg.
436 (mips_set_processor_type_command): Remove unused variable j.
437 (mips_breakpoint_from_pc): Declare breakpoint instruction
438 sequences as unsigned char, to avoid compiler warnings.
439
fe4e3eb8
EZ
440 * source.c (mod_path, openp): Use HAVE_DOS_BASED_FILE_SYSTEM
441 instead of system-specific define's like _WIN32 and __MSDOS__.
442 Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH instead of SLASH_P and
443 ROOTED_P.
444 (top-level): #include "filenames.h".
445
446 * solib.c (solib_open): Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH
447 instead of SLASH_CHAR, ROOTED_P and SLASH_P.
448 (top-level): #include "filenames.h".
449
450 * defs.h (SLASH_P, SLASH_CHAR, ROOTED_P): Remove definitions.
451 (SLASH_STRING): Define only for _WIN32.
452
453 * completer.c: Use HAVE_DOS_BASED_FILE_SYSTEM instead of
454 __MSDOS_.
455
456 * cli/cli-cmds.c (cd_command): Use IS_DIR_SEPARATOR and
457 IS_ABSOLUTE_PATH instead of SLASH_P and ROOTED_P. Replace
458 system-specific ifdefs with HAVE_DOS_BASED_FILE_SYSTEM.
459 (top-level): #include "filenames.h".
460
37ba1196
EZ
461 * go32-nat.c (go32_wait): Change the return value to ptid_t.
462
463 * config/djgpp/fnchange.lst: Add two new files in the
464 gdb/testsuite/gdb.c++/ directory to the remapped names.
465
466 * config/djgpp/djconfig.sh (lt_cv_sys_max_cmd_len): Set to 12KB.
467
3c875b6f
JB
4682001-06-01 Jim Blandy <jimb@redhat.com>
469
470 Expand the gdbarch per-architecture data vector as needed, rather
471 than requiring that all per-architecture data be registered before
472 the first gdbarch object is allocated.
473 * gdbarch.sh: Changes to effect the following:
474 * gdbarch.c (alloc_gdbarch_data, init_gdbarch_data): Delete
475 declarations and definitions.
476 (check_gdbarch_data): New function, and declaration.
477 (gdbarch_alloc): Don't call alloc_gdbarch_data; leaving the fields
478 zero is good enough.
479 (free_gdbarch_data): Tolerate a null data pointer. Free only
480 those data items gdbarch->data actually has allocated.
481 (set_gdbarch_data, gdbarch_data): Call check_gdbarch_data.
482 (gdbarch_update_p): No need to call init_gdbarch_data.
483
98f96ba1
KB
4842001-06-01 Kevin Buettner <kevinb@redhat.com>
485
486 * ia64-tdep.c (is_float_or_hfa_type_recurse): Call check_typedef()
487 on types that we wish to recurse on.
488 (slot_alignment_is_next_even): New function.
489 (ia64_push_arguments): Call slot_alignment_is_next_even() to
490 examine the type in order to decide if it's necessary to skip
491 an odd slot.
492
c6ad9598
MS
4932001-06-01 Michael Snyder <msnyder@redhat.com>
494
8601f500
MS
495 * thread.c (delete_step_resume_breakpoint): New function.
496 Maintain internal consistency of the thread list while deleting
497 a step_resume_breakpoint.
498 * gdbthread.h (delete_step_resume_breakpoint): Export.
499 * breakpoint.c (bpstat_find_step_resume_breakpoint):
500 Make thread-aware: don't return a step_resume_breakpoint
501 for the wrong thread.
502 * infrun.c (wait_for_inferior): Call delete_step_resume_breakpoint
503 instead of delete_breakpoint_current_contents.
504 (fetch_inferior_event): Ditto.
505 (handle_inferior_event): Call delete_step_resume_breakpoint
506 instead of delete_breakpoint.
c6ad9598
MS
507 * infrun.c (handle_inferior_event): After singlestepping over a
508 thread-specific breakpoint, use currently_stepping() to decide
509 whether to step or continue.
510
531017df
JB
5112001-06-01 Jim Blandy <jimb@redhat.com>
512
b27b8843
JB
513 * gnu-v3-abi.c (gnu_v3_abi_ops, vtable_type_gdbarch_data): Make
514 these static --- there's no reason other files should use these.
515
d0bbfec7
JB
516 * partial-stab.h (case N_FUN: case 'f':, case N_FUN: case 'F':)
517 Fix memory leak.
518
531017df
JB
519 * partial-stab.h: New complaint: function_outside_compilation_unit.
520 (case N_FUN: case 'f':, case N_FUN: case 'F':): If pst is zero,
521 complain, and don't try to set pst's start address.
522
d469a809
KB
5232001-05-31 Kevin Buettner <kevinb@redhat.com>
524
525 * ia64-linux-tdep.c (IA64_LINUX_SIGCONTEXT_OFFSET): Revise to
526 match the location at which the kernel is placing the sigcontext
527 struct.
528
58ab00f9
KB
529 * ia64-tdep.c (max_skip_non_prologue_insns): New static global.
530 (refine_prologue_limit): New function.
531 (examine_prologue): Further limit number of instructions
532 scanned by calling refine_prologue_limit(). Revise way in
533 which the end of prologue address is computed for frameless
534 functions.
535
9fd7143a
CF
5362001-05-29 Christopher Faylor <cgf@redhat.com>
537
538 * partial-stab.h: Revert previous patch.
539
34a7837a
CF
5402001-05-29 Christopher Faylor <cgf@redhat.com>
541
542 * partial-stab.h: Consistently guard against pst being NULL.
543
ad53e288
AO
5442001-05-29 Alexandre Oliva <aoliva@redhat.com>
545
546 * symfile.c (compare_psymbols, compare_symbols): Declare using
547 PTR, as in the definition.
09d011c5
AO
548 * minsyms.c (compare_minimal_symbols): Likewise.
549 * coffread.c (find_targ_sec): Likewise.
550 * elfread.c (free_elfinfo, elf_locate_sections): Likewise.
551 * mipsread.c (alphacoff_locate_sections): Likewise.
552 * mdebugread.c (compare_blocks): Likewise.
ad53e288 553
b41be06e
ND
5542001-05-25 Nick Duffek <nsd@redhat.com>
555
556 * solib.c (update_solib_list): Move target_resize_to_sections()
557 into solib_map_sections() loop.
558 (info_sharedlibrary_command): Try bfd_arch_bits_per_address() if
559 bfd_get_arch_size() fails.
560
a1cd1908
ND
5612001-05-25 Nick Duffek <nsd@redhat.com>
562
563 * Makefile.in (osfsolib.c, osfsolib.o): Rename to solib-osf.c and
564 solib-osf.o.
565 * config/alpha/alpha-osf1.mh (NATDEPFILES): Replace osfsolib.o
566 with solib-osf.o and solib.o.
567 * config/alpha/alpha-osf2.mh: Likewise.
568 * config/alpha/alpha-osf3.mh: Likewise.
569 * solib-osf.c: New file, renamed and largely rewritten from
570 osfsolib.c.
571
aa6c0017
MS
5722001-05-25 Michael Snyder <msnyder@redhat.com>
573
c4365b19
MS
574 * lin-lwp.c (lin_lwp_attach_lwp): Call stop_wait_callback,
575 to consume the SIGSTOP generated by PTRACE_ATTACH.
576 (stop_wait_callback): If a SIGTRAP or a SIGINT event is consumed,
577 try again to get the SIGSTOP event.
578 (lin_lwp_wait): Resume all threads when ignoring a signal.
579 This will insure that newly attached threads get resumed.
5f885618 580 * lin-lwp.c (stop_wait_callback): Discard redundant SIGINT events.
aa6c0017
MS
581 * remote.c (remote_write_bytes): Update 'p' packet pointer.
582
4b1fedf1
JB
5832001-05-25 Jim Blandy <jimb@redhat.com>
584
585 * gnu-v2-abi.c (gnuv2_virtual_fn_field): There's no need to clear
586 VALUE_POINTED_TO_OFFSET here; if value_cast doesn't return a
587 useful value, then we should fix that instead.
588
fa3b51d2
ND
5892001-05-24 Nick Duffek <nsd@redhat.com>
590
591 * solist.h (struct so_list): Document the requirement that
592 current_sos initialize some fields to 0.
593
2747183e
MK
5942001-05-24 Mark Kettenis <kettenis@gnu.org>
595
596 * gnu-nat.c: Include <ctype.h>.
597 (gnu_pid_to_exec_file): Add PID parameter.
598 (set_sig_thread_cmd): Use PIDGET on return value from
599 thread_id_to_pid.
600 (proc_string): Use MERGEPID to construct argument to
601 pid_to_thread_id.
602
e4f237da
KB
6032001-05-22 Kevin Buettner <kevinb@redhat.com>
604
605 * breakpoint.c (breakpoint_address_is_meaningful): New function.
606 (check_duplicates): Don't compare non-meaningful addresses.
607
5fd913cc
MS
6082001-05-22 Michael Snyder <msnyder@redhat.com>
609
610 * thread-db.c: Allow for defunct zombie threads.
611 (attach_thread): Do not attempt to attach zombie thread.
612 (thread_db_thread_alive): Return false for defunct zombie thread.
613 (find_new_threads_callback): Don't add defunct zombie thread to list.
614
7ed49443
JB
6152001-05-22 Jim Blandy <jimb@redhat.com>
616
617 Add support for the GNU V3 C++ ABI.
618 (Includes changes by Dan Berlin.)
619
620 * gnu-v3-abi.c: New file.
621 * minsyms.c: #include "value.h" and "cp-abi.h".
622 (install_minimal_symbols): Check the minimal symbol table for
623 symbols that look mangled in the V3 style, and select the V3 ABI
624 if we find any.
625 * Makefile.in (SFILES): Add gnu-v3-abi.c.
626 (COMMON_OBS): Add gnu-v3-abi.o.
627 (gnu-v3-abi.o): Add new rule.
628 (minsyms.o): Depend on $(cp_abi_h) and $(value_h).
629
a44999d5
JB
6302001-05-21 Jim Blandy <jimb@redhat.com>
631
8d65888a
JB
632 * values.c (value_primitive_field): If we're extracting a base
633 class, then the type of the result should be the base class being
634 extracted, not the type of which it is a base class.
635
a44999d5
JB
636 * value.h (struct value): Doc fix, and rearrange members to place
637 them near their explanations.
638
6c3f2dbf
MS
6392001-05-21 Michael Snyder <msnyder@redhat.com>
640
641 * remote.c (remote_async_wait): Added new variable fieldsize.
642 Add fieldsize (return value of hex2bin) to string pointer p.
643
b4fa4770
SC
6442001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
645
646 * m68hc11-tdep.c (m68hc11_pop_frame): Fix stack pointer computation.
647 (m68hc11_analyze_instruction): Update the pc correctly.
648 (m68hc11_guess_from_prologue): Take into account the stack correction
649 for the saving address.
650
2b127877
DB
6512001-05-07 Daniel Berlin <dan@cgsoftware.com>
652
653 Changes by Jim Ingham:
654
655 * values.c (value_change_enclosing_type): New function. If the
656 new enclosing type is larger than the old one, we need to allocate
657 more space.
658 * value.h: Add value_change_enclosing_type prototype.
659 * valops.c (value_cast): Use it.
660 (value_assign): Use it.
661 (value_addr): Use it.
662 (value_ind): Use it.
663 (value_full_object): Use it.
664
6652001-05-07 Daniel Berlin <dan@cgsoftware.com>
666
984e377c
JB
667 * values.c (value_static_field): Handle static fields that have a
668 constant value.
2b127877 669
736d0890
MS
6702001-05-17 Michael Snyder <msnyder@redhat.com>
671
672 * blockframe.c (create_new_frame): Zero all the fields via memset,
673 rather than zeroing them one by one.
674
a577b05c
EZ
6752001-05-17 Eli Zaretskii <eliz@is.elta.co.il>
676
677 * top.c (user_args): Remove unused declaration.
678
b8adfa9f
MS
6792001-05-16 Michael Snyder <msnyder@redhat.com>
680
681 * infcmd.c (do_registers_info): Move alloca outside of loop.
682
97345198
MS
6832001-05-15 John S Kallal <jskallal@home.com>
684
685 * remote.c (remote_wait): Added new variable fieldsize.
686 Add fieldsize (return value of hex2bin) to string pointer p.
687
aca21d9a
MK
6882001-05-15 Mark Kettenis <kettenis@gnu.org>
689
690 * sparc-tdep.c (sparc_gdbarch_init): Get the architecture from
691 info.bfd_arch_info.
692
b08cfdb6
KB
6932001-05-14 Kevin Buettner <kevinb@redhat.com>
694
695 * lin-lwp.c (detach_callback, lin_lwp_wait, lin_lwp_pid_to_str):
696 Adjust format strings for printing LWPs to account for the fact
697 that the type returned by GET_LWP() is now a long instead of an
698 int.
699
ca6724c1
KB
7002001-05-14 Kevin Buettner <kevinb@redhat.com>
701
702 * inferior.h (null_ptid, minus_one_ptid): New variable declarations.
703 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
704 (ptid_get_tid, ptid_equal): New function declarations.
705 * infrun.c (null_ptid, minus_one_ptid): New variables.
706 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
707 (ptid_get_tid, ptid_equal): New functions.
708 (_initialize_infrun): Initialize null_ptid, minus_one_ptid,
709 inferior_ptid, and target_last_wait_ptid.
710
711 * defs.h (ptid_t): Redefine to be a struct rather than an int.
712 (pid_to_ptid, null_ptid, ptid_equal): Delete these macros.
713 (PIDGET, TIDGET, MERGEPID): Redefine these macros using the
714 new ptid accessors and constructor.
715
716 * config/i386/tm-i386v42mp.h (PIDGET, TIDGET, LIDGET, MERGEPID,
717 MKLID, MKTID, ISTID): Provide new definitions for these macros.
718 The old macros are retained, but disabled via #if 0 in order
719 to aid in future restructuring. See FIXME.
720
721 * arm-linux-nat.c (PIDGET, TIDGET): Delete macro definitions.
722 * i386-linux-nat.c (PIDGET, TIDGET): Likewise.
723 * infptrace.c (PIDGET, TIDGET): Likewise.
724 * lin-lwp.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
725 * lin-thread.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
726 * proc-service.c (MERGEPID): Likewise.
727 * procfs.c (PIDGET, TIDGET, MERGEPID): Likewise.
728 * thread-db.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
729 * config/nm-linux.h (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
730 * config/i386/tm-i386sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
731 Likewise.
732 * config/sparc/tm-sun4sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
733 Likewise.
734
735 * lin-lwp.c (THREAD_FLAG): Delete macro definition.
736 (GET_LWP): Redefine in terms of ptid_get_lwp().
737 (GET_PID): Redefine in terms of ptid_get_pid().
738 (is_lwp): Redefine without the need for THREAD_FLAG.
739 (BUILD_LWP): Redefine in terms of ptid_build().
740 * lin-thread.c (THREAD_FLAG): Delete macro definition.
741 (GET_LWP): Redefine in terms of ptid_get_lwp().
742 (GET_PID): Redefine in terms of ptid_get_pid().
743 (GET_THREAD): Redefine in terms of ptid_get_tid().
744 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
745 (is_lwp, is_thread): Redefine.
746 (linux_child_wait, check_all_signal_numbers)
747 (linuxthreads_discard_global_state, attach_thread): Declare these
748 functions to squash warnings about missing declarations.
749 * sol-thread.c (THREAD_FLAG): Delete macro definition.
750 (GET_PID): Redefine in terms of ptid_get_pid().
751 (GET_LWP): Redefine in terms of ptid_get_lwp().
752 (GET_THREAD): Redefine in terms of ptid_get_tid().
753 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
754 (is_lwp, is_thread): Redefine.
755 * thread-db.c (THREAD_FLAG): Delete macro definition.
756 (GET_PID): Redefine in terms of ptid_get_pid().
757 (GET_LWP): Redefine in terms of ptid_get_lwp().
758 (GET_THREAD): Redefine in terms of ptid_get_tid().
759 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
760 (is_lwp, is_thread): Redefine.
761
762 * corelow.c (add_to_thread_list, get_core_register_section):
763 Eliminate hacks needed to prevent regressions when inferior_ptid
764 wasn't wide enough to hold the core file thread id in the pid
765 component of inferior_ptid.
766
234fa6d1
MS
7672001-05-14 Michael Snyder <msnyder@redhat.com>
768
769 * remote.c (hex2bin): Make first argument const.
770 Require explicit count, don't accept null-terminated str.
771 (remote_resume, remote_async_resume): White space fix-up.
772 (remote_write_bytes): Set nr_bytes to return value of bin2hex.
773
caadab2c
MK
7742001-05-13 Mark Kettenis <kettenis@gnu.org>
775
776 * symtab.c (lookup_symtab_1): Use lbasename (NAME) instead of
777 basename (NAME). The FreeBSD basename returns a pointer to a
778 static buffer, even if it's simply returning a string identical to
779 its argument.
780 (lookup_partial_symtab): Likewise.
781
2644f393
MS
7822001-05-14 Michael Snyder <msnyder@redhat.com>
783
cb0ba49e 784 * solib.c, solib.h: Add comment for function no_shared_libraries.
2644f393 785
183a2f1a
KB
7862001-05-14 Kevin Buettner <kevinb@redhat.com>
787
788 * solib.h (no_shared_libraries): Make declaration match definition
789 in solib.c.
790
1dd1751e
AC
7912001-05-14 Andrew Cagney <ac131313@redhat.com>
792
793 * remote.c (remote_write_bytes): Set nr_bytes before returning it.
794 * solib.h (no_shared_libraries): Declare.
795
b732d07d
AC
7962001-05-12 Andrew Cagney <ac131313@redhat.com>
797
798 * gdbarch.sh (struct gdbarch_info): Delete field bfd_architecture.
799 (gdbarch_update_p): Rewrite logic filling in INFO struct. Use
800 user specified values when available.
801 * rs6000-tdep.c (rs6000_gdbarch_init): Update. Get the
802 architecture from info.bfd_arch_info.
803 * gdbarch.c, gdbarch.h: Regenerate.
804
67dd5ca6
FN
8052001-05-12 Fernando Nasser <fnasser@redhat.com>
806
807 * remote-e7000.c (e7000_open): Check for bad baud rate.
808 * remote-st.c (st2000_open): Ditto.
809
529acb48
JB
8102001-05-11 Jim Blandy <jimb@redhat.com>
811
f8e42d24
JB
812 * thread.c (do_captured_list_thread_ids): Use ui_out_tuple_begin
813 and ui_out_tuple_end instead of ui_out_list_begin and
814 ui_out_list_end.
815
529acb48
JB
816 * Makefile.in (gnu-v2-abi.o): Add $(demangle_h) to list of
817 dependencies. Reorder dependencies to match #includes in file,
818 for easier verification.
819
666547aa
AC
820Fri May 11 13:32:50 2001 Andrew Cagney <cagney@b1.cygnus.com>
821
822 * breakpoint.c: Replace ui_out_list_begin, ui_out_list_end and
823 make_cleanup_ui_out_list_end with ui_out_tuple_begin,
824 ui_out_tuple_end and make_cleanup_ui_out_tuple_begin_end.
825 * cli/cli-setshow.c: Ditto.
826 * printcmd.c: Ditto.
827 * stack.c: Ditto.
828
829 * ui-out.h (enum ui_out_type): Fix tipo - tupple -> tuple.
830 * ui-out.c (ui_out_list_begin): Delete ``lstid'' parameter.
831 (ui_out_tuple_begin): New function.
832 (ui_out_tuple_end): New function.
833 (ui_out_tuple_begin_end): New function.
834 (make_cleanup_ui_out_list_begin_end): Replace
835 make_cleanup_ui_out_list_end function.
836 * ui-out.h (ui_out_list_begin): Update declaration.
837 (make_cleanup_ui_out_list_begin_end): Replace
838 make_cleanup_ui_out_list_end declaration.
839 (ui_out_tuple_begin, ui_out_tuple_end): Declare.
840 (ui_out_tuple_begin_end): Declare.
841
30c98d84
JB
8422001-05-11 Jim Blandy <jimb@redhat.com>
843
844 * gnu-v2-abi.c: Don't #include "gdb_regex.h". We don't use it.
845
1faa59a8
AC
8462001-05-11 Andrew Cagney <ac131313@redhat.com>
847
848 From 2001-03-26 Rodney Brown <RodneyBrown@mynd.com>
849 * config/pa/tm-hppa.h: Remove trigraph.
850 * hp-symtab-read.c (hpread_type_translate): Provide return value.
851 (hpread_read_struct_type): Remove trigraph. Add parameter in
852 `warning'.
853 (hpread_read_array_type): Provide return value.
854 (hpread_type_lookup): Avoid ambiguous `else'. Provide return
855 value.
856 * hppa-tdep.c (initialize_hp_cxx_exception_support): Remove
857 trigraph.
858
99567b1b
JB
8592001-05-11 Jim Blandy <jimb@redhat.com>
860
861 * mips-tdep.c (mips_store_return_value,
862 mips_extract_return_value): Pass arguments to
863 return_value_location in the proper order.
864
d3814881
AC
8652001-05-11 Andrew Cagney <ac131313@redhat.com>
866
867 * Makefile.in (VERSION): Delete. Moved to file ``version.in''.
868 (version.c): Depends on file ``version.in''. Extract version
869 number from ``version.in'' file.
870 (clean mostlyclean): Update.
871 * version.in: New file.
5d6640b1 872 * NEWS: Update.
d3814881 873
4d28f7a8
KB
8742001-05-11 Kevin Buettner <kevinb@redhat.com>
875
876 * breakpoint.c (set_raw_breakpoint): Add new parameter
877 representing the breakpoint's type. Adjust all callers.
878 (create_longjmp_breakpoint, create_temp_exception_breakpoint)
879 (create_thread_event_breakpoint): Don't test for zero return
880 value from set_raw_breakpoint(). It can never be zero.
881 (create_exception_catchpoint, watch_command_1): Move logic
882 which calculates the breakpoint type prior to the call to
883 set_raw_breakpoint().
884
08b4f080
FN
8852001-05-11 Fernando Nasser <fnasser@redhat.com>
886
887 * ser-unix.c (rate_to_code): Issue warning if baud rate is invalid.
888 (hardwire_setbaudrate): Set errno to EINVAL and return with error
889 if the conversion of the baud rate to code fails.
890
127431f9
AC
8912001-05-10 Andrew Cagney <ac131313@redhat.com>
892
893 * ui-out.h (make_cleanup_ui_out_begin_end): Declare.
894 * ui-out.c (struct ui_out_end_cleanup_data): Define.
895 (do_cleanup_end): New function. Replace do_list_end.
896 (make_cleanup_ui_out_end): New function.
897 (make_cleanup_ui_out_begin_end): New function.
898 (make_cleanup_ui_out_list_end): Use make_cleanup_ui_out_end.
899
5dbc5e5f
EZ
9002001-05-10 Elena Zannoni <ezannoni@redhat.com>
901
902 * MAINTAINERS: Declare xcoffread.c open to all maintainers,
903 and make Kevin Buettner (kevinb@redhat.com) the reference person.
904
8e40d292
EZ
9052001-05-10 Elena Zannoni <ezannoni@redhat.com>
906
907 * proc-api.c (ioctl_with_trace): Fix uninitialized variable.
908
5a703563
FN
9092001-05-10 Fernando Nasser <fnasser@redhat.com>
910
911 * MAINTAINERS: Add testsuite subdirectory co-maintainers.
912
6311b07d
AC
913Thu May 10 16:26:47 2001 Andrew Cagney <cagney@b1.cygnus.com>
914
915 * Makefile.in (mi-main.o): Compile with -Werror.
916
30559e10
MS
9172001-05-10 Michael Snyder <msnyder@redhat.com>
918
f78f6cf1
MS
919 * remote.c (remote_open_1): Call no_shared_libraries, so that
920 symbols for shared libraries can be reloaded per session.
921 (remote_async_open_1): Ditto.
30559e10
MS
922 * remote.c (bin2hex, hex2bin): New functions. Factor out these
923 two conversions which are coded for repeatedly in this module.
924 (remote_threads_extra_info, remote_wait, remote_async_wait,
925 store_register_using_P, remote_store_registers, remote_write_bytes,
926 remote_read_bytes, remote_rcmd): Use bin2hex and hex2bin instead
927 of coding the conversions inline.
928 (fromhex): Not exported, change from extern to static.
929
0a1d9791
AC
9302001-05-10 Andrew Cagney <ac131313@redhat.com>
931
932 * arch-utils.c (initialize_current_architecture): Delete obsolete
933 ``info architecture'' command.
934 (info_architecture): Delete function.
935
ee055267
AC
9362001-05-10 Andrew Cagney <ac131313@redhat.com>
937
938 * TODO (5.1, 5.2): Update.
939
85886af6
AC
9402001-05-09 Andrew Cagney <ac131313@redhat.com>
941
942 * MAINTAINERS: Jim Ingham is no longer maintaining Arm related
943 stuff.
30559e10 944
ecb9ce7e
KS
9452001-05-10 Keith Seitz <keiths@cygnus.com>
946
947 * Makefile.in (SUBDIR_GDBTK_OBS): Add gdbtk-bp.o, gdbtk-register.o
948 and gdbtk-stack.o.
949 (SUBDIR_GDBTK_SRCS): Ditto for the sources.
950 (gdbtk-bp.o): New rule.
951 (gdbtk-register.o): New rule.
952 (gdbtk-stack.o): New rule.
953 (gdbtk-cmds.o): Update dependencies.
954 (gdbtk.o): Ditto.
955 (gdbtk-hooks.o): Ditto.
956 (gdbtk-varobj.o): Ditto.
957
f7635dd9
FN
9582001-05-10 Fernando Nasser <fnasser@redhat.com>
959
960 * varobj.c (c_number_of_children): Fix memory leak. Delete unwanted old
961 variables, not just unregister them.
962
0755e6c1
FN
9632001-05-10 Fernando Nasser <fnasser@redhat.com>
964
965 * varobj.c (c_number_of_children): Check for target type of void*,
966 not the target type name. Allow dereferencing char*.
967
d7db6da9
FN
9682001-05-10 Fernando Nasser <fnasser@redhat.com>
969
970 * symfile.c (symbol_file_add_main_1): New static function.
971 Passes the flags arguments to symbol_file_add() and takes care
972 of any necessary reinitializations.
973 (symbol_file_command): Call symbol_file_add_main_1() instead of
974 symbol_file_add().
975 (symbol_file_add_main): Ditto.
976
3d6e28e2
KB
9772001-05-09 Kevin Buettner <kevinb@redhat.com>
978
979 * lin-lwp.c (lin_lwp_pid_to_str): Revert inadvertent format
980 string change in 2001-05-03 changes.
981 (lin_lwp_wait): Revert GET_LWP coercion introduced in 2001-05-03
982 changes.
983
01263b57
KB
9842001-05-09 Kevin Buettner <kevinb@redhat.com>
985
986 * lin-lwp.c (lin_lwp_attach): Use PIDGET() to fetch the pid
987 component from inferior_ptid.
988 (lin_lwp_detach): Use pid_to_ptid() to convert from a pid to a
989 ptid.
990
74a151fa
EZ
9912001-05-09 Elena Zannoni <ezannoni@redhat.com>
992
993 * sh3-rom.c (_initialize_sh3_rom): Get rid of specific _WINDOWS
994 conditional for help with connections through parallel ports,
995 given that the actual code for downloading through a parallel port
996 is not conditionalized.
997
998 * sh-tdep.c: Remove WIN32_WCE conditional. The wince sh target is
999 unmaintaned, and probably on its way to obsolescence.
1000
d7a0d72c
MK
10012001-05-09 Mark Kettenis <kettenis@gnu.org>
1002
0d17c81d
MK
1003 * i386-tdep.c (i386_frame_saved_pc): New function.
1004 * config/i386/tm-i386.h (FRAME_SAVED_PC): Redefine in terms of
1005 i386_frame_saved_pc.
1006 (i386_frame_saved_pc): New prototype.
1007
d7a0d72c
MK
1008 * i386-tdep.c (i386_register_virtual_type): New function.
1009 (i386_register_convertible): New function.
1010 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE): Redefine in terms
1011 of i386_register_virtual_type.
1012 (REGISTER_CONVERTIBLE): Redefine in terms of
1013 i386_register_convertible.
1014 (i386_register_virtual_type, i386_register_convertible): New
1015 prototypes.
1016
ad8fe2ce
JB
10172001-05-08 Jim Blandy <jimb@redhat.com>
1018
33757489
JB
1019 * Makefile.in (mn10300-tdep.o): New rule.
1020
1021 * Makefile.in (gdb_string_h): Define. Use it throughout.
1022 Some rules were already using this, even though it isn't defined.
1023
c2c197ae
JB
1024 * Makefile.in (obstack_h, target_h): Define; these are already
1025 used elsewhere, but have been expanding to the empty string.
1026 (memattr_h): Define; needed by target_h.
1027
c064f384
JB
1028 * mn10300-tdep.c (mn10300_extract_return_value): Mark this as
1029 static. (This was accidentally omitted from the earlier patch.)
1030
23436510
JB
1031 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): New function.
1032 (mn10300_gdbarch_init): Register it as the architecture's
1033 dwarf2_reg_to_regnum method.
1034
ae83b20d
JB
1035 Correct and expand handling of `movm' instruction, and register
1036 saves in general.
1037 * config/mn10300/tm-mn10300.h (D0_REGNUM, A0_REGNUM, MDRQ_REGNUM,
1038 MCRH_REGNUM, MCRL_REGNUM, MCVF_REGNUM): New definitions.
1039 (enum movm_register_bits): New enum.
1040 * mn10300-tdep.c (set_movm_offsets): Use symbolic names for the
1041 bits, not hex literals. Handle the `other', `exreg0', and
1042 `exother' bits. Correct handling of `exreg1': it saves r4, r5,
1043 r6, and r7, not r2, r3, r4, and r5.
1044 (saved_regs_size): New function.
1045 (mn10300_frame_chain, mn10300_frame_saved_pc): Use it, instead
1046 of computing the same thing inline, incorrectly.
1047
bf4b70a5
JB
1048 * mn10300-tdep.c (mn10300_gdbarch_init): We do have a
1049 dummy_breakpoint_offset; it's zero.
1050
ee9f9641
JB
1051 * mn10300-tdep.c (mn10300_pop_frame): Split the mn10300-specific
1052 stuff out into mn10300_pop_frame_regular, and use
1053 generic_pop_current_frame. This lets us share code, and also
1054 makes this function's prototype match that expected by gdbarch.
1055 Make this function static.
1056 (mn10300_pop_frame_regular): New function.
1057 (mn10300_gdbarch_init): Register mn10300_pop_frame as the
1058 gdbarch's pop_frame method.
1059 * config/mn10300/tm-mn10300.h (POP_FRAME): Delete definition.
1060 (mn10300_pop_frame): Delete declaration.
1061
2ac51b36
JB
1062 * mn10300-tdep.c (mn10300_saved_pc_after_call,
1063 mn10300_extract_return_value,
1064 mn10300_extract_struct_value_address, mn10300_store_return_value,
1065 mn10300_use_struct_convention, mn10300_breakpoint_from_pc,
1066 mn10300_frame_chain, mn10300_skip_prologue,
1067 mn10300_push_arguments, mn10300_push_return_address,
1068 mn10300_store_struct_return, mn10300_frame_saved_pc,
1069 mn10300_init_extra_frame_info, mn10300_frame_init_saved_regs):
1070 Make these functions static; they should only be visible to the
1071 outside world as gdbarch methods.
1072
af4e72e9
JB
1073 * config/mn10300/tm-mn10300.h (mn10300_find_callers_reg): Delete
1074 unused declaration.
1075
584f96a8
JB
1076 * mn10300-tdep.c (mn10300_gdbarch_init): Put the gdbarch methods
1077 in some rational order.
1078
82d983b6
JB
1079 * mn10300-tdep.c (mn10300_gdbarch_init): Rather than using
1080 generic_pc_in_call_dummy, use pc_in_call_dummy_at_entry_point.
1081
ad8fe2ce
JB
1082 Use gdbarch for most target parameters for the MN10300, rather
1083 than the tm-*.h file.
1084 * config/mn10300/tm-mn10300.h (MAX_REGISTER_VIRTUAL_SIZE,
1085 REGISTER_BYTES, FP_REGNUM, BREAKPOINT_FROM_PC,
1086 FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK, INNER_THAN,
1087 SAVED_PC_AFTER_CALL, INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS,
1088 FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC,
1089 EXTRACT_RETURN_VALUE, EXTRACT_STRUCT_VALUE_ADDRESS,
1090 STORE_RETURN_VALUE, STORE_STRUCT_RETURN, SKIP_PROLOGUE,
1091 FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1092 FRAME_NUM_ARGS, POP_FRAME, USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY,
1093 CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1094 CALL_DUMMY_LOCATION, FIX_CALL_DUMMY, CALL_DUMMY_ADDRESS,
1095 TARGET_READ_FP, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1096 SAVE_DUMMY_FRAME_TOS, PUSH_ARGUMENTS, PC_IN_CALL_DUMMY,
1097 REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER):
1098 Delete definitions. We register gdbarch methods for these now.
1099 (struct frame_info, struct type, struct value): Delete forward
1100 declarations of these types; they're no longer necessary, since we
1101 don't have function declarations here any more.
1102 * mn10300-tdep.c: #include "arch-utils.h", to get declarations for
1103 some default gdbarch methods.
1104 (mn10300_store_struct_return): Return void, as expected by
1105 gdbarch.
1106 (mn10300_init_extra_frame_info): Take initial `fromleaf' argument,
1107 as expected by gdbarch.
1108 (mn10300_frame_init_saved_regs): Provide dummy definition for
1109 this, as required by gdbarch.
1110 (mn10300_gdbarch_init): Add mn10300_call_dummy_words, as expected
1111 by gdbarch. Register gdbarch methods or values for all the stuff
1112 removed from tm-10300.h, listed above.
1113
631ec795
AC
11142001-05-08 Andrew Cagney <ac131313@redhat.com>
1115
1116 * cli-out.c (cli_begin, cli_end): Replace cli_list_begin and
1117 cli_list_end.
1118 (cli_ui_out_impl): Update.
1119
1120 * ui-out.c (default_begin, default_end): Replace
1121 default_list_begin and default_list_end.
1122 (default_ui_out_impl): Update.
1123 (uo_begin, uo_end): Replace ou_list_begin and uo_list_end.
1124 (ui_out_begin, ui_out_end): Replace ui_out_list_begin and
1125 ui_out_list_end.
1126 (ui_out_list_begin, ui_out_list_end): New. Compatibility
1127 functions.
1128 (struct ui_out_level): Add field type.
1129 (push_level, pop_level): Update. Add type parameter.
1130
1131 * ui-out.h (enum ui_out_type): Declare.
1132 (ui_out_begin, ui_out_end): Declare.
1133 (ui_out_begin_ftype, ui_out_end_ftype): Replace list_begin_ftype
1134 and list_end_ftype.
1135 (struct ui_out_impl): Update.
1136
80f49b30
AC
11372001-05-07 Andrew Cagney <ac131313@redhat.com>
1138
1139 * ui-out.h (list_begin_ftype, list_end_ftype): Rename argument
1140 ``list_flag'' to ``depth''.
1141 * ui-out.c (default_list_begin, default_list_end): Update.
1142 (uo_list_begin, uo_list_end): Update.
1143 (MAX_UI_OUT_LEVELS): Define.
1144 (struct ui_out_level): Define.
1145 (top-level): Include "gdb_assert.h".
1146 (struct ui_out): Add fields ``level'' and ``levels''. Delete
1147 fields ``list_flag'' and ``field_count''.
1148 (ui_out_new): Update.
1149 (verify_field_proper_position): Update.
1150 (current_level, push_level, pop_level): New functions.
1151 (ui_out_list_begin): Use push_level.
1152 (ui_out_list_end): Use pop_level.
1153 (ui_out_field_int): Use current_level.
1154 (ui_out_field_skip): Ditto.
1155 (ui_out_field_fmt): Ditto.
1156
7aedc9f8
MS
11572001-05-08 Michael Snyder <msnyder@redhat.com>
1158
1159 * language.c (longest_local_hex_string_custom): Strlen test is
1160 inverted -- reverse the sense of the test.
1161
c6ec85d6
MK
11622001-05-08 Mark Kettenis <kettenis@gnu.org>
1163
1164 * config/i386/tm-i386v.h (struct frame_info, struct
1165 frame_saved_regs): Remove declarations.
1166 (i386_frame_num_args): Remove prototype.
1167
f938fa6a
AC
11682001-05-07 Andrew Cagney <ac131313@redhat.com>
1169
1170 * MAINTAINERS: I'm no longer actively maintaining the mn10300
1171 target.
1172
fb106663
AC
11732001-05-04 Andrew Cagney <ac131313@redhat.com>
1174
1175 * main.c (captured_main): Delete #ifndef _WIN32 conditional for
1176 WinGDB.
1177
ce696e05
KB
11782001-05-06 Kevin Buettner <kevinb@redhat.com>
1179
1180 * inferior.h (save_inferior_ptid): Declare.
1181 * infrun.c (save_inferior_ptid, restore_inferior_ptid): Define.
1182
1183 * hpux-thread.c (save_inferior_ptid, restore_inferior_ptid):
1184 Delete these functions.
1185 * lin-lwp.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
1186 * lin-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
1187 * linux-thread.c (save_inferior_ptid, restore_inferior_ptid):
1188 Likewise.
1189 * proc-service.c (save_inferior_ptid, restore_inferior_ptid):
1190 Likewise.
1191 * sol-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
1192 * thread-db.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
1193
1194 * somsolib.c (reset_inferior_ptid): Delete.
1195 (som_solib_remove_inferior_hook): Use save_inferior_ptid() to
1196 build the cleanup struct.
1197
1198 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
1199 a cleanup to save/restore inferior_ptid.
1200
c194fbe1
MK
12012001-05-06 Mark Kettenis <kettenis@gnu.org>
1202
1203 Implement attach/detach for multi-threaded programs on Linux.
1204 * thread-db.c (keep_thread_db): Adjust comment.
1205 (deactivate_target): Removed.
1206 (thread_db_new_objfile): Don't call deactivate_target. Implement
1207 guts of deactivate_target inline instead.
1208 (attach_thread): Call ATTACH_LWP unconditionally if defined.
1209 (thread_db_attach): New function.
1210 (thread_db_detach): Don't call deactivate_target. Do necessary
1211 cleanup inline instead. Set inferior_ptid to LWP corresponding to
1212 the current user-level thread.
1213 (thread_db_kill): Set inferior_ptid to LWP corresponding to the
1214 current user-level thread.
1215 (thread_db_create_inferior): Deactivate target vector if
1216 KEEP_THREAD_DB is zero.
1217 (thread_db_mourn_inferior): Don't call deactivate_target. Do
1218 necessary cleanup inline instead.
1219 (init_thread_db_ops): Initialize to_attach field to
1220 thread_db_attach.
1221 * lin-lwp.c (lin_lwp_mourn_inferior): Remove prototype.
1222 (stop_wait_callback): Add prototype.
1223 (init_lwp_list): Add comment about when to re-initialize the LWP
1224 list.
1225 (lin_lwp_attach_lwp): Only call ptrace for cloned processes.
1226 Avoid adding publicates to the LWP list. Only mark an LWP as
1227 signalled if it doesn't correspond to a cloned process.
1228 (lin_lwp_attach): Add initial process to the LWP list. Make sure
1229 it's stopped and fake a SIGSTOP.
1230 (detach_callback): New function.
1231 (lin_lwp_detach): Implement.
1232 (lin_lwp_create_inferior): Don't re-initialize LWP list here.
1233 Call child_ops.to_create_inferior directly instead of via
1234 target_beneath local.
1235 (lin_lwp_mourn_inferior): Call child_ops.to_mourn_inferior
1236 directly instead of via target_beneath local.
1237
a7fdf62f
EZ
12382001-05-06 Eli Zaretskii <eliz@is.elta.co.il>
1239
1240 * symtab.c (lookup_symtab_1, lookup_partial_symtab): Use basename
1241 instead of non-portable search for `/'. Use FILENAME_CMP instead
1242 of STREQ, to account for case-insensitive filesystems.
1243 (top-level): #include "filenames.h".
1244
9f60f21b
JB
12452001-05-05 Jim Blandy <jimb@redhat.com>
1246
644a1fe1
JB
1247 * breakpoint.c (check_duplicates): Use the breakpoint's type, not
1248 its address, to decide whether it's a watchpoint or not. Zero
1249 is a valid code address.
1250 (update_breakpoints_after_exec): Admonishing comments.
1251 * breakpoint.h (struct breakpoint): Doc fixes.
1252
9f60f21b
JB
1253 * breakpoint.c (check_duplicates): Take a breakpoint object as an
1254 argument, rather than an address and section. All callers changed.
1255
39f77062
KB
12562001-05-03 Kevin Buettner <kevinb@redhat.com>
1257
1258 * defs.h (ptid_t): New typedef.
1259 (pid_to_ptid, null_ptid, minus_one_ptid, ptid_equal): New macros.
1260
1261 * a68v-nat.c, alphabsd-nat.c, arch-utils.c, arm-linux-nat.c,
1262 blockframe.c, breakpoint.c, breakpoint.h,
1263 config/i386/nm-i386sol2.h, config/i386/tm-i386sco5.h,
1264 config/ia64/nm-linux.h, config/m68k/nm-hp300bsd.h,
1265 config/mips/nm-irix4.h, config/mips/nm-irix5.h,
1266 config/pa/nm-hppah.h, config/pa/tm-hppa.h,
1267 config/rs6000/nm-rs6000.h, config/sparc/nm-sun4sol2.h,
1268 corelow.c, cxux-nat.c, d10v-tdep.c, dink32-rom.c,
1269 dve3900-rom.c, fork-child.c, frame.c, gnu-nat.c, go32-nat.c,
1270 hp300ux-nat.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c,
1271 hpux-thread.c, i386-linux-nat.c, i386aix-nat.c, i386b-nat.c,
1272 i386bsd-nat.c, i386gnu-nat.c, i386mach-nat.c, i386nbsd-nat.c,
1273 infcmd.c, inferior.h, inflow.c, infptrace.c, infrun.c,
1274 inftarg.c, infttrace.c, lin-lwp.c, lin-thread.c,
1275 linux-thread.c, lynx-nat.c, m3-nat.c, m32r-rom.c,
1276 m68knbsd-nat.c, m88k-nat.c, mac-nat.c, mips-nat.c,
1277 mon960-rom.c, monitor.c, ns32knbsd-nat.c, ocd.c, ppc-bdm.c,
1278 ppcnbsd-nat.c, proc-service.c, procfs.c, ptx4-nat.c,
1279 regcache.c, remote-adapt.c, remote-array.c, remote-bug.c,
1280 remote-e7000.c, remote-es.c, remote-mips.c, remote-mm.c,
1281 remote-nindy.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
1282 remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
1283 remote-vx.c, remote.c, rs6000-nat.c, sol-thread.c,
1284 solib-aix5.c, solib-svr4.c, somsolib.c, sparc-nat.c,
1285 standalone.c, sun3-nat.c, sun386-nat.c, symm-nat.c, target.c,
1286 target.h, thread-db.c, thread.c, top.c, ultra3-nat.c,
1287 uw-thread.c, v850ice.c, win32-nat.c, wince.c, xcoffsolib.c
1288 (inferior_pid): Rename to inferior_ptid everywhere - even in
1289 comments and obsolete ports. In cases where this variable
1290 really is supposed to be used as a process id, use PIDGET() to
1291 extract the process id component from inferior_ptid. The
1292 other cases, either involving other variables whose types had
1293 to be changed or functions whose signatures had to changed
1294 are listed separately below.
1295
1296 * arm-linux-nat.c (get_thread_id): Change type of argument
1297 representing a combined process/thread id from ``int'' to
1298 ``ptid_t''. Also change parameter name to ptid.
1299 * breakpoint.h, breakpoint.c (breakpoint_thread_match): Likewise.
1300 * corelow.c (core_file_thread_alive): Likewise.
1301 * d10v-tdep.c (d10v_read_pc, d10v_write_pc): Likewise.
1302 * defs.h (*target_wait_hook): Likewise.
1303 * gdbthread.h (thread_info, delete_thread, pid_to_thread_id)
1304 (find_thread_pid, save_infrun_state, load_infrun_state): Likewise.
1305 * gnu-nat.c (gnu_thread_alive, gnu_pid_to_str, gnu_wait)
1306 (gnu_resume): Likewise.
1307 * go32-nat.c (go32_wait, go32_resume): Likewise.
1308 * h8500-tdep.c (h8500_read_pc, h8500_write_pc): Likewise.
1309 * hppa-tdep.c (target_read_pc, target_write_pc): Likewise.
1310 * hppah-nat.c (child_pid_to_str, hppa_tid_to_str,
1311 (hppa_pid_or_tid_to_str, child_post_startup_inferior)
1312 (child_thread_alive): Likewise.
1313 * hpux-thread.c (hpux_thread_notice_signals, hpux_thread_alive)
1314 (hpux_pid_to_str, hpux_thread_wait, hpux_thread_resume): Likewise.
1315 * i386-linux-nat.c (child_resume): Likewise.
1316 * ia64-linux-nat.c (enable_watchpoints_in_psr, fetch_debug_register)
1317 (store_debug_register, fetch_debug_register_pair)
1318 (store_debug_register_pair, ia64_linux_insert_watchpoint)
1319 (ia64_linux_remove_watchpoint, ia64_linux_stopped_by_watchpoint):
1320 Likewise.
1321 * ia64-tdep.c (ia64_read_pc, ia64_write_pc): Likewise.
1322 * inferior.h (read_pc_pid, generic_target_read_pc, write_pc_pid)
1323 (generic_target_write_pc, ptrace_wait, child_resume)
1324 (get_last_target_status): Likewise.
1325 * infptrace.c (ptrace_wait, child_resume): Likewise.
1326 * inftarg.c (child_wait, child_post_wait, child_thread_live)
1327 (child_pid_to_str): Likewise.
1328 * infttrace.c (ptrace_wait, child_thread_alive, child_resume)
1329 (hppa_pid_or_tid_to_str, child_post_startup_inferior): Likewise.
1330 * lin-lwp.c (add_lwp, delete_lwp, find_lwp_pid, lin_lwp_attach_lwp)
1331 (lin_lwp_resume, lin_lwp_wait, lin_lwp_thread_alive)
1332 (lin_lwp_pid_to_str): Likewise.
1333 * lin-thread.c (thread_db_alive, thread_db_pid_to_str)
1334 (thread_db_resume, thread_db_wait): Likewise.
1335 * linux-thread.c (linuxthreads_thread_alive, linuxthreads_pid_to_str)
1336 (linuxthreads_resume, linuxthreads_wait): Likewise.
1337 * lynx-nat.c (child_wait, child_thread_alive, child_resume)
1338 (child_pid_to_str): Likewise.
1339 * m3-nat.c (mach_really_wait, m3_resume): Likewise.
1340 * mac-nat.c (child_wait, child_resume): Likewise.
1341 * mips-tdep.c (mips_read_pc): Likewise.
1342 * monitor.c (monitor_wait, monitor_resume): Likewise.
1343 * ocd.c, ocd.h (ocd_thread_alive, ocd_resume): Likewise.
1344 * ppc-bdm.c (bdm_ppc_wait): Likewise.
1345 * procfs.c (do_attach, procfs_wait, procfs_resume)
1346 (procfs_notice_signals, procfs_thread_alive, procfs_pid_to_str)
1347 (procfs_set_watchpoint, procfs_stopped_by_watchpoint)
1348 (procfs_find_LDT_entry): Likewise.
1349 * regcache.c (read_register_pid, read_signed_register_pid)
1350 (write_register_pid, generic_target_read_pc, read_pc_pid)
1351 (generic_target_write_pc, write_pc_pid): Likewise.
1352 * regcache.h (read_register_pid, read_signed_register_pid)
1353 (write_register_pid): Likewise.
1354 * remote-adapt.c (adapt_wait, adapt_resume): Likewise.
1355 * remote-array.c (array_wait, array_resume): Likewise.
1356 * remote-bug.c (bug_wait, bug_resume): Likewise.
1357 * remote-e7000.c (e7000_wait, e7000_resume): Likewise.
1358 * remote-eb.c (eb_wait, eb_resume): Likewise.
1359 * remote-es.c (es1800_wait, es1800_resume): Likewise.
1360 * remote-mips.c (mips_wait, mips_resume): Likewise.
1361 * remote-mm.c (mm_wait, mm_resume): Likewise.
1362 * remote-nindy.c (nindy_wait, nindy_resume): Likewise.
1363 * remote-os9k.c (rombug_wait, rombug_resume): Likewise.
1364 * remote-rdi.c (arm_rdi_wait, arm_rdi_resume): Likewise.
1365 * remote-rdp.c (remote_rdp_resume, remote_rdp_wait): Likewise.
1366 * remote-sds.c (sds_wait, sds_resume): Likewise.
1367 * remote-sim.c (gdbsim_wait, gdbsim_resume): Likewise.
1368 * remote-st.c (st2000_wait, st2000_resume): Likewise.
1369 * remote-udi.c (udi_wait, udi_resume): Likewise.
1370 * remote-vx.c (vx_wait, vx_resume): Likewise.
1371 * remote.c (remote_current_thread, remote_resume, remote_wait)
1372 (remote_async_resume, remote_async_wait, remote_cisco_wait)
1373 (remote_thread_alive): Likewise.
1374 * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_resume)
1375 (sol_thread_wait, sol_thread_notice_signals, sol_thread_alive)
1376 (solaris_pid_to_str): Likewise.
1377 * symm-nat.c (child_wait, child_resume): Likewise.
1378 * target.c (debug_to_resume, debug_to_wait, debug_to_post_wait)
1379 (debug_to_notice_signals, debug_to_thread_alive)
1380 (normal_target_post_startup_inferior, normal_pid_to_str)
1381 (debug_to_post_startup_inferior): Likewise.
1382 * target.h (to_resume, to_wait, to_post_wait)
1383 (to_post_startup_inferior, to_notice_signals, to_thread_alive)
1384 (to_pid_to_str [all in struct target_ops]): Likewise.
1385 (child_post_wait, child_thread_alive, normal_pid_to_str): Likewise.
1386 * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait)
1387 (attach_thread, detach_thread, thread_db_resume, check_event)
1388 (thread_db_post_startup_inferior, thread_db_thread_alive)
1389 (thread_db_pid_to_str): Likewise.
1390 * thread.c (add_thread, delete_thread, find_thread_pid)
1391 (pid_to_thread_id, in_thread_list, load_infrun_state)
1392 (save_infrun_state, switch_to_thread, restore_current_thread)
1393 (make_cleanup_restore_current_thread): Likewise.
1394 * top.c (target_wait_hook): Likewise.
1395 * uw-thread.c (dbgpid, thr_to_lwp, lwp_to_thr, add_thread_uw)
1396 (uw_thread_resume, libtrhead_stub, uw_thread_wait, uw_thread_alive)
1397 (uw_thread_pid_to_str): Likewise.
1398 * v850ice.c (v850ice_wait, v850ice_resume): Likewise.
1399 * win32-nat.c (child_wait, child_resume, win32_child_thread_alive)
1400 (cywin_pid_to_str): Likewise.
1401 * wince.c (child_wait, child_resume, win32_child_thread_alive):
1402 Likewise.
1403 * config/nm-linux.h (linuxthreads_pid_to_str): Likewise.
1404 * config/nm-lynx.h (child_wait, lynx_pid_to_str): Likewise.
1405 * config/alpha/nm-linux.h (lin_lwp_attach_lwp): Likewise.
1406 * config/arm/nm-linux.h (lin_lwp_attach_lwp): Likewise.
1407 * config/h8500/tm-h8500.h (h8500_read_pc, h8500_write_pc): Likewise.
1408 * config/i386/nm-i386sol2.h (procfs_stopped_by_watchpoint)
1409 (procfs_set_watchpoint): Likewise.
1410 * config/i386/nm-linux.h (lin_lwp_attach_lwp): Likewise.
1411 * config/i386/nm-ptx4.h (child_wait): Likewise.
1412 * config/i386/nm-symmetry.h (child_wait): Likewise.
1413 * config/i386/tm-cygwin.h (cygwin_pid_to_str): Likewise.
1414 * config/ia64/nm-linux.h (ia64_linux_stopped_by_watchpoint)
1415 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
1416 (lin_lwp_attach_lwp): Likewise.
1417 * config/mips/nm-irix4.h, config/mips/nm-irix5.h
1418 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Likewise.
1419 * config/pa/nm-hppah.h (child_pid_to_str, hppa_tid_to_str)
1420 (hppa_pid_or_tid_to_str): Likewise.
1421 * config/pa/tm-hppa.h (target_read_pc, target_write_pc): Likewise.
1422 * config/powerpc/nm-linux.h (lin_lwp_attach_lwp): Likewise.
1423 * config/sparc/nm-sun4sol2.h (procfs_stopped_by_watchpoint)
1424 (procfs_set_watchpoint): Likewise.
1425
1426 * gdbthread.h (thread_id_to_pid): Change return type which
1427 represents a combined process/thread id from ``int'' to
1428 ``ptid_t''.
1429 * gnu-nat.c (gnu_wait): Likewise.
1430 * go32-nat.c (go32_wait): Likewise.
1431 * hpux-thread.c (hpux_thread_wait): Likewise.
1432 * inferior.h (procfs_first_available): Likewise.
1433 * inftarg.c (child_wait): Likewise.
1434 * infttrace.c (ptrace_wait): Likewise.
1435 * lin-lwp.c (lin_lwp_wait): Likewise.
1436 * lin-thread.c (thread_db_wait): Likewise.
1437 * linux-thread.c (linuxthreads_wait): Likewise.
1438 * lynx-nat.c (child_wait): Likewise.
1439 * m3-nat.c (mach_really_wait): Likewise.
1440 * mac-nat.c (child_wait): Likewise.
1441 * monitor.c (monitor_wait): Likewise.
1442 * ppc-bdm.c (bdm_ppc_wait): Likewise.
1443 * procfs.c (do_attach, procfs_wait, procfs_first_available): Likewise.
1444 * remote-adapt.c (adapt_wait): Likewise.
1445 * remote-array.c (array_wait): Likewise.
1446 * remote-bug.c (bug_wait): Likewise.
1447 * remote-e7000.c (e7000_wait): Likewise.
1448 * remote-eb.c (eb_wait): Likewise.
1449 * remote-es.c (es1800_wait): Likewise.
1450 * remote-mips.c (mips_wait): Likewise.
1451 * remote-mm.c (mm_wait): Likewise.
1452 * remote-nindy.c (nindy_wait): Likewise.
1453 * remote-os9k (rombug_wait): Likewise.
1454 * remote-rdi.c (arm_rdi_wait): Likewise.
1455 * remote-rdp.c (remote_rdp_wait): Likewise.
1456 * remote-sds.c (sds_wait): Likewise.
1457 * remote-sim.c (gdbsim_wait): Likewise.
1458 * remote-st.c (st2000_wait): Likewise.
1459 * remote-udi.c (udi_wait): Likewise.
1460 * remote-vx.c (vx_wait): Likewise.
1461 * remote.c (remote_wait, remote_async_wait, remote_current_thread)
1462 (remote_cisco_wait): Likewise.
1463 * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_wait):
1464 Likewise.
1465 * symm-nat.c (child_wait): Likewise.
1466 * target.c (debug_to_wait): Likewise.
1467 * target.h (to_wait [in struct target_ops]): Likewise.
1468 * thread.c (thread_id_to_pid): Likewise.
1469 * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait):
1470 Likewise.
1471 * top.c (*target_wait_hook): Likewise.
1472 * uw-thread.c (lwp_to_thr, uw_thread_wait): Likewise.
1473 * v850ice.c (v850ice_wait): Likewise.
1474 * win32-nat.c (child_wait): Likewise.
1475 * wince.c (child_wait): Likewise.
1476 * config/nm-lynx.h (child_wait): Likewise.
1477 * config/i386/nm-ptx4.h (child_wait): Likewise.
1478 * config/i386/nm-symmetry.h (child_wait): Likewise.
1479
1480 * arch-utils.c (generic_prepare_to_proceed): Rename wait_pid
1481 to wait_ptid and change its type from ``int'' to ``ptid_t''.
1482 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Likewise,
1483 but rename saved_inferior_pid to saved_inferior_ptid.
1484 * d10v-tdep.c (d10v_read_pc, d10_write_pc): Likewise, but rename
1485 save_pid to save_ptid.
1486 * gdbthread.h (struct thread_info): Likewise, but rename pid to ptid.
1487 * hppah-nat.c (child_pid_to_exec): Likewise, but rename
1488 saved_inferior_pid to saved_inferior_ptid.
1489 * hpux-thread.c (main_ptid): Likewise, but rename from main_pid.
1490 * infrun.c (previous_inferior_pid [static global]): Likewise,
1491 but rename to previous_inferior_ptid.
1492 (resume): Likewise, but rename resume_pid to resume_ptid.
1493 (struct execution_control_state): Likewise, but rename
1494 pid to ptid, saved_inferior_pid to saved_inferior_ptid,
1495 and waiton_pid to waiton_ptid.
1496 (target_last_wait_pid): Likewise, but rename to
1497 target_last_wait_ptid.
1498 * infttrace.c (saved_real_pid): Likewise, but rename to
1499 saved_real_ptid.
1500 (child_pid_to_exec_file): Likewise, but rename saved_inferior_pid
1501 to saved_inferior_ptid.
1502 * lin-lwp.c (struct lwp_info): Likewise, but rename pid to ptid.
1503 (trap_ptid): Likewise, but renamed from trap_pid.
1504 * lin-thread.c (handle_new_thread): Likewise, but rename gdb_pid
1505 to gdb_ptid.
1506 * linux-thread.c (detach_thread): Likewise, but rename pid to ptid.
1507 (thread_db_wait): Likewise, but rename ret_pid to retptid.
1508 * procfs.c (procfs_wait): Likewise, for retval whose name
1509 doesn't change. Also, ``temp'' becomes two separate variables,
1510 one named temp_tid (an int) and the other temp_ptid.
1511 (procfs_notice_thread): Likewise (type change) for gdb_threadid
1512 whose name does not change.
1513 * regcache.c (registers_ptid): Likewise, but renamed from
1514 registers_pid.
1515 (read_register_pid, read_signed_register_pid, write_register_pid):
1516 Likewise, but rename save_pid to save_ptid.
1517 (read_pc_pid, write_pc_pid): Likewise, but rename saved_inferior_pid
1518 to saved_inferior_ptid.
1519 * remote.c (remote_newthread_step): Likewise, but rename pid to ptid.
1520 * sol-thread.c (struct ps_prochandle): Likewise.
1521 (sol_thread_resume): Likewise, for save_pid which becomes save_ptid.
1522 (sol_thread_wait): Likewise, for rtnval whose name does not
1523 change, and for save_pid which becomes save_ptid.
1524 (solaris_pid_to_str): Likewise for lwp whose name does not change.
1525 (sol_find_new_threads_callback): Likewise, for pid which becomes
1526 ptid.
1527 * target.h (target_resume, target_wait, target_post_wait)
1528 (target_post_startup_inferior, target_notice_signals)
1529 (target_thread_alive): Likewise.
1530 * thread.c (info_threads_command): Likewise, but rename
1531 current_pid to current_ptid.
1532 (struct current_thread_cleanup): Likewise, but rename field
1533 inferior_pid to inferior_ptid.
1534 * thread-db.c (find_new_threads_callback): Likewise, but rename
1535 pid to ptid.
1536 * uw-thread.c (thr_to_lwp): Likewise for lid whose name does not
1537 change.
1538 (lwp_to_tr): Likewise fo tid whose name remains unchanged.
1539 (thr_infpid, lwp_infpid, notice_thread, libthread_stub): Likewise,
1540 but rename pid to ptid.
1541 * config/alpha/nm-linux.h (ATTACH_LWP): Likewise.
1542 * config/arm/nm-linux.h (ATTACH_LWP): Likewise.
1543 * config/i386/nm-linux.h (ATTACH_LWP): Likewise.
1544 * config/ia64/nm-linux.h (ATTACH_LWP): Likewise.
1545 * config/pa/nm-hppah.h (target_tid_to_str): Likewise.
1546 * config/powerpc/nm-linux.h (ATTACH_LWP): Likewise.
1547
1548 * arch-utils.c (generic_prepare_to_proceed): Test for the
1549 "zero" ptid by using ptid_equal() to test to see if variable
1550 in question is the same as null_ptid. This replaces a direct
1551 test against zero.
1552 * cxux-nat.c (add_shared_symbol_files): Likewise.
1553 * i386aix-nat.c, i386b-nat.c (i386_float_info): Likewise.
1554 * infcmd.c (run_command): Likewise.
1555 * inflow.c (kill_command): Likewise.
1556 * infttrace.c (call_ttrace): Likewise.
1557 * lin-lwp.c (lin_lwp_prepare_to_proceed): Likewise.
1558 * lin-thread.c (thread_db_kill): Likewise.
1559 * procfs.c (procfs_kill_inferior, procfs_mourn_inferior): Likewise.
1560 * remote-es.c (es1800_kill): Likewise.
1561 * sol-thread.c (sol_thread_create_inferior): Likewise.
1562 * solib.c (locate_base): Likewise.
1563 * target.c (nosupport_runtime): Likewise.
1564 * thread-db.c (thread_db_wait): Likewise.
1565 * top.c (quit_confirm, quit_force): Likewise.
1566 * uw-thread (lwp_infpid, uw_thread_resume): Likewise.
1567
1568 * infrun.c (handle_inferior_event, stop_stepping, normal_stop):
1569 Use ptid_equal to compare value of process/thread ids instead of
1570 ``=='' and ``!='' operators.
1571 lin-lwp.c (delete_lwp, lin_lwp_prepare_to_proceed)
1572 (stop_wait_callback, lin_lwp_wait): Likewise.
1573 * procfs.c (procfs_wait): Likewise.
1574 * regcache.c (read_register_bytes, read_register_gen)
1575 (write_register_gen, read_register, read_register_pid)
1576 (read_signed_register, read_signed_register_pid, write_register)
1577 (write_register_pid, supply_register): Likewise.
1578 * remote-vx.c (vx_resume): Likewise.
1579 * sol-thread.c (sol_thread_wait): Likewise.
1580 * symm-nat.c (kill_inferior): Likewise.
1581 * thread.c (delete_thread, find_thread_pid, pid_to_thread_id)
1582 (in_thread_list, info_threads_command, switch_to_thread)
1583 (restore_current_thread): Likewise.
1584 * uw-thread (libtread_stub): Likewise.
1585
1586 * arm-linux-nat.c (GET_THREAD_ID): Change PID to PTID.
1587
1588 * corelow.c (add_to_thread_list): Convert argument in add_thread()
1589 call to a ptid_t.
1590 * gnu-nat.c (inf_validate_procs): Likewise.
1591 * linux-thread.c (stop_thread, update_stop_threads): Likewise.
1592 * remote.c (record_currthread, remote_threads_info): Likewise.
1593 * win32-nat.c (child_add_thread): Likewise.
1594
1595 * hpux-thread.c (save_inferior_pid, restore_inferior_pid): Rename,
1596 respectively, to save_inferior_ptid() and restore_inferior_ptid().
1597 Adjust implementations to operate on ``ptid_t'' instead of ``int''.
1598 * lin-lwp.c (save_inferior_pid, restore_inferior_pid): Likewise.
1599 * lin-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
1600 * linux-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
1601 * proc-service.c (save_inferior_pid, restore_inferior_pid): Likewise.
1602 * sol-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
1603 * thread-db.c (save_inferior_pid, restore_inferior_pid): Likewise.
1604
1605 * infrun.c (RESUME_ALL): New macro representing the -1 ptid
1606 to be passed to target_resume() when all threads should resume.
1607 (resume): Set resume_ptid to RESUME_ALL rather than -1.
1608 (handle_inferior_event): Invoke target_resume() with RESUME_ALL
1609 instead of -1.
1610 * irix5-nat.c (solib_create_inferior_hook): Convert -1 to
1611 a ptid_t in target_resume() call.
1612 * osfsolib.c (solib_create_inferior_hook): Likewise.
1613 * solib-svr4.c (solib_create_inferior_hook): Likewise.
1614
1615 * lin-lwp.c (PIDGET, PIDGET0): Rename original PIDGET macro to
1616 PIDGET0. Define new PIDGET macro which uses PIDGET0, the only
1617 difference being that the 0xffff pattern will be interpreted
1618 as -1.
1619 * lin-thread.c (PIDGET, PIDGET0): Likewise.
1620 * thread-db.c (PIDGET, PIDGET0): Likewise.
1621 * config/nm-linux.h (PIDGET, PIDGET0): Likewise.
1622 * config/i386/tm-i386sol2.h (PIDGET, PIDGET0): Likewise.
1623 * config/i386/tm-i386v42mp.h (PIDGET, PIDGET0): Likewise.
1624 * config/sparc/tm-sun4sol2.h (PIDGET, PIDGET0): Likewise.
1625
1626 * m3-nat.c (init_m3_ops): Fix typo; initialize to_wait field to
1627 mach_really_wait rather than mach_really__wait.
1628 * lin-thread.c (check_for_thread_event): Fix warning; make function
1629 actually return a value.
1630
1631 * gdbarch.sh (TARGET_READ_PC, TARGET_WRITE_PC): Change type of
1632 ``pid'' arguments from ``int'' to ``ptid_t''. Also renamed
1633 pid to ptid.
1634 * gdbarch.h, gdbarch.c: Regenerated.
1635
31e28849
JL
16362001-05-03 Jonathan Larmour <jlarmour@redhat.com>
1637
1638 * rdi-share/devsw.c: Include <time.h> for struct tm
1639
8d341142
EZ
16402001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
1641
1642 * config/djgpp/fnchange.lst: Add mappings for the new
1643 opcodes/openrisc-* files.
1644
9572d2b6
MS
16452001-05-01 Michael Snyder <msnyder@redhat.com>
1646
9085700c 1647 * lin-lwp.c: Change printf to fprintf_unfiltered.
9572d2b6
MS
1648 * Makefile.in: Add rules for thread-db.o, lin-lwp.o, proc-service.o.
1649
977adac5
ND
16502001-05-01 Nicholas Duffek <nsd@redhat.com>
1651
1652 * config/rs6000/tm-rs6000.h (IN_SOLIB_RETURN_TRAMPOLINE): Define.
1653 (rs6000_in_solib_return_trampoline): Declare.
1654 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): New
1655 function.
1656 (rs6000_skip_trampoline_code): Skip bigtoc fixup code.
1657 * xcoffread.c (read_xcoff_symtab): Perform the ISFCN function
1658 check after the CSECT check rather than before it. Allocate
1659 separate symtabs for CSECTs whose names begin with '@'.
1660 (scan_xcoff_symtab): Don't ignore symbols beginning with '@'.
1661 Activate the misc_func_recorded mechanism for whose names begin
1662 with '@'.
1663
6d799331
C
16642001-04-30 J.T. Conklin <jtc@redback.com>
1665
1666 * ppcnbsd-nat.c (fetch_inferior_registers)
1667 (store_inferior_registers, fetch_core_registers): Changed to use
1668 fpreg[] instead of r_regs[] to access floating point registers.
1669
7f4dbe94
EZ
16702001-04-30 Elena Zannoni <ezannoni@redhat.com>
1671
1672 * sh-tdep.c: Get rid of the function prototypes.
1673 (sh_sh4_build_float_register_type): Move earlier in file.
1674 (fv_reg_base_num): Ditto.
1675 (dr_reg_base_num): Ditto.
1676
540af400
MS
16772001-04-30 Michael Snyder <msnyder@redhat.com>
1678
1679 * thread-db.c: Revert 2001-04-26 change for debugging output.
7ca673cd
MS
1680 * lin-lwp.c: Ditto.
1681 * lin-lwp.c: Add set/show debug lin-lwp command. Use this
1682 command to turn extra debugging output on / off.
540af400 1683
f5a6fc05
EZ
16842001-04-30 Eli Zaretskii <eliz@is.elta.co.il>
1685
1686 * buildsym.c (start_subfile): Use FILENAME_CMP instead of STREQ.
1687 (top-level): #include filenames.h.
1688
1689 * dwarf2read.c (dwarf2_start_subfile): Use IS_ABSOLUTE_PATH and
1690 FILENAME_CMP, to DTRT on non-Posix platforms.
1691 (top-level): #include filenames.h.
1692
1693
502dcf4e
AC
16942001-04-27 Andrew Cagney <ac131313@redhat.com>
1695
1696 * gdbtypes.c (check_stub_method): Always initialize ``p''.
1697
cc3f9cbb
AC
16982001-04-27 Andrew Cagney <ac131313@redhat.com>
1699
1700 * configure.host: Delete romp host.
1701 * TODO: Update.
1702
ed9c5cf2
AC
17032001-04-27 Andrew Cagney <ac131313@redhat.com>
1704
1705 * TODO: Updates to 5.1. No more targets to obsolete.
1706
d1a310e7
DH
17072001-04-27 Don Howard <dhoward@redhat.com>
1708
128437e6
DH
1709 (Changes from Kevin Buettner, with minor update by Don Howard.)
1710
1711 * i387-nat.c (i387_supply_fxsave, i387_fill_fxsave, i387_tag): Fix
1712 typos in which hexadecimal constants were really intended to be
1713 binary constants.
1714 (i387_tag): Swap logic regarding zero vs non-zero exponents.
d1a310e7
DH
1715 * MAINTAINERS (Misc): Added myself to the write-after-approval
1716 list.
1717
015a42b4
JB
17182001-04-26 Jim Blandy <jimb@redhat.com>
1719
1720 (Changes from Daniel Berlin, with revisions by Jim Blandy.)
1721
1722 Abstract out operations specific to particular C++ ABI's, and
1723 invoke them through a function table. This removes the C++ ABI
1724 dependencies scattered throughout the code, and allows us to
1725 cleanly add support for new C++ ABI's.
1726 * cp-abi.h, cp-abi.h, gnu-v2-abi.c, hpacc-abi.c: New files.
1727 * c-typeprint.c, c-valprint.c, dbxread.c, eval.c, gdbtypes.c,
1728 jv-typeprint.c, linespec.c, symtab.c, typeprint.c, valops.c:
1729 #include "cp-abi.h". These files all use functions now declared
1730 there.
1731 * symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P):
1732 Deleted. These services are now provided by functions declared in
1733 cp-abi.h.
1734 * value.h (value_rtti_type, value_virtual_fn_field): Same.
1735 * values.c (value_virtual_fn_field): Same, for this definition.
1736 * valops.c (value_rtti_type): Same.
1737 * c-typeprint.c (c_type_print_base): Use the functions from
1738 "cp-abi.h", instead of the old macros, or hard-coded ABI-specific
1739 tests.
1740 * dbxread.c (record_minimal_symbol): Same.
1741 * gdbtypes.c (get_destructor_fn_field, virtual_base_index,
1742 virtual_base_index_skip_primaries): Same.
1743 * jv-typeprint.c (java_type_print_base): Same.
1744 * linespec.c (find_methods, decode_line_1): Same.
1745 * symtab.c (gdb_mangle_name): Same.
1746 * Makefile.in (SFILES): Add the new .c files mentioned above.
1747 (cp_abi_h): New variable.
1748 (COMMON_OBS): Add gnu-v2-abi.o, hpacc-abi.o, and cp-abi.o.
1749 (cp-abi.o, gnu-v2-abi.o, hpacc-abi.o): New targets.
1750 (c-typeprint.o, c-valprint.o, dbxread.o, eval.o, gdbtypes.o,
1751 jv-typeprint.o, symtab.o, linespec.o, typeprint.o, valops.o): Add
1752 dependency on $(cp_abi_h).
1753
f3fb8c85
MS
17542001-04-26 Michael Snyder <msnyder@redhat.com>
1755
20b8570d
MS
1756 * thread-db.c (_initialize_thread_db): Add set/show command
1757 "debug-linux-threads" for debugging output.
1758 * lin-lwp.c (various): Use global "debug_linux_threads to
1759 turn on extra debugging output.
4c8de859 1760 * lin-lwp.c: Minor cleanups in comments.
f3fb8c85
MS
1761 * target.c (normal_pid_to_str): Get rid of an ancient hack.
1762 * remote.c (remote_pid_to_str): New function for remote target.
1763
7f0b5c30
JB
17642001-04-24 Jim Blandy <jimb@redhat.com>
1765
1766 * c-typeprint.c (c_type_print_cv_qualifier): Don't print `const'
1767 qualifier on C++ references; all references are innately const.
1768
0af5533d
MK
17692001-04-20 Mark Kettenis <kettenis@gnu.org>
1770
1771 * event-top.h: Fix formatting.
1772
d036b4d9
AC
17732001-04-17 Andrew Cagney <ac131313@redhat.com>
1774
1775 * source.c (openp): Obsolete #ifdef MPW code.
1776 (open_source_file): Ditto.
1777 * event-top.c (display_gdb_prompt): Ditto.
1778 * utils.c (query): Ditto.
1779 (init_page_info): Ditto.
1780 (init_page_info): Delete #ifndef MPW.
1781 * top.c (gdb_readline): Ditto.
1782 * mac-xdep.c: Obsolete.
1783 * mac-gdb.r: Obsolete.
1784 * config/powerpc/xm-mpw.h: Obsolete.
1785 * config/xm-mpw.h: Obsolete.
1786 * mpw-make.sed: Obsolete.
1787 * mpw-config.in: Obsolete.
1788 * TODO: Update
1789 * NEWS: Update
1790
539ffe0b
MK
17912001-04-19 Mark Kettenis <kettenis@gnu.org>
1792
1793 * i386-tdep.c (i386_frameless_function_invocation): New function.
1794 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION): Redefine
1795 in terms of i386_frameless_function_invocation. Adjust comment.
1796 (i386_frameless_function_invocation): New prototype.
1797
67e1e03a
MH
17982001-04-18 Martin M. Hunt <hunt@redhat.com>
1799
1800 * top.c (gdb_init): Don't call cli_out_new() to
1801 create global uiout if init_ui_hook is set. uiout will
1802 have to be initialized there.
1803
fbec36e2
AC
18042001-04-18 Andrew Cagney <ac131313@redhat.com>
1805
1806 * arch-utils.c: Include "regcache.h".
1807
ed84f6c1
MK
18082001-04-18 Mark Kettenis <kettenis@gnu.org>
1809
1810 * i386-tdep.c (i386_saved_pc_after_call): New function.
1811 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Redefine in terms
1812 of i386_saved_pc_after_call.
1813 (i386_saved_pc_after_call): New prototype.
1814
c60a7562
MS
18152001-04-17 Michael Snyder <msnyder@redhat.com>
1816
c9e030cf 1817 * i386-nat.c: Fix typo in comment.
c60a7562
MS
1818 * solib.c (no_shared_libraries): New function. Discard all symbols
1819 from shared libraries.
1820 (_initialize_solib): Add command "nosharedlibrary" as complement
1821 to the command "sharedlibrary". Unloads symbols for all solibs.
1822
514e603d
AC
18232001-04-16 Andrew Cagney <ac131313@redhat.com>
1824
1825 * configure.host (m68030-sony-*, m68*-isi-*, m68*-sony-*):
1826 * configure.tgt (m68*-rom68k-*, m68*-*bug-*, m68*-monitor-*)
1827 (m68*-est-*, m68*-sony-*, m68*-isi-*):
1828 * Makefile.in (xm-news1000.h, tm-news.h, xm-news.h): Obsolete..
1829 * config/m68k/xm-news.h: Obsolete.
1830 * config/m68k/tm-news.h:
1831 * config/m68k/xm-news1000.h: Obsolete.
1832 * config/m68k/news.mh: Obsolete.
1833 * config/m68k/news.mt: Obsolete.
1834 * config/m68k/nm-news.h: Obsolete.
1835 * config/m68k/news1000.mh: Obsolete.
1836 * news-xdep.c: Obsolete.
1837 * Makefile.in (isi-xdep.o): Obsolete.
1838 (ALLDEPFILES): Delete isi-xdep.c.
1839 (tm-isi.h): Obsolete.
1840 * m68k-tdep.c (altos_skip_prologue): Update comments.
1841 (isi_skip_prologue): Obsolete.
1842 * isi-xdep.c: Obsolete.
1843 * config/m68k/xm-isi.h: Obsolete.
1844 * config/m68k/isi.mh: Obsolete.
1845 * config/m68k/tm-isi.h: Obsolete.
1846 * config/m68k/isi.mt: Obsolete.
1847
1848 * TODO: Update.
1849 * NEWS: Update.
1850
6240bebf
MS
18512001-04-17 Michael Snyder <msnyder@redhat.com>
1852
1853 * remote.c (remote_open_1): On opening the remote target, activate
1854 the solib_create_inferior_hook, so that it can detect when the
1855 target loads shared libraries.
1856 (remote_async_open_1): Ditto.
1857
75ac9d7b
MS
18582001-04-17 Michael Snyder <msnyder@redhat.com>
1859
1860 * breakpoint.c (print_one_breakpoint): Handle 64-bit addresses.
1861 * tracepoint.c (tracepoints_info): Handle 64-bit addresses.
1862 * testsuite/gdb.trace/deltrace.exp: Allow for 64-bit addresses.
1863 * testsuite/gdb.trace/infotrace.exp: Ditto.
1864 * testsuite/gdb.trace/passcount.exp: Ditto.
1865 * testsuite/gdb.trace/while-stepping.exp: Ditto.
1866
b9569773
MS
18672001-04-17 Michael Snyder <msnyder@redhat.com>
1868
1869 * thread-db.c (check_thread_signals): When looping over all
1870 signals, ignore signal zero.
1871 (disable_thread_signals): Ditto.
1872
81490ea1
MS
18732001-04-17 Eirik Fuller <eirik@netapp.com>
1874
1875 * thread.c (do_captured_thread_select): Allow the argument to the
1876 thread command to be an expression rather than a literal integer.
1877
e5434c3d
MK
18782001-04-17 Mark Kettenis <kettenis@gnu.org>
1879
1880 * i386-linux-tdep.c (i386_linux_saved_pc_after_call): Use
1881 read_memory_unsigned_integer instead of read_memory_integer.
1882
00c7912d
KB
18832001-04-16 Kevin Buettner <kevinb@redhat.com>
1884
1885 * solib-aix5.c (map_index_vs_section_name_okay): New function.
1886 (aix5_relocate_main_executable): Don't use file offsets for
1887 determining corresponding sections and map file entries. Call
1888 map_index_vs_section_name_okay() to do this instead.
1889
4d1bcd09
KB
18902001-04-16 Kevin Buettner <kevinb@redhat.com>
1891
1892 * procfs.c (open_with_retry): New function.
1893 (open_procinfo_files, load_syscalls, proc_iterate_over_mappings)
1894 (proc_get_LDT_entry): Call open_with_retry() instead of open().
1895
097e5c0b 18962001-04-16 Kevin Buettner <kevinb@redhat.com>
1186f287
KB
1897
1898 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Adjust
1899 comparison against TRAP_HWBKPT constant yet again to account
1900 for the various values used by different kernel versions.
1901
9e0c176c
DB
19022001-04-16 Daniel Berlin <dan@cgsoftware.com>
1903
1904 * demangle.c (_initialize_demangler): Use xcalloc on the
1905 demangling_style_names, and make it a null terminated array of
1906 names, to avoid a crash.
1907
c833a37e
MK
19082001-04-16 Mark Kettenis <kettenis@gnu.org>
1909
1910 * i386-tdep.c (i386_frame_chain): New function.
1911 * config/i386/tm-i386.h (FRAME_CHAIN): Redefine in terms of
1912 i386_frame_chain.
1913 (i386_frame_chain): New prototype.
1914
46c6cdcf
C
19152001-04-14 J.T. Conklin <jtc@redback.com>
1916
1917 * target.h (target_ops): Removed to_core_file_to_sym_file vector
1918 function.
1919 * corelow.c (core_ops): Updated for above change.
1920 * gnu-nat.c (core_ops): Likewise.
1921 * inftarg.c (child_ops): Likewise.
1922 * monitor.c (monitor_ops): Likewise.
1923 * ppc-bdm.c (bdm_ppc_ops): Likewise.
1924 * remote-adapt.c (adapt_ops): Likewise.
1925 * remote-bug.c (bug_ops): Likewise.
1926 * remote-e7000.c (e7000_ops): Likewise.
1927 * remote-eb.c (eb_ops): Likewise.
1928 * remote-es.c (es1800_ops, es1800_child_ops): Likewise.
1929 * remote-mm.c (mm_ops): Likewise.
1930 * remote-nindy.c (nindy_ops): Likewise.
1931 * remote-nrom.c (nrom_ops): Likewise.
1932 * remote-os9k.c (rombug_ops): Likewise.
1933 * remote-rdp.c (remote_rdp_ops): Likewise.
1934 * remote-sim.c (gdbsim_ops): Likewise.
1935 * remote-st.c (st2000_ops): Likewise.
1936 * v850ice.c (v850ice_ops): Likewise.
1937 * target.c (cleanup_target): Likewise
1938 (update_current_target): Likewise.
1939 (setup_target_debug): Likewise
1940 (debug_to_core_file_to_sym_file): Removed.
1941
1942 * corefile.c (core_file_command) [HPUXHPPA]: Removed code that
1943 sets symbol file from information obtained from the core file.
1944 * corelow.c (core_file_to_sym_file): Removed.
1945
d1566ff5
FN
19462001-04-13 Fernando Nasser <fnasser@redhat.com>
1947
1948 From Adam Mirowski <Adam.Mirowski@Sun.COM>
1949 Fixed Insight on Solaris. It was not possible to debug a process
1950 because of EINTR "errors".
1951 * procfs.c: (procfs_wait): if proc_wait_for_stop() fails
1952 with EINTR, retry the call.
1953
6c98e688
KB
19542001-04-12 Kevin Buettner <kevinb@redhat.com>
1955
1956 * solib-aix5.c (enum maptype): Delete.
1957 (struct lm_info): Add new member ``nmappings''. Make ``mapping''
1958 member a pointer instead of a statically sized array.
1959 (build_so_list_from_mapfile): Dynamically allocate ``mapping''
1960 array.
1961 (aix5_relocate_main_executable, aix5_relocate_section_addresses,
1962 aix5_find_global_pointer): Search for correct mapping to use
1963 based on file offset instead of knowledge of whether the section
1964 is read-only or read/write.
1965 (aix5_find_gate_addresses): Use the first mapping instead of
1966 the (now defunct) MT_READONLY mapping.
1967
49282387
ND
19682001-04-12 Nicholas Duffek <nsd@redhat.com>
1969
1970 * xcoffread.c (scan_xcoff_symtab): Ignore symbols beginning with
1971 "@".
1972
7f6b83a5
KB
19732001-04-12 Kevin Buettner <kevinb@redhat.com>
1974
1975 * config/i386/fbsd.mh (NATDEPFILES): Add i386-nat.o.
1976
24f89b68
AC
19772001-04-09 Andrew Cagney <ac131313@redhat.com>
1978
1979 Obsolete i[3456]86-*-sunos* (aka Sun386) host and target.
1980 * config/i386/sun386.mh: Obsolete.
1981 * config/i386/sun386.mt: Obsolete.
1982 * config/i386/xm-sun386.h: Obsolete.
1983 * config/i386/tm-sun386.h: Obsolete.
1984 * config/i386/nm-sun386.h: Obsolete.
1985 * Makefile.in (ALLDEPFILES): Delete sun386-nat.c.
1986 (sun386-nat.o): Target is obsolete.
1987 * sun386-nat.c: Obsolete.
1988 * configure.tgt (i[3456]86-*-sunos*): Obsolete.
1989 * configure.host (i[3456]86-*-sunos*): Obsolete.
1990 * NEWS: Update.
1991 * TODO: Update.
1992
c114dcd5
C
19932001-04-10 J.T. Conklin <jtc@redback.com>
1994
1995 * maint.c: Fix typo in comment.
1996
6755f5ad
KS
19972001-04-09 Keith Seitz <keiths@cygnus.com>
1998
1999 * MAINTAINERS: Swap with Syd Polk as a gdbtk maintainer.
2000
7700434b
KB
20012001-04-08 Kevin Buettner <kevinb@redhat.com>
2002
2003 * fork-child.c (fork_inferior, clone_and_follow_inferior):
2004 Document fact that apparent call to vfork() might actually be
2005 a call to fork() instead.
2006 * ser-pipe.c (pipe_open): Likewise.
2007
d493eb33
KB
20082001-04-08 Kevin Buettner <kevinb@redhat.com>
2009
2010 * printcmd.c (print_frame_args): Use a cleanup to invoke
2011 ui_out_list_end() so that the list count nesting flag will
2012 be decremented properly when an error occurs.
2013 * stack.c (print_frame): Likewise.
2014
af471f3c
C
20152001-04-06 J.T. Conklin <jtc@redback.com>
2016
c839c4db
C
2017 * dcache.c (dcache_write_line): Fixed bugs where cache line was
2018 not written to target correctly.
2019
af471f3c
C
2020 * gdbserver/low-hppabsd.c (read_inferior_memory): Add explicit
2021 void return value;
2022 * gdbserver/low-nbsd.c: Likewise.
2023 * gdbserver/low-sparc.c: Likewise.
2024 * gdbserver/low-sun3.c: Likewise.
2025
d8e275b4
GK
20262001-04-06 Geoffrey Keating <geoffk@redhat.com>
2027
2028 * config/rs6000/nm-rs6000.h (PTRACE_ATTACH): Don't define.
2029 (PTRACE_DETACH): Don't define.
2030
e02bc4cc
DS
20312001-04-06 David Smith <dsmith@redhat.com>
2032
2033 * arch-utils.c (default_prepare_to_proceed)
2034 (generic_prepare_to_proceed): Added new functions.
2035 * arch-utils.h: New function declarations for
2036 default_prepare_to_proceed() and generic_prepare_to_proceed().
2037 * gdbarch.sh: Added PREPARE_TO_PROCEED.
2038 * gdbarch.c: Regenerated.
2039 * gdbarch.h: Regenerated.
2040 * inferior.h: Added get_last_target_status() declaration.
2041 * infrun.c (get_last_target_status): Added new function.
2042 (handle_inferior_event): Saves last pid and waitstatus, which will
2043 get returned by get_last_target_status().
2044
2045 * hppa-tdep.c (prepare_to_proceed): Added comment stating that
2046 prepare_to_proceed() is potentially redundant since
2047 default_prepare_to_proceed() has been added.
2048 * linux-thread.c (prepare_to_proceed): Ditto.
2049 * lin-lwp.c (prepare_to_proceed): Ditto.
2050 * m3-nat.c (prepare_to_proceed): Ditto.
2051
1b2b2c16
AC
20522001-04-05 Andrew Cagney <ac131313@redhat.com>
2053
2054 Obsolete powerpcle-*-cygwin* and powerpcle-*-solaris* platforms
2055 and powerpc-*-netware* target.
2056 * configure.host (powerpcle-*-cygwin*, powerpcle-*-solaris*):
2057 Obsolete.
2058 * configure.tgt (powerpc-*-netware*, powerpcle-*-cygwin*)
2059 (powerpcle-*-solaris*): Obsolete.
2060 * config/powerpc/tm-cygwin.h: Obsolete.
2061 * config/powerpc/cygwin.mt: Obsolete.
2062 * config/powerpc/xm-cygwin.h: Obsolete.
2063 * config/powerpc/cygwin.mh: Obsolete.
2064 * config/powerpc/nm-solaris.h: Obsolete.
2065 * config/powerpc/xm-solaris.h: Obsolete.
2066 * config/powerpc/tm-solaris.h: Obsolete.
2067 * config/powerpc/solaris.mt: Obsolete.
2068 * config/powerpc/tm-ppc-nw.h: Obsolete.
2069 * config/powerpc/ppc-nw.mt: Obsolete.
2070 * TODO: Update.
2071 * NEWS: Update.
2072
063fd668
FN
20732001-04-06 Fernando Nasser <fnasser@redhat.com>
2074
2075 * buildsym.c (record_line): Turn off unused addr bits.
2076
a250df2e
FN
20772001-04-06 Fernando Nasser <fnasser@redhat.com>
2078
2079 From David Deephanphongs <deephan@telocity.com>
2080 * inferior.h: Fix declarations of get_inferior_args and
2081 set_inferior_args, which were missing the trailing 's'.
2082
1fcef334
JH
20832001-04-05 Jeff Holcomb <jeffh@redhat.com>
2084
2085 * monitor.c (monitor_supply_register): Only report an error if we
2086 don't get a valid value.
2087
f032fb6e
EZ
20882001-04-05 Eli Zaretskii <eliz@is.elta.co.il>
2089
2090 * README: Don't mention gdba.el.
2091
0191bed7
EZ
20922001-04-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2093
2094 From Jimmy Guo <guo@cup.hp.com>
2095 * top.c (init_main): set prompt if annotation_level>1,
2096 this is necessary when annotation_level is set to 2 via
2097 --annotate=2 command line option.
2098
4a1968f4
AC
20992001-04-04 Andrew Cagney <ac131313@redhat.com>
2100
2101 Obsolete a29k-*-* host and a29k-*-sym1* and a29k-*-kern* targets.
2102 * configure.tgt (a29k-*-sym1*, a29k-*-kern*): Obsolete.
2103 * configure.host (a29k-*-*): Obsolete.
2104 * Makefile.in (ALLDEPFILES): Remove ultra3-nat.c and
2105 ultra3-xdep.c.
2106 (ultra3-nat.o, ultra3-xdep.o): Obsolete.
2107 * config/a29k/tm-ultra3.h: Obsolete.
2108 * config/a29k/ultra3.mt: Obsolete.
2109 * config/a29k/ultra3.mh: Obsolete.
2110 * config/a29k/nm-ultra3.h: Obsolete.
2111 * config/a29k/xm-ultra3.h: Obsolete.
2112 * ultra3-xdep.c: Obsolete.
2113 * ultra3-nat.c: Obsolete.
2114 * config/a29k/a29k-kern.mt: Obsolete.
2115 * NEWS: Update.
2116 * TODO: Update.
2117
608506ed
CF
2118Wed Apr 4 21:48:42 2001 Christopher Faylor <cgf@cygnus.com>
2119
2120 * main.c: Remove windows.h use.
2121 (gdbtk_test): Use PATH_MAX for home var calculation.
2122 * remote-e7000.c (e7000_parse_device): Accomodate Cygwin as well as
2123 Win32 in colon test.
2124 * ser-tcp.c: Use modern __CYGWIN__ conditional.
2125 * source.c (mod_path): Add __CYGWIN__ conditional to WIN32 test.
2126 (openp): Ditto.
2127 * symfile.c (symfile_bfd_open): Ditto.
608506ed 2128
6457bd47
MH
21292001-04-04 Martin M. Hunt <hunt@redhat.com>
2130
2131 * main.c (captured_main): For GDBtk, don't use tui_fileopen().
2132 Handle all stream setup in gdbtk_init
2133
3df1b9b4
MK
21342001-04-04 Mark Kettenis <kettenis@gnu.org>
2135
2136 * i386-tdep.c (i386_extract_return_value): Don't return the return
2137 value of a void function.
2138 (i386_store_return_value): Likewise.
2139
76f4ea53
AC
21402001-04-03 Andrew Cagney <ac131313@redhat.com>
2141
2142 Obsolete w65-*-* target.
2143 * configure.tgt (w65-*-*): Obsolete.
2144 * config/w65/w65.mt: Obsolete.
2145 * config/w65/tm-w65.h: Obsolete.
2146 * w65-tdep.c: Obsolete.
2147 * NEWS: Update. Fix TiC80 description.
2148 * TODO: Update.
2149
52071915
AC
21502001-04-03 Andrew Cagney <ac131313@redhat.com>
2151
2152 Obsolete tic80-*-* target.
2153 * configure.tgt (tic80-*-*): Obsolete.
2154 * config/tic80/tic80.mt: Obsolete.
2155 * config/tic80/tm-tic80.h: Obsolete.
2156 * tic80-tdep.c: Obsolete.
2157 * TODO: Update
2158 * NEWS: Update.
2159
44eaed12
C
21602001-04-02 J.T. Conklin <jtc@redback.com>
2161
ba79cc81
C
2162 * remote-mips.c (S_IROTH): Moved definition from here.
2163 * gdb_stat.h (S_IROTH): to here.
2164
44eaed12
C
2165 * remote.c (remote_protocol_e, remote_protocol_E): Define.
2166 (set_remote_protocol_e_packet_cmd)
2167 (set_remote_protocol_E_packet_cmd)
2168 (show_remote_protocol_e_packet_command)
2169 (show_remote_protocol_E_packet_command): New functions.
2170 (init_all_packet_configs): Initialize remote_protocol_e and
2171 remote_protocol_E.
2172 (remote_resume, remote_async_resume): Support e/E command
2173 packets.
2174 (show_remote_cmd): Show state of remote_protocol_e and
2175 remote_protocol_E.
2176 (_initialize_remote): Add "set remote step-over-range-packet"
2177 and "set remote step-over-range-w-signal-packet" to CLI.
2178
bb19ff3b
AC
21792001-04-01 Andrew Cagney <ac131313@redhat.com>
2180
2181 Obsolete ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv* and
2182 ns32k-utek-*.
2183 * Makefile.in (ALLDEPFILES): Delete umax-xdep.c and ns32km3-nat.c.
2184 (umax-xdep.o, ns32km3-nat.o): Obsolete.
2185 * configure.tgt (ns32k-*-mach3*, ns32k-utek-sysv*, ns32k-utek-*):
2186 Obsolete.
2187 * configure.host (ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv*):
2188 Obsolete.
2189 * config/ns32k/merlin.mh: Obsolete.
2190 * config/ns32k/merlin.mt: Obsolete.
2191 * config/ns32k/xm-merlin.h: Obsolete.
2192 * config/ns32k/tm-merlin.h: Obsolete.
2193 * config/ns32k/nm-umax.h: Obsolete.
2194 * config/ns32k/umax.mh: Obsolete.
2195 * config/ns32k/umax.mt: Obsolete.
2196 * config/ns32k/xm-umax.h: Obsolete.
2197 * umax-xdep.c: Obsolete.
2198 * config/ns32k/ns32km3.mh: Obsolete.
2199 * config/ns32k/ns32km3.mt: Obsolete.
2200 * config/ns32k/tm-ns32km3.h: Obsolete.
2201 * config/ns32k/xm-ns32km3.h: Obsolete.
2202 * ns32km3-nat.c: Obsolete.
2203 * ns32k-tdep.c (merlin_skip_prologue): Obsolete.
2204 (merlin_frame_num_args): Ditto.
2205 * NEWS: Update.
2206 * TODO: Update.
2207
d6259d75
EZ
22082001-04-02 Eli Zaretskii <eliz@is.elta.co.il>
2209
2210 * config/djgpp/fnchange.lst: Tweak due to
2211 expect/example/chesslib.c.
2212
971ff545
KB
22132001-04-02 Kevin Buettner <kevinb@redhat.com>
2214
2215 * m88k-tdep.c (examine_prologue): Change type of ``insn'' from
2216 unsigned int to unsigned long. Also, fix format string.
2217 (pop_frame): Fix PC_IN_CALL_DUMMY() call so that it doesn't
2218 use an undeclared variable. Also, delete declaration and
2219 initialization of ``fp'' because it is otherwise unused.
2220 * remote-bug.c (sleep): Delete declaration.
2221 (bug_store_register, bug_write_memory, bug_read_memory)
2222 (bug_insert_breakpoint, bug_remove_breakpoint): Fix sprintf()
2223 format statements and cast certain sprintf() arguments to
2224 eliminate warnings.
2225 (bug_load): Likewise for call to printf_filtered().
2226 * config/m88k/tm-m88k.h (FIX_CALL_DUMMY): Eliminate
2227 assignment to ``pc''. The necessary assignment is done in
2228 hand_function_call() after the invocation of FIX_CALL_DUMMY().
2229
4e4f46a1
DB
22302001-03-20 Daniel Berlin <dberlin@redhat.com>
2231
2232 * symtab.c (completion_list_add_name): Remove duplicate string checks,
2233 readline already does this, and it's much faster at it, too.
2234
ba8629a9
EZ
22352001-04-01 Eli Zaretskii <eliz@is.elta.co.il>
2236
2237 * go32-nat.c: Minor tweaks, to pacify the ari script.
2238
7bf0983e
MK
22392001-04-01 Mark Kettenis <kettenis@gnu.org>
2240
f7af9647
MK
2241 * i386-tdep.c (i386_extract_struct_value_address): New function.
2242 * config/i386/tm-i386.h (EXTRACT_STRUCT_VALUE_ADDRESS): Redefine
2243 in terms of i386_extract_struct_value_address.
2244 (i386_extract_struct_value_address): New prototype.
2245
7bf0983e
MK
2246 * i386-linux-nat.c (i386_linux_dr_get): Change type of return
2247 value to `unsigned long'. Change type of `value' to `unsigned
2248 long'.
2249 (i386_linux_dr_set): Change type of second argument to `unsigned
2250 long'.
2251 (i386_linux_dr_set_control): Change type of first argument to
2252 `unsigned long'.
2253 (i386_linux_dr_get_status): Change type of return value to
2254 unsigned long.
2255 * config/i386/nm-linux.h (i386_linux_dr_set_control,
2256 i386_linux_dr_get_status): Adjust prototypes accordingly.
2257
6e4862ff
KB
22582001-03-31 Kevin Buettner <kevinb@redhat.com>
2259
2260 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Change
2261 TRAP_HWBKPT constant to match that in the kernel headers for
2262 Linux/IA-64.
521f1f96 2263
1e8d0a7b
MK
22642001-03-31 Mark Kettenis <kettenis@gnu.org>
2265
0afdd437
MK
2266 * i386bsd-nat.c: Include "gdb_assert.h".
2267 [HAVE_PT_GETDBREGS] (DBREG_DRX): Define if not
2268 already defined.
2269 [HAVE_PT_GETDBREGS] (i386bsd_dr_set, i386bsd_dr_set_control,
2270 i386bsd_dr_set_addr, i386bsd_dr_reset_addr,
2271 i386bsd_dr_get_status): New functions.
2272 * config/i386/nm-fbsd.h [HAVE_PT_GETDBREGS]
2273 (I386_USE_GENERIC_WATCHPOINTS): Define.
2274 Include "i386/nm-i386.h".
2275 (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
2276 I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
2277 (i386bsd_dr_set_control, i386bsd_dr_set_addr,
2278 i386bsd_dr_reset_addr, i386bsd_dr_get_status): New prototypes.
2279 * acconfig.h (HAVE_PT_GETDBREGS): New configure macro.
2280 * configure.in: Cleanup a few comments. Check for PT_GETDBREGS
2281 ptrace request.
2282 * config.in, configure: Regenerate.
2283
4bcc3944
MK
2284 * i386-nat.c (i386_insert_aligned_watchpoint): Set address
2285 register before enabling it by setting the control register.
2286 (i386_remove_aligned_watchpoint): Reset address register after
2287 disabling it by setting the control register.
2288
1e8d0a7b
MK
2289 * i386-tdep.c (i386_extract_return_value): If the type of the
2290 return value is TYPE_STRUCT and the number of fields is one, call
2291 ourselves with TYPE set tp the type of the first field.
2292 (i386_store_return_value): Likewise.
2293 This fixes a problem with returning structs consisting of a single
2294 `float' or `double' on *BSD.
2295
95a85621
MK
22962001-03-30 Mark Kettenis <kettenis@gnu.org>
2297
40564aca
MK
2298 * lin-lwp.c (lin_lwp_resume): Don't mark LWP as not stopped until
2299 we're absolutely sure we're going to resume it.
2300
95a85621
MK
2301 * thread-db.c (check_event): Don't report an error if we encounter
2302 a thread creation event for a thread that's already in the thread
2303 list, since that may legitemately happen. Instead only call
2304 attach_thread if it's not already in the thread list.
2305
2e94c453
AC
23062001-03-28 Andrew Cagney <ac131313@redhat.com>
2307
2308 * config/pa/xm-hppah.h (malloc): Really delete declaration
2309 (MALLOC_INCOMPATIBLE): Really delete macro.
2310 * cli/cli-cmds.c (apropos_command): Use xcalloc.
2311
93d56215
AC
23122001-03-28 Andrew Cagney <ac131313@redhat.com>
2313
2314 * configure.in (build_warnings): Add -Wuninitialized.
2315 * configure: Regenerate.
2316
2317 * v850-tdep.c (v850_scan_prologue): Initialize ``insn2''.
2318 * sparc-tdep.c (sparc64_push_arguments): Add default case to
2319 switch.
2320 * sh-tdep.c (sh_do_fp_register): Replace ``?:'' printf format
2321 expression with if statement.
2322 * mn10200-tdep.c (mn10200_analyze_prologue): Initialize
2323 ``stack_size''.
2324 * mips-tdep.c (show_mipsfpu_command): Add default case to switch.
2325 (mips_dump_tdep): Fix setting of ef_mips_arch.
2326 * mcore-tdep.c (mcore_analyze_prologue): Initialize ``fp_regnum''.
2327 * dsrec.c (make_srec): Always initialize ``binbuf''.
2328 * monitor.c (monitor_read_memory_single): Do not pass an
2329 uninitialized buffer to monitor_error. Make ``i'' more local.
2330
381bab78
AC
23312001-03-28 Andrew Cagney <ac131313@redhat.com>
2332
2333 * MAINTAINERS: Change ns32k target to ,-Werror.
2334
2335 * ns32k-tdep.c: Include "gdbcore.h"
2336 (flip_bytes): Change first argument to void*. Add forward
2337 declaration.
2338 (sign_extend): Add declaration.
2339 (merlin_frame_num_args): Add final else clause to if-else chain.
2340 (umax_frame_num_args): Ditto.
2341 * config/ns32k/tm-umax.h (ns32k_localcount): Declare.
2342 (flip_bytes): Ditto.
2343
b9511b9a
MK
23442001-03-28 Mark Kettenis <kettenis@gnu.org>
2345
b05f2432
MK
2346 * i386-linux-tdep.c (FRAMELESS_SIGNAL): Moved here from
2347 config/i386/nm-linux.h (including comment).
2348 (i386_linux_frame_chain): New function implementing guts of the
2349 former FRAME_CHAIN macro, but using read_memory_unsigned_integer
2350 instead of read_memory_integer.
2351 (i386_linux_frame_saved_pc): Removed doc pointing to
2352 i386/tm-linux.h for an explanation of FRAMELESS_SIGNAL since that
2353 now lives in this file.
2354 * config/i386/tm-linux.h (FRAMELESS_SIGNAL): Moved to
2355 i386-linux-tdep.c (including comment).
2356 (FRAME_CHAIN): Redefined in terms of i386_linux_frame_chain.
2357 (i386_linux_frame_chain): New prototype.
2358
0eebe06a
MK
2359 * gdbserver/low-linux.c [I386_GNULINUX_TARGET]: Cleanup code and
2360 make it work again.
2361 (NUM_FREGS): Redefine to 0.
2362 (NUM_REGS): Redefine as NUM_GREGS.
2363 (i386_register_byte, i386_register_raw_size): Update from
2364 i386-tdep.c. Add comment about their origin.
2365 (regmap, register_u_addr): Take these from i386-linux-nat.c.
2366 (i386_register_u_addr): Removed.
2367
b9511b9a
MK
2368 * i386-linux-nat.c (i386_linux_dr_get): Return 0 if ptrace call
2369 fails instead of calling perror_with_name. This should fix
2370 debugging remote i386 targets with a native Linux/x86 GDB. Add
2371 FIXME for this hack.
2372
3172dc30
C
23732001-03-19 J.T. Conklin <jtc@redback.com>
2374
2375 * arch-utils.c (#include "gdbthread.h"): Removed.
2376 (#include "symfile.h"): Removed.
2377 (XMALLOC): Removed unused macro.
2378 * breakpoint.c (tbreak_command): Removed local declaration.
2379 (awatch_command, do_enable_breakpoint, set_breakpoint_count):
2380 Remove duplicate declarations.
2381 (bpstat_should_step, bpstat_have_active_hw_watchpoints)
2382 (remove_solib_event_breakpoints): Fix indentation botch.
2383 * c-typeprint.c (#include "command.h"): Removed.
2384 (#include "gdbcmd.h"): Removed.
2385 * ch-exp.c (ch_terminal_match_float_literal, parse_expr)
2386 (parse_primval, parse_untyped_expr, parse_opt_untyped_expr):
2387 Removed duplicate declarations.
2388 * ch-typeprint.c (#include "command.h"): Removed.
2389 (#include "gdbcmd.h"): Removed.
2390 * corefile.c (#include "frame.h"): Removed
2391 (#include "symfile.h"): Removed.
2392 (#include "language.h"): Removed.
2393 * dbxread.c (#include "command.h"): Removed.
2394 * environ.c (#include "gdbcore.h"): Removed.
2395 * event-loop.c (#include "top.h"): Removed.
2396 * f-typeprint.c (#include "command.h"): Removed.
2397 (#include "gdbcmd.h"): Removed.
2398 (#include "language.h"): Removed.
2399 (#include "typeprint.h"): Removed.
2400 (#include "frame.h"): Removed.
2401 * gdbtypes.h (print_type_scalar): Removed declaration.
2402 * infcmd.c (#include "completer.h"): Removed.
2403 * language.c (#include "frame.h"): Removed.
2404 * m2-typeprint.c (#include "command.h"): Removed.
2405 (#include "gdbcmd.h"): Removed.
2406 (#include "language.h"): Removed.
2407 * m2-valprint.c (#include "valprint.h"): Removed.
2408 * p-typeprint.c (#include "command.h"): Removed.
2409 (#include "gdbcmd.h"): Removed.
2410 * p-valprint.c (#include "typeprint.h"): Removed.
2411 * parse.c (#include "linespec.h"): Removed.
2412 * regcache.c (#include "frame.h"): Removed.
2413 * remote.c (#include "frame.h"): Removed.
2414 (getpkt_sane): Make static.
2415 * source.c (#include "completer.h"): Removed.
2416 * stack.c (#include "symfile.h"): Removed.
2417 (#include "objfiles.h"): Removed.
2418 * symfile.c (#include "completer.h"): Removed.
2419 * tracepoint.c (#include "completer.h"): Removed.
2420 * values.c (#include "frame.h"): Removed.
2421 * varobj.c (#include "valprint.h"): Removed.
2422 * wrapper.c (#include "frame.h"): Removed.
2423
2424 * memattr.c (create_mem_region): Removed unused variable.
2425 * remote-nrom.c: Removed spurious semicolon after init_nrom_ops.
2426
397b41ad
NC
24272001-03-27 Nick Clifton <nickc@redhat.com>
2428
2429 * remote-rdp.c (rdp_set_command_line): Add missing double quote.
2430
ed817e68
KB
24312001-03-27 Kevin Buettner <kevinb@redhat.com>
2432
2433 * solib-aix5.c (build_so_lib_from_mapfile): Use xfree() instead
2434 of free().
2435
b75e0a6b
EZ
24362001-03-27 Eli Zaretskii <eliz@is.elta.co.il>
2437
2438 * TODO (Cleanups): Remove the item about converting docs to GFDL.
2439
2fc3ac7e
KB
24402001-03-26 Kevin Buettner <kevinb@redhat.com>
2441
2442 * ia64-tdep.c (slotN_contents, replace_slotN_contents): Change
2443 type of ``bundle'' from unsigned char * to char *.
2444 (ia64_get_saved_register): Use alloca() to allocate register
2445 buffers.
2446
224d8953
KB
2447 * solib-aix5.c (build_so_lib_from_mapfile): Fix xasprintf() usage.
2448
37de36c6
KB
24492001-03-26 Kevin Buettner <kevinb@redhat.com>
2450
2451 * proc-utils.h (procfs_ctl_t): New typedef.
2452 * proc-api.c (write_with_trace): Change type of ``opcode'' from
2453 long to procfs_ctl_t. Don't assume that the target has defined
2454 BREAKPOINT. Handle case in which PCRESET is the same as PCUNSET.
2455 * proc-events.c (sys/syscall.h, sys/fault.h): Include conditionally.
2456 * procfs.c (sys/fault.h, sys/syscall.h): Include conditionally.
2457 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t, gdb_premptysysset)
2458 (gdb_praddsysset, gdb_prdelsysset, gdb_pr_issyssetmember):
2459 Conditionally define as appropriate for AIX/non-AIX systems. Use
2460 these defines/typedefs as appropriate elsewhere in file.
2461 (struct procinfo): Change type of saved_sigset and saved_sighold
2462 from sigset_t to gdb_sigset_t. Make saved_exitset and
2463 saved_entryset pointer variables. Add two new fields, num_syscalls
2464 and syscall_names.
2465 (DYNAMIC_SYSCALLS): Define when HAVE_PRSYSENT_T is defined.
2466 (sysset_t_size, sysset_t_alloc): New functions.
2467 (load_syscalls, free_syscalls, find_syscall): New functions for
2468 platforms which define DYNAMIC_SYSCALLS.
2469 (create_procinfo): Call load_syscalls.
2470 (destroy_one_procinfo): Call free_syscalls.
2471 (GDBRESET): Don't define twice.
2472 (proc_modify_flag): Change type of operation code array `arg'
2473 from long to procfs_ctl_t.
2474 (proc_stop_process, proc_wait_for_stop, proc_run_process)
2475 (proc_set_traced_signals, proc_set_traced_faults)
2476 (proc_set_traced_sysentry, proc_set_traced_sysexit)
2477 (proc_set_held_signals, proc_clear_current_fault)
2478 (proc_set_current_signal, proc_clear_current_signal, proc_set_gregs)
2479 (proc_set_fpregs, proc_kill, proc_set_watchpoint): Likewise for `cmd'.
2480 (proc_set_traced_sysentry): Dynamically allocate variable sized
2481 struct gdb_proc_ctl_pcsentry. Also, free it at function exit.
2482 (proc_set_traced_sysexit): Dynamically allocate variable
2483 sized struct gdb_proc_ctl_pcsexit. Also, free it at
2484 function exit.
2485 (proc_get_traced_sysentry, proc_get_traced_sysexit): Add new code
2486 for reading the sysset_t struct on AIX5.
2487 (procfs_debug_inferior): Don't assume that SYS_exit will be
2488 defined. Add new code for finding certain syscalls on AIX5.
2489 (syscall_is_lwp_exit, syscall_is_exit, syscall_is_exec)
2490 (syscall_is_lwp_create): New functions.
2491 (procfs_wait): Restructured code which checks for certain
2492 system calls to use the new syscall_is_... functions.
2493 (procfs_notice_signals): Account for the fact that saved_entryset
2494 and saved_exitset in struct procinfo are now pointers.
2495
25d53da1
KB
24962001-03-26 Kevin Buettner <kevinb@redhat.com>
2497
2498 * symtab.c (find_pc_sect_line): Revise method used for finding
2499 the ending pc.
2500
50e27f84
MK
25012001-03-26 Mark Kettenis <kettenis@gnu.org>
2502
2503 * i386-linux-tdep.c (i386_linux_sigtramp_saved_pc,
2504 i386_linux_sigtramp_saved_sp): Make static.
2505 (i386_linux_frame_saved_pc): New function based on the old
2506 FRAME_SAVED_PC macro, but use read_memory_unsigned_integer instead
2507 of read_memory_integer.
2508 * config/i386/tm-linux.h (sigtramp_saved_pc): Remove definition.
2509 (i386_linux_sigtramp_saved_pc): Remove prototype.
2510 (FRAME_SAVED_PC): Redefine in terms of i386_linux_frame_saved_pc.
2511 (i386_linux_frame_saved_pc): New prototype.
2512
1a5cef06
AC
25132001-03-26 Andrew Cagney <ac131313@redhat.com>
2514
2515 * MAINTAINERS: Document m88k as a ``Known problem in 5.1''.
2516 * TODO (GDB 5.1 - Cleanups): Update.
2517
af802127
AC
25182001-03-26 Andrew Cagney <ac131313@redhat.com>
2519
2520 * fork-child.c (clone_and_follow_inferior): Delete #ifdef
2521 HAVE_VFORK.
2522
22f8ba57
MK
25232001-03-26 Mark Kettenis <kettenis@gnu.org>
2524
5b31405b
MK
2525 * config/i386/tm-symmetry.h (PUSH_ARGUMENTS): #undef.
2526
22f8ba57
MK
2527 * i386-tdep.c (i386_push_arguments, i386_store_struct_return): New
2528 functions.
2529 * config/i386/tm-i386.h (PUSH_ARGUMENTS): New macro.
2530 (STORE_STRUCT_RETURN): Redefine in terms of
2531 i386_store_struct_return.
2532 (i386_push_arguments, i386_store_struct_return): New prototypes.
2533 * config/i386/tm-i386v.h (STORE_STRUCT_RETURN): Remove. It's
2534 definition was identical to the definition in "i386/tm-i386.h" so
2535 the new definition should suffice too.
2536
49baf819 25372001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
4d277981 2538
b78a4f26
EZ
2539 * event-loop.c (toplevel) [!HAVE_POLL] [NO_FD_SET]: Remove unused
2540 definitions for SELECT, NBBY, FD_SETSIZE, NFDBITS, and MASK_SIZE.
2541
4d277981
EZ
2542 * config/djgpp/djconfig.sh: Add copyright notice.
2543
2544 * ser-go32.c (rawclock): Remove prototype; include time.h instead.
2545 (ISR, dos_hookirq, isr_t): Convert K&R definition to ANSI C.
2546 (top level) <string.h>: Include gdb_string.h instead.
2547 (dos_noop, dos_raw, dos_noflush_set_tty_state)
2548 (dos_print_tty_state, dos_info): Remove ATTRIBUTE_UNUSED.
2549
2550 * go32-nat.c (go32_create_inferior): Move the declaration of
2551 `environ' to here from the top level.
2552 (top level) <_initialize_go32_nat>: Remove redundant prototype.
2553 <gdb_string.h>: Include it instead of string.h.
2554 (store_register): Call register_buffer instead of accessing
2555 registers[] directly.
2556 (redir_cmdline_delete, redir_cmdline_parse, redir_to_debugger)
2557 (redir_to_debugger, redir_debug_init) [__DJGPP_MINOR__ < 3]: Put
2558 the function names at the start of the line.
2559 (go32_set_dr): Throw internal_error if the argument is not a valid
2560 debug register number.
2561 (go32_open, go32_close, go32_attach, go32_detach, go32_resume)
2562 (go32_wait, go32_xfer_memory, go32_files_info)
2563 (go32_terminal_info): Remove ATTRIBUTE_UNUSED.
2564
8f3ee2ae
JB
25652001-03-25 Jim Blandy <jimb@redhat.com>
2566
2567 * mips-tdep.c (mips_gdbarch_init): Tweak indentation.
2568
6ec4c4bd
EZ
25692001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2570
2571 From Andrew Cagney <ac131313@redhat.com>
2572
2573 * coffread.c: Include "gdb_assert.h".
2574 (coff_symtab_read): Cast the integer s_sclass to a long before
2575 casting it to a pointer.
2576
b9179dbc
EZ
25772001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2578
2579 From Andrew Cagney <ac131313@redhat.com>
2580
2581 * coffread.c (coff_symtab_read): Initialize
2582 ``fcn_first_line_addr''. Check that the ``.bf'' always preceeds
2583 the ``.ef'' info.
2584 * dbxread.c (find_text_range): Initialize ``start'' and ``end''.
2585
64c4637f
AC
25862001-03-23 Andrew Cagney <ac131313@redhat.com>
2587
2588 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Down grade to
2589 GDB_MULTI_ARCH_PARTIAL from two. SOFTWARE_SINGLE_STEP is not
2590 multi-arch.
2591
2592 * gdbarch.sh (SOFTWARE_SINGLE_STEP): Add.
2593 * gdbarch.h, gdbarch.c: Re-generate.
2594
2595 * target.h (SOFTWARE_SINGLE_STEP_P)
2596 (SOFTWARE_SINGLE_STEP): Delete macro definitions.
2597
61a0eb5b
AC
25982001-03-23 Andrew Cagney <ac131313@redhat.com>
2599
2600 * gdbarch.sh (gdbarch_register_read, gdbarch_register_write): Add.
2601 * gdbarch.h, gdbarch.c: Regenerate.
2602
2603 * regcache.h (regcache_read, regcache_write): Declare.
2604 (registers, register_valid, register_buffer): Add note that these
2605 interfaces are deprecated.
2606
2607 * regcache.c: Include "gdb_assert.h".
2608 (legacy_write_register_gen): Rename write_register_gen.
2609 (legacy_read_register_gen): Rename read_register_gen.
2610 (regcache_read, regcache_write): New function.
2611 (read_register_gen, write_register_gen): New function.
2612 (write_register): Simplify. Use write_register_gen.
2613 (read_register): Ditto using read_register_gen.
2614 (read_signed_register): Ditto.
2615 (read_register_bytes): Ditto!!!!
2616 (supply_register): Add note that CLEANUP_REGISTER_VALUE is being
2617 replaced by gdbarch_register_read.
2618
2619 * TODO (GDB 5.2 - Cleanups): Add list of gdbarch methods to
2620 deprecate.
2621
c2bd2ed9
JB
26222001-03-23 Jim Blandy <jimb@redhat.com>
2623
f34754ee
JB
2624 Fix from Dan Berlin:
2625
c2bd2ed9
JB
2626 * stabsread.c (read_cpp_abbrev): Properly construct the names of
2627 virtual function table pointer fields.
2628
c0e61796
AC
26292001-03-19 Andrew Cagney <ac131313@redhat.com>
2630
2631 * defs.h (xfree, mcalloc, mmalloc, mrealloc, mfree, xmmalloc,
2632 xmrealloc): Move existing declarations to the one place and
2633 re-order to be consistent.
2634 (xmcalloc, xmfree): Declare.
2635 (xmmalloc, xmrealoc): Assume ISO-C - use size_t and void* in
2636 declaration.
2637
2638 * utils.c (size_t): Delete #ifdef defining size_t.
2639 (mmalloc, mrealloc, mcalloc, mfree): Re-order.
2640 (mmalloc, mrealloc, mcalloc): Document as only calls in GDB
2641 corresponding malloc, realloc, calloc.
2642 (mfree): Call free directly.
2643 (xmmalloc, xmrealloc): Clean up. Assume ISO-C.
2644 (xmcalloc, xmfree): New functions. Copy old xcalloc and xfree
2645 function bodies to here.
2646 (xcalloc, xfree): Call xmcalloc and xmfree respectfully.
2647
c65ecaf3
AC
26482001-03-23 Andrew Cagney <ac131313@redhat.com>
2649
2650 * fork-child.c (fork_inferior): Make ``argv'', ``exec_file'' and
2651 ``shell_file'' static locals.
2652
2653 * jv-lang.c (java_link_class_type): Initialize ``field'' and
2654 ``method''.
2655
2656 * jv-valprint.c (java_value_print): Initialize ``next_element''.
2657
207e433e
MK
26582001-03-23 Mark Kettenis <kettenis@gnu.org>
2659
2660 * config/i386/nm-i386.h: Fix formatting and change reference to
2661 i386-tdep.c to i386-nat.c.
2662
6c5cfe5b
DS
26632001-03-23 David Smith <dsmith@redhat.com>
2664
2665 * configure.in: Corrected spelling errors.
2666 * configure: Regenerated.
2667
5300940c
AC
26682001-03-22 Andrew Cagney <ac131313@redhat.com>
2669
2670 * TODO (GDB 5.1 - Cleanups): Add more targets to obsolete.
2671
17e78a56
AC
26722001-03-22 Andrew Cagney <ac131313@redhat.com>
2673
2674 * Makefile.in (NTSSTART): Delete.
2675 (NTSOBS): Delete.
2676 (kdb): Delete target.
2677 * kdb-start.c, stuff.c: Mark as obsolete.
2678 * NEWS: Update.
2679
41899c04
AC
26802001-03-22 Andrew Cagney <ac131313@redhat.com>
2681
2682 * config/pa/xm-hppah.h (HPPA_COMPILER_BUG): Delete. GDB only
2683 compiles using an ISO-C compiler.
2684 (MALLOC_INCOMPATIBLE): Ditto.
2685 * linespec.c (decode_line_1): Delete hack to work around
2686 HPPA_COMPILER_BUG.
2687
88665544
AC
26882001-03-22 Andrew Cagney <ac131313@redhat.com>
2689
2690 * exec.c (xfer_memory): Always initialize section.
2691 * infrun.c (normal_stop): Always initialize source_flag.
2692
a2061976
AC
26932001-03-22 Andrew Cagney <ac131313@redhat.com>
2694
2695 * TODO (Remote Protocol Support): Review. Add notes about ``!'',
2696 non-use of a continue address and typical use of ``q'' packet.
2697
e24d4c64
EZ
26982001-03-22 Eli Zaretskii <eliz@is.elta.co.il>
2699
2700 Make DJGPP use the new unified support for hardware
2701 breakpoints and watchpoints on x86 targets:
2702
2703 * config/i386/nm-go32.h <top level>: Don't include nm-i386v.h,
2704 include nm-i386.h instead.
2705 (TARGET_HAS_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT)
2706 (TARGET_CAN_USE_HARDWARE_WATCHPOINT, STOPPED_BY_WATCHPOINT)
2707 (TARGET_REGION_OK_FOR_HW_WATCHPOINT, DECR_PC_AFTER_HW_BREAK)
2708 (target_stopped_data_address, target_insert_watchpoint)
2709 (target_remove_watchpoint, target_insert_hw_breakpoint)
2710 (target_remove_hw_breakpoint): Don't define.
2711 (I386_USE_GENERIC_WATCHPOINTS, I386_DR_LOW_SET_CONTROL)
2712 (I386_DR_LOW_SET_ADDR, I386_DR_LOW_RESET_ADDR)
2713 (I386_DR_LOW_GET_STATUS): Define to call appropriate go32_*
2714 functions from go32-nat.c.
2715
2716 * config/i386/go32.mh (NATDEPFILES): Add i386-nat.o.
2717
2718 * go32-nat.c <top level>: Remove prototypes for watchpoint-
2719 related functions. Remove definitions of watchpoint-related
2720 macros.
2721 (go32_mourn_inferior): Call i386_cleanup_dregs instead of the
2722 private cleanup_dregs function.
2723 (cleanup_dregs, go32_insert_watchpoint)
2724 (go32_insert_aligned_watchpoint, go32_handle_nonaligned_watchpoint)
2725 (go32_remove_watchpoint, go32_remove_aligned_watchpoint)
2726 (go32_region_ok_for_watchpoint, go32_stopped_by_watchpoint)
2727 (go32_remove_hw_breakpoint, go32_insert_hw_breakpoint): Remove.
2728 (go32_set_dr, go32_set_dr7, go32_get_dr6): New functions.
2729
c26e1c2b
KB
27302001-03-21 Kevin Buettner <kevinb@redhat.com>
2731
2732 * ia64-tdep.c (fetch_instruction): Warn about slot numbers greater
2733 than two instead of generating an error.
2734
272ba48f
JB
27352001-03-21 Jim Blandy <jimb@redhat.com>
2736
2737 * cp-valprint.c: Reformat to bring into line with GNU coding
2738 standards.
2739
84346e11
MK
27402001-03-21 Mark Kettenis <kettenis@gnu.org>
2741
2742 Make Linux use the new unified support for hardware breakpoints
2743 and watchpoints on x86 targets.
2744 * i386-linux-nat.c: Doc fixes. Include "gdb_assert.h".
2745 [HAVE_SYS_DEBUGREG_H]: Include <sys/debugreg.h>.
2746 (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS, DR_CONTROL): Define to
2747 appropriate value if not already defined.
2748 (register_u_addr): New function.
2749 (kernel_u_size): New function.
2750 (i386_linux_dr_get, i386_linux_dr_set): New functions.
2751 (i386_linux_dr_set_control, i386_linux_dr_set_addr,
2752 i386_linux_reset_addr, i386_linux_dr_get_status): New functions.
2753 * config/i386/nm-linux.h: Don't include "nm-i386v.h".
2754 (I386_USE_GENERIC_WATCHPOINTS): Define and include "nm-i386.h".
2755 (TARGET_HAS_HARDWARE_WATCHPOINTS,
2756 TARGET_CAN_USE_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT,
2757 STOPPED_BY_WATCHPOINT, target_insert_watchpoint,
2758 target_remove_watchpoint): Remove macros.
2759 (i386_stopped_by_watchpoint, i386_insert_watchpoint,
2760 i386_remove_watchpoint): Remove prototypes.
2761 (register_u_addr): New prototype.
2762 (REGISTER_U_ADDR): Define in terms of register_u_addr.
2763 (i386_linux_dr_set_control, i386_linux_dr_set_addr,
2764 i386_linux_reset_addr, i386_linux_dr_get_status): New prototypes.
2765 (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
2766 I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
2767 * config/i386/linux.mh (NATDEPFILES): Replace i386v-nat.o with
2768 i386-nat.o.
2769
13b57657
JB
27702001-03-21 Jim Blandy <jimb@redhat.com>
2771
f34754ee
JB
2772 Fix from Dan Berlin:
2773
13b57657
JB
2774 * linespec.c (find_methods): Whitespace differences aren't
2775 significant in *un*mangled method names. Use strcmp_iw to compare
f34754ee 2776 them, not STREQ.
13b57657 2777
eee30e78
AC
27782001-03-21 Andrew Cagney <ac131313@redhat.com>
2779
2780 * gdbarch.sh: Allow a non- multi-arch target to override a
2781 predicate.
2782 * gdbarch.h: Regenerate.
2783
b77be6cf
AC
27842001-03-21 Andrew Cagney <ac131313@redhat.com>
2785
2786 * gdbarch.sh: Avoid use of ``!''.
2787
379d08a1
AC
27882001-03-20 Andrew Cagney <ac131313@redhat.com>
2789
2790 * target.h (enum target_signal): Move definition from here.
2791 * defs.h (enum target_signal): To here.
2792
2793 * config/arc/tm-arc.h (arc_software_single_step): Change type of
2794 first parameter to enum target_signal.
2795 * config/rs6000/tm-rs6000.h (rs6000_software_single_step): Ditto.
2796 * config/sparc/tm-sparc.h (sparc_software_single_step): Ditto.
2797 * rs6000-tdep.c (rs6000_software_single_step): Update.
2798
64485362
AC
27992001-03-20 Andrew Cagney <ac131313@redhat.com>
2800
2801 * frame.h (SIZEOF_FRAME_SAVED_REGS): Report an error if macro
2802 already defined.
2803
2804 From 2000-08-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
2805 * stabsread.c (define_symbol): A parameter ('R'), a local ('r'),
2806 or a reference ('a') can be in a pseudo register.
2807 * infcmd.c (do_registers_info): Must take into account the pseudo
2808 registers to print their value.
2809 (registers_info): Likewise.
2810 * stack.c (frame_info): Likewise.
2811 * frame.h (SIZEOF_FRAME_SAVED_REGS): Save the pseudo registers.
2812
52b98211
EZ
28132001-03-21 Eli Zaretskii <eliz@is.elta.co.il>
2814
2815 Unified support for hardware breakpoints and watchpoints on
2816 x86 targets:
2817
2818 * config/i386/nm-i386.h: New file.
2819
2820 * config/i386/nm-i386.h: (i386_cleanup_dregs)
2821 (i386_insert_watchpoint, i386_remove_watchpoint)
2822 (i386_region_ok_for_watchpoint, i386_stopped_by_hwbp)
2823 (i386_stopped_data_address, i386_insert_hw_breakpoint)
2824 (i386_remove_hw_breakpoint): Declare prototypes.
2825 [I386_USE_GENERIC_WATCHPOINTS] (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2826 Define if not already defined.
2827 (TARGET_REGION_OK_FOR_HW_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT)
2828 (STOPPED_BY_WATCHPOINT, target_stopped_data_address)
2829 (target_insert_watchpoint, target_remove_watchpoint)
2830 (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Define
2831 to call the appropriate i386_* functions.
2832
2833 * i386-nat.c: New file.
2834
2835 * i386-nat.c (I386_DR_CONTROL_MASK, I386_DR_LOCAL_ENABLE)
2836 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
2837 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): New macros.
2838 (dr_mirror, dr_status_mirror, dr_control_mirror, dr_ref_count)
2839 (maint_show_dr): New variables.
2840 (i386_cleanup_dregs, i386_show_dr, i386_length_and_rw_bits)
2841 (i386_insert_aligned_watchpoint, i386_remove_aligned_watchpoint)
2842 (i386_handle_nonaligned_watchpoint, i386_insert_watchpoint)
2843 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
2844 (i386_stopped_data_address, i386_stopped_by_hwbp)
2845 (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): New
2846 functions.
2847 (_initialize_i386_nat): New function.
2848 [I386_USE_GENERIC_WATCHPOINTS]: Add new maint command
2849 `show-debug-regs', sets maint_show_dr to non-zero value and
2850 activates debugging print-outs in functions which insert, remove,
2851 and test watchpoints and hardware breakpoints.
2852
2853 * Makefile.in (i386-nat.o): New target.
2854 (ALLDEPFILES): Add i386-nat.o.
2855
28e9e0f0
MK
28562001-03-21 Mark Kettenis <kettenis@gnu.org>
2857
2858 * i386-tdep.c: Add back _initialize_i386_tdep prototype with
2859 appropriate comment.
2860
e40eccb4
KB
28612001-03-20 Kevin Buettner <kevinb@redhat.com>
2862
2863 * config/alpha/alpha-linux.mh (NATDEPFILES): Use proc-service.o,
2864 thread-db.o, and lin-lwp.o for thread support instead of
2865 linux-thread.o and lin-thread.o.
2866 * config/alpha/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS)
2867 (ATTACH_LWP): Define to use the following lin-lwp.c functions...
2868 (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals)
2869 (lin_lwp_attach_lwp): Declare.
2870
bea7bb93
JB
28712001-03-20 Jim Blandy <jimb@redhat.com>
2872
f34754ee
JB
2873 Fix from Dan Berlin:
2874
bea7bb93
JB
2875 * Makefile.in: Clean up dependencies on ../include/demangle.h.
2876 (demangle_h): New variable.
2877 (jv-typeprint.o, jv-valprint.o, linespec.o): Use it.
2878
b0ed3589
AC
28792001-03-20 Andrew Cagney <ac131313@redhat.com>
2880
2881 * target.h (SOFTWARE_SINGLE_STEP_P): Add empty parameter list.
2882 * breakpoint.c (bpstat_stop_status): Update.
2883 * infrun.c (handle_inferior_event): Ditto.
2884 * mips-tdep.c (mips_dump_tdep): Ditto.
2885 * infrun.c (resume): Ditto.
2886 * infptrace.c (child_resume): Ditto.
2887 * config/mips/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
2888 * config/sh/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
2889 * config/sparc/tm-sparc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
2890 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP_P): Ditto.
2891 * config/arm/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
2892 * config/arc/tm-arc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
2893 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
2894
df087c62
AC
28952001-03-20 Andrew Cagney <ac131313@redhat.com>
2896
2897 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Replace abort
2898 with internal_error.
2899
8bd1f2c6
JB
29002001-03-20 Jim Blandy <jimb@redhat.com>
2901
f34754ee
JB
2902 Fix from Dan Berlin:
2903
8bd1f2c6
JB
2904 * linespec.c (find_methods): Just call CHECK_TYPEDEF on t, rather
2905 than asking for sym_class's type; that's circuitous. Remove
2906 sym_class, since the last use of it is gone.
2907
c97fe386
EZ
29082001-03-20 Eli Zaretskii <eliz@is.elta.co.il>
2909
2910 * breakpoint.c (print_it_typical) <bp_access_watchpoint> [UI_OUT]:
2911 Correct the order of calls to ui_out_field_string and
2912 ui_out_list_begin when bs->old_val is NULL.
2913
486363b6
KB
29142001-03-19 Kevin Buettner <kevinb@redhat.com>
2915
2916 * configure.in (AC_CHECK_HEADERS): Check for existence of nlist.h.
2917 * configure: Regenerate.
2918 * config.in: Regenerate.
2919 * solib-legacy.c (nlist.h): Include if HAVE_NLIST_H is defined.
2920
087bb2e2
KB
29212001-03-19 Kevin Buettner <kevinb@redhat.com>
2922
2923 * config/i386/i386v42mp.mh (NATDEPFILES): List all files on
2924 same line to avoid problems with Unixware 7's make when building
2925 a cross debugger.
2926
3c37485b
AC
29272001-03-19 Andrew Cagney <ac131313@redhat.com>
2928
2929 * defs.h (malloc): Move declaration from here.
2930 * utils.c (malloc): To here.
2931 * config/pa/xm-hppah.h (malloc): Delete declaration.
2932
2933 * gnu-nat.c (make_proc): Use xmalloc instead of malloc.
2934 * hp-psymtab-read.c (hpread_call_pxdb): Ditto.
2935 (hpread_quick_traverse): Ditto.
2936 * infttrace.c (create_thread_info): Ditto.
2937 (kill_inferior): Ditto.
2938 * gnu-nat.c (make_inf): Ditto, and don't check return value.
2939 * procfs.c (proc_update_threads): Ditto.
2940 * valprint.c (print_decimal_chars): Ditto.
2941 * gdbtypes.c (cfront_mangle_name): Use xasprintf instead of
2942 malloc and sprintf.
2943 * remote-rdp.c (rdp_set_command_line): Ditto.
2944
0e52036f
AC
29452001-03-19 Andrew Cagney <ac131313@redhat.com>
2946
2947 * defs.h (realloc): Move declaration from here.
2948 * utils.c (realloc): To here.
2949 * config/pa/xm-hppah.h (realloc): Delete declaration.
2950 * lin-thread.c (insert_thread): Use xrealloc instead of realloc.
2951 * symfile.c (add_filename_language): Ditto.
2952 * event-loop.c (create_file_handler): Ditto.
2953
81b8eb80
AC
29542001-03-19 Andrew Cagney <ac131313@redhat.com>
2955
2956 * defs.h (free): Move declaration from here.
2957 * utils.c (free): To here.
2958 (xfree): Document as the only call to free().
2959 * config/pa/xm-hppah.h (free): Delete declaration.
2960
8cca004a
KB
29612001-03-19 Kevin Buettner <kevinb@redhat.com>
2962
2963 * config/ia64/linux.mh (NATDEPFILES): Add proc-service.o to
2964 this list.
2965
cf4eee44
AC
29662001-03-19 Andrew Cagney <ac131313@redhat.com>
2967
2968 * eval.c (evaluate_subexp): Remove #ifdef __STDC__ and ``inline''.
2969 * config/mips/xm-mips.h (offsetof): Define when !GNUC not !STDC.
2970 * cli/cli-cmds.c (init_cli_cmds): Remove #ifdef __STDC__
2971
1c5b31ef
AC
29722001-03-19 Andrew Cagney <ac131313@redhat.com>
2973
2974 * TODO: List known problems with TUI.
2975
3a0c66d4
AC
29762001-03-19 Andrew Cagney <ac131313@redhat.com>
2977
2978 * MAINTAINERS: Jimmy Guo stepped down as a maintiner (TUI,
2979 gdb.hp).
2980
ce359b09
AC
29812001-03-19 Andrew Cagney <ac131313@redhat.com>
2982
2983 * remote.c (remote_cisco_section_offsets): Do not cast result from
2984 bfd_get_section_name.
2985 (compare_sections_command): Ditto.
2986 (remote_cisco_section_offsets): Make ``p'' a const pointer.
2987 (compare_sections_command): Ditto for ``sectname''.
2988
0b3f98d3
AC
29892001-03-19 Andrew Cagney <ac131313@redhat.com>
2990
2991 From Mon Nov 20 13:59:29 2000 Andrew Cagney <cagney@b1.cygnus.com>:
2992 * valops.c (hand_function_call): Simplify computation of the
2993 address of the pushed argument.
2994
7451d027
AC
29952001-03-17 Andrew Cagney <ac131313@redhat.com>
2996
2997 * p-exp.y (parse_number): Avoid shift overflow when ``long''.
2998 Code copied from c-exp.y.
2999
fb70ab0c
KB
30002001-03-18 Kevin Buettner <kevinb@redhat.com>
3001
3002 * acconfig.h (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
3003 (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
3004 (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New configure macros.
3005 * configure.in (HAVE_STRUCT_LINK_MAP32): Move this test out
3006 of the Solaris procfs testing section. Instead, group with...
3007 (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
3008 (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
3009 (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New <link.h> tests.
3010 * configure: Regenerate.
3011 * config.in: Regenerate.
3012
3013 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Use
3014 new configure macros to choose which (if any) code to
3015 compile in. Added code to explicitly handle *BSD systems;
3016 these systems were previously handled only through macro
3017 redefinition. Also, due to the way the autoconf tests are set
3018 up, this function will no longer return a non-zero value when
3019 GDB is configured as a cross debugger. I.e, cross debuggers
3020 will no longer be able to "accidentally" get the host system's
3021 link map offsets.
3022
8aa16b78
KB
30232001-03-18 Kevin Buettner <kevinb@redhat.com>
3024
3025 * config/i386/nbsd.mh (NATDEPFILES): List all files on the same
3026 line to avoid build problem on NetBSD 1.4.
3027
559e75c0
MC
30282001-03-17 Michael Chastain <chastain@redhat.com>
3029
3030 * win32-nat.c (child_attach): check args for NULL before passing
3031 to strtoul. This fixes PR gdb/43.
3032
fc338970
MK
30332001-03-17 Mark Kettenis <kettenis@gnu.org>
3034
7daede3b
MK
3035 * i387-nat.h: Doc Fix.
3036
fc338970
MK
3037 * i386-tdep.c: Fix formatting.
3038 (i386_get_frame_setup, i386_follow_jump, codestream_read,
3039 codestream_seek, codestream_fill, skip_trampoline_code,
3040 gdb_print_insn_i386, _initialize_i386_tdep): Remove redundant
3041 prototypoes.
3042
e3c6d36d
MK
30432001-03-17 Mark Kettenis <kettenis@gnu.org>
3044
3045 * config/i386/tm-linux.h (TARGET_ANALYZE_FLOATING): Remove. It's
3046 no longer used. Also remove associated FIXME.
3047
4a5c6a1d
AC
30482001-03-16 Andrew Cagney <ac131313@redhat.com>
3049
3050 * gdbarch.sh: Add classes ``m'' and ``M'' for pure multi-arch. Do
3051 not generate macro wrappers for multi-arch functions or
3052 predicates.
3053 (class_is_info_p, class_is_predicate_p): Update.
3054 (class_is_function_p, class_is_variable_p): Ditto.
3055 (class_is_multiarch_p): New class function.
3056
7256e1a5
C
30572001-03-16 J.T. Conklin <jtc@redback.com>
3058
3059 * config/h8300/tm-h8300.h (FRAME_ARGS_ADDRESS): Changed to use
3060 h8300_frame_args_address from frame_args_address.
3061 (FRAME_LOCALS_ADDRESS): Changed to use h8300_frame_locals_address
3062 from frame_locals_address.
3063 (PRINT_REGISTER_HOOK): Changed to use h8300_print_register_hook
3064 from print_register_hook.
3065 (h8300_frame_args_address): Declare.
3066 (h8300_frame_find_saved_regs): Declare.
3067 (h8300_frame_locals_address): Declare.
3068 (h8300_frame_saved_pc): Declare.
3069 (h8300_pop_frame): Declare.
3070 (h8300_print_register_hook): Declare.
3071 * h8300-tdep.c (h8300_frame_find_saved_regs): Removed declaration.
3072 (h8300_frame_args_address): Renamed from frame_args_address.
3073 (h8300_frame_locals_address): Renamed from frame_locals_address.
3074 (h8300_pop_frame): Renamed from pop_frame.
3075 (h8300_print_register_hook): Renamed from print_register_hook.
3076
435b259c
KB
30772001-03-16 Kevin Buettner <kevinb@redhat.com>
3078
3079 * solib-svr4.c (bfd_lookup_symbol): Change type of
3080 ``storage_needed'' from unsigned int to long in order to
3081 match return type of bfd_get_symtab_upper_bound() and
3082 bfd_get_dynamic_symtab_upper_bound().
3083 * solib-aix5.c (bfd_lookup_symbol): Likewise. Also, eliminate
3084 REASONABLE_LIMIT hack which had been added to work around this
3085 problem.
3086
80117be2
KB
30872001-03-15 Kevin Buettner <kevinb@redhat.com>
3088
3089 * solib-aix5.c (bfd_lookup_symbol, build_so_list_from_mapfile)
3090 (aix5_relocate_main_executable, aix5_clear_solib): Replace calls
3091 to free() with calls to xfree().
3092 (bfd_lookup_symbol): Eliminate use of PTR.
3093 (build_so_list_from_mapfile): Use xasprintf() instead of sprintf().
3094
77cd5909
MH
30952001-03-15 Martin Hunt <hunt@redhat.com>
3096
3097 * linespec.c (decode_line_1): Remove trailing quote
3098 when parsing double quotes.
3099
f7f5a202
KB
31002001-03-15 Kevin Buettner <kevinb@redhat.com>
3101
3102 * uw-thread.c (read_thr_debug, read_map, read_lwp, thread_iter)
3103 (libthread_stub, libthread_init): Pass NULL for the mem_attrib
3104 argument in the to_xfer_memory calls.
3105
0d35ddba
AC
31062001-03-15 Andrew Cagney <ac131313@redhat.com>
3107
3108 * MAINTAINERS: Fix typo - w65 not w64. Still doesn't build.
3109 * TODO (GDB 5.1 - Cleanups): Add status of targets being obsoleted.
3110
043780a1
AC
31112001-03-15 Andrew Cagney <ac131313@redhat.com>
3112
3113 * wince.c (child_xfer_memory): Add attrib parameter.
3114 * symm-nat.c (child_xfer_memory): Ditto.
3115 * mac-nat.c (child_xfer_memory): Ditto.
3116 * infttrace.c (child_xfer_memory): Ditto.
3117 * procfs.c (procfs_xfer_memory): Ditto.
3118 * lin-thread.c (thread_db_xfer_memory): Ditto.
3119 * gnu-nat.c (gnu_xfer_memory): Ditto.
3120
9b9c068d
AC
31212001-03-14 Andrew Cagney <ac131313@redhat.com>
3122
3123 * NEWS: Mention that Harris/CXUX m88k is obsolete.
3124
f88e2c52
AC
31252001-03-13 Andrew Cagney <ac131313@redhat.com>
3126
3127 * config/mips/tm-mips.h: Include "regcache.h" for macros refering
3128 to regcache functions.
3129 * config/m68k/tm-m68k.h: Ditto.
3130 * config/i386/tm-i386v.h: Ditto.
3131 * config/mcore/tm-mcore.h: Ditto.
3132 * config/m88k/tm-m88k.h: Ditto.
3133 * config/m68k/tm-news.h: Ditto.
3134 * config/m68k/tm-linux.h: Ditto.
3135 * config/m68k/tm-delta68.h: Ditto.
3136 * config/m68k/nm-sun3.h: Ditto.
3137 * config/m32r/tm-m32r.h: Ditto.
3138 * config/i386/tm-symmetry.h: Ditto.
3139 * config/i386/tm-sun386.h: Ditto.
3140 * config/i386/tm-i386.h: Ditto.
3141 * config/i386/nm-symmetry.h: Ditto.
3142 * config/i386/nm-sun386.h: Ditto.
3143 * config/i386/nm-ptx4.h: Ditto.
3144 * config/i386/nm-i386mach.h: Ditto.
3145 * config/h8500/tm-h8500.h: Ditto.
3146 * config/h8300/tm-h8300.h: Ditto.
3147 * config/fr30/tm-fr30.h: Ditto.
3148 * config/d30v/tm-d30v.h: Ditto.
3149 * config/arm/tm-arm.h: Ditto.
3150 * config/arc/tm-arc.h: Ditto.
3151 * config/alpha/tm-alpha.h: Ditto.
3152 * config/a29k/tm-vx29k.h: Ditto.
3153 * config/a29k/tm-a29k.h: Ditto.
3154 * config/w65/tm-w65.h: Ditto.
3155 * config/vax/tm-vax.h: Ditto.
3156 * config/v850/tm-v850.h: Ditto.
3157 * config/tic80/tm-tic80.h: Ditto.
3158 * config/sparc/tm-sparclite.h: Ditto.
3159 * config/sparc/tm-sparclet.h: Ditto.
3160 * config/sparc/tm-sparc.h: Ditto.
3161 * config/sparc/nm-sun4sol2.h: Ditto.
3162 * config/sparc/nm-sun4os4.h: Ditto.
3163 * config/sparc/nm-nbsd.h: Ditto.
3164 * config/powerpc/nm-solaris.h: Ditto.
3165 * config/pa/tm-hppao.h: Ditto.
3166 * config/pa/tm-hppa.h: Ditto.
3167 * config/pa/nm-hppab.h: Ditto.
3168 * config/ns32k/tm-umax.h: Ditto.
3169 * config/ns32k/tm-merlin.h: Ditto.
3170 * config/nm-m3.h: Ditto.
3171 * config/nm-gnu.h: Ditto.
3172
0981ead9
AC
31732001-03-14 Andrew Cagney <ac131313@redhat.com>
3174
3175 * MAINTAINERS: Update list of targets. Mark arm-* and v850-elf as
3176 broken. Mark sh-*, ia64-linux and ns32k-netbsd as buildable.
3177 Specify an m88k target. Include sample GAWK script to generate
3178 target list. Delete non-existant romp target.
3179 * TODO (GDB 5.1 - Cleanups): Update.
3180
91c1720e
KS
31812001-03-14 Keith Seitz <keiths@cygnus.com>
3182
3183 * linespec.c (decode_line_1): Skip argptr over a leading
3184 double quote. Prevents alloc of 0 bytes and memcpy of -1 bytes.
3185
3cc122b3
KB
31862001-03-14 Kevin Buettner <kevinb@redhat.com>
3187
3188 * config/djgpp/fnchange.lst (ia64-aix-nat.c): Add entry.
3189
5bb367b1
AC
31902001-03-13 Andrew Cagney <ac131313@redhat.com>
3191
3192 * ui-out.h: Remove #if __STDC__, assume an ISO-C compiler.
3193 * m3-nat.c: Ditto.
3194 * p-lang.h: Ditto.
3195 * printcmd.c (printf_command): Ditto.
3196 * ch-exp.c (match_integer_literal): Ditto.
3197 * scm-tags.h: Ditto.
3198 * ser-go32.c: Ditto.
3199 * hppa-tdep.c (unwind_command): Ditto.
3200 * defs.h (volatile): Delete macro definition. Assume __STDC__.
3201 * remote-adapt.c (volatile): Ditto.
3202 * remote-eb.c (volatile): Ditto.
3203 * remote-mm.c (volatile): Ditto.
3204 * defs.h (alloca): Assume __STDC__, declare returning void *.
3205
a728f042
AC
32062001-03-08 Andrew Cagney <ac131313@redhat.com>
3207
3208 * inferior.h (ARCH_NUM_REGS): Delete definition.
3209 * stack.c (frame_info): Use NUM_REGS, not ARCH_NUM_REGS.
3210 * regcache.c (registers_changed): Ditto.
3211 (registers_fetched): Ditto.
3212 * infptrace.c (fetch_inferior_registers): Ditto.
3213 (store_inferior_registers): Ditto.
3214 * infcmd.c (do_registers_info): Ditto.
3215 (registers_info): Ditto.
3216 * i386-linux-nat.c (old_fetch_inferior_registers): Ditto.
3217 (old_store_inferior_registers): Ditto.
3218 * gdbserver/low-linux.c (register_addr): Ditto.
3219 * gdbserver/low-hppabsd.c (register_addr): Ditto.
3220 * core-aout.c: Don't include "inferior.h".
3221 (fetch_core_registers): Use NUM_REGS not ARCH_NUM_REGS.
3222 (register_addr): Ditto.
3223
f48ff60a
FN
32242001-03-13 Fernando Nasser <fnasser@redhat.com>
3225
3226 From Steven Johnson <sjohnson@neurizon.net>
3227 * cli/cli-script.c (define_command): Fix setting of post hooks.
3228
305d65ca
MK
32292001-03-13 Mark Kettenis <kettenis@gnu.org>
3230
3231 * i386-linux-tdep.c: Fix formatting and clarify comments.
3232 (i386_linux_svr4_fetch_link_map_offsets): Use NULL instead of 0
3233 where appropriate.
3234
bf62e5b4
AC
32352001-03-12 Andrew Cagney <ac131313@redhat.com>
3236
3237 * gnu-nat.c: Include "gdb_assert.h" instead of <assert.h>.
3238 (proc_update_sc): Use gdb_assert instead of assert.
3239 (proc_abort): Ditto.
3240 (inf_set_step_thread): Ditto.
3241 (gnu_wait): Ditto.
3242 (S_exception_raise_request): Ditto.
3243 (gnu_terminal_init_inferior): Ditto.
3244
21479ded
KB
32452001-03-09 Kevin Buettner <kevinb@redhat.com>
3246
3247 * Makefile.in (solib-svr4.o): Depend on solib-svr4.c, not solib.c.
3248 (solib-legacy.o): New makefile target.
3249 * solib-legacy.c: New file.
3250 * solib-svr4.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3251 (default_svr4_fetch_link_map_offsets): Delete.
3252 (set_solib_svr4_fetch_link_map_offsets): Declare.
3253 (legacy_svr4_fetch_link_map_offsets_hook): Declare.
3254 * solib-svr4.c (elf/common.h): Include.
3255 (link.h): Only include for SunOS shared library support.
3256 (_SYSCALL32): Don't define.
3257 (SVR4_FETCH_LINK_MAP_OFFSETS): Define.
3258 (default_svr4_fetch_link_map_offsets): Made static; added forward
3259 declaration.
3260 (fetch_link_map_offsets): New static global.
3261 (legacy_svr4_fetch_link_map_offsets_hook): New global variable.
3262 (default_svr4_fetch_link_map_offsets): Rewritten. The guts
3263 of what used to be in this function now reside in
3264 legacy_svr4_fetch_link_map_offsets() in solib-legacy.c.
3265 (open_symbol_file_object): Fix declaration in SunOS section
3266 of the code.
3267 (set_solib_svr4_fetch_link_map_offsets): New extern function.
3268 (init_fetch_link_map_offsets): New static function.
3269 (_initialize_svr4_solib): Put static global fetch_link_map_offsets
3270 under multiarch control.
3271
3272 * config/alpha/alpha-linux.mt (TDEPFILES): Add solib-legacy.o to
3273 list.
3274 * config/alpha/fbsd.mh (NATDEPFILES): Likewise.
3275 * config/arm/linux.mt (TDEPFILES): Likewise.
3276 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3277 * config/i386/i386dgux.mh (NATDEPFILES): Likewise.
3278 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
3279 * config/i386/i386sco5.mh (NATDEPFILES): Likewise.
3280 * config/i386/i386sol2.mt (TDEPFILES): Likewise.
3281 * config/i386/i386v4.mh (NATDEPFILES): Likewise.
3282 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
3283 * config/i386/linux.mt (TDEPFILES): Likewise.
3284 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
3285 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3286 * config/i386/ncr3000.mt (TDEPFILES): Likewise.
3287 * config/i386/ptx4.mh (XDEPFILES): Likewise.
3288 * config/i386/sun386.mt (TDEPFILES): Likewise.
3289 * config/ia64/linux.mt (TDEPFILES): Likewise.
3290 * config/m68k/linux.mt (TDEPFILES): Likewise.
3291 * config/m68k/m68kv4.mh (NATDEPFILES): Likewise.
3292 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
3293 * config/m68k/sun2os4.mt (TDEPFILES): Likewise.
3294 * config/m68k/sun3os4.mt (TDEPFILES): Likewise.
3295 * config/m88k/delta88v4.mh (NATDEPFILES): Likewise.
3296 * config/mips/mipsv4.mh (NATDEPFILES): Likewise.
3297 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
3298 * config/powerpc/linux.mt (TDEPFILES): Likewise.
3299 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
3300 * config/powerpc/solaris.mh (NATDEPFILES): Likewise.
3301 * config/sh/linux.mt (TDEPFILES): Likewise.
3302 * config/sparc/linux.mt (TDEPFILES): Likewise.
3303 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
3304 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
3305 * config/sparc/sp64linux.mt (TDEPFILES): Likewise.
3306 * config/sparc/sun4os4.mt (TDEPFILES): Likewise.
3307 * config/sparc/sun4sol2.mh (NATDEPFILES): Likewise.
3308
d7fa9de0
KB
33092001-03-09 Kevin Buettner <kevinb@redhat.com>
3310
3311 * utils.c (xmrealloc, xcalloc): Return NULL for zero-sized requests.
3312
f8241bd1
AC
33132001-03-09 Andrew Cagney <ac131313@redhat.com>
3314
3315 * MAINTAINERS (Write After Approval): Update Philip Blundell.
3316
e6b4b0c2
KS
33172001-03-09 Keith Seitz <keiths@cygnus.com>
3318
3319 * MAINTAINERS: Add myself to write after approval list.
3320
96836138
MK
33212001-03-09 Mark Kettenis <kettenis@gnu.org>
3322
3323 * i387-tdep.c (print_i387_status_word): Fix printing of Stack
3324 fault flag. It is bit 6 of the x87 FPU status word, not bit 7.
3325
1b594327
AC
33262001-03-08 Andrew Cagney <ac131313@redhat.com>
3327
3328 * configure.host (m88*-harris-cxux*): Mark as obsolete.
3329 * configure.tgt: Ditto.
3330 * config/m88k/xm-cxux.h: Ditto.
3331 * config/m88k/tm-cxux.h: Ditto.
3332 * config/m88k/nm-cxux.h: Ditto.
3333 * config/m88k/cxux.mt: Ditto.
3334 * config/m88k/cxux.mh: Ditto.
3335
4a32a1e4
AC
33362001-03-08 Andrew Cagney <ac131313@redhat.com>
3337
3338 * Makefile.in: Delete rules for obsolete files.
3339
ec9a3449
DT
3340Thu Mar 8 15:43:40 2001 David Taylor <taylor@redhat.com>
3341
3342 * stack.c (parse_frame_specification): For one argument case,
3343 handle the situation where the argument is an integer, not an
3344 address -- arguably the most common case. This matters on
3345 targets where pointers and addresses are different.
3346
a50c34dc
AC
33472001-03-08 Andrew Cagney <ac131313@redhat.com>
3348
3349 * TODO: Revise 5.1 list. Delete PARAMS task. Add coding standard
3350 review. Clarify GNU/LINUX/sparc. Move other tasks to 5.2 or
3351 general.
3352
cfc046cf
AC
33532001-03-07 Andrew Cagney <ac131313@redhat.com>
3354
3355 * TODO (GDB 5.1 Known Problems): Document problem of building GDB
3356 with SID on Solaris 8.
3357
39424bef
MK
33582001-03-07 Mark Kettenis <kettenis@gnu.org>
3359
3360 * defs.h: Provide prototypes for floatformat_is_negative,
3361 floatformat_is_nan and floatformat_mantissa.
3362 * utils.c: Include "gdb_assert.h".
3363 (floatformat_is_negative): New function.
3364 (floatformat_is_nan): New function.
3365 (floatformat_mantissa): New function.
3366 * valprint.c: Include "floatformat.h".
3367 (print_floating): Get rid of the Linux-specific
3368 TARGET_ANALYZE_FLOATING macro and rewrite NaN detection with the
3369 help these new functions. Print NaN's in a format conforming to
3370 ISO C99.
3371
7a1bd56a
EZ
33722001-03-07 Eli Zaretskii <eliz@is.elta.co.il>
3373
3374 * top.c (init_main): Make `set history file name' complete on file
3375 names.
3376
5565b556
C
33772001-03-06 J.T. Conklin <jtc@redback.com>
3378
21a12a30
C
3379 * Makefile.in (LINTFLAGS): Update to contain all of the macros
3380 which define include paths used when compiling.
3381
3382 * util.c (savestring, msavestring): Change type of length argument.
3383 * defs.h (savestring, msavestring): Update to match.
3384
5565b556
C
3385 * symtab.h (decode_line_1): Removed declaration.
3386
3387 * symfile.c (#include <assert.h>): Removed.
3388
3389 * arch-utils.c (#include <ctype.h>): Removed.
3390 * c-typeprint.c: Likewise.
3391 * dbxread.c: Likewise.
3392 * gdbtypes.c: Likewise.
3393 * target.c: Likewise.
3394 * os9kread.c: Likewise.
3395
3396 * c-valprint.c (#include "demangle.h"): Removed.
3397 * ch-typeprint.c: Likewise.
3398 * eval.c: Likewise.
3399 * f-typeprint.c: Likewise.
3400 * f-valprint.c: Likewise.
3401 * m2-typeprint.c: Likewise.
3402 * typeprint.c: Likewise.
3403 * p-typeprint.c: Likewise.
3404 * valarith.c: Likewise.
3405 * valprint.c: Likewise.
3406
3407 * m2-typeprint.c (#include "gdb_string.h"): Removed.
3408 * nlmread.c: Likewise.
3409
3410 * mdebugread.c (#include "gdb-stabs.h"): Removed.
3411 * minsyms.c: Likewise.
3412 * mipsread.c: Likewise.
3413 * nlmread.c: Likewise.
3414
3415 * m2-typeprint.c (#include "obstack.h"): Removed.
3416 * m2-valprint.c: Likewise.
3417
3418 * event-loop.c (#include <setjmp.h>): Removed.
3419
e8be95ae
SS
34202001-03-06 Stan Shebs <shebs@apple.com>
3421
3422 * MAINTAINERS: Remove self from specific maintenance domains
3423 (macos, gdbserver, documentation, testsuite).
3424
b6ba6518
KB
34252001-03-06 Kevin Buettner <kevinb@redhat.com>
3426
3427 * 29k-share/udi/udip2soc.c, Makefile.in, a29k-tdep.c,
3428 a68v-nat.c, abug-rom.c, aclocal.m4, alpha-nat.c, alpha-tdep.c,
3429 annotate.c, annotate.h, arc-tdep.c, arch-utils.c,
3430 arch-utils.h, arm-tdep.c, ax-gdb.c, ax-gdb.h, ax-general.c,
3431 ax.h, bcache.c, bcache.h, blockframe.c, breakpoint.c,
3432 breakpoint.h, buildsym.c, buildsym.h, c-exp.y, c-lang.c,
3433 c-lang.h, c-typeprint.c, c-valprint.c, call-cmds.h, ch-exp.c,
3434 ch-lang.c, ch-lang.h, ch-typeprint.c, ch-valprint.c,
3435 cli/cli-cmds.h, cli/cli-decode.c, cli/cli-decode.h,
3436 cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.h,
3437 cli/cli-utils.h, cli-out.c, cli-out.h, coff-solib.c,
3438 coff-solib.h, coffread.c, command.h, complaints.c,
3439 complaints.h, completer.c, completer.h,
3440 config/a29k/nm-ultra3.h, config/a29k/tm-a29k.h,
3441 config/a29k/tm-ultra3.h, config/a29k/tm-vx29k.h,
3442 config/a29k/xm-ultra3.h, config/alpha/nm-fbsd.h,
3443 config/alpha/nm-linux.h, config/alpha/nm-osf.h,
3444 config/alpha/nm-osf2.h, config/alpha/nm-osf3.h,
3445 config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h,
3446 config/alpha/xm-alphalinux.h, config/alpha/xm-alphaosf.h,
3447 config/alpha/xm-fbsd.h, config/arc/tm-arc.h,
3448 config/arm/nm-linux.h, config/arm/tm-arm.h,
3449 config/arm/tm-embed.h, config/d10v/tm-d10v.h,
3450 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
3451 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
3452 config/i386/nm-fbsd.h, config/i386/nm-gnu.h,
3453 config/i386/nm-i386bsd.h, config/i386/nm-i386mach.h,
3454 config/i386/nm-i386sco.h, config/i386/nm-i386sol2.h,
3455 config/i386/nm-i386v.h, config/i386/nm-i386v4.h,
3456 config/i386/nm-i386v42mp.h, config/i386/nm-linux.h,
3457 config/i386/nm-nbsd.h, config/i386/nm-nbsdelf.h,
3458 config/i386/nm-ptx4.h, config/i386/nm-sun386.h,
3459 config/i386/nm-symmetry.h, config/i386/tm-cygwin.h,
3460 config/i386/tm-fbsd.h, config/i386/tm-i386.h,
3461 config/i386/tm-i386aix.h, config/i386/tm-i386bsd.h,
3462 config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h,
3463 config/i386/tm-i386m3.h, config/i386/tm-i386mk.h,
3464 config/i386/tm-i386nw.h, config/i386/tm-i386os9k.h,
3465 config/i386/tm-i386sco5.h, config/i386/tm-i386sol2.h,
3466 config/i386/tm-i386v.h, config/i386/tm-i386v4.h,
3467 config/i386/tm-i386v42mp.h, config/i386/tm-linux.h,
3468 config/i386/tm-nbsd.h, config/i386/tm-ptx.h,
3469 config/i386/tm-ptx4.h, config/i386/tm-sun386.h,
3470 config/i386/tm-symmetry.h, config/i386/tm-vxworks.h,
3471 config/i386/xm-fbsd.h, config/i386/xm-i386bsd.h,
3472 config/i386/xm-i386gnu.h, config/i386/xm-i386m3.h,
3473 config/i386/xm-i386mach.h, config/i386/xm-i386mk.h,
3474 config/i386/xm-i386sco.h, config/i386/xm-i386v4.h,
3475 config/i386/xm-linux.h, config/i386/xm-nbsd.h,
3476 config/i386/xm-ptx.h, config/i386/xm-ptx4.h,
3477 config/i386/xm-sun386.h, config/i386/xm-symmetry.h,
3478 config/i960/tm-i960.h, config/i960/tm-mon960.h,
3479 config/i960/tm-nindy960.h, config/i960/tm-vx960.h,
3480 config/ia64/nm-aix.h, config/ia64/nm-linux.h,
3481 config/ia64/tm-aix.h, config/ia64/tm-ia64.h,
3482 config/ia64/tm-linux.h, config/ia64/xm-aix.h,
3483 config/ia64/xm-linux.h, config/m68k/nm-apollo68b.h,
3484 config/m68k/nm-delta68.h, config/m68k/nm-dpx2.h,
3485 config/m68k/nm-hp300bsd.h, config/m68k/nm-hp300hpux.h,
3486 config/m68k/nm-linux.h, config/m68k/nm-sun3.h,
3487 config/m68k/tm-apollo68b.h, config/m68k/tm-cisco.h,
3488 config/m68k/tm-dpx2.h, config/m68k/tm-es1800.h,
3489 config/m68k/tm-hp300bsd.h, config/m68k/tm-hp300hpux.h,
3490 config/m68k/tm-isi.h, config/m68k/tm-linux.h,
3491 config/m68k/tm-m68k.h, config/m68k/tm-m68kv4.h,
3492 config/m68k/tm-mac.h, config/m68k/tm-monitor.h,
3493 config/m68k/tm-nbsd.h, config/m68k/tm-news.h,
3494 config/m68k/tm-os68k.h, config/m68k/tm-sun3.h,
3495 config/m68k/tm-vx68.h, config/m68k/xm-3b1.h,
3496 config/m68k/xm-apollo68b.h, config/m68k/xm-dpx2.h,
3497 config/m68k/xm-hp300bsd.h, config/m68k/xm-hp300hpux.h,
3498 config/m68k/xm-linux.h, config/m68k/xm-m68kv4.h,
3499 config/m68k/xm-mpw.h, config/m68k/xm-news.h,
3500 config/m68k/xm-sun2.h, config/m68k/xm-sun3.h,
3501 config/m68k/xm-sun3os4.h, config/m88k/nm-delta88v4.h,
3502 config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h,
3503 config/m88k/tm-m88k.h, config/m88k/xm-cxux.h,
3504 config/m88k/xm-delta88.h, config/m88k/xm-delta88v4.h,
3505 config/m88k/xm-dgux.h, config/mcore/tm-mcore.h,
3506 config/mips/nm-irix3.h, config/mips/nm-irix4.h,
3507 config/mips/nm-irix5.h, config/mips/nm-mips.h,
3508 config/mips/nm-news-mips.h, config/mips/tm-bigmips.h,
3509 config/mips/tm-embed.h, config/mips/tm-embed64.h,
3510 config/mips/tm-embedl.h, config/mips/tm-embedl64.h,
3511 config/mips/tm-irix3.h, config/mips/tm-irix5.h,
3512 config/mips/tm-mips.h, config/mips/tm-mips64.h,
3513 config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h,
3514 config/mips/tm-tx39.h, config/mips/tm-tx39l.h,
3515 config/mips/tm-vr4100.h, config/mips/tm-vr4300.h,
3516 config/mips/tm-vr4300el.h, config/mips/tm-vr4xxx.h,
3517 config/mips/tm-vr4xxxel.h, config/mips/tm-vr5000.h,
3518 config/mips/tm-vr5000el.h, config/mips/xm-irix3.h,
3519 config/mips/xm-irix4.h, config/mips/xm-irix5.h,
3520 config/mips/xm-mips.h, config/mips/xm-mipsm3.h,
3521 config/mips/xm-mipsv4.h, config/mips/xm-news-mips.h,
3522 config/mips/xm-riscos.h, config/mn10200/tm-mn10200.h,
3523 config/mn10300/tm-mn10300.h, config/nm-gnu.h,
3524 config/nm-linux.h, config/nm-lynx.h, config/nm-m3.h,
3525 config/nm-sysv4.h, config/none/nm-none.h,
3526 config/none/tm-none.h, config/none/xm-none.h,
3527 config/ns32k/nm-nbsd.h, config/ns32k/nm-umax.h,
3528 config/ns32k/tm-merlin.h, config/ns32k/tm-nbsd.h,
3529 config/ns32k/tm-ns32km3.h, config/ns32k/tm-umax.h,
3530 config/ns32k/xm-merlin.h, config/ns32k/xm-ns32km3.h,
3531 config/pa/nm-hppab.h, config/pa/nm-hppah.h,
3532 config/pa/nm-hppao.h, config/pa/tm-hppa.h,
3533 config/pa/tm-hppa64.h, config/pa/tm-hppah.h,
3534 config/pa/xm-hppab.h, config/pa/xm-hppah.h,
3535 config/powerpc/nm-aix.h, config/powerpc/nm-linux.h,
3536 config/powerpc/nm-macos.h, config/powerpc/nm-nbsd.h,
3537 config/powerpc/tm-cygwin.h, config/powerpc/tm-linux.h,
3538 config/powerpc/tm-macos.h, config/powerpc/tm-ppc-aix.h,
3539 config/powerpc/tm-ppc-eabi.h, config/powerpc/tm-ppc-nw.h,
3540 config/powerpc/tm-ppcle-eabi.h, config/powerpc/tm-solaris.h,
3541 config/powerpc/xm-aix.h, config/powerpc/xm-linux.h,
3542 config/powerpc/xm-mpw.h, config/rs6000/nm-rs6000.h,
3543 config/rs6000/tm-rs6000.h, config/rs6000/tm-rs6000ly.h,
3544 config/rs6000/xm-aix4.h, config/rs6000/xm-rs6000.h,
3545 config/sh/tm-linux.h, config/sh/tm-sh.h, config/sh/tm-wince.h,
3546 config/sparc/nm-linux.h, config/sparc/nm-nbsd.h,
3547 config/sparc/nm-nbsdelf.h, config/sparc/nm-sparclynx.h,
3548 config/sparc/nm-sun4os4.h, config/sparc/nm-sun4sol2.h,
3549 config/sparc/tm-linux.h, config/sparc/tm-sp64.h,
3550 config/sparc/tm-sp64sim.h, config/sparc/tm-sparc.h,
3551 config/sparc/tm-sparclet.h, config/sparc/tm-sparclite.h,
3552 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
3553 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
3554 config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h,
3555 config/tic80/tm-tic80.h, config/tm-linux.h, config/tm-lynx.h,
3556 config/tm-sysv4.h, config/v850/tm-v850.h, config/vax/tm-vax.h,
3557 config/w65/tm-w65.h, config/xm-aix4.h, config/xm-lynx.h,
3558 config/xm-mpw.h, config/xm-nbsd.h, config/xm-sysv4.h,
3559 config/z8k/tm-z8k.h, configure.in, core-aout.c, core-regset.c,
3560 core-sol2.c, corefile.c, corelow.c, cp-valprint.c,
3561 cpu32bug-rom.c, cxux-nat.c, d10v-tdep.c, d30v-tdep.c,
3562 dbug-rom.c, dbxread.c, dcache.c, dcache.h, defs.h,
3563 delta68-nat.c, demangle.c, dink32-rom.c, dpx2-nat.c, dsrec.c,
3564 dstread.c, dve3900-rom.c, dwarf2read.c, dwarfread.c,
3565 elfread.c, environ.c, environ.h, eval.c, event-loop.c,
3566 event-loop.h, event-top.c, exec.c, expprint.c, f-exp.y,
3567 f-lang.c, f-lang.h, f-typeprint.c, f-valprint.c, findvar.c,
3568 fork-child.c, fr30-tdep.c, frame.c, frame.h, gdb-events.c,
3569 gdb-events.h, gdb-events.sh, gdb-stabs.h, gdb.1, gdb_string.h,
3570 gdb_thread_db.h, gdbcmd.h, gdbcore.h, gdbserver/Makefile.in,
3571 gdbserver/gdbreplay.c, gdbserver/gdbserver.1,
3572 gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
3573 gdbserver/low-lynx.c, gdbserver/low-nbsd.c,
3574 gdbserver/low-sim.c, gdbserver/low-sparc.c,
3575 gdbserver/low-sun3.c, gdbserver/remote-utils.c,
3576 gdbserver/server.c, gdbserver/server.h, gdbserver/utils.c,
3577 gdbthread.h, gdbtypes.c, gdbtypes.h, gnu-nat.c, gnu-nat.h,
3578 gnu-regex.c, gnu-regex.h, h8300-tdep.c, h8500-tdep.c,
3579 hp-psymtab-read.c, hp-symtab-read.c, hp300ux-nat.c,
3580 hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c, hpread.c,
3581 hpread.h, hpux-thread.c, i386-tdep.c, i386aix-nat.c,
3582 i386b-nat.c, i386gnu-nat.c, i386ly-tdep.c, i386m3-nat.c,
3583 i386mach-nat.c, i386nbsd-nat.c, i386nbsd-tdep.c, i386v-nat.c,
3584 i386v4-nat.c, i387-tdep.c, i960-tdep.c, infcmd.c, inferior.h,
3585 inflow.c, infptrace.c, infrun.c, inftarg.c, infttrace.c,
3586 irix4-nat.c, irix5-nat.c, isi-xdep.c, jv-exp.y, jv-lang.c,
3587 jv-lang.h, jv-typeprint.c, jv-valprint.c, kdb-start.c,
3588 kod-cisco.c, kod.c, language.c, language.h, lin-thread.c,
3589 linespec.c, linespec.h, linux-thread.c, lynx-nat.c, m2-exp.y,
3590 m2-lang.c, m2-lang.h, m2-typeprint.c, m2-valprint.c, m3-nat.c,
3591 m32r-rom.c, m32r-tdep.c, m68k-tdep.c, m68klinux-nat.c,
3592 m68knbsd-nat.c, m88k-nat.c, m88k-tdep.c, mac-nat.c,
3593 mac-xdep.c, main.c, maint.c, mcore-rom.c, mcore-tdep.c,
3594 mdebugread.c, mem-break.c, minimon.h, minsyms.c, mips-nat.c,
3595 mips-tdep.c, mipsm3-nat.c, mipsread.c, mipsv4-nat.c,
3596 mn10200-tdep.c, mn10300-tdep.c, mon960-rom.c, monitor.c,
3597 monitor.h, news-xdep.c, nindy-share/env.h, nindy-tdep.c,
3598 nlm/Makefile.in, nlmread.c, ns32k-tdep.c, ns32km3-nat.c,
3599 ns32knbsd-nat.c, objfiles.c, objfiles.h, ocd.c, ocd.h,
3600 op50-rom.c, os9kread.c, osfsolib.c, p-exp.y, pa64solib.c,
3601 pa64solib.h, parse.c, parser-defs.h, partial-stab.h,
3602 ppc-bdm.c, ppc-linux-nat.c, ppc-linux-tdep.c, ppcbug-rom.c,
3603 ppcnbsd-nat.c, printcmd.c, proc-api.c, proc-events.c,
3604 proc-flags.c, proc-utils.h, proc-why.c, procfs.c, ptx4-nat.c,
3605 rdi-share/Makefile.in, rdi-share/aclocal.m4, regcache.c,
3606 regcache.h, remote-adapt.c, remote-array.c, remote-bug.c,
3607 remote-e7000.c, remote-eb.c, remote-es.c, remote-est.c,
3608 remote-hms.c, remote-mips.c, remote-mm.c, remote-nindy.c,
3609 remote-nrom.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
3610 remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
3611 remote-utils.c, remote-utils.h, remote-vx.c, remote.c,
3612 remote.h, reply_mig_hack.awk, rom68k-rom.c, rs6000-nat.c,
3613 rs6000-tdep.c, scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h,
3614 scm-valprint.c, ser-e7kpc.c, ser-mac.c, ser-ocd.c, ser-pipe.c,
3615 ser-tcp.c, ser-unix.c, serial.c, serial.h, sh-tdep.c,
3616 sh3-rom.c, sol-thread.c, solib-aix5.c, solib-svr4.c, solib.c,
3617 solib.h, solist.h, somread.c, somsolib.c, somsolib.h,
3618 source.c, sparc-nat.c, sparc-tdep.c, sparcl-tdep.c,
3619 sparclet-rom.c, srec.h, stabsread.c, stabsread.h, stack.c,
3620 standalone.c, stop-gdb.c, stuff.c, sun3-nat.c, sun386-nat.c,
3621 symfile.c, symfile.h, symm-nat.c, symm-tdep.c, symmisc.c,
3622 symtab.c, symtab.h, target.c, target.h, terminal.h, thread.c,
3623 tic80-tdep.c, top.c, top.h, tracepoint.c, tracepoint.h,
3624 typeprint.c, ui-file.c, ui-file.h, ui-out.h, ultra3-nat.c,
3625 ultra3-xdep.c, umax-xdep.c, utils.c, v850-tdep.c, v850ice.c,
3626 valarith.c, valops.c, valprint.c, value.h, values.c, varobj.h,
3627 vax-tdep.c, version.h, vx-share/vxWorks.h, vx-share/xdr_ld.c,
3628 vx-share/xdr_ptrace.c, vx-share/xdr_ptrace.h,
3629 vx-share/xdr_rdb.c, w65-tdep.c, w89k-rom.c, win32-nat.c,
3630 wrapper.c, wrapper.h, xcoffread.c, xcoffsolib.c, xcoffsolib.h,
3631 xmodem.c, xmodem.h, z8k-tdep.c: Update/correct copyright
3632 notices.
3633
596c9d4b
KB
36342001-03-05 Kevin Buettner <kevinb@redhat.com>
3635
3636 * acconfig.h (HAVE_PRSYSENT_T, HAVE_PR_SIGSET_T,
3637 HAVE_PR_SIGACTION64_T, HAVE_PR_SIGINFO64_T): New configure
3638 macros.
3639 * configure.in (prsysent_t, pr_sigset_t, pr_sigaction64_t,
3640 pr_siginfo64_t): Test for these typedefs in <sys/procfs.h>.
3641 (sys/fault.h, sys/select.h): Test for presence of these
3642 header files.
3643 (ia64-*-aix*): Define NEW_PROC_API for this host.
3644 * configure: Regenerate.
3645 * config.in: Regenerate.
3646
3647 * configure.host (ia64-*-aix*): New host.
3648 * configure.tgt (ia64-*-aix*): New target.
8a5c92d3 3649
eccbb20d
AC
36502001-03-05 Andrew Cagney <ac131313@redhat.com>
3651
3652 * TODO (GDB 5.1 Known Problems): Document z8k as broken.
3653
9ff2efe5
CF
3654Mon Mar 5 11:56:09 2001 Christopher Faylor <cgf@cygnus.com>
3655
3656 * wince.c: Change realloc to xrealloc throughout.
61e2d1f3 3657 (handle_load_dll): Use void * rather than PTR in argument.
9ff2efe5 3658
58841d58
AC
36592001-03-04 Andrew Cagney <ac131313@redhat.com>
3660
3661 * ocd.h (ocd_xfer_memory): Add ``attrib'' parameter.
3662 * ocd.c (ocd_xfer_memory): Ditto.
3663 * ser-ocd.c (ocd_setstopbits): New function. Add to ocd_ops.
3664 * MAINTAINERS: Document powerpc-eabi and powerpcle-eabi as
3665 buildable with ,-Werror.
3666
3667 * Makefile.in (symfile_h): Define.
3668 (mcore-tdep.o): Add $(symfile_h), $(gdbcore_h) and $(inferior_h).
3669 * mcore-tdep.c: Include "symfile.h", "gdbcore.h" and "inferior.h".
3670 * MAINTAINERS: Document mcore-elf and mcore-pe as buildable with
3671 ,-Werror.
3672
3673 * dsrec.c (make_srec): Fix internal_error fmt arg.
3674 * MAINTAINERS: Document i960-coff as buildable with ,-Werror.
3675
3cad1ac9
KB
36762001-03-03 Kevin Buettner <kevinb@redhat.com>
3677
3678 * solib-aix5.c (aix5_relocate_main_executable): Don't use ANOFFSET
3679 as an lvalue.
3680
b9fa2e73
AC
36812001-03-02 Andrew Cagney <ac131313@redhat.com>
3682
130c39e6
AC
3683 * MAINTAINERS (paper trail): Update.
3684
b9fa2e73
AC
3685 * CONTRIBUTE: Update note on ``Fix PR gdb/4706'' convention.
3686
c53efe6e
AC
36872001-03-02 Andrew Cagney <ac131313@redhat.com>
3688
3689 From 2001-03-01 Tom Rix <trix@redhat.com>:
3690 * mn10200-tdep.c (mn10200_frame_chain): Pass 0 for ``pc''
3691 parameter to mn10200_analyze_prologue.
3692
3693 * config/mn10200/tm-mn10200.h: Include "regcache.h".
3694 * MAINTAINERS: Document that mn10200-elf target is buildable.
3695
52b5c2eb
KB
36962001-03-02 Kevin Buettner <kevinb@redhat.com>
3697
3698 * config/ia64/xm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): Move defines
3699 from here...
3700 * config/ia64/nm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): ...to here.
3701 (MONTEREY): Don't define.
3702 (AIX5): Define.
3703
2edb46b1
MH
37042001-03-02 Matt Hiller <hiller@redhat.com>
3705
3706 * config/mn10300/tm-mn10300.h (E0_REGNUM): Correct to 15.
3707
92c71a3e
KB
37082001-03-02 Kevin Buettner <kevinb@redhat.com>
3709
82a2886f 3710 * sparc-nat.c (sparc-nat.c): Don't include self.
92c71a3e 3711
e2a4c6c1
C
37122001-03-01 J.T. Conklin <jtc@redback.com>
3713
3a644c8d
C
3714 * defs.h (__CYGWIN__): Moved conditional which defines __CYGWIN__
3715 if __CYGWIN32__ is set from here.
3716 * config/i386/xm-cygwin.h: To here.
3717 * config/powerpc/xm-cygwin.h: To here.
3718
e2a4c6c1
C
3719 * i386-stub.c (handle_exception): Use 'T' response packet.
3720
4b33390a
MS
37212001-03-01 Michael Snyder <msnyder@mvstp600e.cygnus.com>
3722
3723 * m32r-tdep.c: Fix cut and paste error in comment.
3724
37252001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
3726
3727 * symtab.c (print_msymbol_info): Print addresses by portable method
3728 longest_local_hex_string_custom. Allow for 64-bit addresses.
3729
ba41d549
C
37302001-03-01 J.T. Conklin <jtc@redback.com>
3731
3732 * gdbtypes.h (builtin_type_f_integer): Removed duplicate declaration.
3733 (MAX_OF_TYPE): Wrap macro definition in parenthesis.
3734 (MIN_OF_TYPE): Likewise.
3735
3736 * memattr.h (mem_access_mode): Removed extraneous trailing comma.
3737
088d891f
AC
37382001-03-01 Andrew Cagney <ac131313@redhat.com>
3739
3740 * Makefile.in (os9kread.o): Do not compile with WERROR_CFLAGS.
3741 * os9kread.c (os9k_process_one_symbol): Add assert to detect
3742 ``loses if sizeof (char *) > sizeof (int)''.
3743
38266776
AC
37442001-03-01 Andrew Cagney <ac131313@redhat.com>
3745
3746 * gdb_assert.h: Document pragmatics behind gdb_assert's case.
3747
2ad43c4f
AC
37482001-03-01 Andrew Cagney <ac131313@redhat.com>
3749
3750 * Makefile.in (gdbtk-cmds.o): Add $(regcache_h) to dependency
3751 lists.
3752 (mi-main.o): Ditto.
3753
367e21d8
AC
37542001-03-01 Andrew Cagney <ac131313@redhat.com>
3755
3756 * Makefile.in (regcache_h): Define. Add $(regcache_h) to
3757 dependency lists.
3758
d85310f7
MS
37592001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
3760
c0d8fd9a
MS
3761 * printcmd.c (print_address_numeric): Update comments to refer
3762 to sizeof addr, not sizeof pointer.
3763 (x_command): Remove needless whitespace (shorten long line).
3764
d85310f7
MS
3765 * breakpoint.c (print_one_breakpoint): Formatting clean-up.
3766 (read_memory_nobpt): Ditto.
3767 (ep_is_catchpoint): Ditto.
3768 (ep_is_shlib_catchpoint): Ditto.
3769 (ep_is_exception_catchpoint): Ditto.
3770 (describe_other_breakpoints): Ditto.
3771
97900206
AC
3772Wed Feb 28 20:37:36 2001 Andrew Cagney <ac131313@redhat.com>
3773
3774 * regcache.h (register_valid): Fix comment documenting valid
3775 states.
3776
4e052eda
AC
3777Tue Feb 27 23:56:23 2001 Andrew Cagney <ac131313@redhat.com>
3778
3779 From Steven Johnson:
3780 * regcache.h: New file.
3781
3782 * value.h (read_register_bytes, read_register_gen)
3783 (write_register_gen, write_register_bytes)
3784 (read_register, read_register_pid)
3785 (read_signed_register, read_signed_register_pid)
3786 (write_register, write_register_pid)
3787 (register_cached, set_register_cached)
3788 (register_changed, register_buffer)
3789 (registers_changed, supply_register): Move declaration from here.
3790 * regcache.h: To here.
3791 * gdbcore.h (registers_fetched): Ditto.
3792 * inferior.h (registers, registers_valid): Ditto.
3793
3794 * regcache.c (generic_target_read_pc, read_pc_pid, read_pc,
3795 generic_target_write_pc, write_pc_pid, write_pc,
3796 generic_target_read_sp, read_sp, generic_target_write_sp,
3797 write_sp, generic_target_read_fp, read_fp,
3798 generic_target_write_fp, write_fp): Add note that these functions
3799 will be moved from this file.
3800
3801 * a29k-tdep.c: Include "regcache.h".
3802 * a68v-nat.c: Ditto.
3803 * abug-rom.c: Ditto.
3804 * alpha-nat.c: Ditto.
3805 * alpha-tdep.c: Ditto.
3806 * alphabsd-nat.c: Ditto.
3807 * arc-tdep.c: Ditto.
3808 * arm-linux-nat.c: Ditto.
3809 * arm-linux-tdep.c: Ditto.
3810 * arm-tdep.c: Ditto.
3811 * blockframe.c: Ditto.
3812 * core-aout.c: Ditto.
3813 * core-sol2.c: Ditto.
3814 * corelow.c: Ditto.
3815 * cpu32bug-rom.c: Ditto.
3816 * cxux-nat.c: Ditto.
3817 * d10v-tdep.c: Ditto.
3818 * d30v-tdep.c: Ditto.
3819 * dbug-rom.c: Ditto.
3820 * dink32-rom.c: Ditto.
3821 * dve3900-rom.c: Ditto.
3822 * findvar.c: Ditto.
3823 * fr30-tdep.c: Ditto.
3824 * frame.c: Ditto.
3825 * go32-nat.c: Ditto.
3826 * h8300-tdep.c: Ditto.
3827 * h8500-tdep.c: Ditto.
3828 * hp300ux-nat.c: Ditto.
3829 * hppa-tdep.c: Ditto.
3830 * hppab-nat.c: Ditto.
3831 * hppah-nat.c: Ditto.
3832 * hppam3-nat.c: Ditto.
3833 * hpux-thread.c: Ditto.
3834 * i386-linux-nat.c: Ditto.
3835 * i386-linux-tdep.c: Ditto.
3836 * i386-tdep.c: Ditto.
3837 * i386aix-nat.c: Ditto.
3838 * i386b-nat.c: Ditto.
3839 * i386bsd-nat.c: Ditto.
3840 * i386gnu-nat.c: Ditto.
3841 * i386ly-tdep.c: Ditto.
3842 * i386m3-nat.c: Ditto.
3843 * i386mach-nat.c: Ditto.
3844 * i386nbsd-nat.c: Ditto.
3845 * i386v4-nat.c: Ditto.
3846 * i387-nat.c: Ditto.
3847 * i387-tdep.c: Ditto.
3848 * i960-tdep.c: Ditto.
3849 * ia64-aix-nat.c: Ditto.
3850 * ia64-linux-nat.c: Ditto.
3851 * ia64-tdep.c: Ditto.
3852 * infptrace.c: Ditto.
3853 * infrun.c: Ditto.
3854 * irix4-nat.c: Ditto.
3855 * irix5-nat.c: Ditto.
3856 * lin-lwp.c: Ditto.
3857 * lin-thread.c: Ditto.
3858 * lynx-nat.c: Ditto.
3859 * m3-nat.c: Ditto.
3860 * m32r-rom.c: Ditto.
3861 * m32r-tdep.c: Ditto.
3862 * m68hc11-tdep.c: Ditto.
3863 * m68k-tdep.c: Ditto.
3864 * m68klinux-nat.c: Ditto.
3865 * m68knbsd-nat.c: Ditto.
3866 * m68knbsd-tdep.c: Ditto.
3867 * m88k-nat.c: Ditto.
3868 * m88k-tdep.c: Ditto.
3869 * mac-nat.c: Ditto.
3870 * mcore-rom.c: Ditto.
3871 * mcore-tdep.c: Ditto.
3872 * mi/mi-main.c: Ditto.
3873 * mips-nat.c: Ditto.
3874 * mips-tdep.c: Ditto.
3875 * mipsm3-nat.c: Ditto.
3876 * mipsv4-nat.c: Ditto.
3877 * mn10200-tdep.c: Ditto.
3878 * mn10300-tdep.c: Ditto.
3879 * monitor.c: Ditto.
3880 * ns32km3-nat.c: Ditto.
3881 * ns32knbsd-nat.c: Ditto.
3882 * ocd.c: Ditto.
3883 * pa64solib.c: Ditto.
3884 * ppc-bdm.c: Ditto.
3885 * ppc-linux-nat.c: Ditto.
3886 * ppc-linux-tdep.c: Ditto.
3887 * ppcbug-rom.c: Ditto.
3888 * ppcnbsd-nat.c: Ditto.
3889 * ptx4-nat.c: Ditto.
3890 * regcache.c: Ditto.
3891 * remote-adapt.c: Ditto.
3892 * remote-array.c: Ditto.
3893 * remote-bug.c: Ditto.
3894 * remote-e7000.c: Ditto.
3895 * remote-eb.c: Ditto.
3896 * remote-es.c: Ditto.
3897 * remote-est.c: Ditto.
3898 * remote-hms.c: Ditto.
3899 * remote-mips.c: Ditto.
3900 * remote-mm.c: Ditto.
3901 * remote-nindy.c: Ditto.
3902 * remote-os9k.c: Ditto.
3903 * remote-rdi.c: Ditto.
3904 * remote-rdp.c: Ditto.
3905 * remote-sds.c: Ditto.
3906 * remote-sim.c: Ditto.
3907 * remote-st.c: Ditto.
3908 * remote-udi.c: Ditto.
3909 * remote-utils.c: Ditto.
3910 * remote-vx.c: Ditto.
3911 * remote-vx29k.c: Ditto.
3912 * remote-vx68.c: Ditto.
3913 * remote-vx960.c: Ditto.
3914 * remote-vxmips.c: Ditto.
3915 * remote-vxsparc.c: Ditto.
3916 * remote.c: Ditto.
3917 * rom68k-rom.c: Ditto.
3918 * rs6000-nat.c: Ditto.
3919 * rs6000-tdep.c: Ditto.
3920 * sh-tdep.c: Ditto.
3921 * sh3-rom.c: Ditto.
3922 * sol-thread.c: Ditto.
3923 * solib-svr4.c: Ditto.
3924 * somsolib.c: Ditto.
3925 * sparc-nat.c: Ditto.
3926 * sparc-tdep.c: Ditto.
3927 * sparcl-tdep.c: Ditto.
3928 * sparclet-rom.c: Ditto.
3929 * sun3-nat.c: Ditto.
3930 * sun386-nat.c: Ditto.
3931 * symm-nat.c: Ditto.
3932 * target.c: Ditto.
3933 * thread-db.c: Ditto.
3934 * thread.c: Ditto.
3935 * tic80-tdep.c: Ditto.
3936 * tracepoint.c: Ditto.
3937 * ultra3-nat.c: Ditto.
3938 * umax-xdep.c: Ditto.
3939 * uw-thread.c: Ditto.
3940 * v850-tdep.c: Ditto.
3941 * v850ice.c: Ditto.
3942 * valops.c: Ditto.
3943 * w65-tdep.c: Ditto.
3944 * w89k-rom.c: Ditto.
3945 * win32-nat.c: Ditto.
3946 * wince.c: Ditto.
3947 * z8k-tdep.c: Ditto.
3948
07d48ebc
MH
39492001-02-28 Matt Hiller <hiller@redhat.com>
3950
3951 * MAINTAINERS: Add Matt Hiller to Write After Approval list.
3952
2edb46b1
MH
39532001-02-27 Matt Hiller <hiller@redhat.com>
3954
3955 * mn10300-tdep.c (mn10300_stab_reg_to_regnum): New function.
3956 (mn10300_gdbarch_init): Set appropriate elements of gdbarch to
3957 mn10300_stab_reg_to_regnum.
3958
993f3aa5
DT
3959Tue Feb 27 16:56:13 2001 David Taylor <taylor@redhat.com>
3960
3961 * symtab.c (search_symbols): Fix off by one error in test for
3962 error.
3963
86168def
AC
39642001-02-23 Andrew Cagney <ac131313@redhat.com>
3965
3966 * config/sparc/sp64linux.mt: New file.
3967 * configure.tgt: Recognize sparc64-*-linux* as a sp64linux target.
3968 * configure.host: Recognize sparc64-*-linux* as a linux host.
3969
3970 From 2000-03-17 Jakub Jelinek <jakub@redhat.com>:
3971 * config/sparc/tm-sp64linux.h: New file.
3972
e1e9e218
KB
39732001-02-24 Kevin Buettner <kevinb@redhat.com>
3974
3975 * buildsym.c (push_subfile, pop_subfile): Replace call to abort()
3976 with call to internal_error().
3977 * dbxread.c (process_one_symbol): Likewise.
3978 * exec.c (build_section_table, xfer_memory): Likewise.
3979 * h8500-tdep.c (h8500_register_size, h8500_register_virtual_type):
3980 Likewise.
3981 * hpread.c (hpread_type_translate, hpread_read_array_type)
3982 (hpread_type_lookup): Likewise.
3983 * i386-tdep.c (gdb_print_insn_i386): Likewise.
3984 * i960-tdep.c (mem): Likewise
3985 * inflow.c (set_sigio_trap, clear_sigio_trap): Likewise.
3986 * infptrace.c (child_resume): Likewise.
3987 * infttrace.c (_initialize_infttrace): Likewise.
3988 * language.c (binop_result_type, add_language): Likewise.
3989 * lynx-nat.c (store_inferior_registers): Likewise.
3990 * m3-nat.c (port_chain_insert, m3_trace_me): Likewise.
3991 * mdebugread.c (parse_partial_symbols): Likewise.
3992 * monitor.c (monitor_printf_noecho, monitor_printf)
3993 (monitor_dump_regs): Likewise.
3994 * ocd.c (stu_put_packet): Likewise.
3995 * printcmd.c (decode_format, print_scalar_formatted): Likewise.
3996 * remote-bug.c (bug_open): Likewise.
3997 * remote-e7000.c (fetch_regs_from_dump, e7000_wait): Likewise.
3998 * remote-es.c (es1800_read_bytes): Likewise.
3999 * remote-mips.c (common_breakpoint): Likewise.
4000 * remote-rdp.c (send_rdp): Likewise.
4001 * remote-sds.c (putmessage): Likewise.
4002 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
4003 Likewise.
4004 * sparcl-tdep.c (sparclite_download): Likewise.
4005 * symtab.c (lookup_partial_symbol): Likewise.
4006 * target.c (push_target, pop_target, initialize_targets): Likewise.
4007 * utils.c (internal_verror, malloc_botch, wrap_here, decimal2str):
4008 Likewise.
4009 * valprint.c (print_decimal, print_longest, print_longest)
4010 (strcat_longest): Likewise.
4011 * w65-tdep.c (init_frame_pc, w65_push_dummy_frame): Likewise.
4012 * xmodem.c (xmodem_send_packet): Likewise.
4013 * z8k-tdep.c (init_frame_pc, z8k_push_dummy_frame): Likewise.
4014 * config/h8500/tm-h8500.h (STORE_STRUCT_RETURN): Likewise.
4015 * config/mn10200/tm-mn10200.h (EXTRACT_RETURN_VALUE)
4016 (STORE_RETURN_VALUE): Likewise.
4017 * config/ns32k/nm-umax.h (REGISTER_U_ADDR): Likewise.
4018 * config/ns32k/xm-merlin.h (REGISTER_U_ADDR): Likewise.
4019 * config/z8k/tm-z8k.h (STORE_STRUCT_RETURN, STORE_RETURN_VALUE):
4020 Likewise.
4021
17fceda3
AC
40222001-02-23 Andrew Cagney <ac131313@redhat.com>
4023
2126d5fb
AC
4024 * CONTRIBUTE: Document how to cite a problem report.
4025 * TODO: Note need to replace CONTRIBUTE with generated file.
4026
17fceda3
AC
4027 * CONTRIBUTE: Mention that patches do not need to include the
4028 generated files gdbarch.h and gdbarch.c.
4029
60edd51d
AC
40302001-02-21 Andrew Cagney <ac131313@redhat.com>
4031
4032 * value.h (get_saved_register): Move from here.
4033 * frame.h: To here.
4034
d7fa2ae2
KB
40352001-02-21 Kevin Buettner <kevinb@redhat.com>
4036
4037 * solib.h (in_svr4_dynsym_resolve_code): Delete declaration.
4038 (in_solib_dynsym_resolve_code): Add declaration.
4039 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Changed define to invoke
4040 in_solib_dynsym_resolve_code() rather than
4041 in_svr4_dynsym_resolve_code(). Also, removed the ifdefs
4042 which caused this macro to only be defined when
4043 SVR4_SHARED_LIBS is defined.
4044 * solib.c (in_solib_dynsym_resolve_code): New function.
4045 * solist.h (struct target_so_ops): Add new member
4046 in_dynsym_resolve_code.
4047 * solib-aix5.c (aix5_in_dynsym_resolve_code): Renamed from
4048 in_svr4_dynsym_resolve_code. Also, made static.
4049 (_initialize_aix5_solib): Initialize in_dynsym_resolve_code
4050 member in aix5_so_ops.
4051 * solib-svr4.c (svr4_in_dynsym_resolve_code): Renamed from
4052 in_svr4_dynsym_resolve_code. Also, added second version
4053 of this function which will be used when SVR4_SHARED_LIBS
4054 is not defined.
4055 (_initialize_svr4_solib): Initialize in_dynsym_resolve_code
4056 member in svr4_so_ops.
4057
4058 * ia64-aix-nat.c, ia64-aix-tdep.c, config/ia64/aix.mh,
4059 config/ia64/aix.mt, config/ia64/nm-aix.h, config/ia64/tm-aix.h,
4060 config/ia64/xm-aix.h: New files.
4061 * ia64-tdep.c (_initialize_ia64_tdep): Remove declaration.
4062 (ia64_aix_sigcontext_register_address): New declaration.
aacc1edd 4063 (ia64_gdbarch_init): Provide for initialization of
d7fa2ae2
KB
4064 sigcontext_register_address member of struct tdep when
4065 on target is detected to be running AIX.
4066 * config/ia64/linux.mt (TDEPFILES): Add ia64-aix-tdep.o to
4067 this list.
4068
fbad0893
KB
40692001-02-20 Kevin Buettner <kevinb@redhat.com>
4070
4071 * ia64-tdep.c (ia64_frameless_function_invocation): Implement.
4072 * config/ia64/linux.mh (NATDEPFILES): Use thread-db.o and lin-lwp.o
4073 for thread support instead of linux-thread.o and lin-thread.o.
4074 * config/ia64/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS,
4075 ATTACH_LWP): Define to use the following lin-lwp.c functions...
4076 (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals,
4077 lin_lwp_attach_lwp): Declare.
4078
1adad886
AC
40792001-02-20 Andrew Cagney <ac131313@redhat.com>
4080
4081 * mips-tdep.c (do_fp_register_row, do_fp_register_row): Fix printf
4082 formatting.
4083
0579d647
KB
40842001-02-20 Kevin Buettner <kevinb@redhat.com>
4085
4086 * solib-aix5.c (solib-svr4.h): Remove include.
4087 (solib_break_names): Delete names which aren't actually
4088 used by AIX5.
4089 (bkpt_names): Remove.
4090 (aix5_relocate_main_executable, bfd_lookup_symbol): Replace calls
4091 to STREQ() with equivalent calls to strcmp().
4092 (in_svr4_dynsym_resolve_code, enable_break, bfd_lookup_symbol,
4093 aix5_solib_create_inferior_hook): Revise comments.
4094 (enable_break): Remove old ``bkpt_names'' code.
4095
d65fe839
AC
40962001-02-19 Andrew Cagney <ac131313@redhat.com>
4097
4098 * Makefile.in (SFILES): Add frame.c .
4099 (COMMON_OBS): Add frame.o .
4100 (frame.o): New target.
4101
4102 * frame.c (find_saved_register):
4103 (default_get_saved_register):
4104 (get_saved_register):
4105 (read_relative_register_raw_bytes_for_frame):
4106 (read_relative_register_raw_bytes): Moved to here.
4107 * regcache.c: From here.
4108
60cf7a85
KB
41092001-02-20 Kevin Buettner <kevinb@redhat.com>
4110
4111 * solib-aix5.c: New file.
4112
291b7e04
MH
41132001-02-20 Martin M. Hunt <hunt@redhat.com>
4114
a43ad351
MH
4115 * solib.c (info_sharedlibrary_command): Don't assume pointers
4116 are the same size of long, call longest_local_hex_string_custom().
4117
58bc91c9
MH
4118 * solib-svr4.c (LM_ADDR): LM_ADDR is a signed offset, so
4119 extract_signed_integer() should be called instead of
4120 extract_address().
4121
41222001-02-20 Martin M. Hunt <hunt@redhat.com>
4123
291b7e04
MH
4124 * MAINTAINERS: Add Martin Hunt to Write After Approval list.
4125
d02ee681
AC
41262001-02-19 Andrew Cagney <ac131313@redhat.com>
4127
4128 Frm 2001-02-09 Jim Kingdon <jkingdon@engr.sgi.com>:
4129 * mips-tdep.c (mips_register_raw_size): If FP_REGISTER_DOUBLE,
4130 then floating point registers are 8 bytes.
4131
a858089e
MS
41322001-02-19 Michael Snyder <msnyder@mvstp600e.cygnus.com>
4133
4134 * parse.c (write_exp_msymbol): Make the type CORE_ADDR, to
4135 accomodate 64-bit addresses.
4136
23cc649f
EZ
41372001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4138
4139 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>
4140 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux, not
4141 lookup_symbol, when trying to find a symbol with a mangled name,
4142 to avoid infinite recursion.
4143
0db23c95
AC
41442001-02-18 Andrew Cagney <ac131313@redhat.com>
4145
4146 * TODO (5.2): Mention G++ 3.0 ABI. General cleanups.
4147
911413e6
JL
41482001-02-19 Jonathan Larmour <jlarmour@redhat.com>
4149
4150 * arm-tdep.c (check_prologue_cache): Fix off by 1 error.
4151 (save_prologue_cache): Ditto.
4152
8d1de4b7
EZ
41532001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4154
4155 From: innadadadavida@yahoo.com:
4156 * partial-stab.h (switch): Check that pst is not null
4157 before dereferencing it.
4158
3017564a
EZ
41592001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4160
4161 From Andrew Cagney <cagney@b1.cygnus.com>:
4162 * symfile.c (add_symbol_file_command): Always initialize
4163 my_cleanup using a NULL cleanup.
4164
fa58ee11
EZ
41652001-02-19 Eli Zaretskii <eliz@is.elta.co.il>
4166
4167 * demangle.c (demangling_style_names): New variable.
4168 (_initialize_demangler): Fill demangling_style_names with the
4169 names of known demangling styles from libiberty_demanglers[]. Use
4170 add_set_enum_cmd instead of add_set_cmd, to get completion on
4171 demangling style names.
4172
4173 * proc-api.c (_initialize_proc_api): Make `procfs-file' use
4174 file-name completion.
4175
4176 * remote-rdi.c (_initialize_remote_rdi): Ditto for `rdilogfile'.
4177
4178 * solib.c (_initialize_solib): Ditto for `solib-search-path' and
4179 `solib-absolute-prefix'.
4180
4181 * tracepoint.c (_initialize_tracepoint): Ditto for
4182 `save-tracepoints'.
4183
4184 * win32-nat.c (_initialize_inftarg): Ditto for `dll-symbols'.
4185
4186 * cli/cli-cmds.c (init_cli_cmds): Make `shell' and `make' use
4187 file-name completion.
4188
4189 * infcmd.c (_initialize_infcmd): Make the following commands use
4190 the file-name completer: `tty', `args', `path', `paths', and
4191 `run'.
4192
7830cf6f
EZ
41932001-02-18 Eli Zaretskii <eliz@is.elta.co.il>
4194
89dea5aa
EZ
4195 * go32-nat.c: Include i387-nat.h.
4196 (fetch_register): New function, uses some of the guts of
4197 go32_fetch_registers and calls i387_supply_register.
4198 (go32_fetch_registers): Most of the code moved into
4199 fetch_register. Use i387_supply_fsave.
4200 (store_register): Use i387_fill_fsave instead of custom code.
4201 (go32_store_registers): Use i387_fill_fsave.
4202
4203 * Makefile.in (go32-nat.o): Depend on i387-nat.h.
4204
4205 * config/i386/go32.mh (NATDEPFILES): Add i387-nat.o.
4206
7830cf6f
EZ
4207 * completer.c (gdb_completer_file_name_break_characters): Remove
4208 slash from file-name break characters.
4209 [__MSDOS__]: Special definition for DOS/Windows file names.
4210 (line_completion_function): When completing on file names, bump
4211 `p' to the first file-name constituent character of `word', before
4212 invoking the completer.
4213
f31e928c
MK
42142001-02-17 Mark Kettenis <kettenis@gnu.org>
4215
4216 * i387-nat.c: Include "i387-nat.h". Use regnum instead of regno
4217 consistently for parameter names. Fix comments accordingly.
4218 (i387_supply_register): New function.
4219 (i387_supply_fsave): Implement using i387_supply_register.
4220 * i387-nat.h: Use regnum instead of regno consistently for
4221 parameter names. Fix comments accordingly.
4222 (i387_supply_register): New prototype.
4223
d696208f
MS
42242001-02-16 Michael Snyder <msnyder@mvstp600e.cygnus.com>
4225
4226 * remote.c (build_remote_gdbarch_data): Use new TARGET_ADDR_BIT
4227 instead of TARGET_PTR_BIT (to support Harvard architectures).
4228
971429b4
AC
42292001-02-16 Andrew Cagney <ac131313@redhat.com>
4230
4231 From 2001-02-11 Paul Hilfinger <hilfingr@lisbon.int.act-europe.fr>
4232 * hpux-thread.c (hpux_thread_xfer_memory): Add mem_attrib
4233 argument to parameter list and to call in order to conform to
4234 to_xfer_memory field of struct target_ops.
4235
9ca0e47c
MC
42362001-02-12 Michael Chastain <chastain@redhat.com>
4237
da7dd56f 4238 * somsolib.c (som_solib_add_solib_objfile): Do not use
9ca0e47c
MC
4239 section relocation feature of syms_from_objfile. Do my own
4240 section relocation, offsetting each section of the som by
4241 either text_addr - text_link_addr or data_start.
4242
7d65bd2d
AC
42432001-02-16 Andrew Cagney <ac131313@redhat.com>
4244
4245 * TODO (5.1): Move ``Hardware watchpint problems'' out of 5.1.
4246
e33e9692
AC
42472001-02-16 Andrew Cagney <ac131313@redhat.com>
4248
4249 * MAINTAINERS (paper trail): Update.
4250
17dee195
MK
42512001-02-16 Mark Kettenis <kettenis@gnu.org>
4252
4253 * target.h (target_fetch_registers): Fix comment.
4254
0f6e1ba6
AC
42552001-02-15 Andrew Cagney <ac131313@redhat.com>
4256
4257 * f-exp.y: Include <ctype.h>.
4258 (parse_number): Ensure that ``i'' is always initialized.
4259
9a069618
JK
42602001-02-14 Jim Kingdon <jkingdon@engr.sgi.com>
4261
4262 * MAINTAINERS: Add myself to paper trail section.
4263
fc24370e
MS
42642001-02-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4265
4266 * configure.in (AC_CHECK_HEADERS): Add sys/file.h.
4267 * configure, config.in: Regenerate.
4268 * corelow.c: Include <sys/file.h> if present.
4269
4b69c284
AC
42702001-02-14 Andrew Cagney <ac131313@redhat.com>
4271
4272 * inflow.c (terminal_ours_1): Initialize ``osigtou''. Only
4273 declare when have SIGTTOU.
4274
7904f322
EZ
42752001-02-14 Eli Zaretskii <eliz@is.elta.co.il>
4276
4277 * config/djgpp/fnchange.lst: Add entries for gdb/gdbtk/*/ChangeLog-*.
4278
9e798668
JK
42792001-02-12 Jim Kingdon <jkingdon@engr.sgi.com>
4280
4281 * MAINTAINERS: Update my email address.
4282
65d5a54a
EZ
42832001-02-11 Eli Zaretskii <eliz@is.elta.co.il>
4284
4285 * NEWS: Document that "info symbol" works with COFF debug info and
4286 its variants.
4287
4288 * minsyms.c (lookup_minimal_symbol_by_pc_section): Don't skip
4289 symbols whose SYMBOL_BFD_SECTION is NULL.
4290
0cff82d9 42912001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
a8079a9b
PS
4292
4293 Get rid of AIX specific PC_LOAD_SEGMENT, replace with PC_SOLIB.
4294 * xcoffsolib.c (xcoff_solib_address): Renamed from
4295 pc_load_segment_name. Return NULL if address is not in a shared
4296 library. Cleanup shared library name construction, using xasprintf.
4297 Format shared library member names consistent with format in exec.c.
4298 (solib_info): Format shared library member names consistent with
4299 format in exec.c.
4300 * config/rs6000/nm-rs6000.h: Replace PC_LOAD_SEGMENT with PC_SOLIB,
4301 using xcoff_solib_address for PC_SOLIB definition.
4302 * stack.c (print_frame): Remove PC_LOAD_SEGMENT code, no longer
4303 needed.
4304
0cff82d9 43052001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4b2e4867
PS
4306
4307 * mipsread.c (read_alphacoff_dynamic_symtab): Replace alloca calls
4308 with xmalloc calls and cleanups.
4309
0cff82d9 43102001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
d737ece6
PS
4311
4312 * rs6000-nat.c (child_xfer_memory): Add missing parameter
4313 'struct mem_attrib *' required by 2001-01-23 change.
4314
c5bb1243
JK
43152001-02-08 Jim Kingdon <jkingdon@engr.sgi.com>
4316
4317 Updates to "make TAGS":
4318 * Makefile.in (ALLDEPFILES): Remove altos-xdep.c arm-convert.s
4319 arm-xdep.c convex-tdep.c convex-xdep.c pyr-tdep.c pyr-xdep.c
4320 tahoe-tdep.c.
4321 (TAGFILES_NO_SRCDIR): Add $(SUBDIR_CLI_SRCS).
4322
c799ae7b
EZ
43232001-02-08 Eli Zaretskii <eliz@is.elta.co.il>
4324
4325 * config/djgpp/fnchange.lst: Remove extraneous "too many dots".
4326
12685e01
AC
4327Wed Feb 7 22:39:26 2001 Andrew Cagney <cagney@redhat.com>
4328
4329 From Dean Luick <luick@cray.com>:
4330 * defs.h (continuation): Remove unused global variable.
4331
7fcca85b
AC
4332Wed Feb 7 22:28:31 2001 Andrew Cagney <cagney@redhat.com>
4333
4334 * configure.tgt: Remove references to convex, pyramid, altos and
4335 tahoe.
4336 * configure.host: Ditto.
4337 * MAINTAINERS: Ditto.
4338 * NEWS: Update.
4339
4340 * tahoe-tdep.c: Delete obsolete file.
4341 * pyr-xdep.c: Ditto.
4342 * pyr-tdep.c: Ditto.
4343 * convex-tdep.c: Ditto.
4344 * convex-xdep.c: Ditto.
4345 * config/tahoe/xm-tahoe.h: Ditto.
4346 * config/tahoe/tm-tahoe.h: Ditto.
4347 * config/tahoe/tahoe.mt: Ditto.
4348 * config/tahoe/tahoe.mh: Ditto.
4349 * config/pyr/xm-pyr.h: Ditto.
4350 * config/pyr/tm-pyr.h: Ditto.
4351 * config/pyr/pyramid.mt: Ditto.
4352 * config/pyr/pyramid.mh: Ditto.
4353 * config/m68k/xm-altos.h: Ditto.
4354 * config/m68k/tm-altos.h: Ditto.
4355 * config/m68k/altos.mt: Ditto.
4356 * config/m68k/altos.mh: Ditto.
4357 * config/convex/xm-convex.h: Ditto.
4358 * config/convex/tm-convex.h: Ditto.
4359 * config/convex/convex.mt: Ditto.
4360 * config/convex/convex.mh: Ditto.
4361 * config/convex/Convex.notes: Ditto.
4362 * config/arm/xm-arm.h: Ditto.
4363 * config/arm/nm-arm.h: Ditto.
4364 * config/arm/arm.mt: Ditto.
4365 * config/arm/arm.mh: Ditto.
4366 * arm-convert.s: Ditto.
4367 * arm-xdep.c: Ditto.
4368 * altos-xdep.c: Ditto.
4369
8e65ff28
AC
4370Wed Feb 7 19:41:21 2001 Andrew Cagney <cagney@redhat.com>
4371
4372 * defs.h (internal_error, internal_verror): Add __FILE__ and
4373 __LINE__ parameter.
4374 * utils.c (internal_error, internal_verror): Update.
4375
4376 * v850-tdep.c: Update calls to internal_error.
4377 * utils.c: Ditto.
4378 * ui-out.c: Ditto.
4379 * ui-file.c: Ditto.
4380 * target.h: Ditto.
4381 * symtab.h: Ditto.
4382 * symm-nat.c: Ditto.
4383 * sparc-tdep.c: Ditto.
4384 * source.c: Ditto.
4385 * serial.c: Ditto.
4386 * rs6000-tdep.c: Ditto.
4387 * rs6000-nat.c: Ditto.
4388 * remote.c: Ditto.
4389 * remote-vx.c: Ditto.
4390 * remote-sim.c: Ditto.
4391 * remote-mips.c: Ditto.
4392 * regcache.c: Ditto.
4393 * objfiles.h: Ditto.
4394 * objfiles.c: Ditto.
4395 * mn10300-tdep.c: Ditto.
4396 * mips-tdep.c: Ditto.
4397 * maint.c: Ditto.
4398 * m68k-tdep.c: Ditto.
4399 * m3-nat.c: Ditto.
4400 * language.c: Ditto.
4401 * infptrace.c: Ditto.
4402 * inferior.h: Ditto.
4403 * infcmd.c: Ditto.
4404 * ia64-tdep.c: Ditto.
4405 * i386-tdep.c: Ditto.
4406 * i386-linux-nat.c: Ditto.
4407 * hppah-nat.c: Ditto.
4408 * go32-nat.c: Ditto.
4409 * findvar.c: Ditto.
4410 * f-lang.c: Ditto.
4411 * elfread.c: Ditto.
4412 * event-loop.c: Ditto.
4413 * dwarf2read.c: Ditto.
4414 * dsrec.c: Ditto.
4415 * d30v-tdep.c: Ditto.
4416 * d10v-tdep.c: Ditto.
4417 * cli/cli-setshow.c: Ditto.
4418 * cli/cli-script.c: Ditto.
4419 * ch-exp.c: Ditto.
4420 * breakpoint.c: Ditto.
4421 * ax-gdb.c: Ditto.
4422 * arch-utils.c: Ditto.
4423 * a29k-tdep.c: Ditto.
4424 * gdb_assert.h: Ditto.
4425 * gdbarch.sh: Ditto.
4426 * gdbarch.h, gdbarch.c: Re-generate.
4427
72290732
AC
44282001-02-07 Andrew Cagney <ac131313@redhat.com>
4429
4430 From Mark Kettenis <kettenis@gnu.org>:
4431 * event-top.h [!STOP_SIGNAL]: #include <signal.h>.
4432
a6da1910
AC
44332001-02-07 Andrew Cagney <ac131313@redhat.com>
4434
4435 * remote-sim.c (dump_mem): Cleanup printf format argument.
4436 * MAINTAINERS: Update, mn10300-elf now builds.
4437
153f9905
MK
44382001-02-07 Mark Kettenis <kettenis@gnu.org>
4439
4440 * event-top.c: Remove duplicate #include <signal.h>.
4441
f042532c
AC
44422001-02-06 Andrew Cagney <ac131313@redhat.com>
4443
4444 * sol-thread.c (restore_inferior_pid): Save the PID in a freshly
4445 allocated buffer.
4446 (save_inferior_pid): Restore the PID from that tempoary
4447 buffer. Delete the buffer.
4448 * utils.c (make_cleanup_close, do_close_cleanup): Ditto for FD.
4449
58cfabe6
AC
44502001-02-06 Andrew Cagney <ac131313@redhat.com>
4451
4452 * MAINTAINERS: Add ``The Obvious Fix Rule''.
4453
ea8a41b8
AC
44542001-02-06 Andrew Cagney <ac131313@redhat.com>
4455
4456 * MAINTAINERS: Add Michael Snyder to Solaris/SPARC list.
4457
95160752
AC
44582001-02-06 Andrew Cagney <ac131313@cygnus.com>
4459
4460 * gdbarch.sh: Include "gdb_assert.h".
4461 (struct gdbarch): Change ``nr_data'' to unsigned.
4462 (alloc_gdbarch_data, free_gdbarch_data): New functions.
4463 (gdbarch_free): Free the data-pointer vector. Use xfree to delete
4464 architecture vector.
4465 (struct gdbarch_data, struct gdbarch_data_registration): Move init
4466 method to gdbarch_data. Add free method, make index unsigned.
4467 (struct gdbarch_data_registry): Make nr unsigned.
4468 (register_gdbarch_data): Add free parameter. Store in
4469 gdbarch_data.
4470 (init_gdbarch_data): Use set_gdbarch_data.
4471 (set_gdbarch_data): New function.
4472
4473 * gdbarch.h, gdbarch.c: Re-generate.
4474
64122a8b
MS
44752001-02-06 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4476
4477 * ser-unix.c (hardware_print_tty_state) [HAVE_SGTTY]: Call
4478 fprintf_filtered with correct arguments.
4479
e6cbd02a
MS
44802001-02-06 Michael Snyder <msnyder@makita.cygnus.com>
4481 Submitted by Paul Hilfinger (hilfingr@gnat.com)
4482 and Andrei Petrov (and@genesyslab.com).
4483 * findvar.c: Buffers of size MAX_REGISTER_RAW_SIZE or REGISTER_BYTES
4484 must be allocated dynamically, since these are no longer constants.
4485 * infcmd.c: Ditto.
4486 * regcache.c: Ditto.
4487 * remote.c: Ditto.
4488 * sol-thread.c: Ditto.
4489 * valops.c: Ditto.
4490 * config/sparc/sun4sol2.mh (MH_CFLAGS): Add -I/usr/include/v9, as a
4491 work-around for a missing Sun header file in solaris for sparc64.
4492
713f0374
PB
44932001-02-04 Philip Blundell <philb@gnu.org>
4494
4495 * config/arm/linux.mh (NATDEPFILES): Add proc-service.o,
4496 thread-db.o, lin-lwp.o; remove lin-thread.o, linux-thread.o.
4497 * config/arm/nm-linux.h (PREPARE_TO_PROCEED, ATTACH_LWP,
4498 GET_THREAD_SIGNALS): Define.
4499 * arm-linux-nat.c (fill_gregset): Correct type of argument.
4500 (supply_gregset): Likewise.
4501 (fill_fpregset): Likewise.
4502 (supply_fpregset): Likewise.
4503
4603e466
DT
4504Tue Feb 6 11:58:57 2001 David Taylor <taylor@redhat.com>
4505
4506 * valops.c (value_cast): If casting a scalar to a pointer, do not
4507 issue a message about truncation unless it exceeds the length of
4508 an address, not the length of a pointer. This is because what the
4509 user gives us is an address, not a pointer, and we will ultimately
4510 convert it (via ADDRESS_TO_POINTER) to a pointer, not truncate it
4511 to a pointer. This allows things like "print *(int *)0x01000234"
4512 to work without generating a misleading message on a target having
4513 two byte pointers and four byte addresses.
4514
554cb486
CF
45152001-02-05 Christopher Faylor <cgf@cygnus.com>
4516
4517 * win32-nat.c: Change PTR to void * throughout.
4518
042be3a9
C
45192001-02-05 J.T. Conklin <jtc@redback.com>
4520
4521 * signals.h: Removed.
4522 * event-top.c (#include <signal.h>): Changed from signals.h.
4523 * inflow.c: Likewise.
4524 * mac-xdep.c: Likewise.
4525 * ser-pipe.c: Likewise.
4526 * ser-tcp.c: Likewise.
4527 * standalone.c: Likewise.
4528 * top.c: Likewise.
4529 * utils.c: Likewise.
4530 * Makefile.in: Removed signals.h from dependencies.
4531
a4acd088
CF
45322001-02-05 Christopher Faylor <cgf@cygnus.com>
4533
4534 Change suggested by Dean Luick <luick@cray.com>
4535 * inferior.h (step_over_calls_kind): Remove trailing comma from
4536 last enum element.
4537 (step_over_calls): Declare as extern rather than global.
4538
3116c80a
EZ
45392001-02-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4540
4541 * sh-tdep.c: Update copyright.
4542 (sh_extract_return_value): Rewrite.
4543 (sh3e_sh4_extract_return_value): New function.
4544 (sh_gdbarch_init): Initialize gdbarch_extract-return_value to new
4545 version of the function for sh3e and sh4 CPUs.
4546
240be855
MC
45472001-02-05 Michael Chastain <chastain@redhat.com>
4548
4549 * hppah-nat.c (child_xfer_memory): Add parameter 'struct mem_attrib *'
4550 to conform with interface change.
4551
a17b5c4e
EZ
45522001-02-04 Eli Zaretskii <eliz@is.elta.co.il>
4553
32fe0950
EZ
4554 * config/djgpp/fnchange.lst: Tweak to make consistent with the
4555 new files.
4556
619cbaf7
EZ
4557 * config/djgpp/djconfig.sh: Use explicit absolute file name when
4558 invoking `find'.
4559
cd42d3a8
EZ
4560 * ser-go32.c (dos_write) [UART_FIFO_WORKS]: Use outportsb only if
4561 UART_FIFO_WORKS is defined. Otherwise use outportb.
4562 From Francisco Pastor <fpastor.etra-id@etra.es>
4563
a17b5c4e
EZ
4564 * go32-nat.c (go32_xfer_memory): Make the argument list consistent
4565 with target.h's `to_xfer_memory' member.
4566
86ddecc5
C
45672001-02-02 J.T. Conklin <jtc@redback.com>
4568
4569 * ppc-bdm.c (#include <signal.h>): Removed.
4570 * remote-array.c: Likewise.
4571 * remote-bug.c: Likewise.
4572 * remote-e7000.c: Likewise.
4573 * remote-mips.c: Likewise.
4574 * remote-os9k.c: Likewise.
4575 * remote-st.c: Likewise.
4576 * remote-udi.c: Likewise.
4577 * remote-vx29k.c: Likewise.
4578 * remote-vx68.c: Likewise.
4579 * remote-vx960.c: Likewise.
4580 * remote-vxmips.c: Likewise.
4581 * remote-vxsparc.c: Likewise.
4582
338d7c5c
JM
45832001-02-02 John Moore <jmoore@redhat.com>
4584
4585 * remote-utils.h (sr_set_device): Changed free() to xfree() where
4586 appropriate. Also changed Copyright to include 2001.
4587 * symtab.h (obstack_chunk_free, SYMBOL_INIT_DEMANGLED_NAME): Likewise.
4588 * value.h (value_free): Likewise.
4589 * gdbarch.sh (gdbarch_free): Likewise.
4590 * gdbarch.c, gdbarch.h: Regenerated.
4591
2b5436af
JM
45922001-02-02 John Moore <jmoore@redhat.com>
4593
4594 * cli/cli-cmds.c (apropos_command): Changed occurance of free() to
338d7c5c 4595 xfree(). Also changed Copyright to include 2001.
2b5436af 4596
82467003
C
45972001-02-02 J.T. Conklin <jtc@redback.com>
4598
4599 * monitor.c (#include "gdb_wait.h"): Removed.
4600 * ocd.c: Likewise.
4601 * ppc-bdm.c: Likewise.
4602 * remote-adapt.c: Likewise.
4603 * remote-array.c: Likewise.
4604 * remote-bug.c: Likewise.
4605 * remote-e7000.c: Likewise.
4606 * remote-eb.c: Likewise.
4607 * remote-es.c: Likewise.
4608 * remote-mips.c: Likewise.
4609 * remote-mm.c: Likewise.
4610 * remote-nindy.c: Likewise.
4611 * remote-os9k.c: Likewise.
4612 * remote-rdi.c: Likewise.
4613 * remote-rdp.c: Likewise.
4614 * remote-sds.c: Likewise.
4615 * remote-sim.c: Likewise.
4616 * remote-st.c: Likewise.
4617 * remote-udi.c: Likewise.
4618 * remote-vx.c: Likewise.
4619 * remote-vx29k.c: Likewise.
4620 * remote-vx68.c: Likewise.
4621 * remote-vx960.c: Likewise.
4622 * remote-vxmips.c: Likewise.
4623 * remote-vxsparc.c: Likewise.
4624 * remote.c: Likewise.
4625 * ser-pipe.c: Likewise.
4626 * ser-unix.c: Likewise.
4627 * Makefile.in: Updated dependencies.
4628
27b82ed2
DS
46292001-01-31 David Smith <dsmith@redhat.com>
4630
4631 * event-loop.c: Change inclusion of string.h to gdb_string.h and
4632 updated the copyright notice.
4633 * ser-pipe.c: Ditto.
4634 * mi/mi-cmds.c: Ditto.
4635 * mi/mi-console.c: Ditto.
4636 * mi/mi-getopt.c: Ditto.
4637 * mi/mi-parse.c: Ditto.
4638
ab9cc815
DS
46392001-01-31 David Smith <dsmith@redhat.com>
4640
4641 * MAINTAINERS: Add David Smith to Write After Approval list.
4642
d1f4cff8
AC
4643Tue Jan 30 15:43:08 2001 Andrew Cagney <cagney@cygnus.com>
4644
4645 * cli/cli-utils.c (putchar_filtered): Move function from here.
4646 * utils.c (putchar_filtered): To here.
4647 * cli/cli-utils.h (putchar_filtered): Move declaration from here.
4648 * defs.h (putchar_filtered): To here.
4649
74c1b268
AC
4650Tue Jan 30 17:27:11 2001 Andrew Cagney <cagney@redhat.com>
4651
4652 * configure.in (AC_CHECK_FUNCS): Replace vfork test with
4653 AC_FUNC_VFORK macro.
4654 * config.in, configure: Re-generate.
4655
4656 * gdb_vfork.h: New file.
4657 * ser-pipe.c (pipe_open): Update. Include "gdb_vfork.h".
4658 * fork-child.c (fork_inferior): Ditto.
4659
4fcf66da
AC
4660Tue Jan 30 17:09:07 2001 Andrew Cagney <cagney@redhat.com>
4661
4662 * defs.h (strsave): Delete declaration.
4663 * utils.c (strsave): Delete definition.
4664 * TODO (strsave): Update
4665
4666 * mac-xdep.c (tilde_expand): Replace strsave with xstrdup.
4667 * sparcl-tdep.c (sparclite_open): Ditto.
4668 * mips-tdep.c (mips_set_processor_type_command): Ditto.
4669 (_initialize_mips_tdep): Ditto.
4670 * solib.c (solib_open): Ditto.
4671 * symfile.c (add_filename_language): Ditto.
4672 (set_ext_lang_command): Ditto.
4673 * source.c (init_source_path): Ditto.
4674 (mod_path): Ditto.
4675 * sh3-rom.c (sh3_open): Ditto.
4676 (sh3e_open): Ditto.
4677 * serial.c (serial_open): Ditto.
4678 * remote-mips.c (common_open): Ditto.
4679 * monitor.c (monitor_open): Ditto.
4680 * m32r-rom.c (m32r_upload_command): Ditto.
4681 * infcmd.c (path_command): Ditto.
4682 * f-exp.y (parse_number): Ditto.
4683 * breakpoint.c (create_longjmp_breakpoint): Ditto.
4684 (create_thread_event_breakpoint): Ditto.
4685 * arc-tdep.c (arc_set_cpu_type_command): Ditto.
4686 (_initialize_arc_tdep): Ditto.
4687
e191e0ab
AC
4688Tue Jan 30 15:14:26 2001 Andrew Cagney <cagney@skil>
4689
4690 * cli/cli-script.c (define_command): Check for a bad hook value in
4691 switch statement.
4692
10214f55
C
46932001-01-30 J.T. Conklin <jtc@redback.com>
4694
4695 * configure/sh/embed.mt: New file.
4696 * configure/sh/linux.mt: New file.
4697 * configure/sh/sh.mt: Removed.
4698 * configure.tgt (sh-*-hms,sh-*-coff*,sh-*-elf*,sh-*-linux): New targets.
4699 (sh-*-*): Removed.
4700
c9049fc9
MC
47012001-01-29 Michael Chastain <chastain@redhat.com>
4702
4703 * symtab.c (block_lookup_symbol): Use 'namespace' parameter in
4704 symbol comparisons in binary search.
4705
0cff82d9 47062001-01-27 Christopher Faylor <cgf@cygnus.com>
aea02b6b
CF
4707
4708 * win32-nat.c (child_xfer_memory): Add missing argument required by
4709 2001-01-23 change.
4710
e6e0bfab
MK
47112001-01-27 Mark Kettenis <kettenis@gnu.org>
4712
4713 * ui-out.c (do_list_end): New function.
4714 (make_cleanup_ui_out_list_end): New function.
4715 * ui-out.h: Provide prototype for make_cleanup_ui_out_list_end.
4716 * stack.c (print_frame) [UI_OUT]: Call
4717 make_cleanup_ui_out_list_end to make sure we mark the end of the
4718 list if we do a non-local exit. At the end of the function,
4719 instead of calling ui_out_list_end directly, let do_cleanups
4720 handle it.
4721
1adeb98a
FN
47222001-01-26 Fernando Nasser <fnasser@redhat.com>
4723
4724 Fix double parsing of filenames passed as command line arguments
4725 to GDB (causes weird handling of escape characters).
4726 Also, remove dependencies on the CLI from libgdb.
4727 * call-cmds.h: Remove declaration of exec_file_command().
4728 * gdbcore.h: Remove declaration of exec_file_command().
4729 Add declarations for exec_open() and exec_file_clear().
4730 * symfile.h: Add declarations for symbol_file_add_main() and
4731 symbol_file_clear().
4732 * exec.c (exec_open): New function. Implements to_open for exec
4733 targets.
4734 (exec_file_clear): New function. Makes GDB forget about a previously
4735 specified executable file.
4736 (exec_file_attach): Move parsing of arguments from here ...
4737 (exec_file_command): ... to here.
4738 (init_exec_ops): Use exec_open(), not exec_file_command() to
4739 implement to_open for exec targets.
4740 * symfile.c (symbol_file_add_main): New function. Call symbol_file_add()
4741 with default values. Used when the file name has already been parsed.
4742 (symbol_file_clear): New function. Makes GDB forget about previously
4743 read symbols.
4744 (symbol_file_command): Call the above function instead of inline code.
4745 * main.c: Include "symfile.h" and "gdbcore.h" instead of the deprecated
4746 "call-cmds.h".
4747 (captured_main): Call exec_file_attach() and symbol_file_add_main()
4748 instead of exec_file_command() and symbol_file_command().
4749 (captured_main): Add comment.
4750 * corefile.c: Include "symfile.h".
4751 (core_file_command): Call symbol_file_add_main() instead of
4752 symbol_file_command().
4753 (reopen_exec_file): Call exec_open() instead of exec_file_command().
4754 * infcmd.c: Include "symfile.h".
4755 (attach_command): Call symbol_file_add_main() instead of
4756 symbol_file_command().
4757 * infrun.c: Remove comment about the inclusion of "symfile.h",
4758 not any longer appropriate.
4759 (follow_exec): Call symbol_file_add_main() instead of
4760 symbol_file_command().
4761 * remote-es.c: Include "symfile.h".
4762 (es1800_load): Call symbol_file_add_main() instead of
4763 symbol_file_command().
4764 * remote-vx.c: Remove comment about the inclusion of "symfile.h",
4765 not any longer appropriate.
4766 (vx-wait): Call symbol_file_add_main() instead of
4767 symbol_file_command().
4768 * solib-svr4.c (open_symbol_file_object): Call symbol_file_add_main()
4769 instead of symbol_file_command().
4770 * v850ice.c (ice_file): Call exec_open(), exec_file_attach() and
4771 symbol_file_add_main() instead of exec_file_command() and
4772 symbol_file_command().
4773 * Makefile.in: Update dependencies.
4774
5b616ba1
JH
47752001-01-26 Jeff Holcomb <jeffh@redhat.com>
4776
4777 * remote-udi.c (udi_open): Change strdup to xstrdup.
4778 * thread.c (thread_apply_all_command): Change strdup to xstrdup.
4779 Update copyright message.
4780 * varobj.c (delete_variable_1): Likewise.
4781
4782 * gdb_string.h: Remove declaration of strdup. Update copyright
4783 message.
4784 * config/xm-mpw.h: Likewise.
4785 * config/i386/xm-i386mach.h: Likewise.
4786 * config/m68k/xm-apollo68b.h: Likewise.
4787 * config/m68k/xm-hp300bsd.h: Likewise.
4788 * config/rs6000/xm-rs6000.h: Likewise.
4789 * config/vax/xm-vaxult.h: Remove declaration of strdup.
4790 * config/vax/xm-vaxult2.h: Likewise.
4791
b91d87cf
JH
47922001-01-26 Jeff Holcomb <jeffh@redhat.com>
4793
4794 * MAINTAINERS: Add Jeff Holcomb to Write After Approval list.
4795
873406a6
C
47962001-01-25 J.T. Conklin <jtc@redback.com>
4797
4798 * target.c (target_xfer_memory_partial): Return -1 on failure due
4799 to invalid access mode attribute.
4800
0613c401
CF
48012001-01-25 Christopher Faylor <cgf@cygnus.com>
4802
4803 * win32-nat.c (_initialize_core_win32): Prototype correctly.
4804
efd59e3f
MK
48052001-01-25 Mark Kettenis <kettenis@gnu.org>
4806
4807 * config/alpha/tm-fbsd.h: Update copyright.
4808 (USE_STRUCT_CONVENTION): Define in terms of
4809 alphabsd_use_struct_convention.
4810 * config/alpha/fbsd.mt (TDEPFILES): Add alphafbsd-tdep.c.
4811 * alphafbsd-tdep.c: New file.
4812
388e1ff2
FN
48132001-01-24 Fernando Nasser <fnasser@redhat.com>
4814
4815 * top.c (print_gdb_version): Update Copyright year.
4816
f4d650ec
C
48172001-01-24 J.T. Conklin <jtc@redback.com>
4818
4819 * dcache.c (dcache_write_line): Fix typo.
4820
4821 * memattr.c (delete_mem_region): Replace free() with xfree().
4822 (mem_number): Add explicit type.
4823
4824 * sol-thread.c (sol_thread_xfer_memory): Add attrib argument.
4825 (rw_common): Likewise.
4826
07091751
FN
48272001-01-24 Fernando Nasser <fnasser@redhat.com>
4828
4829 * infcmd.c (get_inferior_args, set_inferior_args): Accessor functions
4830 for the inferior program arguments.
4831 (run_command, run_no_args_command, init_infcmd)): Use accessor
4832 functions to set the inferior program arguments.
4833 * inferior.h: Add definitions to the accessor functions above.
4834
090c42a4
JB
48352001-01-23 Jim Blandy <jimb@redhat.com>
4836
4837 * dwarf2read.c (read_tag_const_type, read_tag_volatile_type):
4838 Implement these correctly, using make_cv_type.
4839
f29d9b6d 48402001-01-23 J.T. Conklin <jtc@redback.com>
29e57380
C
4841
4842 * exec.c (xfer_memory): Add attrib argument.
4843 * infptrace.c (child_xfer_memory): Likewise.
e5da8f38 4844 * lin-lwp.c (lin_lwp_xfer_memory): Likewise.
29e57380
C
4845 * monitor.c (monitor_xfer_memory): Likewise.
4846 * remote-adapt.c (adapt_xfer_inferior_memory): Likewise.
4847 * remote-array.c (array_xfer_memory): Likewise.
4848 * remote-bug.c (bug_xfer_memory): Likewise.
4849 * remote-e7000.c (e7000_xfer_inferior_memory): Likewise.
4850 * remote-eb.c (eb_xfer_inferior_memory): Likewise.
4851 * remote-es.c (es1800_xfer_inferior_memory): Likewise.
4852 * remote-mips.c (mips_xfer_memory): Likewise.
4853 * remote-mm.c (mm_xfer_inferior_memory): Likewise.
4854 * remote-nindy.c (nindy_xfer_inferior_memory): Likewise.
4855 * remote-os9k.c (rombug_xfer_inferior_memory): Likewise.
4856 * remote-rdi.c (arm_rdi_xfer_memory): Likewise.
4857 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Likewise.
4858 * remote-sds.c (sds_xfer_memory): Likewise.
4859 * remote-sim.c (gdbsim_xfer_inferior_memory): Likewise.
4860 * remote-st.c (st2000_xfer_inferior_memory): Likewise.
4861 * remote-udi.c (udi_xfer_inferior_memory): Likewise.
4862 * remote-vx.c (vx_xfer_memory): Likewise.
4863 * remote.c (remote_xfer_memory): Likewise.
4864 * target.c (debug_to_xfer_memory, do_xfer_memory): Likewise.
4865 * target.h (child_xfer_memory, do_xfer_memory, xfer_memory): Likewise.
e5da8f38 4866 * thread-db.c (thread_db_xfer_memory): Likewise.
29e57380
C
4867
4868 * target.h (#include "memattr.h"): Added.
4869 (target_ops.to_xfer_memory): Add attrib argument.
4870
4871 * wince.c (_initialize_inftarg): Removed call to set_dcache_state.
4872 * dcache.h (set_dcache_state): Removed declaration.
4873 * dcache.c (set_dcache_state): Removed definition
4874
4875 * dcache.c: Update module comment, as dcache is now enabled and
4876 disabled with memory region attributes instead of by the global
4877 variable "remotecache". Add comment describing the interaction
4878 between dcache and memory region attributes.
4879 (dcache_xfer_memory): Add comment describing benefits of moving
4880 cache writeback to a higher level.
4881 (dcache_struct): Removed cache_has_stuff field. This was used to
4882 record whether the cache had been accessed in order to invalidate
4883 it when it was disabled. However, this is not needed because the
4884 cache is write through and the code that enables, disables, and
4885 deletes memory regions invalidate the cache. Add comment which
4886 suggests that we could be more selective and only invalidate those
4887 cache lines containing data from those memory regions.
4888 (dcache_invalidate): Updated.
4889 (dcache_xfer_memory): Updated.
f29d9b6d 4890
29e57380
C
4891 (dcache_alloc): Don't abort() if dcache_enabled_p is clear.
4892 (dcache_xfer_memory): Removed code that called do_xfer_memory() to
4893 perform a uncached transfer if dcache_enabled_p was clear. This
4894 function is now only called if caching is enabled for the memory
4895 region.
4896 (dcache_info): Always print cache info.
4897
4898 * target.c (do_xfer_memory): Add attrib argument.
4899 (target_xfer_memory, target_xfer_memory_partial): Break transfer
4900 into chunks defined by memory regions, pass region attributes to
4901 do_xfer_memory().
4902 * dcache.c (dcache_read_line, dcache_write_line): Likewise.
4903
4904 * Makefile.in (SFILES): Add memattr.c.
4905 (COMMON_OBS): Add memattr.o.
4906 (dcache.o): Add target.h to dependencies.
4907 * memattr.c: New file.
4908 * memattr.h: Likewise.
4909
f29d9b6d
C
4910 * config/m32r/m32r.mt (GDBSERVER_LIBS): Added ../../intl/libintl.a.
4911 * config/mips/vr5000.mt (GDBSERVER_LIBS): Likewise.
4912 * config/tic80/tic80.mt (GDBSERVER_LIBS): Likewise.
4913 * gdbserver/low-sim.c (#include "defs.h"): Removed.
4914 (mygeneric_load): Rename from generic_load.
4915
4916 * gdbserver/low-hppabsd.c (#include "server.h"): Added.
4917 (#include "defs.h"): Removed.
4918 (inferior_pid, perror_with_name): Remove declarations.
4919 * gdbserver/low-linux.c: Likewise.
4920 * gdbserver/low-nbsd.c: Likewise.
4921 * gdbserver/low-sparc.c: Likewise.
4922 * gdbserver/low-sun3.c: Likewise.
4923
4924 * i386-stub.c: Re-indent.
4925 * m68k-stub.c: Re-indent.
4926
58d5518e
ND
49272001-01-22 Nicholas Duffek <nsd@redhat.com>
4928
4929 * gdbarch.sh (PARM_BOUNDARY): Define.
4930 * gdbarch.c: Regenerate.
4931 * gdbarch.h: Regenerate.
4932
f6427ade
C
49332001-01-22 J.T. Conklin <jtc@redback.com>
4934
4935 * ns32k-tdep.c: #include "frame.h"
4936 * config/ns32k/tm-umax.h (FRAME_FIND_SAVED_REGS): Restore. It
4937 appears to have been inadvertantly removed sometime in May 1999.
4938
4939 * Revert 2000-11-09 changes where shared library objects were
4940 moved from NATDEPFILES to TDEPFILES on NetBSD targets. While
4941 we'd like to be able to debug dynamically linked executables,
4942 this makes it impossible to build a cross debugger on a many
4943 hosts.
4944
4945 * config/i386/nbsd.mt: Remove solib.o, solib-svr4.o from TDEPFILES.
4946 * config/i386/nbsdelf.mt: Likewise.
4947 * config/m68k/nbsd.mt: Likewise.
4948 * config/ns32k/nbsd.mt: Likewise.
4949 * config/powerpc/nbsd.mt: Likewise.
4950 * config/sparc/nbsd.mt: Likewise.
4951 * config/sparc/nbsdelf.mt: Likewise.
4952 * config/i386/nbsd.mh: Add solib.o, solib-svr4.o to NATDEPFILES.
4953 * config/i386/nbsdelf.mh: Likewise.
4954 * config/m68k/nbsd.mh: Likewise.
4955 * config/ns32k/nbsd.mh: Likewise.
4956 * config/powerpc/nbsd.mh: Likewise.
4957 * config/sparc/nbsd.mh: Likewise.
4958
8052a17a
JM
49592001-01-19 Jason Merrill <jason@redhat.com>
4960
4961 * dbxread.c (read_ofile_symtab): Stay with AUTO_DEMANGLING for G++.
4962 (process_one_symbol): Likewise.
4963 * dwarfread.c (handle_producer): Likewise.
4964
21a6f6bb
AC
4965Thu Jan 18 12:08:57 2001 Andrew Cagney <cagney@b1.cygnus.com>
4966
4967 * configure.in (build_warnings): Disable -Wuninitialized until GDB
4968 compiles with -Wuninitialized,-Werror.
4969 * configure: Regenerate.
4970
4971 * MAINTAINERS: Add list of buildable targets.
4972
494b7ec9
AC
4973Thu Jan 18 12:48:04 2001 Andrew Cagney <cagney@b1.cygnus.com>
4974
4975 * defs.h (STRCMP): Delete macro.
4976
4977 * objfiles.c (objfile_relocate): Replace STRCMP with call to
4978 strcmp.
4979 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
4980 * symfile.c (compare_symbols): Ditto.
4981 * standalone.c (open): Ditto.
4982 * remote-es.c (verify_break): Ditto.
4983 * cli/cli-decode.c (add_cmd, add_show_from_set): Ditto.
4984
4985 * symfile.c (compare_psymbols): Delete comment refering to STRCMP.
4986
8038e1e2
AC
4987Thu Jan 18 12:25:06 2001 Andrew Cagney <cagney@b1.cygnus.com>
4988
4989 * varobj.c (FREEIF): Delete macro.
4990 (varobj_set_value, free_variable): Replace FREEIF with ``xfree''
4991 call.
4992
ea8d0b28
NC
49932001-01-18 Nick Clifton <nickc@redhat.com>
4994
4995 * arc-tdep.c (arc_cpu_type_table): Add new arc core numbers.
4996 (arc_print_insn): No bfd available, so pass NULL to
4997 arc_get_disassembler.
4998
5dbd9048
JB
49992001-01-09 James Ingham <jingham@inghji.apple.com>
5000
5001 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux to lookup
5002 a mangled symbol rather than recursing into lookup_symbol, since
5003 this will just re-unmangle the name & call lookup_symbol_aux -
5004 leading to an infinite recursion.
5005
28ae27b1
MK
50062001-01-18 Mark Kettenis <kettenis@gnu.org>
5007
5008 * infcmd.c (print_return_value): Restore another space lost by
5009 switch to UIOUT. ``$NN='' should be ``$NN =''.
5010
6ab3a9c9
AC
5011Fri Jan 19 02:31:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
5012
5013 * target.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
5014 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Wrap macro
5015 definition in parenthesis.
5016
ad6525fc
AC
5017Fri Jan 19 02:13:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
5018
5019 From 2000-10-27 Mark Salter <msalter@redhat.com>:
5020 * remote.c (remote_remove_hw_breakpoint): Add 'len' field to Z
5021 packet.
5022 (remote_insert_hw_breakpoint): Ditto.
5023
6259c7e2
C
50242001-01-17 J.T. Conklin <jtc@redback.com>
5025
5026 * config/m68k/tm-nbsd.h (USE_STRUCT_CONVENTION): Define.
9c95b27f 5027 (BPT_VECTOR, REMOTE_BPT_VECTOR): Change to 0xf.
6259c7e2
C
5028 * config/m68k/nbsd.mt (TDEPFILES): Add m68knbsd-tdep.o.
5029 * m68knbsd-tdep.c: New file.
5030
5031 * i386nbsd-tdep.c: Remove #if 0'd out #includes.
5032
5033 * m68knbsd-nat.c: #include gdbcore.h.
5034
abdcb2a5
AC
5035Wed Jan 17 09:41:58 2001 Andrew Cagney <cagney@b1.cygnus.com>
5036
5037 * MAINTAINERS: Add J.T. Conklin to Blanket Write Privs.
5038
e7a8479f
MS
50392001-01-16 Michael Snyder <msnyder@cleaver.cygnus.com>
5040
aaeb7efa
MS
5041 * procfs.c (procfs_stopped_by_watchpoint): Don't die if process
5042 goes away -- just return false (ie. not stopped by watchpoint).
e7a8479f
MS
5043 * source.c (openp): Fix typo in comment.
5044
7036d6ce
ND
50452001-01-12 Nicholas Duffek <nsd@redhat.com>
5046
5047 * blockframe.c (generic_get_saved_register): Spelling fix.
5048 * frame.h (FRAME_FP): Spelling fix.
5049
9549d9c1
AC
5050Fri Jan 12 18:29:46 2001 Andrew Cagney <cagney@b1.cygnus.com>
5051
5052 * infcmd.c (print_return_value): Restore space lost by switch to
5053 UIOUT. ``$NN='' should be ``$NN =''.
5054
7302a204
ND
50552001-01-08 Nicholas Duffek <nsd@redhat.com>
5056
5057 * regcache.c (set_register_cached, register_buffer,
5058 real_register, pseudo_register fetch_register, store_register):
5059 New functions.
5060 (register_changed, read_relative_register_raw_bytes_for_frame,
5061 registers_changed, registers_fetched, read_register_bytes,
5062 read_register_gen, write_register_gen, read_register,
5063 read_signed_register, write_register, supply_register): Replace
5064 register_valid[] with register_cached() and
5065 set_register_cached().
5066 (read_register_bytes, read_register_gen, write_register_gen,
5067 read_register, read_signed_register, write_register,
5068 supply_register): Replace registers[] with register_buffer().
5069 (read_register_bytes, read_register_gen, read_register,
5070 read_signed_register): Call fetch_register().
5071 (write_register_gen, write_register): Call real_register() and
5072 store_register().
5073 (write_register_bytes): Call store_register().
5074 * value.h (set_register_cached, register_buffer): Prototype.
5075 * remote.c (remote_fetch_registers): Allocate regs[] with a
5076 run-time size. Replace register_valid[] with
5077 set_register_cached().
5078 (store_register_using_P, remote_store_registers): Replace
5079 registers[] with register_buffer().
5080
5ebd2499
ND
50812001-01-08 Nicholas Duffek <nsd@redhat.com>
5082
5083 * regcache.c: Change "write-back" comment to "write-through".
5084 Change "regno" to "regnum".
5085 (read_register, read_signed_register): Remove "raw" from return
5086 value description.
5087 (supply_register): Spelling fix.
5088 * value.h: Change "regno" to "regnum".
5089
1302fd5e
FN
50902001-01-08 Fernando Nasser <fnasser@redhat.com>
5091
5092 * Makefile.in (install-gdbtk): Add .itcl files to the list of files
5093 to be installed.
5094
9dcb560c
MS
50952001-01-04 Michael Snyder <msnyder@mvstp600e.cygnus.com>
5096
5097 * mips-tdep.c (mips_coerce_float_to_double): Fix typo in comment.
5098
0e2fb98e
ND
50992001-01-04 Nicholas Duffek <nsd@redhat.com>
5100
5101 * valops.c (VALUE_SUBSTRING_START): Delete.
5102
12cf3f1b
ND
51032001-01-04 Nicholas Duffek <nsd@redhat.com>
5104
5105 * Makefile.in (SUBDIR_CLI_OBS): Add cli/cli-utils.o.
5106 (SUBDIR_CLI_SRCS): Add cli/cli-utils.c.
5107 (cli_utils_h): New variable.
5108 (cli/cli-utils.o): New rule.
5109 * cli/cli-utils.c: New file.
5110 * cli/cli-utils.h: New file.
5111
cc533b9d
ND
51122001-01-04 Nicholas Duffek <nsd@redhat.com>
5113
5114 * config/i386/tm-i386.h (REGISTER_CONVERT_TO_VIRTUAL,
5115 REGISTER_CONVERT_TO_RAW): Delete trailing semicolon.
5116
ad2a4d09
C
51172001-01-03 J.T. Conklin <jtc@redback.com>
5118
5119 * alphabsd-nat.c, i386-linux-nat.c, i386bsd-nat.c: Fix typo in
5120 comment.
5121
8140e7ac
MS
51222001-01-02 Michael Snyder <msnyder@cleaver.cygnus.com>
5123
3116c80a
EZ
5124 * sh-tdep.c (sh_default_store_return_value): Allow for small return type.
5125 (sh3e_sh4_store_return_value): Call sh_default_store_return_value for
d19b71be 5126 non-float types.
779e876b 5127 * sparc-tdep.c (sparc_frame_chain): Fix typo in comment.
72e22353
MS
5128 Update copyright notice.
5129
15f33b66 5130For older changes see ChangeLog-2000
c906108c
SS
5131\f
5132Local Variables:
5133mode: change-log
5134left-margin: 8
5135fill-column: 74
5136version-control: never
5137End:
This page took 0.377249 seconds and 4 git commands to generate.