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