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