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