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