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