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