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