2002-04-05 Michael Snyder <msnyder@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2002-04-09 Andrew Cagney <ac131313@redhat.com>
2
3 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
4 override FP_REGNUM with frame->fp. Update copyright.
5 * parse.c (num_std_regs, std_regs): Delete.
6 (target_map_name_to_register): Do not search std_regs. Update
7 function description.
8 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9 declarations. Update copyright.
10 Fix PR gdb/251.
11
12 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
13
14 * gdbserver/Makefile.in: Add stamp-h target.
15 * gdbserver/configure.in: Create stamp-h.
16 * gdbserver/configure: Regenerated.
17
18 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19
20 * gdbserver/inferiors.c: New file.
21 * gdbserver/target.c: New file.
22 * gdbserver/target.h: New file.
23 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
24 dependencies.
25 * gdbserver/linux-low.c (inferior_pid): New static variable,
26 moved from server.c.
27 (linux_create_inferior): Renamed from create_inferior.
28 Call add_inferior. Return 0 on success instead of a PID.
29 (linux_attach): Renamed from myattach.
30 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
31 (linux_thread_alive): Renamed from mythread_alive.
32 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
33 child dies.
34 (linux_resume): Renamed from myresume. Add missing ``return 0''.
35 (regsets_store_inferior_registers): Correct error message.
36 Add missing ``return 0''.
37 (linux_fetch_registers): Renamed from fetch_inferior_registers.
38 (linux_store_registers): Renamed from store_inferior_registers.
39 (linux_read_memory): Renamed from read_inferior_memory.
40 (linux_write_memory): Renamed from write_inferior_memory.
41 (linux_target_ops): New structure.
42 (initialize_low): Call set_target_ops ().
43 * gdbserver/remote-utils.c (unhexify): New function.
44 (hexify): New function.
45 (input_interrupt): Send signals to ``signal_pid''.
46 * gdbserver/server.c (inferior_pid): Remove.
47 (start_inferior): Update create_inferior call.
48 (attach_inferior): Call add_inferior.
49 (handle_query): New function.
50 (main): Call handle_query for `q' packets.
51 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
52 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
53
54 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
55
56 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
57 dependencies.
58 * gdbserver/configure.in: Check for <string.h>
59 * gdbserver/configure: Regenerate.
60 * gdbserver/config.in: Regenerate.
61 * gdbserver/gdbreplay.c: Include needed system headers.
62 (remote_open): Remove strchr prototype.
63 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
64 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
65 (supply_register_by_name): Likewise.
66 (collect_register): Change buf argument to void *.
67 (collect_register_by_name): Likewise.
68 * gdbserver/regcache.h: Add missing prototypes.
69 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
70 * gdbserver/server.c (handle_query): New function.
71 (attached): New static variable, moved out of main.
72 (main): Quiet longjmp clobber warnings.
73 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
74 * gdbserver/utils.c (error): Remove NORETURN.
75 (fatal): Likewise.
76
77 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
78
79 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
80 after the last symbol in a block.
81
82 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
83
84 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
85 is non zero as a found symbol.
86
87 2002-04-08 Andrew Cagney <ac131313@redhat.com>
88
89 * findvar.c: Include "builtin-regs.h".
90 (value_of_register): Call value_of_builtin_reg when applicable.
91 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
92 (target_map_name_to_register): Call
93 builtin_reg_map_name_to_regnum.
94 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
95 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
96 (builtin_regs_h): Define.
97 (builtin-regs.o): New target.
98 (findvar.o): Add $(builtin_regs_h).
99 * builtin-regs.c, builtin-regs.h: New files.
100 * std-regs.c: New file.
101 Partial fix for PR gdb/251.
102
103 2002-04-08 Kevin Buettner <kevinb@redhat.com>
104
105 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
106 it's no longer required.
107
108 2002-04-08 Andrew Cagney <ac131313@redhat.com>
109
110 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
111
112 2002-04-08 Kevin Buettner <kevinb@redhat.com>
113
114 From Jimi X <jimix@watson.ibm.com>:
115 * rs6000-tdep.c (rs6000_software_single_step): Use
116 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
117 and size. Use target_insert_breakpoint() and
118 target_remove_breakpoint() to insert and remove breakpoints
119 instead of explicit memory reads and writes.
120
121 2002-04-08 Kevin Buettner <kevinb@redhat.com>
122
123 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
124 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
125 ELF_OBJECT_FORMAT ifdef.
126
127 2002-04-08 Kevin Buettner <kevinb@redhat.com>
128
129 From Jimi X <jimix@watson.ibm.com>:
130 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
131
132 2002-04-08 Kevin Buettner <kevinb@redhat.com>
133
134 From Jimi X <jimix@watson.ibm.com>:
135 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
136 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
137
138 2002-04-07 Mark Kettenis <kettenis@gnu.org>
139
140 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
141 s/asprintf/xasprintf/.
142 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
143
144 2002-04-07 Andrew Cagney <ac131313@redhat.com>
145
146 I believe Jeff Law denies responsability for this one:
147 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
148 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
149 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
150 Work-around for PR gdb/366.
151
152 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
153
154 * remote-e7000.c (write_small, e7000_read_inferior_memory,
155 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
156 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
157
158 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
159
160 * sh-tdep.c (sh_fp_frame_init_saved_regs,
161 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
162 information.
163
164 2002-04-07 Andrew Cagney <ac131313@redhat.com>
165
166 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
167 maintainer.
168
169 2002-04-07 Andrew Cagney <ac131313@redhat.com>
170
171 * README (Reporting Bugs in GDB): Document the bug web page as the
172 prefered way of submitting bugs.
173 Fix PR gdb/402.
174
175 2002-04-06 Andrew Cagney <ac131313@redhat.com>
176
177 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
178 -1. Update comment.
179 * gdbarch.h, gdbarch.c: Re-generate.
180
181 2002-04-07 Andreas Schwab <schwab@suse.de>
182
183 * m68klinux-nat.c (fill_fpregset): Properly pass address of
184 buffer to regcache_collect.
185
186 2002-04-06 Andrew Cagney <ac131313@redhat.com>
187
188 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
189 * gdbarch.c, gdbarch.h: Re-generate.
190
191 2002-04-06 Andrew Cagney <ac131313@redhat.com>
192
193 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
194 declaration. Fix -Werror.
195
196 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
197
198 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
199 * gdbarch.c: Regenerate.
200
201 2002-04-05 Michael Snyder <msnyder@redhat.com>
202
203 * breakpoint.c (clear_command): Rewrite middle section to
204 combine two loops with identical control conditions.
205 Add a cleanup to eliminate a memory leak.
206 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
207
208 2002-04-05 H.J. Lu (hjl@gnu.org)
209
210 * solib-svr4.c (bkpt_names): Add "__start".
211
212 2002-04-04 Andrew Cagney <ac131313@redhat.com>
213
214 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
215 as test for 64 bit target.
216
217 2002-04-05 Andrew Cagney <ac131313@redhat.com>
218
219 * h8500-tdep.c (h8500_write_fp): Delete function.
220 * dwarf2cfi.c (cfi_write_fp): Document as not used.
221 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
222 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
223 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
224 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
225 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
226 (s390_write_fp):
227 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
228 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
229 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
230 (d10v_write_fp): Delete function.
231 * inferior.h (write_fp, generic_target_write_fp): Delete
232 declarations.
233 * regcache.c (generic_target_write_fp): Delete function.
234 (write_fp): Delete function.
235 * gdbarch.sh (TARGET_WRITE_FP): Delete.
236 * gdbarch.h, gdbarch.c: Regenerate.
237 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
238 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
239 (sparc64_write_fp): Delete declaration.
240 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
241 (h8500_write_fp): Delete declaration.
242
243 2002-04-04 Andrew Cagney <ac131313@redhat.com>
244
245 * sparc-tdep.c (sparc64_write_fp): Delete.
246 (sparc_push_dummy_frame): Replace write_fp call with code to store
247 the FP directly.
248 (sparc_gdbarch_init): Do not initialize write_fp.
249
250 2002-04-05 Kevin Buettner <kevinb@redhat.com>
251
252 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
253 clause.
254
255 2002-03-29 Jim Blandy <jimb@redhat.com>
256
257 * stack.c (get_selected_block): Add new argument `addr_in_block',
258 used to return the exact code address we used to select the block,
259 not just the block.
260 * blockframe.c (get_frame_block, get_current_block): Same.
261 * frame.h (get_frame_block, get_current_block,
262 get_selected_block): Update declarations.
263 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
264 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
265
266 2002-04-05 Michael Snyder <msnyder@redhat.com>
267
268 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
269 warning message.
270
271 2002-04-05 J. Brobecker <brobecker@gnat.com>
272
273 * utils.c (xfullpath): New function.
274 * defs.h (xfullpath): Add declaration.
275 * source.c (openp): Use xfullpath in place of gdb_realpath to
276 avoid resolving the basename part of filenames when the
277 associated file is a symbolic link. This fixes a potential
278 inconsistency between the filenames known to GDB and the
279 filenames it prints in the annotations.
280 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
281 to be able to match a filename with either the real filename, or
282 the name of any symbolic link to this file.
283 (lookup_partial_symtab): Ditto.
284
285 2002-04-04 Michael Snyder <msnyder@redhat.com>
286
287 * breakpoint.c: Add support for hardware breakpoints in overlays.
288 (overlay_events_enabled): New state variable.
289 (insert_breakpoints): Use overlay_events_enabled to decide
290 whether to attempt to set a breakpoint at the overlay load addr.
291 Handle bp_hardware_breakpoint as well as bp_breakpoint.
292 (remove_breakpoint): Use overlay_events_enabled to decide
293 whether breakpoints need to be removed from overlay load addr.
294 Handle bp_hardware_breakpoint as well as bp_breakpoint.
295 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
296 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
297 disable_overlay_breakpoints): Update overlay_events_enabled.
298
299 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
300
301 * dwarf2read.c (struct function_range): New.
302 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
303 (check_cu_functions): New.
304 (read_file_scope): Initialize global function lists.
305 Call dwarf_decode_line after processing children.
306 (read_func_scope): Add to global function list.
307 (dwarf_decode_lines): Call check_cu_functions everywhere
308 record_line is called. Call record_line with a linenumber
309 of 0 to mark sequence ends.
310
311 2002-04-04 Michal Ludvig <mludvig@suse.cz>
312
313 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
314 change sync with glibc.
315
316 2002-04-03 Jim Blandy <jimb@redhat.com>
317
318 * configure.in: Call AC_C_INLINE.
319 * configure: Regenerated.
320
321 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
322
323 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
324 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
325
326 2002-03-31 Mark Kettenis <kettenis@gnu.org>
327
328 * NEWS: Mention gcore support on FreeBSD/i386.
329
330 * fbsd-proc.c: New file.
331 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
332 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
333
334 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
335 while statement.
336
337 2002-03-29 Jim Blandy <jimb@redhat.com>
338
339 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
340 unescaped newlines in string literals, but newer ones don't. So
341 escape them.
342
343 2002-03-26 Michael Snyder <msnyder@redhat.com>
344 Andrew Cagney <cagney@redhat.com>
345
346 * cli/cli-dump.c: New file. Dump memory to file,
347 restore file to memory.
348 * cli/cli-dump.h: New file.
349 * Makefile.in: Add rules, dependencies for cli-dump.o.
350 * NEWS: Mention new commands.
351
352 2002-03-28 Michael Snyder <msnyder@redhat.com>
353
354 * symfile.c (symbol_file_add): Move test for null symbols to later.
355
356 2002-03-27 Andrew Cagney <ac131313@redhat.com>
357
358 From veksler at il.ibm.com:
359 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
360 the xstrduped original path.
361 Fix PR gdb/417.
362
363 2002-03-27 Michael Snyder <msnyder@redhat.com>
364
365 * breakpoint.c (_initialize_breakpoint): Clean up help string.
366 * infcmd.c (_initialize_infcmd): Ditto.
367 * language.c (_initialize_language): Ditto.
368 * symfile.c (_initialize_symfile): Ditto.
369 * top.c (_init_main): Ditto.
370 * cli/cli-cmds.c (init_cli_cmds): Ditto.
371
372 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
373
374 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
375 vector registers handling.
376 (skip_prologue): Handle new AltiVec instructions. Fill in new
377 fields of frame data.
378 (frame_get_saved_regs): Fill in information for AltiVec registers.
379
380 2002-03-27 Jim Blandy <jimb@redhat.com>
381
382 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
383 a function; leave this macro here to invoke that function.
384 (symbol_init_mangled_name): Declaration for that function.
385 * symtab.c (symbol_init_mangled_name): New function.
386
387 2002-03-27 Andrew Cagney <ac131313@redhat.com>
388
389 * valarith.c: Replace strerror with safe_strerror.
390 * tracepoint.c: Ditto.
391 * lin-lwp.c: Ditto.
392 * go32-nat.c: Ditto.
393 * inflow.c: Ditto.
394 * gnu-nat.c: Ditto.
395
396 2002-03-27 Andreas Schwab <schwab@suse.de>
397
398 * event-top.c (command_line_handler): Remove useless if.
399
400 2002-03-27 Andreas Jaeger <aj@suse.de>
401
402 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
403 comment.
404
405 2002-03-27 Michal Ludvig <mludvig@suse.cz>
406
407 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
408 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
409 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
410 (x86_64_linux_dr_get_status, supply_gregset),
411 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
412 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
413 (x86_64_register_info_table): Add.
414 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
415 (x86_64_register_raw_size, x86_64_register_virtual_type),
416 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
417 general x86_64_register_info_table.
418 (i386_gdbarch_init): gdbarch_register_bytes is now set
419 dynamicaly during initialization.
420 * regformats/reg-x86-64.dat: Synced with changes to registers above.
421 * gdbserver/linux-x86-64-low.c: Ditto.
422
423 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
424
425 * gdbserver/server.c (main): Call target_signal_to_host_p
426 and target_signal_to_host on signals received from the remote.
427 * gdbserver/remote-utils.c (prepare_resume_reply): Call
428 target_signal_from_host on signals sent to the remote.
429 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
430 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
431
432 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
433
434 * signals/signals.c: Include "server.h" in gdbserver build.
435 (target_signal_from_name): Don't use STREQ.
436 (_initialize_signals): Likewise. Don't include function in
437 gdbserver build.
438
439 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
440
441 * signals.c: Moved to...
442 * signals/signals.c: Here.
443 * Makefile (signals.o): Update.
444
445 2002-03-26 Jeff Law (law@redhat.com)
446
447 * somread.c (som_symtab_read): Remove some commented out code and
448 updated related comments. Do not set the minimal symbol table to
449 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
450 in a dynamic executable.
451 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
452 where we are unable to find the minimal symbol for the given
453 PC value.
454
455 2002-03-25 Jeff Law (law@redhat.com)
456
457 * linux-proc.c (read_mapping): Scan up to end of line for filename.
458
459 2002-03-25 Michal Ludvig <mludvig@suse.cz>
460
461 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
462
463 2002-03-23 Andrew Cagney <ac131313@redhat.com>
464
465 * command.h: Update copyright.
466 (struct cmd_list_element): Replace definition with opaque
467 declaration.
468 (enum cmd_types): Document that it will eventually be moved to
469 cli/cli-decode.h
470 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
471 (MALLOCED_REPLACEMENT): Delete macro.
472 * Makefile.in (cli_decode_h): Add $(command_h).
473 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
474 * top.c: Include "cli/cli-decode.h".
475 * completer.c: Include "cli/cli-decode.h".
476 * maint.c: Include "cli/cli-decode.h".
477 * cli/cli-decode.h: Include "command.h".
478 (enum command_class): Delete.
479 (enum cmd_types): Comment out.
480 (enum cmd_auto_boolean): Delete.
481 (enum var_types): Delete.
482
483 2002-03-23 Andrew Cagney <ac131313@redhat.com>
484
485 * cli/cli-decode.c: Include "gdb_assert.h".
486 (add_set_or_show_cmd): New static function.
487 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
488 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
489 all fields, such as func, from the set command.
490
491 2002-03-23 Andrew Cagney <ac131313@redhat.com>
492
493 * MAINTAINERS (sh-elf): Change warning flag to -w.
494
495 2002-03-23 Andrew Cagney <cagney@redhat.com>
496
497 * defs.h (error): Add printf format attribute.
498 * thread-db.c (thread_from_lwp): Fix error format string.
499 * stack.c (parse_frame_specification): Ditto.
500 * cli/cli-decode.c (undef_cmd_error): Ditto.
501 * scm-lang.c (scm_lookup_name): Ditto.
502 * tracepoint.c (trace_error): Ditto.
503 * remote-utils.c (usage): Ditto.
504 * remote.c (compare_sections_command): Ditto.
505 Fix PR gdb/328.
506
507 2002-03-22 Andrew Cagney <ac131313@redhat.com>
508
509 * gdbtypes.c (append_composite_type_field): New function.
510 (init_composite_type): New function.
511 * gdbtypes.h (append_composite_type_field): Declare.
512 (init_composite_type): Ditto.
513
514 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
515
516 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
517 function.
518 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
519 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
520 structure returning convention for SYSV ABI case, but not
521 for GNU/Linux, FreeBSD, or NetBSD.
522
523 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
524
525 * symtab.h (lookup_block_symbol): Add mangled_name argument
526 to prototype.
527
528 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
529 with new mangled_name argument.
530 * linespec.c (decode_line_1): Likewise.
531 * valops (value_of_this): Likewise.
532 * symtab.c (lookup_transparent_type): Likewise.
533 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
534 (lookup_symbol): If we are given a mangled name, pass it down
535 to lookup_symbol_aux.
536 (lookup_block_symbol): If we are given a mangled name to check
537 against, only return symbols which match it.
538
539 2002-03-22 Christopher Faylor <cgf@redhat.com>
540
541 * win32-nat.c (child_create_inferior): Check for proper shell to use
542 here, in case the user changes it on the fly.
543 (_initialize_inftarg): Remove shell path considerations.
544
545 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
546
547 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
548 for gdbarch_max_register_raw_size and max_register_virtual_size.
549 Adjust copyright year.
550
551 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
552
553 * dbxread.c (process_one_symbol): Extend the first N_SLINE
554 in a function to cover the entire beginning of the function
555 as well if it does not already.
556
557 2002-03-21 Tom Rix <trix@redhat.com>
558
559 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
560 (rs6000_ptrace64): Renamed from ptrace64.
561
562 2002-03-20 Martin M. Hunt <hunt@redhat.com>
563
564 * gdbserver/remote-utils.c (remote_open): Don't call
565 getprotobyname, we're all using TCP here so just use
566 IPPROTO_TCP.
567 * gdbserver/gdbreplay.c (remote_open): Ditto.
568
569 2002-03-20 Martin M. Hunt <hunt@redhat.com>
570
571 * regcache.c (_initialize_regcache): No need to call
572 build_regcache() at this time; it gets called whenever
573 the gdbarch changes.
574
575 2002-03-20 David O'Brien <obrien@FreeBSD.org>
576
577 * sparc-nat.c: Include sys/param.h where possible.
578
579 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
580
581 Fix PR gdb/422.
582 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
583 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
584 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
585 complex types.
586 * stabsread.c (rs6000_builtin_type): Likewise.
587 (read_sun_floating_type): Likewise.
588
589 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
590
591 * stabsread.c (read_member_functions): Remove skip code for duplicate
592 constructor/destructor methods. Use standard parsing for these
593 methods and just do not chain them to the list of methods after
594 parsing.
595
596 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
597
598 * coffread.c: Remove redundant static declarations. Replace
599 occurrences of `PTR' with `void *'.
600 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
601 * top.h (quit_cover): Likewise.
602 * defs.h (catch_errors): Likewise.
603
604 2002-03-18 Andrew Cagney <ac131313@redhat.com>
605
606 * defs.h (XMALLOC): Define.
607 * gdb-events.sh (XMALLOC): Delete macro.
608 * gdb-events.c, gdb-events.h: Regenerate.
609 * gdbarch.sh (XMALLOC): Delete macro.
610 * gdbarch.c: Regenerate.
611 * serial.c (XMALLOC): Delete macro.
612 * ui-file.c (XMALLOC): Ditto.
613 * ser-unix.h (XMALLOC): Ditto.
614 * sh-tdep.c (XMALLOC): Ditto.
615 * ui-out.c (XMALLOC): Ditto.
616 * utils.c (XMALLOC): Ditto.
617 * i386-tdep.c (XMALLOC): Ditto.
618 * gdb-events.c (XMALLOC): Ditto.
619 * d10v-tdep.c (XMALLOC): Ditto.
620 * cli-out.c (XMALLOC): Ditto.
621
622 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
623 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
624 * ui-file.c, ui-out.c: Ditto.
625
626 2002-03-18 Andrew Cagney <ac131313@redhat.com>
627
628 * command.h (struct cmd_list_element): Add field context.
629 (set_cmd_context, get_cmd_context): Declare.
630 * cli/cli-decode.h: Ditto.
631 * cli/cli-decode.c (get_cmd_context): New function.
632 (set_cmd_context): New function.
633 (add_cmd): Initialize context.
634 Part of fixing PR gdb/145 and PR gdb/146.
635
636 2002-03-17 Andrew Cagney <ac131313@redhat.com>
637
638 * cli/cli-decode.c (cmd_type): New function.
639 * command.h (cmd_type): Declare.
640 * infrun.c (set_schedlock_func): Call function cmd_type.
641 * kod.c (kod_set_os): Call cmd_type.
642 * cris-tdep.c (cris_version_update): Use function cmd_type.
643 (cris_mode_update, cris_abi_update): Ditto.
644
645 * command.h: (execute_cmd_post_hook): Declare.
646 (execute_cmd_pre_hook): Declare.
647 * cli/cli-script.c (clear_hook_in_cleanup): New function.
648 (execute_cmd_post_hook, execute_cmd_pre_hook): New
649 functions. Execute pre/post hook while ensuring that afterwords
650 hook_in is cleared.
651 * top.c (execute_command): Use execute_cmd_post_hook, and
652 execute_cmd_pre_hook to execute pre/post commands.
653 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
654 hook_stop_stub.
655 (hook_stop_stub): Call execute_cmd_pre_hook.
656
657 2002-03-17 Andrew Cagney <ac131313@redhat.com>
658
659 * kod.c (kod_set_os): Revert previous change. Is called by ``info
660 set'' and this leads to a core dump. Move xstrdup of
661 operating_system to after check that it is not NULL.
662
663 2002-03-17 Andrew Cagney <ac131313@redhat.com>
664
665 * kod.c (kod_set_os): Remove unnecessary check that
666 ``command->type'' is set_cmd.
667
668 * valprint.c (set_input_radix): Use input_radix.
669 (set_output_radix): Use output_radix.
670 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
671 isn't reverted.
672
673 2002-03-16 Andrew Cagney <ac131313@redhat.com>
674
675 * value.h (struct value): Delete field ``substring_addr''. Change
676 aligner fields to force_doublest_align, force_longest_align,
677 force_core_addr_align and force_pointer_aligh.
678
679 * value.h (struct value): Fix typo in above change.
680
681 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
682
683 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
684 to fix internal_error from ``maintenance print architecture''.
685
686 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
687
688 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
689 for gcc versions after gcc-2.8.1.
690
691 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
692
693 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
694 for method resolution. Restore adjustment of ``this'' pointer after
695 calling value_struct_elt, which was accidentally removed during the
696 HP merge.
697
698 2002-03-15 Andrew Cagney <ac131313@redhat.com>
699
700 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
701 value_of_register.
702 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
703 get_saved_register.
704 * value.h (value_of_register): Update.
705
706 2002-03-14 Richard Henderson <rth@redhat.com>
707
708 * configure.in: Detect declaration for canonicalize_file_name.
709 * utils.c (canonicalize_file_name): Declare, if needed.
710 (gdb_realpath): Prefer realpath if available and usable.
711 * config.in, configure: Rebuild.
712
713 2002-03-14 Richard Henderson <rth@redhat.com>
714
715 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
716 a constant array bound.
717
718 * MAINTAINERS: Add myself to write-after-approval.
719
720 2002-03-14 Michael Snyder <msnyder@redhat.com>
721
722 * symfile.c (syms_from_objfile): Return immediately if no syms.
723 (symbol_file_add): Return immediately if no syms.
724 (find_sym_fns): Return immediately if no syms.
725
726 2002-03-13 Michal Ludvig <mludvig@suse.cz>
727
728 * gdbserver/remote-util.c (remote_open): Print remote-side's
729 IP address when remote debugging over the network.
730
731 2002-03-12 David O'Brien <obrien@FreeBSD.org>
732
733 * config/sparc/fbsd.mh: Fix copyright.
734 * config/sparc/fbsd.mt: Likewise.
735
736 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
737
738 * MAINTAINERS: Fix typo in name of gdb warnings option.
739 (x86-64): Fix formating so that this can be parsed by awk.
740
741 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
742
743 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
744 * defs.h: Include "gdb/signals.h".
745 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
746
747 2002-03-10 Michal Ludvig <mludvig@suse.cz>
748
749 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
750 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
751 from x86-64-tdep.h
752
753 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
754 Don Howard <dhoward@redhat.com>
755
756 * mips-tdep.c (ST0_FR): Define.
757 (mips2_fp_compat): New function, temporarily disabled.
758 (mips_read_fp_register_single): New function.
759 (mips_read_fp_register_double): New function.
760 (mips_print_register): Use them.
761 (do_fp_register_row): Likewise.
762
763 2002-03-09 Andrew Cagney <ac131313@redhat.com>
764
765 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
766 approval''.
767
768 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
769
770 * stabsread.c (read_member_functions): Fix is_stub test for
771 static member functions, improve comment.
772
773 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
774
775 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
776 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
777 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
778 commands that set boolean values.
779 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
780 (arm_rdi_resume): Always initialize PC.
781 (arm_rdi_open): Don't use rslt as a boolean.
782 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
783 (arm_rdi_fetch_registers, arm_rdi_store_registers)
784 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
785 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
786
787 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
788
789 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
790 * configure: Rebuilt.
791
792 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
793
794 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
795 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
796
797 2002-03-06 Andrew Cagney <ac131313@redhat.com>
798
799 * cli/cli-decode.c (set_cmd_completer): New function.
800 * command.h (set_cmd_completer): Declare.
801 * cli/cli-decode.h (set_cmd_completer): Ditto.
802
803 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
804 * cli/cli-cmds.c (init_cli_cmds): Ditto.
805 * win32-nat.c (_initialize_inftarg): Ditto.
806 * remote-rdi.c (_initialize_remote_rdi): Ditto.
807 * proc-api.c (_initialize_proc_api): Ditto.
808 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
809 * source.c (_initialize_source): Ditto.
810 * exec.c (_initialize_exec): Ditto.
811 * solib.c (_initialize_solib): Ditto.
812 * top.c (init_main): Ditto.
813 * tracepoint.c (_initialize_tracepoint): Ditto.
814 * symfile.c (_initialize_symfile): Ditto.
815 * printcmd.c (_initialize_printcmd): Ditto.
816 * infcmd.c (_initialize_infcmd): Ditto.
817 * corefile.c (_initialize_core): Ditto.
818
819 2002-03-05 Andrew Cagney <ac131313@redhat.com>
820
821 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
822
823 2002-03-05 Andrew Cagney <ac131313@redhat.com>
824
825 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
826
827 2002-03-05 Andrew Cagney <ac131313@redhat.com>
828
829 * NEWS: Update headings, 5.2 has branched.
830
831 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
832
833 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
834 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
835 (register_addr, REGISTER_RAW_SIZE): Likewise.
836 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
837 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
838
839 2002-03-03 Michal Ludvig <mludvig@suse.cz>
840
841 * MAINTAINERS (x86-64): Add myself.
842 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
843 changed value_ptr -> struct value *
844
845 2002-03-01 David O'Brien <obrien@FreeBSD.org>
846
847 * configure.host (sparc64-*-freebsd): Add.
848 * configure.tgt: Likewise.
849 * config/sparc/fbsd.mh: New file.
850 * config/sparc/fbsd.mt: Likewise.
851 * config/sparc/nm-fbsd.h: Likewise.
852 * config/sparc/tm-fbsd.h: Likewise.
853
854 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
855
856 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
857 regformats/reg-s390x.dat.
858
859 2002-03-01 Andrew Cagney <ac131313@redhat.com>
860
861 * utils.c: Add FIXME explaining true/false problem.
862
863 2002-02-28 Andrew Cagney <ac131313@redhat.com>
864
865 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
866
867 2002-02-28 Michael Chastain <mec@shout.net>
868
869 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
870
871 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
872
873 * gdbserver/linux-s390-low.c: New file.
874 * regformats/reg-s390.dat: New file.
875 * regformats/reg-s390x.dat: New file.
876 * gdbserver/configure.srv: Add S/390.
877 * gdbserver/Makefile.in: Add S/390.
878 * configure.tgt: Enable gdbserver for S/390.
879
880 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
881
882 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
883 first line of the doc string for "info dos", except at the end of
884 the sentence, since the short help stops at the first period.
885
886 2002-02-28 Jason Merrill <jason@redhat.com>
887
888 * dwarf2read.c (dwarf_cfi_name): Add new codes.
889
890 2002-02-27 Fred Fish <fnf@redhat.com>
891
892 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
893 comment (dumy -> dummy).
894
895 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
896
897 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
898
899 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
900
901 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
902
903 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
904
905 * gdbserver/acconfig.h: New file.
906 * gdbserver/i387-fp.c: New file.
907 * gdbserver/i387-fp.h: New file.
908 * gdbserver/linux-x86-64.c: New file.
909 * regformats/reg-x86-64.dat: New file.
910 * configure.tgt: Add x86_64-*-linux* gdbserver support.
911 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
912 * gdbserver/configure.in: Add support for regsets.
913 * gdbserver/config.in: Regenerate.
914 * gdbserver/configure: Regenerate.
915 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
916 * gdbserver/linux-low.h: New file.
917 * gdbserver/linux-low.c: Include "linux-low.h". Add support
918 for regsets.
919 * gdbserver/linux-arm-low.c: Include "linux-low.h".
920 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
921 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
922 * gdbserver/linux-mips-low.c: Include "linux-low.h".
923 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
924 * gdbserver/linux-sh-low.c: Include "linux-low.h".
925 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
926 "i387-fp.h". Add PTRACE_GETREGS and friends.
927 * gdbserver/regcache.c (supply_register): New function.
928 (supply_register_by_name): New function.
929 (collect_register): New function.
930 (collect_register_by_name): New function.
931
932 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
933
934 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
935 (config.status): Add configure.srv dependency.
936 (server_h): Add config.h dependency.
937
938 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
939
940 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
941 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
942 * gdbserver/configure.srv: Change i386-*-linux* to use
943 reg-i386-linux.o.
944
945 2002-02-26 Andrew Cagney <ac131313@redhat.com>
946
947 * x86-64-tdep.c: Re-indent. Update copyright date.
948
949 2002-02-26 Andrew Cagney <ac131313@redhat.com>
950
951 From Michal Ludvig <mludvig@suse.cz>:
952 * x86-64-tdep.c (value.h): Delete.
953 (gdb_assert.h): Include.
954 (x86_64_register_convert_to_virtual,
955 x86_64_register_convert_to_raw ): Add check which lets only
956 floating-point values to be converted.
957 (value_push): Delete.
958 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
959 (i386_gdbarch_init): Number of register_bytes fixed.
960
961 2002-02-26 Andrew Cagney <ac131313@redhat.com>
962
963 * MAINTAINERS: Add x86-64 target.
964
965 2002-02-26 Andrew Cagney <ac131313@redhat.com>
966
967 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
968 * osfsolib.c (solib_map_sections): Ditto.
969 * irix5-nat.c (solib_map_sections): Ditto.
970 * corelow.c (gdb_check_format): Ditto.
971 * symfile.c (symfile_bfd_open): Ditto.
972 * solib.c (solib_map_sections): Ditto.
973 Fix PR gdb/354.
974
975 2002-02-26 Andrew Cagney <ac131313@redhat.com>
976
977 * remote.c (_initialize_remote): By default, disable ``e'' and
978 ``E'' step out-of-range packets.
979
980 2002-02-26 Andreas Schwab <schwab@suse.de>
981
982 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
983 m68k_linux_frame_saved_pc.
984 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
985 in_sigtramp.
986 (SIGCONTEXT_PC_OFFSET): Remove.
987 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
988 m68k_linux_sigtramp_saved_pc): New functions.
989 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
990 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
991 (UCONTEXT_PC_OFFSET): Define.
992 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
993 non-RT and RT signal trampolines.
994
995 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
996
997 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
998 (TARGET_NBPG, STACK_END_ADDR): Delete
999 (VARIABLES_INSIDE_BLOCK): Delete.
1000
1001 2002-02-25 Andrew Cagney <ac131313@redhat.com>
1002
1003 * utils.c (perror_with_name): Make string parameter constant.
1004 (print_sys_errmsg): Ditto.
1005 (query): Ditto.
1006 * defs.h (perror_with_name): Update.
1007 (print_sys_errmsg): Update.
1008 (query): Update.
1009
1010 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
1011
1012 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
1013 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
1014
1015 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1016
1017 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
1018 if it already matches the current architecture from the exec file.
1019 Include arch-utils.h for gdbarch_info_init prototype.
1020 * Makefile.in (rs6000-nat.o): Update dependencies.
1021
1022 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
1023
1024 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
1025 list of exported variables.
1026
1027 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
1028
1029 * gdbserver/configure.srv: New file.
1030 * gdbserver/configure.in: Use configure.srv instead
1031 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
1032 from it.
1033 * gdbserver/configure: Regenerated.
1034 * gdbserver/terminal.h: New file.
1035 * gdbserver/Makefile.in: Update for configure changes. Remove
1036 more unneeded include paths.
1037
1038 2002-02-24 Andrew Cagney <ac131313@redhat.com>
1039
1040 From wiz at danbala:
1041 * config/sparc/tm-sp64.h: Fix grammar and typos.
1042 Fix PR gdb/287.
1043
1044 2002-02-24 Andrew Cagney <ac131313@redhat.com>
1045
1046 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
1047 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
1048 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
1049 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
1050 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
1051 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
1052 * s390-tdep.c: Ditto.
1053 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
1054 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
1055 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
1056 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
1057 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
1058 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
1059 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
1060 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
1061 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
1062 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
1063 Fix PR gdb/378.
1064
1065 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1066
1067 * lin-thread.c: Delete file.
1068 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
1069 to gdb_proc_service.h.
1070 * configure: Re-generate.
1071
1072 * ocd.c (ocd_open): Do not try to open the "ocd" device.
1073 * serial.c (serial_open): Delete check for "ocd".
1074 Fix PR gdb/349.
1075
1076 * Makefile.in (linux-thread.o): Delete target.
1077 * linux-thread.c: Delete file.
1078
1079 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
1080 renamed SH files to be consistent.
1081
1082 * symtab.c (sort_search_symbols): Use xfree.
1083
1084 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
1085
1086 * arm-linux-tdep.c (arm_linux_init_abi): Register
1087 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
1088 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
1089 definition with undef, since we don't want the sysvr4 definition.
1090 (SKIP_TRAMPOLINE_CODE): Likewise.
1091
1092 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1093
1094 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
1095
1096 * configure.in: (AC_CHECK_FUNCS) Added test for
1097 canonicalize_file_name Regenerated.
1098 * config.in, configure: Regenerated.
1099 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
1100 defined use canonicalize_file_name.
1101
1102 2002-02-23 Michael Chastain <mec@shout.net>
1103
1104 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
1105
1106 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1107
1108 * README: Remove references to cygnus.com.
1109 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
1110 dot com'' form. Remove references to cygnus.com and sourceware.
1111
1112 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1113
1114 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
1115 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
1116 1003.1-2001 no longer allows "head -1".
1117 * gdb/Makefile.in (version.c): Likewise.
1118 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
1119 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
1120 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
1121
1122 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1123
1124 * cli/cli-decode.c (cmd_cfunc_eq): New function.
1125 * command.h (cmd_cfunc_eq): Declare.
1126 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
1127
1128 * cli/cli-cmds.h (is_complete_command): Change parameter to a
1129 ``struct cmd_list_element *''.
1130 * cli/cli-cmds.c (is_complete_command): Update. Use
1131 cmd_cfunc_eq.
1132 * top.c (execute_command): Pass the command to
1133 is_complete_command.
1134 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
1135
1136 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1137
1138 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
1139 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
1140 architecture defines.
1141 * s390-tdep.c (s390_gdbarch_init): Likewise.
1142
1143 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
1144
1145 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
1146 (arm_linux_push_arguments): Likewise.
1147 (arm_linux_init_abi): Register them. Also register linux-specific
1148 call_dummy_words.
1149 (find_minsym_and_objfile): Use strcmp, not STREQ.
1150 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
1151 (arm_linux_call_dummy_words): Delete declaration.
1152 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
1153 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
1154 declarations.
1155 (LOWEST_PC): Delete.
1156
1157 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1158
1159 * maint.c (print_section_info): Do not prepend `0x' to filepos
1160 output, it will be handled by local_hex_string_custom.
1161
1162 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
1163
1164 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
1165 (store_newfpe_double, store_newfpe_extended, store_fpregister)
1166 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
1167
1168 2002-02-22 Jim Blandy <jimb@redhat.com>
1169
1170 Indicate that the bcache functions don't change the strings
1171 they're passed.
1172 * bcache.h (bcache, hash): Add `const' keywords to declarations.
1173 * bcache.c (bcache, hash): Add `const' keywords to definitions.
1174
1175 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
1176
1177 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
1178
1179 2002-02-21 Christopher Faylor <cgf@redhat.com>
1180
1181 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
1182 find the complete path to a loaded DLL.
1183
1184 2002-02-21 Fred Fish <fnf@redhat.com>
1185
1186 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
1187 that marks the end of the range of a function, enter a line number
1188 entry that has a line number of zero and a PC offset that matches
1189 the end of the function. This starts a range of PC's for which no
1190 line number information is known.
1191 * symtab.c (find_pc_sect_line): If our best fit is in a range of
1192 PC's for which no line number info is found (line number is zero)
1193 then we didn't find any valid line information.
1194 * symtab.h: Document use of zero line number entry.
1195
1196 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
1197
1198 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
1199 (have_ptrace_getvrregs): Define for run time checks.
1200 (gdb_vrregset_t): New type for Altivec register handling.
1201 (fetch_register, store_register): Fetch/store altivec register
1202 when needed.
1203 (fetch_altivec_register, store_altivec_register): New functions.
1204 (supply_vrregset, fill_vrregset): New functions.
1205 (fetch_altivec_registers, store_altivec_registers): New functions.
1206 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
1207 registers as well.
1208
1209 2002-02-21 Jiri Smid <smid@suse.cz>
1210
1211 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
1212
1213 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
1214
1215 * Makefile.in (armnbsd-nat.o): Update dependencies.
1216 * armnbsd-nat.c (supply_gregset): New function. Common code to
1217 supply the integer register set.
1218 (supply_fparegset): New function. Similar for FPA registers.
1219 (fetch_regs, fetch_fp_regs): Use them.
1220 (fetch_core_registers): Likewise.
1221 (fetch_elfcore_registers): New function.
1222 (arm_netbsd_elfcore_fns): New core-file type specification.
1223 (_initialize_arm_netbsd_nat): Register it.
1224
1225 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
1226
1227 * armnbsd-nat.c: Include gdbcore.h.
1228 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
1229 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
1230 'void' to declaration, to shut up ARI.
1231 (fetch_core_registers): Make static. Rewrite using supply_register.
1232 (arm_netbsd_core_fns): New core-file type specification.
1233 (_initialize_arm_netbsd_nat): New function.
1234
1235 2002-02-21 Christopher Faylor <cgf@redhat.com>
1236
1237 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
1238 value.
1239
1240 2002-02-20 Christopher Faylor <cgf@redhat.com>
1241
1242 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
1243 fails.
1244
1245 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
1246
1247 * jv-exp.y (parse_number): Change type of implicit longs
1248 to builtin_type_uint64.
1249
1250 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
1251
1252 * gdbserver/linux-low.c (mywait): Change argument to waitpid
1253 to be an integer instead of a `union wait'.
1254
1255 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
1256
1257 * mips-linux-nat.c: Call the operating system GNU/Linux.
1258 * mips-linux-tdep.c: Likewise.
1259 * mips-tdep.c: Likewise.
1260
1261 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
1262
1263 Fix PR gdb/265.
1264 * jv-exp.y (parse_number): Handle 64-bit integers.
1265
1266 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
1267
1268 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
1269 AC_STDC_HEADERS to AC_HEADER_STDC.
1270 * gdbserver/configure: Regenerated.
1271
1272 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
1273
1274 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
1275 is defined.
1276 * sparc-tdep.c (get_longjmp_target): Likewise.
1277
1278 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
1279
1280 * News: Add news about ARM and Multi-arch. Mention the new target
1281 arm*-*-netbsd*.
1282
1283 2002-02-19 Jim Blandy <jimb@redhat.com>
1284
1285 * stabsread.c (error_type_complaint): Improve error message.
1286
1287 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
1288
1289 * gdbserver/README: Update documentation.
1290 * gdbserver/configure.in: Update configury to match documentation.
1291 * gdbserver/Makefile.in: Likewise.
1292 * gdbserver/configure: Regenerated.
1293 * gdbserver/aclocal.m4: New file, generated by aclocal.
1294 * gdbserver/config.in: New file, generated by autoheader.
1295
1296 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1297
1298 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
1299 armnbsd-nat.c.
1300
1301 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1302
1303 * arm-tdep.h (enum arm_float_model): New enum.
1304 (struct gdbarch_tdep): Add fp_model.
1305 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
1306 up floating-point conversions until we know the floating-point model
1307 in use by the inferior. Don't complain about being unable to
1308 determine the ABI of the inferior when we don't have one.
1309 (arm_extract_return_value): Support different floating-point models.
1310 (arm_store_return_value): Likewise.
1311 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
1312 ARM_FLOAT_SOFT.
1313 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
1314
1315 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1316
1317 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
1318 of ``current_gdbarch''.
1319
1320 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1321
1322 * armnbsd-nat.c : ANSIfy all function declarations.
1323 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
1324 (fetch_inferior_registers): Re-implement in terms of above.
1325 (store_register, store_regs, store_fp_register, store_fp_regs): New.
1326 (store_inferior_registers): Re-implement in terms of above.
1327
1328 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1329
1330 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
1331 kernel.
1332 * arm-linux-tdep.c: Likewise.
1333 * config/arm/tm-linux.h: Likewise.
1334
1335 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1336
1337 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
1338 * config/arm/nbsd.mt (TM_FILE): Delete.
1339 * config/arm/tm-nbsd.h: Delete.
1340
1341 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1342
1343 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
1344 Initialize CALL_DUMMY_LENGTH.
1345
1346 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1347
1348 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
1349 function.
1350 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
1351 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
1352 defines one thing and that is incorrect for this port.
1353 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1354
1355 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
1356
1357 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
1358
1359 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
1360
1361 * win32-nat.c (display_selector): New function. Displays information
1362 about the information returned by GetThreadSelectorEntry API function.
1363 (display_selectors): New function. Displays the infomation of
1364 the selector given as argument, or of CS, DS ans FS selectors
1365 if no argument is given.
1366 ( _initialize_inftarg): Add "w32" as info prefix command.
1367 Add "info w32 selector" as command calling display_selectors.
1368
1369 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
1370
1371 * i386-tdep.c (get_longjmp_target): Fix compilation failure
1372 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
1373 if not defined.
1374
1375 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
1376
1377 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
1378
1379 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
1380
1381 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
1382 (arm_fix_call_dummy): Call it.
1383 (arm_call_dummy_breakpoint_offset): Delete.
1384 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
1385 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
1386
1387 2002-02-18 Andrew Cagney <ac131313@redhat.com>
1388
1389 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
1390 Default to func_frame_chain_valid.
1391 * gdbarch.h, gdbarch.c: Re-generate.
1392 * frame.h (FRAME_CHAIN_VALID): Delete definition.
1393
1394 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
1395
1396 * ppc-linux-nat.c: Update copyright.
1397 (fetch_register, store_register): Add tid parameter, don't compute
1398 tid here.
1399 (fetch_ppc_registers, store_ppc_registers): Add tid
1400 parameter. Pass it along to callees.
1401 (fetch_inferior_registers, store_inferior_registers): Compute tid
1402 here, and pass it to calleed functions.
1403 (fill_gregset, supply_fpregset): Clean up formatting.
1404
1405 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
1406
1407 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
1408 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
1409
1410 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
1411
1412 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
1413 * gdbarch.c gdbarch.h: Regenerate.
1414 * breakpoint.c (create_longjmp_breakpoint): Always compile this
1415 function.
1416 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
1417 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
1418 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
1419
1420 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
1421 * arm-tdep.c (arm_get_longjmp_target): New function.
1422 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
1423 this to a positive value register arm_get_longjmp_target as the
1424 longjmp handler.
1425 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
1426 (arm_linux_init_abi): Set up longjmp description in tdep.
1427 * armnbsd-nat.c (get_longjmp_target): Delete.
1428 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
1429 description in tdep.
1430 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
1431 (get_longjmp_target): Delete declaration.
1432 (GET_LONGJMP_TARGET): Delete.
1433 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
1434 (GET_LONGJMP_TARGET): Delete.
1435
1436 2002-02-17 Kevin Buettner <kevinb@redhat.com>
1437
1438 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
1439 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
1440 of ``current_gdbarch''.
1441
1442 2002-02-17 Tom Tromey <tromey@redhat.com>
1443
1444 * cli/cli-cmds.c (compare_strings): New function.
1445 (complete_command): Only print each unique item once.
1446 * completer.h (complete_line): Declare.
1447 * completer.c (complete_line): New function.
1448 (line_completion_function): Use it.
1449
1450 2002-02-16 Andrew Cagney <ac131313@redhat.com>
1451
1452 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
1453 * gdbarch.h, gdbarch.c: Re-generate.
1454
1455 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
1456
1457 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
1458
1459 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
1460
1461 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
1462 * valops.c (value_arg_coerce): Don't take the address of a reference
1463 to convert an argument to a reference.
1464
1465 2002-02-15 Christopher Faylor <cgf@redhat.com>
1466
1467 * win32-nat.c (get_image_name): New function.
1468 (handle_load_dll): Use get_image_name function.
1469 (get_child_debug_event): Avoid registering debug events until possibly
1470 execed process is started.
1471 (child_create_inferior): Allow invocation via shell so that command
1472 line redirection, etc. works ok.
1473 (_initialize_inftarg): Add new command: "set shell" to control whether
1474 a shell is used to start a process.
1475
1476 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
1477
1478 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
1479 instead of find_register_by_number.
1480 (cannot_store_register): Likewise.
1481
1482 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
1483
1484 * dwarf2read.c: Replace fprintf (stderr, ...) by
1485 fprintf_unfiltered (gdb_stderr, ...).
1486
1487 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
1488
1489 * gdbserver/gdbserver.1: Document --attach.
1490
1491 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
1492
1493 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
1494 descriptions.
1495 * arm-tdep.c (arm_default_arm_le_breakpoint)
1496 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
1497 (arm_default_thumb_be_breakpoint): New. Initialize them from
1498 traditional breakpoint defines.
1499 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
1500 (arm_gdbarch_init): Initialize new breakpoint variables.
1501 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
1502 (arm_linux_init_abi): Initialize linux-specific breakpoint.
1503 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
1504 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
1505 code out to ...
1506 (arm_netbsd_init_abi_common): ... here; new function.
1507 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
1508 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
1509 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
1510 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
1511
1512 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
1513
1514 * arm-tdep.h (enum arm_abi): New enum.
1515 (struct gdbarch_tdep): New structure.
1516 (LOWEST_PC): Provide a default.
1517 (arm_gdbarch_register_os_abi): Declare new function.
1518 * arm-tdep.c (arm_abi_names): New array.
1519 (process_note_abi_tag_sections): New function.
1520 (get_elfosabi): New function.
1521 (arm_gdbarch_register_os_abi): New function.
1522 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
1523 support for that ABI has been built in, then call the appropriate
1524 configuration routine. Use gdbarch_num_regs() to get the number
1525 of registers.
1526 (arm_dump_tdep): New function.
1527 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
1528 place-holder functions.
1529 (_initialize_arm_tdep): Register them.
1530 * config/arm/tm-arm.h (LOWEST_PC): Delete.
1531
1532 * armnbsd-tdep.c: New file.
1533 * Makefile.in (armnbsd-tdep.o): Add dependencies.
1534 * config/arm/nbsd.mt (TDEPFILES): Add it.
1535 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
1536
1537 * armnbsd-nat.c: Include regcache.h.
1538 * Makefile.in (armnbsd-nat.o): Update dependency list.
1539
1540 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
1541
1542 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1543
1544 * gdbserver/Makefile.in: Fix typos in target rules.
1545
1546 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1547
1548 Fix part of PR gdb/267.
1549 * linespec.c (find_methods): Handle constructors specially for now.
1550
1551 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
1552
1553 * arm-tdep.c (arm_push_arguments): Eliminate special float type
1554 handling.
1555 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
1556 standard_coerce_float_to_double().
1557
1558 2002-02-14 Christopher Faylor <cgf@redhat.com>
1559
1560 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
1561 GDBINIT_FILENAME.
1562
1563 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
1564
1565 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
1566 find_variant_by_name, because it confuses the multiarch
1567 framework. Return NULL if there isn't an architecture with the
1568 user supplied name, instead of forcing a different one without
1569 recording the change with the multiarch machinery.
1570 (find_variant_by_name): Delete.
1571
1572 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1573
1574 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
1575 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
1576
1577 2002-02-13 Martin M. Hunt <hunt@redhat.com>
1578
1579 * stack.c (print_frame_info_base): When calling
1580 print_frame_info_listing_hook, set current_source_symtab.
1581
1582 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1583
1584 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
1585 and remove unused $(INCLUDE_DIR).
1586 Add regcache.c to OBS.
1587 Add generated register protocol files to clean target.
1588 Update dependencies for new objects, obsolete old target code.
1589
1590 * gdbserver/linux-low.c: Remove all platform-specific code to
1591 new files. Remove various dead code. Update to use regcache
1592 functionality.
1593 * gdbserver/remote-utils.c (fromhex): Add return statement
1594 to quiet warning.
1595 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
1596 constant.
1597 (input_interrupt): Add integer parameter to match prototype
1598 of a signal handler.
1599 (outreg): Use register_data ().
1600 (prepare_resume_reply): Use gdbserver_expedite_regs.
1601 * gdbserver/server.c (main): Dynamically allocate own_buf because
1602 PBUFSIZ is no longer constant. Use registers_to_string () and
1603 registers_from_string ().
1604 * gdbserver/server.h: No longer include "defs.h". Add prototypes
1605 for error (), fatal (), and warning (). Update definition of
1606 PBUFSIZ to use regcache functionality. Add include guard.
1607 * gdbserver/utils.c (fatal): Add missing ``const''.
1608 (warning): New function.
1609
1610 * regformats/regdat.sh: Include "regcache.h" in generated files.
1611 Provide init_registers () function.
1612 * regformats/regdef.h: Add prototype for set_register_cache ().
1613 Add include guard.
1614
1615 * gdbserver/linux-arm-low.c: New file.
1616 * gdbserver/linux-i386-low.c: New file.
1617 * gdbserver/linux-ia64-low.c: New file.
1618 * gdbserver/linux-m68k-low.c: New file.
1619 * gdbserver/linux-mips-low.c: New file.
1620 * gdbserver/linux-ppc-low.c: New file.
1621 * gdbserver/linux-sh-low.c: New file.
1622
1623 * gdbserver/regcache.c: New file.
1624 * gdbserver/regcache.h: New file.
1625
1626 * gdbserver/low-linux.c: Removed obsolete file.
1627
1628 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1629
1630 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
1631 * config/i386/linux.mt: Likewise.
1632 * config/ia64/linux.mt: Likewise.
1633 * config/m68k/linux.mh: Likewise.
1634 * config/powerpc/linux.mh: Likewise.
1635 * config/mips/linux.mt: Likewise.
1636
1637 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
1638
1639 * config/i386/i386lynx.mh: Mark gdbserver variables
1640 as (currently) obsolete for this target.
1641 * config/i386/nbsd.mt: Likewise.
1642 * config/i386/nbsdelf.mt: Likewise.
1643 * config/m32r/m32r.mt: Likewise.
1644 * config/m68k/m68klynx.mh: Likewise.
1645 * config/m68k/nbsd.mt: Likewise.
1646 * config/m68k/sun3os4.mh: Likewise.
1647 * config/mips/vr5000.mt: Likewise.
1648 * config/ns32k/nbsd.mt: Likewise.
1649 * config/pa/hppabsd.mh: Likewise.
1650 * config/pa/hppaosf.mh: Likewise.
1651 * config/powerpc/nbsd.mt: Likewise.
1652 * config/rs6000/rs6000lynx.mh: Likewise.
1653 * config/s390/s390.mt: Likewise.
1654 * config/s390/s390x.mt: Likewise.
1655 * config/sparc/sparclynx.mh: Likewise.
1656 * config/sparc/sun4os4.mh: Likewise.
1657 * config/i386/x86-64linux.mt: Likewise.
1658 * config/sparc/linux.mh: Likewise.
1659
1660 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1661
1662 * configure.tgt: Configure gdbserver only for known working
1663 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
1664 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
1665 SUBDIRS if it is configured. Update comment for ${nativefile}.
1666 * configure: Regenerated.
1667
1668 2002-02-13 Michael Snyder <msnyder@redhat.com>
1669
1670 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
1671 (default_gcore_mach): Just return 0, work around a problem in bfd.
1672 (default_gcore_target): OK to return NULL if exec_bfd is null.
1673 (make_mem_sec): Use a cast, avoid a warning.
1674
1675 * procfs.c (find_memory_regions_callback): Use a cast instead of
1676 calling host_pointer_to_address (which complains if
1677 sizeof (host pointer) != sizeof (target pointer)).
1678 (procfs_make_note_section): Avoid overflow in psargs string.
1679
1680 * procfs.c (procfs_make_note_section): Make the default
1681 implementation return an error.
1682
1683 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
1684
1685 * procfs.c (procfs_make_note_section): Provide a default definition
1686 (for alpha-dec-osf4.0f). Fix typos.
1687
1688 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
1689
1690 * linux-proc.c: Add include of regcache.h.
1691 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
1692
1693 2002-02-13 Andrew Cagney <ac131313@redhat.com>
1694
1695 From 2002-01-18 Greg McGary <greg@mcgary.org>:
1696 * memattr.c (create_mem_region): Disallow useless empty region.
1697 Regions are half-open intervals, so allow [A..B) [B..C) as
1698 non-overlapping.
1699
1700 2002-02-13 Michael Chastain <mec@shout.net>
1701
1702 * defs.h: Kill CONST_PTR.
1703 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
1704 * c-lang.c (c_builtin_types): Likewise.
1705 * ch-lang.c (ch_builtin_types): Likewise.
1706 * f-lang.c (f_builtin_types): Likewise.
1707 * language.c (unknown_builtin_types): Likewise.
1708 * m2-lang.c (m2_builtin_types): Likewise.
1709 * p-lang.c (pascal_builtin_types): Likewise.
1710 * scm-lang.c (c_builtin_types): Likewise.
1711
1712 2002-02-13 Keith Seitz <keiths@redhat.com>
1713
1714 * arm-tdep.h (arm_get_next_pc): Add declaration.
1715
1716 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
1717
1718 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
1719 with other related struct-returning functions.
1720 (arm_extract_struct_value_address): New function.
1721 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
1722 initialize float_format, double_format and long_double_format as
1723 appropriate to the endianness of the target.
1724 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
1725 (arm_use_struct_convention): Delete declaration.
1726 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1727
1728 2002-02-13 Keith Seitz <keiths@redhat.com>
1729
1730 * defs.h (core_addr_to_string_nz): New function.
1731
1732 2002-02-13 Mark Kettenis <kettenis@gnu.org>
1733
1734 Apply missing bits of 2002-01-15 patch.
1735 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
1736 (fill_fpregset): Use i387_fill_fsave.
1737
1738 2002-02-12 Keith Seitz <keiths@redhat.com>
1739
1740 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
1741 (core_addr_to_string_nz): New function.
1742
1743 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
1744
1745 * arm-linux-nat.c: Really include arm-tdep.h.
1746 * config/arm/tm-linux.h (struct type, struct value): Declare.
1747
1748 2002-02-11 Michael Snyder <msnyder@redhat.com>
1749
1750 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
1751 (gcore section): Ifdef for Solaris and Unixware only.
1752 (procfs_do_thread_registers): Unixware needs one lwpstatus
1753 per thread (not one prstatus or pstatus).
1754 (procfs_make_note_section): Iterate only over kernel threads (lwps),
1755 not over all gdb threads. For unixware, call elfcore_write_pstatus
1756 once before iterating over threads.
1757
1758 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
1759
1760 * arm-tdep.h: New file.
1761 * arm-tdep.c: Include arm-tdep.h.
1762 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
1763 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
1764 (arm_print_float_info, arm_register_type, convert_to_extended)
1765 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
1766 (arm_extract_return_value, arm_register_name): Make static.
1767 (arm_software_single_step): Similarly. Fix types in declaration.
1768 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
1769 (arm_store_return_value, arm_store_struct_return): New functions.
1770 (arm_gdbarch_init): Register the above functions. Also register
1771 call_dummy_start_offset, sizeof_call_dummy_words,
1772 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
1773 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
1774 max_register_virtual_size, register_size. Set up
1775 prologue_cache.saved_regs here, rather than ...
1776 (_initialize_arm_tdep): ... here.
1777 * config/arm/tm-arm.h (struct type, struct value): Delete forward
1778 declarations.
1779 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
1780 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
1781 (arm_print_float_info, arm_register_type, convert_to_extended)
1782 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
1783 (arm_extract_return_value, arm_register_name): Delete declarations.
1784 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
1785 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
1786 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
1787 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
1788 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
1789 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
1790 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
1791 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
1792 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
1793 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
1794 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
1795 (arm_get_next_pc): No-longer static -- these are needed by the RDI
1796 interface.
1797 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
1798 * remote-rdi.c remote-rdp.c: Likewise.
1799 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
1800 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
1801 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
1802 definition.
1803
1804 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
1805 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
1806 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
1807 from non-ARM_ prefixed definitions.
1808 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
1809 all uses of above.
1810 * remote-rdi.c remote-rdp.c: Likewise.
1811 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
1812
1813 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
1814
1815 * arm-tdep.c (arm_frameless_function_invocation)
1816 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
1817 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
1818 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
1819 (arm_pop_frame, arm_get_next_pc): Make static.
1820 (arm_gdbarch_init): Register above in gdbarch structure.
1821 (arm_read_fp): Renamed from arm_target_read_fp.
1822 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
1823 * config/arm/tm-arm.h (arm_frameless_function_invocation)
1824 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
1825 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
1826 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
1827 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
1828 (arm_pc_is_thumb_dummy): Delete declarations.
1829 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
1830 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
1831 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
1832 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
1833
1834 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1835
1836 * symtab.c (compare_search_syms): New function.
1837 (sort_search_symbols): New function.
1838 (search_symbols): Sort symbols after searching rather than
1839 before.
1840
1841 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1842
1843 * NEWS: Linux -> GNU/Linux.
1844
1845 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1846
1847 * gdbarch.sh: For for level one methods, disallow a definition
1848 when partially multi-arched. Add comments explaining rationale.
1849 * gdbarch.h: Re-generate.
1850
1851 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1852
1853 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
1854 multi-arch partial.
1855
1856 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1857
1858 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
1859 field. Use diff -u.
1860 * gdbarch.c: Re-generate.
1861
1862 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1863
1864 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
1865 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
1866 partial.
1867
1868 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1869
1870 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
1871 multi-arch partial.
1872 (PUSH_ARGUMENTS): Switch to using predefault.
1873 * gdbarch.c: Regenerate.
1874
1875 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1876
1877 * valops.c (PUSH_ARGUMENTS): Delete definition.
1878 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
1879 partial. Default to default_push_arguments.
1880 * gdbarch.h, gdbarch.c: Regenerate.
1881
1882 2002-02-09 Andrew Cagney <ac131313@redhat.com>
1883
1884 * defs.h (throw_exception): Rename return_to_top_level. Update
1885 comments.
1886 * utils.c (error_stream, internal_verror, quit): Ditto.
1887 * top.c (throw_exception, catcher): Ditto.
1888 * sparclet-rom.c (sparclet_load): Ditto.
1889 * remote.c (interrupt_query, minitelnet): Ditto.
1890 * remote-sds.c (interrupt_query): Ditto.
1891 * remote-mips.c (mips_error, mips_kill): Ditto.
1892 * ocd.c (interrupt_query): Ditto.
1893 * monitor.c (monitor_interrupt_query): Ditto.
1894 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
1895 * target.h: Update comment.
1896
1897 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
1898
1899 2002-02-09 Andrew Cagney <ac131313@redhat.com>
1900
1901 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
1902 default_double_format.
1903 * gdbarch.h, gdbarch.c: Re-generate.
1904 * findvar.c (floatformat_unknown): Delete variable definition.
1905 * doublest.h (floatformat_unknown): Delete variable declaration.
1906
1907 2002-02-09 Jim Blandy <jimb@redhat.com>
1908
1909 * stabsread.c (read_type): Add code to parse Sun's syntax for
1910 prototyped function types.
1911
1912 2002-02-09 Andrew Cagney <ac131313@redhat.com>
1913
1914 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
1915 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
1916
1917 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1918
1919 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
1920 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
1921 now _initialize_xcoffsolib gets called again and overrides the
1922 commands from solib.c in a native configuration.
1923
1924 2002-02-09 Mark Kettenis <kettenis@gnu.org>
1925
1926 * doublest.c (store_typed_floating): Don't try to return a value.
1927 Fixes PR gdb/290.
1928
1929 2002-02-08 Jim Blandy <jimb@redhat.com>
1930
1931 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
1932 is prototyped and has no arguments, print its argument list as
1933 `(void)'.
1934
1935 2002-02-08 Chris Demetriou <cgd@broadcom.com>
1936
1937 * MAINTAINERS (write-after-approval): Add myself.
1938 (paper-trail): I've escaped!
1939
1940 2002-02-08 Christopher Faylor <cgf@redhat.com>
1941
1942 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
1943 changes.
1944 (_initialize_check_for_gdb_ini): Ditto.
1945
1946 2002-02-08 Martin M. Hunt <hunt@redhat.com>
1947
1948 * win32-nat.c (cygwin_pid_to_str): Fix typo.
1949 xaprintf -> xasprintf.
1950
1951 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
1952
1953 * win32-nat.c: Remove use of printf and sprintf functions.
1954
1955 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
1956
1957 * arm-tdep.c (arm_frame_chain_valid): Make static.
1958 (arm_push_arguments): Likewise.
1959 (arm_gdbarch_init): New function.
1960 (_initialize_arm_tdep): Call it.
1961 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
1962 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
1963 (FRAME_CHAIN_VALID): Delete.
1964 (arm_frame_chain_valid): Delete declaration.
1965 (PUSH_ARGUMENTS): Delete.
1966 (arm_push_arguments): Delete declaration.
1967 (CALL_DUMMY_P): Delete.
1968
1969 2002-02-08 Andrew Cagney <ac131313@redhat.com>
1970 Corinna Vinschen <vinschen@redhat.com>
1971
1972 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
1973 on builtin float types.
1974
1975 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
1976
1977 * utils.c: Include <curses.h> before "bfd.h".
1978 * tui/tui-hooks.c: Likewise.
1979 * tui/tui.c: Likewise.
1980 * tui/tuiCommand.c: Likewise.
1981 * tui/tuiData.c: Likewise.
1982 * tui/tuiDataWin.c: Likewise.
1983 * tui/tuiDisassem.c: Likewise.
1984 * tui/tuiGeneralWin.c: Likewise.
1985 * tui/tuiIO.c: Likewise.
1986 * tui/tuiLayout.c: Likewise.
1987 * tui/tuiRegs.c: Likewise.
1988 * tui/tuiSource.c: Likewise.
1989 * tui/tuiSourceWin.c: Likewise.
1990 * tui/tuiStack.c: Likewise.
1991 * tui/tuiWin.c: Likewise.
1992
1993 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
1994
1995 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
1996 to include space for pseudoregs as well. Update loops accordingly.
1997 (sh_fp_frame_init_saved_regs): Ditto.
1998 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
1999
2000 2002-02-07 Andrew Cagney <ac131313@redhat.com>
2001
2002 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
2003 Add Richard Earnshaw to Arm maintainers.
2004
2005 2002-02-07 Andrew Cagney <ac131313@redhat.com>
2006
2007 * defs.h (warning_begin): Delete declaration.
2008
2009 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
2010 Delete macro.
2011
2012 2002-02-07 Michael Snyder <msnyder@redhat.com>
2013
2014 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
2015 Logic bug, remove misplaced else.
2016
2017 2002-02-07 Klee Dienes <klee@apple.com>
2018
2019 * fork-inferior.c (fork_inferior): Add '!' to the list of
2020 characters that need to be quoted when building a string for the
2021 shell. Quote '!' specifically with a backslash, since CSH chokes
2022 when trying to evaluate "str!str".
2023
2024 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
2025
2026 * rdi-share/host.h: Only provide a typedef for bool if it is not
2027 defined.
2028
2029 2002-02-04 Michael Snyder <msnyder@redhat.com>
2030
2031 * breakpoint.h (enum bptype): Add new overlay event bp type.
2032 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
2033
2034 * breakpoint.c (create_internal_breakpoint): New function.
2035 (internal_breakpoint_number): Moved into create_internal_breakpoint.
2036 (create_longjmp_breakpoint): Use create_internal_breakpoint.
2037 (create_thread_event_breakpoint): Ditto.
2038 (create_solib_event_breakpoint): Ditto.
2039 (create_overlay_event_breakpoint): New function.
2040 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
2041 (update_breakpoints_after_exec): Delete and re-initialize
2042 overlay event breakpoints after an exec. Add FIXME comment
2043 about longjmp breakpoint.
2044 (print_it_typical): Ignore overlay event breakpoints.
2045 (print_one_breakpoint): Ditto.
2046 (mention): Ditto.
2047 (bpstat_what): Do not stop for overlay event breakpoints.
2048 (delete_breakpoint): Don't delete overlay event breakpoints.
2049 (breakpoint_re_set_one): Delete the overlay event breakpoint.
2050 (breakpoint_re_set): Re-create overlay event breakpoint.
2051
2052 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
2053 (overlay_manual_command): Disable overlay breakpoints.
2054 (overlay_off_command): Disable overlay breakpoints.
2055
2056 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
2057
2058 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
2059 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
2060 to here from config/tm-arm.h.
2061 (coff_sym_is_thumb): Make static.
2062 (arm_elf_make_msymbol_special): New function.
2063 (arm_coff_make_msymbol_special): New function.
2064 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
2065 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
2066 (coff_sym_is_thumb): Delete declaration.
2067 (arm_elf_make_msymbol_special): Declare.
2068 (arm_coff_make_msymbol_special): Declare.
2069 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
2070 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
2071
2072 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
2073
2074 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
2075
2076 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
2077
2078 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
2079 * gdbarch.c gdbarch.h: Regenerate.
2080 * arch-utils.c (default_print_float_info): New function.
2081 * arch-utils.h (default_print_float_info): Prototype it.
2082 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
2083 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
2084 (PRINT_FLOAT_INFO): Document it.
2085
2086 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
2087 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
2088 (PRINT_FLOAT_INFO): Define.
2089
2090 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
2091
2092 * win32-nat.c (_initialize_check_for_gdb_ini):
2093 Add typecast to sprintf argument to suppress a warning.
2094
2095 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
2096
2097 * win32-nat.c (last_sig): Changed type of variable to target_signal,
2098 to allow easier handling of pass state.
2099 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
2100 that gives exception name and address.
2101 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
2102 and set last_sig value to ourstatus->value.sig. Some missing
2103 exceptions added.
2104 (child_continue): Correctly report continue_status.
2105 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
2106 TARGET_SIGNAL_0 (new default value).
2107 (child_resume): consider sig argument passed to decide if
2108 the exception should be passed to debuggee or not.
2109
2110 2002-02-05 Michael Snyder <msnyder@redhat.com>
2111
2112 * regcache.c (fetch_register): Call target_fetch_register
2113 only if we don't call FETCH_PSEUDO_REGISTER.
2114 (store_register): Call target_store_register only if we
2115 don't call STORE_PSEUDO_REGISTER.
2116
2117 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
2118
2119 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
2120 ELF_MAKE_MSYMBOL_SPECIAL.
2121 * gdbarch.c, gdbarch.h: Regenerate.
2122 * arch-utils.c (default_make_msymbol_special): New function.
2123 * arch-utils.h (default_make_msymbol_special): Export.
2124 * elfread.c (elf_symtab_read): Compile use of
2125 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
2126 multiarched.
2127 * coffread.c (coff_symtab_read): Ditto, for
2128 COFF_MAKE_MSYMBOL_SPECIAL.
2129
2130 2002-02-05 Jim Blandy <jimb@redhat.com>
2131
2132 * solib-svr4.c (svr4_truncate_ptr): New function.
2133 (svr4_relocate_section_addresses): Do the address arithmetic with
2134 the appropriate truncation for target addresses, even when
2135 CORE_ADDR is larger than a target address.
2136
2137 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2138
2139 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
2140 to (int *).
2141
2142 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2143
2144 * gdbserver/linux-low.c (kill_inferior): Remove commented out
2145 code.
2146
2147 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2148
2149 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
2150
2151 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2152
2153 * gdbserver/linux-low.c: Remove unused include files.
2154
2155 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2156
2157 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
2158 (read_inferior_memory): Use it.
2159 (write_inferior_memory): Likewise.
2160
2161 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2162
2163 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
2164 grubbing through sys_errlist.
2165
2166 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2167
2168 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
2169
2170 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
2171 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
2172
2173 2002-02-04 Andrew Cagney <ac131313@redhat.com>
2174
2175 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
2176 (do_sfunc, set_cmd_sfunc): New functions.
2177
2178 * command.h (struct cmd_list_element): Add field func.
2179 * cli/cli-decode.h (struct cmd_list_element): Ditto.
2180 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
2181 * cli/cli-decode.h: Ditto.
2182
2183 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
2184 (help_all, help_cmd_list): Ditto.
2185 (find_cmd, complete_on_cmdlist): Ditto.
2186 * top.c (execute_command): Ditto.
2187
2188 * cli/cli-setshow.c (do_setshow_command): Call func instead of
2189 function.sfunc.
2190
2191 * infcmd.c (notice_args_read): Fix function signature.
2192
2193 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
2194 * cli/cli-decode.c (add_set_cmd): Ditto.
2195 * utils.c (initialize_utils): Ditto.
2196 * maint.c (_initialize_maint_cmds): Ditto.
2197 * infrun.c (_initialize_infrun): Ditto.
2198 * demangle.c (_initialize_demangler): Ditto.
2199 * remote.c (add_packet_config_cmd): Ditto.
2200 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2201 * cris-tdep.c (_initialize_cris_tdep): Ditto.
2202 * proc-api.c (_initialize_proc_api): Ditto.
2203 * kod.c (_initialize_kod): Ditto.
2204 * valprint.c (_initialize_valprint): Ditto.
2205 * top.c (init_main): Ditto.
2206 * infcmd.c (_initialize_infcmd): Ditto.
2207 * corefile.c (_initialize_core): Ditto.
2208 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2209 * arch-utils.c (initialize_current_architecture): Ditto.
2210 (_initialize_gdbarch_utils): Ditto.
2211 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
2212
2213 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
2214 * wince.c (_initialize_inftarg): Ditto.
2215 * symfile.c (_initialize_symfile): Ditto.
2216 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2217 * language.c (_initialize_language): Ditto.
2218 * arc-tdep.c (_initialize_arc_tdep): Ditto.
2219
2220 2002-02-04 Michael Snyder <msnyder@redhat.com>
2221
2222 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
2223
2224 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
2225
2226 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
2227 Add rules for building the register data files.
2228
2229 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
2230
2231 * regformats/regdat.sh: Add braces to the definition of
2232 expedite_regs_${arch}.
2233
2234 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
2235
2236 * regformats/regdef.h (struct reg): Add comment describing the
2237 requirements for offset and size fields.
2238
2239 2002-02-04 Andreas Schwab <schwab@suse.de>
2240
2241 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
2242 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
2243
2244 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
2245
2246 * gdbarch.sh (copyright): Update years in generated header.
2247 (SMASH_TEXT_ADDRESS): Add rule.
2248 * gdbarch.h, gdbarch.c: Re-generate.
2249 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
2250 * dbxread.c: Likewise.
2251 * dwarfread.c: Likewise.
2252 * elfread.c: Likewise.
2253 * somread.c: Likewise.
2254
2255 * arm-tdep.c (arm_smash_text_address): New function.
2256 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
2257
2258 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
2259
2260 Add support for hardware watchpoints on win32 native.
2261 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
2262 CONTEXT_DEBUG_REGISTERS.
2263 (dr variable): New variable. Static array containing a local copy
2264 of debug registers.
2265 (debug_registers_changed): New variable. Reflects when debug registers
2266 are changed and need to be written to inferior.
2267 (debug_registers_used): New variable. Reflects when any debug register
2268 was set, used when new threads are created.
2269 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
2270 i386-nat code.
2271 (thread_rec): Set dr array if id is the thread of current_event .
2272 (child_continue, child_resume): Change the debug registers for all
2273 threads if debug_registers_changed.
2274 (child_add_thread): Change the debug registers if debug_registers_used.
2275 * config/i386/cygwin.mh: Add use of i386-nat.o file.
2276 Link nm.h to new nm-cygwin.h file.
2277 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
2278 of hardware registers.
2279
2280 2002-02-03 Andrew Cagney <ac131313@redhat.com>
2281
2282 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
2283 Restore behavour broken by 2002-01-20 Andrew Cagney
2284 <ac131313@redhat.com> IEEE_FLOAT removal.
2285
2286 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
2287
2288 * c-valprint.c (c_val_print): Pass a proper valaddr to
2289 cp_print_class_method.
2290 * valops.c (search_struct_method): If there is only one method
2291 and args is NULL, return that method.
2292
2293 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
2294
2295 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
2296 accessing tag_name directly.
2297
2298 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
2299
2300 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
2301 of accessing tag_name directly.
2302
2303 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
2304
2305 PR gdb/280
2306 * gdbtypes.c (replace_type): New function.
2307 * gdbtypes.h (replace_type): Add prototype.
2308 * stabsread.c (read_type): Use replace_type.
2309
2310 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
2311
2312 * Makefile.in (memattr.o): Add missing dependencies rule.
2313
2314 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2315
2316 * breakpoint.c (break_at_finish_command): Really export.
2317 (break_at_finish_at_depth_command): Ditto.
2318 (tbreak_at_finish_command): Ditto.
2319 * hppa-tdep.c: Include completer.h.
2320 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
2321 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
2322
2323 2002-02-01 Andrew Cagney <ac131313@redhat.com>
2324
2325 * utils.c (do_write): New function.
2326 (error_stream): Rewrite combining the code from error_begin and
2327 verror.
2328 (verror): Rewrite using error_stream.
2329 (error_begin): Delete function.
2330
2331 2002-02-01 Andrew Cagney <ac131313@redhat.com>
2332
2333 * utils.c (error_begin): Make static.
2334 * defs.h (error_begin): Delete declaration.
2335
2336 * linespec.c (cplusplus_error): Replace cplusplus_hint.
2337 (decode_line_1): Use cplusplus_error instead of error_begin,
2338 cplusplus_hint and return_to_top_level.
2339 * coffread.c (coff_symfile_read): Use error instead of error_begin
2340 and return_to_top_level.
2341 * infrun.c (default_skip_permanent_breakpoint): Ditto.
2342
2343 2002-02-01 Andrew Cagney <ac131313@redhat.com>
2344
2345 * language.h (type_error, range_error): Make string parameter
2346 constant.
2347 * language.c (warning_pre_print): Delete extern declaration.
2348 * dwarfread.c (warning_pre_print): Ditto.
2349 * language.c (type_error, range_error): Rewrite to use verror and
2350 vwarning instead of warning_begin.
2351
2352 2002-02-01 Michael Snyder <msnyder@redhat.com>
2353
2354 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
2355 (set_ignore_count): Move misplaced comment back where it belongs.
2356
2357 2002-02-01 Andrew Cagney <ac131313@redhat.com>
2358
2359 * command.h (NO_FUNCTION): Delete macro.
2360 * cli/cli-decode.h (NO_FUNCTION): Ditto.
2361 * top.c (execute_command): Replace NO_FUNCTION with NULL.
2362 * tracepoint.c (_initialize_tracepoint): Ditto.
2363 * cli/cli-decode.c (add_set_cmd): Ditto.
2364 * cli/cli-cmds.c (init_cli_cmds): Ditto.
2365
2366 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
2367
2368 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
2369 Update ``this'' pointer when calling virtual functions.
2370
2371 2002-02-01 Michael Snyder <msnyder@redhat.com>
2372
2373 * breakpoint.c (create_temp_exception_breakpoint): Delete.
2374 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
2375
2376 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
2377
2378 * regformats/reg-arm.dat: New file.
2379 * regformats/reg-i386.dat: New file.
2380 * regformats/reg-ia64.dat: New file.
2381 * regformats/reg-m68k.dat: New file.
2382 * regformats/reg-mips.dat: New file.
2383 * regformats/reg-ppc.dat: New file.
2384 * regformats/reg-sh.dat: New file.
2385 * regformats/regdef.h: New file.
2386 * regformats/regdat.sh: New file.
2387
2388 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
2389
2390 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
2391 (arm_frame_args_address, arm_frame_locals_address): New functions.
2392 (arm_frame_num_args): New function.
2393 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
2394 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
2395 (FRMA_NUM_ARGS): Call arm_frame_num_args.
2396
2397 2002-01-31 Michael Snyder <msnyder@redhat.com>
2398
2399 * breakpoint.c (break_at_finish_command): Export.
2400 (break_at_finish_at_depth_command): Export.
2401 (tbreak_at_finish_command): Export.
2402 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
2403 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
2404 "tbreak" commands, which are HPPA specific.
2405
2406 * printcmd.c (disassemble_command): Remove an ancient
2407 artifact of an old merge.
2408
2409 * symfile.h (enum overlay_debugging_state):
2410 Define enum constant values for overlay mode.
2411 * symfile.c (overlay_debugging): Use enums instead of literals.
2412 (overlay_is_mapped, overlay_auto_command,
2413 overlay_manual_command): Ditto.
2414
2415 * breakpoint.c (insert_breakpoints, remove_breakpoint,
2416 breakpoint_here_p, breakpoint_inserted_here_p,
2417 breakpoint_thread_match, bpstat_stop_status,
2418 describe_other_breakpoints, check_duplicates, clear_command):
2419 Coding standard fixes.
2420
2421 * target.c (target_xfer_memory): Add spaces, coding standard.
2422 (do_xfer_memory): Add missing line to trust-readonly
2423 code: check bfd SEC_READONLY flag for section.
2424
2425 2002-01-31 Andrew Cagney <ac131313@redhat.com>
2426
2427 * PROBLEMS: Fix typo, 5.1->5.1.1.
2428
2429 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
2430
2431 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
2432 data symbols, since we search based on textlow and texthigh.
2433 (find_pc_sect_symtab): Likewise.
2434
2435 2002-01-30 Andrew Cagney <ac131313@redhat.com>
2436
2437 * defs.h (vwarning): Declare.
2438 * utils.c (vwarning): New function.
2439 (warning): Call vwarning.
2440 (warning_begin): Delete function.
2441
2442 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
2443 the warning message.
2444 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
2445 warning_begin.
2446
2447 2002-01-30 Michael Snyder <msnyder@redhat.com>
2448
2449 * NEWS: Mention "set trust-readonly-sections" command.
2450 Mention generate-core-file command.
2451
2452 2002-01-15 Michael Snyder <msnyder@redhat.com>
2453
2454 * target.c: New command, "set trust-readonly-sections on".
2455 (do_xfer_memory): Honor the suggestion to trust readonly sections
2456 by reading them from the object file instead of from the target.
2457 (initialize_targets): Register command "set trust-readonly-sections".
2458
2459 2002-01-29 Andrew Cagney <ac131313@redhat.com>
2460
2461 * parse.c (target_map_name_to_register): Simplify, search regs and
2462 pseudo-regs using a single loop.
2463
2464 2002-01-30 Andrew Cagney <ac131313@redhat.com>
2465
2466 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
2467
2468 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
2469
2470 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
2471 * config/i386/i386v42mp.mh: Add i387-nat.o .
2472 * i386v4-nat.c: Include i387-nat.h.
2473 (supply_fpregset): Use i387_supply_fsave.
2474 (fill_fpregset): Use i387_fill_fsave.
2475
2476 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
2477
2478 * arm-tdep.c (arm_call_dummy_words): Define.
2479 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
2480 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
2481 (CALL_DUMMY_WORDS): Define.
2482 (arm_call_dummy_words): Declare.
2483 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
2484 (arm_linux_call_dummy_words): Declare.
2485
2486 2002-01-30 Andreas Schwab <schwab@suse.de>
2487
2488 * m68klinux-nat.c: Fix last change to use regcache_collect
2489 instead of referencing registers[] directly.
2490
2491 2002-01-29 Andrew Cagney <ac131313@redhat.com>
2492
2493 * parse.c (target_map_name_to_register): Delete code wrapped in
2494 #ifdef REGISTER_NAME_ALIAS_HOOK.
2495
2496 2002-01-28 Michael Snyder <msnyder@redhat.com>
2497
2498 * regcache.c (legacy_read_register_gen): Need to be able to
2499 read pseudo-register as well as real register.
2500 (legacy_write_register_gen): Ditto.
2501
2502 2002-01-28 Andrew Cagney <ac131313@redhat.com>
2503
2504 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
2505 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
2506 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
2507 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
2508 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
2509 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
2510 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
2511 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
2512 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
2513 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
2514 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
2515 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
2516 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
2517 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
2518 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
2519 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
2520 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
2521 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
2522 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
2523 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
2524
2525 2002-01-28 Andrew Cagney <ac131313@redhat.com>
2526
2527 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
2528 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
2529 (initialize_current_architecture): Update target_byte_order using
2530 information from BFD.
2531 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
2532 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
2533
2534 2002-01-28 Andrew Cagney <ac131313@redhat.com>
2535
2536 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
2537 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
2538
2539 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
2540 #ifdef INVALID_FLOAT.
2541 * infcmd.c (do_registers_info): Ditto.
2542 * values.c (unpack_double): Ditto. Add comment.
2543
2544 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
2545 already commented out.
2546
2547 2002-01-26 Andreas Schwab <schwab@suse.de>
2548
2549 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
2550 * m68klinux-nat.c: Update ptrace interface for fetching/storing
2551 registers and add support for PTRACE_GETREGS.
2552
2553 2002-01-24 Andrew Cagney <ac131313@redhat.com>
2554
2555 GDB 5.1.1 released from 5.1 branch.
2556 * NEWS: Add 5.1.1 news.
2557 * README: Sync with 5.1 branch.
2558
2559 2002-01-23 Fred Fish <fnf@redhat.com>
2560
2561 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
2562 stabstring on initial malloc. Reallocing will copy it for us,
2563 if necessary.
2564
2565 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
2566
2567 * Makefile.in (hpread_h): Delete.
2568 (HFILES_NO_SRCDIR): Remove hpread.h.
2569 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
2570 (hpread.o): Update dependencies.
2571 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
2572
2573 * hp-psymtab-read.c: Remove file.
2574 * hp-symtab-read.c: Remove file.
2575 * hpread.h: Remove file.
2576
2577 * hpread.c: Merge all contents of hp-psymtab-read.c,
2578 hp-symtab-read.c and hpread.h into this file, as it was prior to
2579 January 1999.
2580
2581 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
2582 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
2583 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
2584 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
2585
2586 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
2587
2588 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
2589 fill_gregset): Call gdbarch_tdep() just once, assign result to
2590 variable and use that, instead of calling the function several
2591 times.
2592
2593 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2594
2595 * configure.host: Accept sparcv9 as alias for sparc64.
2596 * configure.tgt: Likewise.
2597
2598 2002-01-22 Kevin Buettner <kevinb@redhat.com>
2599
2600 * solib-aix5.c (build_so_list_from_mapfile)
2601 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
2602 arguments is not reversed.
2603 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
2604 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
2605
2606 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
2607
2608 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
2609 modified version of obsolete sh_fetch_pseudo_register.
2610 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
2611 (sh4_register_read): New function.
2612 (sh_pseudo_register_write): New function. Renamed and modified
2613 version of obsolete sh_store_pseudo_register.
2614 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
2615 (sh4_register_write): New function.
2616 (sh_gdbarch_init): Remove setting of gdbarch function
2617 fetch_pseudo_register and store_pseudo_register. Remove setting of
2618 register_convert_to_raw, register_convert_to_virtual,
2619 register_convertible.
2620 (sh_sh4_register_convertible): Delete. No longer needed. All is
2621 taken care by architecture specific functions
2622 register_read/register_write.
2623 (sh_sh4_register_convert_to_virtual): Make static.
2624 (sh_sh4_register_convert_to_raw): Ditto.
2625
2626 2002-01-22 Andrew Cagney <ac131313@redhat.com>
2627
2628 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
2629 (floatformat_is_nan, floatformat_mantissa): Ditto.
2630
2631 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
2632 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
2633 builtin_type_ieee_double_little,
2634 builtin_type_ieee_double_littlebyte_bigword,
2635 builtin_type_m68881_ext, builtin_type_i960_ext,
2636 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
2637 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
2638 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
2639 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
2640
2641 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
2642
2643 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
2644 parameter. Set frameless flag if it exists and depended of
2645 whether the scanned function is frameless or not.
2646 (xstormy16_skip_prologue): If function is frameless, return
2647 result of xstormy16_scan_prologue().
2648 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
2649 call.
2650
2651 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
2652
2653 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
2654 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
2655 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
2656 sh_sh4_register_byte, sh_sh4_register_raw_size,
2657 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
2658 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
2659 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
2660 sh_store_pseudo_register, sh_do_pseudo_register): Call
2661 gdbarch_tdep() just once, assign result to variable and use that,
2662 instead of calling the function several times.
2663
2664 2002-01-20 Mark Kettenis <kettenis@gnu.org>
2665
2666 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
2667 macros instead of LAST_FPU_CTRL_REGNUM.
2668 (store_register): Likewise.
2669
2670 2002-01-21 Jim Blandy <jimb@redhat.com>
2671
2672 * infcmd.c (run_command): Check that the `exec' target layer's BFD
2673 is up-to-date before running the program, not just when a program
2674 exits.
2675
2676 2002-01-21 Fred Fish <fnf@redhat.com>
2677
2678 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
2679 when we have found all instructions we are looking for.
2680
2681 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
2682
2683 * arm-tdep.c (arm_register_name): New function.
2684 (arm_registers_names): Make static.
2685 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
2686 (arm_register_name): Declare.
2687 (REGISTER_NAME): Use it.
2688
2689 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
2690 Kevin Buettner <kevinb@redhat.com>
2691
2692 Convert arm targets to new FRAME interface.
2693 * arm-tdep.c (struct frame_extra_info): Remove fsr.
2694 (arm_frame_find_save_regs): Delete.
2695 (arm_frame_init_saved_regs): New.
2696 (arm_init_extra_frame_info): Alloacte saved_regs as required.
2697 Allocate extra_info as required. Convert all uses of fsr.regs
2698 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
2699 to use extra_info.
2700 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
2701 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
2702 (check_prologue_cache, save_prologue_cache): Likewise.
2703 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
2704 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
2705 (FRAME_FIND_SAVED_REGS): Delete.
2706 (arm_frame_find_saved_regs): Delete prototype.
2707 (arm_frame_init_saved_regs): New prototype.
2708 (FRAME_INIT_SAVED_REGS): Define.
2709
2710 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2711
2712 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
2713
2714 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2715
2716 From Jeff Law <law@redhat.com>:
2717 * infttrace.c: Include <sys/pstat.h>.
2718 (child_pid_to_exec_file): Revamp. Use pstat call to get the
2719 exec file if the ttrace equivalent fails.
2720
2721 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2722
2723 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
2724 (closeLogFile): Ditto.
2725
2726 2002-01-20 Michael Chastain <mec@shout.net>
2727
2728 * top.c (print_gdb_version): Bump copyright year to 2002.
2729
2730 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2731
2732 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
2733 Zannoni and Eli Zaretskii.
2734
2735 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
2736
2737 * buildsym.c: Update copyright years.
2738 * c-typeprint.c: Likewise.
2739 * dwarf2read.c: Likewise.
2740 * f-typeprint.c: Likewise.
2741 * gdbtypes.c: Likewise.
2742 * gdbtypes.h: Likewise.
2743 * hp-symtab-read.c: Likewise.
2744 * hpread.c: Likewise.
2745 * mdebugread.c: Likewise.
2746 * p-typeprint.c: Likewise.
2747
2748 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2749
2750 * remote-sim.c (gdbsim_open): Simplify code testing the macro
2751 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
2752 byte-order selectable.
2753 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
2754 * arch-utils.c: Ditto.
2755 (set_endian): Ditto.
2756 (set_endian_from_file): Ditto.
2757 * gdbserver/low-sim.c (create_inferior): Ditto.
2758 * gdbarch.sh: Ditto.
2759 * gdbarch.h: Re-generate.
2760 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2761 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
2762 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
2763 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2764 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2765 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2766 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
2767 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
2768 macro definition.
2769 * config/mips/tm-wince.h: Remove #undef of macro
2770 TARGET_BYTE_ORDER_SELECTABLE.
2771 * config/sh/tm-wince.h: Ditto.
2772
2773 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
2774
2775 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
2776 member function fields. Add accessor macro
2777 TYPE_FN_FIELD_ARTIFICIAL.
2778 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
2779 * c-typeprint.c (c_type_print_base): Skip artificial member
2780 functions.
2781
2782 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
2783
2784 * f-typeprint.c: Delete unused function f_type_print_args.
2785 * p-typeprint.c: Delete unused function pascal_type_print_args.
2786
2787 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
2788
2789 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
2790 comment. Add ``artificial'' to ``union field_location''.
2791
2792 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
2793
2794 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
2795 * mdebugread.c (parse_symbol): Likewise.
2796 * stabsread.c (define_symbol): Likewise.
2797 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
2798 initializing TYPE_FIELD_BITPOS to n (obsolete).
2799 (hpread_doc_function_type): Likewise.
2800 * hpread.c (hpread_function_type): Likewise.
2801
2802 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2803
2804 * configure.in (host_makefile_frag): Only require a host makefile
2805 fragment when a native build.
2806 * configure: Re-generate.
2807
2808 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2809
2810 * doublest.h (floatformat_from_type): Declare.
2811 * doublest.c (floatformat_from_type): New function.
2812 (convert_typed_floating): Use.
2813
2814 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
2815 call to function floatformat_from_type.
2816
2817 * gdbarch.sh (IEEE_FLOAT): Delete.
2818 * gdbarch.h, gdbarch.c: Re-generate.
2819 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
2820 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
2821 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
2822 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
2823 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
2824 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
2825 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
2826 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
2827 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
2828 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
2829 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
2830 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
2831
2832 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
2833 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
2834 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2835 * sh-tdep.c (sh_gdbarch_init): Ditto.
2836 * mips-tdep.c (mips_gdbarch_init): Ditto.
2837 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2838 * cris-tdep.c (cris_gdbarch_init): Ditto.
2839
2840 2002-01-20 Jiri Smid <smid@suse.cz>
2841
2842 * configure.host, configure.tgt: Support x86-64.
2843 * NEWS: Note new target x86-64.
2844
2845 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
2846 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
2847 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
2848 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
2849 x86-64-linux-nat.o): Fix dependencies.
2850
2851 2002-01-19 Andrew Cagney <ac131313@redhat.com>
2852
2853 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
2854 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
2855 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
2856 * config/sparc/xm-sun4os4.h: Delete file.
2857 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
2858
2859 2002-01-19 Andrew Cagney <ac131313@redhat.com>
2860
2861 * config/sparc/sparclynx.mh (XM_FILE): Delete.
2862 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
2863 * config/m68k/m68klynx.mh (XM_FILE): Delete.
2864 * config/i386/i386lynx.mh (XM_FILE): Delete.
2865 * config/rs6000/xm-rs6000ly.h: Delete file.
2866 * config/sparc/xm-sparclynx.h: Delete file.
2867 * config/m68k/xm-m68klynx.h: Delete file.
2868 * config/i386/xm-i386lynx.h: Delete file.
2869 * config/xm-lynx.h: Delete file.
2870 * config/djgpp/fnchange.lst: Update.
2871
2872 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
2873
2874 * alpha-tdep.c (alpha_register_byte): New function.
2875 (alpha_register_raw_size): Ditto.
2876 (alpha_register_virtual_size): Ditto.
2877 (alpha_skip_prologue_internal): Renamed from
2878 alpha_skip_prologue.
2879 (alpha_skip_prologue): New version that calls
2880 alpha_skip_prologue_internal.
2881 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
2882 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
2883 second argument from alpha_skip_prologue.
2884 (REGISTER_BYTE): Use alpha_register_byte.
2885 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
2886 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
2887 (FRAMELESS_FUNCTION_INVOCATION): Use
2888 generic_frameless_function_invocation_not.
2889 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
2890 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
2891
2892 2002-01-19 Andrew Cagney <ac131313@redhat.com>
2893
2894 * config/mips/xm-news-mips.h: Delete file.
2895 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
2896
2897 * config/m88k/xm-m88k.h: Delete file.
2898 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
2899 * config/m88k/xm-delta88v4.h: Ditto.
2900 * config/m88k/xm-delta88.h: Ditto.
2901
2902 * config/alpha/xm-fbsd.h: Delete file.
2903 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
2904
2905 * config/sparc/xm-sparc.h: Delete file.
2906 * Makefile.in (xm-sun4os4.h): Delete dependency.
2907 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
2908 * config/sparc/xm-sun4os4.h: Ditto.
2909 * config/sparc/xm-linux.h: Ditto.
2910
2911 * config/i386/xm-windows.h: Delete file.
2912
2913 2002-01-19 Andrew Cagney <ac131313@redhat.com>
2914
2915 * utils.c: Include <sys/param.h> for MAXPATHLEN.
2916 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
2917
2918 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
2919
2920 * alpha-tdep.c (alpha_call_dummy_words): New.
2921 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
2922 (CALL_DUMMY_P): Define.
2923 (CALL_DUMMY_WORDS): Define.
2924 (SIZEOF_CALL_DUMMY_WORDS): Define.
2925
2926 2002-01-19 Per Bothner <per@bothner.com>
2927
2928 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
2929 isn't NULL, which can happen with some gcj-3.x-produced code.
2930
2931 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
2932
2933 * alpha-tdep.c (alpha_register_virtual_type): New function.
2934 (alpha_init_frame_pc_first): Ditto.
2935 (alpha_fix_call_dummy): Ditto.
2936 (alpha_store_struct_return): Ditto.
2937 (alpha_extract_struct_value_address): Ditto.
2938 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
2939 alpha_register_virtual_type.
2940 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
2941 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
2942 alpha_extract_struct_value_address.
2943 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
2944 (INIT_FRAME_PC): Use init_frame_pc_noop.
2945 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
2946
2947 2002-01-19 Mark Kettenis <kettenis@gnu.org>
2948
2949 * i386gnu-nat.c: Include "i386-tdep.h".
2950 (fetch_fpregs): Simplify code dealing with uninitialized floating
2951 point states such that it doesn't require FP7_REGNUM.
2952
2953 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2954
2955 * alpha-tdep.c (frame_extra_info): New.
2956 (alpha_find_saved_regs): Make static. Use
2957 frame->extra_info.
2958 (alpha_frame_init_saved_regs): New function.
2959 (alpha_frame_saved_pc): Use frame->extra_info.
2960 (temp_saved_regs): Don't declare as struct frame_saved_regs.
2961 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
2962 (init_extra_frame_info): Rename to...
2963 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
2964 (alpha_print_extra_frame_info): New function.
2965 (alpha_frame_locals_address): Ditto.
2966 (alpha_frame_args_address): Ditto.
2967 (alpha_pop_frame): Use frame->extra_info.
2968 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
2969 alpha_frame_args_address.
2970 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
2971 (alpha_find_saved_regs): Remove prototype.
2972 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
2973 (EXTRA_FRAME_INFO): Remove.
2974 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
2975 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
2976
2977 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2978
2979 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
2980 (alpha_cannot_fetch_register): Ditto.
2981 (alpha_cannot_store_register): Ditto.
2982 (alpha_register_convertible): Ditto.
2983 (alpha_use_struct_convention): Ditto.
2984 * config/alpha/tm-alpha.h: Update copyright years.
2985 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
2986 (INNER_THAN): Use core_addr_lessthan.
2987 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
2988 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
2989 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
2990 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
2991 (FRAME_CHAIN): Remove unnecessary cast.
2992
2993 2002-01-18 Andrew Cagney <ac131313@redhat.com>
2994
2995 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
2996 obsolete.
2997
2998 2002-01-18 Andrew Cagney <ac131313@redhat.com>
2999
3000 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
3001 * monitor.c, remote-array.c, remote-bug.c: Ditto.
3002 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
3003 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
3004 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
3005 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
3006 * x86-64-linux-nat.c: Ditto.
3007
3008 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3009
3010 * alpha-tdep.c (alpha_register_name): New function.
3011 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
3012 (REGISTER_NAME): Define.
3013
3014 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3015
3016 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
3017
3018 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3019
3020 * alpha-tdep.c: Update copyright years.
3021 (alpha_next_pc): New function.
3022 (alpha_software_single_step): Ditto.
3023 * config/alpha/tm-alpha.h: Add prototype for
3024 alpha_software_single_step.
3025
3026 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3027
3028 * alphabsd-nat.c: Update copyright years.
3029 (fill_gregset): Use regcache_collect.
3030 (fill_fpregset): Likewise.
3031 (fetch_inferior_registers): Only fetch integer registers
3032 if requested to do so.
3033 (store_inferior_registers): Only store integer registers
3034 if requested to do so.
3035
3036 2002-01-17 Andrew Cagney <ac131313@redhat.com>
3037
3038 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
3039 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
3040 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
3041 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
3042 * config/alpha/fbsd.mh (XDEPFILES): Delete.
3043 * config/arm/linux.mh (XDEPFILES): Delete.
3044 * config/arm/nbsd.mh (XDEPFILES): Delete.
3045 * config/i386/i386dgux.mh (XDEPFILES): Delete.
3046 * config/i386/i386sol2.mh (XDEPFILES): Delete.
3047 * config/i386/i386m3.mh (XDEPFILES): Delete.
3048 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
3049 * config/i386/i386gnu.mh (XDEPFILES): Delete.
3050 * config/i386/fbsd.mh (XDEPFILES): Delete.
3051 * config/i386/i386bsd.mh (XDEPFILES): Delete.
3052 * config/i386/i386sco5.mh (XDEPFILES): Delete.
3053 * config/i386/i386v4.mh (XDEPFILES): Delete.
3054 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
3055 * config/i386/i386sco4.mh (XDEPFILES): Delete.
3056 * config/i386/i386aix.mh (XDEPFILES): Delete.
3057 * config/i386/go32.mh (XDEPFILES): Delete.
3058 * config/i386/cygwin.mh (XDEPFILES): Delete.
3059 * config/i386/i386lynx.mh (XDEPFILES): Delete.
3060 * config/i386/i386mach.mh (XDEPFILES): Delete.
3061 * config/i386/i386v32.mh (XDEPFILES): Delete.
3062 * config/i386/linux.mh (XDEPFILES): Delete.
3063 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
3064 * config/i386/ncr3000.mh (XDEPFILES): Delete.
3065 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
3066 * config/i386/i386sco.mh (XDEPFILES): Delete.
3067 * config/i386/i386v.mh (XDEPFILES): Delete.
3068 * config/i386/nbsd.mh (XDEPFILES): Delete.
3069 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
3070 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
3071 * config/i386/symmetry.mh (XDEPFILES): Delete.
3072 * config/i386/obsd.mh (XDEPFILES): Delete.
3073 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
3074 * config/ia64/linux.mh (XDEPFILES): Delete.
3075 * config/ia64/aix.mh (XDEPFILES): Delete.
3076 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
3077 * config/m68k/dpx2.mh (XDEPFILES): Delete.
3078 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
3079 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
3080 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
3081 * config/m68k/linux.mh (XDEPFILES): Delete.
3082 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
3083 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
3084 * config/m68k/nbsd.mh (XDEPFILES): Delete.
3085 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
3086 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
3087 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
3088 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
3089 * config/m88k/delta88.mh (XDEPFILES): Delete.
3090 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
3091 * config/m88k/m88k.mh (XDEPFILES): Delete.
3092 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
3093 * config/mips/linux.mh (XDEPFILES): Delete.
3094 * config/mips/irix6.mh (XDEPFILES): Delete.
3095 * config/mips/irix5.mh (XDEPFILES): Delete.
3096 * config/mips/irix4.mh (XDEPFILES): Delete.
3097 * config/mips/irix3.mh (XDEPFILES): Delete.
3098 * config/mips/decstation.mh (XDEPFILES): Delete.
3099 * config/mips/mipsm3.mh (XDEPFILES): Delete.
3100 (NATDEPFILES): Move core-aout.o to here.
3101 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
3102 * config/pa/hpux1020.mh (XDEPFILES): Delete.
3103 * config/pa/hppabsd.mh (XDEPFILES): Delete.
3104 * config/pa/hppahpux.mh (XDEPFILES): Delete.
3105 * config/pa/hpux11w.mh (XDEPFILES): Delete.
3106 * config/pa/hppaosf.mh (XDEPFILES): Delete.
3107 * config/pa/hpux11.mh (XDEPFILES): Delete.
3108 * config/powerpc/aix.mh (XDEPFILES): Delete.
3109 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
3110 * config/powerpc/linux.mh (XDEPFILES): Delete.
3111 * config/romp/rtbsd.mh: Rename XDEPFILES.
3112 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
3113 * config/rs6000/aix4.mh (XDEPFILES): Delete.
3114 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
3115 * config/s390/s390.mh (XDEPFILES): Delete.
3116 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
3117 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
3118 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
3119 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
3120 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
3121 * config/sparc/nbsd.mh (XDEPFILES): Delete.
3122 * config/sparc/linux.mh (XDEPFILES): Delete.
3123 * config/vax/vaxult.mh (XDEPFILES): Delete.
3124 * config/vax/vaxult2.mh (XDEPFILES): Delete.
3125 * Makefile.in (DEPFILES): Remove XDEPFILES.
3126
3127 2002-01-17 Andrew Cagney <ac131313@redhat.com>
3128
3129 * utils.c (internal_verror): Fix comments, default is yes not no.
3130 Update queries to match. Default to quit and dump core.
3131
3132 2002-01-17 Andrew Cagney <ac131313@redhat.com>
3133
3134 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
3135 copyright.
3136 * defs.h, event-top.c, gdbcmd.h: Ditto.
3137 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
3138 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
3139 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
3140 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
3141 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
3142 * mi/mi-main.c:Ditto.
3143
3144 * stack.c, symfile.c: Update copyright.
3145
3146 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
3147
3148 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
3149 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
3150 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
3151 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
3152
3153 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
3154
3155 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
3156 * gdbserver/low-lynx.c (myattach): Likewise.
3157 * gdbserver/low-nbsd.c (myattach): Likewise.
3158 * gdbserver/low-sim.c (myattach): Likewise.
3159 * gdbserver/low-sparc.c (myattach): Likewise.
3160 * gdbserver/low-sun3.c (myattach): Likewise.
3161
3162 * gdbserver/low-linux.c (myattach): New function.
3163
3164 * gdbserver/server.c (attach_inferior): New function.
3165 (main): Handle "--attach".
3166
3167 2002-01-16 Andrew Cagney <ac131313@redhat.com>
3168
3169 * MAINTAINERS (language support): Daniel Jacobwitz is C++
3170 maintainer.
3171
3172 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
3173
3174 * c-typeprint.c (is_type_conversion_operator): Add additional
3175 check for non-conversion operators.
3176
3177 2002-01-15 Michael Snyder <msnyder@redhat.com>
3178
3179 * linux-proc.c: Add "info proc" command, a la procfs.c.
3180 (read_mapping): New function, abstract and re-use code.
3181 (linux_find_memory_regions): Use new func read_mapping.
3182 (linux_info_proc_cmd): New function, implement "info proc".
3183 (_initialize_linux_proc): Add new command "info proc".
3184
3185 2002-01-15 Michael Snyder <msnyder@redhat.com>
3186
3187 * symfile.c (generic_load): Use bfd_map_over_sections method
3188 instead of manipulating bfd structure members directly.
3189 (add_section_size_callback): New function, bfd sections callback
3190 used by generic_load.
3191 (load_sections_callback): New function, bfd sections callback
3192 used by generic_load.
3193
3194 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
3195
3196 [Based on work by Jim Blandy]
3197 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
3198 (builtin_type_vec128): Export.
3199 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
3200 types.
3201 (builtin_type_vec128): New builtin type for 128 bit vector
3202 registers.
3203 (build_gdbtypes): Initialize builtin_type_v16qi and
3204 builtin_type_v8hi. Create the vec128 register builtin type
3205 structure.
3206 (build_builtin_type_vec128): New function.
3207 (_initialize_gdbtypes): Register builtin_type_v16qi and
3208 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
3209 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
3210 AltiVec register to new builtin type.
3211
3212 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
3213
3214 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
3215 to make_cv_type.
3216
3217 2002-01-14 Andrew Cagney <ac131313@redhat.com>
3218
3219 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
3220 CLEAN_UP_REGISTER_VALUE.
3221 * regcache.c (supply_register): Update only call.
3222
3223 2002-01-14 Andrew Cagney <ac131313@redhat.com>
3224
3225 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
3226 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
3227 a29k-*-vxworks* targets as obsolete.
3228
3229 2002-01-14 Michael Snyder <msnyder@redhat.com>
3230
3231 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
3232 until we can resolve portability issues.
3233 * gregset.h: Remove references to fpxregs.
3234 * gcore.c (gcore_command): Initialize note_sec to NULL.
3235
3236 2002-01-13 Andrew Cagney <ac131313@redhat.com>
3237
3238 * signals.c (target_signal_to_name): Rewrite. Only use
3239 signals[].name when in bounds and non-NULL.
3240
3241 2002-01-13 Andrew Cagney <ac131313@redhat.com>
3242
3243 From Petr Ledvina <ledvinap@kae.zcu.cz>:
3244 * signals.c (target_signal_to_name): Verify that SIG is within the
3245 bounds of the signals array.
3246
3247 2002-01-13 Andrew Cagney <ac131313@redhat.com>
3248
3249 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
3250
3251 2002-01-13 Keith Seitz <keiths@redhat.com>
3252
3253 * stack.c (print_frame_info_base): Print the frame's pc
3254 only if when print_frame_info_listing_hook is not defined.
3255
3256 2002-01-13 Keith Seitz <keiths@redhat.com>
3257
3258 * varobj.c (varobj_set_value): Make sure that there were no
3259 errors evaluating the object before attempting to set its
3260 value.
3261 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
3262 so this offset adjustment is no longer necessary.
3263 (create_child): Don't set the error flag if the child is
3264 a CPLUS_FAKE_CHILD.
3265 (value_of_child): If value_fetch_lazy fails, return NULL
3266 so that callers will be notified that an error occurred.
3267 (c_value_of_variable): Delay check of variable's validity
3268 until later. We actually want all structs and unions to have
3269 the value "{...}".
3270 Do not return "???" for variables which could not be evaluated.
3271 This error condition must be returned to the caller so that it
3272 can get the error condition from gdb.
3273 (cplus_name_of_child): Adjust index for vptr before figuring
3274 out the name of the child.
3275 (cplus_value_of_child): If a child's (real) parent is not valid,
3276 don't even bother trying to give a value for it. Just return
3277 an error. Change all instances in this function.
3278 (cplus_type_of_child): If our parent is one of the "fake"
3279 parents, we need to get at the type of the real parent, and
3280 derive the child's true type using this information.
3281
3282 2002-01-13 Andrew Cagney <ac131313@redhat.com>
3283
3284 From 2002-01-09 John Marshall <johnm@falch.net>:
3285 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
3286 sources.redhat.com, and tweak some related URLs which had
3287 suffered from linkrot.
3288
3289 2002-01-13 Andrew Cagney <ac131313@redhat.com>
3290
3291 From Jeff law:
3292 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
3293 structures passed in registers.
3294
3295 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
3296
3297 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
3298 white space which prevented compilation. Reported by DSK
3299 <dsk@student.unsw.edu.au>.
3300
3301 2002-01-11 Michael Snyder <msnyder@redhat.com>
3302
3303 * symfile.c (build_section_addr_info_from_section_tab):
3304 Use bfd access method instead of manipulating bfd directly.
3305 (syms_from_objfile): Ditto.
3306 (simple_overlay_update_1): Ditto.
3307 (simple_overlay_update): Ditto.
3308 (generic_load): Ditto.
3309 (overlay_unmapped_address): FIXME comment, bfd access methods.
3310 (sections_overlap): FIXME comment, bfd access methods.
3311 (pc_in_mapped_range): FIXME comment, bfd access methods.
3312 (pc_in_unmapped_range): FIXME comment, bfd access methods.
3313 (section_is_mapped): FIXME comment, bfd access methods.
3314 (section_is_overlay): FIXME comment, bfd access methods.
3315
3316 * symfile.c (generic_load): Whitespace and long line cleanups.
3317 Remove duplicate variable, change several local variables to
3318 more appropriate data types.
3319 (print_transfer_performance): Use %lu instead of %ld for ulongs.
3320
3321 2002-01-12 Andrew Cagney <ac131313@redhat.com>
3322
3323 From Peter Schauer:
3324 * language.c (longest_local_hex_string_custom): Use phex_nz to
3325 convert NUM to a hex string.
3326
3327 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
3328
3329 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
3330 the function.
3331 Update Copyright year.
3332
3333 2002-01-12 Andrew Cagney <ac131313@redhat.com>
3334
3335 * language.c (longest_raw_hex_string): Delete unused function.
3336
3337 2002-01-11 Petr Sorfa <petrs@caldera.com>
3338
3339 * MAINTAINERS (write-after-approval): Add myself.
3340 * dwarf2read.c (read_tag_string_type): Handling of
3341 DW_AT_byte_size.
3342 (read_tag_string_type): FORTRAN fix to prevent propagation of
3343 first string size.
3344 (set_cu_language): Handling of DW_LANG_Fortran95
3345
3346 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
3347
3348 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
3349 GETPID(inferior_ptid).
3350 (store_inferior_registers): Likewise.
3351
3352 2002-01-10 Jason Merrill <jason@redhat.com>
3353
3354 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
3355 Fix DW_OP_minus.
3356
3357 2002-01-10 Andrew Cagney <ac131313@redhat.com>
3358
3359 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
3360 and bfd/elf32-sh-nbsd.c.
3361
3362 2002-01-10 Michael Snyder <msnyder@redhat.com>
3363
3364 * NEWS: Mention --pid and corefile/proc-id behavior change.
3365
3366 * Makefile.in: Add rules for gcore.o and linux-proc.o.
3367 * gcore.c: Include cli/cli-decode.h instead of command.h.
3368
3369 * main.c (captured_main): Add new command line option "--pid".
3370 If the second command line argument (following the symbol-file)
3371 begins with a digit, try to attach to it before trying to open
3372 it as a corefile.
3373 (print_gdb_help): Document the "--pid" argument.
3374
3375 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
3376
3377 * completer.c (command_completer): New function.
3378
3379 * completer.h <command_completer>: Add prototype.
3380
3381 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
3382 completer for the "help" command.
3383
3384 2002-01-09 Jason Merrill <jason@redhat.com>
3385
3386 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
3387
3388 2002-01-09 Michael Snyder <msnyder@redhat.com>
3389
3390 * i386-linux-nat.c (fill_fpxregset): Make global.
3391 (store_fpxregset): Ditto.
3392
3393 * gregset.h (gdb_fpxregset_t): Define.
3394 (supply_fpxregset): Prototype.
3395 (fill_fpxregset): Prototype.
3396
3397 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
3398
3399 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
3400
3401 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
3402 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
3403 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
3404
3405 2002-01-09 Andrew Cagney <ac131313@redhat.com>
3406
3407 * MAINTAINERS: Update target maintainer rules so that any
3408 Maintainer can approve a tested patch for a maintenance-only
3409 target.
3410
3411 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
3412
3413 * MAINTAINERS (write-after-approval): Add myself.
3414
3415 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
3416 IN_SIGTRAMP.
3417
3418 2002-01-08 Michael Snyder <msnyder@redhat.com>
3419
3420 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
3421 real name of the executable, rather than the /proc name.
3422
3423 2002-01-03 Michael Snyder <msnyder@redhat.com>
3424
3425 Implement a "generate-core-file" command in gdb, save target state.
3426 * gcore.c: New file. Implement new command 'generate-core-file'.
3427 Save a corefile image of the current state of the inferior.
3428 * linux-proc.c: Add linux-specific code for saving corefiles.
3429 * target.h (struct target_ops): Add new target vectors for saving
3430 corefiles; to_find_memory_regions and to_make_corefile_notes.
3431 (target_find_memory_regions): New macro.
3432 (target_make_corefile_notes): New macro.
3433 * target.c (update_current_target): Inherit new target methods.
3434 (dummy_find_memory_regions): New place-holder method.
3435 (dummy_make_corefile_notes): New place-holder method.
3436 (init_dummy_target): Initialize new dummy target vectors.
3437 * exec.c (exec_set_find_memory_regions): New function.
3438 Allow the exec_ops vector for memory regions to be taken over.
3439 (exec_make_note_section): New function, target vector method.
3440 * defs.h (exec_set_find_memory_regions): Export prototype.
3441 * procfs.c (proc_find_memory_regions): New function, corefile method.
3442 (procfs_make_note_section): New function, corefile method.
3443 (init_procfs_ops): Set new target vector pointers.
3444 (find_memory_regions_callback): New function.
3445 (procfs_do_thread_registers): New function.
3446 (procfs_corefile_thread_callback): New function.
3447 * sol-thread.c (sol_find_memory_regions): New function.
3448 (sol_make_note_section): New function.
3449 (init_sol_thread_ops): Initialize new target vectors.
3450 * inftarg.c (inftarg_set_find_memory_regions): New function.
3451 Allow to_find_memory_regions vector to be taken over.
3452 (inftarg_set_make_corefile_notes): New function.
3453 Allow to_make_corefile_notes vector to be taken over.
3454 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
3455 interface layer if not target_has_execution (may be a corefile).
3456 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
3457 * config/sparc/sun4sol2.mh: Ditto.
3458 * config/alpha/alpha-linux.mh: Ditto.
3459 * config/arm/linux.mh: Ditto.
3460 * config/i386/x86-64linux.mh: Ditto.
3461 * config/ia64/linux.mh: Ditto.
3462 * config/m68k/linux.mh: Ditto.
3463 * config/mips/linux.mh: Ditto.
3464 * config/powerpc/linux.mh: Ditto.
3465 * config/sparc/linux.mh: Ditto.
3466
3467 2002-01-07 Michael Snyder <msnyder@redhat.com>
3468
3469 * arm-linux-nat.c: Remove references to regcache.c internal data
3470 (registers[] and register_valid[]).
3471
3472 2002-01-07 Michael Snyder <msnyder@redhat.com>
3473
3474 * linux-proc.c: New file. Implement child_pid_to_exec_file,
3475 so that attaching to a pid will automatically read the process's
3476 symbol file and shlibs.
3477 * Makefile.in: Add rule for linux-proc.o.
3478 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
3479 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
3480 * config/arm/linux.mh: Ditto.
3481 * config/i386/linux.mh: Ditto.
3482 * config/i386/x86-64linux.mh: Ditto.
3483 * config/ia64/linux.mh: Ditto.
3484 * config/m68k/linux.mh: Ditto.
3485 * config/mips/linux.mh: Ditto.
3486 * config/powerpc/linux.mh: Ditto.
3487 * config/sparc/linux.mh: Ditto.
3488
3489 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
3490
3491 * win32-nat.c: Add i386-tdep.h dependency.
3492
3493 2002-01-07 Michael Snyder <msnyder@redhat.com>
3494
3495 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
3496 instead of bfd_get_arch_size. Don't bail out just because
3497 there's no exec_bfd.
3498
3499 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
3500 * p-valprint.c (pascal_object_print_value): Ditto.
3501 * somread.c (som_symtab_read): Ditto.
3502 * symfile.c (simple_free_overlay_region_table): Ditto.
3503 * valops.c (value_assign): Ditto.
3504
3505 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
3506 use tilde_expand and strerror for opening save-tracepoints file.
3507
3508 * thread-db.c (thread_db_new_objfile): Indendation fix.
3509
3510 * infptrace.c (GDB_MAX_ALLOCA): New define.
3511 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
3512 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
3513 can be overridden with whatever value is appropriate to the host).
3514 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
3515 alloca to allocate potentially large buffer.
3516 * rs6000-nat.c (child_xfer_memory): Ditto.
3517 * symm-nat.c (child_xfer_memory): Ditto.
3518 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
3519
3520 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
3521
3522 From Nick Clifton <nickc@redhat.com>
3523 * d10v-tdep.c: Set STACK_START to 0x200bffe.
3524
3525 2002-01-07 Michael Snyder <msnyder@redhat.com>
3526
3527 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
3528 Don't use exec_bfd if it's NULL.
3529
3530 2002-01-06 Mark Kettenis <kettenis@gnu.org>
3531
3532 * valops.c (value_arg_coerce): Fix formatting.
3533
3534 2002-01-06 Andrew Cagney <ac131313@redhat.com>
3535
3536 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
3537 * gnu-nat.c: Ditto.
3538
3539 2002-01-06 Andrew Cagney <ac131313@redhat.com>
3540
3541 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
3542 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
3543 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
3544 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
3545 z8k-coff have not been multi-arched. Update z8k-coff build
3546 status.
3547
3548 2002-01-06 Andrew Cagney <ac131313@redhat.com>
3549
3550 * MAINTAINERS: Mark a29k target as obsolete.
3551 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
3552 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
3553 comments.
3554 * NEWS: Note that a29k targets are obsolete.
3555 * a29k-tdep.c: Mark as obsolete.
3556 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
3557 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
3558 a29k-*-vxworks* targets as obsolete.
3559 * remote-adapt.c: Obsolete.
3560 * remote-eb.c: Obsolete.
3561 * remote-mm.c: Obsolete.
3562 * remote-udi.c: Obsolete.
3563 * config/a29k/a29k-udi.mt: Obsolete.
3564 * config/a29k/a29k.mt: Obsolete.
3565 * config/a29k/tm-a29k.h: Obsolete.
3566 * config/a29k/tm-vx29k.h: Obsolete.
3567 * config/a29k/vx29k.mt: Obsolete.
3568
3569 2002-01-05 Andrew Cagney <ac131313@redhat.com>
3570
3571 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
3572 with BFD_ENDIAN_BIG.
3573
3574 2002-01-05 Andrew Cagney <ac131313@redhat.com>
3575
3576 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
3577 * configure, config.in: Re-generate.
3578 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
3579 * defs.h: Do not include <endian.h>.
3580
3581 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
3582
3583 * acconfig.h (HAVE_PT_GETXMMREGS): New.
3584 * config.in: Regenerate.
3585 * configure.in: Update copyright years.
3586 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
3587 * configure: Regenerate.
3588 * i386bsd-nat.c: Update copyright years.
3589 (fill_gregset): Use regcache_collect.
3590 (fetch_inferior_registers): Only fetch integer registers
3591 if requested to do so. Add support for XMM registers
3592 using PT_GETXMMREGS.
3593 (store_inferior_registers): Only store integer registers
3594 if requested to do so. Add support for XMM registers
3595 using PT_SETXMMREGS.
3596 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
3597 (store_inferior_registers): Remove.
3598 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
3599 (fetch_elfcore_registers): New function.
3600 (i386nbsd_elfcore_fns): New.
3601 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
3602 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
3603 i386bsd-nat.o.
3604 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3605 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
3606 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3607 * config/i386/tm-nbsd.h: Update copyright years.
3608 (HAVE_SSE_REGS): Define.
3609 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
3610 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
3611 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
3612 (SIGCONTEXT_PC_OFFSET): Remove.
3613 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
3614
3615 2002-01-05 Andrew Cagney <ac131313@redhat.com>
3616
3617 * configure.tgt: Remove powerpc-*-macos* target.
3618 * config/m68k/xm-mpw.h: Delete file.
3619 * config/xm-mpw.h: Delete file.
3620 * ser-mac.c: Delete file.
3621 * mpw-make.sed: Delete file.
3622 * mpw-config.in: Delete file.
3623 * mac-xdep.c: Delete file.
3624 * mac-gdb.r: Delete file.
3625 * mac-defs.h: Delete file.
3626 * mac-nat.c: Delete file.
3627 * config/powerpc/macos.mh: Delete file.
3628 * config/powerpc/macos.mt: Delete file.
3629 * config/powerpc/nm-macos.h: Delete file.
3630 * config/powerpc/tm-macos.h: Delete file.
3631 * source.c (openp, open_source_file): Remove obsolete code.
3632 * top.c (gdb_readline): Ditto.
3633 * utils.c (query): Ditto.
3634 * event-top.c (display_gdb_prompt): Ditto.
3635 * Makefile.in (ser-mac.o): Delete obsolete target.
3636 * NEWS: Update.
3637
3638 2002-01-04 Andrew Cagney <ac131313@redhat.com>
3639
3640 * defs.h (BIG_ENDIAN): Delete macro definition.
3641 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
3642 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
3643 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
3644 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
3645 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
3646 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
3647 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
3648 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
3649 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
3650 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
3651 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
3652 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
3653 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
3654 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
3655 * gdbarch.c: Re-generate.
3656
3657 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3658
3659 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
3660 for core files.
3661
3662 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3663
3664 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
3665
3666 2002-01-04 Andrew Cagney <ac131313@redhat.com>
3667
3668 * value.h (value_ptr): Delete typedef.
3669
3670 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3671
3672 * i386nbsd-nat.c: Update copyright years.
3673 Include i386-tdep.h.
3674
3675 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
3676
3677 * stabsread.c: Update copyright years.
3678
3679 From Debashis Mahata <debashis.mahata@wipro.com>:
3680 (read_struct_fields): Deal with Sun C compiler erroneous stab
3681 output for structs and unions.
3682 Fix PR gdb/269.
3683
3684 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3685
3686 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
3687 prototype.
3688
3689 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3690
3691 * cp-abi.c: Fix whitespace.
3692 (baseclass_offset): New wrapper function.
3693 * cp-abi.h (baseclass_offset): Add prototype.
3694 (struct cp_abi_ops): Add baseclass_offset pointer.
3695
3696 * valops.c (vb_match): Move to...
3697 * gnu-v2-abi.c (vb_match): here.
3698 * valops.c (baseclass_offset): Move to...
3699 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
3700
3701 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
3702
3703 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
3704 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
3705 * hpacc-abi.c (init_hpacc_ops): Likewise.
3706
3707 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3708
3709 * valops.c (find_overload_match): Accept obj as a
3710 reference parameter. Update it before returning.
3711 * value.h (find_overload_match): Update prototype.
3712 * eval.c (evaluate_subexp_standard): Pass object to
3713 find_overload_match by reference.
3714
3715 2002-01-03 Andrew Cagney <ac131313@redhat.com>
3716
3717 * valarith.c: Replace value_ptr with struct value pointer. Remove
3718 register attribute from value declarations.
3719 * valops.c: Ditto.
3720 * value.h: Ditto.
3721 * scm-lang.c (scm_lookup_name): Ditto.
3722
3723 2002-01-03 Michael Snyder <msnyder@redhat.com>
3724
3725 Abstract the functionality of iterating over mapped memory
3726 regions into a general purpose iterator function.
3727 * procfs.c (iterate_over_mappings): New function, general purpose
3728 iterator for memory sections.
3729 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
3730 (solib_mappings_callback): New function, callback for above.
3731 (info_proc_mappings): Reimpliment using iterate_over_mappings.
3732 (info_mappings_callback): New function, callback for above.
3733
3734 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
3735
3736 2002-01-01 Mark Kettenis <kettenis@gnu.org>
3737
3738 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
3739 * i386-tdep.c: Include "elf-bfd.h".
3740 (process_note_abi_tag_sections): New function.
3741 (i386_gdbarch_init): Add code to recognize various OS/ABI
3742 combinations.
3743
3744 * maint.c (_initialize_maint_cmds): Add missing \ in
3745 string-literal.
3746
3747 For older changes see ChangeLog-2001
3748 \f
3749 Local Variables:
3750 mode: change-log
3751 left-margin: 8
3752 fill-column: 74
3753 version-control: never
3754 End: