]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
* elf64-ppc.c (ppc64_elf_info_to_howto): Formatting.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2250ee0c
CV
12002-05-17 Corinna Vinschen <vinschen@redhat.com>
2
3 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4
ab3b8126
JT
52002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6
7 * Makefile.in (sh_tdep_h): Define and use.
8 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9 register enum): Move to...
10 * * sh-tdep.h: ...here.
11 * sh-tdep.c: Include sh-tdep.h.
12 * sh3-rom.c: Likewise.
13 * shnbsd-tdep.c: Likewise.
14
ed9d4749
MS
152002-05-16 Michael Snyder <msnyder@redhat.com>
16
17 * arm-tdep.c: Spelling fix in comment.
18
2e276125
JB
192002-05-16 Jim Blandy <jimb@redhat.com>
20
6821892e
JB
21 Add commands for manually expanding macros and showing their
22 definitions.
23 * macrocmd.c, macroscope.c, macroscope.h: New files.
24 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
25 (macroscope_h): New variable.
26 (HFILES_NO_SRCDIR): Add macroscope.h.
27 (COMMON_OBS): Add macrocmd.o, macroscope.o.
28 (macroscope.o, macrocmd.o): New rules.
29
2e276125
JB
30 Teach the Dwarf 2 reader to read macro information.
31 * dwarf2read.c: #include "macrotab.h".
32 (dwarf_macinfo_buffer): New variable.
33 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
34 dwarf_macinfo_size.
35 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
36 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
37 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
38 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
39 dwarf2_macro_spaces_in_definition): New complaints.
40 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
41 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
42 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
43 the partial symbol table.
44 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
45 from what's recorded in the partial symbol table.
46 (read_file_scope): If the compilation unit has a
47 `DW_AT_macro_info' attribute, read its macro information.
48 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
49
2f53fe6c
DJ
502002-05-16 Daniel Jacobowitz <drow@mvista.com>
51
52 Fix PR gdb/546
53 * ser-tcp.c: Don't include <netinet/udp.h>.
54
2be99286
SC
552002-05-16 Stephane Carrez <stcarrez@nerim.fr>
56
57 * MAINTAINERS: Update my email address.
58
c9af212b 592002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
60
61 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
62 include file of the same name.
63
bf5f1a52
CV
642002-05-16 Corinna Vinschen <vinschen@redhat.com>
65
66 * configure.tgt: Mark v850 as multi-arched.
67 * config/v850/tm-v850.h: Remove file.
68 * config/v850/v850.mt: Eliminate TM_FILE.
69
435e042a
CV
702002-05-16 Corinna Vinschen <vinschen@redhat.com>
71
72 * v850-tdep.c: Full multi-arch.
73 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
74 Define GDB_MULTI_ARCH to 2.
75
9819c6c8
PM
762002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
77
78 * p-exp.y (current_type): New static variable.
79 Carries the type of the expression at the position that is parsed.
80 (push_current_type, pop_current_type): Two new functions. Used
81 to store/restore current_type in expression on specific tokens.
c9af212b
RE
82 (search_field): New static variable. Set to one after parsing a point
83 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
84 (FIELDNAME): New token. After a point only a token belonging to
85 current_type type definition is allowed.
86 (all over token rules): reset and change current_type according
87 to rules.
88 (exp '[' rule): insert implicit array index field if
89 exp is a pascal string type.
90
3a06899a
CV
912002-05-16 Corinna Vinschen <vinschen@redhat.com>
92
93 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
94 frame info. Use frame_info's saved_regs instead of matching member
95 in extra_frame_info throughout.
96 (v850_frame_init_saved_regs): New function.
97 (v850_init_extra_frame_info): Move most functionality into
98 v850_frame_init_saved_regs().
99 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
100 (v850_frame_find_saved_regs): Remove declaration.
101 (FRAME_FIND_SAVED_REGS): Remove definition.
102 (v850_frame_init_saved_regs): Add declaration.
103 (FRAME_INIT_SAVED_REGS): Add definition.
104
6ed14b0e
CV
1052002-05-16 Corinna Vinschen <vinschen@redhat.com>
106
107 * v850-tdep.c: Begin multi-arch'ing v850.
108 (v850_target_architecture_hook): Remove function.
109 (v850_gdbarch_init): New function. Add code previously in
110 v850_target_architecture_hook().
111 (_initialize_v850_tdep): Don't set target_architecture_hook.
112 Call register_gdbarch_init() instead.
113
42725910
DJ
1142002-05-16 Daniel Jacobowitz <drow@mvista.com>
115
116 * gdbtypes.h (struct cplus_struct_type): Remove args field.
117 * hpread.c (hpread_read_struct_type): Remove assignments to args.
118 (fixup_class_method_type): Likewise.
119
0bc68c49
DJ
1202002-05-15 Daniel Jacobowitz <drow@mvista.com>
121
122 From Martin Pool <mbp@samba.org>:
123 * gdbserver/server.c (gdbserver_usage): New function.
124 (main): Call it.
125
99d9066e
JB
1262002-05-15 Jim Blandy <jimb@redhat.com>
127
128 Add macro structures to GDB's symbol tables. Nobody puts anything
129 in them yet.
130 * symtab.h (struct symtab): New member: `macro_table'.
131 * buildsym.h (pending_macros): New global variable.
132 * buildsym.c: #include "macrotab.h".
133 (buildsym_init): Initialize `pending_macros'.
134 (end_symtab): If we found macro information while reading a CU's
135 debugging info, do build a symtab structure for it. Make the
136 symtab point to the macro information, and clear the
137 `pending_macros' pointer which held it while we were reading the
138 debug info.
139 (really_free_pendings): Free any pending macro table.
140 * objfiles.h (struct objfile): New member: `macro_cache'.
141 * objfiles.c (allocate_objfile): Set allocate and free functions
142 for the macro cache's objstack.
143 (free_objfile): Empty the macro cache's obstack.
144 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
145 set new allocate and free functions for it.
146 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
147 free functions for the macro cache's objstack. (Why is this
148 function building its own objfile?)
149 * symmisc.c (print_objfile_statistics): Print statistics on the
150 macro bcache.
151 * Makefile.in: Note that buildsym.o depends on macrotab.h.
152
c899585b
RE
1532002-05-15 Richard Earnshaw <rearnsha@arm.com>
154
155 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
156 (REGISTER_U_ADDR): Delete definition.
157 (arm_register_u_addr): Delete declaration.
158
a6cdd8c5
RE
1592002-05-15 Richard Earnshaw <rearnsha@arm.com>
160
161 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
162 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
163
fd3a5ca1
DJ
1642002-05-14 Daniel Jacobowitz <drow@mvista.com>
165
166 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
167 stop_at -> stop_pc.
168
c97dcfc7
AC
1692002-05-14 Andrew Cagney <ac131313@redhat.com>
170
171 * regcache.c (register_valid): Revise comments refering to "Not
172 available" and "unavailable".
173 * frame.c (frame_register_read): Ditto.
174 * findvar.c (value_of_register): Ditto.
175
93021b7d
AC
1762002-05-15 Andrew Cagney <cagney@redhat.com>
177
178 * Makefile.in (remote_sim_h): Replace remote-sim_h.
179 (remote-sim.o): Update dependencies.
180 (d10v-tdep.o): Specify dependencies.
181 (sim_d10v_h): Define.
182
a86bc61c
JB
1832002-05-14 Jim Blandy <jimb@redhat.com>
184
185 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
186 * macrotab.c (macro_lookup_inclusion, find_definition,
187 new_macro_table): Same.
188
189 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
190 not `! strcmp ()'. This is a dubious improvement.
191 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
192
193 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
194 although it's not necessary, to avoid a warning.
195
2fdde8f8
DJ
1962002-05-14 Daniel Jacobowitz <drow@mvista.com>
197
198 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
199 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
200 TYPE_INSTANCE_FLAGS.
201 (struct main_type): New.
202 (struct type): Move most members to struct main_type. Change
203 cv_type and as_type to new type_chain member. Add instance_flags.
204 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
205 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
206 (finish_cv_type): Remove prototype.
207 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
208 Set TYPE_CHAIN.
209 (alloc_type_instance): New function.
210 (smash_type): New function.
211 (make_pointer_type, make_reference_type, make_function_type)
212 (smash_to_member_type, smash_to_method_type): Call smash_type.
213 (make_qualified_type): New function.
214 (make_type_with_address_space): Call make_qualified_type.
215 (make_cv_type): Likewise.
216 (finish_cv_type): Remove unnecessary function.
217 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
218 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
219 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
220 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
221 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
222 * hpread.c (hpread_read_struct_type): Likewise.
223 * stabsread.c (read_struct_type): Likewise.
224
843fedf4
EZ
2252002-05-14 Elena Zannoni <ezannoni@redhat.com>
226
227 * configure.tgt: Add a catch all sh* target, for cases like
228 sh[2,3,4]-elf and sh-hms.
229
05a6c72c
KS
2302002-05-14 Keith Seitz <keiths@redhat.com>
231
232 * event-loop.c (create_file_handler): Don't do anything but
233 update data when we are given a fd which we are already
234 monitoring.
235
5d085aaf
ML
2362002-05-14 Michal Ludvig <mludvig@suse.cz>
237
238 * dwarf2cfi.c (context_cpy): Copy registers correctly.
239 (update_context): Use __func__ in warnings.
240
9db8d71f
DJ
2412002-05-14 Daniel Jacobowitz <drow@mvista.com>
242
243 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
244 and tcp_close to net_open and net_close.
245 (net_open): Accept "udp:" and "tcp:" specifications. Connect
246 using UDP if requested. Don't try to disable Nagle on UDP
247 sockets.
248 * remote.c (remote_serial_open): New function. Warn about UDP.
249 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
250
5dbc6baa
EZ
2512002-05-13 Elena Zannoni <ezannoni@redhat.com>
252
253 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
254
cc3023f7
EZ
2552002-05-13 Elena Zannoni <ezannoni@redhat.com>
256
257 * configure.tgt: Remove sh-hms target.
258 * MAINTAINERS: Don't list sh-hms as a separate target.
259
ec2bcbe7
JB
2602002-05-13 Jim Blandy <jimb@redhat.com>
261
262 Add first preprocessor macro-expansion files.
263 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
264 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
265 (splay_tree_h, macroexp_h, macrotab_h): New variable.
266 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
267 (COMMON_OBS): Add macrotab.o, macroexp.o.
268 (macroexp.o, macrotab.o): New rules.
269
6d531722
AC
2702002-05-13 Andrew Cagney <ac131313@redhat.com>
271
272 * config/m88k/tm-m88k.h: Update copyright.
273 (m88k_target_write_pc): Declare
274 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
275 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
276 (SHIFT_INST_REGS): Update definition.
277 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
278 using old definition of TARGET_WRITE_PC.
279 * regcache.c (generic_target_write_pc): Delete code handling
280 NNPC_REGNUM.
281 * gdbarch.sh (NNPC_REGNUM): Delete.
282 * gdbarch.h, gdbarch.c: Regenerate.
283
3e3f2739
RE
2842002-05-13 Richard Earnshaw <rearnsha@arm.com>
285
286 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
287 builtin reg number.
288
0004e5a2
DJ
2892002-05-13 Daniel Jacobowitz <drow@mvista.com>
290
291 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
292 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
293 (gen_address_of, gen_struct_ref, gen_repeat): Use type
294 access macros.
295 * c-typeprint.c (cp_type_print_method_args): Likewise.
296 (c_type_print_args): Likewise.
297 * d10v-tdep.c (d10v_push_arguments): Likewise.
298 (d10v_extract_return_value): Likewise.
299 * expprint.c (print_subexp): Likewise.
300 * gdbtypes.c (lookup_primitive_typename): Likewise.
301 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
302 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
303 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
304 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
305 (TYPE_VECTOR): Likewise.
306 * hpread.c (hpread_read_struct_type)
307 (fix_static_member_physnames, fixup_class_method_type)
308 (hpread_type_lookup): Likewise.
309 * mdebugread.c (parse_symbol, parse_type): Likewise.
310 * p-lang.c (is_pascal_string_type): Likewise.
311 * valops.c (hand_function_call): Likewise.
312 * x86-64-tdep.c (classify_argument): Likewise.
313
314 * hpread.c (hpread_read_function_type)
315 (hpread_read_doc_function_type): Call replace_type.
316 * dstread.c (create_new_type): Delete.
317 (decode_dst_structure, process_dst_function): Call alloc_type.
318 Use type access macros.
319
dff95cc7
MK
3202002-05-12 Mark Kettenis <kettenis@gnu.org>
321
322 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
323 the're not supported by the current architecture.
324 (i387_fill_fxsave): Likewise.
325
bbcd32ad
FF
3262002-05-12 Fred Fish <fnf@redhat.com>
327
328 * symfile.c (default_symfile_offsets): Arrange for uninitialized
329 sect_index_xxx members to index the first slot in section_offsets
330 if all of the section_offsets are zero.
331
89cf4787
MK
3322002-05-12 Mark Kettenis <kettenis@gnu.org>
333
334 * configure.tgt (sparc-*openbsd): Remove entry accidentially
335 checked in with last change.
336
1f77ffc5
MK
3372002-05-12 Mark Kettenis <kettenis@gnu.org>
338
339 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
340 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
341 config.sub.
342
89b8b4a9
DJ
3432002-05-12 Daniel Jacobowitz <drow@mvista.com>
344
345 * Makefile.in: Update dependencies.
346
14a5e767
AC
3472002-05-11 Andrew Cagney <ac131313@redhat.com>
348
349 * language.c (local_hex_string_custom): Simplify. Do not depend
350 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
351
352 * memattr.c (mem_info_command): Replace calls to
353 longest_local_hex_string and longest_local_hex_string_custom.
354 * buildsym.c (make_blockvector): Ditto.
355 * solib.c (info_sharedlibrary_command): Ditto.
356 * tracepoint.c (tracepoints_info): Ditto.
357 * symtab.c (print_msymbol_info): Ditto.
358
359 * language.c (local_hex_string): Delete.
360 (local_hex_string_custom): Delete.
361 (longest_local_hex_string): Rename to local_hex_string.
362 (longest_local_hex_string_custom): Rename to
363 local_hex_string_custom.
364 * language.h (local_hex_string): Change parameter type to LONGEST.
365 (local_hex_string_custom): Ditto.
366 (longest_local_hex_string): Delete declaration.
367 (longest_local_hex_string_custom): Ditto.
368
369 * solib.c: Update copyright.
370 * memattr.c: Update copyright.
371
13d01224
AC
3722002-05-11 Andrew Cagney <ac131313@redhat.com>
373
374 * arch-utils.h (legacy_register_to_value): Declare.
375 (legacy_value_to_register): Declare.
376 (legacy_convert_register_p): Declare.
377 * arch-utils.c (legacy_register_to_value): New function.
378 (legacy_value_to_register): New function.
379 (legacy_convert_register_p): New function.
380
381 * gdbarch.sh (REGISTER_TO_VALUE): Define.
382 (VALUE_TO_REGISTER): Define.
383 (CONVERT_REGISTER_P): Define.
384 * gdbarch.h, gdbarch.c: Regenerate.
385
386 * valops.c (value_assign): Use CONVERT_REGISTER_P and
387 VALUE_TO_REGISTER.
388 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
389 CONVERT_REGISTER_P.
390
4a1970e4
DJ
3912005-05-11 Daniel Jacobowitz <drow@mvista.com>
392 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
393
394 * Makefile.in: Update dependencies for valops.c.
395 * valops.c: Include "gdb_assert.h".
396 (typecmp): Skip THIS parameter to methods.
397 (find_method_list): Remove static_memfuncp argument,
398 update callers. Check for stub methods.
399 (find_value_oload_method_list): Don't set *static_memfuncp.
400 (find_overload_match): Don't check for stub methods. Assert
401 that methods are not stubbed. Handle static methods.
402 (value_find_oload_method_list): Remove static_memfuncp argument.
403 * gdbtypes.c (check_stub_method): Do not add THIS pointer
404 to the argument list for static stub methods.
405 * value.h (value_find_oload_method_list): Update prototype.
406
b2e75d78
AC
4072002-05-11 Andrew Cagney <ac131313@redhat.com>
408
409 * arch-utils.h (generic_register_size): Declare.
410 (generic_register_raw_size, generic_register_virtual_size): Delete
411 declarations.
412 * arch-utils.c (generic_register_raw_size): Delete.
413 (generic_register_size): New function.
414 (generic_register_virtual_size): Delete.
415
416 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
417 default generic_register_size.
418 * gdbarch.h, gdbarch.c: Re-generate.
419
420 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
421 register_virtual_size.
422 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
423 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
424
451fbdda
AC
4252002-05-11 Andrew Cagney <ac131313@redhat.com>
426
427 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
428 * gdbarch.h, gdbarch.c: Regenerate.
429 * gnu-v3-abi.c: Update copyright.
430 (vtable_address_point_offset): Update.
431 (gnuv3_rtti_type): Update.
432 (gnuv3_baseclass_offset): Update.
433 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
434 (init_fetch_link_map_offsets): Update.
435 * remote.c (get_remote_state): Update.
436
6d2f5cea
DJ
4372002-05-11 Daniel Jacobowitz <drow@mvista.com>
438
439 * TODO: Remove value_headof/value_from_vtable_info comment.
440 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
441 * values.c (value_headof, value_from_vtable_info): Delete.
442 * value.h (value_from_vtable_info): Delete prototype.
443
d2324da4
AC
4442002-05-11 Andrew Cagney <ac131313@redhat.com>
445
446 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
447 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
448 $(gdb_regex_h).
449 (gdb_assert_h): Define.
450 (gdb_wait_h): Define.
451 (gdb_regex_h): Define.
452
5c717440
DJ
4532002-05-11 Daniel Jacobowitz <drow@mvista.com>
454
455 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
456 * linespec.c (find_methods): Handle GCC 3.x template constructors.
457
6c7861b3
JT
4582002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
459
460 * nbsd-tdep.c: Fix comment.
461
ea5bc2a6
JT
4622002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
463
464 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
465 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
466 (nbsd-tdep.o): New dependency list.
467 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
468 nbsd-tdep.h.
469 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
470 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
471 * nbsd-tdep.c: New file.
472 * nbsd-tdep.h: New file.
473 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
474 nbsd-tdep.h.
475 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
476 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
477 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
478 * config/sh/nbsd.mt (TDEPFILES): Ditto.
479
b28da865
JT
4802002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
481
482 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
483 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
484 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
485 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
486 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
487 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
488
4b8ff1fa
JT
4892002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
490
491 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
492 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
493 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
494 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
495 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
496 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
497 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
498
dfe6eb1f
JT
4992002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
500
501 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
502 fetch_elfcore_registers to...
503 * i386nbsd-tdep.c: ...here.
504 (i386nbsd_use_struct_convention): Rename to...
505 (i386nbsd_aout_use_struct_convention): ...this.
506 (i386nbsd_supply_reg): New function.
507 (i386nbsd_fill_reg): New function.
508 (fetch_core_registers): Use i386nbsd_supply_reg.
509 (fetch_elfcore_registers): Likewise.
510 (_initialize_i386nbsd_tdep): New function.
511 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
512 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
513 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
514 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
515 (i386nbsd_aout_use_struct_convention): ...this.
516
20cb8cda
JT
5172002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
518
519 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
520 (store_inferior_registers): Use shnbsd_fill_reg.
521 * shnbsd-tdep.c (sh_nbsd_supply_registers,
522 sh_nbsd_supply_register): Collapse into...
523 (shnbsd_supply_reg): ...this.
524 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
525 (shnbsd_fill_reg): ...this.
526 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
527 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
528 (fetch_core_registers): Use shnbsd_supply_reg.
529 (fetch_elfcore_registers): Use shnbsd_supply_reg.
530 (sh_nbsd_core_fns): Rename to...
531 (shnbsd_core_fns): ...this.
532 (sh_nbsd_elfcore_fns): Rename to...
533 (shnbsd_elfcore_fns): ...this.
534 (sh_nbsd_init_abi): Rename to...
535 (shnbsd_init_abi): ...this.
536 (_initialize_sh_nbsd_tdep): Rename to...
537 (_initialize_shnbsd_tdep): ...this.
538 * shnbsd-tdep.h (sh_nbsd_supply_registers,
539 sh_nbsd_supply_register, sh_nbsd_fill_registers,
540 sh_nbsd_fill_register): Remove prototypes.
541 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
542
e750d25e
JT
5432002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
544
545 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
546 (i387-nat.o): Delete dependency list.
547 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
548 (x86-64-linux-nat.o): Likewise.
549 * i387-nat.c: Delete file, moving contents to...
550 * i387-tdep.c: ...here.
551 * i387-nat.h: Rename...
552 * i387-tdep.h: ...to this.
553 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
554 * i386-linux-nat.c: Likewise.
555 * i386bsd-nat.c: Likewise.
556 * i386gnu-nat.c: Likewise.
557 * i386nbsd-nat.c: Likewise.
558 * i386v4-nat.c: Likewise.
559 * x86-64-linux-nat.c: Likewise.
560 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
561 * config/i386/go32.mh (NATDEPFILES): Likewise.
562 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
563 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
564 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
565 * config/i386/linux.mh (NATDEPFILES): Likewise.
566 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
567 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
568 * config/i386/obsd.mh (NATDEPFILES): Likewise.
569 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
570
1aee598a
JT
5712002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
572
573 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
574 (alphanbsd-nat.o): Remove dependency list.
575 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
576 * alphanbsd-nat.c: Delete. Contents moved to...
577 * alphanbsd-tdep.c: ...here.
578 (_initialize_alphanbsd_tdep): Register core functions.
579 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
580
12bcb0fe
JT
5812002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
582
583 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
584 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
585 (alphanbsd-nat.o): Likewise.
586 (alphabsd-tdep.o): New dependency list.
587 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
588 (fill_gregset): Use alphabsd_fill_reg.
589 (supply_fpregset): Use alphabsd_supply_fpreg.
590 (fill_fpregset): Use alphabsd_fill_fpreg.
591 (fetch_inferior_registers): Use struct reg and struct fpreg
592 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
593 and alphabsd_supply_fpreg.
594 (store_inferior_registers): Use struct reg and struct fpreg
595 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
596 and alphabsd_fill_fpreg.
597 * alphabsd-tdep.c: New file.
598 * alphabsd-tdep.h: New file.
599 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
600 (fetch_elfcore_registers): Use alphabsd_supply_reg and
601 alphabsd_supply_fpreg.
602 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
603 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
604
361d1df0
EC
6052002-05-11 Eric Christopher <echristo@redhat.com>
606
607 * mips-tdep.c (mips_double_register_type): Fix thinko.
608 (mips_single_register_type): Ditto.
609 * MAINTAINERS: Add self.
610
92dd7cee
MK
6112002-05-11 Mark Kettenis <kettenis@gnu.org>
612
613 * i387-nat.c (i387_supply_register, i387_fill_fsave,
614 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
615 right thing on architectures with different endianness and/or
616 integer sizes.
617
e27da16d
JT
6182002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
619
620 From Christian Limpach <chris@Pin.LU>
621 * configure.in: Change sed expression which comments out
622 NATDEPFILES to also comment out continuation lines.
623 * configure: Regenerate.
624
ddde02bd
EZ
6252002-05-10 Elena Zannoni <ezannoni@redhat.com>
626
627 * sh-tdep.c: Clean up code erroneously reintroduced by previous
628 big patch.
629
1c922164
EZ
6302002-05-10 Elena Zannoni <ezannoni@redhat.com>
631
632 * sh-tdep.c: Include correct file.
633
283150cd
EZ
6342002-05-10 Elena Zannoni <ezannoni@redhat.com>
635
636 New support for sh64-elf (sh5) target.
637
638 * configure.tgt: For sh64-elf target, default to sh-elf.
639
640 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
641 (struct gdbarch_tdep): Add new fields for new registers and ABI
642 info.
361d1df0 643
283150cd
EZ
644 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
645 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
646 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
647 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
648 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
649 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
650 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
651 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
652 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
653 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
654 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
655 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
656 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
657 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
658 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
659 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
660 sh64_get_gdb_regnum, sh64_media_reg_base_num,
661 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
662 sign_extend, sh64_nofp_frame_init_saved_regs,
663 sh64_init_extra_frame_info, sh64_get_saved_register,
664 sh64_extract_struct_value_address, sh64_pop_frame,
665 sh64_push_arguments, sh64_extract_return_value,
666 sh64_store_return_value, sh64_show_media_regs,
667 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
668 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
669 sh_sh64_register_virtual_type,
670 sh_sh64_register_convert_to_virtual,
671 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
672 sh64_register_read, sh64_pseudo_register_write,
673 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
674 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
675 sh64_do_pseudo_register, sh_compact_do_registers_info,
676 sh64_do_registers_info, sh_gdbarch_init): New functions.
677
3117ed25
EZ
6782002-05-10 Elena Zannoni <ezannoni@redhat.com>
679
680 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
681
2654e6d4
DJ
6822002-05-10 Daniel Jacobowitz <drow@mvista.com>
683
684 * linespec.c (decode_line_1): Check for a double quote after
685 a filename correctly.
686
9ab3e532
JB
6872002-05-10 Jim Blandy <jimb@redhat.com>
688
689 Properly track the size of the current objfile's .debug_line section.
690 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
691 (DWARF_LINE_SIZE): New macro.
692 (dwarf2_build_psymtabs_hard): Record the line section's size in
693 the partial symbol table.
694 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
695 symbol table.
696
126fa72d
PS
6972002-05-10 Petr Sorfa <petrs@caldera.com>
698
699 * ia64-tdep.c: Handle breakpoints on L instruction type
700 in MLX instruction bundle by moving the breakpoint to
701 the third slot (X instruction type) as L holds only data.
702
1f077a3e
KB
7032002-05-10 Kevin Buettner <kevinb@redhat.com>
704
705 * dbxread.c (discarding_local_symbols_complaint): New complaint.
706 (process_one_symbol): Complain about discarding local symbols
707 due to a misplaced N_LBRAC entry.
708
8120c9d5 7092002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
710
711 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
712 * linespec.c (find_toplevel_char): '<' and '>' also increase and
713 decrease the depth we are at, in the case of templates.
361d1df0 714
67b2c998
DJ
7152002-05-09 Daniel Jacobowitz <drow@mvista.com>
716
717 * mips-tdep.c (mips_float_register_type): New function.
718 (mips_double_register_type): New function.
719 (mips_print_register): Use them.
720 (do_fp_register_row): Likewise.
721
fd326606
DJ
7222002-05-09 Daniel Jacobowitz <drow@mvista.com>
723
6609d9af 724 * signals/signals.c (signals): Remove conditional compilation around
fd326606 725 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 726 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 727
bef35864
MS
7282002-05-09 Michael Snyder <msnyder@redhat.com>
729
730 * remote-rdp.c (remote_rdp_can_run): Remove.
731
c55a3f73
TT
7322002-05-09 Tom Tromey <tromey@redhat.com>
733
734 * jv-valprint.c (java_val_print): Handle `char' as a special case
735 of TYPE_CODE_INT.
736
b8d5e71d
MS
7372002-05-09 Michael Snyder <msnyder@redhat.com>
738
739 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
740 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 741 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 742 str r(0123),[sp,#nn].
361d1df0 743 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
744 order-independent by placing it in a loop.
745
e2cd42dd
MS
7462002-05-06 Michael Snyder <msnyder@redhat.com>
747
748 * stabsread.c (read_type): Add recognition for new attribute:
749 "@V;" means that an array type is actually a vector.
750 This is analogous to the vector flag that's been added to dwarf2.
751
3ce1502b
MK
7522002-05-09 Mark Kettenis <kettenis@gnu.org>
753
754 * i386-tdep.h (i386_abi): New enum.
755 (struct gdbarch_tdep): Replace os_ident member with abi.
756 (i386_gdbarch_register_os_abi): New prototype.
757 * i386-tdep.c (i386_abi_names): New array.
758 (process_note_abi_tag_sections): Removed.
759 (process_note_sections): New function.
760 (i386_elf_abi_from_note, i386_elf_abi): New functions.
761 (struct i386_abi_handler): New struct.
762 (i386_abi_handler_list): New variable.
763 (i386_gdbarch_register_os_abi): New function.
764 (i386_gdbarch_init): Adapt for the changes given above.
765
084c156a
DJ
7662002-05-08 Daniel Jacobowitz <drow@mvista.com>
767
768 * gregset.h: Say "GNU/Linux".
769
6599f021
EZ
7702002-05-08 Elena Zannoni <ezannoni@redhat.com>
771
772 * gdbtypes.c : Add new builtin type for 64 bit vectors.
773 (build_gdbtypes): Build builtin_type_v2_float.
774 (_initialize_gdbtypes): Register new builtin type.
775
40af4b0c
AC
7762002-05-08 Andrew Cagney <ac131313@redhat.com>
777
778 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
779 (clear_gdbarch_swap): New function.
780 (initialize_non_multiarch): Call.
781 (gdbarch_update_p): Before calling init(), swap out and clear the
782 existing architecture.
783 * gdbarch.c: Regenerate.
784
4fe84f46
JT
7852002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
786
787 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
788 alphanbsd-tdep.c.
789
4015edd1
JT
7902002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
791
792 * sh-nbsd-nat.c: Rename to...
793 * shnbsd-nat.c: ...this.
794 * sh-nbsd-tdep.c: Rename to...
795 * shnbsd-tdep.c: ...this.
796 * sh-nbsd-tdep.h: Rename to...
797 * shnbsd-tdep.h: ...this.
798 * config/sh/nbsd.mh: Use shnbsd-nat.o.
799 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
800
0e2bd219
RE
8012002-05-08 Richard Earnshaw <rearnsha@arm.com>
802
803 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
804 concatenation for command help messages.
805
13a38d45
JT
8062002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
807
808 * NEWS: Note new sh*-*-netbsdelf* configuration.
809 * configure.host: Set gdb_host_cpu to sh for all sh*.
810 (sh*-*-netbsdelf*): New host.
811 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
812 (sh*-*-netbsdelf*): New target.
813 * sh-nbsd-nat.c: New file.
814 * sh-nbsd-tdep.c: New file.
815 * sh-nbsd-tdep.h: New file.
816 * config/sh/nbsd.mh: New file.
817 * config/sh/nbsd.mt: New file.
818 * config/sh/nm-nbsd.h: New file.
819 * config/sh/tm-nbsd.h: New file.
820
d658f924
JT
8212002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
822
823 * sh-tdep.c (sh_osabi_names): Declare.
824 (process_note_abi_tag_sections): New function.
825 (get_elfosabi): Ditto.
826 (sh_gdbarch_register_os_abi): Ditto.
827 (sh_dump_tdep): Ditto.
828 _initialize_sh_tdep): Use gdbarch_register to register
829 sh_gdbarch_init and sh_dump_tdep.
830 * config/sh/tm-sh.h (sh_osabi): Declare.
831 (gdbarch_tdep): Add sh_osabi and osabi_name members.
832
848cfffb
AC
8332002-05-07 Andrew Cagney <ac131313@redhat.com>
834
835 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
836 (thumb_scan_prologue): Ditto.
837 (arm_find_callers_reg): Ditto.
838 (arm_frame_chain): Ditto.
839 (arm_init_extra_frame_info): Ditto.
840 (arm_frame_saved_pc): Ditto.
841 (arm_pop_frame): Ditto.
842 (arm_push_return_address): New function.
843 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
844 call_dummy_location, call_dummy_breakpoint_offset_p,
845 call_dummy_breakpoint_offset, call_dummy_p,
846 call_dummy_stack_adjust_p, call_dummy_words,
847 sizeof_call_dummy_words, call_dummy_start_offset,
848 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
849 call_dummy_address, push_return_address and push_dummy_frame for
850 generic dummy frames.
851
e7d717c0
JT
8522002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
853
854 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
855 size computation for alloca.
856 (sh_fp_frame_init_saved_regs): Likewise.
857
7bbcf283
RE
8582002-05-07 Richard Earnshaw <rearnsha@arm.com>
859
860 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
861 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 862 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
863 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
864 * remote-rdp.c (remote_rdp_fetch_register): Use
865 ARM_MAX_REGISTER_RAW_SIZE.
866 (remote_rdp_store_register): Likewise.
867
4657573b
ML
8682002-05-07 Michal Ludvig <mludvig@suse.cz>
869
361d1df0 870 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
871 added default labels to switch {} statements.
872 * x86-64-tdep.c: Ditto.
873 * x86-64-linux-nat.c: Ditto.
874
010f3b2f
JT
8752002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
876
877 * solib.h: Protect against multiple inclusion.
878
debd256d
JB
8792002-05-06 Jim Blandy <jimb@redhat.com>
880
9ab3e532
JB
881 Add first preprocessor macro-expansion files.
882 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
883 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
884 (splay_tree_h, macroexp_h, macrotab_h): New variable.
885 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
886 (COMMON_OBS): Add macrotab.o, macroexp.o.
887 (macroexp.o, macrotab.o): New rules.
888
debd256d
JB
889 Separate the job of reading the line number info statement program
890 header (...expialidocious) out into its own function.
891 * dwarf2read.c (struct line_head, struct filenames, struct
892 directories): Replace with...
893 (struct line_header): New structure, containing the full
894 contents of the statement program header, including the
895 include directory and file name tables.
896 (read_file_scope): If we have line number info, instead of just
897 calling dwarf_decode_lines to do all the work, call
898 dwarf_decode_line_header first to get a `struct line_header'
899 containing the data in the statement program header, and then
900 pass that to dwarf_decode_lines, which will pick up where that
901 left off. Be sure to clean up the `struct line_header' object.
902 (dwarf_decode_line_header, free_line_header, add_include_dir,
903 add_file_name): New functions.
904 (dwarf_decode_lines): Move all the code to read the statement
905 program header into dwarf_decode_line_header. Take the line
906 header it built as the first argument, instead of the offset to
907 the compilation unit's line number info. Use the new `struct
908 line_header' type instead of the old structures. No need to do
909 cleanups here now, since we don't allocate anything.
910 (dwarf2_statement_list_fits_in_line_number_section,
911 dwarf2_line_header_too_long): New complaints.
912
ac3aafc7
EZ
9132002-05-06 Elena Zannoni <ezannoni@redhat.com>
914
915 * gdbtypes.c (init_vector_type): New function.
916 (build_builtin_type_vec128): Simplify the representation of SIMD
917 registers.
918 (build_gdbtypes): Initialize new builtin vector types.
919 (_initialize_gdbtypes): Register new vector types with gdbarch.
920 (builtin_type_v4_float, builtin_type_v4_int32,
921 builtin_type_v8_int16, builtin_type_v16_int8,
922 builtin_type_v2_int32, builtin_type_v4_int16,
923 builtin_type_v8_int8): New (renamed) SIMD types.
924
13e49980
MK
9252002-05-06 Mark Kettenis <kettenis@gnu.org>
926
927 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
928 (i387_fill_fxsave): Likewise.
929
997b20b8
AO
9302002-05-05 Alexandre Oliva <aoliva@redhat.com>
931
932 * alpha-tdep.c (alpha_extract_return_value): Don't use
933 non-constant array size in prototype.
934
535c96ce
AC
9352002-05-04 Andrew Cagney <ac131313@redhat.com>
936
937 From Brian Taylor <briant at model dot com>:
938 * ui-out.c (ui_out_field_core_addr): Use the function
939 longest_local_hex_string_custom'to format addresses > 32 bits
940 wide.
941
942 * ui-out.c (ui_out_field_core_addr): Update comment.
943
bedfa57b
AC
9442002-05-04 Andrew Cagney <ac131313@redhat.com>
945
946 * stack.c (select_and_print_frame): Make static. Delete the
947 parameter `level'.
948 (func_command): Update call.
949 (select_frame_command): Delete code computing the frame level.
950 * frame.h (select_and_print_frame): Delete declaration.
951
f621c63e
AC
9522002-05-04 Andrew Cagney <ac131313@redhat.com>
953
954 * sparc-tdep.c (sparc_get_saved_register): Comment why
955 get_prev_frame call is safe.
956
0f7d239c
AC
9572002-05-04 Andrew Cagney <ac131313@redhat.com>
958
959 * frame.h (select_frame): Delete level parameter.
960 * stack.c (select_frame): Update. Use frame_relative_level to
961 obtain the frame's level.
962 (select_and_print_frame): Update call.
963 (select_frame_command): Ditto.
964 (up_silently_base): Ditto.
965 (down_silently_base): Ditto.
966 * ocd.c (ocd_start_remote): Ditto.
967 * remote-rdp.c (remote_rdp_open): Ditto.
968 * remote-mips.c (mips_initialize): Ditto.
969 (common_open): Ditto.
970 * remote-e7000.c (e7000_start_remote): Ditto.
971 * m3-nat.c (select_thread): Ditto.
972 * hppa-tdep.c (child_get_current_exception_event): Ditto.
973 (child_get_current_exception_event): Ditto.
974 * varobj.c (varobj_create): Ditto.
975 (varobj_update): Ditto.
976 (c_value_of_root): Ditto.
977 * tracepoint.c (finish_tfind_command): Ditto.
978 * corelow.c (core_open): Ditto.
979 * arch-utils.c (generic_prepare_to_proceed): Ditto.
980 * thread.c (info_threads_command): Ditto.
981 (switch_to_thread): Ditto.
982 * infrun.c (normal_stop): Ditto.
983 (restore_selected_frame): Ditto.
984 (restore_inferior_status): Ditto.
985 * breakpoint.c (insert_breakpoints): Ditto.
986 (watchpoint_check): Ditto.
987 (bpstat_stop_status): Ditto.
988 (do_enable_breakpoint): Ditto.
989 * blockframe.c (flush_cached_frames): Ditto.
990 (reinit_frame_cache): Ditto.
991
71d6c7b1
AC
9922002-05-04 Andrew Cagney <ac131313@redhat.com>
993
994 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
995 maintainer.
996
cda6c68a
JB
9972002-05-04 Jim Blandy <jimb@redhat.com>
998
999 * gdbtypes.c (replace_type): Doc fix.
1000
5c1c87f0
AC
10012002-05-04 Andrew Cagney <ac131313@redhat.com>
1002
1003 * valprint.c (strcat_longest): Delete commented out function.
1004 Update copyright.
1005
cd9bfe15
AC
10062002-05-04 Andrew Cagney <ac131313@redhat.com>
1007
1008 * MAINTAINERS: Mark a29k as deleted.
1009 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
1010 Move new configurations to the top.
1011 * configure.tgt: Remove a29k.
1012 * config/a29k/tm-vx29k.h: Delete.
1013 * config/a29k/vx29k.mt: Delete.
1014 * config/a29k/tm-a29k.h: Delete.
1015 * config/a29k/a29k-udi.mt: Delete.
1016 * config/a29k/a29k.mt: Delete.
1017 * a29k-tdep.c: Delete.
1018 * remote-udi.c: Delete.
1019 * remote-mm.c: Delete.
1020 * remote-eb.c: Delete.
1021 * remote-adapt.c: Delete.
1022 * Makefile.in: Remove obsolete code.
1023 * gdbserver/Makefile.in: Ditto.
1024 * config/s390/s390x.mt: Ditto.
1025 * config/s390/s390.mt: Ditto.
1026 * config/sparc/sparclynx.mh: Ditto.
1027 * config/sparc/linux.mh: Ditto.
1028 * config/pa/hppaosf.mh: Ditto.
1029 * config/pa/hppabsd.mh: Ditto.
1030 * config/ns32k/nbsd.mt: Ditto.
1031 * config/mips/vr5000.mt: Ditto.
1032 * config/m68k/sun3os4.mh: Ditto.
1033 * config/m68k/nbsd.mt: Ditto.
1034 * config/m68k/m68klynx.mh: Ditto.
1035 * config/m32r/m32r.mt: Ditto.
1036 * config/i386/x86-64linux.mt: Ditto.
1037 * config/i386/nbsdelf.mt: Ditto.
1038 * config/i386/nbsd.mt: Ditto.
1039 * config/i386/i386lynx.mh: Ditto.
1040
bf0c5130
AC
10412002-05-04 Andrew Cagney <ac131313@redhat.com>
1042
1043 * target.c (debug_print_register): New function. Handle oversize
1044 registers.
1045 (debug_to_fetch_registers): Call.
1046 (debug_to_store_registers): Call.
1047
2ae1c2d2
JB
10482002-05-03 Jim Blandy <jimb@redhat.com>
1049
13a393b0
JB
1050 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
1051 (read_type): Doc fix.
1052 * gdbtypes.c (replace_type): Doc fix.
1053
2ae1c2d2
JB
1054 * stabsread.c (multiply_defined_struct): New complaint.
1055 (read_struct_type): If the type we were passed isn't empty, or
1056 incomplete, don't read the new struct type into it; complain,
1057 and return the original type unchanged. Take a new `type_code'
1058 argument, which is the type code for the new type.
1059 (read_type): Rather than storing the type's type code here, pass
1060 it as an argument to read_struct_type, and let that take care of
1061 storing it. That way, we don't overwrite the original type code,
1062 so read_struct_type can use it to decide whether we're overwriting
1063 something we shouldn't.
1064 (complain_about_struct_wipeout): New function.
1065
8de9bdc4
AC
10662002-05-03 Andrew Cagney <ac131313@redhat.com>
1067
1068 * gdbarch.sh: Assert that gdbarch is non-NULL.
1069 * gdbarch.c: Regenerate.
1070
f773fdbb
JM
10712002-05-03 Jason Merrill <jason@redhat.com>
1072
1073 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
1074 and return NULL.
1075
0e04a514
ML
10762002-05-03 Michal Ludvig <mludvig@suse.cz>
1077
1078 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
1079 (x86_64_dwarf2gdb_regno_map_length),
1080 (x86_64_dwarf2_reg_to_regnum): Added.
1081 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
1082 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
1083 (_initialize_x86_64_tdep): Synced with the change above.
1084 (x86_64_skip_prologue): Reformulated message.
1085
065432a8
PM
10862002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
1087
1088 * f-exp.y: Also use new prev_lexptr variable
1089 to improve error reporting. Based on Michael Snyder
1090 2002-04-24 dated patch to c-exp.y.
1091 * jv-exp.y: Likewise.
1092 * m2-exp.y: Likewise.
1093
a3162708
EZ
10942002-05-02 Elena Zannoni <ezannoni@redhat.com>
1095
1096 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
1097 we are dealing with vectors.
1098
03620c38
PM
10992002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
1100
1101 * config/m68k/tm-nbsd.h: Obvious fix,
1102 correct machine name.
1103
6604db2e
PM
11042002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
1105
1106 * p-typeprint.c (pascal_type_print_base): Add support
1107 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
1108
0906b739
PM
11092002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
1110
1111 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
1112 for fondamental pascal 'char' type.
1113
e2625b33
PM
11142002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
1115
1116 * p-lang.h (is_pascal_string_type): Declaration changed,
1117 new sixth argument of type char ** added.
361d1df0 1118 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
1119 changed. Args length_pos, length_size, string_pos, char_size
1120 can now be NULL. New argument arrayname set to the field
1121 name of the char array. Return value set to char array
1122 field index plus one.
361d1df0 1123 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
1124 is_pascal_string_type function.
1125
cf17c188
AC
11262002-05-02 Andrew Cagney <cagney@redhat.com>
1127
1128 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
1129 <cagney@redhat.com> change.
1130 * gdbarch.c: Regenerate.
1131
52bca491
AC
11322002-05-02 Andrew Cagney <cagney@redhat.com>
1133
1134 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
1135 before probing for a new one. Detect errorenous gdbarch_init
1136 functions.
1137 * gdbarch.c: Regenerate.
1138
d5e72505
AC
11392002-05-01 Andrew Cagney <cagney@redhat.com>
1140
1141 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
1142 * config/mcore/tm-mcore.h: Ditto. Update copyright.
1143 * config/v850/tm-v850.h: Ditto. Update copyright.
1144
af566d9f
AC
11452002-04-30 Andrew Cagney <ac131313@redhat.com>
1146
1147 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
1148 current_gdbarch.
1149
880d85fa
MS
11502002-04-30 Michael Snyder <msnyder@redhat.com>
1151
94c30b78
MS
1152 * arm-tdep.c: Whitespace clean-ups.
1153 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
1154 should have been removed as part of 4/24 change.
1155
6f5987a6
KB
11562002-04-30 Kevin Buettner <kevinb@redhat.com>
1157
1158 * rs6000-tdep.c: Added comment describing how fpscr register
1159 numbers were chosen.
1160
1a113c93
MS
11612002-04-30 Michael Snyder <msnyder@redhat.com>
1162
1163 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
1164
9a6f53fe
EZ
11652002-04-29 Elena Zannoni <ezannoni@redhat.com>
1166
1167 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
1168 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
1169 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
1170
11ed25ac
KB
11712002-04-29 Kevin Buettner <kevinb@redhat.com>
1172
1173 From Louis Hamilton <hamilton@redhat.com>:
1174 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
1175 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
1176 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
1177 not bfd-private xcoff data, to determine wordsize.
1178 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
1179
ae232405
AC
11802002-04-29 Andrew Cagney <ac131313@redhat.com>
1181
1182 GDB 5.2 released from 5.2 branch.
1183
91fd20f7
ML
11842002-04-29 Michal Ludvig <mludvig@suse.cz>
1185
1186 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
1187 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
1188 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 1189
2dc5091b
EZ
11902002-04-29 Elena Zannoni <ezannoni@redhat.com>
1191
1192 * rs6000-tdep.c (rs6000_extract_return_value,
1193 rs6000_store_return_value): Handle returning vectors.
1194 (rs6000_gdbarch_init): Use
1195 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
1196 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1197 New function.
1198 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
1199 vectors.
1200 (ppc_sysv_abi_push_arguments): Handle vector parameters.
1201 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 1202
2b9848d8
PM
12032002-04-24 Pierre Muller <ics.u-strasbg.fr>
1204
1205 * hpread.c (hpread_psymtab_to_symtab_1,
1206 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
1207 with fprintf_unfiltered (gdb_stderr,...).
1208
f8d17dc5
PM
12092002-04-24 Pierre Muller <ics.u-strasbg.fr>
1210
1211 * remote-array.c (printf_monitor, write_monitor,
361d1df0 1212 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
1213 Replace fprintf (stderr,...
1214 with fprintf_unfiltered (gdb_stderr,....
1215 * remote-es.c: Likewise.
1216 * remote-os9k.c: Likewise.
1217 * remote-st.c: Likewise.
1218
2f2f1ad1
AS
12192002-04-28 Andreas Schwab <schwab@suse.de>
1220
1221 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
1222 linux-proc.o and gcore.o.
1223
b6779aa2
AC
12242002-04-26 Michal Ludvig <mludvig@suse.cz>
1225
1226 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
1227 code without frame pointers.
1228
7e57f5f4
AC
12292002-04-26 Andrew Cagney <ac131313@redhat.com>
1230
1231 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
1232 ON_STACK is needed.
1233
2ceb85d0
BE
12342002-04-26 Ben Elliston <bje@redhat.com>
1235
1236 * target.c (do_xfer_memory): Correct reference to the new option
1237 "trust-readonly-sections".
1238
f5f8a009
EZ
12392002-04-26 Elena Zannoni <ezannoni@redhat.com>
1240
1241 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
1242 * gdbtypes.c (recursive_dump_type): Output the vector flag.
1243 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
1244 vectors.
1245 (read_array_type): Record the fact that this array type is really a
1246 vector (i.e. are passed in by value).
1247
5868c862
JT
12482002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
1249
1250 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
1251 * alpha-tdep.c (alpha_sigcontext_addr): New function.
1252 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
1253 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
1254 * alpha-linux-tdep.c: Include frame.h.
1255 (alpha_linux_sigcontext_addr): New function.
1256 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
1257 alpha_linux_sigcontext_addr.
1258 * alpha-osf1-tdep.c: Include gdbcore.h.
1259 (alpha_osf1_sigcontext_addr): New function.
1260 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
1261 alpha_osf1_sigcontext_addr.
1262 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
1263 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
1264
bfb01f37
AC
12652002-04-26 Andrew Cagney <ac131313@redhat.com>
1266
361d1df0 1267 * stack.c (selected_frame_level):
bfb01f37
AC
1268 (select_frame): Do not set selected_frame_level.
1269 * frame.h (selected_frame_level): Delete declaration.
1270
15813d3f
AC
12712002-04-26 Andrew Cagney <ac131313@redhat.com>
1272
1273 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
1274 convert_from_func_ptr-addr when AIX / PowerOpen.
1275
6096c27a
AC
12762002-04-25 Andrew Cagney <ac131313@redhat.com>
1277
1278 * valops.c (hand_function_call): Call
1279 generic_save_call_dummy_addr.
1280 * frame.h (generic_save_call_dummy_addr): Declare.
1281 * blockframe.c (struct dummy_frame): Add fields call_lo and
1282 call_hi.
1283 (generic_find_dummy_frame): Check for PC in range call_lo to
1284 call_hi instead of entry_point_address.
1285 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
1286 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
1287 (generic_save_call_dummy_addr): New function.
1288
f510d44e
DM
12892002-04-24 David S. Miller <davem@redhat.com>
1290
1291 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
1292 sparc_skip_prologue.
1293 (sparc_skip_prologue): Kill frameless_p arg, and use line number
1294 information to find prologue when possible.
1295 (sparc_prologue_frameless_p): Call examine_prologue directly.
1296 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
1297 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
1298 second argument.
1299 (SKIP_PROLOGUE): Likewise.
1300
15d72a92
JT
13012002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
1302
1303 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
1304 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
1305 indicate that the condition it was testing is always true.
1306 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
1307 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
1308 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
1309
accc6d1f
JT
13102002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
1311
1312 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
1313 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
1314 tdep->jb_pc and tdep->jb_elt_size.
1315 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
1316 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
1317 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
1318 * alpha-nat.c (get_longjmp_target): Remove.
1319 (JB_ELEMENT_SIZE): Ditto.
1320 (JB_PC): Ditto.
1321 * alpha-tdep.c (alpha_get_longjmp_target): New function.
1322 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
1323 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
1324 to alpha_get_longjmp_target.
1325 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
1326 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
1327 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
1328
1bfdc549
AC
13292002-04-25 Andrew Cagney <ac131313@redhat.com>
1330
1331 * README: Update to GDB 5.2.
1332
1bd316f0
AC
13332002-04-25 Andrew Cagney <ac131313@redhat.com>
1334
1335 * gdbarch.sh (LC_ALL): Set to `c'.
1336
2e5ff58c
TR
13372002-04-25 Theodore A. Roth <troth@verinet.com>
1338
1339 * avr-tdep.c: Ran through gdb_indent.sh.
1340
e33ce519
TR
13412002-04-25 Theodore A. Roth <troth@verinet.com>
1342
1343 * MAINTAINERS: Add myself as AVR maintainer.
1344 * NEWS: Note new target avr.
1345
8818c391
TR
13462002-04-25 Theodore A. Roth <troth@verinet.com>
1347
1348 * Makefile.in: Add support for AVR target.
1349 * configure.tgt: Add support for AVR target.
1350 * avr-tdep.c: New file
1351 * config/avr/avr.mt: New file.
1352
79509c2d
TR
13532002-04-25 Theodore A. Roth <troth@verinet.com>
1354
1355 * MAINTAINERS: Add myself to write-after-approval.
1356
dac8068e
PM
13572002-04-24 Pierre Muller <ics.u-strasbg.fr>
1358
1359 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
1360 with fprintf_unfiltered (gdb_stderr,....
1361
25bf3106
PM
13622002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
1363
1364 Fix PR gdb/508.
1365 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
1366
24467a86
PM
13672002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
1368
1369 * p-exp.y: Also use new prev_lexptr variable
1370 to improve error reporting. Based on Michael Snyder
1371 2002-04-24 dated patch to c-exp.y.
1372
95b80706
JT
13732002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
1374
1375 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
1376 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
1377 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
1378 to 0.
1379 * config/alpha/tm-alpha.h: Remove forward decls of struct type
1380 and struct value.
1381 (FUNCTION_START_OFFSET): Remove.
1382 (BREAKPOINT): Ditto.
1383
e90cc612
JT
13842002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
1385
1386 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
1387 * NEWS: Ditto.
1388
6c72f9f9
JT
13892002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1390
1391 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
1392 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
1393 alpha_linux_pc_in_sigtramp.
1394 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
1395 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
1396 alpha_osf1_pc_in_sigtramp.
1397 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
1398 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
1399 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1400 alphafbsd_pc_in_sigtramp.
1401 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
1402 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1403 alphanbsd_pc_in_sigtramp.
1404 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
1405 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
1406
5e4f3379
JT
14072002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1408
1409 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
1410
da8ca43d
JT
14112002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1412
1413 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
1414 alphanbsd-tdep.c.
1415 (alphanbsd-nat.o): New dependency list.
1416 (alphanbsd-tdep.o): Ditto.
1417 * NEWS: Note new native NetBSD/alpha configuration.
1418 * alphanbsd-nat.c: New file.
1419 * alphanbsd-tdep.c: Ditto.
1420 * configure.host (alpha*-*-netbsd*): New host.
1421 * configure.tgt (alpha*-*-netbsd*): New target.
1422 * config/alpha/nbsd.mh: New file.
1423 * config/alpha/nbsd.mt: Ditto.
1424 * config/alpha/nm-nbsd.h: Ditto.
1425 * config/alpha/tm-nbsd.h: Ditto.
1426
36a6271d
JT
14272002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1428
1429 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
1430 (alpha-osf1-tdep.o): New dependency list.
1431 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
1432 and skip_sigtramp_frame members.
1433 * alpha-linux-tdep.c: Include gdbcore.h.
1434 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
1435 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
1436 * alpha-osf1-tdep.c: New file.
1437 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
1438 alpha-osf1-dep.c.
1439 (alpha_frame_past_sigtramp_frame): New function.
1440 (alpha_dynamic_sigtramp_offset): Ditto.
1441 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
1442 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
1443 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
1444 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
1445 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
1446 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
1447 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
1448 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
1449 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
1450 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
1451 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
1452 to find_solib_trampoline_target.
1453 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
1454 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
1455 (SKIP_TRAMPOLINE_CODE): Remove.
1456 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1457 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1458 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
1459 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
1460 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
1461 (PROC_SIGTRAMP_MAGIC): Ditto.
1462 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1463 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1464 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1465 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
1466 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
1467
2f4bc57b
JT
14682002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1469
1470 * NEWS: Note that Alpha targets are now multi-arch.
1471
665132f9
MS
14722002-04-24 Michael Snyder <msnyder@redhat.com>
1473
1474 * parser-defs.h (prev_lexptr): New external variable.
1475 * parse.c (parse_exp_1): Set prev_lexptr to null before
1476 calling the language-specific parser.
1477 * c-exp.y (yylex): Set prev_lexptr to start of current token.
1478 (yyerror): Use prev_lexptr in error reporting.
1479
32872fa7
DJ
14802002-04-24 Daniel Jacobowitz <drow@mvista.com>
1481
1482 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
1483 * gregset.h: If FILL_FPXREGSET is defined, provide
1484 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
1485 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
1486 is defined, call fill_fpxregset.
1487
57e76fac
MS
14882002-04-24 Roland McGrath <roland@frob.com>
1489
1490 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
1491 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
1492 (supply_gregset, supply_fpregset): New functions.
1493
1494 * gnu-nat.c (gnu_find_memory_regions): New function.
1495 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
1496 (gnu_xfer_memory): Add a cast.
1497
f43845b3
MS
14982002-04-24 Michael Snyder <msnyder@redhat.com>
1499
361d1df0 1500 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
1501 loop. Add handling for "str lr, [sp, #-4]!" and for saves
1502 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 1503 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
1504 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
1505 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
1506
a0abec03
AC
1507Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
1508
1509 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
1510 NUM_PSEUDO_REGS can be used.
1511
d7bd68ca
AC
15122002-04-24 Andrew Cagney <ac131313@redhat.com>
1513
1514 * arch-utils.h: Update copyright.
1515
1516 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
1517 * gdbarch.h, gdbarch.c: Re-generate.
1518
1519 * inferior.h (IN_SIGTRAMP): Delete definition.
1520 * arch-utils.c (legacy_pc_in_sigtramp): New function.
1521 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
1522
1523 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
1524 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
1525 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
1526 (find_proc_framesize): Ditto.
1527 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
1528 (alpha_init_extra_frame_info): Ditto.
1529 * infrun.c (handle_inferior_event): Ditto.
1530 (handle_inferior_event): Ditto.
1531 (check_sigtramp2): Ditto.
1532 * blockframe.c (create_new_frame): Ditto.
1533 (get_prev_frame): Ditto.
1534 * ppc-linux-tdep.c: Update comments.
1535 * i386-linux-tdep.c: Update comments.
1536 * breakpoint.c (bpstat_what): Update comment.
1537
d06f167a
ML
15382002-04-24 Michal Ludvig <mludvig@suse.cz>
1539
1540 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
361d1df0 1541 (regsets_store_inferior_registers): Removed cast to int from
d06f167a
ML
1542 ptrace() calls.
1543 * gdbserver/regcache.h: Added declaration of struct inferior_info.
1544
4867e41e
DM
15452002-04-24 David S. Miller <davem@redhat.com>
1546
21d83aa5
DM
1547 * i960-tdep.c (register_in_window_p): New function.
1548 (i960_find_saved_register): Use it instead of
1549 REGISTER_IN_WINDOW_P.
1550 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
1551
4867e41e
DM
1552 * symtab.h (find_stab_function_addr): Kill extern.
1553 * minsyms.c (find_stab_function_addr): Remove from here...
1554 * dbxread.c: ... to here, and mark it static.
1555
69cdf6a2
DM
15562002-04-20 David S. Miller <davem@redhat.com>
1557
1558 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
1559 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
1560
5a595886
DM
15612002-04-21 David S. Miller <davem@redhat.com>
1562
1563 * remote-vxsparc.c (vx_read_register): Fix typo, we want
1564 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
1565 (vx_write_register): Likewise.
1566
1da1a192
JB
15672002-04-23 J. Brobecker <brobecker@gnat.com>
1568
1569 * source.c (is_regular_file): New function.
1570 (openp): Check wether file to open is a regular file
1571 to avoid opening directories.
1572
baa6f10b
JT
15732002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1574
1575 * findvar.c (extract_signed_integer): Cast printf argument
1576 to suppress format warning.
1577 (extract_unsigned_integer): Likewise.
1578 * infcmd.c (registers_info): Likewise.
1579 * top.c (get_prompt_1): Likewise.
1580 * valops.c (value_assign): Likewise.
1581 * valprint.c (print_decimal): Likewise.
1582
b2c4da81
L
15832002-04-22 H.J. Lu (hjl@gnu.org)
1584
1585 * c-exp.y (typebase): Support
361d1df0 1586
b2c4da81
L
1587 [long|long long|short] [signed|unsigned] [int|]
1588
1589 and
1590
1591 signed [long|long long|short] int
1592
f267bd6a
JT
15932002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1594
1595 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
1596 and vax-tdep.h.
1597 * vax-tdep.h: New file.
1598 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
1599 Make several routines static.
1600 (vax_get_saved_register): New function.
1601 (vax_gdbarch_init): New function.
1602 (_initialize_vax_tdep): Register vax_gdbarch_init.
1603 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
1604 Remove macros now under the control of gdbarch.
1605
da3c6d4a
MS
16062002-04-22 Michael Snyder <msnyder@redhat.com>
1607
11d3b27d
MS
1608 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
1609 Some whitespace and coding standards tweaks.
da3c6d4a 1610
a33f7558
JT
16112002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1612
1613 * vax-tdep.c: Include regcache.h.
1614 (vax_call_dummy_words): New.
1615 (sizeof_vax_call_dummy_words): New.
1616 (vax_fix_call_dummy): New function.
1617 (vax_saved_pc_after_call): Ditto.
1618 * config/vax/tm-vax.h: Don't include regcache.h.
1619 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
1620 (CALL_DUMMY): Remove.
1621 (CALL_DUMMY_WORDS): Define.
1622 (SIZEOF_CALL_DUMMY_WORDS): Define.
1623 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
1624
47a73475
MS
16252002-04-18 Michael Snyder <msnyder@redhat.com>
1626
1627 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
1628
52efde73
JT
16292002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1630
1631 * vax-tdep.c (vax_frame_chain): New function.
1632 (vax_push_dummy_frame): Ditto.
1633 (vax_pop_frame): Ditto.
1634 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
1635 (FRAMELESS_FUNCTION_INVOCATION): Use
1636 generic_frameless_function_invocation_not.
1637 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
1638 (POP_FRAME): Use vax_pop_frame.
1639
ea74468c
JT
16402002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1641
1642 * vax-tdep.c (vax_store_struct_return): New function.
1643 (vax_extract_return_value): Ditto.
1644 (vax_store_return_value): Ditto.
1645 (vax_extract_struct_value_address): Ditto.
1646 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
1647 vax_store_struct_return.
1648 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
1649 (STORE_RETURN_VALUE): Use vax_store_return_value.
1650 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
1651
5516aa92
JT
16522002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1653
1654 * vax-tdep.c (vax_frame_saved_pc): New function.
1655 (vax_frame_args_address_correct): Ditto.
1656 (vax_frame_args_address): Ditto.
1657 (vax_frame_locals_address): Ditto.
1658 (vax_frame_num_args): Move code to be in proximity to
1659 other frame-related functions.
1660 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
1661 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
1662 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
1663 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
1664 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
1665
36af0b35
L
16662002-04-22 H.J. Lu (hjl@gnu.org)
1667
1668 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
1669 includedir.
1670
ab62c900
JT
16712002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1672
1673 * vax-tdep.c (vax_frame_init_saved_regs): New function.
1674 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
1675 (FRAME_INIT_SAVED_REGS): New macro.
1676
7232b100
JT
16772002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1678
1679 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
1680
b70d2aee
JT
16812002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1682
1683 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
1684 where needed.
1685 (fetch_osf_core_registers): Likewise.
1686 (supply_gregset): Likewise.
1687
a0e8a2d1 16882002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 1689
a0e8a2d1
JB
1690 * symfile.h (get_section_index): Define.
1691 * symfile.c (get_section_index): New function.
1692 * mdebugread.c (SC_IS_SBSS): New macro.
1693 (SC_IS_BSS): Return true for the scBss storage class only, as
1694 the scSBss storage class refers to the .sbss section.
1695 (parse_partial_symbols): Discard the symbols which associated
1696 section does not exist.
1697 Make sure to use the .sbss section index for symbols which
1698 storage class is scBss, rather than using the .bss section index.
1699
51eb8b08
JT
17002002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1701
1702 * vax-tdep.c: Update copyright years.
1703 (vax_register_name): New function.
1704 (vax_register_byte): Ditto.
1705 (vax_register_raw_size): Ditto.
1706 (vax_register_virtual_size): Ditto.
1707 (vax_register_virtual_type): Ditto.
1708 * config/vax/tm-vax.h: Update copyright years.
1709 (REGISTER_NAMES): Remove.
1710 (REGISTER_NAME): Define.
1711 (REGISTER_BYTE): Use vax_register_byte.
1712 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
1713 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
1714 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
1715
6cc1c0a8
AC
17162002-04-21 Andrew Cagney <ac131313@redhat.com>
1717
1718 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
1719 declaration
1720 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
1721
9319a2fe
DM
17222002-04-21 David S. Miller <davem@redhat.com>
1723
1724 * arch-utils.c (generic_prologue_frameless_p): Kill
1725 SKIP_PROLOGUE_FRAMELESS_P code.
1726 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
1727 references.
1728 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
1729 * arc-tdep.c (arc_prologue_frameless_p): Implement.
1730 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
1731 references.
1732 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
1733 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
1734 (sparc_gdbarch_init): Pass it to
1735 set_gdbarch_prologue_frameless_p.
a0e8a2d1 1736
e9ed6d01
JT
17372002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1738
1739 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
1740 (alphabsd-nat.o): New dependency list.
1741
36012033
JT
17422002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1743
1744 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
1745 alphafbsd-tdep.c.
1746 (alpha-linux-tdep.o): New dependency list.
1747 (alphafbsd-tdep.o): Likewise.
1748
3379287a
JT
17492002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1750
1751 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
1752 to here...
1753 * alpha-tdep.c: ...from here.
1754 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
1755
4bcbd6cb
JT
17562002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1757
1758 * config/alpha/tm-alpha.h: Move alpha_software_single_step
1759 prototype from here...
1760 * alpha-tdep.h: ...to here.
1761
b31da25e
AC
17622002-04-21 Andrew Cagney <ac131313@redhat.com>
1763
1764 * frame.h (selected_frame_level): Document as deprecated.
1765 (frame_relative_level): Declare.
1766 * stack.c (frame_relative_level): New function.
1767 (selected_frame_level): Document as deprecated.
1768 (select_frame): Do not set the selected_frame_level.
1769
1770 * stack.c (frame_info, record_selected_frame): Update.
1771 (frame_command, current_frame_command): Update.
1772 (up_silently_base, up_command, down_silently_base): Update.
1773 (down_command): Update.
1774 * inflow.c (kill_command): Update.
1775 * tracepoint.c (finish_tfind_command): Update.
1776 * corelow.c (core_open): Update.
1777 * thread.c (info_threads_command): Update.
1778 (do_captured_thread_select): Update.
1779 * infcmd.c (finish_command): Update.
1780 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
1781
9c1d6fe5
JT
17822002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1783
1784 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
1785
ab89facf
AC
17862002-04-21 Andrew Cagney <ac131313@redhat.com>
1787
1788 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
1789 type const.
1790
82a4efa1
JT
17912002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1792
1793 * alphafbsd-tdep.c: Update copyright years. Include
1794 alpha-tdep.h.
1795 (alphafbsd_use_struct_convention): Make static.
1796 (alphafbsd_init_abi): New function.
1797 (_initialize_alphafbsd_tdep): New function.
1798 * config/alpha/tm-fbsd.h: Update copyright years.
1799 (USE_STRUCT_CONVENTION): Remove.
1800
44dffaac
JT
18012002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1802
1803 * alpha-tdep.c (alpha_abi_handler): New structure to describe
1804 an Alpha ABI variant.
1805 (alpha_abi_handler_list): Declare.
1806 (alpha_gdbarch_register_os_abi): New function.
1807 (alpha_gdbarch_init): Give registered ABI variant handlers a
1808 chance to tweak the gdbarch once we have set up defaults.
1809 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
1810
65585be4
JT
18112002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1812
1813 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
1814 to standard_coerce_float_to_double.
1815 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
1816
d9b023cc
JT
18172002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1818
1819 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
1820 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
1821 from gdbarch_tdep rather than a constant.
1822 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
1823 the default text address for all Alpha Unix ABIs.
1824 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
1825 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
1826
dc129d82
JT
18272002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1828
1829 * alpha-tdep.h: New file. Includes several Alpha target constants
1830 taken from...
1831 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
1832 let gdbarch deal with.
1833 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
1834 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
1835 to dependency list.
1836 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
1837 Alpha target register names.
1838 * alphabsd-nat.c: Likewise.
1839 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
1840 Alpha target register names. Make serveral routines static.
1841 (alpha_get_saved_register): New function.
1842 (alpha_abi_names): New.
1843 (process_note_abi_tag_sections): New function.
1844 (get_elfosabi): New function.
1845 (alpha_gdbarch_init): New function.
1846 (alpha_dump_tdep): New function.
1847 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
1848
d49d1e0a
AC
18492002-04-21 Andrew Cagney <ac131313@redhat.com>
1850
1851 * frame.c (find_saved_register): Delete #ifdef
1852 HAVE_REGISTER_WINDOWS code.
1853 * config/sparc/tm-sparc.h: Update comments.
1854 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
1855
92e8c9ed
AC
18562002-04-21 Andrew Cagney <ac131313@redhat.com>
1857
1858 * i960-tdep.c (i960_find_saved_register): New function.
1859 (i960_get_saved_register): New function.
1860 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
1861 (i960_get_saved_register): Declare.
1862 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
1863
e1925118
DM
18642002-04-20 David S. Miller <davem@redhat.com>
1865
1866 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
1867
29673b29
AC
18682002-04-20 Andrew Cagney <ac131313@redhat.com>
1869
1870 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
1871 instead of NUM_PSEUDO_REGS.
1872
6c86dcd5
DM
18732002-04-20 David S. Miller <davem@redhat.com>
1874
1875 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
1876 GDB_MULTI_ARCH_PARTIAL
1877 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
1878 define, let tm-sp64.h do it.
1879
aa40ec90
JT
18802002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
1881
1882 * frame.c (find_saved_register): Avoid a NULL pointer
1883 dereference and actually walk the frame list.
1884
0f79675b
AC
18852002-04-20 Andrew Cagney <ac131313@redhat.com>
1886
1887 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
1888 sorted in most most-recent-used order. Document.
1889 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 1890
c04a1aa8
DJ
18912002-04-20 Daniel Jacobowitz <drow@mvista.com>
1892
1893 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
1894 (add_inferior): Call create_register_cache.
1895 (clear_inferiors): Call free_register_cache.
1896 (inferior_regcache_data, set_inferior_regcache_data): New functions.
1897 * gdbserver/regcache.c (struct inferior_regcache_data): New.
1898 (registers): Remove.
1899 (get_regcache): New function.
1900 (create_register_cache, free_register_cache): New functions.
1901 (set_register_cache): Don't initialize the register cache here.
1902 (registers_to_string, registers_from_string, register_data): Call
1903 get_regcache.
1904 * gdbserver/regcache.h: Add prototypes.
1905 * gdbserver/server.h: Likewise.
1906
611cb4a5
DJ
19072002-04-20 Daniel Jacobowitz <drow@mvista.com>
1908
1909 * gdbserver/mem-break.c: New file.
1910 * gdbserver/mem-break.h: New file.
1911 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
1912 dependencies.
1913 * gdbserver/inferiors.c (struct inferior_info): Add target_data
1914 member.
1915 (clear_inferiors): Free target_data member if set.
1916 (inferior_target_data, set_inferior_target_data): New functions.
1917 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
1918 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
1919 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
1920 (struct inferior_linux_data): New.
1921 (linux_create_inferior): Use set_inferior_target_data.
1922 (linux_attach): Likewise. Call add_inferior.
1923 (linux_wait_for_one_inferior): New function.
1924 (linux_wait): Call it.
1925 (linux_write_memory): Add const.
1926 (initialize_low): Call set_breakpoint_data.
1927 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
1928 handling members.
1929 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
1930 call.
1931 * gdbserver/server.h: Include mem-break.h. Update inferior.c
1932 prototypes.
1933 * gdbserver/target.c (read_inferior_memory)
1934 (write_inferior_memory): New functions.
1935 * gdbserver/target.h (read_inferior_memory)
1936 (write_inferior_memory): Change macros to prototypes.
1937 (struct target_ops): Update comments. Add const to write_memory
1938 definition.
1939
f91305dd 19402002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
1941
1942 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
1943 instead of ->prev.
1944 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
1945 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
1946 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
1947 instead of ->prev.
1948
73d322b1
EZ
19492002-04-19 Elena Zannoni <ezannoni@redhat.com>
1950
1951 Fix PR gdb/471.
1952 * gdbtypes.c (init_simd_type): Rewrite using new functions.
1953 (build_builtin_type_vec128): Ditto.
1954 (append_composite_type_field): Fix calculation of type length in
1955 union case.
1956
ccd9a834
EZ
19572002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
1958
1959 * config/djgpp/README: Update.
1960
1961 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
1962 compiler warnings.
1963
a57f9e49
JT
19642002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
1965
1966 * alpha-tdep.c (setup_arbitrary_frame): Rename...
1967 (alpha_setup_arbitrary_frame): ...to this.
1968 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
1969 for alpha_setup_arbitrary_frame.
1970
f4f9705a
AC
19712002-04-18 Andrew Cagney <cagney@redhat.com>
1972
1973 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
1974 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 1975
f4f9705a
AC
1976 * defs.h (breakpoint_from_pc_fn): Delete type definition.
1977 * target.h (memory_breakpoint_from_pc): Update declaration.
1978 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
1979
1980 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
1981 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
1982 * mem-break.c (memory_breakpoint_from_pc): Ditto.
1983 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
1984 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
1985 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
1986 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
1987 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
1988 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
1989 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
1990 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
1991 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
1992
1993 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
1994 const pointer.
1995 * monitor.c (monitor_insert_breakpoint): Ditto.
1996 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
1997
1998 * config/mcore/tm-mcore.h: Update copyright.
1999 * mem-break.c: Ditto.
2000 * xstormy16-tdep.c: Ditto.
2001
29f319b8
PM
20022002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
2003
2004 * p-exp.y: Add precedence rule for '^' token.
2005 This removes the shift/reduce conflicts.
2006 Remove the comment concerning these shift/reduce conflicts.
2007
ebeac11a
EZ
20082002-04-18 Elena Zannoni <ezannoni@redhat.com>
2009
2010 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
2011 (registers_powerpc_nofp): New register set for processors
2012 without floating point unit.
2013
27c31547
DM
20142002-04-18 David S. Miller <davem@redhat.com>
2015
2016 * MAINTAINERS: Add myself to write-after-approval.
2017
47a73475
MS
20182002-04-17 Michael Snyder <msnyder@redhat.com>
2019
2020 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
2021
953836b2
AC
20222002-04-17 Andrew Cagney <ac131313@redhat.com>
2023
2024 * rs6000-tdep.c (frame_initial_stack_address): Use
2025 frame_register_read to read the alloca_reg.
2026
8b0d4340
AC
20272002-04-17 Andrew Cagney <ac131313@redhat.com>
2028
2029 * frame.c (find_saved_register): Find saved registers in the next
2030 not prev frame.
2031 Fix PR gdb/365.
2032
d8864532
AC
20332002-04-17 Andrew Cagney <ac131313@redhat.com>
2034
2035 * gdbarch.sh (LANG): Set to ``c''.
2036
36cc83a3 20372002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 2038
36cc83a3 2039 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 2040
2f4150cc 20412002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
2042
2043 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
2044 Update copyright.
2045
628703c6 2046 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 2047 Also fix PR gdb/391.
361d1df0 2048
56157b4a
AC
20492002-04-14 Andrew Cagney <ac131313@redhat.com>
2050
2051 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
2052 * aclocal.m4, configure: Re-generate.
2053 Fix PR gdb/391.
361d1df0 2054
6d1e3329
EZ
20552002-04-14 Elena Zannoni <ezannoni@redhat.com>
2056
2057 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
2058 instead of tm_print_insn.
2059
cb06fa07
EZ
20602002-04-14 Elena Zannoni <ezannoni@redhat.com>
2061
2062 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
2063
f208ba17
AC
20642002-04-14 Andrew Cagney <ac131313@redhat.com>
2065
2066 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
2067 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
2068 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
2069
20f01a46
DH
20702002-04-12 Don Howard <dhoward@redhat.com>
2071
2072 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
2073 max_user_call_depth.
2074 (init_cmd_lists): Initialize the new value;
2075 * cli/cli-script.c (execute_user_command): Limit the call depth of
2076 user defined commands. This avoids a core-dump when user commands
2077 are infinitly recursive.
2078
a88376a3
KB
20792002-04-12 Kevin Buettner <kevinb@redhat.com>
2080
2081 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
2082 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
2083 from tdep struct instead of DEFAULT_LR_SAVE.
2084 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
2085 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
2086 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
2087
f2172603
MS
20882002-04-12 Michael Snyder <msnyder@redhat.com>
2089
694f61fb 2090 * Remote.c: Spelling fix.
20fe79c8
MS
2091 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
2092 If no symbol found for "sbrk", try "_sbrk".
2093 (make_output_phdrs): Use bfd_section_name.
2094 (gcore_copy_callback): Use bfd_section_name.
62995fc4 2095 * eval.c: Indentation fix-ups.
169a7369
MS
2096 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
2097 in case it gets applied to an address that is already
2098 in the instruction space.
de74f71f
MS
2099 * cli/cli-decode.c (help_list): Allow long lines to wrap.
2100 * symfile.c: Fix indentation, long lines.
f2172603
MS
2101 * source.c: White space fix-up.
2102
cda5a58a
AC
21032002-04-12 Andrew Cagney <cagney@redhat.com>
2104
2105 * defs.h (read_relative_register_raw_bytes): Delete declaration.
2106 * frame.c (frame_register_read): New function. Return non-zero on
2107 success.
2108 (read_relative_register_raw_bytes_for_frame): Delete.
2109 (read_relative_register_raw_bytes): Delete.
2110 * frame.h (frame_register_read): Declare.
2111 * d30v-tdep.c: Update Copyright. Use frame_register_read.
2112 * sh-tdep.c: Ditto.
2113 * infcmd.c (do_registers_info): Ditto.
2114 * hppa-tdep.c: Ditto.
2115 * rs6000-tdep.c: Ditto.
2116 * h8500-tdep.c: Ditto.
2117 * mips-tdep.c: Ditto.
2118 * h8300-tdep.c: Ditto.
2119 * z8k-tdep.c: Ditto.
2120
2ea5f656
KB
21212002-04-12 Kevin Buettner <kevinb@redhat.com>
2122
2123 From Jimi X <jimix@watson.ibm.com>:
2124 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
2125 64-bit SysV ABI.
2126
27b15785
KB
21272002-04-12 Kevin Buettner <kevinb@redhat.com>
2128
2129 From Jimi X <jimix@watson.ibm.com>:
2130 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
2131 bfd info.
2132
5d57ee30
KB
21332002-04-12 Kevin Buettner <kevinb@redhat.com>
2134
2135 From Jimi X <jimix@watson.ibm.com>:
2136 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
2137 register sets for these processor variants.
2138
bc1e36ca
DJ
21392002-04-11 Daniel Jacobowitz <drow@mvista.com>
2140
2141 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
2142 registers which are allowed to fail to store.
2143 * gdbserver/linux-low.h (linux_target_ops): Likewise.
2144 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
2145 (ppc_cannot_store_register): FPSCR may not be storable.
2146 * regformats/reg-ppc.dat: Support FPSCR.
2147
e3f36dbd
KB
21482002-04-11 Kevin Buettner <kevinb@redhat.com>
2149
2150 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
2151 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
2152 Add fpscr as an invalid/unfetchable register.
2153 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
2154 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
2155 (fill_fpregset): Add support for register fpscr.
2156 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
2157 (fill_gregset): Account for the fact that register ``mq'' might
2158 not exist.
2159 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
2160 (registers_power): Add fpscr to register set at slot 71.
2161 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
2162 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
2163
943c9c25
MS
21642002-04-11 Michael Snyder <msnyder@redhat.com>
2165
2166 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
2167 * configure: Regenerate.
2168 * config.in: Regenerate.
2169 * acconfig.h: Add define for _SYSCALL32.
2170 * core-sol2.c: Remove #define _SYSCALL32.
2171 * solib-legacy.c: Remove #define _SYSCALL32.
2172
d8c0a2e7
AC
21732002-04-10 Andrew Cagney <ac131313@redhat.com>
2174
2175 * stack.c (select_frame): Cleanup internal error message, do not
2176 use %p.
2177
7cc19214
AC
21782002-04-10 Andrew Cagney <ac131313@redhat.com>
2179
2180 * stack.c (select_frame): Check that selected_frame and the
2181 specified level are as expected.
2182 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
2183 Update copyright.
2184 * frame.h (struct frame_info): Add field `level'. Update
2185 copyright.
2186 Work-in-progress PR gdb/464.
2187
67a2b77e
AC
21882002-04-10 Andrew Cagney <ac131313@redhat.com>
2189
2190 * maint.c (maint_print_section_info): Rename print_section_info.
2191 (print_bfd_section_info, print_objfile_section_info): Update.
2192 * inferior.h (struct gdbarch): Add opaque declaration.
2193 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
2194 * gdbarch.h: Regenerate.
2195
8cfda98c
ML
21962002-04-10 Michal Ludvig <mludvig@suse.cz>
2197
2198 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
2199 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
2200 (kernel_u_size): Added.
2201 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
2202 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
2203
ca439ad2 22042002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 2205
ca439ad2
JI
2206 * valarith.c (find_size_for_pointer_math): New function, either returns
2207 the size for a pointer's target, returns 1 for void *, or errors for
2208 incomplete types.
2209 (value_add, value_sub): use find_size_for_pointer_math.
2210
2f2893d9
DJ
22112002-04-09 Daniel Jacobowitz <drow@mvista.com>
2212
2213 * linux-low.c (linux_look_up_symbols): New hook.
2214 (linux_target_ops): Add linux_look_up_symbols.
2215 * remote-utils.c (decode_address): New function.
2216 (look_up_one_symbol): New function.
2217 * server.c (handle_query): Call target look_up_symbols hook.
2218 * server.h (look_up_one_symbol): Add prototype.
2219 * target.h (struct target_ops): Add look_up_symbols hook.
2220
2ec06d2e
DJ
22212002-04-09 Daniel Jacobowitz <drow@mvista.com>
2222
d64b8841
DJ
2223 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
2224 * ChangeLog: Correct paths in last ChangeLog entry.
2225
22262002-04-09 Daniel Jacobowitz <drow@mvista.com>
2227
2228 * gdbserver/linux-low.h: Remove obsolete prototypes.
2ec06d2e
DJ
2229 (struct linux_target_ops): New.
2230 (extern the_low_target): New.
d64b8841 2231 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2ec06d2e
DJ
2232 (register_addr): Use the_low_target explicitly.
2233 (fetch_register): Likewise.
2234 (usr_fetch_inferior_registers): Likewise.
2235 (usr_store_inferior_registers): Likewise.
d64b8841 2236 * gdbserver/linux-arm-low.c (num_regs): Remove.
2ec06d2e
DJ
2237 (arm_num_regs): Define.
2238 (arm_regmap): Renamed from regmap, made static.
2239 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
2240 made static.
2241 (arm_cannot_store_register): Renamed from cannot_store_register,
2242 made static.
2243 (the_low_target): New.
d64b8841 2244 * gdbserver/linux-i386-low.c (num_regs): Remove.
2ec06d2e
DJ
2245 (i386_num_regs): Define.
2246 (i386_regmap): Renamed from regmap, made static.
2247 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
2248 made static.
2249 (i386_cannot_store_register): Renamed from cannot_store_register,
2250 made static.
2251 (the_low_target): New.
d64b8841 2252 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2ec06d2e
DJ
2253 (ia64_num_regs): Define.
2254 (ia64_regmap): Renamed from regmap, made static.
2255 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
2256 made static.
2257 (ia64_cannot_store_register): Renamed from cannot_store_register,
2258 made static.
2259 (the_low_target): New.
d64b8841 2260 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2ec06d2e
DJ
2261 (m68k_num_regs): Define.
2262 (m68k_regmap): Renamed from regmap, made static.
2263 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
2264 made static.
2265 (m68k_cannot_store_register): Renamed from cannot_store_register,
2266 made static.
2267 (the_low_target): New.
d64b8841 2268 * gdbserver/linux-mips-low.c (num_regs): Remove.
2ec06d2e
DJ
2269 (mips_num_regs): Define.
2270 (mips_regmap): Renamed from regmap, made static.
2271 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
2272 made static.
2273 (mips_cannot_store_register): Renamed from cannot_store_register,
2274 made static.
2275 (the_low_target): New.
d64b8841 2276 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2ec06d2e
DJ
2277 (ppc_num_regs): Define.
2278 (ppc_regmap): Renamed from regmap, made static.
2279 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
2280 made static.
2281 (ppc_cannot_store_register): Renamed from cannot_store_register,
2282 made static.
2283 (the_low_target): New.
d64b8841 2284 * gdbserver/linux-s390-low.c (num_regs): Remove.
2ec06d2e
DJ
2285 (s390_num_regs): Define.
2286 (s390_regmap): Renamed from regmap, made static.
2287 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
2288 made static.
2289 (s390_cannot_store_register): Renamed from cannot_store_register,
2290 made static.
2291 (the_low_target): New.
d64b8841 2292 * gdbserver/linux-sh-low.c (num_regs): Remove.
2ec06d2e
DJ
2293 (sh_num_regs): Define.
2294 (sh_regmap): Renamed from regmap, made static.
2295 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
2296 made static.
2297 (sh_cannot_store_register): Renamed from cannot_store_register,
2298 made static.
2299 (the_low_target): New.
d64b8841 2300 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2ec06d2e
DJ
2301 (the_low_target): New.
2302
96cb11df
AC
23032002-04-09 Andrew Cagney <ac131313@redhat.com>
2304
2305 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
2306 override FP_REGNUM with frame->fp. Update copyright.
2307 * parse.c (num_std_regs, std_regs): Delete.
2308 (target_map_name_to_register): Do not search std_regs. Update
2309 function description.
2310 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
2311 declarations. Update copyright.
2312 Fix PR gdb/251.
361d1df0 2313
c3a3ccc7
DJ
23142002-04-09 Daniel Jacobowitz <drow@mvista.com>
2315
2316 * gdbserver/Makefile.in: Add stamp-h target.
2317 * gdbserver/configure.in: Create stamp-h.
2318 * gdbserver/configure: Regenerated.
2319
ce3a066d
DJ
23202002-04-09 Daniel Jacobowitz <drow@mvista.com>
2321
2322 * gdbserver/inferiors.c: New file.
2323 * gdbserver/target.c: New file.
2324 * gdbserver/target.h: New file.
2325 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
2326 dependencies.
2327 * gdbserver/linux-low.c (inferior_pid): New static variable,
2328 moved from server.c.
2329 (linux_create_inferior): Renamed from create_inferior.
2330 Call add_inferior. Return 0 on success instead of a PID.
2331 (linux_attach): Renamed from myattach.
2332 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
2333 (linux_thread_alive): Renamed from mythread_alive.
2334 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
2335 child dies.
2336 (linux_resume): Renamed from myresume. Add missing ``return 0''.
2337 (regsets_store_inferior_registers): Correct error message.
2338 Add missing ``return 0''.
2339 (linux_fetch_registers): Renamed from fetch_inferior_registers.
2340 (linux_store_registers): Renamed from store_inferior_registers.
2341 (linux_read_memory): Renamed from read_inferior_memory.
2342 (linux_write_memory): Renamed from write_inferior_memory.
2343 (linux_target_ops): New structure.
2344 (initialize_low): Call set_target_ops ().
2345 * gdbserver/remote-utils.c (unhexify): New function.
2346 (hexify): New function.
2347 (input_interrupt): Send signals to ``signal_pid''.
2348 * gdbserver/server.c (inferior_pid): Remove.
2349 (start_inferior): Update create_inferior call.
2350 (attach_inferior): Call add_inferior.
2351 (handle_query): New function.
2352 (main): Call handle_query for `q' packets.
2353 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
2354 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
2355
0729219d
DJ
23562002-04-09 Daniel Jacobowitz <drow@mvista.com>
2357
2358 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
2359 dependencies.
2360 * gdbserver/configure.in: Check for <string.h>
2361 * gdbserver/configure: Regenerate.
2362 * gdbserver/config.in: Regenerate.
2363 * gdbserver/gdbreplay.c: Include needed system headers.
2364 (remote_open): Remove strchr prototype.
2365 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
2366 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
2367 (supply_register_by_name): Likewise.
2368 (collect_register): Change buf argument to void *.
2369 (collect_register_by_name): Likewise.
2370 * gdbserver/regcache.h: Add missing prototypes.
2371 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
2372 * gdbserver/server.c (handle_query): New function.
2373 (attached): New static variable, moved out of main.
2374 (main): Quiet longjmp clobber warnings.
2375 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
2376 * gdbserver/utils.c (error): Remove NORETURN.
2377 (fatal): Likewise.
2378
97658e92
DJ
23792002-04-09 Daniel Jacobowitz <drow@mvista.com>
2380
2381 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
2382 after the last symbol in a block.
2383
6044e3eb
PM
23842002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
2385
2386 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
2387 is non zero as a found symbol.
2388
0406ec40
AC
23892002-04-08 Andrew Cagney <ac131313@redhat.com>
2390
2391 * findvar.c: Include "builtin-regs.h".
2392 (value_of_register): Call value_of_builtin_reg when applicable.
2393 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
2394 (target_map_name_to_register): Call
2395 builtin_reg_map_name_to_regnum.
2396 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
2397 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
2398 (builtin_regs_h): Define.
2399 (builtin-regs.o): New target.
2400 (findvar.o): Add $(builtin_regs_h).
2401 * builtin-regs.c, builtin-regs.h: New files.
2402 * std-regs.c: New file.
2403 Partial fix for PR gdb/251.
2404
56a6dfb9
KB
24052002-04-08 Kevin Buettner <kevinb@redhat.com>
2406
2407 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
2408 it's no longer required.
2409
3a808432
AC
24102002-04-08 Andrew Cagney <ac131313@redhat.com>
2411
2412 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
2413
7c40d541
KB
24142002-04-08 Kevin Buettner <kevinb@redhat.com>
2415
2416 From Jimi X <jimix@watson.ibm.com>:
2417 * rs6000-tdep.c (rs6000_software_single_step): Use
2418 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
2419 and size. Use target_insert_breakpoint() and
2420 target_remove_breakpoint() to insert and remove breakpoints
2421 instead of explicit memory reads and writes.
2422
cc9836a8
KB
24232002-04-08 Kevin Buettner <kevinb@redhat.com>
2424
2425 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
2426 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
2427 ELF_OBJECT_FORMAT ifdef.
2428
7495d1dc
KB
24292002-04-08 Kevin Buettner <kevinb@redhat.com>
2430
2431 From Jimi X <jimix@watson.ibm.com>:
2432 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
2433
4288e836
KB
24342002-04-08 Kevin Buettner <kevinb@redhat.com>
2435
2436 From Jimi X <jimix@watson.ibm.com>:
2437 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
2438 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
2439
a4e4e501
MK
24402002-04-07 Mark Kettenis <kettenis@gnu.org>
2441
2442 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
2443 s/asprintf/xasprintf/.
2444 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
2445
006defba
AC
24462002-04-07 Andrew Cagney <ac131313@redhat.com>
2447
2448 I believe Jeff Law denies responsability for this one:
2449 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
2450 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
2451 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
2452 Work-around for PR gdb/366.
2453
7aa83cac
EZ
24542002-04-07 Elena Zannoni <ezannoni@redhat.com>
2455
2456 * remote-e7000.c (write_small, e7000_read_inferior_memory,
2457 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
2458 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
2459
cf1fcca1
EZ
24602002-04-07 Elena Zannoni <ezannoni@redhat.com>
2461
2462 * sh-tdep.c (sh_fp_frame_init_saved_regs,
2463 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
2464 information.
2465
3f289e6f
AC
24662002-04-07 Andrew Cagney <ac131313@redhat.com>
2467
2468 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
2469 maintainer.
2470
129188f6
AC
24712002-04-07 Andrew Cagney <ac131313@redhat.com>
2472
2473 * README (Reporting Bugs in GDB): Document the bug web page as the
2474 prefered way of submitting bugs.
2475 Fix PR gdb/402.
2476
1200cd6e
AC
24772002-04-06 Andrew Cagney <ac131313@redhat.com>
2478
2479 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
2480 -1. Update comment.
2481 * gdbarch.h, gdbarch.c: Re-generate.
2482
2853c33c
AS
24832002-04-07 Andreas Schwab <schwab@suse.de>
2484
2485 * m68klinux-nat.c (fill_fpregset): Properly pass address of
2486 buffer to regcache_collect.
2487
c2169756
AC
24882002-04-06 Andrew Cagney <ac131313@redhat.com>
2489
2490 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
2491 * gdbarch.c, gdbarch.h: Re-generate.
2492
25f1b008
AC
24932002-04-06 Andrew Cagney <ac131313@redhat.com>
2494
2495 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
2496 declaration. Fix -Werror.
2497
59263426
DJ
24982002-04-05 Daniel Jacobowitz <drow@mvista.com>
2499
2500 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
2501 * gdbarch.c: Regenerate.
2502
f5db4da3
MS
25032002-04-05 Michael Snyder <msnyder@redhat.com>
2504
80f8a6eb
MS
2505 * breakpoint.c (clear_command): Rewrite middle section to
2506 combine two loops with identical control conditions.
2507 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
2508 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
2509
ad3dcc5c
L
25102002-04-05 H.J. Lu (hjl@gnu.org)
2511
2512 * solib-svr4.c (bkpt_names): Add "__start".
2513
f32e7a74
AC
25142002-04-04 Andrew Cagney <ac131313@redhat.com>
2515
2516 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
2517 as test for 64 bit target.
2518
8227c0ff
AC
25192002-04-05 Andrew Cagney <ac131313@redhat.com>
2520
2521 * h8500-tdep.c (h8500_write_fp): Delete function.
2522 * dwarf2cfi.c (cfi_write_fp): Document as not used.
2523 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
2524 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
2525 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
2526 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
2527 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
2528 (s390_write_fp):
2529 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
2530 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
2531 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
2532 (d10v_write_fp): Delete function.
2533 * inferior.h (write_fp, generic_target_write_fp): Delete
2534 declarations.
2535 * regcache.c (generic_target_write_fp): Delete function.
2536 (write_fp): Delete function.
2537 * gdbarch.sh (TARGET_WRITE_FP): Delete.
2538 * gdbarch.h, gdbarch.c: Regenerate.
2539 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
2540 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
2541 (sparc64_write_fp): Delete declaration.
2542 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
2543 (h8500_write_fp): Delete declaration.
2544
2757dd86
AC
25452002-04-04 Andrew Cagney <ac131313@redhat.com>
2546
2547 * sparc-tdep.c (sparc64_write_fp): Delete.
2548 (sparc_push_dummy_frame): Replace write_fp call with code to store
2549 the FP directly.
2550 (sparc_gdbarch_init): Do not initialize write_fp.
2551
c69255e1
KB
25522002-04-05 Kevin Buettner <kevinb@redhat.com>
2553
2554 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
2555 clause.
2556
ae767bfb
JB
25572002-03-29 Jim Blandy <jimb@redhat.com>
2558
2559 * stack.c (get_selected_block): Add new argument `addr_in_block',
2560 used to return the exact code address we used to select the block,
2561 not just the block.
2562 * blockframe.c (get_frame_block, get_current_block): Same.
2563 * frame.h (get_frame_block, get_current_block,
2564 get_selected_block): Update declarations.
2565 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
2566 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
2567
84d2ac95
MS
25682002-04-05 Michael Snyder <msnyder@redhat.com>
2569
2570 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
2571 warning message.
2572
596aa3bf
JB
25732002-04-05 J. Brobecker <brobecker@gnat.com>
2574
2575 * utils.c (xfullpath): New function.
2576 * defs.h (xfullpath): Add declaration.
2577 * source.c (openp): Use xfullpath in place of gdb_realpath to
2578 avoid resolving the basename part of filenames when the
2579 associated file is a symbolic link. This fixes a potential
2580 inconsistency between the filenames known to GDB and the
2581 filenames it prints in the annotations.
2582 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
2583 to be able to match a filename with either the real filename, or
2584 the name of any symbolic link to this file.
2585 (lookup_partial_symtab): Ditto.
2586
c02f5703
MS
25872002-04-04 Michael Snyder <msnyder@redhat.com>
2588
2589 * breakpoint.c: Add support for hardware breakpoints in overlays.
2590 (overlay_events_enabled): New state variable.
2591 (insert_breakpoints): Use overlay_events_enabled to decide
2592 whether to attempt to set a breakpoint at the overlay load addr.
2593 Handle bp_hardware_breakpoint as well as bp_breakpoint.
2594 (remove_breakpoint): Use overlay_events_enabled to decide
2595 whether breakpoints need to be removed from overlay load addr.
2596 Handle bp_hardware_breakpoint as well as bp_breakpoint.
2597 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 2598 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
2599 disable_overlay_breakpoints): Update overlay_events_enabled.
2600
5fb290d7
DJ
26012002-04-04 Daniel Jacobowitz <drow@mvista.com>
2602
2603 * dwarf2read.c (struct function_range): New.
2604 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
2605 (check_cu_functions): New.
2606 (read_file_scope): Initialize global function lists.
2607 Call dwarf_decode_line after processing children.
2608 (read_func_scope): Add to global function list.
2609 (dwarf_decode_lines): Call check_cu_functions everywhere
2610 record_line is called. Call record_line with a linenumber
2611 of 0 to mark sequence ends.
2612
7b3fabf0
ML
26132002-04-04 Michal Ludvig <mludvig@suse.cz>
2614
361d1df0 2615 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
2616 change sync with glibc.
2617
bce58c09
JB
26182002-04-03 Jim Blandy <jimb@redhat.com>
2619
2620 * configure.in: Call AC_C_INLINE.
2621 * configure: Regenerated.
361d1df0 2622
2fccf04a
DJ
26232002-04-01 Daniel Jacobowitz <drow@mvista.com>
2624
2625 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
2626 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
2627
2d1bfe2e
MK
26282002-03-31 Mark Kettenis <kettenis@gnu.org>
2629
a5941fbf
MK
2630 * NEWS: Mention gcore support on FreeBSD/i386.
2631
a90cd31d
MK
2632 * fbsd-proc.c: New file.
2633 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
2634 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
2635
2d1bfe2e
MK
2636 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
2637 while statement.
2638
9eb6e5a1
JB
26392002-03-29 Jim Blandy <jimb@redhat.com>
2640
2641 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
2642 unescaped newlines in string literals, but newer ones don't. So
2643 escape them.
2644
f02df580
MS
26452002-03-26 Michael Snyder <msnyder@redhat.com>
2646 Andrew Cagney <cagney@redhat.com>
2647
361d1df0 2648 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
2649 restore file to memory.
2650 * cli/cli-dump.h: New file.
2651 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 2652 * NEWS: Mention new commands.
f02df580 2653
109f874e
MS
26542002-03-28 Michael Snyder <msnyder@redhat.com>
2655
2656 * symfile.c (symbol_file_add): Move test for null symbols to later.
2657
520f6ade
AC
26582002-03-27 Andrew Cagney <ac131313@redhat.com>
2659
2660 From veksler at il.ibm.com:
2661 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
2662 the xstrduped original path.
2663 Fix PR gdb/417.
2664
d4654627
MS
26652002-03-27 Michael Snyder <msnyder@redhat.com>
2666
2667 * breakpoint.c (_initialize_breakpoint): Clean up help string.
2668 * infcmd.c (_initialize_infcmd): Ditto.
2669 * language.c (_initialize_language): Ditto.
2670 * symfile.c (_initialize_symfile): Ditto.
2671 * top.c (_init_main): Ditto.
2672 * cli/cli-cmds.c (init_cli_cmds): Ditto.
2673
6be8bc0c
EZ
26742002-03-27 Elena Zannoni <ezannoni@redhat.com>
2675
2676 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
2677 vector registers handling.
2678 (skip_prologue): Handle new AltiVec instructions. Fill in new
2679 fields of frame data.
2680 (frame_get_saved_regs): Fill in information for AltiVec registers.
2681
12af6855
JB
26822002-03-27 Jim Blandy <jimb@redhat.com>
2683
2684 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
2685 a function; leave this macro here to invoke that function.
2686 (symbol_init_mangled_name): Declaration for that function.
2687 * symtab.c (symbol_init_mangled_name): New function.
2688
dc672865
AC
26892002-03-27 Andrew Cagney <ac131313@redhat.com>
2690
2691 * valarith.c: Replace strerror with safe_strerror.
2692 * tracepoint.c: Ditto.
2693 * lin-lwp.c: Ditto.
2694 * go32-nat.c: Ditto.
2695 * inflow.c: Ditto.
2696 * gnu-nat.c: Ditto.
2697
d96429cd
AS
26982002-03-27 Andreas Schwab <schwab@suse.de>
2699
2700 * event-top.c (command_line_handler): Remove useless if.
2701
7e336ba1
AJ
27022002-03-27 Andreas Jaeger <aj@suse.de>
2703
2704 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
2705 comment.
2706
de220d0f
ML
27072002-03-27 Michal Ludvig <mludvig@suse.cz>
2708
2709 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
2710 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
2711 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
2712 (x86_64_linux_dr_get_status, supply_gregset),
2713 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
2714 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
2715 (x86_64_register_info_table): Add.
2716 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
2717 (x86_64_register_raw_size, x86_64_register_virtual_type),
2718 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
2719 general x86_64_register_info_table.
2720 (i386_gdbarch_init): gdbarch_register_bytes is now set
2721 dynamicaly during initialization.
2722 * regformats/reg-x86-64.dat: Synced with changes to registers above.
2723 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 2724
0e98d0a7
DJ
27252002-03-27 Daniel Jacobowitz <drow@mvista.com>
2726
2727 * gdbserver/server.c (main): Call target_signal_to_host_p
2728 and target_signal_to_host on signals received from the remote.
2729 * gdbserver/remote-utils.c (prepare_resume_reply): Call
2730 target_signal_from_host on signals sent to the remote.
2731 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
2732 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
2733
3130066b
DJ
27342002-03-27 Daniel Jacobowitz <drow@mvista.com>
2735
2736 * signals/signals.c: Include "server.h" in gdbserver build.
2737 (target_signal_from_name): Don't use STREQ.
2738 (_initialize_signals): Likewise. Don't include function in
2739 gdbserver build.
2740
9aedf4f4
DJ
27412002-03-27 Daniel Jacobowitz <drow@mvista.com>
2742
2743 * signals.c: Moved to...
2744 * signals/signals.c: Here.
7e336ba1 2745 * Makefile (signals.o): Update.
9aedf4f4 2746
3fa41cdb
JL
27472002-03-26 Jeff Law (law@redhat.com)
2748
2749 * somread.c (som_symtab_read): Remove some commented out code and
2750 updated related comments. Do not set the minimal symbol table to
2751 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
2752 in a dynamic executable.
2753 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
2754 where we are unable to find the minimal symbol for the given
2755 PC value.
2756
ee677e8d
MS
27572002-03-25 Jeff Law (law@redhat.com)
2758
2759 * linux-proc.c (read_mapping): Scan up to end of line for filename.
2760
e76e1718
ML
27612002-03-25 Michal Ludvig <mludvig@suse.cz>
2762
2763 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
2764
18a642a1
AC
27652002-03-23 Andrew Cagney <ac131313@redhat.com>
2766
2767 * command.h: Update copyright.
2768 (struct cmd_list_element): Replace definition with opaque
2769 declaration.
2770 (enum cmd_types): Document that it will eventually be moved to
2771 cli/cli-decode.h
2772 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
2773 (MALLOCED_REPLACEMENT): Delete macro.
2774 * Makefile.in (cli_decode_h): Add $(command_h).
2775 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 2776 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
2777 * completer.c: Include "cli/cli-decode.h".
2778 * maint.c: Include "cli/cli-decode.h".
2779 * cli/cli-decode.h: Include "command.h".
2780 (enum command_class): Delete.
2781 (enum cmd_types): Comment out.
2782 (enum cmd_auto_boolean): Delete.
2783 (enum var_types): Delete.
2784
b2875cc0
AC
27852002-03-23 Andrew Cagney <ac131313@redhat.com>
2786
2787 * cli/cli-decode.c: Include "gdb_assert.h".
2788 (add_set_or_show_cmd): New static function.
2789 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
2790 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
2791 all fields, such as func, from the set command.
2792
3b45974e
AC
27932002-03-23 Andrew Cagney <ac131313@redhat.com>
2794
2795 * MAINTAINERS (sh-elf): Change warning flag to -w.
2796
823ca731
AC
27972002-03-23 Andrew Cagney <cagney@redhat.com>
2798
2799 * defs.h (error): Add printf format attribute.
2800 * thread-db.c (thread_from_lwp): Fix error format string.
2801 * stack.c (parse_frame_specification): Ditto.
2802 * cli/cli-decode.c (undef_cmd_error): Ditto.
2803 * scm-lang.c (scm_lookup_name): Ditto.
2804 * tracepoint.c (trace_error): Ditto.
2805 * remote-utils.c (usage): Ditto.
2806 * remote.c (compare_sections_command): Ditto.
2807 Fix PR gdb/328.
2808
0e101458
AC
28092002-03-22 Andrew Cagney <ac131313@redhat.com>
2810
2811 * gdbtypes.c (append_composite_type_field): New function.
2812 (init_composite_type): New function.
2813 * gdbtypes.h (append_composite_type_field): Declare.
2814 (init_composite_type): Ditto.
2815
8e0662df
EZ
28162002-03-22 Elena Zannoni <ezannoni@redhat.com>
2817
2818 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 2819 function.
8e0662df
EZ
2820 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
2821 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
2822 structure returning convention for SYSV ABI case, but not
2823 for GNU/Linux, FreeBSD, or NetBSD.
2824
3121eff0
DJ
28252002-03-22 Daniel Jacobowitz <drow@mvista.com>
2826
2827 * symtab.h (lookup_block_symbol): Add mangled_name argument
2828 to prototype.
2829
2830 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
2831 with new mangled_name argument.
2832 * linespec.c (decode_line_1): Likewise.
2833 * valops (value_of_this): Likewise.
2834 * symtab.c (lookup_transparent_type): Likewise.
2835 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
2836 (lookup_symbol): If we are given a mangled name, pass it down
2837 to lookup_symbol_aux.
2838 (lookup_block_symbol): If we are given a mangled name to check
2839 against, only return symbols which match it.
2840
349b409f
CF
28412002-03-22 Christopher Faylor <cgf@redhat.com>
2842
2843 * win32-nat.c (child_create_inferior): Check for proper shell to use
2844 here, in case the user changes it on the fly.
2845 (_initialize_inftarg): Remove shell path considerations.
2846
2a873819
EZ
28472002-03-21 Elena Zannoni <ezannoni@redhat.com>
2848
2849 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
2850 for gdbarch_max_register_raw_size and max_register_virtual_size.
2851 Adjust copyright year.
2852
a1b9830c
DJ
28532002-03-21 Daniel Jacobowitz <drow@mvista.com>
2854
2855 * dbxread.c (process_one_symbol): Extend the first N_SLINE
2856 in a function to cover the entire beginning of the function
2857 as well if it does not already.
2858
8b5790f2
TR
28592002-03-21 Tom Rix <trix@redhat.com>
2860
2861 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
2862 (rs6000_ptrace64): Renamed from ptrace64.
2863
bdbe5747
MH
28642002-03-20 Martin M. Hunt <hunt@redhat.com>
2865
2866 * gdbserver/remote-utils.c (remote_open): Don't call
2867 getprotobyname, we're all using TCP here so just use
2868 IPPROTO_TCP.
7e336ba1 2869 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
2870
28712002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 2872
bdbe5747
MH
2873 * regcache.c (_initialize_regcache): No need to call
2874 build_regcache() at this time; it gets called whenever
2875 the gdbarch changes.
2876
7781cd62
DB
28772002-03-20 David O'Brien <obrien@FreeBSD.org>
2878
2879 * sparc-nat.c: Include sys/param.h where possible.
2880
f65ca430
DJ
28812002-03-20 Daniel Jacobowitz <drow@mvista.com>
2882
2883 Fix PR gdb/422.
2884 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
2885 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
2886 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
2887 complex types.
2888 * stabsread.c (rs6000_builtin_type): Likewise.
2889 (read_sun_floating_type): Likewise.
2890
0c867556
PS
28912002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2892
2893 * stabsread.c (read_member_functions): Remove skip code for duplicate
2894 constructor/destructor methods. Use standard parsing for these
2895 methods and just do not chain them to the list of methods after
2896 parsing.
2897
12b9c64f
AO
28982002-03-19 Alexandre Oliva <aoliva@redhat.com>
2899
2900 * coffread.c: Remove redundant static declarations. Replace
2901 occurrences of `PTR' with `void *'.
2902 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
2903 * top.h (quit_cover): Likewise.
2904 * defs.h (catch_errors): Likewise.
2905
349c5d5f
AC
29062002-03-18 Andrew Cagney <ac131313@redhat.com>
2907
2908 * defs.h (XMALLOC): Define.
2909 * gdb-events.sh (XMALLOC): Delete macro.
2910 * gdb-events.c, gdb-events.h: Regenerate.
2911 * gdbarch.sh (XMALLOC): Delete macro.
2912 * gdbarch.c: Regenerate.
2913 * serial.c (XMALLOC): Delete macro.
2914 * ui-file.c (XMALLOC): Ditto.
2915 * ser-unix.h (XMALLOC): Ditto.
2916 * sh-tdep.c (XMALLOC): Ditto.
2917 * ui-out.c (XMALLOC): Ditto.
2918 * utils.c (XMALLOC): Ditto.
2919 * i386-tdep.c (XMALLOC): Ditto.
2920 * gdb-events.c (XMALLOC): Ditto.
2921 * d10v-tdep.c (XMALLOC): Ditto.
2922 * cli-out.c (XMALLOC): Ditto.
2923
2924 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
2925 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
2926 * ui-file.c, ui-out.c: Ditto.
2927
7d0766f3
AC
29282002-03-18 Andrew Cagney <ac131313@redhat.com>
2929
2930 * command.h (struct cmd_list_element): Add field context.
2931 (set_cmd_context, get_cmd_context): Declare.
2932 * cli/cli-decode.h: Ditto.
2933 * cli/cli-decode.c (get_cmd_context): New function.
2934 (set_cmd_context): New function.
2935 (add_cmd): Initialize context.
2936 Part of fixing PR gdb/145 and PR gdb/146.
2937
5913bcb0
AC
29382002-03-17 Andrew Cagney <ac131313@redhat.com>
2939
1868c04e
AC
2940 * cli/cli-decode.c (cmd_type): New function.
2941 * command.h (cmd_type): Declare.
2942 * infrun.c (set_schedlock_func): Call function cmd_type.
2943 * kod.c (kod_set_os): Call cmd_type.
2944 * cris-tdep.c (cris_version_update): Use function cmd_type.
2945 (cris_mode_update, cris_abi_update): Ditto.
2946
5913bcb0
AC
2947 * command.h: (execute_cmd_post_hook): Declare.
2948 (execute_cmd_pre_hook): Declare.
2949 * cli/cli-script.c (clear_hook_in_cleanup): New function.
2950 (execute_cmd_post_hook, execute_cmd_pre_hook): New
2951 functions. Execute pre/post hook while ensuring that afterwords
2952 hook_in is cleared.
2953 * top.c (execute_command): Use execute_cmd_post_hook, and
2954 execute_cmd_pre_hook to execute pre/post commands.
2955 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
2956 hook_stop_stub.
2957 (hook_stop_stub): Call execute_cmd_pre_hook.
2958
b51450c9
AC
29592002-03-17 Andrew Cagney <ac131313@redhat.com>
2960
2961 * kod.c (kod_set_os): Revert previous change. Is called by ``info
2962 set'' and this leads to a core dump. Move xstrdup of
2963 operating_system to after check that it is not NULL.
2964
f66c9f11
AC
29652002-03-17 Andrew Cagney <ac131313@redhat.com>
2966
8e694ecf
AC
2967 * kod.c (kod_set_os): Remove unnecessary check that
2968 ``command->type'' is set_cmd.
2969
f66c9f11
AC
2970 * valprint.c (set_input_radix): Use input_radix.
2971 (set_output_radix): Use output_radix.
2972 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
2973 isn't reverted.
2974
9d01611c
AC
29752002-03-16 Andrew Cagney <ac131313@redhat.com>
2976
2977 * value.h (struct value): Delete field ``substring_addr''. Change
2978 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
2979 force_core_addr_align and force_pointer_aligh.
2980
2981 * value.h (struct value): Fix typo in above change.
9d01611c 2982
4156bb53
PS
29832002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2984
2985 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
2986 to fix internal_error from ``maintenance print architecture''.
2987
0e5e3ea6
PS
29882002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2989
2990 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
2991 for gcc versions after gcc-2.8.1.
2992
9b013045
PS
29932002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2994
2995 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
2996 for method resolution. Restore adjustment of ``this'' pointer after
2997 calling value_struct_elt, which was accidentally removed during the
2998 HP merge.
2999
376c9600
AC
30002002-03-15 Andrew Cagney <ac131313@redhat.com>
3001
3002 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
3003 value_of_register.
3004 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
3005 get_saved_register.
3006 * value.h (value_of_register): Update.
3007
a4db0f07
RH
30082002-03-14 Richard Henderson <rth@redhat.com>
3009
3010 * configure.in: Detect declaration for canonicalize_file_name.
3011 * utils.c (canonicalize_file_name): Declare, if needed.
3012 (gdb_realpath): Prefer realpath if available and usable.
3013 * config.in, configure: Rebuild.
3014
96383835
RH
30152002-03-14 Richard Henderson <rth@redhat.com>
3016
3017 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
3018 a constant array bound.
3019
3020 * MAINTAINERS: Add myself to write-after-approval.
3021
75245b24
MS
30222002-03-14 Michael Snyder <msnyder@redhat.com>
3023
3024 * symfile.c (syms_from_objfile): Return immediately if no syms.
3025 (symbol_file_add): Return immediately if no syms.
3026 (find_sym_fns): Return immediately if no syms.
3027
e641a1ca
ML
30282002-03-13 Michal Ludvig <mludvig@suse.cz>
3029
3030 * gdbserver/remote-util.c (remote_open): Print remote-side's
3031 IP address when remote debugging over the network.
7e336ba1 3032
df08bfec
DB
30332002-03-12 David O'Brien <obrien@FreeBSD.org>
3034
3035 * config/sparc/fbsd.mh: Fix copyright.
3036 * config/sparc/fbsd.mt: Likewise.
3037
9a57864f
RE
30382002-03-11 Richard Earnshaw <rearnsha@arm.com>
3039
3040 * MAINTAINERS: Fix typo in name of gdb warnings option.
3041 (x86-64): Fix formating so that this can be parsed by awk.
3042
dd7bf85e
DJ
30432002-03-10 Daniel Jacobowitz <drow@mvista.com>
3044
3045 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
3046 * defs.h: Include "gdb/signals.h".
3047 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
3048
33a0a2ac
ML
30492002-03-10 Michal Ludvig <mludvig@suse.cz>
3050
3051 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 3052 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
3053 from x86-64-tdep.h
3054
dd824b04
DJ
30552002-03-10 Daniel Jacobowitz <drow@mvista.com>
3056 Don Howard <dhoward@redhat.com>
3057
3058 * mips-tdep.c (ST0_FR): Define.
3059 (mips2_fp_compat): New function, temporarily disabled.
3060 (mips_read_fp_register_single): New function.
3061 (mips_read_fp_register_double): New function.
3062 (mips_print_register): Use them.
3063 (do_fp_register_row): Likewise.
3064
6a41ff59
AC
30652002-03-09 Andrew Cagney <ac131313@redhat.com>
3066
3067 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
3068 approval''.
3069
4ea09c10
PS
30702002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3071
3072 * stabsread.c (read_member_functions): Fix is_stub test for
3073 static member functions, improve comment.
3074
6ccc741d
RE
30752002-03-07 Richard Earnshaw <rearnsha@arm.com>
3076
3077 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
3078 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
3079 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
3080 commands that set boolean values.
3081 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
3082 (arm_rdi_resume): Always initialize PC.
3083 (arm_rdi_open): Don't use rslt as a boolean.
3084 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
3085 (arm_rdi_fetch_registers, arm_rdi_store_registers)
3086 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
3087 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
3088
438013df
AO
30892002-03-06 Alexandre Oliva <aoliva@redhat.com>
3090
3091 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
3092 * configure: Rebuilt.
3093
70ed8774
SC
30942002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3095
3096 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
3097 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
3098
5ba2abeb
AC
30992002-03-06 Andrew Cagney <ac131313@redhat.com>
3100
3101 * cli/cli-decode.c (set_cmd_completer): New function.
3102 * command.h (set_cmd_completer): Declare.
3103 * cli/cli-decode.h (set_cmd_completer): Ditto.
3104
3105 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
3106 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3107 * win32-nat.c (_initialize_inftarg): Ditto.
3108 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3109 * proc-api.c (_initialize_proc_api): Ditto.
3110 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
3111 * source.c (_initialize_source): Ditto.
3112 * exec.c (_initialize_exec): Ditto.
3113 * solib.c (_initialize_solib): Ditto.
3114 * top.c (init_main): Ditto.
3115 * tracepoint.c (_initialize_tracepoint): Ditto.
3116 * symfile.c (_initialize_symfile): Ditto.
3117 * printcmd.c (_initialize_printcmd): Ditto.
3118 * infcmd.c (_initialize_infcmd): Ditto.
3119 * corefile.c (_initialize_core): Ditto.
3120
f779ca99
AC
31212002-03-05 Andrew Cagney <ac131313@redhat.com>
3122
3123 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
3124
01a3934b
AC
31252002-03-05 Andrew Cagney <ac131313@redhat.com>
3126
3127 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
3128
37057839
AC
31292002-03-05 Andrew Cagney <ac131313@redhat.com>
3130
3131 * NEWS: Update headings, 5.2 has branched.
3132
c6ecbae5
DJ
31332002-03-04 Daniel Jacobowitz <drow@mvista.com>
3134
3135 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
3136 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
3137 (register_addr, REGISTER_RAW_SIZE): Likewise.
3138 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
3139 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
3140
e9f30c21
ML
31412002-03-03 Michal Ludvig <mludvig@suse.cz>
3142
3143 * MAINTAINERS (x86-64): Add myself.
3144 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
3145 changed value_ptr -> struct value *
3146
54394ac3
DB
31472002-03-01 David O'Brien <obrien@FreeBSD.org>
3148
3149 * configure.host (sparc64-*-freebsd): Add.
3150 * configure.tgt: Likewise.
3151 * config/sparc/fbsd.mh: New file.
3152 * config/sparc/fbsd.mt: Likewise.
3153 * config/sparc/nm-fbsd.h: Likewise.
3154 * config/sparc/tm-fbsd.h: Likewise.
3155
bfe95955
DJ
31562002-03-01 Daniel Jacobowitz <drow@mvista.com>
3157
3158 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
3159 regformats/reg-s390x.dat.
3160
f33c6cbf
AC
31612002-03-01 Andrew Cagney <ac131313@redhat.com>
3162
3163 * utils.c: Add FIXME explaining true/false problem.
3164
5ecaa7dd
AC
31652002-02-28 Andrew Cagney <ac131313@redhat.com>
3166
3167 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
3168
2a251cc2
MC
31692002-02-28 Michael Chastain <mec@shout.net>
3170
3171 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
3172
6a8031a3 31732002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
3174
3175 * gdbserver/linux-s390-low.c: New file.
3176 * regformats/reg-s390.dat: New file.
3177 * regformats/reg-s390x.dat: New file.
3178 * gdbserver/configure.srv: Add S/390.
3179 * gdbserver/Makefile.in: Add S/390.
3180 * configure.tgt: Enable gdbserver for S/390.
3181
ac469903
EZ
31822002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
3183
3184 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
3185 first line of the doc string for "info dos", except at the end of
3186 the sentence, since the short help stops at the first period.
3187
985cb1a3
JM
31882002-02-28 Jason Merrill <jason@redhat.com>
3189
3190 * dwarf2read.c (dwarf_cfi_name): Add new codes.
3191
c570663e
FF
31922002-02-27 Fred Fish <fnf@redhat.com>
3193
3194 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
3195 comment (dumy -> dummy).
3196
43630227
PS
31972002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3198
3199 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
3200
b84911e8
RB
32012002-02-27 Rodney Brown <rbrown64@csc.com.au>
3202
3203 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
3204
58caa3dc
DJ
32052002-02-27 Daniel Jacobowitz <drow@mvista.com>
3206
3207 * gdbserver/acconfig.h: New file.
3208 * gdbserver/i387-fp.c: New file.
3209 * gdbserver/i387-fp.h: New file.
3210 * gdbserver/linux-x86-64.c: New file.
3211 * regformats/reg-x86-64.dat: New file.
3212 * configure.tgt: Add x86_64-*-linux* gdbserver support.
3213 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
3214 * gdbserver/configure.in: Add support for regsets.
3215 * gdbserver/config.in: Regenerate.
3216 * gdbserver/configure: Regenerate.
3217 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
3218 * gdbserver/linux-low.h: New file.
3219 * gdbserver/linux-low.c: Include "linux-low.h". Add support
3220 for regsets.
3221 * gdbserver/linux-arm-low.c: Include "linux-low.h".
3222 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
3223 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
3224 * gdbserver/linux-mips-low.c: Include "linux-low.h".
3225 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
3226 * gdbserver/linux-sh-low.c: Include "linux-low.h".
3227 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
3228 "i387-fp.h". Add PTRACE_GETREGS and friends.
3229 * gdbserver/regcache.c (supply_register): New function.
3230 (supply_register_by_name): New function.
3231 (collect_register): New function.
3232 (collect_register_by_name): New function.
3233
93652174
DJ
32342002-02-27 Daniel Jacobowitz <drow@mvista.com>
3235
3236 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
3237 (config.status): Add configure.srv dependency.
3238 (server_h): Add config.h dependency.
3239
a02e4a61
DJ
32402002-02-27 Daniel Jacobowitz <drow@mvista.com>
3241
3242 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
3243 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
3244 * gdbserver/configure.srv: Change i386-*-linux* to use
3245 reg-i386-linux.o.
3246
ce0eebec
AC
32472002-02-26 Andrew Cagney <ac131313@redhat.com>
3248
3249 * x86-64-tdep.c: Re-indent. Update copyright date.
3250
82dbc5f7
AC
32512002-02-26 Andrew Cagney <ac131313@redhat.com>
3252
3253 From Michal Ludvig <mludvig@suse.cz>:
3254 * x86-64-tdep.c (value.h): Delete.
3255 (gdb_assert.h): Include.
3256 (x86_64_register_convert_to_virtual,
3257 x86_64_register_convert_to_raw ): Add check which lets only
3258 floating-point values to be converted.
3259 (value_push): Delete.
3260 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
3261 (i386_gdbarch_init): Number of register_bytes fixed.
3262
e4621584
AC
32632002-02-26 Andrew Cagney <ac131313@redhat.com>
3264
3265 * MAINTAINERS: Add x86-64 target.
3266
81a9a963
AC
32672002-02-26 Andrew Cagney <ac131313@redhat.com>
3268
3269 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
3270 * osfsolib.c (solib_map_sections): Ditto.
3271 * irix5-nat.c (solib_map_sections): Ditto.
3272 * corelow.c (gdb_check_format): Ditto.
3273 * symfile.c (symfile_bfd_open): Ditto.
3274 * solib.c (solib_map_sections): Ditto.
3275 Fix PR gdb/354.
7e336ba1 3276
0f017ab9
AC
32772002-02-26 Andrew Cagney <ac131313@redhat.com>
3278
3279 * remote.c (_initialize_remote): By default, disable ``e'' and
3280 ``E'' step out-of-range packets.
3281
75738c29
AS
32822002-02-26 Andreas Schwab <schwab@suse.de>
3283
3284 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
3285 m68k_linux_frame_saved_pc.
3286 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
3287 in_sigtramp.
3288 (SIGCONTEXT_PC_OFFSET): Remove.
3289 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
3290 m68k_linux_sigtramp_saved_pc): New functions.
3291 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
3292 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
3293 (UCONTEXT_PC_OFFSET): Define.
3294 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
3295 non-RT and RT signal trampolines.
3296
7e8ed687
RE
32972002-02-26 Richard Earnshaw <rearnsha@arm.com>
3298
3299 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
3300 (TARGET_NBPG, STACK_END_ADDR): Delete
3301 (VARIABLES_INSIDE_BLOCK): Delete.
3302
6972bc8b
AC
33032002-02-25 Andrew Cagney <ac131313@redhat.com>
3304
3305 * utils.c (perror_with_name): Make string parameter constant.
3306 (print_sys_errmsg): Ditto.
3307 (query): Ditto.
3308 * defs.h (perror_with_name): Update.
3309 (print_sys_errmsg): Update.
3310 (query): Update.
3311
aa32f823
DJ
33122002-02-25 Daniel Jacobowitz <drow@mvista.com>
3313
3314 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
3315 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
3316
19caaa45
PS
33172002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3318
3319 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
3320 if it already matches the current architecture from the exec file.
3321 Include arch-utils.h for gdbarch_info_init prototype.
3322 * Makefile.in (rs6000-nat.o): Update dependencies.
3323
d951901f
EZ
33242002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
3325
3326 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
3327 list of exported variables.
3328
7ea81414
DJ
33292002-02-24 Daniel Jacobowitz <drow@mvista.com>
3330
3331 * gdbserver/configure.srv: New file.
3332 * gdbserver/configure.in: Use configure.srv instead
3333 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
3334 from it.
3335 * gdbserver/configure: Regenerated.
3336 * gdbserver/terminal.h: New file.
3337 * gdbserver/Makefile.in: Update for configure changes. Remove
3338 more unneeded include paths.
3339
080fe24b
AC
33402002-02-24 Andrew Cagney <ac131313@redhat.com>
3341
3342 From wiz at danbala:
3343 * config/sparc/tm-sp64.h: Fix grammar and typos.
3344 Fix PR gdb/287.
3345
8605d56e
AC
33462002-02-24 Andrew Cagney <ac131313@redhat.com>
3347
3348 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
3349 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
3350 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
3351 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
3352 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
3353 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
3354 * s390-tdep.c: Ditto.
92362027
AC
3355 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
3356 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
3357 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
3358 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
3359 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
3360 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
3361 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
3362 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
3363 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
3364 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 3365 Fix PR gdb/378.
7e336ba1 3366
8ed32cc0
AC
33672002-02-23 Andrew Cagney <ac131313@redhat.com>
3368
a3007b6f
AC
3369 * lin-thread.c: Delete file.
3370 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
3371 to gdb_proc_service.h.
3372 * configure: Re-generate.
3373
50a9e2f1
AC
3374 * ocd.c (ocd_open): Do not try to open the "ocd" device.
3375 * serial.c (serial_open): Delete check for "ocd".
3376 Fix PR gdb/349.
3377
8b6e7932
AC
3378 * Makefile.in (linux-thread.o): Delete target.
3379 * linux-thread.c: Delete file.
3380
d155c46b
AC
3381 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
3382 renamed SH files to be consistent.
3383
8ed32cc0
AC
3384 * symtab.c (sort_search_symbols): Use xfree.
3385
0e18d038
RE
33862002-02-23 Richard Earnshaw <rearnsha@arm.com>
3387
3388 * arm-linux-tdep.c (arm_linux_init_abi): Register
3389 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
3390 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
3391 definition with undef, since we don't want the sysvr4 definition.
3392 (SKIP_TRAMPOLINE_CODE): Likewise.
3393
27aac7ff
AC
33942002-02-23 Andrew Cagney <ac131313@redhat.com>
3395
3396 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
3397
3398 * configure.in: (AC_CHECK_FUNCS) Added test for
3399 canonicalize_file_name Regenerated.
3400 * config.in, configure: Regenerated.
3401 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
3402 defined use canonicalize_file_name.
7e336ba1 3403
65a6e0ee
MC
34042002-02-23 Michael Chastain <mec@shout.net>
3405
3406 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
3407
47b95330
AC
34082002-02-23 Andrew Cagney <ac131313@redhat.com>
3409
3410 * README: Remove references to cygnus.com.
3411 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
3412 dot com'' form. Remove references to cygnus.com and sourceware.
3413
696f451b
AC
34142002-02-23 Andrew Cagney <ac131313@redhat.com>
3415
3416 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
3417 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
3418 1003.1-2001 no longer allows "head -1".
3419 * gdb/Makefile.in (version.c): Likewise.
3420 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
3421 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
3422 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
3423
bbaca940
AC
34242002-02-23 Andrew Cagney <ac131313@redhat.com>
3425
3426 * cli/cli-decode.c (cmd_cfunc_eq): New function.
3427 * command.h (cmd_cfunc_eq): Declare.
3428 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
3429
3430 * cli/cli-cmds.h (is_complete_command): Change parameter to a
3431 ``struct cmd_list_element *''.
3432 * cli/cli-cmds.c (is_complete_command): Update. Use
3433 cmd_cfunc_eq.
3434 * top.c (execute_command): Pass the command to
3435 is_complete_command.
3436 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
3437
b8b8b047
AC
34382002-02-23 Andrew Cagney <ac131313@redhat.com>
3439
3440 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
3441 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
3442 architecture defines.
3443 * s390-tdep.c (s390_gdbarch_init): Likewise.
3444
19d3fc80
RE
34452002-02-23 Richard Earnshaw <rearnsha@arm.com>
3446
3447 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
3448 (arm_linux_push_arguments): Likewise.
3449 (arm_linux_init_abi): Register them. Also register linux-specific
3450 call_dummy_words.
3451 (find_minsym_and_objfile): Use strcmp, not STREQ.
3452 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
3453 (arm_linux_call_dummy_words): Delete declaration.
3454 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
3455 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
3456 declarations.
3457 (LOWEST_PC): Delete.
3458
3ab13650
PS
34592002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3460
3461 * maint.c (print_section_info): Do not prepend `0x' to filepos
3462 output, it will be handled by local_hex_string_custom.
3463
19d3fc80 34642002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
3465
3466 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
3467 (store_newfpe_double, store_newfpe_extended, store_fpregister)
3468 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
3469
d85a5daf
JB
34702002-02-22 Jim Blandy <jimb@redhat.com>
3471
3472 Indicate that the bcache functions don't change the strings
3473 they're passed.
3474 * bcache.h (bcache, hash): Add `const' keywords to declarations.
3475 * bcache.c (bcache, hash): Add `const' keywords to definitions.
3476
eeb25b8a
PM
34772002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
3478
3479 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
3480
6badb179
CF
34812002-02-21 Christopher Faylor <cgf@redhat.com>
3482
3483 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
3484 find the complete path to a loaded DLL.
3485
e8717518
FF
34862002-02-21 Fred Fish <fnf@redhat.com>
3487
3488 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
3489 that marks the end of the range of a function, enter a line number
3490 entry that has a line number of zero and a PC offset that matches
3491 the end of the function. This starts a range of PC's for which no
3492 line number information is known.
3493 * symtab.c (find_pc_sect_line): If our best fit is in a range of
3494 PC's for which no line number info is found (line number is zero)
3495 then we didn't find any valid line information.
3496 * symtab.h: Document use of zero line number entry.
3497
9abe5450
EZ
34982002-02-21 Elena Zannoni <ezannoni@redhat.com>
3499
3500 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
3501 (have_ptrace_getvrregs): Define for run time checks.
3502 (gdb_vrregset_t): New type for Altivec register handling.
3503 (fetch_register, store_register): Fetch/store altivec register
3504 when needed.
3505 (fetch_altivec_register, store_altivec_register): New functions.
3506 (supply_vrregset, fill_vrregset): New functions.
3507 (fetch_altivec_registers, store_altivec_registers): New functions.
3508 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
3509 registers as well.
3510
aaa38bb5
AJ
35112002-02-21 Jiri Smid <smid@suse.cz>
3512
3513 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
3514
b34db576
RE
35152002-02-21 Richard Earnshaw <rearnsha@arm.com>
3516
3517 * Makefile.in (armnbsd-nat.o): Update dependencies.
3518 * armnbsd-nat.c (supply_gregset): New function. Common code to
3519 supply the integer register set.
3520 (supply_fparegset): New function. Similar for FPA registers.
3521 (fetch_regs, fetch_fp_regs): Use them.
3522 (fetch_core_registers): Likewise.
3523 (fetch_elfcore_registers): New function.
3524 (arm_netbsd_elfcore_fns): New core-file type specification.
3525 (_initialize_arm_netbsd_nat): Register it.
3526
3e56fc4b
RE
35272002-02-21 Richard Earnshaw <rearnsha@arm.com>
3528
3529 * armnbsd-nat.c: Include gdbcore.h.
3530 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
3531 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
3532 'void' to declaration, to shut up ARI.
3533 (fetch_core_registers): Make static. Rewrite using supply_register.
3534 (arm_netbsd_core_fns): New core-file type specification.
3535 (_initialize_arm_netbsd_nat): New function.
3536
097f6b0b
CF
35372002-02-21 Christopher Faylor <cgf@redhat.com>
3538
3539 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
3540 value.
3541
c914e0cc
CF
35422002-02-20 Christopher Faylor <cgf@redhat.com>
3543
3544 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
3545 fails.
3546
385fa495
DJ
35472002-02-20 Daniel Jacobowitz <drow@mvista.com>
3548
3549 * jv-exp.y (parse_number): Change type of implicit longs
3550 to builtin_type_uint64.
3551
e5f1222d
DJ
35522002-02-20 Daniel Jacobowitz <drow@mvista.com>
3553
3554 * gdbserver/linux-low.c (mywait): Change argument to waitpid
3555 to be an integer instead of a `union wait'.
3556
75c9abc6
DJ
35572002-02-20 Daniel Jacobowitz <drow@mvista.com>
3558
3559 * mips-linux-nat.c: Call the operating system GNU/Linux.
3560 * mips-linux-tdep.c: Likewise.
3561 * mips-tdep.c: Likewise.
3562
551792a5
DJ
35632002-02-20 Daniel Jacobowitz <drow@mvista.com>
3564
3565 Fix PR gdb/265.
3566 * jv-exp.y (parse_number): Handle 64-bit integers.
3567
ee6e2b82
DJ
35682002-02-20 Daniel Jacobowitz <drow@mvista.com>
3569
3570 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
3571 AC_STDC_HEADERS to AC_HEADER_STDC.
3572 * gdbserver/configure: Regenerated.
3573
a48442a0
RE
35742002-02-20 Richard Earnshaw <rearnsha@arm.com>
3575
3576 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
3577 is defined.
3578 * sparc-tdep.c (get_longjmp_target): Likewise.
3579
fe419ffc
RE
35802002-02-20 Richard Earnshaw <rearnsha@arm.com>
3581
3582 * News: Add news about ARM and Multi-arch. Mention the new target
3583 arm*-*-netbsd*.
3584
5832ed7e
JB
35852002-02-19 Jim Blandy <jimb@redhat.com>
3586
3587 * stabsread.c (error_type_complaint): Improve error message.
3588
84563040
DJ
35892002-02-19 Daniel Jacobowitz <drow@mvista.com>
3590
3591 * gdbserver/README: Update documentation.
3592 * gdbserver/configure.in: Update configury to match documentation.
3593 * gdbserver/Makefile.in: Likewise.
3594 * gdbserver/configure: Regenerated.
3595 * gdbserver/aclocal.m4: New file, generated by aclocal.
3596 * gdbserver/config.in: New file, generated by autoheader.
3597
375fd65b
RE
35982002-02-19 Richard Earnshaw <rearnsha@arm.com>
3599
3600 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
3601 armnbsd-nat.c.
3602
08216dd7
RE
36032002-02-19 Richard Earnshaw <rearnsha@arm.com>
3604
3605 * arm-tdep.h (enum arm_float_model): New enum.
3606 (struct gdbarch_tdep): Add fp_model.
3607 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
3608 up floating-point conversions until we know the floating-point model
3609 in use by the inferior. Don't complain about being unable to
3610 determine the ABI of the inferior when we don't have one.
3611 (arm_extract_return_value): Support different floating-point models.
3612 (arm_store_return_value): Likewise.
aaa38bb5 3613 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
3614 ARM_FLOAT_SOFT.
3615 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
3616
65d6d66a
PS
36172002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3618
3619 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
3620 of ``current_gdbarch''.
3621
47221191
RE
36222002-02-19 Richard Earnshaw <rearnsha@arm.com>
3623
3624 * armnbsd-nat.c : ANSIfy all function declarations.
3625 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
3626 (fetch_inferior_registers): Re-implement in terms of above.
3627 (store_register, store_regs, store_fp_register, store_fp_regs): New.
3628 (store_inferior_registers): Re-implement in terms of above.
3629
fdf39c9a
RE
36302002-02-19 Richard Earnshaw <rearnsha@arm.com>
3631
aaa38bb5 3632 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
3633 kernel.
3634 * arm-linux-tdep.c: Likewise.
3635 * config/arm/tm-linux.h: Likewise.
3636
93247f88
RE
36372002-02-19 Richard Earnshaw <rearnsha@arm.com>
3638
3639 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
3640 * config/arm/nbsd.mt (TM_FILE): Delete.
3641 * config/arm/tm-nbsd.h: Delete.
3642
d7b486e7
RE
36432002-02-19 Richard Earnshaw <rearnsha@arm.com>
3644
3645 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
3646 Initialize CALL_DUMMY_LENGTH.
3647
41d39a95
RE
36482002-02-19 Richard Earnshaw <rearnsha@arm.com>
3649
3650 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
3651 function.
3652 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 3653 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
3654 defines one thing and that is incorrect for this port.
3655 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
3656
e1195560
PM
36572002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3658
3659 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
3660
c1748f97
PM
36612002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3662
3663 * win32-nat.c (display_selector): New function. Displays information
3664 about the information returned by GetThreadSelectorEntry API function.
3665 (display_selectors): New function. Displays the infomation of
3666 the selector given as argument, or of CS, DS ans FS selectors
3667 if no argument is given.
3668 ( _initialize_inftarg): Add "w32" as info prefix command.
3669 Add "info w32 selector" as command calling display_selectors.
3670
e41e6bbf
PM
36712002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
3672
3673 * i386-tdep.c (get_longjmp_target): Fix compilation failure
3674 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
3675 if not defined.
3676
0d3a9f48
RE
36772002-02-18 Richard Earnshaw <rearnsha@arm.com>
3678
3679 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
3680
3fb4b924
RE
36812002-02-18 Richard Earnshaw <rearnsha@arm.com>
3682
3683 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
3684 (arm_fix_call_dummy): Call it.
3685 (arm_call_dummy_breakpoint_offset): Delete.
3686 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
3687 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
3688
7f55af32
AC
36892002-02-18 Andrew Cagney <ac131313@redhat.com>
3690
3691 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
3692 Default to func_frame_chain_valid.
3693 * gdbarch.h, gdbarch.c: Re-generate.
3694 * frame.h (FRAME_CHAIN_VALID): Delete definition.
3695
05f13b9c
EZ
36962002-02-18 Elena Zannoni <ezannoni@redhat.com>
3697
3698 * ppc-linux-nat.c: Update copyright.
3699 (fetch_register, store_register): Add tid parameter, don't compute
3700 tid here.
3701 (fetch_ppc_registers, store_ppc_registers): Add tid
3702 parameter. Pass it along to callees.
3703 (fetch_inferior_registers, store_inferior_registers): Compute tid
3704 here, and pass it to calleed functions.
3705 (fill_gregset, supply_fpregset): Clean up formatting.
3706
d7afb4c9
RE
37072002-02-18 Richard Earnshaw <rearnsha@arm.com>
3708
3709 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
3710 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
3711
9df628e0
RE
37122002-02-18 Richard Earnshaw <rearnsha@arm.com>
3713
3714 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
3715 * gdbarch.c gdbarch.h: Regenerate.
3716 * breakpoint.c (create_longjmp_breakpoint): Always compile this
3717 function.
3718 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
3719 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
3720 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
3721
3722 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
3723 * arm-tdep.c (arm_get_longjmp_target): New function.
3724 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
3725 this to a positive value register arm_get_longjmp_target as the
3726 longjmp handler.
3727 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
3728 (arm_linux_init_abi): Set up longjmp description in tdep.
3729 * armnbsd-nat.c (get_longjmp_target): Delete.
3730 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
3731 description in tdep.
3732 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
3733 (get_longjmp_target): Delete declaration.
3734 (GET_LONGJMP_TARGET): Delete.
3735 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
3736 (GET_LONGJMP_TARGET): Delete.
3737
57bc8964
KB
37382002-02-17 Kevin Buettner <kevinb@redhat.com>
3739
3740 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
3741 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
3742 of ``current_gdbarch''.
3743
83d31a92
TT
37442002-02-17 Tom Tromey <tromey@redhat.com>
3745
3746 * cli/cli-cmds.c (compare_strings): New function.
3747 (complete_command): Only print each unique item once.
3748 * completer.h (complete_line): Declare.
3749 * completer.c (complete_line): New function.
3750 (line_completion_function): Use it.
3751
17ef5d92
AC
37522002-02-16 Andrew Cagney <ac131313@redhat.com>
3753
3754 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
3755 * gdbarch.h, gdbarch.c: Re-generate.
3756
491b8946
DJ
37572002-02-16 Daniel Jacobowitz <drow@mvista.com>
3758
3759 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
3760
37612002-02-16 Daniel Jacobowitz <drow@mvista.com>
3762
3763 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
3764 * valops.c (value_arg_coerce): Don't take the address of a reference
3765 to convert an argument to a reference.
3766
dfe7f3ac
CF
37672002-02-15 Christopher Faylor <cgf@redhat.com>
3768
3769 * win32-nat.c (get_image_name): New function.
3770 (handle_load_dll): Use get_image_name function.
3771 (get_child_debug_event): Avoid registering debug events until possibly
3772 execed process is started.
3773 (child_create_inferior): Allow invocation via shell so that command
3774 line redirection, etc. works ok.
3775 (_initialize_inftarg): Add new command: "set shell" to control whether
3776 a shell is used to start a process.
3777
1d33e73a
DJ
37782002-02-15 Daniel Jacobowitz <drow@mvista.com>
3779
3780 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
3781 instead of find_register_by_number.
3782 (cannot_store_register): Likewise.
3783
48cd0caa
PM
37842002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
3785
aaa38bb5 3786 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
3787 fprintf_unfiltered (gdb_stderr, ...).
3788
8656e7d8
DJ
37892002-02-15 Daniel Jacobowitz <drow@mvista.com>
3790
3791 * gdbserver/gdbserver.1: Document --attach.
3792
66e810cd
RE
37932002-02-15 Richard Earnshaw <rearnsha@arm.com>
3794
3795 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
3796 descriptions.
3797 * arm-tdep.c (arm_default_arm_le_breakpoint)
3798 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
3799 (arm_default_thumb_be_breakpoint): New. Initialize them from
3800 traditional breakpoint defines.
3801 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
3802 (arm_gdbarch_init): Initialize new breakpoint variables.
3803 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
3804 (arm_linux_init_abi): Initialize linux-specific breakpoint.
3805 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
3806 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
3807 code out to ...
3808 (arm_netbsd_init_abi_common): ... here; new function.
3809 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
3810 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
3811 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
3812 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
3813
97e03143
RE
38142002-02-15 Richard Earnshaw <rearnsha@arm.com>
3815
3816 * arm-tdep.h (enum arm_abi): New enum.
3817 (struct gdbarch_tdep): New structure.
3818 (LOWEST_PC): Provide a default.
3819 (arm_gdbarch_register_os_abi): Declare new function.
3820 * arm-tdep.c (arm_abi_names): New array.
3821 (process_note_abi_tag_sections): New function.
3822 (get_elfosabi): New function.
3823 (arm_gdbarch_register_os_abi): New function.
3824 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
3825 support for that ABI has been built in, then call the appropriate
3826 configuration routine. Use gdbarch_num_regs() to get the number
3827 of registers.
3828 (arm_dump_tdep): New function.
3829 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
3830 place-holder functions.
3831 (_initialize_arm_tdep): Register them.
3832 * config/arm/tm-arm.h (LOWEST_PC): Delete.
3833
3834 * armnbsd-tdep.c: New file.
3835 * Makefile.in (armnbsd-tdep.o): Add dependencies.
3836 * config/arm/nbsd.mt (TDEPFILES): Add it.
3837 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
3838
3839 * armnbsd-nat.c: Include regcache.h.
3840 * Makefile.in (armnbsd-nat.o): Update dependency list.
3841
3842 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
3843
ad68be46
DJ
38442002-02-14 Daniel Jacobowitz <drow@mvista.com>
3845
3846 * gdbserver/Makefile.in: Fix typos in target rules.
3847
003d6d1d
DJ
38482002-02-14 Daniel Jacobowitz <drow@mvista.com>
3849
aaa38bb5 3850 Fix part of PR gdb/267.
003d6d1d
DJ
3851 * linespec.c (find_methods): Handle constructors specially for now.
3852
6b230f1b
CV
38532002-02-14 Corinna Vinschen <vinschen@redhat.com>
3854
3855 * arm-tdep.c (arm_push_arguments): Eliminate special float type
3856 handling.
3857 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
3858 standard_coerce_float_to_double().
3859
1ea98d12
CF
38602002-02-14 Christopher Faylor <cgf@redhat.com>
3861
3862 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
3863 GDBINIT_FILENAME.
3864
dd47e6fd
EZ
38652002-02-14 Elena Zannoni <ezannoni@redhat.com>
3866
3867 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
3868 find_variant_by_name, because it confuses the multiarch
3869 framework. Return NULL if there isn't an architecture with the
3870 user supplied name, instead of forcing a different one without
3871 recording the change with the multiarch machinery.
3872 (find_variant_by_name): Delete.
3873
d7e39b9e
PS
38742002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3875
3876 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
3877 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
3878
76e42a4f
MH
38792002-02-13 Martin M. Hunt <hunt@redhat.com>
3880
aaa38bb5 3881 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
3882 print_frame_info_listing_hook, set current_source_symtab.
3883
0a30fbc4
DJ
38842002-02-14 Daniel Jacobowitz <drow@mvista.com>
3885
3886 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
3887 and remove unused $(INCLUDE_DIR).
3888 Add regcache.c to OBS.
3889 Add generated register protocol files to clean target.
3890 Update dependencies for new objects, obsolete old target code.
3891
3892 * gdbserver/linux-low.c: Remove all platform-specific code to
3893 new files. Remove various dead code. Update to use regcache
3894 functionality.
3895 * gdbserver/remote-utils.c (fromhex): Add return statement
3896 to quiet warning.
3897 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
3898 constant.
3899 (input_interrupt): Add integer parameter to match prototype
3900 of a signal handler.
3901 (outreg): Use register_data ().
3902 (prepare_resume_reply): Use gdbserver_expedite_regs.
3903 * gdbserver/server.c (main): Dynamically allocate own_buf because
3904 PBUFSIZ is no longer constant. Use registers_to_string () and
3905 registers_from_string ().
3906 * gdbserver/server.h: No longer include "defs.h". Add prototypes
3907 for error (), fatal (), and warning (). Update definition of
3908 PBUFSIZ to use regcache functionality. Add include guard.
3909 * gdbserver/utils.c (fatal): Add missing ``const''.
3910 (warning): New function.
3911
3912 * regformats/regdat.sh: Include "regcache.h" in generated files.
3913 Provide init_registers () function.
3914 * regformats/regdef.h: Add prototype for set_register_cache ().
3915 Add include guard.
3916
3917 * gdbserver/linux-arm-low.c: New file.
3918 * gdbserver/linux-i386-low.c: New file.
3919 * gdbserver/linux-ia64-low.c: New file.
3920 * gdbserver/linux-m68k-low.c: New file.
3921 * gdbserver/linux-mips-low.c: New file.
3922 * gdbserver/linux-ppc-low.c: New file.
3923 * gdbserver/linux-sh-low.c: New file.
3924
3925 * gdbserver/regcache.c: New file.
3926 * gdbserver/regcache.h: New file.
3927
3928 * gdbserver/low-linux.c: Removed obsolete file.
3929
4cc841d0
DJ
39302002-02-14 Daniel Jacobowitz <drow@mvista.com>
3931
3932 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
3933 * config/i386/linux.mt: Likewise.
3934 * config/ia64/linux.mt: Likewise.
3935 * config/m68k/linux.mh: Likewise.
3936 * config/powerpc/linux.mh: Likewise.
3937 * config/mips/linux.mt: Likewise.
3938
3939 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
3940
3941 * config/i386/i386lynx.mh: Mark gdbserver variables
3942 as (currently) obsolete for this target.
3943 * config/i386/nbsd.mt: Likewise.
3944 * config/i386/nbsdelf.mt: Likewise.
3945 * config/m32r/m32r.mt: Likewise.
3946 * config/m68k/m68klynx.mh: Likewise.
3947 * config/m68k/nbsd.mt: Likewise.
3948 * config/m68k/sun3os4.mh: Likewise.
3949 * config/mips/vr5000.mt: Likewise.
3950 * config/ns32k/nbsd.mt: Likewise.
3951 * config/pa/hppabsd.mh: Likewise.
3952 * config/pa/hppaosf.mh: Likewise.
3953 * config/powerpc/nbsd.mt: Likewise.
3954 * config/rs6000/rs6000lynx.mh: Likewise.
3955 * config/s390/s390.mt: Likewise.
3956 * config/s390/s390x.mt: Likewise.
3957 * config/sparc/sparclynx.mh: Likewise.
3958 * config/sparc/sun4os4.mh: Likewise.
3959 * config/i386/x86-64linux.mt: Likewise.
3960 * config/sparc/linux.mh: Likewise.
3961
a85f51e7
DJ
39622002-02-14 Daniel Jacobowitz <drow@mvista.com>
3963
3964 * configure.tgt: Configure gdbserver only for known working
3965 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
3966 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
3967 SUBDIRS if it is configured. Update comment for ${nativefile}.
3968 * configure: Regenerated.
3969
65554fef
MS
39702002-02-13 Michael Snyder <msnyder@redhat.com>
3971
670a52db
MS
3972 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
3973
6dbdc4a3
MS
3974 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
3975 (default_gcore_mach): Just return 0, work around a problem in bfd.
3976 (default_gcore_target): OK to return NULL if exec_bfd is null.
3977 (make_mem_sec): Use a cast, avoid a warning.
3978
3979 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 3980 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
3981 sizeof (host pointer) != sizeof (target pointer)).
3982 (procfs_make_note_section): Avoid overflow in psargs string.
3983
aaa38bb5 3984 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
3985 implementation return an error.
3986
39872002-02-13 Rodney Brown <rbrown64@csc.com.au>
3988
3989 * procfs.c (procfs_make_note_section): Provide a default definition
3990 (for alpha-dec-osf4.0f). Fix typos.
3991
1e4d76e7
EZ
39922002-02-13 Elena Zannoni <ezannoni@redhat.com>
3993
3994 * linux-proc.c: Add include of regcache.h.
3995 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
3996
b6d1a1d5
AC
39972002-02-13 Andrew Cagney <ac131313@redhat.com>
3998
3999 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
4000 * memattr.c (create_mem_region): Disallow useless empty region.
4001 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 4002 non-overlapping.
b6d1a1d5 4003
6c6ea35e
MC
40042002-02-13 Michael Chastain <mec@shout.net>
4005
4006 * defs.h: Kill CONST_PTR.
4007 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
4008 * c-lang.c (c_builtin_types): Likewise.
4009 * ch-lang.c (ch_builtin_types): Likewise.
4010 * f-lang.c (f_builtin_types): Likewise.
4011 * language.c (unknown_builtin_types): Likewise.
4012 * m2-lang.c (m2_builtin_types): Likewise.
4013 * p-lang.c (pascal_builtin_types): Likewise.
4014 * scm-lang.c (c_builtin_types): Likewise.
4015
3e0b0f48
KS
40162002-02-13 Keith Seitz <keiths@redhat.com>
4017
4018 * arm-tdep.h (arm_get_next_pc): Add declaration.
4019
67255d04
RE
40202002-02-13 Richard Earnshaw <rearnsha@arm.com>
4021
4022 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
4023 with other related struct-returning functions.
4024 (arm_extract_struct_value_address): New function.
4025 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
4026 initialize float_format, double_format and long_double_format as
4027 appropriate to the endianness of the target.
4028 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
4029 (arm_use_struct_convention): Delete declaration.
4030 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4031
079777f6
KS
40322002-02-13 Keith Seitz <keiths@redhat.com>
4033
4034 * defs.h (core_addr_to_string_nz): New function.
4035
34588f23
MK
40362002-02-13 Mark Kettenis <kettenis@gnu.org>
4037
4038 Apply missing bits of 2002-01-15 patch.
4039 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
4040 (fill_fpregset): Use i387_fill_fsave.
4041
49b563f9
KS
40422002-02-12 Keith Seitz <keiths@redhat.com>
4043
49b563f9
KS
4044 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
4045 (core_addr_to_string_nz): New function.
4046
aeb98c60
RE
40472002-02-11 Richard Earnshaw <rearnsha@arm.com>
4048
4049 * arm-linux-nat.c: Really include arm-tdep.h.
4050 * config/arm/tm-linux.h (struct type, struct value): Declare.
4051
65554fef
MS
40522002-02-11 Michael Snyder <msnyder@redhat.com>
4053
4054 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
4055 (gcore section): Ifdef for Solaris and Unixware only.
4056 (procfs_do_thread_registers): Unixware needs one lwpstatus
4057 per thread (not one prstatus or pstatus).
4058 (procfs_make_note_section): Iterate only over kernel threads (lwps),
4059 not over all gdb threads. For unixware, call elfcore_write_pstatus
4060 once before iterating over threads.
4061
34e8f22d
RE
40622002-02-11 Richard Earnshaw <rearnsha@arm.com>
4063
4064 * arm-tdep.h: New file.
4065 * arm-tdep.c: Include arm-tdep.h.
4066 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
4067 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
4068 (arm_print_float_info, arm_register_type, convert_to_extended)
4069 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
4070 (arm_extract_return_value, arm_register_name): Make static.
4071 (arm_software_single_step): Similarly. Fix types in declaration.
4072 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
4073 (arm_store_return_value, arm_store_struct_return): New functions.
4074 (arm_gdbarch_init): Register the above functions. Also register
4075 call_dummy_start_offset, sizeof_call_dummy_words,
4076 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
4077 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 4078 max_register_virtual_size, register_size. Set up
34e8f22d
RE
4079 prologue_cache.saved_regs here, rather than ...
4080 (_initialize_arm_tdep): ... here.
4081 * config/arm/tm-arm.h (struct type, struct value): Delete forward
4082 declarations.
4083 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
4084 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
4085 (arm_print_float_info, arm_register_type, convert_to_extended)
4086 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
4087 (arm_extract_return_value, arm_register_name): Delete declarations.
4088 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
4089 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
4090 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
4091 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
4092 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4093 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
4094 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
4095 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
4096 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
4097 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
4098 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
4099 (arm_get_next_pc): No-longer static -- these are needed by the RDI
4100 interface.
4101 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
4102 * remote-rdi.c remote-rdp.c: Likewise.
4103 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
4104 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
4105 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
4106 definition.
4107
4108 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
4109 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
4110 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
4111 from non-ARM_ prefixed definitions.
4112 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
4113 all uses of above.
4114 * remote-rdi.c remote-rdp.c: Likewise.
4115 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
4116
148754e5
RE
41172002-02-11 Richard Earnshaw <rearnsha@arm.com>
4118
4119 * arm-tdep.c (arm_frameless_function_invocation)
4120 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
4121 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
4122 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
4123 (arm_pop_frame, arm_get_next_pc): Make static.
4124 (arm_gdbarch_init): Register above in gdbarch structure.
4125 (arm_read_fp): Renamed from arm_target_read_fp.
4126 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
4127 * config/arm/tm-arm.h (arm_frameless_function_invocation)
4128 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
4129 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
4130 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
4131 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
4132 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
4133 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
4134 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
4135 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
4136 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 4137
434d2d4f
DJ
41382002-02-10 Daniel Jacobowitz <drow@mvista.com>
4139
4140 * symtab.c (compare_search_syms): New function.
4141 (sort_search_symbols): New function.
4142 (search_symbols): Sort symbols after searching rather than
4143 before.
4144
55241689
AC
41452002-02-10 Andrew Cagney <ac131313@redhat.com>
4146
4147 * NEWS: Linux -> GNU/Linux.
4148
028c194b
AC
41492002-02-10 Andrew Cagney <ac131313@redhat.com>
4150
4151 * gdbarch.sh: For for level one methods, disallow a definition
4152 when partially multi-arched. Add comments explaining rationale.
4153 * gdbarch.h: Re-generate.
4154
6acf50cd
AC
41552002-02-10 Andrew Cagney <ac131313@redhat.com>
4156
4157 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
4158 multi-arch partial.
aaa38bb5 4159
50248794
AC
41602002-02-10 Andrew Cagney <ac131313@redhat.com>
4161
4162 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
4163 field. Use diff -u.
4164 * gdbarch.c: Re-generate.
4165
c30e0066
AC
41662002-02-10 Andrew Cagney <ac131313@redhat.com>
4167
9b56c5f3 4168 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
4169 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
4170 partial.
4171
6e6d6484
AC
41722002-02-10 Andrew Cagney <ac131313@redhat.com>
4173
4174 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
4175 multi-arch partial.
4176 (PUSH_ARGUMENTS): Switch to using predefault.
4177 * gdbarch.c: Regenerate.
4178
c203844d
AC
41792002-02-10 Andrew Cagney <ac131313@redhat.com>
4180
4181 * valops.c (PUSH_ARGUMENTS): Delete definition.
4182 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
4183 partial. Default to default_push_arguments.
4184 * gdbarch.h, gdbarch.c: Regenerate.
4185
b5a2688f
AC
41862002-02-09 Andrew Cagney <ac131313@redhat.com>
4187
4188 * defs.h (throw_exception): Rename return_to_top_level. Update
4189 comments.
4190 * utils.c (error_stream, internal_verror, quit): Ditto.
4191 * top.c (throw_exception, catcher): Ditto.
4192 * sparclet-rom.c (sparclet_load): Ditto.
4193 * remote.c (interrupt_query, minitelnet): Ditto.
4194 * remote-sds.c (interrupt_query): Ditto.
4195 * remote-mips.c (mips_error, mips_kill): Ditto.
4196 * ocd.c (interrupt_query): Ditto.
4197 * monitor.c (monitor_interrupt_query): Ditto.
4198 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
4199 * target.h: Update comment.
aaa38bb5 4200
b5a2688f 4201 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 4202
2fa5c1e0
AC
42032002-02-09 Andrew Cagney <ac131313@redhat.com>
4204
4205 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
4206 default_double_format.
4207 * gdbarch.h, gdbarch.c: Re-generate.
4208 * findvar.c (floatformat_unknown): Delete variable definition.
4209 * doublest.h (floatformat_unknown): Delete variable declaration.
4210
da966255
JB
42112002-02-09 Jim Blandy <jimb@redhat.com>
4212
4213 * stabsread.c (read_type): Add code to parse Sun's syntax for
4214 prototyped function types.
4215
123a4891
AC
42162002-02-09 Andrew Cagney <ac131313@redhat.com>
4217
4218 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
4219 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
4220
fb39c8f3
PS
42212002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4222
4223 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
4224 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
4225 now _initialize_xcoffsolib gets called again and overrides the
4226 commands from solib.c in a native configuration.
4227
0b87a11d
MK
42282002-02-09 Mark Kettenis <kettenis@gnu.org>
4229
4230 * doublest.c (store_typed_floating): Don't try to return a value.
4231 Fixes PR gdb/290.
4232
bdc2fc72
JB
42332002-02-08 Jim Blandy <jimb@redhat.com>
4234
4235 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
4236 is prototyped and has no arguments, print its argument list as
4237 `(void)'.
4238
da69bbcf
CD
42392002-02-08 Chris Demetriou <cgd@broadcom.com>
4240
4241 * MAINTAINERS (write-after-approval): Add myself.
4242 (paper-trail): I've escaped!
aaa38bb5 4243
b69571f5
CF
42442002-02-08 Christopher Faylor <cgf@redhat.com>
4245
4246 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
4247 changes.
4248 (_initialize_check_for_gdb_ini): Ditto.
4249
f6871398
MH
42502002-02-08 Martin M. Hunt <hunt@redhat.com>
4251
4252 * win32-nat.c (cygwin_pid_to_str): Fix typo.
4253 xaprintf -> xasprintf.
4254
4e52d31c
PM
42552002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
4256
4257 * win32-nat.c: Remove use of printf and sprintf functions.
4258
39bbf761
RE
42592002-02-08 Richard Earnshaw <rearnsha@arm.com>
4260
4261 * arm-tdep.c (arm_frame_chain_valid): Make static.
4262 (arm_push_arguments): Likewise.
4263 (arm_gdbarch_init): New function.
4264 (_initialize_arm_tdep): Call it.
4265 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
4266 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
4267 (FRAME_CHAIN_VALID): Delete.
4268 (arm_frame_chain_valid): Delete declaration.
4269 (PUSH_ARGUMENTS): Delete.
4270 (arm_push_arguments): Delete declaration.
4271 (CALL_DUMMY_P): Delete.
4272
9c9532c9
CV
42732002-02-08 Andrew Cagney <ac131313@redhat.com>
4274 Corinna Vinschen <vinschen@redhat.com>
4275
4276 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
4277 on builtin float types.
4278
4e8f7a8b
DJ
42792002-02-08 Daniel Jacobowitz <drow@mvista.com>
4280
4281 * utils.c: Include <curses.h> before "bfd.h".
4282 * tui/tui-hooks.c: Likewise.
4283 * tui/tui.c: Likewise.
4284 * tui/tuiCommand.c: Likewise.
4285 * tui/tuiData.c: Likewise.
4286 * tui/tuiDataWin.c: Likewise.
4287 * tui/tuiDisassem.c: Likewise.
4288 * tui/tuiGeneralWin.c: Likewise.
4289 * tui/tuiIO.c: Likewise.
4290 * tui/tuiLayout.c: Likewise.
4291 * tui/tuiRegs.c: Likewise.
4292 * tui/tuiSource.c: Likewise.
4293 * tui/tuiSourceWin.c: Likewise.
4294 * tui/tuiStack.c: Likewise.
4295 * tui/tuiWin.c: Likewise.
4296
cd4bffcf
EZ
42972002-02-07 Elena Zannoni <ezannoni@redhat.com>
4298
4299 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
4300 to include space for pseudoregs as well. Update loops accordingly.
4301 (sh_fp_frame_init_saved_regs): Ditto.
4302 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
4303
26806ce2
AC
43042002-02-07 Andrew Cagney <ac131313@redhat.com>
4305
4306 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
4307 Add Richard Earnshaw to Arm maintainers.
4308
97fdab62
AC
43092002-02-07 Andrew Cagney <ac131313@redhat.com>
4310
a6b98203
AC
4311 * defs.h (warning_begin): Delete declaration.
4312
97fdab62
AC
4313 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
4314 Delete macro.
4315
78b29b40
MS
43162002-02-07 Michael Snyder <msnyder@redhat.com>
4317
aaa38bb5 4318 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
4319 Logic bug, remove misplaced else.
4320
d8849953
KD
43212002-02-07 Klee Dienes <klee@apple.com>
4322
4323 * fork-inferior.c (fork_inferior): Add '!' to the list of
4324 characters that need to be quoted when building a string for the
4325 shell. Quote '!' specifically with a backslash, since CSH chokes
4326 when trying to evaluate "str!str".
aaa38bb5 4327
095778a0
NC
43282002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
4329
4330 * rdi-share/host.h: Only provide a typedef for bool if it is not
4331 defined.
4332
1900040c
MS
43332002-02-04 Michael Snyder <msnyder@redhat.com>
4334
4335 * breakpoint.h (enum bptype): Add new overlay event bp type.
4336 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 4337
1900040c
MS
4338 * breakpoint.c (create_internal_breakpoint): New function.
4339 (internal_breakpoint_number): Moved into create_internal_breakpoint.
4340 (create_longjmp_breakpoint): Use create_internal_breakpoint.
4341 (create_thread_event_breakpoint): Ditto.
4342 (create_solib_event_breakpoint): Ditto.
4343 (create_overlay_event_breakpoint): New function.
4344 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
4345 (update_breakpoints_after_exec): Delete and re-initialize
4346 overlay event breakpoints after an exec. Add FIXME comment
4347 about longjmp breakpoint.
4348 (print_it_typical): Ignore overlay event breakpoints.
4349 (print_one_breakpoint): Ditto.
4350 (mention): Ditto.
4351 (bpstat_what): Do not stop for overlay event breakpoints.
4352 (delete_breakpoint): Don't delete overlay event breakpoints.
4353 (breakpoint_re_set_one): Delete the overlay event breakpoint.
4354 (breakpoint_re_set): Re-create overlay event breakpoint.
4355
4356 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
4357 (overlay_manual_command): Disable overlay breakpoints.
4358 (overlay_off_command): Disable overlay breakpoints.
4359
082fc60d
RE
43602002-02-06 Richard Earnshaw <rearnsha@arm.com>
4361
4362 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
4363 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
4364 to here from config/tm-arm.h.
4365 (coff_sym_is_thumb): Make static.
4366 (arm_elf_make_msymbol_special): New function.
4367 (arm_coff_make_msymbol_special): New function.
4368 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
4369 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
4370 (coff_sym_is_thumb): Delete declaration.
4371 (arm_elf_make_msymbol_special): Declare.
4372 (arm_coff_make_msymbol_special): Declare.
4373 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
4374 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
4375
039c5766
RE
43762002-02-06 Richard Earnshaw <rearnsha@arm.com>
4377
4378 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
4379
43802002-02-06 Richard Earnshaw <rearnsha@arm.com>
4381
4382 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
4383 * gdbarch.c gdbarch.h: Regenerate.
4384 * arch-utils.c (default_print_float_info): New function.
4385 * arch-utils.h (default_print_float_info): Prototype it.
4386 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
4387 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
4388 (PRINT_FLOAT_INFO): Document it.
4389
4390 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
4391 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
4392 (PRINT_FLOAT_INFO): Define.
4393
58fa08f0
PM
43942002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
4395
aaa38bb5 4396 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
4397 Add typecast to sprintf argument to suppress a warning.
4398
7393af7c
PM
43992002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
4400
58fa08f0 4401 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
4402 to allow easier handling of pass state.
4403 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
4404 that gives exception name and address.
4405 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 4406 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 4407 exceptions added.
aaa38bb5
AJ
4408 (child_continue): Correctly report continue_status.
4409 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 4410 TARGET_SIGNAL_0 (new default value).
aaa38bb5 4411 (child_resume): consider sig argument passed to decide if
7393af7c
PM
4412 the exception should be passed to debuggee or not.
4413
6af4589c
MS
44142002-02-05 Michael Snyder <msnyder@redhat.com>
4415
4416 * regcache.c (fetch_register): Call target_fetch_register
4417 only if we don't call FETCH_PSEUDO_REGISTER.
4418 (store_register): Call target_store_register only if we
4419 don't call STORE_PSEUDO_REGISTER.
4420
a2cf933a
EZ
44212002-02-05 Elena Zannoni <ezannoni@redhat.com>
4422
4423 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
4424 ELF_MAKE_MSYMBOL_SPECIAL.
4425 * gdbarch.c, gdbarch.h: Regenerate.
4426 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 4427 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
4428 * elfread.c (elf_symtab_read): Compile use of
4429 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
4430 multiarched.
4431 * coffread.c (coff_symtab_read): Ditto, for
4432 COFF_MAKE_MSYMBOL_SPECIAL.
4433
6bb7be43
JB
44342002-02-05 Jim Blandy <jimb@redhat.com>
4435
4436 * solib-svr4.c (svr4_truncate_ptr): New function.
4437 (svr4_relocate_section_addresses): Do the address arithmetic with
4438 the appropriate truncation for target addresses, even when
4439 CORE_ADDR is larger than a target address.
4440
e18651ec
DJ
44412002-02-05 Daniel Jacobowitz <drow@mvista.com>
4442
4443 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
4444 to (int *).
4445
6b2725be
DJ
44462002-02-05 Daniel Jacobowitz <drow@mvista.com>
4447
4448 * gdbserver/linux-low.c (kill_inferior): Remove commented out
4449 code.
4450
fca9e603
DJ
44512002-02-05 Daniel Jacobowitz <drow@mvista.com>
4452
4453 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
4454
6c537a52
DJ
44552002-02-05 Daniel Jacobowitz <drow@mvista.com>
4456
4457 * gdbserver/linux-low.c: Remove unused include files.
4458
d844cde6
DJ
44592002-02-05 Daniel Jacobowitz <drow@mvista.com>
4460
4461 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
4462 (read_inferior_memory): Use it.
4463 (write_inferior_memory): Likewise.
4464
d07c63e7
DJ
44652002-02-05 Daniel Jacobowitz <drow@mvista.com>
4466
4467 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
4468 grubbing through sys_errlist.
4469
da6d8c04
DJ
44702002-02-05 Daniel Jacobowitz <drow@mvista.com>
4471
4472 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
4473
5b421780
PM
44742002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
4475 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
4476
9f60d481
AC
44772002-02-04 Andrew Cagney <ac131313@redhat.com>
4478
4479 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
4480 (do_sfunc, set_cmd_sfunc): New functions.
4481
4482 * command.h (struct cmd_list_element): Add field func.
4483 * cli/cli-decode.h (struct cmd_list_element): Ditto.
4484 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
4485 * cli/cli-decode.h: Ditto.
4486
4487 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
4488 (help_all, help_cmd_list): Ditto.
4489 (find_cmd, complete_on_cmdlist): Ditto.
4490 * top.c (execute_command): Ditto.
4491
4492 * cli/cli-setshow.c (do_setshow_command): Call func instead of
4493 function.sfunc.
4494
4495 * infcmd.c (notice_args_read): Fix function signature.
4496
4497 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
4498 * cli/cli-decode.c (add_set_cmd): Ditto.
4499 * utils.c (initialize_utils): Ditto.
4500 * maint.c (_initialize_maint_cmds): Ditto.
4501 * infrun.c (_initialize_infrun): Ditto.
4502 * demangle.c (_initialize_demangler): Ditto.
4503 * remote.c (add_packet_config_cmd): Ditto.
4504 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4505 * cris-tdep.c (_initialize_cris_tdep): Ditto.
4506 * proc-api.c (_initialize_proc_api): Ditto.
4507 * kod.c (_initialize_kod): Ditto.
4508 * valprint.c (_initialize_valprint): Ditto.
4509 * top.c (init_main): Ditto.
4510 * infcmd.c (_initialize_infcmd): Ditto.
4511 * corefile.c (_initialize_core): Ditto.
4512 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4513 * arch-utils.c (initialize_current_architecture): Ditto.
4514 (_initialize_gdbarch_utils): Ditto.
4515 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
4516
4517 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
4518 * wince.c (_initialize_inftarg): Ditto.
4519 * symfile.c (_initialize_symfile): Ditto.
4520 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4521 * language.c (_initialize_language): Ditto.
4522 * arc-tdep.c (_initialize_arc_tdep): Ditto.
4523
f9ba0717
MS
45242002-02-04 Michael Snyder <msnyder@redhat.com>
4525
4526 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
4527
0c74b2a7
DJ
45282002-02-04 Daniel Jacobowitz <drow@mvista.com>
4529
4530 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
4531 Add rules for building the register data files.
4532
c638789f
DJ
45332002-02-04 Daniel Jacobowitz <drow@mvista.com>
4534
4535 * regformats/regdat.sh: Add braces to the definition of
4536 expedite_regs_${arch}.
4537
db253027
DJ
45382002-02-04 Daniel Jacobowitz <drow@mvista.com>
4539
4540 * regformats/regdef.h (struct reg): Add comment describing the
4541 requirements for offset and size fields.
4542
206be19c
AS
45432002-02-04 Andreas Schwab <schwab@suse.de>
4544
4545 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
4546 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
4547
181c1381
RE
45482002-02-04 Richard Earnshaw <rearnsha@arm.com>
4549
4550 * gdbarch.sh (copyright): Update years in generated header.
4551 (SMASH_TEXT_ADDRESS): Add rule.
db253027 4552 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
4553 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
4554 * dbxread.c: Likewise.
4555 * dwarfread.c: Likewise.
4556 * elfread.c: Likewise.
4557 * somread.c: Likewise.
4558
4559 * arm-tdep.c (arm_smash_text_address): New function.
4560 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
4561
fa4ba8da
PM
45622002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
4563
4564 Add support for hardware watchpoints on win32 native.
aaa38bb5 4565 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 4566 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 4567 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
4568 of debug registers.
4569 (debug_registers_changed): New variable. Reflects when debug registers
4570 are changed and need to be written to inferior.
aaa38bb5 4571 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
4572 was set, used when new threads are created.
4573 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
4574 i386-nat code.
4575 (thread_rec): Set dr array if id is the thread of current_event .
4576 (child_continue, child_resume): Change the debug registers for all
4577 threads if debug_registers_changed.
4578 (child_add_thread): Change the debug registers if debug_registers_used.
4579 * config/i386/cygwin.mh: Add use of i386-nat.o file.
4580 Link nm.h to new nm-cygwin.h file.
4581 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
4582 of hardware registers.
4583
a73c86fb
AC
45842002-02-03 Andrew Cagney <ac131313@redhat.com>
4585
4586 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
4587 Restore behavour broken by 2002-01-20 Andrew Cagney
4588 <ac131313@redhat.com> IEEE_FLOAT removal.
4589
acf5ed49
DJ
45902002-02-03 Daniel Jacobowitz <drow@mvista.com>
4591
4592 * c-valprint.c (c_val_print): Pass a proper valaddr to
4593 cp_print_class_method.
4594 * valops.c (search_struct_method): If there is only one method
4595 and args is NULL, return that method.
4596
493d28d5
DJ
45972002-02-03 Daniel Jacobowitz <drow@mvista.com>
4598
4599 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
4600 accessing tag_name directly.
4601
7495dfdb
DJ
46022002-02-03 Daniel Jacobowitz <drow@mvista.com>
4603
4604 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
4605 of accessing tag_name directly.
4606
dd6bda65
DJ
46072002-02-03 Daniel Jacobowitz <drow@mvista.com>
4608
4609 PR gdb/280
4610 * gdbtypes.c (replace_type): New function.
4611 * gdbtypes.h (replace_type): Add prototype.
4612 * stabsread.c (read_type): Use replace_type.
4613
88fe217c
RE
46142002-02-03 Richard Earnshaw <rearnsha@arm.com>
4615
4616 * Makefile.in (memattr.o): Add missing dependencies rule.
4617
e5d66720
PS
46182002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4619
4620 * breakpoint.c (break_at_finish_command): Really export.
4621 (break_at_finish_at_depth_command): Ditto.
4622 (tbreak_at_finish_command): Ditto.
4623 * hppa-tdep.c: Include completer.h.
4624 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
4625 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
4626
fffee0be
AC
46272002-02-01 Andrew Cagney <ac131313@redhat.com>
4628
4629 * utils.c (do_write): New function.
4630 (error_stream): Rewrite combining the code from error_begin and
4631 verror.
4632 (verror): Rewrite using error_stream.
4633 (error_begin): Delete function.
4634
255e7dbf
AC
46352002-02-01 Andrew Cagney <ac131313@redhat.com>
4636
4637 * utils.c (error_begin): Make static.
4638 * defs.h (error_begin): Delete declaration.
4639
4640 * linespec.c (cplusplus_error): Replace cplusplus_hint.
4641 (decode_line_1): Use cplusplus_error instead of error_begin,
4642 cplusplus_hint and return_to_top_level.
4643 * coffread.c (coff_symfile_read): Use error instead of error_begin
4644 and return_to_top_level.
4645 * infrun.c (default_skip_permanent_breakpoint): Ditto.
4646
ddfe3c15
AC
46472002-02-01 Andrew Cagney <ac131313@redhat.com>
4648
4649 * language.h (type_error, range_error): Make string parameter
4650 constant.
4651 * language.c (warning_pre_print): Delete extern declaration.
4652 * dwarfread.c (warning_pre_print): Ditto.
4653 * language.c (type_error, range_error): Rewrite to use verror and
4654 vwarning instead of warning_begin.
4655
03ac34d5
MS
46562002-02-01 Michael Snyder <msnyder@redhat.com>
4657
261c4ca2
MS
4658 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
4659 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 4660
e00d1dc8
AC
46612002-02-01 Andrew Cagney <ac131313@redhat.com>
4662
4663 * command.h (NO_FUNCTION): Delete macro.
4664 * cli/cli-decode.h (NO_FUNCTION): Ditto.
4665 * top.c (execute_command): Replace NO_FUNCTION with NULL.
4666 * tracepoint.c (_initialize_tracepoint): Ditto.
4667 * cli/cli-decode.c (add_set_cmd): Ditto.
4668 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 4669
76b79d6e
DJ
46702002-02-01 Daniel Jacobowitz <drow@mvista.com>
4671
4672 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
4673 Update ``this'' pointer when calling virtual functions.
4674
799f9e91
MS
46752002-02-01 Michael Snyder <msnyder@redhat.com>
4676
c7bd442c 4677 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
4678 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
4679
3cf384d4
DJ
46802002-02-01 Daniel Jacobowitz <drow@mvista.com>
4681
4682 * regformats/reg-arm.dat: New file.
4683 * regformats/reg-i386.dat: New file.
4684 * regformats/reg-ia64.dat: New file.
4685 * regformats/reg-m68k.dat: New file.
4686 * regformats/reg-mips.dat: New file.
4687 * regformats/reg-ppc.dat: New file.
4688 * regformats/reg-sh.dat: New file.
4689 * regformats/regdef.h: New file.
4690 * regformats/regdat.sh: New file.
4691
0defa245
RE
46922002-02-01 Richard Earnshaw <reanrsha@arm.com>
4693
4694 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
4695 (arm_frame_args_address, arm_frame_locals_address): New functions.
4696 (arm_frame_num_args): New function.
4697 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
4698 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
4699 (FRMA_NUM_ARGS): Call arm_frame_num_args.
4700
405f26e6
MS
47012002-01-31 Michael Snyder <msnyder@redhat.com>
4702
502fd408
MS
4703 * breakpoint.c (break_at_finish_command): Export.
4704 (break_at_finish_at_depth_command): Export.
4705 (tbreak_at_finish_command): Export.
4706 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
4707 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
4708 "tbreak" commands, which are HPPA specific.
4709
7d35e135
MS
4710 * printcmd.c (disassemble_command): Remove an ancient
4711 artifact of an old merge.
4712
aaa38bb5 4713 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
4714 Define enum constant values for overlay mode.
4715 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
4716 (overlay_is_mapped, overlay_auto_command,
4717 overlay_manual_command): Ditto.
d874f1e2 4718
aaa38bb5
AJ
4719 * breakpoint.c (insert_breakpoints, remove_breakpoint,
4720 breakpoint_here_p, breakpoint_inserted_here_p,
4721 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
4722 describe_other_breakpoints, check_duplicates, clear_command):
4723 Coding standard fixes.
4724
8add0441 4725 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 4726 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
4727 code: check bfd SEC_READONLY flag for section.
4728
e351066e
AC
47292002-01-31 Andrew Cagney <ac131313@redhat.com>
4730
7d35e135 4731 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 4732
8a48e967
DJ
47332002-01-30 Daniel Jacobowitz <drow@mvista.com>
4734
4735 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
4736 data symbols, since we search based on textlow and texthigh.
4737 (find_pc_sect_symtab): Likewise.
4738
f5a96129
AC
47392002-01-30 Andrew Cagney <ac131313@redhat.com>
4740
4741 * defs.h (vwarning): Declare.
f5a96129
AC
4742 * utils.c (vwarning): New function.
4743 (warning): Call vwarning.
4744 (warning_begin): Delete function.
4745
4746 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
4747 the warning message.
4748 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
4749 warning_begin.
4750
cefd4ef5
MS
47512002-01-30 Michael Snyder <msnyder@redhat.com>
4752
1a703748
MS
4753 * NEWS: Mention "set trust-readonly-sections" command.
4754 Mention generate-core-file command.
cefd4ef5 4755
3a11626d
MS
47562002-01-15 Michael Snyder <msnyder@redhat.com>
4757
4758 * target.c: New command, "set trust-readonly-sections on".
4759 (do_xfer_memory): Honor the suggestion to trust readonly sections
4760 by reading them from the object file instead of from the target.
4761 (initialize_targets): Register command "set trust-readonly-sections".
4762
d1c7e53b
AC
47632002-01-29 Andrew Cagney <ac131313@redhat.com>
4764
4765 * parse.c (target_map_name_to_register): Simplify, search regs and
4766 pseudo-regs using a single loop.
4767
e2c9a72c
AC
47682002-01-30 Andrew Cagney <ac131313@redhat.com>
4769
4770 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
4771
69824b4e
MK
47722002-01-15 Rodney Brown <rbrown64@csc.com.au>
4773
4774 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
4775 * config/i386/i386v42mp.mh: Add i387-nat.o .
4776 * i386v4-nat.c: Include i387-nat.h.
4777 (supply_fpregset): Use i387_supply_fsave.
4778 (fill_fpregset): Use i387_fill_fsave.
4779
6eb69eab
RE
47802002-01-30 Richard Earnshaw <rearnsha@arm.com>
4781
4782 * arm-tdep.c (arm_call_dummy_words): Define.
4783 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
4784 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
4785 (CALL_DUMMY_WORDS): Define.
4786 (arm_call_dummy_words): Declare.
4787 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
4788 (arm_linux_call_dummy_words): Declare.
4789
9852326a
AS
47902002-01-30 Andreas Schwab <schwab@suse.de>
4791
4792 * m68klinux-nat.c: Fix last change to use regcache_collect
4793 instead of referencing registers[] directly.
4794
977a3030
AC
47952002-01-29 Andrew Cagney <ac131313@redhat.com>
4796
4797 * parse.c (target_map_name_to_register): Delete code wrapped in
4798 #ifdef REGISTER_NAME_ALIAS_HOOK.
4799
2076c72b
MS
48002002-01-28 Michael Snyder <msnyder@redhat.com>
4801
4802 * regcache.c (legacy_read_register_gen): Need to be able to
4803 read pseudo-register as well as real register.
4804 (legacy_write_register_gen): Ditto.
4805
8fcc723b
AC
48062002-01-28 Andrew Cagney <ac131313@redhat.com>
4807
4808 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
4809 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
4810 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
4811 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
4812 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
4813 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
4814 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
4815 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
4816 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
4817 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
4818 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
4819 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
4820 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
4821 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
4822 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
4823 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
4824 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
4825 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
4826 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
4827 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
4828
afe64c1a
AC
48292002-01-28 Andrew Cagney <ac131313@redhat.com>
4830
4831 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
4832 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
4833 (initialize_current_architecture): Update target_byte_order using
4834 information from BFD.
aaa38bb5 4835 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
4836 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
4837
75bc7ddf
AC
48382002-01-28 Andrew Cagney <ac131313@redhat.com>
4839
4840 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
4841 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
4842
4843 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
4844 #ifdef INVALID_FLOAT.
4845 * infcmd.c (do_registers_info): Ditto.
4846 * values.c (unpack_double): Ditto. Add comment.
4847
4848 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
4849 already commented out.
4850
0280a90a
AS
48512002-01-26 Andreas Schwab <schwab@suse.de>
4852
4853 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4854 * m68klinux-nat.c: Update ptrace interface for fetching/storing
4855 registers and add support for PTRACE_GETREGS.
4856
7072a954
AC
48572002-01-24 Andrew Cagney <ac131313@redhat.com>
4858
4859 GDB 5.1.1 released from 5.1 branch.
4860 * NEWS: Add 5.1.1 news.
4861 * README: Sync with 5.1 branch.
4862
86f902e0
FF
48632002-01-23 Fred Fish <fnf@redhat.com>
4864
4865 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
4866 stabstring on initial malloc. Reallocing will copy it for us,
4867 if necessary.
4868
8af51c36
EZ
48692002-01-23 Elena Zannoni <ezannoni@redhat.com>
4870
aaa38bb5 4871 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
4872 (HFILES_NO_SRCDIR): Remove hpread.h.
4873 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
4874 (hpread.o): Update dependencies.
4875 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
4876
4877 * hp-psymtab-read.c: Remove file.
4878 * hp-symtab-read.c: Remove file.
4879 * hpread.h: Remove file.
4880
4881 * hpread.c: Merge all contents of hp-psymtab-read.c,
4882 hp-symtab-read.c and hpread.h into this file, as it was prior to
4883 January 1999.
4884
4885 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 4886 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
4887 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
4888 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
4889
dc5cfeb6
EZ
48902002-01-23 Elena Zannoni <ezannoni@redhat.com>
4891
4892 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
4893 fill_gregset): Call gdbarch_tdep() just once, assign result to
4894 variable and use that, instead of calling the function several
4895 times.
4896
ea87b71b
AO
48972002-01-24 Alexandre Oliva <aoliva@redhat.com>
4898
4899 * configure.host: Accept sparcv9 as alias for sparc64.
4900 * configure.tgt: Likewise.
4901
13fc0c2f
KB
49022002-01-22 Kevin Buettner <kevinb@redhat.com>
4903
4904 * solib-aix5.c (build_so_list_from_mapfile)
4905 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
4906 arguments is not reversed.
4907 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
4908 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 4909
7bd872fe
EZ
49102002-01-22 Elena Zannoni <ezannoni@redhat.com>
4911
4912 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
4913 modified version of obsolete sh_fetch_pseudo_register.
4914 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
4915 (sh4_register_read): New function.
4916 (sh_pseudo_register_write): New function. Renamed and modified
4917 version of obsolete sh_store_pseudo_register.
4918 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
4919 (sh4_register_write): New function.
4920 (sh_gdbarch_init): Remove setting of gdbarch function
4921 fetch_pseudo_register and store_pseudo_register. Remove setting of
4922 register_convert_to_raw, register_convert_to_virtual,
4923 register_convertible.
4924 (sh_sh4_register_convertible): Delete. No longer needed. All is
4925 taken care by architecture specific functions
4926 register_read/register_write.
4927 (sh_sh4_register_convert_to_virtual): Make static.
4928 (sh_sh4_register_convert_to_raw): Ditto.
4929
069e84fd
AC
49302002-01-22 Andrew Cagney <ac131313@redhat.com>
4931
4932 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
4933 (floatformat_is_nan, floatformat_mantissa): Ditto.
4934
4935 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
4936 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
4937 builtin_type_ieee_double_little,
4938 builtin_type_ieee_double_littlebyte_bigword,
4939 builtin_type_m68881_ext, builtin_type_i960_ext,
4940 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
4941 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
4942 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
4943 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
4944
211a4f69
CV
49452002-01-22 Corinna Vinschen <vinschen@redhat.com>
4946
4947 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
4948 parameter. Set frameless flag if it exists and depended of
4949 whether the scanned function is frameless or not.
4950 (xstormy16_skip_prologue): If function is frameless, return
4951 result of xstormy16_scan_prologue().
4952 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
4953 call.
4954
f81353e4
EZ
49552002-01-21 Elena Zannoni <ezannoni@redhat.com>
4956
4957 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
4958 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
4959 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
4960 sh_sh4_register_byte, sh_sh4_register_raw_size,
4961 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
4962 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
4963 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
4964 sh_store_pseudo_register, sh_do_pseudo_register): Call
4965 gdbarch_tdep() just once, assign result to variable and use that,
4966 instead of calling the function several times.
4967
63c73a17
MK
49682002-01-20 Mark Kettenis <kettenis@gnu.org>
4969
4970 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
4971 macros instead of LAST_FPU_CTRL_REGNUM.
4972 (store_register): Likewise.
4973
39ad761d
JB
49742002-01-21 Jim Blandy <jimb@redhat.com>
4975
4976 * infcmd.c (run_command): Check that the `exec' target layer's BFD
4977 is up-to-date before running the program, not just when a program
4978 exits.
4979
3d74b771
FF
49802002-01-21 Fred Fish <fnf@redhat.com>
4981
4982 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
4983 when we have found all instructions we are looking for.
4984
966fbf70
RE
49852002-01-21 Richard Earnshaw <rearnsha@arm.com>
4986
4987 * arm-tdep.c (arm_register_name): New function.
4988 (arm_registers_names): Make static.
4989 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
4990 (arm_register_name): Declare.
4991 (REGISTER_NAME): Use it.
4992
c3b4394c
RE
49932002-01-21 Richard Earnshaw <rearnsha@arm.com>
4994 Kevin Buettner <kevinb@redhat.com>
4995
4996 Convert arm targets to new FRAME interface.
4997 * arm-tdep.c (struct frame_extra_info): Remove fsr.
4998 (arm_frame_find_save_regs): Delete.
4999 (arm_frame_init_saved_regs): New.
5000 (arm_init_extra_frame_info): Alloacte saved_regs as required.
5001 Allocate extra_info as required. Convert all uses of fsr.regs
5002 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
5003 to use extra_info.
5004 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
5005 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
5006 (check_prologue_cache, save_prologue_cache): Likewise.
5007 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
5008 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
5009 (FRAME_FIND_SAVED_REGS): Delete.
5010 (arm_frame_find_saved_regs): Delete prototype.
5011 (arm_frame_init_saved_regs): New prototype.
5012 (FRAME_INIT_SAVED_REGS): Define.
5013
61d99182
AC
50142002-01-20 Andrew Cagney <ac131313@redhat.com>
5015
5016 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
5017
6aaea291
AC
50182002-01-20 Andrew Cagney <ac131313@redhat.com>
5019
5020 From Jeff Law <law@redhat.com>:
5021 * infttrace.c: Include <sys/pstat.h>.
5022 (child_pid_to_exec_file): Revamp. Use pstat call to get the
5023 exec file if the ttrace equivalent fails.
5024
15f698d2
AC
50252002-01-20 Andrew Cagney <ac131313@redhat.com>
5026
5027 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
5028 (closeLogFile): Ditto.
5029
f86ddd7c
MC
50302002-01-20 Michael Chastain <mec@shout.net>
5031
5032 * top.c (print_gdb_version): Bump copyright year to 2002.
5033
904507ce
AC
50342002-01-20 Andrew Cagney <ac131313@redhat.com>
5035
5036 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
5037 Zannoni and Eli Zaretskii.
5038
d7f0b9ce
DJ
50392002-01-20 Daniel Jacobowitz <drow@mvista.com>
5040
5041 * buildsym.c: Update copyright years.
5042 * c-typeprint.c: Likewise.
5043 * dwarf2read.c: Likewise.
5044 * f-typeprint.c: Likewise.
5045 * gdbtypes.c: Likewise.
5046 * gdbtypes.h: Likewise.
5047 * hp-symtab-read.c: Likewise.
5048 * hpread.c: Likewise.
5049 * mdebugread.c: Likewise.
5050 * p-typeprint.c: Likewise.
5051
3fd3d7d2
AC
50522002-01-20 Andrew Cagney <ac131313@redhat.com>
5053
5054 * remote-sim.c (gdbsim_open): Simplify code testing the macro
5055 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
5056 byte-order selectable.
5057 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
5058 * arch-utils.c: Ditto.
5059 (set_endian): Ditto.
5060 (set_endian_from_file): Ditto.
5061 * gdbserver/low-sim.c (create_inferior): Ditto.
5062 * gdbarch.sh: Ditto.
5063 * gdbarch.h: Re-generate.
aaa38bb5
AJ
5064 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
5065 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
5066 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
5067 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
5068 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
5069 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
5070 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
5071 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
5072 macro definition.
5073 * config/mips/tm-wince.h: Remove #undef of macro
5074 TARGET_BYTE_ORDER_SELECTABLE.
5075 * config/sh/tm-wince.h: Ditto.
5076
b02dede2
DJ
50772002-01-20 Daniel Jacobowitz <drow@mvista.com>
5078
5079 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
5080 member function fields. Add accessor macro
5081 TYPE_FN_FIELD_ARTIFICIAL.
5082 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
5083 * c-typeprint.c (c_type_print_base): Skip artificial member
5084 functions.
5085
c3643761
DJ
50862002-01-20 Daniel Jacobowitz <drow@mvista.com>
5087
5088 * f-typeprint.c: Delete unused function f_type_print_args.
5089 * p-typeprint.c: Delete unused function pascal_type_print_args.
5090
8176bb6d
DJ
50912002-01-20 Daniel Jacobowitz <drow@mvista.com>
5092
5093 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
5094 comment. Add ``artificial'' to ``union field_location''.
5095
5096 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
5097
5098 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
5099 * mdebugread.c (parse_symbol): Likewise.
5100 * stabsread.c (define_symbol): Likewise.
5101 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
5102 initializing TYPE_FIELD_BITPOS to n (obsolete).
5103 (hpread_doc_function_type): Likewise.
5104 * hpread.c (hpread_function_type): Likewise.
5105
7fd60527
AC
51062002-01-20 Andrew Cagney <ac131313@redhat.com>
5107
5108 * configure.in (host_makefile_frag): Only require a host makefile
5109 fragment when a native build.
5110 * configure: Re-generate.
5111
c2f05ac9
AC
51122002-01-20 Andrew Cagney <ac131313@redhat.com>
5113
5114 * doublest.h (floatformat_from_type): Declare.
5115 * doublest.c (floatformat_from_type): New function.
5116 (convert_typed_floating): Use.
5117
5118 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
5119 call to function floatformat_from_type.
5120
5121 * gdbarch.sh (IEEE_FLOAT): Delete.
5122 * gdbarch.h, gdbarch.c: Re-generate.
5123 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
5124 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
5125 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
5126 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
5127 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
5128 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
5129 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
5130 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
5131 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
5132 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
5133 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
5134 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
5135
5136 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
5137 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5138 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5139 * sh-tdep.c (sh_gdbarch_init): Ditto.
5140 * mips-tdep.c (mips_gdbarch_init): Ditto.
5141 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5142 * cris-tdep.c (cris_gdbarch_init): Ditto.
5143
abf22e64
AJ
51442002-01-20 Jiri Smid <smid@suse.cz>
5145
5146 * configure.host, configure.tgt: Support x86-64.
5147 * NEWS: Note new target x86-64.
5148
b7c4cbf8
AJ
5149 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
5150 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
5151 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
5152 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
5153 x86-64-linux-nat.o): Fix dependencies.
5154
82600034
AC
51552002-01-19 Andrew Cagney <ac131313@redhat.com>
5156
5157 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
5158 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
5159 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
5160 * config/sparc/xm-sun4os4.h: Delete file.
5161 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 5162
bbe5c628
AC
51632002-01-19 Andrew Cagney <ac131313@redhat.com>
5164
5165 * config/sparc/sparclynx.mh (XM_FILE): Delete.
5166 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
5167 * config/m68k/m68klynx.mh (XM_FILE): Delete.
5168 * config/i386/i386lynx.mh (XM_FILE): Delete.
5169 * config/rs6000/xm-rs6000ly.h: Delete file.
5170 * config/sparc/xm-sparclynx.h: Delete file.
5171 * config/m68k/xm-m68klynx.h: Delete file.
5172 * config/i386/xm-i386lynx.h: Delete file.
5173 * config/xm-lynx.h: Delete file.
5174 * config/djgpp/fnchange.lst: Update.
5175
f8453e34
JT
51762002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
5177
5178 * alpha-tdep.c (alpha_register_byte): New function.
5179 (alpha_register_raw_size): Ditto.
5180 (alpha_register_virtual_size): Ditto.
5181 (alpha_skip_prologue_internal): Renamed from
5182 alpha_skip_prologue.
5183 (alpha_skip_prologue): New version that calls
5184 alpha_skip_prologue_internal.
5185 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
5186 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
5187 second argument from alpha_skip_prologue.
5188 (REGISTER_BYTE): Use alpha_register_byte.
5189 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
5190 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
5191 (FRAMELESS_FUNCTION_INVOCATION): Use
5192 generic_frameless_function_invocation_not.
5193 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
5194 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
5195
52d9e613
AC
51962002-01-19 Andrew Cagney <ac131313@redhat.com>
5197
5198 * config/mips/xm-news-mips.h: Delete file.
5199 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
5200
5201 * config/m88k/xm-m88k.h: Delete file.
5202 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
5203 * config/m88k/xm-delta88v4.h: Ditto.
5204 * config/m88k/xm-delta88.h: Ditto.
5205
5206 * config/alpha/xm-fbsd.h: Delete file.
5207 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
5208
5209 * config/sparc/xm-sparc.h: Delete file.
5210 * Makefile.in (xm-sun4os4.h): Delete dependency.
5211 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
5212 * config/sparc/xm-sun4os4.h: Ditto.
5213 * config/sparc/xm-linux.h: Ditto.
5214
5215 * config/i386/xm-windows.h: Delete file.
5216
2d1b2124
AC
52172002-01-19 Andrew Cagney <ac131313@redhat.com>
5218
5219 * utils.c: Include <sys/param.h> for MAXPATHLEN.
5220 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
5221
ee1f65f0
JT
52222002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
5223
5224 * alpha-tdep.c (alpha_call_dummy_words): New.
5225 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
5226 (CALL_DUMMY_P): Define.
5227 (CALL_DUMMY_WORDS): Define.
5228 (SIZEOF_CALL_DUMMY_WORDS): Define.
5229
98081e55
PB
52302002-01-19 Per Bothner <per@bothner.com>
5231
5232 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
5233 isn't NULL, which can happen with some gcj-3.x-produced code.
5234
0d056799
JT
52352002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
5236
5237 * alpha-tdep.c (alpha_register_virtual_type): New function.
5238 (alpha_init_frame_pc_first): Ditto.
5239 (alpha_fix_call_dummy): Ditto.
5240 (alpha_store_struct_return): Ditto.
5241 (alpha_extract_struct_value_address): Ditto.
5242 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
5243 alpha_register_virtual_type.
5244 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
5245 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
5246 alpha_extract_struct_value_address.
5247 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
5248 (INIT_FRAME_PC): Use init_frame_pc_noop.
5249 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
5250
4604bcad
MK
52512002-01-19 Mark Kettenis <kettenis@gnu.org>
5252
5253 * i386gnu-nat.c: Include "i386-tdep.h".
5254 (fetch_fpregs): Simplify code dealing with uninitialized floating
5255 point states such that it doesn't require FP7_REGNUM.
5256
140f9984
JT
52572002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5258
abf22e64
AJ
5259 * alpha-tdep.c (frame_extra_info): New.
5260 (alpha_find_saved_regs): Make static. Use
140f9984
JT
5261 frame->extra_info.
5262 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
5263 (alpha_frame_saved_pc): Use frame->extra_info.
5264 (temp_saved_regs): Don't declare as struct frame_saved_regs.
5265 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
5266 (init_extra_frame_info): Rename to...
5267 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 5268 (alpha_print_extra_frame_info): New function.
140f9984
JT
5269 (alpha_frame_locals_address): Ditto.
5270 (alpha_frame_args_address): Ditto.
abf22e64 5271 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
5272 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
5273 alpha_frame_args_address.
abf22e64 5274 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 5275 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
5276 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
5277 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
5278 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
5279 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
5280
d734c450
JT
52812002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5282
5283 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
5284 (alpha_cannot_fetch_register): Ditto.
5285 (alpha_cannot_store_register): Ditto.
5286 (alpha_register_convertible): Ditto.
5287 (alpha_use_struct_convention): Ditto.
5288 * config/alpha/tm-alpha.h: Update copyright years.
5289 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
5290 (INNER_THAN): Use core_addr_lessthan.
5291 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
5292 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
5293 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
5294 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
5295 (FRAME_CHAIN): Remove unnecessary cast.
5296
b4ceaee6
AC
52972002-01-18 Andrew Cagney <ac131313@redhat.com>
5298
5299 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
5300 obsolete.
5301
0a65a603
AC
53022002-01-18 Andrew Cagney <ac131313@redhat.com>
5303
5304 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
5305 * monitor.c, remote-array.c, remote-bug.c: Ditto.
5306 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
5307 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
5308 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
5309 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
5310 * x86-64-linux-nat.c: Ditto.
5311
636a6dfc
JT
53122002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5313
abf22e64 5314 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
5315 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
5316 (REGISTER_NAME): Define.
5317
acceddb6
JT
53182002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5319
5320 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
5321
ec32e4be
JT
53222002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5323
5324 * alpha-tdep.c: Update copyright years.
5325 (alpha_next_pc): New function.
5326 (alpha_software_single_step): Ditto.
5327 * config/alpha/tm-alpha.h: Add prototype for
5328 alpha_software_single_step.
5329
e771a871
JT
53302002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5331
5332 * alphabsd-nat.c: Update copyright years.
5333 (fill_gregset): Use regcache_collect.
5334 (fill_fpregset): Likewise.
5335 (fetch_inferior_registers): Only fetch integer registers
5336 if requested to do so.
5337 (store_inferior_registers): Only store integer registers
5338 if requested to do so.
5339
7708fa01
AC
53402002-01-17 Andrew Cagney <ac131313@redhat.com>
5341
5342 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
5343 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
5344 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
5345 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
5346 * config/alpha/fbsd.mh (XDEPFILES): Delete.
5347 * config/arm/linux.mh (XDEPFILES): Delete.
5348 * config/arm/nbsd.mh (XDEPFILES): Delete.
5349 * config/i386/i386dgux.mh (XDEPFILES): Delete.
5350 * config/i386/i386sol2.mh (XDEPFILES): Delete.
5351 * config/i386/i386m3.mh (XDEPFILES): Delete.
5352 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
5353 * config/i386/i386gnu.mh (XDEPFILES): Delete.
5354 * config/i386/fbsd.mh (XDEPFILES): Delete.
5355 * config/i386/i386bsd.mh (XDEPFILES): Delete.
5356 * config/i386/i386sco5.mh (XDEPFILES): Delete.
5357 * config/i386/i386v4.mh (XDEPFILES): Delete.
5358 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
5359 * config/i386/i386sco4.mh (XDEPFILES): Delete.
5360 * config/i386/i386aix.mh (XDEPFILES): Delete.
5361 * config/i386/go32.mh (XDEPFILES): Delete.
5362 * config/i386/cygwin.mh (XDEPFILES): Delete.
5363 * config/i386/i386lynx.mh (XDEPFILES): Delete.
5364 * config/i386/i386mach.mh (XDEPFILES): Delete.
5365 * config/i386/i386v32.mh (XDEPFILES): Delete.
5366 * config/i386/linux.mh (XDEPFILES): Delete.
5367 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
5368 * config/i386/ncr3000.mh (XDEPFILES): Delete.
5369 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
5370 * config/i386/i386sco.mh (XDEPFILES): Delete.
5371 * config/i386/i386v.mh (XDEPFILES): Delete.
5372 * config/i386/nbsd.mh (XDEPFILES): Delete.
5373 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
5374 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
5375 * config/i386/symmetry.mh (XDEPFILES): Delete.
5376 * config/i386/obsd.mh (XDEPFILES): Delete.
5377 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
5378 * config/ia64/linux.mh (XDEPFILES): Delete.
5379 * config/ia64/aix.mh (XDEPFILES): Delete.
5380 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
5381 * config/m68k/dpx2.mh (XDEPFILES): Delete.
5382 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
5383 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
5384 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
5385 * config/m68k/linux.mh (XDEPFILES): Delete.
5386 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
5387 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
5388 * config/m68k/nbsd.mh (XDEPFILES): Delete.
5389 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
5390 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
5391 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
5392 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
5393 * config/m88k/delta88.mh (XDEPFILES): Delete.
5394 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
5395 * config/m88k/m88k.mh (XDEPFILES): Delete.
5396 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
5397 * config/mips/linux.mh (XDEPFILES): Delete.
5398 * config/mips/irix6.mh (XDEPFILES): Delete.
5399 * config/mips/irix5.mh (XDEPFILES): Delete.
5400 * config/mips/irix4.mh (XDEPFILES): Delete.
5401 * config/mips/irix3.mh (XDEPFILES): Delete.
5402 * config/mips/decstation.mh (XDEPFILES): Delete.
5403 * config/mips/mipsm3.mh (XDEPFILES): Delete.
5404 (NATDEPFILES): Move core-aout.o to here.
5405 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
5406 * config/pa/hpux1020.mh (XDEPFILES): Delete.
5407 * config/pa/hppabsd.mh (XDEPFILES): Delete.
5408 * config/pa/hppahpux.mh (XDEPFILES): Delete.
5409 * config/pa/hpux11w.mh (XDEPFILES): Delete.
5410 * config/pa/hppaosf.mh (XDEPFILES): Delete.
5411 * config/pa/hpux11.mh (XDEPFILES): Delete.
5412 * config/powerpc/aix.mh (XDEPFILES): Delete.
5413 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
5414 * config/powerpc/linux.mh (XDEPFILES): Delete.
5415 * config/romp/rtbsd.mh: Rename XDEPFILES.
5416 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
5417 * config/rs6000/aix4.mh (XDEPFILES): Delete.
5418 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
5419 * config/s390/s390.mh (XDEPFILES): Delete.
5420 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
5421 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
5422 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
5423 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
5424 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
5425 * config/sparc/nbsd.mh (XDEPFILES): Delete.
5426 * config/sparc/linux.mh (XDEPFILES): Delete.
5427 * config/vax/vaxult.mh (XDEPFILES): Delete.
5428 * config/vax/vaxult2.mh (XDEPFILES): Delete.
5429 * Makefile.in (DEPFILES): Remove XDEPFILES.
5430
375fc983
AC
54312002-01-17 Andrew Cagney <ac131313@redhat.com>
5432
5433 * utils.c (internal_verror): Fix comments, default is yes not no.
5434 Update queries to match. Default to quit and dump core.
5435
8926118c
AC
54362002-01-17 Andrew Cagney <ac131313@redhat.com>
5437
5438 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
5439 copyright.
5440 * defs.h, event-top.c, gdbcmd.h: Ditto.
5441 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
5442 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
5443 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
5444 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
5445 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
5446 * mi/mi-main.c:Ditto.
5447
5448 * stack.c, symfile.c: Update copyright.
5449
45b7b345
DJ
54502002-01-17 Daniel Jacobowitz <drow@mvista.com>
5451
db728ff7
DJ
5452 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
5453 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
5454 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
5455 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 5456
db728ff7
DJ
54572002-01-17 Daniel Jacobowitz <drow@mvista.com>
5458
5459 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
5460 * gdbserver/low-lynx.c (myattach): Likewise.
5461 * gdbserver/low-nbsd.c (myattach): Likewise.
5462 * gdbserver/low-sim.c (myattach): Likewise.
5463 * gdbserver/low-sparc.c (myattach): Likewise.
5464 * gdbserver/low-sun3.c (myattach): Likewise.
5465
5466 * gdbserver/low-linux.c (myattach): New function.
45b7b345 5467
db728ff7 5468 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
5469 (main): Handle "--attach".
5470
8de3c354
AC
54712002-01-16 Andrew Cagney <ac131313@redhat.com>
5472
5473 * MAINTAINERS (language support): Daniel Jacobwitz is C++
5474 maintainer.
5475
b0129042
DJ
54762002-01-15 Daniel Jacobowitz <drow@mvista.com>
5477
5478 * c-typeprint.c (is_type_conversion_operator): Add additional
5479 check for non-conversion operators.
5480
ba8679fb 54812002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
5482
5483 * linux-proc.c: Add "info proc" command, a la procfs.c.
5484 (read_mapping): New function, abstract and re-use code.
5485 (linux_find_memory_regions): Use new func read_mapping.
5486 (linux_info_proc_cmd): New function, implement "info proc".
5487 (_initialize_linux_proc): Add new command "info proc".
5488
e4f9b4d5
MS
54892002-01-15 Michael Snyder <msnyder@redhat.com>
5490
5491 * symfile.c (generic_load): Use bfd_map_over_sections method
5492 instead of manipulating bfd structure members directly.
5493 (add_section_size_callback): New function, bfd sections callback
5494 used by generic_load.
5495 (load_sections_callback): New function, bfd sections callback
5496 used by generic_load.
5497
08cf96df
EZ
54982002-01-15 Elena Zannoni <ezannoni@redhat.com>
5499
abf22e64 5500 [Based on work by Jim Blandy]
08cf96df
EZ
5501 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
5502 (builtin_type_vec128): Export.
5503 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
5504 types.
5505 (builtin_type_vec128): New builtin type for 128 bit vector
5506 registers.
5507 (build_gdbtypes): Initialize builtin_type_v16qi and
5508 builtin_type_v8hi. Create the vec128 register builtin type
5509 structure.
5510 (build_builtin_type_vec128): New function.
abf22e64 5511 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
5512 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
5513 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
5514 AltiVec register to new builtin type.
5515
d7242108
DJ
55162001-01-15 Daniel Jacobowitz <drow@mvista.com>
5517
5518 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
5519 to make_cv_type.
5520
4ee3352d
AC
55212002-01-14 Andrew Cagney <ac131313@redhat.com>
5522
5523 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
5524 CLEAN_UP_REGISTER_VALUE.
5525 * regcache.c (supply_register): Update only call.
5526
f015b2e7
AC
55272002-01-14 Andrew Cagney <ac131313@redhat.com>
5528
5529 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
5530 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
5531 a29k-*-vxworks* targets as obsolete.
5532
356ae49d
MS
55332002-01-14 Michael Snyder <msnyder@redhat.com>
5534
5535 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
5536 until we can resolve portability issues.
5537 * gregset.h: Remove references to fpxregs.
5538 * gcore.c (gcore_command): Initialize note_sec to NULL.
5539
ade8f45e
AC
55402002-01-13 Andrew Cagney <ac131313@redhat.com>
5541
5542 * signals.c (target_signal_to_name): Rewrite. Only use
5543 signals[].name when in bounds and non-NULL.
abf22e64 5544
89c49e7a
AC
55452002-01-13 Andrew Cagney <ac131313@redhat.com>
5546
5547 From Petr Ledvina <ledvinap@kae.zcu.cz>:
5548 * signals.c (target_signal_to_name): Verify that SIG is within the
5549 bounds of the signals array.
5550
4daa9f9f
AC
55512002-01-13 Andrew Cagney <ac131313@redhat.com>
5552
5553 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
5554
ba4bbdcb
KS
55552002-01-13 Keith Seitz <keiths@redhat.com>
5556
5557 * stack.c (print_frame_info_base): Print the frame's pc
5558 only if when print_frame_info_listing_hook is not defined.
5559
575bbeb6
KS
55602002-01-13 Keith Seitz <keiths@redhat.com>
5561
5562 * varobj.c (varobj_set_value): Make sure that there were no
5563 errors evaluating the object before attempting to set its
5564 value.
5565 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
5566 so this offset adjustment is no longer necessary.
5567 (create_child): Don't set the error flag if the child is
5568 a CPLUS_FAKE_CHILD.
5569 (value_of_child): If value_fetch_lazy fails, return NULL
5570 so that callers will be notified that an error occurred.
5571 (c_value_of_variable): Delay check of variable's validity
5572 until later. We actually want all structs and unions to have
5573 the value "{...}".
5574 Do not return "???" for variables which could not be evaluated.
5575 This error condition must be returned to the caller so that it
5576 can get the error condition from gdb.
5577 (cplus_name_of_child): Adjust index for vptr before figuring
5578 out the name of the child.
5579 (cplus_value_of_child): If a child's (real) parent is not valid,
5580 don't even bother trying to give a value for it. Just return
5581 an error. Change all instances in this function.
5582 (cplus_type_of_child): If our parent is one of the "fake"
5583 parents, we need to get at the type of the real parent, and
5584 derive the child's true type using this information.
5585
b76898ab
AC
55862002-01-13 Andrew Cagney <ac131313@redhat.com>
5587
5588 From 2002-01-09 John Marshall <johnm@falch.net>:
5589 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
5590 sources.redhat.com, and tweak some related URLs which had
5591 suffered from linkrot.
5592
b6649e88
AC
55932002-01-13 Andrew Cagney <ac131313@redhat.com>
5594
5595 From Jeff law:
5596 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
5597 structures passed in registers.
5598
82cc5033
EZ
55992002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
5600
5601 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
5602 white space which prevented compilation. Reported by DSK
5603 <dsk@student.unsw.edu.au>.
5604
ba5f2f8a
MS
56052002-01-11 Michael Snyder <msnyder@redhat.com>
5606
fbd35540
MS
5607 * symfile.c (build_section_addr_info_from_section_tab):
5608 Use bfd access method instead of manipulating bfd directly.
5609 (syms_from_objfile): Ditto.
5610 (simple_overlay_update_1): Ditto.
5611 (simple_overlay_update): Ditto.
5612 (generic_load): Ditto.
5613 (overlay_unmapped_address): FIXME comment, bfd access methods.
5614 (sections_overlap): FIXME comment, bfd access methods.
5615 (pc_in_mapped_range): FIXME comment, bfd access methods.
5616 (pc_in_unmapped_range): FIXME comment, bfd access methods.
5617 (section_is_mapped): FIXME comment, bfd access methods.
5618 (section_is_overlay): FIXME comment, bfd access methods.
5619
ba5f2f8a
MS
5620 * symfile.c (generic_load): Whitespace and long line cleanups.
5621 Remove duplicate variable, change several local variables to
5622 more appropriate data types.
5623 (print_transfer_performance): Use %lu instead of %ld for ulongs.
5624
17df2af6
AC
56252002-01-12 Andrew Cagney <ac131313@redhat.com>
5626
5627 From Peter Schauer:
5628 * language.c (longest_local_hex_string_custom): Use phex_nz to
5629 convert NUM to a hex string.
5630
ec920329
EZ
56312002-01-12 Elena Zannoni <ezannoni@redhat.com>
5632
5633 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
5634 the function.
538a76d6 5635 Update Copyright year.
ec920329 5636
3abd2e01
AC
56372002-01-12 Andrew Cagney <ac131313@redhat.com>
5638
5639 * language.c (longest_raw_hex_string): Delete unused function.
5640
b21b22e0
PS
56412002-01-11 Petr Sorfa <petrs@caldera.com>
5642
5643 * MAINTAINERS (write-after-approval): Add myself.
5644 * dwarf2read.c (read_tag_string_type): Handling of
5645 DW_AT_byte_size.
5646 (read_tag_string_type): FORTRAN fix to prevent propagation of
5647 first string size.
5648 (set_cu_language): Handling of DW_LANG_Fortran95
5649
747fe712
RE
56502002-01-11 Richard Earnshaw <rearnsha@arm.com>
5651
5652 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
5653 GETPID(inferior_ptid).
5654 (store_inferior_registers): Likewise.
5655
f1bea926
JM
56562002-01-10 Jason Merrill <jason@redhat.com>
5657
5658 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
5659 Fix DW_OP_minus.
5660
ae940673
AC
56612002-01-10 Andrew Cagney <ac131313@redhat.com>
5662
5663 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
5664 and bfd/elf32-sh-nbsd.c.
5665
00546b04
MS
56662002-01-10 Michael Snyder <msnyder@redhat.com>
5667
352ed7b4
MS
5668 * NEWS: Mention --pid and corefile/proc-id behavior change.
5669
c18be923
MS
5670 * Makefile.in: Add rules for gcore.o and linux-proc.o.
5671 * gcore.c: Include cli/cli-decode.h instead of command.h.
5672
00546b04
MS
5673 * main.c (captured_main): Add new command line option "--pid".
5674 If the second command line argument (following the symbol-file)
5675 begins with a digit, try to attach to it before trying to open
5676 it as a corefile.
5677 (print_gdb_help): Document the "--pid" argument.
5678
db60ec62
EZ
56792002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
5680
5681 * completer.c (command_completer): New function.
5682
5683 * completer.h <command_completer>: Add prototype.
5684
5685 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
5686 completer for the "help" command.
5687
39c22d1a
JM
56882002-01-09 Jason Merrill <jason@redhat.com>
5689
5690 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
5691
c564377f
MS
56922002-01-09 Michael Snyder <msnyder@redhat.com>
5693
975aec09
MS
5694 * i386-linux-nat.c (fill_fpxregset): Make global.
5695 (store_fpxregset): Ditto.
5696
db4a10fa
MS
5697 * gregset.h (gdb_fpxregset_t): Define.
5698 (supply_fpxregset): Prototype.
5699 (fill_fpxregset): Prototype.
5700
c564377f
MS
5701 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
5702
c3d45d70
RE
57032002-01-09 Richard Earnshaw <rearnsha@arm.com>
5704
5705 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
5706 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
5707 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
5708
fcc87af1
AC
57092002-01-09 Andrew Cagney <ac131313@redhat.com>
5710
5711 * MAINTAINERS: Update target maintainer rules so that any
5712 Maintainer can approve a tested patch for a maintenance-only
5713 target.
5714
dd96c05b
RE
57152002-01-09 Richard Earnshaw <rearnsha@arm.com>
5716
d4297db9 5717 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 5718
d4297db9 5719 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
5720 IN_SIGTRAMP.
5721
145fdc6e
MS
57222002-01-08 Michael Snyder <msnyder@redhat.com>
5723
5724 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
5725 real name of the executable, rather than the /proc name.
5726
be4d1333
MS
57272002-01-03 Michael Snyder <msnyder@redhat.com>
5728
5729 Implement a "generate-core-file" command in gdb, save target state.
5730 * gcore.c: New file. Implement new command 'generate-core-file'.
5731 Save a corefile image of the current state of the inferior.
5732 * linux-proc.c: Add linux-specific code for saving corefiles.
5733 * target.h (struct target_ops): Add new target vectors for saving
5734 corefiles; to_find_memory_regions and to_make_corefile_notes.
5735 (target_find_memory_regions): New macro.
5736 (target_make_corefile_notes): New macro.
5737 * target.c (update_current_target): Inherit new target methods.
5738 (dummy_find_memory_regions): New place-holder method.
5739 (dummy_make_corefile_notes): New place-holder method.
5740 (init_dummy_target): Initialize new dummy target vectors.
5741 * exec.c (exec_set_find_memory_regions): New function.
5742 Allow the exec_ops vector for memory regions to be taken over.
5743 (exec_make_note_section): New function, target vector method.
5744 * defs.h (exec_set_find_memory_regions): Export prototype.
5745 * procfs.c (proc_find_memory_regions): New function, corefile method.
5746 (procfs_make_note_section): New function, corefile method.
5747 (init_procfs_ops): Set new target vector pointers.
5748 (find_memory_regions_callback): New function.
5749 (procfs_do_thread_registers): New function.
5750 (procfs_corefile_thread_callback): New function.
5751 * sol-thread.c (sol_find_memory_regions): New function.
5752 (sol_make_note_section): New function.
5753 (init_sol_thread_ops): Initialize new target vectors.
5754 * inftarg.c (inftarg_set_find_memory_regions): New function.
5755 Allow to_find_memory_regions vector to be taken over.
5756 (inftarg_set_make_corefile_notes): New function.
5757 Allow to_make_corefile_notes vector to be taken over.
5758 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
5759 interface layer if not target_has_execution (may be a corefile).
5760 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
5761 * config/sparc/sun4sol2.mh: Ditto.
5762 * config/alpha/alpha-linux.mh: Ditto.
5763 * config/arm/linux.mh: Ditto.
5764 * config/i386/x86-64linux.mh: Ditto.
5765 * config/ia64/linux.mh: Ditto.
5766 * config/m68k/linux.mh: Ditto.
5767 * config/mips/linux.mh: Ditto.
5768 * config/powerpc/linux.mh: Ditto.
5769 * config/sparc/linux.mh: Ditto.
5770
c6b92abd
MS
57712002-01-07 Michael Snyder <msnyder@redhat.com>
5772
5773 * arm-linux-nat.c: Remove references to regcache.c internal data
5774 (registers[] and register_valid[]).
5775
4b09dc8c
MS
57762002-01-07 Michael Snyder <msnyder@redhat.com>
5777
abf22e64
AJ
5778 * linux-proc.c: New file. Implement child_pid_to_exec_file,
5779 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
5780 symbol file and shlibs.
5781 * Makefile.in: Add rule for linux-proc.o.
5782 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
5783 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
5784 * config/arm/linux.mh: Ditto.
5785 * config/i386/linux.mh: Ditto.
5786 * config/i386/x86-64linux.mh: Ditto.
5787 * config/ia64/linux.mh: Ditto.
5788 * config/m68k/linux.mh: Ditto.
5789 * config/mips/linux.mh: Ditto.
5790 * config/powerpc/linux.mh: Ditto.
5791 * config/sparc/linux.mh: Ditto.
5792
c25b74ac
PM
57932002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
5794
5795 * win32-nat.c: Add i386-tdep.h dependency.
5796
94cd915f
MS
57972002-01-07 Michael Snyder <msnyder@redhat.com>
5798
c7cccb76
MS
5799 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
5800 instead of bfd_get_arch_size. Don't bail out just because
5801 there's no exec_bfd.
abf22e64 5802
34c0bd93
MS
5803 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
5804 * p-valprint.c (pascal_object_print_value): Ditto.
5805 * somread.c (som_symtab_read): Ditto.
5806 * symfile.c (simple_free_overlay_region_table): Ditto.
5807 * valops.c (value_assign): Ditto.
5808
21c1c920
MS
5809 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
5810 use tilde_expand and strerror for opening save-tracepoints file.
5811
5bbd998e
MS
5812 * thread-db.c (thread_db_new_objfile): Indendation fix.
5813
94cd915f
MS
5814 * infptrace.c (GDB_MAX_ALLOCA): New define.
5815 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 5816 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
5817 can be overridden with whatever value is appropriate to the host).
5818 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
5819 alloca to allocate potentially large buffer.
5820 * rs6000-nat.c (child_xfer_memory): Ditto.
5821 * symm-nat.c (child_xfer_memory): Ditto.
5822 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
5823
494e8a93
JSC
58242002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
5825
5826 From Nick Clifton <nickc@redhat.com>
5827 * d10v-tdep.c: Set STACK_START to 0x200bffe.
5828
d0e1d48e
MS
58292002-01-07 Michael Snyder <msnyder@redhat.com>
5830
abf22e64 5831 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
5832 Don't use exec_bfd if it's NULL.
5833
290b2c7a
MK
58342002-01-06 Mark Kettenis <kettenis@gnu.org>
5835
abf22e64 5836 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 5837
aef21287
AC
58382002-01-06 Andrew Cagney <ac131313@redhat.com>
5839
5840 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
5841 * gnu-nat.c: Ditto.
5842
30efa627
AC
58432002-01-06 Andrew Cagney <ac131313@redhat.com>
5844
5845 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
5846 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
5847 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
5848 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
5849 z8k-coff have not been multi-arched. Update z8k-coff build
5850 status.
5851
9b4ff276
AC
58522002-01-06 Andrew Cagney <ac131313@redhat.com>
5853
5854 * MAINTAINERS: Mark a29k target as obsolete.
5855 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
5856 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
5857 comments.
5858 * NEWS: Note that a29k targets are obsolete.
5859 * a29k-tdep.c: Mark as obsolete.
5860 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
5861 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
5862 a29k-*-vxworks* targets as obsolete.
5863 * remote-adapt.c: Obsolete.
5864 * remote-eb.c: Obsolete.
5865 * remote-mm.c: Obsolete.
5866 * remote-udi.c: Obsolete.
5867 * config/a29k/a29k-udi.mt: Obsolete.
5868 * config/a29k/a29k.mt: Obsolete.
5869 * config/a29k/tm-a29k.h: Obsolete.
5870 * config/a29k/tm-vx29k.h: Obsolete.
5871 * config/a29k/vx29k.mt: Obsolete.
5872
a9011d31
AC
58732002-01-05 Andrew Cagney <ac131313@redhat.com>
5874
5875 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
5876 with BFD_ENDIAN_BIG.
5877
9299404e
AC
58782002-01-05 Andrew Cagney <ac131313@redhat.com>
5879
5880 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
5881 * configure, config.in: Re-generate.
5882 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
5883 * defs.h: Do not include <endian.h>.
5884
7e89e357
JT
58852002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
5886
5887 * acconfig.h (HAVE_PT_GETXMMREGS): New.
5888 * config.in: Regenerate.
5889 * configure.in: Update copyright years.
5890 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
5891 * configure: Regenerate.
5892 * i386bsd-nat.c: Update copyright years.
5893 (fill_gregset): Use regcache_collect.
5894 (fetch_inferior_registers): Only fetch integer registers
5895 if requested to do so. Add support for XMM registers
5896 using PT_GETXMMREGS.
5897 (store_inferior_registers): Only store integer registers
5898 if requested to do so. Add support for XMM registers
5899 using PT_SETXMMREGS.
5900 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
5901 (store_inferior_registers): Remove.
5902 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
5903 (fetch_elfcore_registers): New function.
5904 (i386nbsd_elfcore_fns): New.
5905 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
5906 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
5907 i386bsd-nat.o.
5908 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5909 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
5910 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
5911 * config/i386/tm-nbsd.h: Update copyright years.
5912 (HAVE_SSE_REGS): Define.
5913 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
5914 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
5915 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
5916 (SIGCONTEXT_PC_OFFSET): Remove.
5917 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
5918
a752853e
AC
59192002-01-05 Andrew Cagney <ac131313@redhat.com>
5920
5921 * configure.tgt: Remove powerpc-*-macos* target.
5922 * config/m68k/xm-mpw.h: Delete file.
5923 * config/xm-mpw.h: Delete file.
5924 * ser-mac.c: Delete file.
5925 * mpw-make.sed: Delete file.
5926 * mpw-config.in: Delete file.
5927 * mac-xdep.c: Delete file.
5928 * mac-gdb.r: Delete file.
5929 * mac-defs.h: Delete file.
5930 * mac-nat.c: Delete file.
5931 * config/powerpc/macos.mh: Delete file.
5932 * config/powerpc/macos.mt: Delete file.
5933 * config/powerpc/nm-macos.h: Delete file.
5934 * config/powerpc/tm-macos.h: Delete file.
5935 * source.c (openp, open_source_file): Remove obsolete code.
5936 * top.c (gdb_readline): Ditto.
5937 * utils.c (query): Ditto.
5938 * event-top.c (display_gdb_prompt): Ditto.
5939 * Makefile.in (ser-mac.o): Delete obsolete target.
5940 * NEWS: Update.
5941
d7449b42
AC
59422002-01-04 Andrew Cagney <ac131313@redhat.com>
5943
5944 * defs.h (BIG_ENDIAN): Delete macro definition.
5945 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
5946 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
5947 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
5948 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
5949 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
5950 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
5951 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
5952 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
5953 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
5954 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
5955 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
5956 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
5957 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
5958 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
5959 * gdbarch.c: Re-generate.
5960
356374e8
DJ
59612002-01-04 Daniel Jacobowitz <drow@mvista.com>
5962
5963 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
5964 for core files.
5965
a2b8f8f8
JT
59662002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5967
5968 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
5969
12466af9
AC
59702002-01-04 Andrew Cagney <ac131313@redhat.com>
5971
5972 * value.h (value_ptr): Delete typedef.
5973
3549ab40
JT
59742002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5975
5976 * i386nbsd-nat.c: Update copyright years.
5977 Include i386-tdep.h.
5978
fedbd091
EZ
59792002-01-04 Elena Zannoni <ezannoni@redhat.com>
5980
5981 * stabsread.c: Update copyright years.
5982
5983 From Debashis Mahata <debashis.mahata@wipro.com>:
5984 (read_struct_fields): Deal with Sun C compiler erroneous stab
5985 output for structs and unions.
fec8b34f 5986 Fix PR gdb/269.
fedbd091 5987
eb43544b
DJ
59882002-01-04 Daniel Jacobowitz <drow@mvista.com>
5989
5990 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
5991 prototype.
5992
1514d34e
DJ
59932002-01-04 Daniel Jacobowitz <drow@mvista.com>
5994
5995 * cp-abi.c: Fix whitespace.
5996 (baseclass_offset): New wrapper function.
5997 * cp-abi.h (baseclass_offset): Add prototype.
5998 (struct cp_abi_ops): Add baseclass_offset pointer.
5999
6000 * valops.c (vb_match): Move to...
6001 * gnu-v2-abi.c (vb_match): here.
6002 * valops.c (baseclass_offset): Move to...
6003 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
6004
6005 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
6006
6007 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
6008 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
6009 * hpacc-abi.c (init_hpacc_ops): Likewise.
6010
7f8c9282
DJ
60112002-01-04 Daniel Jacobowitz <drow@mvista.com>
6012
6013 * valops.c (find_overload_match): Accept obj as a
6014 reference parameter. Update it before returning.
6015 * value.h (find_overload_match): Update prototype.
6016 * eval.c (evaluate_subexp_standard): Pass object to
6017 find_overload_match by reference.
6018
f23631e4
AC
60192002-01-03 Andrew Cagney <ac131313@redhat.com>
6020
6021 * valarith.c: Replace value_ptr with struct value pointer. Remove
6022 register attribute from value declarations.
6023 * valops.c: Ditto.
6024 * value.h: Ditto.
6025 * scm-lang.c (scm_lookup_name): Ditto.
6026
79e10fab 60272002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 6028
79e10fab
AC
6029 Abstract the functionality of iterating over mapped memory
6030 regions into a general purpose iterator function.
abf22e64 6031 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
6032 iterator for memory sections.
6033 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
6034 (solib_mappings_callback): New function, callback for above.
6035 (info_proc_mappings): Reimpliment using iterate_over_mappings.
6036 (info_mappings_callback): New function, callback for above.
6037
6038 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
6039
c5ad026a
MK
60402002-01-01 Mark Kettenis <kettenis@gnu.org>
6041
d2a7c97a
MK
6042 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
6043 * i386-tdep.c: Include "elf-bfd.h".
6044 (process_note_abi_tag_sections): New function.
6045 (i386_gdbarch_init): Add code to recognize various OS/ABI
6046 combinations.
6047
c5ad026a
MK
6048 * maint.c (_initialize_maint_cmds): Add missing \ in
6049 string-literal.
6050
a1a5b71e 6051For older changes see ChangeLog-2001
c906108c
SS
6052\f
6053Local Variables:
6054mode: change-log
6055left-margin: 8
6056fill-column: 74
6057version-control: never
6058End: