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