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