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