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