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