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