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