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