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