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