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