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