]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
2002-10-21 Jim Blandy <jimb@redhat.com>
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9d774e44
EZ
12002-10-21 Jim Blandy <jimb@redhat.com>
2 Elena Zannoni <ezannoni@redhat.com>
3
4 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
5 for thread local storage locations.
6 (struct symbol): Add objfile field.
7 (SYMBOL_OBJFILE): Define.
8 * dwarf2read.c (is_thread_local): New static variable.
9 (new_symbol): If variable is in thread local fill in address class
10 and objfile appropriately.
11 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
12 stack operation.
13 * printcmd.c (address_info): Print the information for thread
14 local storage variable.
15 * findvar.c (read_var_value): In case of thread local variable,
16 defer to the target vector code to compute address.
17
bc4a16ae
EZ
182002-10-21 Elena Zannoni <ezannoni@redhat.com>
19
20 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
21 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
22
407caf07
EZ
232002-10-21 Elena Zannoni <ezannoni@redhat.com>
24
25 * symtab.h (address_class): Rename
26 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
27 * hpread.c (hpread_process_one_debug_symbol): Ditto.
28 * printcmd.c (address_info): Ditto.
29 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
30
005328e3
MK
312002-10-20 Mark Kettenis <kettenis@gnu.org>
32
afdb036a
MK
33 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
34 DBREG_DRX macro to acces debug registers.
35
ca02e098
MK
36 * Makefile.in (i386obsd-tdep.o): New target.
37
03cc47f7
MK
38 * solib-sunos.c: Include "bcache.h" and "regcache.h".
39 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
40
005328e3
MK
41 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
42 * config/i386/obsd.mt: New file.
43 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
44 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
45 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
46 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
47 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
48 * i386obsd-tdep.c: New file.
49
9c96f9f2
AF
502002-10-19 Adam Fedor <fedor@gnu.org>
51
52 * objc-exp.y (name_not_typename): Fix invalid comment.
53
ce1ed485
MK
542002-10-20 Mark Kettenis <kettenis@gnu.org>
55
56 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
57 to allocate partial syms and macro byte caches.
58
1efc7aaa
DC
592002-10-18 David Carlton <carlton@math.stanford.edu>
60
61 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
62
7e1d63ec
AF
632002-10-18 Adam Fedor <fedor@gnu.org>
64
65 * stabsread.c (find_name_end): New function.
66 (define_symbol): Use it.
67
6e8d29a9
DJ
682002-10-18 Daniel Jacobowitz <drow@mvista.com>
69
70 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
71 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
72 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
73 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
74
1efc7aaa 752002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
76
77 * symfile.h: Add opaque declaration for struct obstack.
78 Declare obsavestring to take a const char *.
79 * symfile.c (obsavestring): Make first argument a const char *.
80
1aeae86e
AF
812002-10-16 Adam Fedor <fedor@gnu.org>
82
83 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
84 names when matching breakpoints in current file.
85
8b2dbe47
KB
862002-10-16 Kevin Buettner <kevinb@redhat.com>
87
88 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
89 (read_tag_pointer_type): Add address class support.
90 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
91 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
92 New methods.
93 * gdbarch.h, gdbarch.c: Regenerate.
94 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
95 (make_type_with_address_space, recursive_type_dump): Add address
96 class support.
97 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
98 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
99 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
100
74451869
KD
1012002-10-16 Klee Dienes <kdienes@apple.com>
102
103 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
104 to get the last character of a char[] buffer, not
105 name[sizeof(vptr_name)-1].
106
ff4cb3e8
AF
1072002-10-14 Adam Fedor <fedor@gnu.org>
108
109 * symtab.h: New objc_specific struct.
110 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
111 (SYMBOL_DEMANGLED_NAME): Likewise.
112
da2cf7e0
AF
1132002-10-14 Adam Fedor <fedor@gnu.org>
114
115 * symfile.c (init_filename_language_table): Add ObjC file extension.
116
4a351cef
AF
1172002-10-14 Adam Fedor <fedor@gnu.org>
118
119 * utils.c (puts_filtered_tabular): New function.
120 (fprintf_symbol_filtered): Get ObjC demangled name.
121 * defs.h (puts_filtered_tabular): Declared.
122
9750e763
KB
1232002-10-14 Kevin Buettner <kevinb@redhat.com>
124
125 * c-lang.h (c_type_print_varspec_prefix): Delete.
126 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
127 ``need_post_space'' parameter. Adjust all callers.
128
eee771c1
DJ
1292002-10-14 Daniel Jacobowitz <drow@mvista.com>
130
131 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
132 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
133 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
134 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
135
46c82446
AF
1362002-10-13 Adam Fedor <fedor@gnu.org>
137
138 * source.c (print_source_lines): Update comments.
139
d069f99d
AF
1402002-10-13 Adam Fedor <fedor@gnu.org>
141
142 * valops.c (value_of_local): New function.
143 (value_of_this): Use it.
144 * value.h (value_of_local): Declared.
145
53c551b7
AF
1462002-10-13 Adam Fedor <fedor@gnu.org>
147
148 * parse.c: (length_of_subexp, prefixify_subexp): Handle
149 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
150
eb392fbf
AF
1512002-10-12 Adam Fedor <fedor@gnu.org>
152
153 * language.c (binop_result_type): Add language_objc to case.
154 (integral_type): Likewise.
155 (character_type): Likewise.
156 (string_type): Likewise.
157 (boolean_type): Likewise.
158 (structured_type): Likewise.
159 (binop_type_check): Likewise.
160
e2b23ee9
AF
1612002-10-11 Adam Fedor <fedor@gnu.org>
162
163 * printcmd.c (address_info): Print 'self' for ObjC.
164
b01ab485
AF
1652002-10-11 Adam Fedor <fedor@gnu.org>
166
167 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
168 OP_SELF.
169
806e6073
AF
1702002-10-11 Adam Fedor <fedor@gnu.org>
171
172 * language.h (CAST_IS_CONVERSION): Add language_objc.
173
50f85cdf
AF
1742002-10-11 Adam Fedor <fedor@gnu.org>
175
176 * defs.h (enum language): Add language_objc.
177
0d540cdf
KD
1782002-10-11 Klee Dienes <kdienes@apple.com>
179
180 * findvar.c (read_memory_typed_address): New function.
181 * gdbcore.h (read_memory_typed_address): Add prototype.
182 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
183 to read a value destined for a CORE_ADDR, not read_memory_integer.
184 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
185 (f77_get_dynamic_lowerbound): Ditto.
186
d5dc7960
MH
1872002-10-11 Martin M. Hunt <hunt@redhat.com>
188
189 * utils.c (string_to_core_addr): After turning string into
190 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
191 which will do necessary sign-extension, etc.
192
8343f86c
DJ
1932002-10-11 Daniel Jacobowitz <drow@mvista.com>
194
195 * c-exp.y (THIS): Delete token and grammar rule.
196 (yylex): Don't return THIS.
197 * cp-valprint.c (vtbl_ptr_name_old): Delete.
198 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
199 * demangle.c (cplus_markers): Update comment. Put '$'
200 first. Remove CPLUS_MARKER.
201 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
202 * jv-exp.y (THIS): Delete token and grammar rule.
203 (yylex): Don't return THIS.
204 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
205 * objc-exp.y (THIS): Delete token and grammar rule.
206 (yylex): Don't return THIS.
207 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
208 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
209 (read_member_functions): Likewise for opname.
210 (read_tilde_fields): Use is_cplus_marker.
211
212 * defs.h (CPLUS_MARKER): Don't define.
213 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
214 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
215 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
216 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
217 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
218
219 * config/i386/tm-i386v4.h: Delete file.
220 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
221 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
222 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
223 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
224 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
225 * config/i386/i386sco5.mt (TM_FILE): Likewise.
226 * config/i386/i386v4.mt (TM_FILE): Likewise.
227 * config/i386/ncr3000.mt (TM_FILE): Likewise.
228
967c0d83
MM
2292002-10-10 Marko Mlinar <markom@opencores.org>
230
231 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
232 accidentially not commited 2002-10-09
233 * gdbarch.h, gdbarch.c: Re-generate.
234
f74fa174
MM
2352002-10-09 Marko Mlinar <markom@opencores.org>
236
237 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
238 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
239 * gdbarch.h, gdbarch.c: Re-generate.
240
57349743
JB
2412002-10-08 Petr Sorfa <petrs@caldera.com>
242
243 Revised and re-submitted by John Wolfe <jlw@caldera.com>
244
245 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
246 so we can work on more than one compilation unit at a time. This
247 helps prepare GDB to handle inter-CU die references.
248 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
249 the code to be defined before struct comp_unit_head.
250 (comp_unit_head): Added new members - offset, cu_head,
251 begin_die, next and dwarf2_abbrevs.
252 (dwarf2_abbrevs): Removed single static var; now member of
253 struct comp_unit_head.
254 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
255 members.
256 (psymtab_to_symtab_1): Changed to work with the new
257 struct comp_unit_head.
258 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
259 constructs the dwarf2_abbrevs[] inside the cu_header.
260 (dwarf2_empty_abbrev_table): Now expects a ptr to a
261 dwarf2_abbrev table to clean up.
262 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
263 handling of dwarf2_abbrevs inside the cu_header.
264 (read_partial_die): Now supports the call to the new
265 dwarf2_lookup_abbrev.
266 (read_full_die): Now supports the call to the new
267 dwarf2_lookup_abbrev.
268
4092aadb
CF
2692002-10-06 Christopher Faylor <cgf@redhat.com>
270
271 * Makefile.in (install-gdbtk): Add missing continuation backslash to
272 insure that shell variables, such as "transformed_name" are propagated
273 to later shell statements in rule.
274
af0b2512
MK
2752002-10-06 Mark Kettenis <kettenis@gnu.org>
276
277 * config/i386/nm-i386sco.h: Add protection against
278 multiple-inclusion. Include "i386/nm-i386v.h".
279 (REGISTER_U_ADDR): Remove define.
280 (i386_register_u_addr): Remove prototype.
281
d6020d45
MS
2822002-10-04 Michael Snyder <msnyder@redhat.com>
283
284 * m32r-stub.c (handle_exception): Make sure exception is "trap"
285 before treating it as a single-step event.
286
7248f48e
AF
2872002-10-03 Adam Fedor <fedor@gnu.org>
288
289 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
290 (objc_demangle): Remove assignment in if statements, Replace
291 free with xfree.
292 (add_msglist): Likewise.
293 (end_msglist): Likewise.
294 (complare_selectors): Likewise.
295 (selectors_info): Likewise.
296 (compare_classes): Likewise.
297 (classes_info): Likewise.
298 (print_object_command): Likewise.
299 (find_objc_msgcall_submethod): Replace PTR with void *.
300 * objc-lang.h: Remove check for __STDC__.
301
52c6a6ac
JJ
3022002-10-03 Jeff Johnston <jjohnstn@redhat.com>
303
304 * ui-out.h (ui_out_field_fmt_int): New prototype.
305 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
306 of field width and alignment.
307 * stack.c (print_frame_info_base): When printing frame level, use
308 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
309 PR gdb/192
310
7e3cec17
JJ
3112002-10-03 Jeff Johnston <jjohnstn@redhat.com>
312
313 * MAINTAINERS: Add self to Write After Approval list.
314
a58dd373
EZ
3152002-10-02 Elena Zannoni <ezannoni@redhat.com>
316
317 * infcmd.c (interrupt_target_command_wrapper): Delete.
318 (interrupt_target_command): Make non static.
319 (nofp_registers_info): Make static.
320 * stack.c (return_command_wrapper): Delete.
321 (return_command): Make non static.
322
cee6ddeb
EZ
3232002-10-02 Elena Zannoni <ezannoni@redhat.com>
324
325 * event-top.c (gdb_setup_readline): New function. Code moved from
326 _initialize_event_loop().
327 (_initialize_event_loop): Call gdb_setup_readline().
328
c4ed33b9
AC
3292002-10-02 Andrew Cagney <ac131313@redhat.com>
330
331 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
332 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
333 * gdbarch.h, gdbarch.c: Re-generate.
334
cef4f5dd
DJ
3352002-10-02 Daniel Jacobowitz <drow@mvista.com>
336
337 Fix PR gdb/778
338 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
339 before recursing.
340 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
341 of fill_in_vptr_fieldno.
342
36dc181b 3432002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 344
36dc181b
EZ
345 * inferior.h (registers_info, stepi_command, nexti_command,
346 continue_command, interrupt_target_command): Export from infcmd.c.
347 * frame.h (args_info, selected_frame_level_changed_hook,
348 return_command): Export from stack.c.
349 * v850ice.c (stepi_command, nexti_command, continue_command): use
350 prototypes from inferior.h.
351 * tracepoint.c (registers_info, args_info, locals_info): Use
352 prototypes from frame.h and inferior.h.
353 * Makefile.in (mi-main.o): Add dependency on frame.h.
354
6f99cb26
AC
3552002-10-02 Andrew Cagney <ac131313@redhat.com>
356
da3eff49
AC
357 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
358 value in register 3 adjusted by ppc_gp0_regnum.
359
6f99cb26
AC
360 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
361
da615bee
MM
3622002-10-02 Marko Mlinar <markom@opencores.org>
363
364 * MAINTAINERS: Add myself to the Write After Approval list.
365
d154bee2
AO
3662002-10-01 Alexandre Oliva <aoliva@redhat.com>
367
62a49b2c
AO
368 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
369 of the section for the N64 ABI, fixed.
370
d154bee2
AO
371 * config/mips/tm-irix6.h: Include solib.h.
372
ed348acc
EZ
3732002-10-01 Elena Zannoni <ezannoni@redhat.com>
374
375 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
376 GNU operators.
377
da0f9dcd
AC
3782002-10-01 Andrew Cagney <ac131313@redhat.com>
379
380 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
381 and that "mi0" syntax has been removed.
382
bdf64bac
DC
3832002-09-30 David Carlton <carlton@math.stanford.edu>
384
385 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
386 * ppc-sysv-tdep.c: #include "gdb_string.h".
387 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
388 pacify GCC.
389
54c2a1e6
AC
3902002-10-01 Andrew Cagney <ac131313@redhat.com>
391
392 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
393 "vrsave"'s register number.
394
cedea778
AC
3952002-09-30 Andrew Cagney <ac131313@redhat.com>
396
397 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
398 use frame_unwind_signed_register to obtain the PC.
399 (mips_frame_chain): Handle a generic dummy frame.
400 (mips_init_extra_frame_info): When a generic dummy frame, don't
401 re-compute the frame base.
402 (mips_pop_frame): Handle generic dummy frames.
403 (mips_gdbarch_init): When generic dummy frames, set
404 use_generic_dummy_frames, push_dummy_frame to
405 generic_push_dummy_frame, pc_in_call_dummy to
406 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
407 generic_save_dummy_frame_tos.
408
68315eb8
AC
4092002-09-30 Andrew Cagney <ac131313@redhat.com>
410
411 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
412 against TOP when TOP was explictly set.
413 (generic_push_dummy_frame): Set TOP to zero.
414
3b8630c3
EZ
4152002-09-30 Elena Zannoni <ezannoni@redhat.com>
416
417 * event-loop.c (start_event_loop): Rename variable 'result' to
418 'gdb_result', to avoid conflicts with upcoming intepreters changes.
419
28ee05e9
KS
4202002-09-30 Keith Seitz <keiths@redhat.com>
421
422 * gdb-events.sh (selected_thread_changed): New event.
423 * gdb-events.c: Regenerated.
424 * gdb-events.h: Regenerated.
425
6eecb1c8
HPN
4262002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
427
428 * MAINTAINERS: Add self to Write After Approval list.
429
92df71f0
FN
4302002-09-30 Fernando Nasser <fnasser@redhat.com>
431
3b8630c3
EZ
432 * disasm.c: New file.
433 * disasm.h: New file.
92df71f0
FN
434 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
435 (compare_lines): Ditto.
436 (dump_insns): Ditto.
3b8630c3
EZ
437 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
438 argument.
92df71f0 439 (do_assembly_only): Ditto.
3b8630c3
EZ
440 (do_disassembly): Renamed to gdb_disassembly and moved to
441 disasm.c. Sdded uiout argument.
442 * Makefile.in: Add new files. Reorder SFILES list. Update
443 dependencies. Include libgdb.a later in the insight executable.
92df71f0 444
0c22854d
AC
4452002-09-29 Andrew Cagney <ac131313@redhat.com>
446
447 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
448 bfd/elf64-alpha-fbsd.c.
449
e67f2023
AC
4502002-09-29 Andrew Cagney <ac131313@redhat.com>
451
452 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
453 i386gnu-tdep.c.
454
89396210
AC
4552002-09-29 Andrew Cagney <ac131313@redhat.com>
456
457 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
458 __FUNCTION__.
459 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
460 function name.
461 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
462 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
463 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
464 (S_msg_sig_post_reply): Ditto.
465
7079c36c
CV
4662002-09-28 Corinna Vinschen <vinschen@redhat.com>
467
89396210
AC
468 * sh-tdep.c (sh_use_struct_convention): Use definition according
469 to ABI.
7079c36c
CV
470 (sh_push_arguments): Store in register with correct endianess.
471 (sh_default_store_return_value): Ditto.
472 (sh_gdbarch_init): Set sizeof long double to 8.
473
975ac915
MK
4742002-09-27 Mark Kettenis <kettenis@gnu.org>
475
476 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
477 Fix some whitespace problems.
478
9bbe19fb
DC
4792002-09-27 David Carlton <carlton@math.stanford.edu>
480
481 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
482 (mcore-tdep.o): Ditto.
483 (ns32k-tdep.o): Ditto.
484 (ns32knbsd-tdep.o): Ditto.
485 (sh3-rom.o): Ditto.
486 (vax-tdep.o): Ditto.
487 * cris-tdep.c: #include "gdb_string.h"
488 * mcore-tdep.c: Ditto.
489 * ns32k-tdep.c: Ditto.
490 * ns32knbsd-tdep.c: Ditto.
491 * sh3-rom.c: Ditto.
492 * vax-tdep.c: Ditto.
493
43b2fdc7
DC
4942002-09-27 David Carlton <carlton@math.stanford.edu>
495
496 * config/djgpp/fnchange.lst: Add entries for
497 gdb/testsuite/gdb.c++/m-static files.
498
e8cfbbd9
JW
4992002-09-27 Jim Wilson <wilson@redhat.com>
500
501 * MAINTAINERS: Add myself to the Write After Approval list.
502
43b2fdc7 5032002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
504
505 * mips-tdep.c (find_proc_desc): Initialize startaddr.
506
507
9f3b7f07
AC
5082002-09-26 Andrew Cagney <ac131313@redhat.com>
509
510 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
511 frame.
512
11269d7e
AC
5132002-09-26 Andrew Cagney <ac131313@redhat.com>
514
515 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
516 (rs6000_struct_return_address): Delete variable.
517 (rs6000_store_struct_return): Update.
518 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
519 deprecated_extract_struct_value_address.
520 (rs6000_frame_align): New function.
521 (rs6000_gdbarch_init): Set frame_align.
522
f15ab4a7
AC
5232002-09-26 Andrew Cagney <ac131313@redhat.com>
524
525 From Grace Sainsbury <graces@redhat.com>:
526 * Makefile.in (gdbtk-main.o): New target.
527 (gdb.o): New target.
528 (main_h): Define.
529 (main.o): Update dependencies.
530 (gdb$(EXEEXT)): Add gdb.o.
531 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
532 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
533 (SUBDIR_GDBTK_CLEAN): Set.
534 (install-gdbtk): Install the insight binary.
535 (uninstall-gdbtk): New target.
536 (all-gdbtk, clean-gdbtk): New rule.
537 * top.c (use_windows): Default to zero.
538 * main.c: Include "main.h".
539 (main): Delete.
540 (struct captured_main_args): Delete.
541 (gdb_main): New function.
542 * main.h: New file.
543 * gdb.c: New File.
544
e36180d7
AC
5452002-09-25 Andrew Cagney <cagney@redhat.com>
546
547 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
548 (frame_map_regnum_to_name): New function.
549 (frame_map_name_to_regnum): New function.
550 * frame.h (frame_map_name_to_regnum): Declare.
551 (frame_map_regnum_to_name): Declare.
552 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
553 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
554 * parse.c: Do not include "builtin-regs.h".
555 (target_map_name_to_register): Delete function.
556 (write_dollar_variable): Use frame_map_name_to_regnum.
557 * parser-defs.h (target_map_name_to_register): Delete declaration.
558 * expprint.c: Include "frame.h".
559 (print_subexp): Use frame_map_regnum_to_name.
560 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
561 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
562
8b69000d
AC
5632002-09-25 Andrew Cagney <ac131313@redhat.com>
564
565 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
566 wasn't saved, and the next innermost frame is a dummy, return the
567 dummy frame's link register.
568
046ca86a
JB
5692002-09-24 Jim Blandy <jimb@redhat.com>
570
571 Fix from Paul Breed:
572 * main.c (captured_main): Add a `break' after the case for 'b'.
573
94b66fa7
KS
5742002-09-24 Keith Seitz <keiths@redhat.com>
575
576 * varobj.c (c_type_of_child): Use get_target_type instead
577 of TYPE_TARGET_TYPE.
578
c214a6fd
FN
5792002-09-22 Fernando Nasser <fnasser@redhat.com>
580
53cb0458
FN
581 * source.c (get_current_or_default_source_symtab_and_line): Remove
582 function.
583 (set_default_source_symtab_and_line): New function. Attempts to
584 determine a source file to list lines from if one is not currently
585 defined.
586 (get_current_source_symtab_and_line): Initialize sal.pc and
587 sal.end fields.
588 (set_current_source_symtab_and_line): Mark argument as const.
589 * source.h: Update declarations and comments.
590 * linespec.c (decode_line_1): Replace call to removed routine above.
591 * stack.c (print_frame_info_base): Ditto.
592 * cli/cli-cmds.c (edit_command): Ditto.
593 (list_command): Ditto.
594
5952002-09-22 Fernando Nasser <fnasser@redhat.com>
596
d6020d45 597 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 598 sal.pc and sal.end fields.
c214a6fd
FN
599 (get_current_or_default_source_symtab_and_line): Ditto.
600 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
601 so we do not cause a new source symtab to be searched for (reverting an
602 unintentional change from the 2002-09-20 patch).
603 * scm-lang.c (scm_unpac): Ditto.
604
cc3b68a5
AC
6052002-09-21 Andrew Cagney <cagney@redhat.com>
606
607 * complaints.c (symfile_explanations): Remove new-line from
608 ``isolated_message''.
609 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
610 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
611
5835abe7
NC
6122002-09-20 Nick Clifton <nickc@redhat.com>
613
614 * NEWS: Announce that V850EA ISA is no longer supported.
615 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
616
a15ef5f5
DC
6172002-09-20 David Carlton <carlton@math.stanford.edu>
618
06ba1b39
DC
619 * Makefile.in (c-lang.o): Correct dependencies.
620 (utils.o): Gather dependencies.
621 (charset.o): Move.
a15ef5f5
DC
622 * c-lang.c: #include "gdb_string.h"
623
87885426
FN
6242002-09-20 Fernando Nasser <fnasser@redhat.com>
625
626 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
627 * cli/cli-cmds.c (list_command): New function. Implements the new
628 cli edit command.
629 (_init_cli_cmds): Add new command definition.
630 * gdb.1: Document edit command.
631 * doc/gdb.texinfo: Document edit command.
632
6332002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
634
635 * source.c: Make global variables current_source_symtab and
636 current_source_line static.
637 (list_command): Moved to cli/cli-cmds.c.
638 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
639 (get_first_line_listed): New accessor function.
640 (get_lines_to_list): New accessor function.
641 (get_current_source_symtab_and_line): New function. Retrieves the
642 position in the source code that we consider current.
643 (get_current_or_default_source_symtab_and_line): New function.
644 Like the above but attempts to determine a default position if one
645 is not currently defined.
646 (set_current_source_symtab_and_line): New function. Sets the source
647 code position considered current and returns the previously set one.
648 (clear_current_source_symtab_and_line): Reset stored information about
649 a current source line.
650 (_initialize_source): Remove registration for the "list" command and
651 its alias.
652 * source.h: Add declarations for the new functions above.
653 * symtab.h: Remove declarations for the global variables mentioned
654 above.
655 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
656 obtain current source line.
657 * linespec.c (decode_line_1): Ditto.
658 * macroscope.c (default_macro_scope): Ditto.
659 * scm-lang.c (scm_unpac): Ditto.
660 * stack.c (print_frame_info_base): Ditto.
661 * symfile.c (clear_symtab_users): Ditto.
662 * symtab.c (decode_line_spec): Ditto.
663 * cli/cli-cmds.c (list_command): Moved here from source.c.
664 (ambiguous_line_spec): Moved here from source.c.
665 (_init_cli_cmds): Add definition for "list" and its alias.
666 * Makefile.in: Update dependencies.
667
ddd216ea
CV
6682002-09-20 Corinna Vinschen <vinschen@redhat.com>
669
670 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
671 with what gcc thinks is correct.
672
6d305052
CV
6732002-09-20 Corinna Vinschen <vinschen@redhat.com>
674
675 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
676 multiple register push instruction.
677
234b45d4
KB
6782002-09-19 Jim Blandy <jimb@redhat.com>
679
680 Add support for distinct host and target character sets.
681 * charset.c, charset.h: New files.
682 * c-exp.y: #include "charset.h".
683 (yylex): Convert character and string literals to the target
684 character set, before returning them as the semantic value of the
685 token.
686 * c-lang.c: #include "charset.h".
687 (c_emit_char): Use charset-specific methods to recognize
688 characters with backslash escape forms, to decide which characters
689 to print literally and which to print using numeric escape
690 sequences, and to convert target characters to host characters
691 before printing.
692 * utils.c: #include "charset.h".
693 (no_control_char_error): New function.
694 (parse_escape): Use charset-specific methods to recognize
695 backslash escapes, parse `control character' notation, and convert
696 characters from the host character set to the target character set.
697 * configure.in: Set the default host character set.
698 Check where to find iconv, and what its argument types might be.
699 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
700 * Makefile.in (SFILES): List charset.c.
701 (COMMON_OBS): List charset.o.
702 (charset.o): New rule.
703 (charset_h): New header dependency variable.
704 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
705 (LIBICONV): New variable, set by configure.
706 (CLIBS): Include $(LIBICONV) here.
707 * aclocal.m4, config.in, configure: Regenerated.
708
525d6a61
JB
7092002-09-19 Joel Brobecker <brobecker@gnat.com>
710
711 * ada-exp.y: Add missing semicolons to end rules. Fixes a
712 bison 1.35 warning.
713
3ed93867
RE
7142002-09-19 Richard Earnshaw <rearnsha@arm.com>
715
716 * gdb_mbuild.sh: New file.
717
437666f8
AC
7182002-09-19 Andrew Cagney <ac131313@redhat.com>
719
720 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
721
389e51db
AC
7222002-09-18 Andrew Cagney <ac131313@redhat.com>
723
724 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
725 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
726 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
727 valops.c, value.h: Revert previous change.
728
3b4efeaa
MS
7292002-09-18 Michael Snyder <msnyder@redhat.com>
730
731 Preliminary support for Objective-C:
732 * defs.h (language_objc): New enum value.
733 (puts_filtered_tabular): Declaration only, exported from utils.c.
734 (skip_quoted): Delete, declared in completer.h.
735 * c-exp.y: Include completer.h.
736 * p-exp.y: Ditto.
737 * jv-exp.y: Ditto.
738 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
739 New operator enum values.
740 * language.h (CAST_IS_CONVERSION): Test for language_objc.
741 * language.c (binop_result_type): Handle language_objc case.
742 (integral_type, character_type, string_type, boolean_type,
743 structured_type, binop_type_check): Ditto.
744 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
745 (struct objc_specific): Add to general_symbol_info.
746 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
747 (SYMBOL_DEMANGLED_NAME): Handle objc case.
748 * parser-defs.h (struct objc_class_str): New struct type.
749 (start_msglist, end_msglist, add_msglist): Declaration only,
750 exported from objc-lang.c.
751 * value.h (value_of_local, value_nsstring,
752 call_function_by_hand_expecting_type): Exported from valops.c.
753 * valops.c (find_function_addr): Export.
754 (call_function_by_hand_expecting_type): New function.
755 (value_of_local): New function.
756 * symfile.c (init_filename_language_table): Add ".m" extension
757 for Objective-C.
758 * utils.c (puts_filtered_tabular): New function.
759 (fprintf_symbol_filtered): Add objc demangling support (disabled).
760 (set/show demangle): Extend help-string to refer to ObjC.
761 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
762 * stabsread.c (symbol_reference_defined): Objective-C symbols
763 may contain colons: make allowances when scanning stabs strings
764 for colons.
765 (objc_find_colon): New function.
766 * printcmd.c (address_info): If language == objc then print
767 "self" instead of "this".
768 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
769 OP_NSSTRING, and OP_SELF.
770 (prefixify_subexp): Ditto.
771 * source.c (print_source_lines): Mention objc in comment.
772 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
773 method names.
774
b9caf505
AC
7752002-09-18 Andrew Cagney <ac131313@redhat.com>
776
777 * complaints.h: Update copyright.
778 (struct complaints): Declare.
779 (struct complaint): Make `message' constant.
780 (internal_complaint): Declare.
781 (complaint): Declare.
782 (complaint_root): Delete declaration.
783 (symfile_complaints): Delete declaration.
784 (struct complaints): Add opaque declaration.
785 (clear_complaints): Add a complaints parameter.
786 * complaints.c: Update copyright.
787 (enum complaint_series): Define.
788 (complaint_root): Delete.
789 (struct complaints): Define.
790 (complaint_sentinel, symfile_complaint_book): New variables.
791 (symfile_explanations, symfile_complaints): New variables.
792 New variables.
793 (get_complaints): New function.
794 (vcomplaint): New function.
795 (complaint): New function.
796 (internal_complaint): New function.
797 (complain): Call vcomplain with symfile_complaint.
798 (clear_complaints): Rewrite.
799 (_initialize_complaints): Use add_setshow_command.
800 * Makefile.in (complaints.o): Update dependencies.
801 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
802 to call to clear_complaints.
803 (new_symfile_objfile, reread_symbols): Ditto.
804 (oldsyms_complaint): Delete.
805 (empty_symtab_complaint, unknown_option_complaint): Delete.
806 (free_named_symtabs): Use complaint instead of complain.
807
d2e6263c
MS
8082002-09-18 Michael Snyder <msnyder@redhat.com>
809
5fb2031a
AC
810 Contributed by Apple Computer, Inc. Merged with current sources
811 by Adam Fedor <fedor@doc.com> [cagney].
812
d2e6263c
MS
813 * objc-lang.c: First clean-up round: comments, indentation.
814 * objc-lang.h: Ditto.
815 * objc-lang.y: Ditto.
816
dec43320
AC
8172002-09-18 Andrew Cagney <ac131313@redhat.com>
818
819 * maint.c (maintenance_internal_error): Print the parameter as the
820 error message.
821 (maintenance_internal_warning): New function.
822 (_initialize_maint_cmds): Add command `maint internal-warning'.
823
824 * defs.h (internal_warning, internal_vwarning): Declare.
825 * utils.c (struct internal_problem): Define.
826 (internal_vproblem): New function.
827 (internal_warning): New function.
828 (internal_vwarning): New function.
829 (internal_warning_problem, internal_error_problem): New variables.
830 (internal_verror): Just call internal_vproblem.
831
b81654f1
MS
8322002-09-18 Michael Snyder <msnyder@redhat.com>
833
834 * objc-lang.c: New file, support for Objective-C.
835 Preliminary check-in, not yet integrated into gdb.
836 * objc-lang.h: New file.
837 * objc-exp.y: New file.
838
0542c381
AC
8392002-09-18 Andrew Cagney <ac131313@redhat.com>
840
7bda5e4a
AC
841 * infrun.c (signal_stop_update): Convert definition to ISO C.
842 (signal_print_update): Ditto.
843 (signal_pass_update): Ditto.
844 * inflow.c (terminal_save_ours): Ditto.
845
5247b418
AC
846 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
847 comments.
848
fc60962c
AC
849 * config/djgpp/fnchange.lst: Handle name clashes between
850 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
851 bfd/coff-tic80.c.
852
0542c381
AC
853 * i386-linux-tdep.h: Fix tipo.
854
5b924b9b
AF
8552002-09-18 Adam Fedor <fedor@gnu.org>
856
857 * MAINTAINERS: Add myself to the Write After Approval list.
858
5afc051b
JB
8592002-09-18 Jim Blandy <jimb@redhat.com>
860
861 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
862 texthigh and textlow to reader-specific structs caused
863 objfile_relocate to miss them. This is fixable, but the work that
864 the change was supposed to prepare GDB for never got done anyway.
865
eb944380
DC
8662002-09-18 David Carlton <carlton@math.stanford.edu>
867
868 * MAINTAINERS: Alphabetize Write After Approval list.
869
948e66d9
DJ
8702002-09-18 Daniel Jacobowitz <drow@mvista.com>
871
872 Fix PR gdb/709
873 * values.c (value_static_field): Call read_var_value.
874
dc604539
AC
8752002-09-18 Andrew Cagney <ac131313@redhat.com>
876
877 * valops.c (hand_function_call): Align the initial stack pointer
878 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
879 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
880 return value.
881 * mips-tdep.c (mips_frame_align): New function.
882 (mips_gdbarch_init): Set frame_align.
883 * gdbarch.sh (FRAME_ALIGN): New method.
884 * gdbarch.h, gdbarch.c: Re-generate.
885
cb7e422f
ML
8862002-09-18 Michal Ludvig <mludvig@suse.cz>
887
888 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
889 registers.
890
a094c6fb
AC
8912002-09-17 Andrew Cagney <ac131313@redhat.com>
892
893 * NEWS: Mention that MIPS $fp behavior changed.
894 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
895 reference to FP_REGNUM.
896 (mipsnbsd_cannot_store_register): Ditto.
897 * mips-linux-nat.c: Update copyright.
898 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
899 (mips_linux_cannot_store_register): Ditto.
900 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
901 * config/mips/tm-mips.h: Update copyright.
902 (FP_REGNUM): Delete macro.
903 (MIPS_REGISTER_NAMES): Replace "fp" with "".
904 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
905 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
906 (mips_r3041_reg_names, mips_r3051_reg_names)
907 (mips_r3081_reg_names): Replace "fp" with "".
908 Fix PR gdb/480.
909
45cf40d1
TR
9102002-09-17 Theodore A. Roth <troth@verinet.com>
911
912 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
913 generic_read_register_dummy() (PR gdb/703).
914 (avr_push_return_address): #if 0 out unused vars.
915 (avr_gdbarch_init): Enable use of avr_push_return_address().
916
c7e701b5
MS
9172002-09-17 Michael Snyder <msnyder@redhat.com>
918
d76ba2a5 919 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
920 RTE will take care of it.
921
20bcf01c
AC
9222002-09-17 Andrew Cagney <ac131313@redhat.com>
923
924 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
925 invalid, return SP_REGNUM.
926
009a9971 9272002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
928
929 * mips-tdep.c (mips_pop_frame): Read saved values of floating
930 point registers without sign extension.
931
135c175f
AC
9322002-09-17 Andrew Cagney <cagney@redhat.com>
933
934 * blockframe.c (deprecated_read_register_dummy): Rename
935 generic_read_register_dummy.
936 * frame.c (frame_unwind_signed_register): New function.
937 (frame_unwind_unsigned_register): New function.
938 * frame.h (frame_unwind_signed_register): Declare.
939 (frame_unwind_unsigned_register): Declare.
940 (deprecated_read_register_dummy): Rename
941 generic_read_register_dummy.
942
943 * h8300-tdep.c (h8300_frame_chain): Update.
944 (h8300_frame_saved_pc): Update.
945 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
946 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
947 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
948 (s390_frame_chain): Update.
949 * v850-tdep.c (v850_find_callers_reg): Update.
950 (v850_frame_saved_pc): Update.
951 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
952 (m32r_find_callers_reg): Update.
953 (m32r_frame_saved_pc): Update.
954 * sh-tdep.c (sh_find_callers_reg): Update.
955 (sh64_get_saved_pr): Update.
956 (sh_init_extra_frame_info): Update.
957 (sh_init_extra_frame_info): Update.
958 (sh64_init_extra_frame_info): Update.
959 (sh64_init_extra_frame_info): Update.
960 * mcore-tdep.c (mcore_find_callers_reg): Update.
961 (mcore_frame_saved_pc): Update.
962 (mcore_init_extra_frame_info): Update.
963 * i386-tdep.c (i386_frame_saved_pc): Update.
964 * ia64-tdep.c (ia64_frame_saved_pc): Update.
965 (ia64_init_extra_frame_info): Update.
966 (ia64_init_extra_frame_info): Update.
967 * d10v-tdep.c (d10v_frame_saved_pc): Update.
968 * cris-tdep.c (cris_init_extra_frame_info): Update.
969 * avr-tdep.c (avr_frame_chain): Update.
970 (avr_init_extra_frame_info): Update.
971 (avr_frame_saved_pc): Update.
972 * arm-tdep.c (arm_find_callers_reg): Update.
973 (arm_init_extra_frame_info): Update.
974 (arm_frame_saved_pc): Update.
975
a741e514
TT
9762002-09-17 Tom Tromey <tromey@redhat.com>
977
978 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
979 is "'".
980
d1a8e808
CV
9812002-09-17 Corinna Vinschen <vinschen@redhat.com>
982
983 * MAINTAINERS: Remove "non multi-arched" text from h8300.
984 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
985 NEXT_PROLOGUE_INSN.
986 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
987 NEXT_PROLOGUE_INSN.
988
d9025a18
JB
9892002-09-16 Joel Brobecker <brobecker@gnat.com>
990
991 * osfsolib.c: Remove file, replaced by solib-osf.c.
992 * Makefile.in: Remove compilation rules for osfsolib.c.
993
1b2ef1b6
DC
9942002-09-16 David Carlton <carlton@math.stanford.edu>
995
996 * cp-valprint.c (cp_print_class_method): Correct args to
997 check_stub_method_group.
998
928e48af
CV
9992002-09-16 Corinna Vinschen <vinschen@redhat.com>
1000
1001 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1002 `set architecture'. Unify naming convention of functions.
1003 (h8300_skip_prologue): Improve prologue analysis.
1004 (h8300_push_arguments): Rewritten to more closely match GCC's
1005 bizarre argument-passing behavior, along with the comment describing
1006 said behavior.
1007 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1008 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1009 sim, remote-e7000.c, remote-hms.c and remote.c
1010
5e3397bb
MK
10112002-09-15 Mark Kettenis <kettenis@gnu.org>
1012
1013 * i386-tdep.c (gdb_print_insn_i386): Removed.
1014 (i386_print_insn): New function.
1015 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1016 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1017 tm_print_insn_info.
1018
f710f4fc
MK
10192002-09-14 Mark Kettenis <kettenis@gnu.org>
1020
1021 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1022 zero.
1023
db54fef4
CV
10242002-09-14 Corinna Vinschen <vinschen@redhat.com>
1025
1026 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1027 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1028 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1029
2becadee
CF
10302002-09-13 Christopher Faylor <cgf@redhat.com>
1031
1032 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1033
de17c821
DJ
10342002-09-13 Daniel Jacobowitz <drow@mvista.com>
1035
1036 * gdbtypes.c (check_stub_method): Make static.
1037 (check_stub_method_group): New function.
1038 * gdbtypes.h: Update prototypes.
1039 * cp-support.c: New file.
1040 * cp-support.h: New file.
1041
1042 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1043 (update_method_name_from_physname): New function.
1044 (read_member_functions): Correct method names for operators
1045 and v3 constructors/destructors. Separate v2 constructors and
1046 destructors.
1047 * Makefile.in (stabsread.o): Update dependencies.
1048 (SFILES): Add cp-support.c.
1049 (COMMON_OBS): Add cp-support.o.
1050 (cp_support_h, cp-support.o): Add.
1051
1052 * cp-valprint.c (cp_print_class_method): Call
1053 check_stub_method_group instead of check_stub_method. Remove
1054 extraneous QUITs.
1055 * p-valprint.c (pascal_object_print_class_method): Likewise.
1056 * valops.c (search_struct_method): Likewise.
1057 (find_method_list, value_struct_elt_for_reference): Likewise.
1058
e76cff22
AC
10592002-09-13 Andrew Cagney <cagney@redhat.com>
1060
1061 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1062 * gdbarch.h, gdbarch.c: Regenerate.
1063
905abb3f
AC
10642002-09-13 Andrew Cagney <ac131313@redhat.com>
1065
1066 * frame.c (find_saved_register): Delete function.
1067 * frame.h (find_saved_register): Delete declaration.
1068 Fix PR gdb/631.
1069
64159455
AC
1070Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1071
1072 * mips-tdep.c (read_next_frame_reg): Re-hack using
1073 frame_register_unwind.
1074
795e1e11
AC
1075Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1076
1077 * mips-tdep.c (mips_get_saved_register): Re-hack using
1078 frame_register_unwind.
1079
5720643c
JB
10802002-09-12 Joel Brobecker <brobecker@gnat.com>
1081
1082 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1083 vector. Will be useful for Interix.
1084 * gdbarch.h, gdbarch.c: Regenerate.
1085
1086 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1087 name of the malloc function by NAME_OF_MALLOC.
1088
3bada2a2
JB
10892002-09-12 Joel Brobecker <brobecker@gnat.com>
1090
1091 * value.h (find_function_in_inferior): Add const keyword to
1092 one of the parameters. Allows us to invoke this function with
1093 a const char *.
1094 * valops.c (find_function_in_inferior): Likewise.
1095
3db26b01
JB
10962002-09-12 Joel Brobecker <brobecker@gnat.com>
1097
1098 * exec.c (xfer_memory): Fix compilation warning with old versions
1099 of GCC.
1100 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1101
17c5ed2c
DC
11022002-09-12 David Carlton <carlton@math.stanford.edu>
1103
1104 * symtab.h: Run through gdb_indent.h.
1105 Add 2002 to Copyright year list.
1106
ecd1107e
AM
11072002-09-12 Alan Modra <amodra@bigpond.net.au>
1108
1109 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1110 mach constants.
1111 * MAINTAINERS: Add myself to write after approval list.
1112
e64f66d1
JB
11132002-09-11 J. Brobecker <brobecker@gnat.com>
1114
1115 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1116
f9395794
JB
11172002-09-11 J. Brobecker <brobecker@gnat.com>
1118
1119 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1120 Interix.
1121
1a303dec
MS
11222002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1123
1124 * procfs.c (do_detach): Clear current signal, not just fault.
1125 Corrects problem with breakpoint trap signal leaking to detached
1126 process on Tru64.
1127
c0219d42
MS
11282002-09-10 Michael Snyder <msnyder@redhat.com>
1129
1130 * buildsym.c (finish_block): Protect against null pointer.
1131
9d84ac84
AC
11322002-09-10 Andrew Cagney <cagney@redhat.com>
1133
1134 * infcmd.c (default_print_registers_info): Send all output to
1135 ``file'' instead of ``gdb_stdout''.
1136
77d8f2b4
MS
11372002-09-10 Michael Snyder <msnyder@redhat.com>
1138
1139 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1140 LONGEST, and use signed register read (addresses are sign-
1141 extended for mips).
1142
99656a61
SC
11432002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1144
1145 * event-loop.c (gdb_do_one_event): Make public.
1146 * event-loop.h (gdb_do_one_event): Declare.
1147
da12f4d8
JL
11482002-09-10 Jeff Law <law@redhat.com>
1149
1150 * infttrace.c (child_resume): Simplify and rework to avoid
1151 TT_PROC_CONTINUE.
1152
d0aee0c4
FF
11532002-09-09 Fred Fish <fnf@intrinsity.com>
1154
1155 * printcmd.c (print_scalar_formatted): "len" is the number of
1156 target bytes, NOT the number of target bits.
1157
7cb3ec5e
EZ
11582002-09-09 Elena Zannoni <ezannoni@redhat.com>
1159
1160 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1161 * top.c (init_main): Set rl_terminal_name.
1162
4dc81987
AS
11632002-09-08 Aidan Skinner <aidan@velvet.net>
1164
1165 * ada-lang.c (ada_array_bound, ada_type_match,
1166 _initialize_ada_language): Fix K&R definitions.
1167 * ada-tasks.c (get_current_task): Fix K&R definitions.
1168 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1169
842330b4
CF
11702002-09-07 Christopher Faylor <cgf@redhat.com>
1171
1172 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1173 Add XP.
1174
43156d82
MK
11752002-09-06 Mark Kettenis <kettenis@gnu.org>
1176
66da5fd8
MK
1177 * i386-tdep.c (i386_register_virtual_type,
1178 i386_register_convertible, i386_register_convert_to_virtual,
1179 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1180 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1181 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1182 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1183 Don't set push_arguments twice.
1184
4b218c18
MK
1185 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1186 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1187 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1188 sigtramp_end to NULL.
1189 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1190 defines.
1191 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1192
4cc314d5
MK
1193 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1194 whitespace.
1195
43156d82
MK
1196 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1197 * gdbarch.h, gdbarch.c: Re-generate.
1198 * blockframe.c (find_pc_sect_partial_function): Convert to use
1199 SIGTRAMP_START_P predicate.
1200
6672060b
MS
12012002-09-05 Michael Snyder <msnyder@redhat.com>
1202
a90c3637
MS
1203 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1204 generic_dummy_frame method and old method. Also distinguish
1205 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 1206 (arm_extract_return_value): Use new regcache method.
a90c3637 1207
6672060b
MS
1208 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1209 adjustment that doesn't conform to the ABI.
1210 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1211 saved regcache, not from current regcache.
1212
299ffc64
AC
12132002-09-05 Andrew Cagney <ac131313@redhat.com>
1214
1215 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1216 * README: Update.
1217
a3a2ee65
JT
12182002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1219
1220 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1221 if arm_apcs_32 is false.
1222
2bc7eea9
AC
12232002-09-04 Andrew Cagney <ac131313@redhat.com>
1224
1225 GDB 5.3 branch created.
1226
8a55a7c5
TR
12272002-09-03 Theodore A. Roth <troth@verinet.com>
1228
1229 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1230 generic_unwind_get_saved_register.
1231
e26fb1d7
DC
12322002-09-03 David Carlton <carlton@math.stanford.edu>
1233
1234 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1235 argument (PR gdb/653). Update call to smash_to_method_type.
1236 (read_structure_scope): Update call to dwarf2_add_member_fn.
1237
30d52491
ML
12382002-09-03 Michal Ludvig <mludvig@suse.cz>
1239
1240 * x86-64-linux-tdep.c: Include gdb_string.h
1241 * x86-64-linux-nat.c: Ditto.
1242
06891d83
JT
12432002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1244
1245 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1246 when YYDEBUG is set to 1.
1247 * c-exp.y: Likewise.
1248 * f-exp.y: Likewise.
1249 * jv-exp.y: Likewise.
1250 * m2-exp.y: Likewise.
1251 * p-exp.y: Likewise.
1252
7d400e77
JT
12532002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1254
1255 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1256 dependency list.
1257 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1258 solib_svr4_fetch_link_map_offsets to
1259 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1260 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1261 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1262 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1263 solib-svr4.o, and solib-legacy.o.
1264 * config/i386/tm-nbsd.h: Include solib.h.
1265
704a27c4
JT
12662002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1267
1268 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1269 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1270 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1271 comment noting that this needs its own target configuration.
1272 * config/i386/nbsd.mt: New file.
1273 * config/i386/nbsdaout.mt: Remove.
1274 * config/i386/nbsdelf.mt: Ditto.
1275 * config/i386/tm-nbsdaout.h: Ditto.
1276
d66198e1
JT
12772002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1278
1279 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1280 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1281 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1282 tdep->sigtramp_end.
1283 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1284 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1285 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1286
3cac699e
JT
12872002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1288
1289 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1290 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1291 * i386-tdep.h (i386bsd_init_abi): New prototype.
1292 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1293 function declaration.
1294 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1295 for NetBSD-a.out or NetBSD-ELF.
1296 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1297 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1298 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1299 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1300 and nbsd-tdep.h.
1301 (i386nbsd_pc_in_sigtramp): New function.
1302 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1303 i386nbsd_pc_in_sigtramp.
1304 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1305 and i386nbsdelf_init_abi OS ABI handlers.
1306 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1307 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1308
7010ca0a
MK
13092002-09-02 Mark Kettenis <kettenis@gnu.org>
1310
1311 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1312 registers if the target really has them.
1313
6dd93b72
JT
13142002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1315
1316 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1317 than nbsd-tdep.h.
1318
2ca8ae21
JT
13192002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1320
1321 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1322 list.
1323 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1324 (alphanbsd_skip_sigtramp_frame): New functions.
1325 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1326 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1327 to alphanbsd_sigcontext_addr.
1328
3d9b49b0
JT
13292002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1330
1331 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1332 list.
1333 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1334 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1335 nbsd_pc_in_sigtramp.
1336 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1337 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1338 * nbsd-tdep.c: Include gdb_string.h.
1339 (nbsd_pc_in_sigtramp): New function.
1340 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1341 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1342 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1343 ppcnbsd_pc_in_sigtramp.
1344 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1345 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1346 shnbsd_pc_in_sigtramp.
1347 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1348 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1349 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1350
c860120c
PM
13512002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1352
1353 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1354 watchpoints to NULL.
1355 (insert_breakpoints): set val field of watchpoints if NULL.
1356
1357
c7612d53
JB
13582002-08-29 Jim Blandy <jimb@redhat.com>
1359
1360 * symtab.c (lookup_symbol_aux): In the cases where we find a
1361 minimal symbol of an appropriate name and use its address to
1362 select a symtab to read and search, use `name' (as passed to us)
1363 as the demangled name when searching the symtab's global and
1364 static blocks, not the minsym's name.
1365
66609862
KS
13662002-08-29 Keith Seitz <keiths@redhat.com>
1367
1368 * stack.c (print_frame_info_base): Always set current_source_symtab
1369 and current_source_line.
1370
151fefe2
JB
13712002-08-29 Donn Terry <donnte@microsoft.com>
1372
1373 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1374
bfb3754e
KS
13752002-08-28 Keith Seitz <keiths@redhat.com>
1376
1377 * stack.c (select_frame): Add FIXME concerning selected-frame
1378 events.
1379 (select_frame_command): Send selected-frame-level-changed
1380 event notification, but only if the level actually changed.
1381 (up_silently_base): Add selected-frame-level-changed event
1382 notification.
1383 (down_silently_base): Likewise.
1384
e822a2a0
AC
13852002-08-28 Andrew Cagney <ac131313@redhat.com>
1386
1387 * Makefile.in: Update dependencies for all gdb/*.c files.
1388
309367d4
TT
13892002-08-27 Tom Tromey <tromey@redhat.com>
1390
1391 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1392 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1393 Update dependencies.
1394 * i387-tdep.c: Include gdb_string.h.
1395 * osabi.c: Likewise.
1396 * i386-linux-nat.c: Likewise.
1397 * lin-lwp.c: Likewise.
1398 * ax-gdb.c: Likewise.
1399 * signals/signals.c: Likewise.
1400 * jv-valprint.c: Likewise.
1401 * p-lang.c: Likewise.
1402 * c-valprint.c: Likewise.
1403 * cp-abi.c: Likewise.
1404
e1507482
EZ
14052002-08-27 Elena Zannoni <ezannoni@redhat.com>
1406
1407 * cli/cli-script.h (copy_command_lines): Export.
1408 * breakpoint.c: Include cli/cli-script.h.
1409 * Makefile.in (breakpoint.o): Update dependencies.
1410
c6510018
MS
14112002-08-26 Michael Snyder <msnyder@redhat.com>
1412
1413 * breakpoint.c (insert_breakpoints): Protect all references
1414 to 'process_warning'. Shorten long lines.
1415
c2b8ed2c
MS
14162002-08-26 Joel Brobecker <brobecker@gnat.com>
1417
1418 * cli/cli-script.c (copy_command_lines): New function.
1419 * defs.h (copy_command_lines): Export.
1420 * testsuite/gdb.base/commands.exp: New tests for commands
1421 attached to a temporary breakpoint, and for commands that
1422 delete the breakpoint they are attached to.
1423
14242002-08-26 Michael Snyder <msnyder@redhat.com>
1425
1426 * breakpoint.c (bpstat_stop_status): Instead of copying the
1427 pointer to the breakpoint commands struct, make a new copy
1428 of the struct and point to that.
1429 (bpstat_clear): Free the commands struct.
1430 (bpstat_clear_actions): Free the commands struct.
1431 (bpstat_do_actions): Free the command actions. Also execute
1432 the local cleanups, instead of deleting them.
1433 (delete_breakpoint): Leave the commands field of the bpstat
1434 chain alone -- it will be freed later.
1435
64b84175
KB
14362002-08-26 Kevin Buettner <kevinb@redhat.com>
1437
1438 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1439 deleted in 2002-08-20 commit. This function is still used by
1440 ppc-linux-nat.c.
1441
55970da6
KS
14422002-08-26 Keith Seitz <keiths@redhat.com>
1443
1444 * gdb-events.sh: Add selected-frame-level-changed event.
1445 * gdb-events.c: Regenerated.
1446 * gdb-events.h: Regenerated.
1447
a790ad35
SC
14482002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1449
1450 Fix PR gdb/393:
1451 * inflow.c (terminal_save_ours): New function to save terminal
1452 settings.
1453 * inferior.h (terminal_save_ours): Declare.
1454 * target.c (debug_to_terminal_save_ours): New function.
1455 (cleanup_target): Defaults to_terminal_save_ours.
1456 (update_current_target): Inherit to_terminal_save_ours.
1457 (setup_target_debug): Set to_terminal_save_ours.
1458 * target.h (target_terminal_save_ours): New to save terminal settings.
1459 (target_ops): New member to_terminal_save_ours.
1460 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1461 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1462 * inftarg.c (init_child_ops): Likewise.
1463 * m3-nat.c (init_m3_ops): Likewise.
1464 * procfs.c (init_procfs_ops): Likewise.
1465 * wince.c (init_child_ops): Likewise.
1466 * win32-nat.c (init_child_ops): Likewise.
1467 * sol-thread.c (init_sol_thread_ops): Likewise.
1468
c00dcbe9
MK
14692002-08-26 Mark Kettenis <kettenis@gnu.org>
1470
3d7f4f49
MK
1471 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1472 use regcache_* functions.
1473 (i386_gdbarch_init): Set store_return_value instead of
1474 deprecated_store_return_value.
1475
c00dcbe9
MK
1476 * regcache.c (regcache_raw_write_signed,
1477 regcache_raw_write_unsigned): New functions.
1478 * regcache.h (regcache_raw_write_signed,
1479 regcache_raw_write_unsigned): New prototypes.
1480
0e0d15ca
AC
14812002-08-25 Andrew Cagney <ac131313@redhat.com>
1482
1483 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1484 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1485 source file dependencies. Cleanup corresponding generator rules.
1486
d3b22ed5
AC
14872002-08-25 Andrew Cagney <ac131313@redhat.com>
1488
1489 * regcache.h (register_offset_hack): Declare.
1490 (regcache_cooked_read_using_offset_hack): Declare.
1491 (regcache_cooked_write_using_offset_hack): Declare.
1492
1493 * regcache.c (register_offset_hack): New function.
1494 (regcache_cooked_read_using_offset_hack): New function.
1495 (regcache_cooked_write_using_offset_hack): New function.
1496 (regcache_dump): Check that the registers, according to their
1497 offset, are packed hard against each other.
1498 (cooked_xfer_using_offset_hack): New function.
1499
bb425013
AC
15002002-08-25 Andrew Cagney <ac131313@redhat.com>
1501
1502 * regcache.c (struct regcache_descr): Add field register_type.
1503 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1504 in as a parameter
1505 (init_regcache_descr): Initialize register_type. Pass the descr
1506 to init_legacy_regcache_descr. Use register_type instead of
1507 REGISTER_VIRTUAL_TYPE.
1508 (register_type): New function.
1509 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1510 * regcache.h (register_type): Declare.
1511
d0403e00
AC
15122002-08-25 Andrew Cagney <ac131313@redhat.com>
1513
1514 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1515 instead of deprecated_store_return_value. Fix fallout from
1516 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1517
0ed04cce
AC
15182002-08-25 Andrew Cagney <ac131313@redhat.com>
1519
1520 * regcache.c (max_register_size): New function.
1521 (init_legacy_regcache_descr): Ensure that max_register_size is
1522 large enough for REGISTER_VIRTUAL_SIZE.
1523 * regcache.h (max_register_size): Declare.
1524
46d79c04
AC
15252002-08-24 Andrew Cagney <ac131313@redhat.com>
1526
1527 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1528 store_return_value.
1529 (e500_extract_return_value): Change type of valbuf pointer to
1530 void.
1531
853c7bd0
MK
15322002-08-24 Mark Kettenis <kettenis@gnu.org>
1533
cd87e769
MK
1534 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1535 workaround.
1536
853c7bd0
MK
1537 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1538 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1539 long long) to prevent compiler warning on 64-bit systems.
1540
ebba8386
AC
15412002-08-23 Andrew Cagney <cagney@redhat.com>
1542
1543 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1544 (DEPRECATED_STORE_RETURN_VALUE): New method.
1545 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1546 * gdbarch.h, gdbarch.c: Re-generate.
1547
1548 * values.c (set_return_value): Pass current_regcache to
1549 STORE_RETURN_VALUE.
1550 * arch-utils.h (legacy_store_return_value): Declare.
1551 * arch-utils.c (legacy_store_return_value): New function.
1552 (legacy_extract_return_value): Update parameters.
1553
1554 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1555 STORE_RETURN_VALUE.
1556 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1557 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1558 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1559 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1560 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1561 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1562 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1563 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1564 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1565 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1566
1567 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1568 * i386-tdep.c (i386_extract_return_value): Update.
1569 * arch-utils.c (legacy_extract_return_value): Update.
1570 * frv-tdep.c (frv_gdbarch_init): Update.
1571 * cris-tdep.c (cris_gdbarch_init): Update.
1572 * d10v-tdep.c (d10v_gdbarch_init): Update.
1573 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1574 * m68k-tdep.c (m68k_gdbarch_init): Update.
1575 * mcore-tdep.c (mcore_gdbarch_init): Update.
1576 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1577 * s390-tdep.c (s390_gdbarch_init): Update.
1578 * sparc-tdep.c (sparc_gdbarch_init): Update.
1579 * sh-tdep.c (sh_gdbarch_init): Update.
1580 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1581 * v850-tdep.c (v850_gdbarch_init): Update.
1582 * avr-tdep.c (avr_gdbarch_init): Update.
1583 * ia64-tdep.c (ia64_gdbarch_init): Update.
1584 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1585 * vax-tdep.c (vax_gdbarch_init): Update.
1586 * alpha-tdep.c (alpha_gdbarch_init): Update.
1587 * arm-tdep.c (arm_gdbarch_init): Update.
1588 * mips-tdep.c (mips_gdbarch_init): Update.
1589 * i386-tdep.c (i386_gdbarch_init): Update.
1590
5bd8c6d0
AC
15912002-08-23 Andrew Cagney <ac131313@redhat.com>
1592
1593 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1594 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1595
e73e1724
MK
15962002-08-24 Mark Kettenis <kettenis@gnu.org>
1597
1598 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1599 problems.
1600
3e6564e1
JB
16012002-08-23 Joel Brobecker <brobecker@gnat.com>
1602
1603 * infrun.c (handle_inferior_event): Move a comment outside of a
1604 function call, in order to avoid indent reformatting this part
1605 of the code in an unreadable way.
1606
81d0cc19
GS
16072002-08-23 Grace Sainsbury <graces@redhat.com>
1608
1609 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1610 when breakpoints fail. Move general breakpoint error messages to
1611 insert_breakpoints.
1612 * breakpoint.c (insert_breakpoints): Change warnings when
1613 breakpoints are nto inserted to specify the type. Remove call to
1614 memory_error when hardware breakpoints can't be inserted. Remove
1615 multiple calls to warning so all messages are sent to the user at
1616 once.
1617 (delete_breakpoints): Make insert error messsages more explicit.
1618
17574093
DJ
16192002-08-23 Daniel Jacobowitz <drow@mvista.com>
1620
1621 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1622 gdbserver/ChangeLog.
1623
8acc2935
MK
16242002-08-23 Mark Kettenis <kettenis@gnu.org>
1625
dfe01d39
MK
1626 * i386-tdep.c: Include "objfiles.h".
1627 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1628 skip_trampoline_code.
1629 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1630 (CPLUS_MARKER): Define to '.'.
1631
8acc2935
MK
1632 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1633 member.
1634 (linux_corefile_thread_callback): Increase args->num_notes.
1635 (linux_make_note_section): Initialize thread_args.num_notes, and
1636 use it to determine whether notes for any threads were created.
1637
151fefe2 16382002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1639
1640 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1641 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1642 and PCUNKILL.
1643 (write_with_trace): Conditionalize out the switch branch handling
1644 PCSHOLD if the corresponding macro is not defined. Likewise for
1645 PRSABORT and PRSTOP.
1646 This change will be needed by the Interix port.
1647
e1507482
EZ
16482002-08-22 Elena Zannoni <ezannoni@redhat.com>
1649
1650 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1651 write_register wherever possible instead of manipulating the
1652 register bytes directly.
1653 Assign VALUE_CONTENTS to a variable and use that.
1654 The GPR numbers are now dependent on the architecture.
1655
96ff0de4
EZ
16562002-08-22 Elena Zannoni <ezannoni@redhat.com>
1657
1658 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1659 ev_offset fields.
1660 (skip_prologue): Add support for BookE/e500 instructions.
1661 (e500_extract_return_value): New function.
1662 (frame_get_saved_regs): Add support for saving ev registers and
1663 pseudo gpr's.
1664 (e500_store_return_value): New function.
1665 (rs6000_gdbarch_init): Move up default intializations of
1666 deprecated_extract_return_value and store_return_value. Overwrite
1667 init of store_return_value with e500 specific version.
1668 Set extract_return_value for e500.
1669
fbefca5b
EZ
16702002-08-22 Elena Zannoni <ezannoni@redhat.com>
1671
1672 * blockframe.c (generic_call_dummy_register_unwind): Use
1673 regcache_cooked_read to catch cases in which the variable is
1674 stored in a pseudo register.
1675
4d210288
AC
16762002-08-22 Andrew Cagney <cagney@redhat.com>
1677
1678 * NEWS: Mention that the i960 has been made obsolete.
1679 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1680 i960-tdep.c
1681 (remote-nrom.o): Obsolete target.
1682 (remote-nindy.o, i960-tdep.o): Ditto.
1683 * remote-nrom.c: Make file obsolete.
1684 * remote-nindy.c, remote-vx960.c: Ditto.
1685 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1686 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1687 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1688 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1689 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1690 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1691 i960-*-vxworks* obsolete.
1692 * MAINTAINERS: Note that the i960 is obsolete.
1693
6c0c456d
CV
16942002-08-21 Corinna Vinschen <vinschen@redhat.com
1695
1696 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1697 detach to allow reinitialization.
1698
9f9d12b3
AC
16992002-08-22 Andrew Cagney <ac131313@redhat.com>
1700
1701 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1702 attempt).
1703
ebeb39fe
JB
17042002-08-22 Jim Blandy <jimb@redhat.com>
1705
1706 * coffread.c (coff_symfile_read): Don't try to read the line
1707 number table from disk if the image file doesn't have a symbol
1708 table; we'll never actually look at the info anyway, and Windows
1709 ships DLL's with bogus file offsets for the line number data.
1710
5bf1c677
EZ
17112002-08-21 Elena Zannoni <ezannoni@redhat.com>
1712
1713 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1714 an e500 executable.
1715
71b8ef93
MS
17162002-08-21 Michael Snyder <msnyder@redhat.com>
1717
1718 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1719 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1720 (DEFAULT_MIPS_TYPE): Delete unused macro.
1721 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1722 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1723
d174216d
JB
17242002-08-21 Jim Blandy <jimb@redhat.com>
1725
1726 * valops.c (value_cast): Simplify and correct logic for doing a
1727 static cast from a pointer to a base class to a pointer to a
1728 derived class.
1729
0ab7a791
AC
17302002-08-21 Andrew Cagney <ac131313@redhat.com>
1731
1732 * infcmd.c (default_print_registers_info): Replace
1733 do_registers_info.
1734 (registers_info): Use gdbarch_print_registers_info instead of
1735 DO_REGISTERS_INFO.
1736 * inferior.h (default_print_registers_info): Replace
1737 do_registers_info.
1738 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1739 (DO_REGISTERS_INFO): Change to a predicate function.
1740 * gdbarch.h, gdbarch.c: Regenerate.
1741
e23792cc
KS
17422002-08-21 Keith Seitz <keiths@redhat.com>
1743
1744 * gdb-events.sh: Add target-changed event.
1745 * gdb-events.c: Regenerated.
1746 * gdb-events.c: Regenerated.
1747 * valops.c (value_assign): Add target-changed event notification
1748 to inlval_register, lval_memory, and lval_reg_frame_relative.
1749
9fb14e79
JB
17502002-08-21 Joel Brobecker <brobecker@gnat.com>
1751
1752 * NEWS: Add an entry regarding the improvement of the next/step
1753 operation on Alpha Tru64 multi-processor machines.
1754
6d39a69f
AC
17552002-08-21 Andrew Cagney <ac131313@redhat.com>
1756
72acd513
AC
1757 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1758 directores.
342af04b 1759 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1760 * Makefile.in (install-gdbtk): Move to install section.
1761 (rdi-share/libangsd.a): Move to end of file.
1762
fa5f27c7
AC
17632002-08-19 Andrew Cagney <ac131313@redhat.com>
1764
1765 * frame.c (frame_register_unwind): When a register, set addrp to
1766 the register's byte.
1767
5a89d8aa
MS
17682002-08-20 Michael Snyder <msnyder@redhat.com>
1769
1770 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1771 used locally, so move them from the target machine header to here.
1772 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1773 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1774 Make static.
1775 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1776
822e978b
AC
17772002-08-20 Andrew Cagney <cagney@redhat.com>
1778
1779 * NEWS: Mention that the Apollo line was made obsolete.
1780 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1781 m68*-hp-hpux* obsolete.
1782 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1783 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1784 * buildsym.c (make_blockvector): Make static.
1785 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1786 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1787 (ALLDEPFILES): Remove dstread.c.
1788 (dstread.o): Obsolete make rule.
1789 * dstread.c: Makefile obsolete.
1790 * dst.h: Ditto.
1791 * config/m68k/hp300hpux.mt: Ditto.
1792 * config/m68k/hp300hpux.mh: Ditto.
1793 * config/m68k/hp300bsd.mt: Ditto.
1794 * config/m68k/hp300bsd.mh: Ditto.
1795 * config/m68k/apollo68b.mt: Ditto.
1796 * config/m68k/apollo68v.mh: Ditto.
1797 * config/m68k/apollo68b.mh: Ditto.
1798
e41b17f0
MS
17992002-08-20 Michael Snyder <msnyder@redhat.com>
1800
1801 * mips-tdep.c (mips_in_return_stub): Make static.
1802 (mips_gdbarch_init): Set in_solib_return_trampoline.
1803 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1804
d50355b6
MS
18052002-08-20 Michael Snyder <msnyder@redhat.com>
1806
1807 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1808 * gdbarch.c, gdbarch.h: Regenerate.
1809 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1810 Add.
1811 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1812
757a7cc6
MS
18132002-08-20 Michael Snyder <msnyder@redhat.com>
1814
1815 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1816 (mips_gdbarch_init): Set skip_trampoline_code,
1817 in_solib_call_trampoline.
1818 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1819 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1820
c8001721
EZ
18212002-08-20 Elena Zannoni <ezannoni@redhat.com>
1822
1823 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1824
1825 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1826 vector type for ev registers.
1827 (e500_pseudo_register_read): New function.
1828 (e500_pseudo_register_write): New function.
1829 (e500_dwarf2_reg_to_regnum): New function.
1830 (PPC_UISA_NOFP_SPRS): New macro.
1831 (PPC_EV_REGS): New macro.
1832 (PPC_GPRS_PSEUDO_REGS): New macro.
1833 (registers_e500): New register set for e500.
1834 (variants): Add e500 variant.
1835 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1836 before setting architectural dependent variations. Initialize ev
1837 registers numbers. Add case for e500 architecture. Set the
1838 number of pseudo registers.
1839
64366f1c
EZ
18402002-08-20 Elena Zannoni <ezannoni@redhat.com>
1841
1842 * rs6000-tdep.c: Clean up comments.
1843
7e78f0ca
AC
18442002-08-20 Andrew Cagney <cagney@redhat.com>
1845
1846 * h8300-tdep.c: Re-indent file.
1847
697f7479
JB
18482002-08-20 Jim Blandy <jimb@redhat.com>
1849
1850 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1851 default for this.
697f7479 1852
e86ae29f
KS
18532002-08-20 Keith Seitz <keiths@redhat.com>
1854
1855 * breakpoints.c (watch_command_1): Use internal breakpoint
1856 when setting a watchpoint_scope breakpoint.
1857
216b504f
EZ
18582002-08-20 Elena Zannoni <ezannoni@redhat.com>
1859
1860 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1861 (build_builtin_type_vec64i): Ditto.
1862 (build_builtin_type_vec128): Ditto.
1863 (build_builtin_type_vec128i): Ditto.
1864
f7ab6ec6
MS
18652002-08-19 Michael Snyder <msnyder@redhat.com>
1866
1867 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1868 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1869 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1870 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1871 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1872 CALL_DUMMY_ADDRESS): Delete.
1873 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1874 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1875 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1876 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1877 push_return_address.
1878 (mips_register_raw_size, mips_eabi_use_struct_convention,
1879 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1880 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1881 mips_init_extra_frame_info, mips_eabi_push_arguments,
1882 mips_n32n64_push_arguments, mips_push_return_address,
1883 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1884 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1885
b5d1566e
MS
18862002-08-19 Michael Snyder <msnyder@redhat.com>
1887
1888 * mips-tdep.c (mips_frame_num_args): New function.
1889 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1890 frame_saved_pc, frame_args_address, frame_locals_address,
1891 frame_num_args, and frame_args_skip.
1892 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1893 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1894 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1895 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1896
2f1488ce
MS
18972002-08-20 Michael Snyder <msnyder@redhat.com>
1898
1899 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1900 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1901 * mips-tdep.c (mips_store_struct_return): New function.
1902 (mips_extract_struct_value_address): New function.
1903 (mips_gdbarch_init): Set store_struct_return and
1904 extract_struct_value_address.
1905
41ff2da1
DC
19062002-08-20 David Carlton <carlton@math.stanford.edu>
1907
1908 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1909 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1910 (read_file_scope): Check that line_header is nonzero before
1911 decoding macro information.
1912
e5451d58
MK
19132002-08-20 Mark Kettenis <kettenis@gnu.org>
1914
1915 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1916 flag the general-purpose registers as floating-point on targets
1917 that don't support the floating-point registers.
1918
4a6daafa
EZ
19192002-08-20 Elena Zannoni <ezannoni@redhat.com>
1920
1921 * rs6000-tdep.c (altivec_register_p): Delete.
1922 (rs6000_do_altivec_registers): Delete.
1923 (rs6000_altivec_registers_info): Delete.
1924 (rs6000_do_registers_info): Delete.
1925 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1926 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1927
ab4327e0
EZ
19282002-08-20 Elena Zannoni <ezannoni@redhat.com>
1929
1930 * infcmd.c (do_registers_info): Print vector registers in hex
1931 format only.
1932 (print_vector_info): Check that printing registers
1933 makes sense.
1934 (print_float_info): Ditto.
1935
cb1d2653
AC
19362002-08-20 Andrew Cagney <ac131313@redhat.com>
1937
1938 * mips-tdep.c (mips_gdbarch_init): Update.
1939 (mips_o32_extract_return_value): Rewrite.
1940 (mips_o32_store_return_value): Rewrite.
1941 (mips_o32_xfer_return_value): New function.
1942 (mips_xfer_register): Tweak debug print message. Allow for
1943 buf_offset when dumping the value transfered.
1944
dfc3d9b2
AC
19452002-08-20 Andrew Cagney <ac131313@redhat.com>
1946
1947 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1948 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1949 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1950 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1951 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1952
7807aa61
MS
19532002-08-14 Michael Snyder <msnyder@redhat.com>
1954
1955 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1956
489461e2
EZ
19572002-08-19 Elena Zannoni <ezannoni@redhat.com>
1958
1959 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1960 register.
1961 (P): New macro to define a register as a pseudo register.
1962 (R, R4, R8, R16, FR32, R64, R0): Updated.
1963 (struct variant): Add new fields for number of pseudo registers
1964 and number of total registers.
1965 (tot_num_registers): New macro replacing....
1966 (num_registers): ...deleted macro.
1967 (num_registers): New function.
1968 (num_pseudo_registers): New function.
1969 (variants): Update all variants to intialize new fields correctly.
1970 Postpone initialization of number of pseudo regs and real regs.
1971 (init_variants): New function.
1972 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1973 registers offsets.
1974
fcaffe4c
DC
19752002-08-19 David Carlton <carlton@math.stanford.edu>
1976
2c2738a0
DC
1977 * valops.c (search_struct_field): Change error message to treat
1978 return value of 0 from value_static_field as meaning that field is
1979 optimized out.
1980 (value_struct_elt_for_reference): Ditto.
1981 * values.c (value_static_field): Treat an unresolved location the
1982 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
1983 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1984 enclosed. Fix PR gdb/574.
fcaffe4c
DC
1985 * MAINTAINERS: Add self to Write After Approval list.
1986
88658117
AC
19872002-08-19 Andrew Cagney <ac131313@redhat.com>
1988
1989 * mips-tdep.c (mips_xfer_register): New function.
1990 (mips_n32n64_extract_return_value): Rewrite.
1991 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1992 instead of deprecated_extract_return_value.
1993
21283beb
EZ
19942002-08-19 Elena Zannoni <ezannoni@redhat.com>
1995
1996 * rs6000-tdep.c (TDEP): Delete macro.
1997 (branch_dest): Replace use of TDEP macro with its body.
1998 (rs6000_pop_frame): Ditto.
1999 (rs6000_push_arguments): Ditto.
2000 (rs6000_skip_trampoline_code): Ditto.
2001 (rs6000_frame_saved_pc): Ditto.
2002 (rs6000_frame_chain): Ditto.
2003 (rs6000_register_name): Ditto.
2004 (rs6000_register_byte): Ditto.
2005 (rs6000_register_raw_size): Ditto.
2006 (rs6000_register_virtual_type): Ditto.
2007 (rs6000_register_convertible): Ditto.
2008 (rs6000_convert_from_func_ptr_addr): Ditto.
2009
bf072999
DJ
20102002-08-19 Daniel Jacobowitz <drow@mvista.com>
2011
2012 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2013 conditionally.
2014 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2015 MIPS_LINUX_JB_ELEMENT_SIZE.
2016 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2017 for MAX_REGISTER_RAW_SIZE arrays.
2018 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2019 MIPS_LINUX_JB_ELEMENT_SIZE.
2020
9b949a49
PM
20212002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2022
2023 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2024
6d3e79c6
AS
20252002-08-19 Aidan Skinner <aidan@velvet.net>
2026
2027 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2028 ada-valprint.c ada-tasks.c.
2029 (YYFILES): Add ada-exp.y.
2030 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2031 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2032 (ada-exp.tab.o): New target.
2033
06c0b04e
AC
20342002-08-18 Andrew Cagney <ac131313@redhat.com>
2035
2036 * regcache.c (regcache_xfer_part): New function.
2037 (regcache_raw_read_part): New function.
2038 (regcache_raw_write_part): New function.
2039 (regcache_cooked_read_part): New function.
2040 (regcache_cooked_write_part): New function.
2041 * regcache.h (regcache_raw_read_part): Declare.
2042 (regcache_raw_write_part): Declare.
2043 (regcache_cooked_read_part): Declare.
2044 (regcache_cooked_write_part): Declare.
2045
92d1e331
DJ
20462002-08-18 Daniel Jacobowitz <drow@mvista.com>
2047
2048 * remote.c (remote_open_1): Add async_p.
2049 (remote_async_open_1): Delete.
2050 (open_remote_target): Delete.
2051 (remote_open, extended_remote_open): Update calls to remote_open_1.
2052 (remote_async_open, extended_remote_async_open): Call
2053 remote_open_1 instead of remote_async_open_1.
2054
247055de
MK
20552002-08-19 Mark Kettenis <kettenis@gnu.org>
2056
2057 * blockframe.c: Fix a few coding standard violations.
2058
641eda39
MK
20592002-08-19 Mark Kettenis <kettenis@gnu.org>
2060
0b717710
MK
2061 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2062 here from ...
2063 * config/i386/tm-i386sco5.h: ... here. File removed.
2064 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2065
26d28e12 2066 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
2067 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2068 (TM_FILE): Set to tm-i386.h.
2069 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2070 * config/i386/tm-i386v.h: Remove file.
2071 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2072 instead of "i386/tm-i386v.h".
2073 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2074 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2075 "i386/tm-i386v.h".
2076 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2077 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2078 "i386/tm-i386.h".
2079
d4e0bab4
MK
20802002-08-18 Mark Kettenis <kettenis@gnu.org>
2081
2082 * config/i386/nm-i386v.h: Add protection against
2083 multiple-inclusion.
2084 (i386_register_u_addr): Remove prototype.
2085 (register_u_addr): New prototype.
2086 (REGISTER_U_ADDR): Redefine accordingly.
2087 * i386v-nat.c: Improve several comments.
2088 (i386_register_u_addr): Change signature and rename to
2089 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2090 ubase variable.
2091
46cac009
AC
20922002-08-18 Andrew Cagney <ac131313@redhat.com>
2093
2094 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2095 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2096 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2097 deprecated_extract_return_value.
2098 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2099 rename mips_o32o64_push_arguments.
2100 (mips_gdbarch_init): Update.
2101 (mips_extract_return_value): Delete.
2102 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2103 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2104 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2105 (mips_n32n64_extract_return_value): Clone
2106 mips_extract_return_value.
2107 (mips_store_return_value): Delete.
2108 (mips_o32_store_return_value): Clone mips_store_return_value.
2109 (mips_o64_store_return_value): Clone mips_store_return_value.
2110 (mips_eabi_store_return_value): Clone mips_store_return_value.
2111 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2112
d2e4a39e
AS
21132002-08-18 Aidan Skinner <aidan@velvet.net>
2114
0c30c098
AS
2115 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2116 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2117
21182002-08-18 Aidan Skinner <aidan@velvet.net>
2119
2120 * ada-lang.c: Run through gdb_indent.sh.
2121 * ada-lang.h: Run through gdb_indent.sh.
2122 * ada-tasks.c: Run through gdb_indent.sh.
2123 * ada-typeprint.c: Run through gdb_indent.sh.
2124 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 2125
01fc4e33
AC
21262002-08-18 Andrew Cagney <ac131313@redhat.com>
2127
2128 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2129 ABI.
2130
d8ee244c
MK
21312002-08-18 Mark Kettenis <kettenis@gnu.org>
2132
c38d8261
MK
2133 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2134
222db64c
MK
2135 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2136 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2137
c2848c82
MK
2138 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2139 write_register_gen instead of write_register_bytes.
2140
d8ee244c
MK
2141 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2142 i[3456]-*-osf1mk* configurations have been made obsolete.
2143 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2144 i[3456]86-*-osf1mk* hosts obsolete.
2145 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2146 targets obsolete.
2147 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2148 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2149 config/i386/i386m3.mt, config/i386/nm-m3.h,
2150 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2151 config/i386/i386mk.mh, config/i386/i386mk.mt,
2152 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2153 obsolete.
2154 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2155 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2156 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2157
61d8d407
AC
21582002-08-18 Andrew Cagney <ac131313@redhat.com>
2159
2160 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2161 (hppa_value_returned_from_stack): Declare.
2162 (hppa_extract_return_value): Declare.
2163 * config/pa/hppa.mt: New file.
2164 * configure.tgt: Recognize hppa*-*-*.
2165 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2166
0c52bd59
MK
21672002-08-18 Mark Kettenis <kettenis@gnu.org>
2168
2169 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2170 comment.
2171
b5686e99
MK
21722002-08-17 Mark Kettenis <kettenis@gnu.org>
2173
2174 * top.c (gdb_rl_operate_and_get_next): Make sure
2175 operate-and-get-next functions correctly even when the history
2176 list is completely filled.
2177
c1bab85b
AC
21782002-08-18 Andrew Cagney <ac131313@redhat.com>
2179
2180 * MAINTAINERS (Target Instruction Set Architectures): Rename
2181 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2182 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2183 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2184 already listed under Host/Native.
2185
2186 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2187 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2188 mips*-*-*.
2189
32089c7c
AC
21902002-08-17 Andrew Cagney <ac131313@redhat.com>
2191
2192 * config/ia64/ia64.mt: New file.
2193 * config/alpha/alpha.mt: New file.
2194 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2195 ia64-linux-gnu. Mention that ia64-elf is broken.
2196 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2197
b4671f85
MK
21982002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2199
2200 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2201 generic_func_frame_valid instead of func_frame_valid.
2202
c8edd8b4
JB
22032002-08-16 Joel Brobecker <brobecker@gnat.com>
2204
2205 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2206 procfs appears to be broken when debugging on multi-processor
2207 machines. So enable software single stepping in order to avoid
2208 using the procfs interface to do next/step operations, using
2209 internal breakpoints instead.
2210
2211 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2212 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2213 make this pc address equal to the value it would have if the
2214 system stepping capability was used. Also set a new flag used
2215 to ensure that we don't readjust the PC one more time later.
2216
2217 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2218 address by DECR_PC_AFTER_BREAK when software single step is
2219 in use for this architecture, as this has already been taken
2220 care of in handle_inferior_event().
2221
238617f6
JB
22222002-08-16 Joel Brobecker <brobecker@gnat.com>
2223
2224 * infrun.c (handle_inferior_event): Minor reformatting, to make
2225 a rather long condition expression easier to read.
2226
541a7aac
AC
22272002-08-16 Andrew Cagney <ac131313@redhat.com>
2228
2229 * Makefile.in (gdbtk.o): Move to end of file.
2230 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2231 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2232 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2233 (gdbtk-wrapper.o, gdbres.o): Ditto.
2234
f92d4a7b
AC
22352002-08-16 Andrew Cagney <ac131313@redhat.com>
2236
2237 * Makefile.in (copying.o): Separate out compile rule.
2238 (hpux-thread.o, procfs.o, signals.o): Ditto.
2239 (v850ice.o, z8k-tdep.o): Ditto.
2240 (tui-file.o): Move to TUI section.
2241 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2242 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2243
1cce71eb
JB
22442002-08-16 Joel Brobecker <brobecker@gnat.com>
2245
2246 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2247 skip_trampoline_code, for better namespace-proofing.
2248
2249 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2250
0851f23d
JB
22512002-08-16 Joel Brobecker <brobecker@gnat.com>
2252
2253 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2254
f8d40ec8
JB
22552002-08-16 Joel Brobecker <brobecker@gnat.com>
2256
2257 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2258 signal, check whether we hit a breakpoint before checking for a
2259 single step breakpoint. Otherwise, GDB fails to notice that a
2260 breakpoint has been hit when stepping onto a breakpoint.
2261
63d022e0
KS
22622002-08-16 Keith Seitz <keiths@redhat.com>
2263
2264 * gdb-events.sh (clear_gdb_event_hooks): New function.
2265 * gdb-events.c: Regenerate.
2266 * gdb-events.h: Regenerate.
2267
6e31adb3
AC
22682002-08-16 Andrew Cagney <ac131313@redhat.com>
2269
2270 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2271 not_a_sw_breakpoint.
2272 * breakpoint.h (bpstat_stop_status): Add parameter names.
2273
c8189ed1
GS
22742002-08-16 Grace Sainsbury <graces@redhat.com>
2275
2276 * remote.c (remote_insert_hw_breakpoint)
2277 (remote_remove_hw_breakpoint): Fix calculation of length field
2278 for Z-packet.
2279
d05285fa
MS
22802002-08-15 Michael Snyder <msnyder@redhat.com>
2281
466d7106
MS
2282 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2283 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2284 (supply_fpregset): Ditto.
2285
d05285fa
MS
2286 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2287 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2288 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 2289 (TARGET_READ_SP): Delete.
bf1f5b4c 2290 (DO_REGISTERS_INFO): Delete.
102182a9
MS
2291 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2292 Delete.
2293 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2294 from macros to functions.
bf1f5b4c 2295
d05285fa
MS
2296 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2297 (mips_register_convertible, mips_register_convert_to_virtual,
2298 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
2299 (mips_read_sp): New function.
2300 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
2301 (mips_do_registers_info): Make static.
2302 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
2303 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2304 (mips_register_convert_from_type, mips_register_convert_to_type):
2305 New functions.
2306 (mips_gdbarch_init): Set up function_start_offset,
2307 register_virtual_size, pc_in_sigtramp.
d05285fa 2308
e76f1f2e
AC
23092002-08-15 Andrew Cagney <ac131313@redhat.com>
2310
2311 * infcmd.c (vector_info): New function.
2312 (_initialize_infcmd): Add command "info vector".
2313 (print_vector_info): New function.
2314
2315 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2316 * gdbarch.h, gdbarch.c: Regenerate.
2317
4782dc19
AC
23182002-08-15 Andrew Cagney <ac131313@redhat.com>
2319
2320 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2321 ``print_all''. Only print vector registers when ``print_all''.
2322
23e3a7ac
AC
23232002-08-15 Andrew Cagney <ac131313@redhat.com>
2324
8e186fd6
AC
2325 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2326 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2327
23e3a7ac
AC
2328 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2329 Add `args' parameter.
2330 * gdbarch.h, gdbarch.c: Regenerate.
2331
2332 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2333
2334 * infcmd.c (float_info): Call print_float_info.
2335 (print_float_info): New function. By default, print the
2336 floating-point registers.
2337
2338 * arch-utils.h (default_print_float_info): Delete declaration.
2339 * arch-utils.c (default_print_float_info): Delete function.
2340
e0ca2bb9
MK
23412002-08-16 Mark Kettenis <kettenis@gnu.org>
2342
3f733acc
MK
2343 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2344 out define.
2345
7d8d2918
MK
2346 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2347 FRAME.
2348
1c7cc583
MK
2349 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2350 * configure.host: Make i[3456]86-*-aix host obsolete.
2351 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2352 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2353 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2354 config/i386/xm-i386aix.h: Make files obsolete.
2355 * i386aix-nat.c: Make file obsolete.
2356 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2357 (i386aix-nat.o): Make target obsolete.
2358
e0ca2bb9
MK
2359 * config/i386/nm-gnu.h: Removed.
2360 * config/i386/nm-i386gnu.h: New file.
2361 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2362 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2363 Moved here from ...
2364 * config/i386/tm-i386gnu.h: ... here. Removed.
2365 * config/i386/xm-i386gnu.h: Removed.
2366 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2367 (NAT_FILE): Set to nm-i386gnu.h.
2368 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2369 * i386-tdep.c: New file.
2370 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2371 (i386gnu-tdep.o): Specify dependencies.
2372
16057ec7 23732002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2374
6b99ee2e
MK
2375 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2376 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2377 Adjust a few comments to reflect reality a bit closer.
2378 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2379 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2380 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2381 target_insert_watchpoint, target_remove_watchpoint):
2382 Move defines to ...
2383 * config/i386/nm-i386sco5.h: ... here.
2384 (kernel_u_size): Add prototype. Improve a few comments and add
2385 protection against multiple inclusion.
2386
d9a6f65c
MK
2387 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2388 out define.
2389
047eff6a
MK
2390 * uw-thread.c (SP_ARG0): Define if not already defined.
2391 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2392
dcdb1290
MK
2393 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2394
5d2d0b2a
MK
2395 * config/i386/tm-i386.h: Don't include "regcache.h".
2396
61113f8b
MK
2397 * i387-tdep.h (i387_print_float_info): New prototype.
2398 * i387-tdep.c (print_i387_value, print_i387_ext,
2399 print_i387_status_word, print_i387_control_word): Add `struct
2400 ui_file *' argument and use it for output.
2401 (i387_print_float_info): Renamed from i387_float_info. Add
2402 `struct gdbarch *' and `struct ui_file *' arguments and use the
2403 latter for output.
2404 * i386-tdep.c: Include "i387-tdep.h".
2405 (i386_gdbarch_init): Set print_float_info.
2406 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2407 (FLOAT_INFO): Remove define.
2408
46e0f506
MS
24092002-08-13 Michael Snyder <msnyder@redhat.com>
2410
2411 * mips-tdep.c (mips_push_arguments): Rename to
2412 mips_eabi_push_arguments, and tune for EABI.
2413 (MIPS_REGS_HAVE_HOME_P): Delete.
2414 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2415 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2416 Delete references to mips_regs_have_home_p.
2417
409268de
KS
24182002-08-14 Keith Seitz <keiths@redhat.com>
2419
2420 * Makefile.in (install-gdbtk): Create insight plugin directory.
2421 Install plugins.tcl file.
2422
ffc6a242
KS
24232002-08-14 Keith Seitz <keiths@redhat.com>
2424
2425 * configure.in: Move SUBDIRS to near top of the file so that
2426 --enable options may add things to it.
2427 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2428 * configure: Regenerate.
2429
ebafbe83
MS
24302002-08-13 Michael Snyder <msnyder@redhat.com>
2431
2432 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2433 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2434 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2435
32f6f25d
AC
24362002-08-13 Andrew Cagney <ac131313@redhat.com>
2437
2438 * vax-tdep.c (vax_get_saved_register): Delete function.
2439 (vax_gdbarch_init): Update.
2440 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2441 (ns32k_gdbarch_init): Update.
2442 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2443 (alpha_gdbarch_init): Update.
2444
53826de9
AC
24452002-08-13 Andrew Cagney <cagney@redhat.com>
2446
2447 * regcache.c (init_regcache_descr): Overallocate the
2448 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2449 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2450 nr_raw_registers.
2451 (set_register_cached): Add range checking assertions. Use
2452 current_regcache.
2453
16057ec7 24542002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2455
2456 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2457 numbers for MMX registers.
2458
7b4c2dce
AC
24592002-08-13 Andrew Cagney <cagney@redhat.com>
2460
2461 * i386-tdep.c (i386_gdbarch_init): Use
2462 generic_unwind_get_saved_register.
2463
1e03ad20
KB
24642002-08-13 Kevin Buettner <kevinb@redhat.com>
2465
2466 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2467 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2468 target vector.
2469 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2470 Delete. Add comment regarding this now-deleted target method.
2471
548bcbec
SC
24722002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2473
2474 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2475 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2476 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2477 real PC and the page number (if it's within the memory bank window).
2478 (m68hc11_pseudo_register_write): Likewise when saving.
2479 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2480 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2481 (m68hc11_register_raw_size): And use 32-bit for it.
2482 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2483 16K memory bank is used by the prog; also use the virtual pc.
2484
7df11f59
SC
24852002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2486
2487 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2488 (m68hc11_gdbarch_init): Install it in gdbarch.
2489 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2490 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2491 (MSYMBOL_SIZE): New for documentation.
2492 (insn_return_kind): Enum to specify how a function returns.
2493 (frame_extra_info): Cleanup and record the return mode.
2494 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2495 register in address computation.
2496 (m68hc11_get_return_insn): New to obtain the return instruction used
2497 by the function.
2498 (m68hc11_frame_init_saved_regs): Take into account the return
2499 instruction used by the function for far and interrupt functions.
2500 (m68hc11_init_extra_frame_info): Take into account page register.
2501 (m68hc11_frame_args_address): Adjust according to the return mode.
2502 (show_regs): Print page register only when it's used.
2503
5706502a
SC
25042002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2505
2506 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2507 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2508 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2509 registers.
2510 (m68hc11_register_raw_size): Likewise.
2511
28fc6740
AC
25122002-08-13 Andrew Cagney <cagney@redhat.com>
2513
2514 * i386-tdep.c (i386_register_name): Handle mmx registers.
2515 (mmx_regnum_p): New function.
2516 (i386_mmx_names): New array.
2517 (mmx_num_regs): New variable.
2518 (i386_pseudo_register_read): New function.
2519 (i386_pseudo_register_write): New function.
2520 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2521
2522 * regcache.c (regcache_raw_read_unsigned): New function.
2523 (regcache_raw_read_signed): New function.
2524 * regcache.h (regcache_raw_read_unsigned): Declare.
2525 (regcache_raw_read_signed): Declare.
2526
a378f419
AC
25272002-08-13 Andrew Cagney <cagney@redhat.com>
2528
2529 * regcache.c (regcache_raw_read_as_address): Delete function.
2530 (regcache_cooked_read_signed): New function.
2531 (regcache_cooked_read_unsigned): New function.
2532 * regcache.h (regcache_cooked_read_signed): Declare.
2533 (regcache_cooked_read_unsigned): Declare.
2534 (regcache_raw_read_as_address): Delete declaration.
2535
2536 * blockframe.c (generic_read_register_dummy): Use
2537 regcache_cooked_read_unsigned.
2538 * i386-tdep.c (i386_extract_struct_value_address): Use
2539 regcache_cooked_read_unsigned.
2540
81967506
SC
25412002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2542
2543 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2544 double sizes according to ELF ABI flags.
2545 (gdbarch_tdep): Record elf_flags.
2546
ffe1f3ee
SC
25472002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2548
2549 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2550 (m6812_prolog): They can appear in 68HC12 function prologue.
2551 (m68hc11_frame_chain): Cleanup.
2552
98216c5d
AC
25532002-08-12 Andrew Cagney <cagney@redhat.com>
2554
2555 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2556 declarations.
2557 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2558 (i386_linux_register_raw_size): Delete function.
2559 (i386_linux_init_abi): Update.
2560 * i386-tdep.c (i386_register_raw_size): Delete function.
2561 (i386_register_byte): Delete function.
2562 (i386_gdbarch_init): Update.
2563 (i386_register_size): Delete array.
2564 (i386_register_offset): Delete array.
2565
2566 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2567 (REGISTER_RAW_SIZE): Delete macro.
2568 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2569 (REGISTER_BYTE): Delete macro.
2570
3b19021e
AS
25712002-08-11 Aidan Skinner <aidan@velvet.net>
2572
2573 * ada-lang.c (ada_lookup_partial_symbol)
2574 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2575 prototype names so that grep ^func works properly.
2576
2577 * ada-lang.c (ada_array_element_type)
2578 (ada_lookup_partial_symbol): Fix typos in parameter list.
2579
2580 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2581 Fix prototype names so that grep ^func works properly.
2582
b063e7a2
AC
25832002-08-10 Andrew Cagney <cagney@redhat.com>
2584 Elena Zannoni <ezannoni@redhat.com>
2585 Martin M. Hunt <hunt@redhat.com>
2586
2587 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2588 (build_builtin_type_vec128i): Set the vector bit.
2589 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2590 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2591 (build_builtin_type_vec64): New function.
2592 (build_builtin_type_vec64i): New function.
2593 (build_gdbtypes): Initialize builtin_type_vec64 and
2594 builtin_type_vec64i.
2595
a7e3c2ad
AC
25962002-08-09 Andrew Cagney <cagney@redhat.com>
2597
2598 * regcache.c (regcache_dump): Compare the register offset
2599 with REGISTER_BYTE.
2600 * arch-utils.c (generic_register_byte): New function.
2601 * arch-utils.h (generic_register_byte): Declare.
2602 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2603 * gdbarch.h, gdbarch.c: Regenerate.
2604
af030b9a
AC
26052002-08-09 Andrew Cagney <cagney@redhat.com>
2606
2607 * regcache.c: Include "gdbcmd.h"
2608 (_initialize_regcache): Add commands "maintenance print
2609 registers", "maintenance print raw-registers" and "maintenance
2610 print cooked-registers".
2611 (enum regcache_dump_what): Define.
2612 (dump_endian_bytes): New function.
2613 (regcache_dump): New function.
2614 (regcache_print): New function.
2615 (maintenance_print_registers): New function.
2616 (maintenance_print_raw_registers): New function.
2617 (maintenance_print_cooked_registers): New function.
2618 * Makefile.in (regcache.o): Update dependencies.
2619
cb3d25d1
MS
26202002-08-09 Michael Snyder <msnyder@redhat.com>
2621
2622 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2623 (mips_push_arguments): Correct some comments. Use paddr_nz
2624 for printing addresses in debug output. Replace static
2625 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2626 (mips_n32n64_push_arguments): New function, cloned from
2627 mips_push_arguments and tuned for the n32/n64 ABI.
2628 (mips_push_register): Buffer needs dynamic allocation.
2629 (mips_print_register): Ditto.
2630 (do_gp_register_row): Ditto.
2631 (mips_store_return_value): Ditto.
2632 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2633
2163ab9d
DH
26342002-08-09 Don Howard <dhoward@redhat.com>
2635
2636 * memattr.c (mem_info_command): Print special case of upper bound
2637 as max CORE_ADDR + 1.
2638
b78bcb18
MS
26392002-08-08 Michael Snyder <msnyder@redhat.com>
2640
2641 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2642 returns structs by ref if they're too big to fit in two registers.
2643
ffabd70d
KB
26442002-08-09 Kevin Buettner <kevinb@redhat.com>
2645
2646 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2647 saved regs value.
2648 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2649 mips_find_saved_regs().
2650 (mips_pop_frame): Likewise.
2651
fbcdb4a3
KB
26522002-08-09 Kevin Buettner <kevinb@redhat.com>
2653
2654 * blockframe.c (frame_saved_regs_register_unwind): Revise
2655 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2656 frames are in use.
2657
3c3bea1c
GS
26582002-08-09 Grace Sainsbury <graces@redhat.com>
2659
2660 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2661 T-packets; the 'a' is not taken as a register number.
2662 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2663 (remote_stopped_data_address): New functions; add to target
2664 vector.
2665 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2666 prototypes to match other implementations of this
2667 function. replace integer argument with pointer -- the length
2668 field in the Z-packet is the length of what is pointed to or 1 if
2669 pointer is null. Add to target vector.
2670 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2671 target vector.
2672
2673 From Mark Salter:
2674 * remote.c (remote_wait): Add support to extract optional
2675 watchpoint information from T-packet. Ignore unrecognized
2676 optional info in T-packet.
2677 (remote_async_wait): Ditto.
2678
5d1d95de
CV
26792002-08-09 Corinna Vinschen <vinschen@redhat.com>
2680
2681 * cli/cli-dump.c: Change fopen modes to use binary open modes
2682 as defined in include/fopen-bin.h throughout.
2683
c86b5b38
MS
26842002-08-08 Michael Snyder <msnyder@redhat.com>
2685
2686 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2687
b30590dc
KB
26882002-08-08 Kevin Buettner <kevinb@redhat.com>
2689
2690 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2691 assertion failure by returning early after a warning.
2692
498868ed
KB
26932002-08-08 Kevin Buettner <kevinb@redhat.com>
2694
2695 * mips-tdep.c (mips_find_saved_regs): Make static.
2696 (mips_frame_init_saved_regs): New function.
2697 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2698 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2699 (mips_find_saved_regs): Delete declaration.
2700
b2dd6311
GS
27012002-08-08 Grace Sainsbury <graces@redhat.com>
2702
3c3bea1c
GS
2703 * remote.c (remote_wait, remote_async_wait): Change
2704 thread_num from int to ULONGEST.
2705 (unpack_varlen_hex): Change result parameter from
2706 int * to ULONGEST *.
b2dd6311 2707
ea47855f
AC
27082002-08-08 Andrew Cagney <ac131313@redhat.com>
2709
2710 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2711 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2712 powerpc*-*-*.
2713 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2714
69db8bae
AC
27152002-08-08 Andrew Cagney <cagney@redhat.com>
2716
2717 * gcore.c (override_derive_stack_segment): Delete variable.
2718 (preempt_derive_stack_segment): Delete function.
2719 (derive_stack_segment): Delete function.
2720 (default_derive_stack_segment): Renamed to derive_stack_segment.
2721 (override_derive_heap_segment): Delete variable.
2722 (preempt_derive_heap_segment): Delete function.
2723 (derive_heap_segment): Delete function.
2724 (default_derive_heap_segment): Rename to derive_heap_segment.
2725
cb811fe7
MS
27262002-08-06 Michael Snyder <msnyder@redhat.com>
2727
2728 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2729 * mips-tdep.c (mips_EABI_use_struct_convention,
2730 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2731 New functions. (mips_use_struct_convention): Delete.
2732 (mips_gdbarch_init): set use_gdbarch_convention.
2733
8b389c40
MS
27342002-08-06 Michael Snyder <msnyder@redhat.com>
2735
2736 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2737 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2738 mips_o32_reg_struct_has_addr): New functions.
2739 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2740
5c27f28a
AC
27412002-08-07 Andrew Cagney <ac131313@redhat.com>
2742
2743 * regcache.c (pseudo_register): Delete function.
2744 (fetch_register): Delete function.
2745 (store_register): Delete function.
2746 (regcache_raw_read, legacy_read_register_gen): Use
2747 target_fetch_registers instead of fetch_register.
2748 (legacy_write_register_gen, regcache_raw_write): Use
2749 target_store_register instead of store_register.
2750 (write_register_bytes): Ditto.
2751
2752 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2753 (STORE_PSEUDO_REGISTER): Delete.
2754 * gdbarch.h, gdbarch.c: Regenerate.
2755
5b331675
CV
27562002-08-06 Corinna Vinschen <vinschen@redhat.com>
2757
2758 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2759 write dump file binary.
2760
6acdf5c7
MS
27612002-08-05 Michael Snyder <msnyder@redhat.com>
2762
2763 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2764 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2765 (mips_gdbarch_init): Set N32 target to be mips64.
2766
b2f01c35
KB
27672002-08-06 Kevin Buettner <kevinb@redhat.com>
2768
2769 * frame.c (find_saved_register): Break out of loop once saved
2770 register address is found. Don't mention sparc in loop comment
2771 anymore.
2772
63db5580
KB
27732002-08-06 Kevin Buettner <kevinb@redhat.com>
2774
2775 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2776 mips_default_saved_regsize to 8.
2777
5e34e75e
AC
27782002-08-06 Andrew Cagney <ac131313@redhat.com>
2779
2780 * gcore.c: Do not include <sys/procfs.h>.
2781 * Makefile.in (gcore.o): Update dependencies.
2782
eb4c54a2
AC
27832002-08-06 Andrew Cagney <cagney@redhat.com>
2784
2785 * configure.tgt: Make arc-*-* obsolete.
2786 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2787 * MAINTAINERS: Make arc-elf obsolete.
2788 * arc-tdep.c: Make file obsolete.
2789 * config/arc/arc.mt: Ditto.
2790 * config/arc/tm-arc.h: Ditto.
2791
ced15480
TR
27922002-08-05 Theodore A. Roth <troth@verinet.com>
2793
c1bab85b 2794 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2795
b4743822
AC
27962002-08-05 Andrew Cagney <ac131313@redhat.com>
2797
2798 * mcore-tdep.c (mcore_gdbarch_init): Use
2799 generic_unwind_get_saved_register instead of
2800 generic_get_saved_register.
2801 * v850-tdep.c (v850_gdbarch_init): Ditto.
2802 * frv-tdep.c (frv_gdbarch_init): Ditto.
2803 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2804 * s390-tdep.c (s390_gdbarch_init): Ditto.
2805 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2806 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2807 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2808
3956d554
JB
28092002-08-05 Joel Brobecker <brobecker@gnat.com>
2810
2811 * objfiles.h: Add missing #include "symfile.h"
2812
2813 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2814
8249c0d6
AC
28152002-08-04 Andrew Cagney <ac131313@redhat.com>
2816
2817 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2818 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2819 of FIELD_BITSIZE.
2820
b9d14705
DJ
28212002-08-04 Daniel Jacobowitz <drow@mvista.com>
2822
2823 * NEWS: Cleanup and nitpick.
2824
dd73b9bb
AC
28252002-08-03 Andrew Cagney <ac131313@redhat.com>
2826
2827 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2828
043a27f8
AC
28292002-08-03 Andrew Cagney <ac131313@redhat.com>
2830
2831 * Makefile.in (gdbtk-bp.o): Update dependencies.
2832 (gdbtk-register.o): Ditto.
2833 (gdbtk-varobj.o): Ditto.
2834
46ce284d
AC
28352002-08-03 Andrew Cagney <cagney@redhat.com>
2836
2837 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2838 m68hc11_fetch_pseudo_register.
2839 (m68hc11_pseudo_register_write): Replace
2840 m68hc11_store_pseudo_register.
2841 (m68hc11_gdbarch_init): Update.
2842
b66d6d2e
AC
2843Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2844
2845 * gdbarch.sh: Include "gdb_string.h".
2846 * gdbarch.c: Regenerate.
2847
2848 * regcache.c: Include "gdb_string.h".
2849 * ax-general.c: Ditto.
2850 * varobj.c: Ditto.
2851 * std-regs.c: Ditto.
2852 * fbsd-proc.c: Ditto.
2853 * thread.c: Ditto.
2854
2855 * Makefile.in (regcache.o): Update dependencies.
2856 (thread.o, gdbarch.o): Ditto.
2857 (ax-general.o, gdbarch.o): Ditto.
2858 (varobj.o, std-regs.o): Ditto.
2859 (fbsd-proc.o): Specify dependencies.
2860
29e1842b
AC
28612002-08-02 Andrew Cagney <cagney@redhat.com>
2862
2863 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2864 regnum.
2865 (regcache_cooked_write): Ditto.
2866
68365089
AC
28672002-08-02 Andrew Cagney <ac131313@redhat.com>
2868
2869 * regcache.c (regcache_cooked_read): New function.
2870 (regcache_cooked_write): New function.
2871 (read_register_gen): Rewrite using regcache_cooked_read.
2872 (write_register_gen): Rewrite using regcache_cooked_write.
2873
2874 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2875 Declare.
2876
d8124050
AC
28772002-08-02 Andrew Cagney <cagney@redhat.com>
2878
2879 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2880 Replace the architecture methods register_read and register_write.
2881 * gdbarch.h, gdbarch.c: Regenerate.
2882 * regcache.c (init_regcache_descr): Update.
2883 (read_register_gen): Update.
2884 (write_register_gen): Update.
2885 (supply_register): Update comment.
2886
2887 * sh-tdep.c (sh_gdbarch_init): Update.
2888 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2889 `regcache' and `gdbarch' parameters. Make `buffer' a void
2890 pointer. Update code.
2891 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2892 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2893 void pointer. Update code.
2894 (sh64_register_write): Delete.
2895 (sh4_register_read): Delete.
2896 (sh64_register_read): Delete.
2897 (sh4_register_write): Delete.
2898 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2899 void pointer, `to' parameter a void pointer.
2900 (sh_sh64_register_convert_to_raw): Ditto.
2901
a6425924
KB
29022002-08-01 Kevin Buettner <kevinb@redhat.com>
2903
2904 * mips-tdep.c (mips_register_virtual_type): Use architecture
2905 invariant return values.
2906
ff5922b5
AC
29072002-08-01 Andrew Cagney <cagney@redhat.com>
2908
2909 * linux-proc.c: Include "gdb_string.h".
2910 * Makefile.in (linux-proc.o): Update dependency list.
2911
32a6503c
KB
29122002-08-01 Kevin Buettner <kevinb@redhat.com>
2913
2914 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2915 comment.
2916
ccaa32c7
GS
29172002-08-01 Grace Sainsbury <graces@redhat.com>
2918
2919 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2920 to_insert_watchpoint, to_remove_watchpoint,
2921 to_stopped_by_watchpoint, to_stopped_data_address,
2922 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2923 target vecctor. Define their corresponding macros so they call
2924 them.
2925
2926 * target.c: Add default and debug versions of for
2927 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2928 to_insert_watchpoint, to_remove_watchpoint,
2929 to_stopped_by_watchpoint, to_stopped_data_address,
2930 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2931
78fde5f8
KB
29322002-08-01 Kevin Buettner <kevinb@redhat.com>
2933
2934 * mips-tdep.c (mips_register_virtual_type): New function.
2935 (mips_gdbarch_init): Register mips_register_virtual_type()
2936 with gdbarch machinery.
2937 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2938 this file instead of tm-bigmips.h.
2939 (MIPS_REGSIZE): Delete this macro.
2940 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2941 multiarch version in mips-tdep.c will be found.
2942
db034ac5
AC
29432002-08-01 Andrew Cagney <cagney@redhat.com>
2944
2945 * NEWS: Menion that CHILL has been made obsolete.
2946
2947 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
2948 * stabsread.c (read_range_type): Ditto.
2949 * gdbtypes.h: Ditto.
2950 * language.c (binop_type_check): Ditto.
2951 (binop_result_type): Ditto.
2952 (integral_type): Ditto.
2953 (character_type): Ditto.
2954 (string_type): Ditto.
2955 (boolean_type): Ditto.
2956 (structured_type): Ditto.
2957 (lang_bool_type): Ditto.
2958 (binop_type_check): Ditto.
2959 * language.h (_LANG_chill): Ditto.
2960 * dwarfread.c (set_cu_language): Ditto.
2961 * dwarfread.c (CHILL_PRODUCER): Ditto.
2962 * dwarfread.c (handle_producer): Ditto.
2963 * expression.h (enum exp_opcode): Ditto.
2964 * eval.c: Ditto for comments.
2965 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2966 * expprint.c (print_subexp): Ditto.
2967 (print_subexp): Ditto.
2968 * valops.c (value_cast): Ditto.
2969 (search_struct_field): Ditto.
2970 * value.h (COERCE_VARYING_ARRAY): Ditto.
2971 * symfile.c (init_filename_language_table): Ditto.
2972 (add_psymbol_with_dem_name_to_list): Ditto.
2973 * valarith.c (value_binop): Ditto.
2974 (value_neg): Ditto.
2975 * valops.c (value_slice): Ditto.
2976 * symtab.h (union language_specific): Ditto.
2977 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2978 (SYMBOL_DEMANGLED_NAME): Ditto.
2979 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2980 * defs.h (enum language): Ditto.
2981 * symtab.c (got_symtab): Ditto.
2982 * utils.c (fprintf_symbol_filtered): Ditto.
2983
2984 * ch-typeprint.c: Make file obsolete.
2985 * ch-valprint.c: Make file obsolete.
2986 * ch-lang.h: Make file obsolete.
2987 * ch-exp.c: Make file obsolete.
2988 * ch-lang.c: Make file obsolete.
2989
2990 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2991 CHILL_LIB.
2992 (TARGET_FLAGS_TO_PASS): Ditto.
2993 (CHILLFLAGS): Obsolete.
2994 (CHILL): Obsolete.
2995 (CHILL_FOR_TARGET): Obsolete.
2996 (CHILL_LIB): Obsolete.
2997 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2998 ch-valprint.c.
2999 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3000 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3001 ch-lang.o.
3002 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3003 targets.
3004
8aaf0b47
JB
30052002-07-31 Joel Brobecker <brobecker@gnat.com>
3006
3007 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3008 This does not change anything at the moment, but will be helpful
3009 later when full Ada support is integrated.
3010
f3a7b3a5
KB
30112002-07-31 Kevin Buettner <kevinb@redhat.com>
3012
3013 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3014 help message.
3015
fb850278
KB
30162002-07-31 Kevin Buettner <kevinb@redhat.com>
3017
3018 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3019 and save it in a local variable. Use variable in later test.
3020
e3bddbfa
KB
30212002-07-31 Kevin Buettner <kevinb@redhat.com>
3022
3023 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3024 test. (Thanks to Daniel Jacobowitz.)
3025
28d169de
KB
30262002-07-31 Kevin Buettner <kevinb@redhat.com>
3027
3028 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3029 (mips_abi_strings): Add "n64".
3030 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3031
7fe7e44e
KB
30322002-07-31 Kevin Buettner <kevinb@redhat.com>
3033
3034 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3035 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3036
c6caf090
KB
30372002-07-31 Kevin Buettner <kevinb@redhat.com>
3038
3039 * utils.c (host_pointer_to_address, address_to_host_pointer):
3040 Use gdb_assert() instead of explicit call to internal_error().
3041
c41669e0
KB
30422002-07-30 Kevin Buettner <kevinb@redhat.com>
3043
3044 * Makefile.in (rs6000-nat.o): Update dependencies.
3045
3046 From Nicholas Duffek:
3047 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3048 (aix-thread.o): New rule.
3049 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3050 * config/powerpc/aix432.mh: New file.
3051
2fda4977
DJ
30522002-07-30 Daniel Jacobowitz <drow@mvista.com>
3053
3054 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3055 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3056 (fetch_core_registers, ppc_linux_supply_gregset)
3057 (ppc_linux_supply_fpregset): New functions.
3058 (ppc_linux_regset_core_fns): New.
3059 (_initialize_ppc_linux_tdep): Call add_core_fns.
3060 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3061 and ppc_linux_supply_gregset.
3062 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3063 (supply_fpregset): Call ppc_linux_supply_fpregset.
3064 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3065 corelow.o.
3066 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3067
729051e6
DJ
30682002-07-30 Daniel Jacobowitz <drow@mvista.com>
3069
3070 * symtab.c (lookup_symbol): Demangle before lowercasing.
3071
5f8a3188
AC
30722002-07-30 Andrew Cagney <ac131313@redhat.com>
3073
3074 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3075 declaration.
3076 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3077 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3078 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3079 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3080 "gdb_string.h".
3081 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3082 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3083 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3084 (avr-tdep.o, mon960-rom.o): Ditto.
3085 (aout_stabs_gnu_h): Define.
3086 (symtab_h): Remove $(gdb_obstack_h).
3087
67f07146
JB
30882002-07-30 Jim Blandy <jimb@redhat.com>
3089
3090 Patch from David Carlton <carlton@math.stanford.edu>:
3091 * gdbinit.in: Move the `dir' commands that add GDB's own source
3092 directory to the search path to the end, so that the `gdb' source
3093 directory will be searched first.
3094
04ea0df1
AC
30952002-07-29 Andrew Cagney <ac131313@redhat.com>
3096
3097 * gdb_obstack.h: New file.
3098 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3099 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3100 * objfiles.h: Include "gdb_obstack.h".
3101 * Makefile.in (gdb_obstack_h): Define.
3102 (symtab_h): Add $(gdb_obstack_h).
3103 (objfiles_h): Add $(gdb_obstack_h).
3104
3105 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3106 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3107 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3108 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3109 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3110 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3111 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3112 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3113
3114 * Makefile.in (bcache.o): Update dependencies.
3115 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3116 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3117 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3118 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3119 (stabsread.o, symfile.o, symmisc.o): Ditto.
3120 (symtab.o, typeprint.o, macroexp.o): Ditto.
3121 (macrotab.o, mdebugread.o): Ditto.
3122 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3123 (coff_ecoff_h, aout_aout64_h): Define.
3124 (aout_stabs_gnu_h, libaout_h): Define.
3125
d138e37a
AC
31262002-07-29 Andrew Cagney <cagney@redhat.com>
3127
3128 * regcache.c (struct regcache_descr): Rename nr_registers to
3129 nr_cooked_registers. Revise comments describing the structure
3130 member fields.
3131 (init_regcache_descr): Update.
3132 (init_legacy_regcache_descr): Update.
3133 (read_register_gen, write_register_gen): When a cooked register in
3134 the raw register range, directly access the value from the raw
3135 register cache.
3136
460e6ec3
AC
31372002-07-29 Andrew Cagney <ac131313@redhat.com>
3138
3139 * z8k-tdep.c: Do not include "obstack.h".
3140 * h8300-tdep.c, h8500-tdep.c: Ditto.
3141 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3142 * valprint.c, v850-tdep.c: Ditto.
3143 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3144 * mn10200-tdep.c: Ditto.
3145
3146 * Makefile.in (z8k-tdep.o): Update dependencies.
3147 (m68hc11-tdep.o, valprint.o): Ditto.
3148 (v850-tdep.o, d10v-tdep.o): Ditto.
3149 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3150 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3151 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3152 (sh_opc_h, gdb_sim_sh_h): Define.
3153 (elf_sh_h, elf_bfd_h): Define.
3154 (opcode_m68hc11_h): Define.
3155 (OPCODES_SRC, OPCODES_DIR): define.
3156 (OPCODES): Use $(OPCODES_DIR).
3157 (gdb_sim_d10v_h): Rename sim_d10v_h.
3158 (gdb_sim_arm_h): Rename sim_arm_h.
3159
790c9cf0
KB
31602002-07-26 Kevin Buettner <kevinb@redhat.com>
3161
3162 * utils.c (host_pointer_to_address, address_to_host_pointer):
3163 Change internal_error() message to indicate function responsible
3164 for the error.
3165
9647fa49
KB
31662002-07-26 Kevin Buettner <kevinb@redhat.com>
3167
3168 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3169 calls to local_hex_string_custom().
3170
dabbe2c0
KB
31712002-07-26 Kevin Buettner <kevinb@redhat.com>
3172
3173 * irix5-nat.c: Move IRIX shared library support from here...
3174 * solib-irix.c: ...to here. Revised substantially to work with
3175 generic solib framework.
3176
b96d0a4e
KB
3177 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3178 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3179 * mips-irix-tdep.c: New file.
3180
313fb2f6
KB
3181 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3182 (mips-irix-tdep.o, solib-irix.o): New rules.
3183 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3184 solib-irix.o.
3185 * config/mips/irix6.mt (TDEPFILES): Likewise.
3186 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3187
ab2eaf26
KB
31882002-07-26 Kevin Buettner <kevinb@redhat.com>
3189
177e4768 3190 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
3191 disabled (via ``#if 0'') includes.
3192
7244546a
KB
31932002-07-26 Kevin Buettner <kevinb@redhat.com>
3194
3195 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3196 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3197 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3198 Add support for the fpscr register.
3199 * rs6000-nat.c (regmap, fetch_inferior_registers)
3200 (store_inferior_registers, fetch_core_registers): Likewise.
3201
dd7be90a
KB
32022002-07-26 Kevin Buettner <kevinb@redhat.com>
3203
3204 * rs6000-nat.c (language.h): Include.
3205 (special_regs): Delete this array.
3206 (regmap): New function.
3207 (fetch_register, store_register): Use regmap() to map gdb
3208 register numbers to ptrace register numbers. Also, use
3209 outputs from regmap() to make decisions regarding type of
3210 ptrace() call to make. In particular, don't compare against
3211 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3212 (fetch_inferior_registers, store_inferior_registers): Where
3213 possible, obtain register numbers from tdep struct. Don't
3214 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3215 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3216 (LAST_UISA_SP_REGNUM): Delete.
3217
11bf77db
KB
32182002-07-25 Kevin Buettner <kevinb@redhat.com>
3219
3220 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
3221 (fetch_registers, store_register, fetch_core_registers): Don't
3222 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
3223 regcache_collect() as appropriate.
3224 (find_toc_address): Format hex address with local_hex_string().
3225
06afebeb
AC
32262002-07-25 Andrew Cagney <ac131313@redhat.com>
3227
3228 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3229 bfd/elf32-frv.c.
3230
8c554d79
TT
32312002-07-24 Tom Tromey <tromey@redhat.com>
3232
3233 * jv-exp.y: Marked all strings with _().
3234 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3235 internal_error.
3236 (MethodInvocation, CastExpression, parse_number, yyerror,
3237 java_type_from_name, push_expression_name, yylex): Typo fixes.
3238
e4c242d9
DJ
32392002-07-24 Daniel Jacobowitz <drow@mvista.com>
3240
3241 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3242 (tee_file_flush, tee_file_write, tee_file_fputs)
3243 (tee_file_isatty): New.
3244 * ui-file.h (tee_file_new): Add prototype.
3245
ebf56fd3
AS
32462002-07-24 Aidan Skinner <aidan@velvet.net>
3247
3248 * ada-lang.c: Change k&r style function definitions to prototyped
3249 form.
3250 * ada-typeprint.c: Change k&r style function definitions to prototyped
3251 form.
3252 * ada-valprint.c: Change k&r style function definitions to prototyped
3253 form.
3254
7fb623f7
AC
32552002-07-24 Andrew Cagney <cagney@redhat.com>
3256
3257 * README: Remove reference to remote-bug.
3258 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3259 remote-bug.c.
3260 (m88k-nat.o): Delete rule.
3261 (m88k-tdep.o): Delete rule.
3262 (remote-bug.o): Delete rule.
3263 * MAINTAINERS: Mark as obsolete.
3264 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3265 * m88k-tdep.c: Make file obsolete.
3266 * config/m88k/m88k.mh: Ditto.
3267 * config/m88k/delta88v4.mh: Ditto.
3268 * config/m88k/delta88v4.mt: Ditto.
3269 * config/m88k/delta88.mt: Ditto.
3270 * config/m88k/delta88.mh: Ditto.
3271 * remote-bug.c: Ditto.
3272 * config/m88k/tm-delta88.h: Ditto.
3273 * config/m88k/nm-delta88v4.h: Ditto.
3274 * config/m88k/xm-delta88.h: Ditto.
3275 * config/m88k/xm-dgux.h: Ditto.
3276 * config/m88k/tm-m88k.h: Ditto.
3277 * config/m88k/nm-m88k.h: Ditto.
3278 * config/m88k/tm-delta88v4.h: Ditto.
3279 * m88k-nat.c: Ditto.
3280 * cxux-nat.c: Ditto.
3281 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3282 and m88*-*-* obsolete.
3283 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3284 m88*-*-* obsolete.
3285
37611a2b
AC
32862002-07-24 Andrew Cagney <cagney@redhat.com>
3287
3288 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3289 constant. Same for local pointer variables.
3290 (extract_signed_integer): Ditto.
3291 * defs.h (extract_unsigned_integer): Update.
3292 (extract_signed_integer): Update.
3293
1aaa5f99
AC
32942002-07-24 Andrew Cagney <cagney@redhat.com>
3295
3296 * regcache.c (regcache_raw_write): Change buf parameter to a
3297 constant void pointer.
3298 (regcache_raw_read): Change buf parameter to a void pointer.
3299 (legacy_write_register_gen): Change myaddr parameter a constant
3300 void pointer.
3301 (supply_register): Change val parameter to a const void pointer.
3302 * regcache.h (regcache_raw_write): Update declaration.
3303 (regcache_raw_read): Update declaration.
3304 (supply_register): Update declaration.
3305
b4f5539f
TT
33062002-07-24 Tom Tromey <tromey@redhat.com>
3307
3308 * defs.h (gdb_readline_wrapper): Declare.
3309 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3310 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3311 * top.c (gdb_readline_wrapper): New function.
3312 (command_line_input): Use it.
3313
0818c12a
AC
33142002-07-24 Andrew Cagney <cagney@redhat.com>
3315
3316 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3317 regcache_read and regcache_write.
3318 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3319 * regcache.c: Update.
3320 * sh-tdep.c (sh64_push_arguments): Update comment.
3321 (sh_pseudo_register_read): Update.
3322 (sh_pseudo_register_write): Update.
3323 (sh4_register_read): Update.
3324 (sh4_register_write): Update.
3325 (sh64_pseudo_register_read): Update.
3326 (sh64_pseudo_register_write): Update.
3327 (sh64_register_read): Update.
3328 (sh64_register_write): Update.
3329 * i386-tdep.c (i386_extract_return_value): Update.
3330 (i386_extract_struct_value_address): Update.
3331 (i386_extract_return_value): Update.
3332 * blockframe.c (generic_read_register_dummy): Update.
3333 (generic_call_dummy_register_unwind): Update
3334 * infrun.c (write_inferior_status_register): Update.
3335
f7321c06
JB
33362002-07-23 Jim Blandy <jimb@redhat.com>
3337
3338 * parser-defs.h (expression_context_pc): Make this extern.
3339 (Thanks to Michael Snyder.)
3340
2037aebb
AC
33412002-07-23 Andrew Cagney <ac131313@redhat.com>
3342
3343 GDB 5.2.1 released from 5.2 branch.
3344 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3345 * README: Update to mention 5.2.1.
3346
66504d44
MS
33472002-07-23 Mark Salter <msalter@redhat.com>
3348
3349 * remote.c (remote_read_bytes): Fix check for error.
3350
27bae383
KB
33512002-07-22 Kevin Buettner <kevinb@redhat.com>
3352
3353 * aix-thread.c (language.h): Include.
3354 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3355 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3356 Print newlines at end of debug messages.
3357 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3358 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3359
33602002-07-22 Kevin Buettner <kevinb@redhat.com>
3361
3362 * aix-thread.c (ppc-tdep.h): Include.
3363 (special_register_p): New function.
3364 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3365 (store_regs_user_thread): Use register number information from
3366 gdbarch_tdep struct instead of hardcoded offsets relative to
3367 FIRST_UISA_SP_REGNUM.
3368 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3369 special_register_p() instead of using FPLAST_REGNUM and
3370 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3371 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3372 will be MQ's register number.
3373
33742002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3375
3376 * aix-thread.c (ops): Rename to aix_thread_ops.
3377 (base_ops): Rename to base_target.
3378 (ops_attach): Rename to aix_thread_attach.
3379 (ops_detach): Rename to aix_thread_detach.
3380 (ops_resume): Rename to aix_thread_detach.
3381 (ops_wait): Rename to aix_thread_wait.
3382 (ops_kill): Rename to aix_thread_kill.
3383 (init_ops): Rename to init_aix_thread_ops.
3384 (ops_fetch_register): Rename to aix_thread_fetch_register.
3385 (ops_store_register): Rename to aix_thread_store_register.
3386 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3387 (ops_thread_alive): Rename to aix_thread_thread_alive.
3388 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3389 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3390 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3391 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3392 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3393 (store_regs_lib): Rename to store_regs_user_thread.
3394 (store_regs_kern): Rename to store_regs_kernel_thread.
3395
27bae383 33962002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3397
3398 * aix-thread.c (ops_prepare_to_store): Eliminate.
3399 (init_ops): Don't initialize ops.prepare_to_store.
3400 (store_regs_kern): Pre-fetch register buffers from child,
3401 because some registers may not be in the cache. Copy
3402 regs from register cache only if they are cached.
3403 (store_regs_lib): Copy regs from register cache only
3404 if they are cached.
3405 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3406 fill_gprs64): Ditto.
3407
61c5da0b
KB
34082002-07-22 Kevin Buettner <kevinb@redhat.com>
3409
3410 * aix-thread.c (gdb_assert.h): Include.
3411 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3412 register sizes (from register cache) match size of buffer holding
3413 register data.
3414 (fill_sprs32): Change parameter types to match those in the ptrace()
3415 buffer.
3416 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3417 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3418
34192002-07-22 Michael Snyder <msnyder@redhat.com>
3420
3421 * aix-thread.c (supply_sprs64): Cosmetic change.
3422 (supply_sprs32): Cosmetic change.
3423 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3424 (fill_sprs64): Use regcache_collect instead of read_register.
3425 (store_regs_lib): Use regcache_collect instead of
3426 read_register. Use fill_sprs32 instead of fill_sprs64,
3427 if debugging a 32-bit architecture.
3428 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3429 out of the register cache, instead of passing a pointer into
3430 the register cache directly to ptrace. Use regcache_collect
3431 insteaad of read_register.
3432 (ops_prepare_to_store): Use target_read_registers instead
3433 of read_register_bytes.
3434
36479eb1
AS
34352002-07-20 Aidan Skinner <aidan@velvet.net>
3436
3437 * MAINTAINERS: Add self under write after approval.
3438
80ae6ee2
AS
34392002-07-20 Aidan Skinner <aidan@velvet.net>
3440
3441 * ada-tasks.c: Change k&r style function definitions to prototyped
3442 form.
3443
8a8ab2b9
AC
34442002-07-19 Andrew Cagney <ac131313@redhat.com>
3445
3446 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3447 * x86-64-tdep.c: Include "objfiles.h".
3448 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3449 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3450
fb16b900
ML
34512002-07-17 Michal Ludvig <michal@suse.cz>
3452
3453 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3454 (update_context): Initialise cfa variable.
3455
0fe7bf7b
MS
34562002-07-17 Michael Snyder <msnyder@redhat.com>
3457
3458 * aix-thread.c: Shorten some long lines.
3459 Bring comments into line with code spec.
3460
488f131b
JB
34612002-07-18 Joel Brobecker <brobecker@gnat.com>
3462
3463 * infrun.c: Re-indent using gdb_indent.sh.
3464
46c415d2
JB
34652002-07-18 Joel Brobecker <brobecker@gnat.com>
3466
3467 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3468 Leave the indentation temporarily untouched, to minimize the diffs.
3469
cdecafbe
EZ
34702002-07-18 Elena Zannoni <ezannoni@redhat.com>
3471
3472 * stabsread.c: Make os9k sections of the code obsolete,
3473 for real this time.
3474 * stabsread.h: Make os9k sections of the code obsolete.
3475
7b6aa020
ML
34762002-07-18 Michal Ludvig <mludvig@suse.cz>
3477
09ec9b38
ML
3478 * linux-low.c (regsets_store_inferior_registers): Add free()
3479 at the end of a loop to prevent memory leak.
3480 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3481 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3482 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3483 line a comment.
4894ac5d 3484 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3485
233282cd
JB
34862002-07-17 Jim Blandy <jimb@redhat.com>
3487
3488 * macrocmd.c (info_macro_command): Remove newline from error
3489 message.
3490
7b6aa020 34912002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3492
3493 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3494 (sh_gdbarch_init): Use it for sh-dsp.
3495
f7ef9339
KB
34962002-07-16 Kevin Buettner <kevinb@redhat.com>
3497
3498 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3499 64-bit DWARF2 format.
3500
8dd72958
JB
35012002-07-16 Joel Brobecker <brobecker@gnat.com>
3502
3503 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3504 <sys/proc.h> when not available.
3505
a99a9e1b
AC
35062002-07-16 Andrew Cagney <ac131313@redhat.com>
3507
3508 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3509 * stabsread.c: Make os9k sections of the code obsolete.
3510 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3511 * config/i386/i386os9k.mt: Make file obsolete.
3512 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3513 (COMMON_OBS): Remove os9kread.o
3514 (SFILES): Remove os9kread.c.
3515 (os9kread.o, remote-os9k.o): Make target obsolete.
3516 * remote-os9k.c: Make file obsolete.
3517 * os9kread.c: Make file obsolete.
3518 * Makefile.in
3519
7a3085c1
AC
35202002-07-16 Andrew Cagney <ac131313@redhat.com>
3521
3522 * NEWS: Mention that the FR30 has been made obsolete.
3523 * fr30-tdep.c: Make file obsolete.
3524 * config/fr30/tm-fr30.h: Ditto.
3525 * config/fr30/fr30.mt: Ditto.
3526 * configure.tgt: Make fr30-*-elf obsolete.
3527 * MAINTAINERS: Make fr30-elf obsolete.
3528
28a93f5a
PM
35292002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3530
3531 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3532 found is not inside a section.
3533
be006b8b
KB
35342002-07-15 Kevin Buettner <kevinb@redhat.com>
3535
3536 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3537 strerror().
3538 (pdc_realloc): Use xrealloc() instead of realloc().
3539
14fa3751
KB
35402002-07-15 Kevin Buettner <kevinb@redhat.com>
3541
3542 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3543 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3544 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3545 macros.
3546
42cc437f
KB
35472002-07-15 Kevin Buettner <kevinb@redhat.com>
3548
3549 * aix-thread.c (ptrace_check): Eliminate goto.
3550 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3551 problem.
3552
8e2c28d4
KB
35532002-07-15 Kevin Buettner <kevinb@redhat.com>
3554
3555 * aix-thread.c (gdbcmd.h): Include.
3556 (DEBUG, DBG, DBG2, dbg): Eliminate.
3557 (debug_aix_thread): New static global.
3558 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3559 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3560 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3561 invocations to DBG and DBG2 macros to test against
3562 ``debug_aix_thread'' and call fprintf_unfiltered().
3563 (_initialize_aix_thread): Add new command "set debug aix-thread".
3564
30413464
AC
35652002-07-15 Andrew Cagney <ac131313@redhat.com>
3566
3567 From Gerhard Tonn <TON@de.ibm.com>:
3568 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3569 instead of supply_register.
3570
7c43edc1
AC
35712002-07-15 Andrew Cagney <ac131313@redhat.com>
3572
3573 * dwarf2cfi.c: Include "gdb_assert.h".
3574 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3575 non-NULL.
3576 (update_context): Do not use __func__. Add missing ``break''.
3577 (update_context): Do not use __func__.
3578
9364a0ef
EZ
35792002-07-15 Elena Zannoni <ezannoni@redhat.com>
3580
3581 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3582 and its setting. Set gdbarch instruction printing functions
3583 directly. For non-rs6000 case use new function
3584 gdb_print_insn_powerpc.
3585 (gdb_print_insn_powerpc): New function.
3586
3fbeef0b
AC
35872002-07-13 Andrew Cagney <ac131313@redhat.com>
3588
92eb23c5 3589 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3590 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3591 * configure.tgt: Mark d30v-*-* as obsolete.
3592 * d30v-tdep.c: Mark file as obsolete.
3593 * config/d30v/d30v.mt: Ditto.
3594 * config/d30v/tm-d30v.h: Ditto.
3595
aacb1f0a
AS
35962002-07-13 Aidan Skinner <aidan@velvet.net>
3597
3598 * ada-tasks.c (add_task_entry): replace calls to
3599 malloc() with xmalloc
3600 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3601
3602 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3603 ada_finish_decode_line_1, all_sals_for_line
3604 ada_breakpoint_rewrite): replace calls to free() with xfree()
3605
c11d79f2
KB
36062002-07-12 Kevin Buettner <kevinb@redhat.com>
3607
3608 From Nicholas Duffek (with minor changes by Martin Hunt,
3609 Louis Hamilton, and Kevin Buettner):
3610 * aix-thread.c: New file.
3611
8e19ed76
PS
36122002-07-12 Petr Sorfa <petrs@caldera.com>
3613
3614 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3615 complaint for invalid attribute class or form.
3616 (read_func_scope): DW_AT_frame_base
3617 better handling of DW_AT_block*.
3618 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3619 better handling of DW_AT_block*.
3620 (read_common_block): DW_AT_location
3621 better handling of DW_AT_block*.
3622 (read_partial_die): DW_AT_location better handling
3623 of DW_AT_block*.
3624 (new_symbol): DW_AT_external better handling of
3625 DW_AT_block*. Proper initialization of variable
3626 "addr".
3627 (attr_form_is_block): New function that returns true
3628 if the attribute's form is of DW_FORM_block*.
3629
295401f7
DJ
36302002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3631
3632 * valops.c (find_method_list): Remove comment about
3633 removed STATIC_MEMFUNCP argument.
3634 (value_find_oload_method_list): Likewise.
3635
e42dc924
KB
36362002-07-12 Kevin Buettner <kevinb@redhat.com>
3637
3638 From Nicholas Duffek:
3639 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3640 target_new_objfile_hook.
3641
6904b546
KB
36422002-07-12 Kevin Buettner <kevinb@redhat.com>
3643
3644 From Nicholas Duffek:
3645 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3646 csect.
3647
53fe9346
AC
36482002-07-12 Andrew Cagney <cagney@redhat.com>
3649
3650 * MAINTAINERS: Mention --enable-sim-build-warnings.
3651 (m68hc11-elf): Disable sim build warnings.
3652 (m32r-elf): Mark as broken obsolete candidate.
3653 (x86_64-linux-gnu): Mark as buildable with -Werror.
3654 (arm-elf): Change -w to ``,'' which enables warnings but not
3655 -Werror.
3656
af5f3db6
AC
36572002-07-12 Andrew Cagney <ac131313@redhat.com>
3658
3659 * bcache.h: Update copyright.
3660 (struct bstring, struct bcache): Move definition to "bcache.c".
3661 Replaced by opaque declaration.
3662 (bcache_xfree): Replace free_bcache.
3663 (bcache_xmalloc, bcache_memory_used): Declare.
3664
3665 * bcache.c: Update copyright.
3666 (struct bstring, struct bcache): Moved to here from "bcache.h".
3667 Update comments.
3668 (bcache_xmalloc, bcache_memory_used): New functions.
3669 (bcache_xfree): Replace function free_bcache.
3670
3671 * Makefile.in (objfiles.o): Add $(bcache_h).
3672 (objfiles_h): Remove $(bcache_h).
3673 (symfile.o): Add $(bcache_h).
3674
3675 * symmisc.c: Update copyright.
3676 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3677 (print_objfile_statistics): Use bcache_memory_used.
3678
3679 * symfile.c: Include "bcache.h".
3680 (reread_symbols): Use bcache_xfree.
3681 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3682 (add_psymbol_to_list): Pass psymbol_cache by value.
3683 (add_psymbol_with_dem_name_to_list): Ditto.
3684
3685 * objfiles.h: Update copyright.
3686 (struct bcache): Declare opaque. Do not include "bcache.h".
3687 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3688 bcache'' pointers.
3689 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3690
3691 * objfiles.c: Include "bcache.h". Update copyright.
3692 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3693 macro_cache.
3694 (free_objfile): Use bcache_xfree.
3695
444199e7
GS
36962002-07-11 Grace Sainsbury <graces@redhat.com>
3697
3698 * monitor.c (monitor_fetch_register): Make name a constant.
3699 (monitor_store_register): Same.
3700
261397f8
DJ
37012002-07-11 Daniel Jacobowitz <drow@mvista.com>
3702
3703 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3704 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3705 (finish_block) For non-function blocks, hash the symbol table. For
3706 function blocks, mark the symbol table as unhashed.
3707 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3708 (msymbol_hash_iw): Likewise.
3709 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3710 value.
3711 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3712 (lookup_minimal_symbol): Likewise for both.
3713 * symtab.h (struct block): Add `hashtable' flag. Comment the
3714 hashtable.
3715 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3716 (ALL_BLOCK_SYMBOLS): Update.
3717 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3718 (struct symbol): Add `hash_next' pointer.
3719 * symtab.c (lookup_block_symbol): Search using the hash table when
3720 possible.
3721 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3722 (search_symbols, find_addr_symbol): Likewise.
3723
3724 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3725 (read_dst_symtab): Likewise.
3726 * jv-lang.c (get_java_class_symtab): Likewise.
3727 * mdebugread.c: Include "gdb_assert.h".
3728 (shrink_block): Assert that the block being modified is not hashed.
3729 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3730 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3731 symbols.
3732 (dump_symtab): Recognize hashed blocks.
3733 * printcmd.c (print_frame_args): Assert that function blocks do not
3734 have hashed symbol tables.
3735 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3736 (fill_in_ada_prototype, debug_print_block): Likewise.
3737 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3738
6f0eaa01
CV
37392002-07-11 Corinna Vinschen <vinschen@redhat.com>
3740
3741 * stack.c (print_frame): Use result of frame_address_in_block()
3742 instead of fi->pc when evaluating symbols.
3743 (backtrace_command_1): Ditto.
3744
a208b0cb
AC
37452002-07-11 Andrew Cagney <cagney@redhat.com>
3746
3747 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3748 Make static.
3749
3750 * arm-tdep.c (arm_register_name): Make return type constant.
3751
a6b6b089
AC
37522002-07-10 Andrew Cagney <ac131313@redhat.com>
3753
5ae5f592
AC
3754 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3755 prototype.
3756 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3757 * s390-tdep.c (s390_fp_regnum): Ditto.
3758 (s390_read_fp): Ditto.
3759 (s390_pop_frame): Ditto.
3760 (_initialize_s390_tdep): Ditto.
3761 * remote.c (get_remote_state): Ditto.
3762 * procfs.c (mappingflags): Ditto.
3763 * memattr.c (_initialize_mem): Ditto.
3764 * mcore-tdep.c (mcore_pop_frame): Ditto.
3765 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3766 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3767 * language.c (set_case_str): Ditto.
3768 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3769 * frv-tdep.c (new_variant): Ditto.
3770 (frv_stopped_data_address): Ditto.
3771 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3772 (context_alloc): Ditto.
3773 (frame_state_alloc): Ditto.
3774 (unwind_tmp_obstack_init): Ditto.
3775 (unwind_tmp_obstack_free): Ditto.
3776 (cfi_read_fp): Ditto.
3777 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3778 (cris_pop_frame): Ditto.
3779 * c-lang.c (scanning_macro_expansion): Ditto.
3780 (finished_macro_expansion): Ditto.
3781 (c_preprocess_and_parse): Ditto.
3782 * gdbarch.sh: Ditto.
3783 * gdbarch.h, gdbarch.c: Regenerate.
3784 * config/mn10200/tm-mn10200.h: Adjust indentation.
3785 * target.c: Adjust indentation.
3786 * symtab.h: Adjust indentation.
3787 * stabsread.h: Adjust indentation.
3788 * remote-es.c: Adjust indentation.
3789 * os9kread.c: Adjust indentation.
3790
37912002-07-10 Andrew Cagney <ac131313@redhat.com>
3792
a6b6b089
AC
3793 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3794 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3795
a1789893
GS
37962002-07-10 Grace Sainsbury <graces@redhat.com>
3797
3798 * NEWS: Mention m68k, mcore multi-arching.
3799 * MAINTAINERS: Change status of m68k, mcore to reflect
3800 multi-arching.
3801
02f0d45d
DJ
38022002-07-10 Daniel Jacobowitz <drow@mvista.com>
3803
3804 * valops.c (find_overload_match): Free oload_syms.
3805
f15f768e
JB
38062002-07-09 Joel Brobecker <brobecker@gnat.com>
3807
3808 Define HAVE_SYS_PROC_H if sys/proc.h exists
3809 * configure.in: Add check for sys/proc.h
3810 * config.in: Regenerate.
3811 * configure: Regenerate.
3812
902a7139
GS
38132002-07-09 Grace Sainsbury <graces@redhat.com>
3814
3815 * config/m68k/tm-m68k.h: Remove macros wrapped in
3816 #if !GDB_MULTI_ARCH.
3817
a534e424
AC
38182002-07-08 Andrew Cagney <ac131313@redhat.com>
3819
3820 * config.in, configure: Regenerate.
3821
9b94f7bf
MK
38222002-07-08 Mark Kettenis <kettenis@gnu.org>
3823
3824 * dwarf2cfi.c: Include "gcore.h".
3825 (execute_stack_op): Fix implementation of the
3826 DW_OP_deref and DW_OP_deref_size operators by letting do their
3827 lookup in the target.
3828
1d34db41
MK
38292002-07-07 Mark Kettenis <kettenis@gnu.org>
3830
3831 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3832 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3833 tdep->sc_sp_offset.
3834
79d5b63a
DJ
38352002-07-05 Daniel Jacobowitz <drow@mvista.com>
3836
3837 Fix PR gdb/595, gdb/602
3838 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3839 Don't call value_cast, just read the vtable pointer; update comments
3840 to match.
3841
3bb912e8
GS
38422002-07-05 Grace Sainsbury <graces@redhat.com>
3843
3844 * config/mcore/tm-mcore.h: Remove file.
3845 * config/mcore/mcore.mt: Remove definition of TM_FILE
3846 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3847
ca39387d
MK
38482002-07-05 Mark Kettenis <kettenis@gnu.org>
3849
3850 * i386bsd-tdep.c: Include "gdb_string.h".
3851
efdc1108
GS
38522002-07-04 Grace Sainsbury <graces@redhat.com>
3853
3854 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3855 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3856 mcore-tdep.
3857 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3858 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3859 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3860 (RETVAL_REGNUM): Move macros from tm-mcore.h
3861 (mcore_reg_struct_has_addr): New function.
3862 (mcore_gdbarch_init): Added initializations for the macros removed
3863 from tm-mcore.h.
3864
bb21884d
MK
38652002-07-04 Mark Kettenis <kettenis@gnu.org>
3866
3867 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3868 traditonal string branding within the ELF header.
3869
228c6d41
DJ
38702002-07-04 Daniel Jacobowitz <drow@mvista.com>
3871
3872 * symtab.c (remove_params): New function.
3873 (make_symbol_overload_list): Use it instead of cplus_demangle.
3874 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3875
2404952e
MK
38762002-07-04 Mark Kettenis <kettenis@gnu.org>
3877
e5e4acad
MK
3878 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3879
baadce09
MK
3880 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3881 New variables.
3882 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3883 and tdep->sigtramp_end.
3884 * i386obsd-nat.c: New file.
3885 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3886
2404952e
MK
3887 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3888 Don't call get_current_frame().
3889
9b4f1ba7
PM
38902002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3891
3892 * i386-nat.c (child_post_startup_inferior): New function
3893 calling i386_cleanup_dregs if
3894 I386_USE_GENERIC_WATCHPOINTS is defined.
3895 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3896 conditional to acknowledge that i386-nat.c has its
3897 own child_post_startup_inferior function.
3898
c0d1d883
MK
38992002-07-04 Mark Kettenis <kettenis@gnu.org>
3900
00f8375e
MK
3901 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3902 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3903 instead of MAX_REGISTER_RAW_SIZE.
3904 (i386_extract_return_value, i386_extract_struct_value_address):
3905 Convert to use regcache.
3906 (i386_gdbarch_init): Set max_register_raw_size and
3907 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3908 Set extract_return_value and extract_struct_value_address instead
3909 of their deprecated variants.
3910
c0d1d883
MK
3911 Convert i386 target to generic dummy frames.
3912 * i386-tdep.c: Include "symfile.h".
3913 (i386_frameless_signal_p): Consider a function to be frameless if
3914 the pc points at the first instruction of the function.
3915 (i386_frame_chain): Handle (generic) call dummies.
3916 (i386_frame_saved_pc): Likewise.
3917 (i386_frame_init_saved_regs): Remove code dealing with call
3918 dummies on the stack.
3919 (i386_push_dummy_frame): Removed.
3920 (i386_call_dummy_words): Removed.
3921 (i386_fix_call_dummy): Removed.
3922 (i386_push_return_address): New function.
3923 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3924 parameter, and don't call get_current_frame.
3925 (i386_pop_frame): New function.
3926 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3927 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3928 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3929 call_dummy_length to 0, set call_dummy_words to NULL, set
3930 sizeof_call_dummy_words to 0, set fix_call_dummy to
3931 generic_fix_call_dummy, set pc_in_call_dummy to
3932 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3933 generic_push_dummy_frame, set push_return_address to
3934 i386_push_return_address and set frame_chain_valid to
3935 generic_file_frame_chain_valid.
3936
049ee0e4
AC
39372002-07-03 Andrew Cagney <ac131313@redhat.com>
3938
3939 * gdbarch.sh (struct regcache): Add opaque declaration.
3940 (EXTRACT_RETURN_VALUE): New architecture method.
3941 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3942 * gdbarch.h, gdbarch.c: Regenerate.
3943 * arch-utils.c (legacy_extract_return_value): New function.
3944 * arch-utils.h (legacy_extract_return_value): Declare.
3945 * values.c (value_being_returned): Re-enable code handling
3946 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3947 deprecated_grub_regcache_for_registers call to block handling
3948 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3949 (EXTRACT_RETURN_VALUE): Do not define.
3950
4e0d9804
GS
39512002-07-03 Grace Sainsbury <graces@redhat.com>
3952
3953 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3954 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3955 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3956 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3957 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3958 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3959 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3960 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3961 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3962 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3963 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3964 argument so the function fits the prototype in the architecture
3965 vector.
3966 (mcore_pop_frame): Remove argument so the function fits the
3967 prototype. Use get_current_frame instead of the argument.
3968 (mcore_push_arguments): Change type of struct_return so the
3969 function can be used in the architecture vector.
3970 (mcore_store_struct_return): Add.
3971 (mcore_frame_init_saved_regs): Add.
3972 (mcore_gdbarch_init): Add function calls to replace the macros
3973 removed from tm-mcore.h
3974
36160dc4
AC
39752002-07-03 Andrew Cagney <ac131313@redhat.com>
3976
3977 * infcmd.c (print_return_value): Remove compatibility code calling
3978 deprecated_grub_regcache_for_registers.
3979
3980 * values.c: Include "regcache.h".
3981 (value_being_returned): Update. Use
3982 deprecated_grub_regcache_for_registers to extract the register
3983 buffer address.
3984 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3985 ``struct regcache''.
3986 * Makefile.in (values.o): Add dependency on $(regcache_h).
3987
3988 * inferior.h (run_stack_dummy): Change type of second parameter to
3989 a ``struct regcache''.
3990 * valops.c (hand_function_call): Change type of retbuf to ``struct
3991 regcache''. Allocate using regcache_xmalloc, clean using
3992 make_cleanup_regcache_xfree.
3993 * infcmd.c (run_stack_dummy): Update. Use
3994 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3995
3996 * regcache.c (do_regcache_xfree): New function.
3997 (make_cleanup_regcache_xfree): New function.
3998 * regcache.h (make_cleanup_regcache_xfree): Declare.
3999
e64d9b3d
MH
40002002-07-03 Martin M. Hunt <hunt@redhat.com>
4001
4dd79c29
MH
4002 * event-top.c (command_line_handler): Don't read past
4003 beginning of buffer.
e64d9b3d 4004
4dd79c29
MH
40052002-07-03 Martin M. Hunt <hunt@redhat.com>
4006
e64d9b3d
MH
4007 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4008 struct frame_id.
4009 (varobj_create): Store frame_id for root.
4010 (varobj_gen_name): Use xasprintf.
4011 (varobj_update): Save and restore frame using get_frame_id() and
4012 frame_find_by_id().
4013 (create_child): Use xasprintf.
4014 (new_root_variable): Initialize frame_id.
4015 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4016 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4017 to prevent memory leak.
4018
26e6c56a
AC
40192002-07-03 Andrew Cagney <ac131313@redhat.com>
4020
4021 * valops.c (hand_function_call): Move declaration of retbuf to
4022 start of function, allocate using malloc, add a cleanup but before
4023 the inf_status cleanup, cleanup the buffer. Rename local variable
4024 old_chain to inf_status_cleanup.
4025
f436dd25
MH
40262002-07-03 Martin M. Hunt <hunt@redhat.com>
4027
4028 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4029
4030 * cli/cli-decode.c (cmd_func_p): New function.
4031 (cmd_func): New function.
4032
4033 * command.h: Add cmd_func() and cmd_func_p().
4034
4cfe2084
GS
40352002-07-03 Grace Sainsbury <graces@redhat.com>
4036
4037 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4038 (REGISTER_SIZE): Remove.
4039 (MAX_REGISTER_RAW_SIZE): Remove.
4040 (REGISTER_VIRTUAL_TYPE): Remove.
4041 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4042 (REGISTER_NAME): Remove.
4043 (USE_GENERIC_DUMMY_FRAMES): Remove.
4044 (CALL_DUMMY): Remove.
4045 (CALL_DUMMY_START_OFFSET): Remove.
4046 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4047 (CALL_DUMMY_LOCATION): Remove.
4048 (FIX_CALL_DUMMY): Remove.
4049 (CALL_DUMMY_ADDRESS): Remove.
4050 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4051 (SAVE_DUMMY_FRAME_TOS): Remove.
4052 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4053 (mcore_register_virtual_type): New function.
4054 (mcore_register_byte): New function.
4055 (mcore_register_size): New function.
4056 (mcore_register_name): New function.
4057 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4058 macros removed from tm-mcore.h.
4059 (mcore_dump_tdep): Add.
4060 (_initialize_mcore_tdep): Add gdbarch_register call.
4061
4fd667e9
MK
40622002-07-03 Mark Kettenis <kettenis@gnu.org>
4063
4064 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4065 frameless_look_for_prologue, such that we actually call this
4066 function.
4067
42f99ac2
JB
40682002-07-02 Joel Brobecker <brobecker@gnat.com>
4069
4070 * frame.h (frame_address_in_block): New function.
4071
4072 * blockframe.c (frame_address_in_block): New function extracted
4073 from get_frame_block().
4074 (get_frame_block): Use frame_address_in_block().
4075 (block_innermost_frame): Use frame_address_in_block() to match
4076 the frame pc address against the block boundaries rather than
4077 the frame pc directly. This prevents a failure when a frame pc
4078 is actually a return-address pointing immediately after the end
4079 of the given block.
4080
103a1597 40812002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
4082
4083 * MAINTAINERS: Add self under write after approval.
4084
40852002-07-02 Grace Sainsbury <graces@redhat.com>
4086
103a1597
GS
4087 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4088 used in architecture vector. The default is
4089 m68k_local_breakpoint_from_pc.
4090 (m68k_local_breakpoint_from_pc): Add.
4091 (enum): Add register numbers from tm-m68k.h.
4092 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4093 vector.
4094 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4095 GDB_MULTI_ARCH_PARTIAL.
4096 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4097 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4098 m68k-tdep.c.
4099 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4100 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4101 to enum in m68k-tdep.c
4102
7a5a0534
JB
41032002-07-02 Joel Brobecker <brobecker@gnat.com>
4104
4105 * solib-osf.c (open_map): Compute the list of shared libraries
4106 loaded by the inferior, rather than the list of libraries loaded
4107 by GDB itself. Otherwise, GDB ends up reading the symbols from
4108 the wrong shared libraries...
4109
6f558d74
MK
41102002-07-02 Mark Kettenis <kettenis@gnu.org>
4111
b7d15bf7
MK
4112 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4113 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4114 macros.
4115 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4116 Remove functions.
4117 (FRAMELESS_SIGNAL): Remove function.
4118 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4119 i386_linux_saved_pc_after_call): Removed.
4120 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4121 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4122 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4123
6bff26de
MK
4124 * i386-tdep.c (i386_frameless_signal_p): New function.
4125 (i386_frame_chain): Deal with frameless signals.
4126 (i386_sigtramp_saved_sp): New function.
4127 (i386_frame_saved_pc): Deal with frameless signals.
4128 (i386_saved_pc_after_call): Make sure the correct value is
4129 returned just after entry into a sigtramp.
4130 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4131 i386fbsd4_sc_sp_offset): New variables.
4132 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4133 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4134 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4135 similiar to what we already did for sc_pc_offset.
4136 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4137 tdep->sc_sp_offset.
4138
6f558d74
MK
4139 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4140
145564b7
ML
41412002-07-02 Michal Ludvig <mludvig@suse.cz>
4142
4143 * config/i386/tm-x86-64linux.h: New.
4144 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4145 definitions.
4146 * config/i386/nm-x86-64.h: Rename to ...
4147 * config/i386/nm-x86-64linux.h: ... this one.
4148 * config/i386/x86-64linux.mh: Reflect the above change.
4149
3a1e71e3
MK
41502002-07-01 Mark Kettenis <kettenis@gnu.org>
4151
21d0e8a4
MK
4152 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4153 with sigcontext_addr. Add sc_sp_offset.
4154 (i386bsd_sigtramp_saved_pc): Remove prototype.
4155 (i386bsd_sicontext_addr): Add prototype.
4156 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4157 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4158 (i386_svr4_sigtramp_saved_pc): Removed.
4159 (i386_svr4_sigcontext_addr): New function.
4160 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4161 Initialize tdep->sigcontext_addr instead. Initialize
4162 tdep->sc_pc_offset and tdep->sc_sp_offset.
4163 (i386_gdbarch_init): Likewise.
4164 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4165 any more.
4166 (i386bsd_sigtramp_saved_pc): Remove function.
4167 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4168 Initialize tdep->sigcontext_addr instead. Initialize
4169 tdep->sc_pc_offset.
4170 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4171 of tdep->sigtramp_saved_pc.
4172 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4173 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4174 instead.
4175
3a1e71e3
MK
4176 * i386-tdep.c (i386_frameless_function_invocation,
4177 i386_frame_num_args, i386_frame_init_saved_regs,
4178 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4179 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4180 i386_extract_return_value, i386_store_return_value,
4181 i386_extract_struct_value_address, i386_register_virtual_type,
4182 i386_register_convertible, i386_register_convert_to_virtual,
4183 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4184 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4185 static.
4186
52e9098c
MK
41872002-07-01 Mark Kettenis <kettenis@gnu.org>
4188
77b13a25
MK
4189 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4190
52e9098c
MK
4191 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4192 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4193 this macro. Include "value.h".
4194
1b372fff
AS
41952002-06-30 Aidan Skinner <aidan@velvet.net>
4196
4197 * ada-exp.tab.c: remove as it's a generated file
4198 * ada-lex.c: remove as it's a generated file
4199
9c5045b5
MK
42002002-06-30 Mark Kettenis <kettenis@gnu.org>
4201
4a93c5bb
MK
4202 * config/i386/tm-i386.h (struct frame_info, struct
4203 frame_saved_regs, struct value, struct type): Remove forward
4204 declarations.
4205
322d4fe0
MK
4206 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4207 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4208 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4209 (FILL_FPXREGSET): Define.
4210
fdd8263d
MK
4211 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4212
482e577b
MK
4213 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4214 i[3456]86-*-netbsd* case.
4215 * config/i386/tm-obsd.h: Removed.
4216 * config/i386/obsd.mt: Removed.
4217 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4218 core-aout.o.
4219 (MH_CFLAGS): Add -DYYDEBUG=0.
4220
6916549a
MK
4221 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4222 i386nbsd_sc_pc_offset on OpenBSD too.
4223
9c5045b5
MK
4224 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4225 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4226 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4227 define.
4228 * i386bsd-tdep.c: Include "arch-utils.h".
4229 (i386bsd_aout_in_solib_call_trampoline): New function.
4230 (i386bsd_init_abi): Set in_solib_call_trampoline to
4231 i386bsd_aout_in_solib_call_trampoline.
4232 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4233 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4234
aa84d1bb
AC
42352002-06-28 Andrew Cagney <ac131313@redhat.com>
4236
4237 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4238 (struct obstack, struct bcache): Add opaque declarations.
4239 * Makefile.in (macrotab_h): Update
4240
b4d83933
AC
42412002-06-28 Andrew Cagney <ac131313@redhat.com>
4242
4243 * blockframe.c (generic_find_dummy_frame): Change return type to
4244 ``struct regcache''.
4245 (struct dummy_frame): Replace field ``registers'' with regcache, a
4246 struct regcache object.
4247 (generic_find_dummy_frame): Update.
4248 (generic_push_dummy_frame): Update. Use regcache_xfree,
4249 regcache_xmalloc and regcache_cpy.
4250 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4251 regcache_xfree.
4252 (deprecated_generic_find_dummy_frame): Update.
4253 (generic_read_register_dummy): Update. Use
4254 regcache_read_as_address.
4255 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4256 (generic_get_saved_register): Update. Use regcache_read.
4257
08c0b5bc
AC
42582002-06-28 Andrew Cagney <ac131313@redhat.com>
4259
4260 * Makefile.in (objfiles_h): Add $(bcache_h).
4261 * objfiles.h: Include "bcache.h".
4262
4263 * Makefile.in (symtab_h): Remove $(bcache_h).
4264 * symtab.h: Do not include "bcache.h".
4265
1f89801a
AC
42662002-06-28 Andrew Cagney <ac131313@redhat.com>
4267
4268 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4269 generic_func_frame_chain_valid.
4270
b9644b58
DB
42712002-06-28 David O'Brien <obrien@FreeBSD.org>
4272
4273 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4274 * config/i386/tm-fbsd.h: Likewise.
4275
dd486634
AC
42762002-06-28 Andrew Cagney <ac131313@redhat.com>
4277
4278 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4279 generic_unwind_get_saved_register.
4280
0b434a00
AC
42812002-06-27 Andrew Cagney <ac131313@redhat.com>
4282
4283 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4284 * regcache.c (supply_register): Add missing argument to
4285 register_buffer call.
4286
f30e5a77
AC
42872002-06-27 Andrew Cagney <ac131313@redhat.com>
4288
4289 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4290 Solaris /bin/grep does not not like it. From Peter Schauer.
4291
9f064c95
TT
42922002-06-26 Tom Tromey <tromey@redhat.com>
4293
4294 * command.h (add_setshow_cmd): Declare.
4295 (add_setshow_cmd_full): Declare.
4296 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4297 returns void. Use add_setshow_cmd_full.
4298 (add_setshow_cmd_full): New function.
4299 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4300 (add_setshow_boolean_cmd): Likewise.
4301
099c7589
JT
43022002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4303
4304 * config/vax/tm-vax.h: Protect from multiple inclusion.
4305 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4306 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4307 * config/vax/tm-vaxbsd.h: ...here. New file.
4308 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4309
1d049c5e
JT
43102002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4311
4312 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4313 (BELIEVE_PCC_PROMOTION): Remove.
4314 (AP_REGNUM): Move to...
4315 * config/vax/nm-vax.h: ...here.
4316 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4317 (vax_breakpoint_from_pc): New function.
4318 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4319 and gdbarch_believe_pcc_promotion.
4320
4791e091
JT
43212002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4322
4323 * Makefile.in (vax_tdep_h): Define.
4324 (vax-tdep.o): Use $(vax_tdep_h).
4325 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4326 (vax_dump_tdep): New function.
4327 (_initialize_vax_tdep): Register vax_dump_tdep.
4328 * vax-tdep.h: Include osabi.h.
4329 (struct gdbarch_tdep): New.
4330
da130f98
AC
43312002-06-26 Andrew Cagney <cagney@redhat.com>
4332
4333 * frame.h (deprecated_generic_find_dummy_frame): Rename
4334 generic_find_dummy_frame.
4335 * blockframe.c (generic_find_dummy_frame): Make static.
4336 (deprecated_generic_find_dummy_frame): New function.
4337 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4338 generic_find_dummy_frame with deprecated_find_dummy_frame.
4339 (sh64_nofp_frame_init_saved_regs): Ditto.
4340 (sh_fp_frame_init_saved_regs): Ditto.
4341 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4342 (s390_frame_chain): Ditto.
4343 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4344
6300c360
GS
43452002-06-26 Grace Sainsbury <graces@redhat.com>
4346
4347 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4348 gdbarch vector are at the top.
4349 (NUM_REGS): Remove.
4350 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4351 (FRAME_ARGS_ADDRESS): Remove.
4352 (FRAME_LOCALS_ADDRESS): Remove.
4353 (FRAME_NUM_ARGS): Remove.
4354 (FRAME_ARGS_SKIP): Remove.
4355 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4356 (m68k_gdbarch_init): Add gdbarch initializations for macros
4357 undefined in tm-m68k.h
4358
1c617db8
GS
43592002-06-26 Grace Sainsbury <graces@redhat.com>
4360
4361 * monitor.h: Add the function regname to monitor_ops
4362 structure. This way NUM_REGS does not have to be a constant.
4363 * monitor.c (monitor_fetch_register): Added support for regname
4364 function. The function is called if the array regnames is NULL.
4365 (monitor_store_register): Same.
da130f98
AC
4366 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4367 regnames array.
1c617db8
GS
4368 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4369 cpu32bug_cmds.regname to point to new function.
4370 * abug-rom.c (abug_regname): Same as above.
4371 (init_abug_cmds): Same.
4372 * dbug-rom.c (dbug_regname): Same as above.
4373 (init_dbug_cmds): Same.
4374 * remote-est.c (est_regname): Same.
4375 (init_est_cmds): Same.
4376 * rom68k-rom.c (rom68k_regname): Same.
4377 (init_rom68k_cmds): Same.
4378
ea9365bb
TT
43792002-06-25 Tom Tromey <tromey@redhat.com>
4380
4381 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4382
72cec141
AC
43832002-06-25 Andrew Cagney <cagney@redhat.com>
4384
4385 * infrun.c (stop_registers): Change variable's type to ``struct
4386 regcache'''.
4387 (xmalloc_inferior_status): Delete function.
4388 (free_inferior_status): Delete function.
4389 (normal_stop): Use regcache_cpy.
4390 (struct inferior_status): Change type of fields ``stop_registers''
4391 and ``registers'' to ``struct regcache''.
4392 (write_inferior_status_register): Use regcache_write.
4393 (save_inferior_status): Instead of calling
4394 xmalloc_inferior_status, allocate the inf_status buffer directly.
4395 Use regcache_dup_no_passthrough and regcache_dup to save the
4396 buffers.
4397 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4398 Replace the stop_registers regcache instead of overriding it. Use
4399 regcache_xfree. Instead of calling free_inferior_status, xfree
4400 the buffer directly.
4401 (discard_inferior_status): Use regcache_xfree. Instead of calling
4402 free_inferior_status, xfree the buffer directly.
4403 (build_infrun): Use regcache_xmalloc.
4404 (_initialize_infrun): Delete redundant call to build_infrun.
4405
4406 * Makefile.in (infcmd.o): Add $(regcache_h).
4407
4408 * infcmd.c: Include "regcache.h".
4409 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4410 obtain the address of `stop_registers' register buffer.
4411 (print_return_value): Ditto.
4412
4413 * inferior.h (struct regcache): Add opaque declaration.
4414 (stop_registers): Change variable's declared type to ``struct
4415 regcache''.
4416
defc6f8c
TT
44172002-06-24 Tom Tromey <tromey@redhat.com>
4418
c0e624e7
TT
4419 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4420 * target.c (initialize_targets): Fixed typo in
4421 trust-readonly-sections `show' documentation.
4422
defc6f8c
TT
4423 * main.c: Marked all strings with _().
4424
2b236d82
DH
44252002-06-24 Don Howard <dhoward@redhat.com>
4426
4427 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4428 that means max CORE_ADDR+1.
4429 (lookup_mem_region): Ditto.
4430 (mem_info_command): Ditto.
4431
942dc0e9
GS
44322002-06-24 Grace Sainsbury <graces@redhat.com>
4433
4434 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4435 (REGISTER_BYTES_OK): Remove.
4436 (REGISTER_BYTES): Remove.
4437 (STORE_STRUCT_RETURN): Remove.
4438 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4439 (STORE_RETURN_VALUE): Remove.
4440 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4441 (FRAME_CHAIN): Remove.
4442 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4443 (FRAME_SAVED_PC): Remove.
4444 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4445 (m68k_store_struct_return): Add.
4446 (m68k_deprecated_extract_return_value): Add.
4447 (m68k_deprecated_extract_struct_value_address): Add.
4448 (m68k_store_return_value): Add.
4449 (m68k_frame_chain): Add.
4450 (m68k_frameless_function_invocation): Add.
4451 (m68k_frame_saved_pc): Add.
4452 (m68k_gdbarch_init): added set_gdbarch calls for new
4453 functions and deleted macros.
4454
03c30d4d
TT
44552002-06-23 Tom Tromey <tromey@redhat.com>
4456
4457 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4458 (ALLDEPFILES): Likewise.
4459 (udiheaders): Removed.
4460 (udip2soc.o): Likewise.
4461 (udi2go32.o): Likewise.
4462 (udr.o): Likewise.
4463 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4464
37e71372
AC
44652002-06-22 Andrew Cagney <ac131313@redhat.com>
4466
06a6ac57
AC
4467 * infrun.c (_initialize_infrun): Delete unnecessary call to
4468 build_infrun.
4469
37e71372
AC
4470 * regcache.h: Update comments describing the regcache_cpy family
4471 of functions.
4472 (regcache_save, regcache_restore): Delete declaration.
4473 (regcache_save_no_passthrough): Delete declaration.
4474 (regcache_restore_no_passthrough): Delete declaration.
4475 * regcache.c (regcache_save): Delete function.
4476 (regcache_save_no_passthrough): Delete function.
4477 (regcache_restore): Delete function.
4478 (regcache_restore_no_passthrough): Delete function.
4479
78f6d055
AC
44802002-06-21 Andrew Cagney <ac131313@redhat.com>
4481
4482 * config/m68k/tm-m68k.h: Fix typo.
4483 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4484 (m68k_frame_init_saved_regs): Declare.
4485
78b119cb
JB
44862002-06-21 Jim Blandy <jimb@redhat.com>
4487
4488 Remove some vestiges of Harris 88k support.
4489 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4490 register numbering quirk.
4491 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4492 odd symbols occurring in Harris 88k ELF targets.
4493
0fbb3da7
TT
44942002-06-21 Tom Tromey <tromey@redhat.com>
4495
4496 * gdb_locale.h: New file.
4497 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4498 (defs_h): Added gdb_locale.h.
4499 * configure, config.in: Rebuilt.
4500 * configure.in (PACKAGE): Define.
4501 * defs.h: Include gdb_locale.h.
4502 * main.c (captured_main): Call setlocale, bindtextdomain,
4503 textdomain.
4504
456f8b9d
DB
45052002-06-21 Dave Brolley <brolley@redhat.com>
4506
4507 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4508 * config/frv/frv.mt: New file.
4509 * config/frv/tm-frv.h: New file.
4510 * configure.tgt: Support frv-*-*.
4511 * Makefile.in (frv-tdep.o): New target.
4512 * frv-tdep.c: New file.
4513 * NEWS: Mention frv.
4514
cdd463f9
DB
45152002-06-21 Dave Brolley <brolley@redhat.com>
4516
4517 * MAINTAINERS: Add self to "Write After Approval" list.
4518
5d3ed2e3
GS
45192002-06-21 Grace Sainsbury <graces@redhat.com>
4520
4521 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4522 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4523 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4524 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4525 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4526
4527 * m68k-tdep.c: Include arch-utils.h
4528 (m68k_register_raw_size): Add.
4529 (m68k_register_virtual_size): Add.
4530 (m68k_register_virtual_type): Add.
4531 (m68k_register_name): Add.
4532 (m68k_stack_align): Add.
4533 (m68k_register_byte): Add.
4534 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4535 tm-m68k.h.
4536
7f8e7424
GS
45372002-06-21 Grace Sainsbury <graces@redhat.com>
4538
a2c6a6d5 4539 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4540 m68k_find_saved_regs.
4541 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4542 references to it with frame->saved_regs.
7f8e7424
GS
4543 (m68k_gdbarch_init): Added function calls to initialize the
4544 gdbarch structure.
a2c6a6d5
GS
4545 (m68k_fix_call_dummy): Add.
4546 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4547 (CALL_DUMMY): Remove.
4548 (CALL_DUMMY_LENGTH): Remove.
4549 (CALL_DUMMY_START_OFFSET): Remove.
4550 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4551 (FIX_CALL_DUMMY): Remove.
4552 (PUSH_DUMMY_FRAME): Remove.
4553 (POP_FRAME): Remove.
7f8e7424 4554
f461f5cf
PM
45552002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4556
4557 * parse.c (parse_fprintf): New function used to avoid calls to
4558 fprintf in bison parser generated debug code.
4559 * parser-defs.h: Declaration of new parse_fprintf function.
4560 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4561 Set YYDEBUG to 1 by default.
4562 Set YYFPRINTF as parse_fprintf.
4563
7f0c12ed
ML
45642002-06-21 Michal Ludvig <mludvig@suse.cz>
4565
4566 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4567 encoding anymore.
4568 (pointer_encoding, enum ptr_encoding): New.
4569 (execute_cfa_program): Take care about pointer encoding.
4570 (dwarf2_build_frame_info): Only call parse_frame_info for
4571 .debug_frame and .eh_frame.
4572 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4573 fixed augmentation handling, added relative addressing,
4574 ignore duplicate FDEs. Added comments.
19d833a2 4575 * dwarf2cfi.c: Reindented.
7f0c12ed 4576
87c4a039
EZ
45772002-06-20 Elena Zannoni <ezannoni@redhat.com>
4578
4579 * event-top.c (command_handler): Don't use space_at_cmd_start
4580 unless there is sbrk() on the host. Assign time and space data
4581 to union fields of the appropriate length.
4582
1cf877ad
ML
45832002-06-20 Michal Ludvig <mludvig@suse.cz>
4584
4585 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4586 x86_64_register_name. Return type changed to 'const char *'.
4587 (x86_64_register_name2nr): Rename to x86_64_register_number.
4588 (x86_64_gdbarch_init): Update to reflect the change.
4589 * x86-64-tdep.h: Ditto.
4590 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4591 (supply_fpregset): Ditto.
4592
3fadccb3
AC
45932002-06-19 Andrew Cagney <cagney@redhat.com>
4594
4595 * regcache.h: Update copyright.
4596 (struct regcache, struct gdbarch): Add opaque declarations.
4597 (current_regcache): Declare global variable.
4598 (regcache_read, regcache_write): Add gdbarch parameter.
4599 (regcache_save, regcache_save_no_passthrough)
4600 (regcache_restore, regcache_restore_no_passthrough)
4601 (regcache_dup, regcache_dup_no_passthrough)
4602 (regcache_cpy, regcache_cpy_no_passthrough)
4603 (deprecated_grub_regcache_for_registers)
4604 (deprecated_grub_regcache_for_register_valid)
4605 (regcache_valid_p): Add function declarations.
4606
4607 * regcache.c: Update copyright.
4608 (regcache_descr_handle): New global variable.
4609 (struct regcache_descr): Define.
4610 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4611 (regcache_descr, xfree_regcache_descr): New functions.
4612 (struct regcache): Define.
4613 (regcache_xmalloc, regcache_xfree): New functions.
4614 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4615 (regcache_dup, regcache_dup_no_passthrough): New functions.
4616 (regcache_valid_p, regcache_read_as_address): New functions.
4617 (deprecated_grub_regcache_for_registers): New function.
4618 (deprecated_grub_regcache_for_register_valid): New function.
4619 (current_regcache): New global variable.
4620 (register_buffer): Add regcache parameter. Update calls.
4621 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4622 (read_register_gen, write_register_gen): Update register_buffer
4623 call. Test for legacy_p instead of gdbarch_register_read_p or
4624 gdbarch_register_write_p.
4625 (regcache_collect): Update register_buffer call.
4626 (build_regcache): Rewrite. Use deprecated grub functions.
4627 (regcache_save, regcache_save_no_passthrough): New functions.
4628 (regcache_restore, regcache_restore_no_passthrough): New
4629 functions.
4630 (_initialize_regcache): Create the regcache_data_handle. Swap
4631 current_regcache global variable.
4632
4633 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4634 parameter to regcache_read and regcache_write calls.
4635 (sh4_register_read): Ditto.
4636 (sh64_pseudo_register_read): Ditto.
4637 (sh64_register_read): Ditto.
4638 (sh_pseudo_register_write): Ditto.
4639 (sh4_register_write): Ditto.
4640 (sh64_pseudo_register_write): Ditto.
4641 (sh64_register_write): Ditto.
4642
4643 * defs.h (XCALLOC): Define.
4644
152d9db6
GS
46452002-06-19 Grace Sainsbury <graces@redhat.com>
4646
4647 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4648 * m68k-tdep.c (m68k_gdbarch_init): Added.
4649 (m68k_dump_tdep): Added.
4650
170911c7
DJ
46512002-06-19 Daniel Jacobowitz <drow@mvista.com>
4652
4653 * ada-lang.c (fill_in_ada_prototype): Update comment.
4654
2e4ebe70
DJ
46552002-06-19 Daniel Jacobowitz <drow@mvista.com>
4656
4657 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4658 MIPS_ABI_LAST.
4659 (mips_abi_string, mips_abi_strings): New.
4660 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4661 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4662 tdep->mips_abi_string. Honor mips_abi_string. Default to
4663 O32 if no ABI is found.
4664 (mips_dump_tdep): Use mips_abi_strings.
4665 (mips_abi_update): New function.
4666 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4667 ``set mips abi'' and ``show mips abi''. Check the size of
4668 mips_abi_strings.
4669
16775908
AC
46702002-06-19 Andrew Cagney <cagney@redhat.com>
4671
4672 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4673 constant.
4674
5051bfa4 46752002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4676
5051bfa4
JB
4677 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4678 current frame using only the first stack size adjustment. All
4679 subsequent size adjustments are not considered to be part of
4680 the "static" part of the current frame.
4681 Compute the address of the saved registers relative to the
4682 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4683 in use in this frame.
4684
56468235
DH
46852002-06-18 Don Howard <dhoward@redhat.com>
4686
4687 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4688 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4689 suggesting this solution.
4690
0b624158
AC
46912002-06-18 Andrew Cagney <ac131313@redhat.com>
4692
4693 * config/romp/xm-rtbsd.h: Delete file.
4694 * config/romp/rtbsd.mh: Delete file.
4695
221ea385
KS
46962002-06-18 Keith Seitz <keiths@redhat.com>
4697
4698 * breakpoint.c (condition_command): Post breakpoint_modify
4699 when a condition is added to an existing breakpoint.
4700 (commands_command): Likewise for commands.
4701 (set_ignore_count): Likewise for ignore counts.
4702 If no tty, do not simply return, still need to send event
4703 notification.
4704 (ignore_command): Only print a newline if the command came
4705 from a tty.
4706 Don't call breakpoints_changed, since this is now properly
4707 handled by set_ignore_count.
4708
5402eed1
AC
47092002-06-18 Andrew Cagney <cagney@redhat.com>
4710
4711 * MAINTAINERS: Note that cris-elf target can be compiled with
4712 -Werror.
4713 * cris-tdep.c (cris_register_name): Make return type constant.
4714 (cris_breakpoint_from_pc): Ditto.
4715
cc22880b
ML
47162002-06-18 Michal Ludvig <mludvig@suse.cz>
4717
4718 * frame.h (struct frame_info): Change type of context to
4719 'struct context'.
4720
fa88f677
AC
47212002-06-17 Andrew Cagney <cagney@redhat.com>
4722
4723 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4724 pointer.
4725 * gdbarch.h, gdbarch.c: Regenerate.
4726 * config/mips/tm-mips.h (mips_register_name): Update.
4727 * i386-tdep.h (i386_register_name): Update.
4728 * mips-tdep.c (mips_register_name): Update
4729 * alpha-tdep.c (alpha_register_name): Update.
4730 * arch-utils.c (legacy_register_name): Update.
4731 * arch-utils.h (legacy_register_name): Update.
4732 * avr-tdep.c (avr_register_name): Update.
4733 * ia64-tdep.c (ia64_register_name): Update.
4734 * i386-tdep.c (i386_register_name): Update.
4735 * sparc-tdep.c (sparc32_register_name): Update.
4736 (sparc64_register_name): Update.
4737 (sparclite_register_name): Update.
4738 (sparclet_register_name): Update.
4739 * sh-tdep.c (sh_generic_register_name): Update.
4740 (sh_sh_register_name): Update.
4741 (sh_sh3_register_name): Update.
4742 (sh_sh3e_register_name): Update.
4743 (sh_sh_dsp_register_name): Update.
4744 (sh_sh3_dsp_register_name): Update.
4745 (sh_sh4_register_name): Update.
4746 (sh_sh64_register_name): Update.
4747 * s390-tdep.c (s390_register_name): Update.
4748 * rs6000-tdep.c (rs6000_register_name): Update.
4749 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4750 (ns32k_register_name_32382): Update.
4751 * d10v-tdep.c (d10v_ts2_register_name): Update.
4752 (d10v_ts3_register_name): Update.
4753 * xstormy16-tdep.c (xstormy16_register_name): Update.
4754 * vax-tdep.c (vax_register_name): Update.
4755 * v850-tdep.c (v850_register_name): Update.
4756 * m68hc11-tdep.c (m68hc11_register_name): Update.
4757 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4758 (am33_register_name): Update.
4759
ea1e7ef6
GS
47602002-06-17 Grace Sainsbury <graces@redhat.com>
4761
4762 * m68k-tdep.c: Reindented.
4763
9b02dd1b
AC
47642002-06-17 Andrew Cagney <ac131313@redhat.com>
4765
4766 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4767 list of predefined types.
4768
8758dec1
MK
47692002-06-16 Mark Kettenis <kettenis@gnu.org>
4770
b6197528
MK
4771 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4772 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4773 REGISTER_CONVERT_TO_RAW): Remove defines.
4774 (i386_register_virtual_type, i386_register_convertible,
4775 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4776 Remove prototypes.
4777 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4778 macros mentioned above.
4779
82b47e62
MK
4780 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4781 (i386lynx_saved_pc_after_call): Remove prototype.
4782 * i386ly-tdep.c: Include "i386-tdep.h".
4783 (i386lynx_saved_pc_after_call): Make static. Use
4784 read_memory_nobpt instead of read_memory. Use
4785 read_memory_unsigned_integer instead of read_memory_integer.
4786 (i386lynx_init_abi): New function.
4787 (i386lynx_coff_osabi_sniffer): New function.
4788 (_initialize_i386bsd_tdep): New function.
4789
8758dec1
MK
4790 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4791 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4792 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4793 (i386_fix_call_dummy): Remove prototype.
4794 * i386-tdep.c (i386_call_dummy_words): New variable.
4795 (i386_gdbarch_init): Adjust for removal of the
4796 macros mentioned above.
4797
e9e68a56
AC
47982002-06-15 Andrew Cagney <ac131313@redhat.com>
4799
4800 * command.h (add_setshow_auto_boolean_cmd): Replace
4801 add_set_auto_boolean_cmd.
4802 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4803 add_set_auto_boolean_cmd.
4804 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4805 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4806 mask-address'' command.
4807 (show_mask_address): Add cmd parameter.
4808 * remote.c (add_packet_config_cmd): Update. Change type of
4809 set_func and show_func to cmd_sfunc_ftype.
4810 (_initialize_remote): Update `set remote Z-packet'
4811 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4812 (show_remote_protocol_e_packet_cmd): Ditto.
4813 (show_remote_protocol_E_packet_cmd): Ditto.
4814 (show_remote_protocol_P_packet_cmd): Ditto.
4815 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4816 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4817 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4818 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4819 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4820 (show_remote_protocol_Z_packet_cmd): Ditto.
4821 (show_remote_protocol_binary_download_cmd): Ditto.
4822 (show_remote_cmd): Pass NULL to all of above.
4823
fc08ec52
MK
48242002-06-15 Mark Kettenis <kettenis@gnu.org>
4825
4826 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4827 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4828 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4829 POP_FRAME): Remove defines.
4830 (i386_push_arguments, i386_store_struct_return,
4831 i386_extract_return_value, i386_store_return_value,
4832 i386_extract_struct_value_address, i386_push_dummy_frame,
4833 i386_pop_frame): Renove prototypes.
4834 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4835 macros mentioned above.
4836
e707bbc2
AC
48372002-06-15 Andrew Cagney <ac131313@redhat.com>
4838
4839 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4840 add_set_boolean_cmd.
4841 (add_setshow_cmd): New function.
4842 * command.h (add_setshow_boolean_cmd): Replace
4843 add_set_boolean_cmd.
4844 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4845 and ``set rdiromatzero''.
4846 * maint.c (_initialize_maint_cmds): Update commented out code.
4847 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4848 * target.c (initialize_targets): Update `set
4849 trust-readonly-sections'.
4850 * remote.c (_initialize_remote): Update `set remotebreak'.
4851
42fdc8df
MK
48522002-06-15 Mark Kettenis <kettenis@gnu.org>
4853
93924b6b
MK
4854 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4855 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4856 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4857 fit into multi-arch framework.
4858 (i386_breakpoint_from_pc): New function.
4859 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4860 above.
4861
42fdc8df
MK
4862 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4863 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4864 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4865 (i386_frameless_function_invocation, i386_frame_num_args,
4866 i386_frame_init_saved_regs): Remove prototypes.
4867 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4868 macros mentioned above.
4869
9773a94b
AC
48702002-06-15 Andrew Cagney <ac131313@redhat.com>
4871
4872 * cli/cli-decode.c (set_cmd_cfunc): Update.
4873 (set_cmd_sfunc): Update.
4874 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4875 (set_cmd_sfunc, set_cmd_cfunc): Update.
4876 * cli/cli-decode.h: Update.
4877
6e157172
MK
48782002-06-15 Mark Kettenis <kettenis@gnu.org>
4879
4880 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4881 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4882
7f19b9a2
AC
48832002-06-15 Andrew Cagney <ac131313@redhat.com>
4884
4885 * defs.h (auto_boolean): Declare enum.
4886 * command.h (cmd_auto_boolean): Delete enum.
4887 * mips-tdep.c (mask_address_var): Update.
4888 (mips_mask_address_p): Update.
4889 (show_mask_address): Update.
4890 * remote.c (struct packet_config): Update.
4891 (update_packet_config): Update.
4892 (show_packet_config_cmd): Update.
4893 (packet_ok): Update.
4894 (add_packet_config_cmd): Update.
4895 (_initialize_remote):
4896 * command.h: Update.
4897 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4898 (do_setshow_command): Update.
4899 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4900 * cli/cli-decode.h: Update.
4901
1cf88de5
MK
49022002-06-15 Mark Kettenis <kettenis@gnu.org>
4903
22ba8cf2
MK
4904 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4905 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4906 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4907 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4908 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4909 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4910
762c5349
MK
4911 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4912 list of DJGPP COFF targets.
4913
091198bb
MK
4914 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4915 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4916 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4917 (FP0_REGNUM): Remove define.
4918 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4919 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4920 (i386_register_virtual_size): Remove protoype.
4921 * i386-tdep.c (i386_register_virtual_size): Removed.
4922 (i386_extract_return_value, i386_store_return_value): Use
4923 FP0_REGNUM instead of NUM_FREGS to determine whether the
4924 floating-point registers are available.
4925 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4926 Adjust for removal of macros mentioned above.
4927
49282002-06-15 Mark Kettenis <kettenis@gnu.org>
4929
fcc9bf01
MK
4930 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4931 comments.
4932 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4933 Remove prototypes.
4934 (supply_gregset, fill_gregset): Remove use of register keyword and
4935 remove declaration for regmap. Use I386_NUM_GREGS instead of
4936 NUM_REGS and NUM_FREGS.
4937 (FPREGSET_FSAVE_OFFSET): Remove.
4938 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4939 NUM_FREGS to determine whether the floating-point registers are
4940 available.
4941
65e78234
MK
4942 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4943 gnu_store_registers): Replace usage of NUM_GREGS with
4944 I386_NUM_GREGS.
4945
98df6387
MK
4946 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4947 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4948 usage of NUM_GREGS with I386_NUM_GREGS.
4949
099a9414
MK
4950 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4951
57976e88
MK
4952 * i386bsd-nat.c: Include "i386-tdep.h".
4953 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4954 I386_NUM_GREGS.
4955
b335f4a6
MK
4956 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4957 and associated comment. They no longer make any sense, since we
4958 don't use this file anymore on Linux.
4959
1cf88de5
MK
4960 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4961 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4962 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4963 elements in these arrays.
4964 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4965 MAX_NUM_REGS.
4966
daa66587
MK
49672002-06-15 Mark Kettenis <kettenis@gnu.org>
4968
4969 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4970 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4971
26e9b323
AC
49722002-06-14 Andrew Cagney <cagney@redhat.com>
4973
4974 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4975 EXTRACT_RETURN_VALUE.
4976 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4977 EXTRACT_STRUCT_VALUE_ADDRESS.
4978 * gdbarch.h, gdbarch.c: Regenerate.
4979
4980 * values.c (value_being_returned): Handle
4981 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4982 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4983
4984 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4985 * arm-tdep.c (arm_gdbarch_init): Update.
4986 * avr-tdep.c (avr_gdbarch_init): Update.
4987 * cris-tdep.c (cris_gdbarch_init): Update.
4988 * d10v-tdep.c (d10v_gdbarch_init): Update.
4989 * ia64-tdep.c (ia64_gdbarch_init): Update.
4990 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4991 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4992 * s390-tdep.c (s390_gdbarch_init): Update.
4993 * sh-tdep.c (sh_gdbarch_init): Update.
4994 * s390-tdep.c (s390_gdbarch_init): Update.
4995 * sparc-tdep.c (sparc_gdbarch_init): Update.
4996 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4997 * v850-tdep.c (v850_gdbarch_init): Update.
4998 * vax-tdep.c (vax_gdbarch_init): Update.
4999 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5000 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5001
5002 * config/arc/tm-arc.h: Update.
5003 * config/d30v/tm-d30v.h: Update.
5004 * config/fr30/tm-fr30.h: Update.
5005 * config/h8300/tm-h8300.h: Update.
5006 * config/h8500/tm-h8500.h: Update.
5007 * config/i386/tm-i386.h: Update.
5008 * config/i386/tm-ptx.h: Update.
5009 * config/i386/tm-symmetry.h: Update.
5010 * config/i960/tm-i960.h: Update.
5011 * config/m32r/tm-m32r.h: Update.
5012 * config/m68k/tm-delta68.h: Update.
5013 * config/m68k/tm-linux.h: Update.
5014 * config/m68k/tm-m68k.h: Update.
5015 * config/m88k/tm-m88k.h: Update.
5016 * config/mcore/tm-mcore.h: Update.
5017 * config/mips/tm-mips.h: Update.
5018 * config/mn10200/tm-mn10200.h: Update.
5019 * config/pa/tm-hppa.h: Update.
5020 * config/pa/tm-hppa64.h: Update.
5021 * config/sparc/tm-sp64.h: Update.
5022 * config/sparc/tm-sparc.h: Update.
5023 * config/sparc/tm-sparclet.h: Update.
5024 * config/z8k/tm-z8k.h: Update.
5025
5179e78f
AC
50262002-06-14 Andrew Cagney <cagney@redhat.com>
5027
5028 * Makefile.in (i386_linux_tdep_h): Define.
5029 (i386_tdep_h, i387_tdep_h): Define.
5030 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5031 $(i386_tdep_h) and $(i387_tdep_h).
5032 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5033
8201327c
MK
50342002-06-14 Mark Kettenis <kettenis@gnu.org>
5035
edf393ac
MK
5036 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5037 Already covered by the default.
5038
896fb97d
MK
5039 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5040 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5041 (i386_gdbarch_init): Initialize long_double_format and long_double
5042 bit.
5043
8201327c
MK
5044 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5045 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5046 Move these to ...
5047 * config/i386/i386sol2.mh: ... here.
5048 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5049 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5050 (SIGCONTEXT_PC_OFFSET): Remove define.
5051 (IN_SIGTRAMP): Remove define.
5052 * i386-sol2-tdep.c: New file.
5053
5054 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5055 * config/i386/tm-i386nw.h: Removed.
5056
5057 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5058 USE_STRUCT_CONVENTION): Remove defines.
5059 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5060 (get_longjmp_target): Remove prototype.
5061 (IN_SIGTRAMP): Remove define.
5062 (i386bsd_in_sigtramp): Remove prototype.
5063 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5064 function. Update comment accordingly
5065 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5066 (FRAME_SAVED_PC): Remove define.
5067 (i386bsd_frame_saved_pc): Remove prototype.
5068 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5069 GET_LONGJMP_TARGET): Remove defines.
5070 (get_longjmp_target): Remove prototype.
5071 (IN_SIGTRAMP): Remove define.
5072 (i386bsd_in_sigtramp): Remove prototype.
5073 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5074 function. Update comment accordingly
5075 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5076 (FRAME_SAVED_PC): Remove define.
5077 (i386bsd_frame_saved_pc): Remove prototype.
5078 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5079 Remove prototype.
5080 (USE_STRUCT_CONVENTION): Remove prototype.
5081 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5082 declaration.
5083 (_initialize_i386bsd_nat): Revise logic to determine some
5084 constants at compile time when compiling a native GDB. Warn if
5085 things don't match up with what we expect.
5086 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5087 Remove variables.
5088 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5089 to use date stored in `struct gdbarch_tdep'.
5090 (i386bsd_sigcontext_offset): Remove varaible.
5091 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5092 stored in `struct gdbarch_tdep'.
5093 (i386bsd_frame_saved_pc): Make static.
5094 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5095 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5096 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5097 i386fbsd4_sc_pc_offset): New variables.
5098 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5099 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5100 functions.
5101 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5102 functions.
5103 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5104 Modify the value of i386fbsd_sigtramp_start and
5105 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5106 i386fbsd_sigtramp_end.
5107 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5108 function.
5109
5110 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5111 define to i386-linux-tdep.h.
5112 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5113 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5114 defines.
5115 (i386_linux_register_name, i386_linux_register_byte,
5116 i386_linux_register_raw_size): Remove prototypes.
5117 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5118 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5119 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5120 TARGET_WRITE_PC): Remove defines.
5121 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5122 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5123 i386_linux_write_pc): Remove prototypes.
5124 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5125 (get_longjmp_target): Remove prototype.
5126 * i386-linux-tdep.h: New file.
5127 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5128 * i386-linux-tdep.c: Include "i386-tdep.h" and
5129 "i386-linux-tdep.h".
5130 (i386_linux_register_name, i386_linux_register_byte,
5131 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5132 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5133 Make static.
5134 (i386_linux_init_abi): New function.
5135 (_initialize_i386_linux_tdep): New function.
5136
5137 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5138 (i386_saved_pc_after_call): Remove prototype.
5139 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5140 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5141 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5142 (i386_register_name, i386_stab_reg_to_regnum,
5143 i386_dwarf_reg_to_regnum): Remove prototypes.
5144 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5145 SIZEOF_SSE_REGS): Remove defines.
5146 (REGISTER_BYTES): Remove define.
5147 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5148 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5149 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5150 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5151 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5152 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5153 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5154 (get_longjmp_target): Remove prototype.
5155 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5156 (sigtramp_saved_pc): Remove define.
5157 (i386v4_sigtramp_saved_pc): Remove prototype.
5158 * config/i386/tm-go32.h (FRAME_CHAIN,
5159 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5160 (i386go32_frame_saved_pc): Remove prototype.
5161 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5162 (get_longjmp_target): Remove prototype.
5163 * i386-tdep.h: Include "osabi.h".
5164 (enum i386_abi): Removed.
5165 (enum struct_return): New enum.
5166 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5167 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5168 sc_pc_offset members.
5169 (i386_gdbarch_register_os_abi): Remove prototype.
5170 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5171 I386_SSE_NUM_REGS): New defines.
5172 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5173 I386_SSE_SIZEOF_REGS): New defines.
5174 (i386_register_name, i386_register_byte, i386_register_raw_size):
5175 New prototypes.
5176 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5177 (i386bsd_sigtramp_saved_pc): New prototype.
5178 * i386-tdep.c: Don't include "elf-bfd.h".
5179 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5180 i386_frame_chain, i386_saved_pc_after_call): Make static.
5181 (i386_frame_saved_pc): Rewrite to call architecture dependent
5182 function to deal with signal handlers. Make static.
5183 (i386go32_frame_saved_pc): Removed.
5184 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5185 Removed.
5186 (i386_get_longjmp_target): New function.
5187 (default_struct_convention, pcc_struct_convention,
5188 reg_struct_convention, valid_conventions, struct_convention): New
5189 variables.
5190 (i386_use_struct_convention): New function.
5191 (i386v4_sigtramp_saved_pc): Renamed to
5192 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5193 (i386_pc_in_sigtramp): New function.
5194 (i386_abi_names): Removed.
5195 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5196 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5197 Removed.
5198 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5199 i386_gdbarch_register_os_abi): Removed.
5200 (struct i386_abi_handler): Removed.
5201 (i386_abi_handler_list): Removed.
5202 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5203 functions.
5204 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5205 i386_nw_init_abi): New functions.
5206 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5207 Use set_gdbarch_xxx() calls instead of relying on macros for a
5208 number of calls.
5209 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5210 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5211 Register the various architecture variants defined in this file.
5212
ad2f7632
DJ
52132002-06-14 Daniel Jacobowitz <drow@mvista.com>
5214
5215 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5216 (struct main_type): Remove arg_types member. Update comments for
5217 struct field.
5218 (TYPE_ARG_TYPES): Remove.
5219 (TYPE_FN_FIELD_ARGS): Update.
5220 (smash_to_method_type): Update prototype.
5221
5222 * c-typeprint.c (cp_type_print_method_args): Take method type
5223 instead of argument list. Use new argument layout. Simplify.
5224 (c_type_print_args): Use new argument layout. Simplify.
5225 (c_type_print_base): Update call to cp_type_print_method_args.
5226 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5227 argument; use die->type instead. Update call to
5228 smash_to_method_type.
5229 (read_structure_scope): Update call to dwarf2_add_member_fn.
5230 * gdbtypes.c (allocate_stub_method): Update comment.
5231 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5232 Use new argument layout.
5233 (check_stub_method): Use new argument layout. Don't count
5234 void as an argument.
5235 (print_arg_types): Update comments. Use new argument layout.
5236 (recursive_dump_type): Don't print arg_types member.
5237 * hpread.c (hpread_read_struct_type): Use new argument layout.
5238 (fixup_class_method_type): Likewise.
5239 (hpread_type_lookup): Likewise.
5240 * stabsread.c (read_type): Update calls to read_args and
5241 smash_to_method_type.
5242 (read_args): Use new argument layout. Simplify.
5243 * valops.c (typecmp): Use new argument layout. Update parameters
5244 and comments. Simplify.
5245 (hand_function_call): Use new argument layout.
5246 (search_struct_method): Update call to typecmp.
5247 (find_overload_match): Use new argument layout.
5248
6da02953
DJ
52492002-06-13 Daniel Jacobowitz <drow@mvista.com>
5250
5251 * NEWS: Mention multithreaded debug support for gdbserver.
5252
519b2366
DJ
52532002-06-13 Daniel Jacobowitz <drow@mvista.com>
5254
5255 * MAINTAINERS: Mention NEWS.
5256
6c0d6680
DJ
52572002-06-13 Daniel Jacobowitz <drow@mvista.com>
5258
5259 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5260 (struct mips_objfile_private, compare_pdr_entries): New.
5261 (non_heuristic_proc_desc): Read the ".pdr" section if it
5262 is present.
5263
6529d2dd
AC
52642002-06-12 Andrew Cagney <ac131313@redhat.com>
5265
5266 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5267 (arm_debug): New static variable.
5268 (_initialize_arm_tdep): Add ``set debug arm'' command.
5269
26216b98
AC
52702002-06-12 Andrew Cagney <ac131313@redhat.com>
5271
5272 * Makefile.in (sim_arm_h): Define.
5273 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5274 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5275 (arm_register_sim_regno): New function, map an internal REGNUM
5276 onto a simulator register number.
5277 (arm_gdbarch_init): Set register_sim_regno.
5278
814b3ba0
AH
52792002-06-09 Aldy Hernandez <aldyh@redhat.com>
5280
5281 * MAINTAINERS: Add self.
5282
475b0867
JB
52832002-06-11 Jim Blandy <jimb@redhat.com>
5284
919d772c
JB
5285 * source.c (source_info): Mention whether the symtab has
5286 information about preprocessor macros.
5287
475b0867
JB
5288 Call the command `info macro', not `show macro'.
5289 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5290 Fix error message.
5291 (_initialize_macrocmd): Register `info_macro_command' in
5292 `infolist', not `showlist'.
5293
9e364162
DJ
52942002-06-11 Daniel Jacobowitz <drow@mvista.com>
5295
5296 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5297 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5298 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5299 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5300 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5301 unconditionally.
5302 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5303 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5304 (_initialize_mips_tdep): Remove dead code.
5305 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5306 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5307 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5308 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5309 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5310 MIPS_LAST_FP_ARG_REGNUM): Remove.
5311
23aa4c72
ML
53122002-06-11 Michal Ludvig <mludvig@suse.cz>
5313
5314 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5315 (unwind_tmp_obstack_free, parse_frame_info)
5316 (update_context, cfi_read_fp, cfi_write_fp)
5317 (cfi_frame_chain, cfi_init_extra_frame_info)
5318 (cfi_virtual_frame_pointer): Use the above function.
264d1763 5319 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 5320
70eb15a4
CV
53212002-06-11 Corinna Vinschen <vinschen@redhat.com>
5322
5323 * v850-tdep.c (v850_type_is_scalar): New function.
5324 (v850_use_struct_convention): Match current gcc implementation
5325 as close as possible.
5326 (v850_push_arguments): Fix stack_offset handling. Don't write
5327 struct_addr into register. This is done by v850_store_struct_return.
5328 (v850_extract_return_value): Care for structs.
5329 (v850_store_return_value): Ditto.
5330 (v850_store_struct_return): Actually write address.
5331
482a4d06
ML
53322002-06-11 Michal Ludvig <mludvig@suse.cz>
5333
5334 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5335 without debug information too.
5336
d855c300
AC
53372002-06-10 Andrew Cagney <ac131313@redhat.com>
5338
5339 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5340 Make multi-arch pure.
5341 * gdbarch.h, gdbarch.c: Re-generate.
5342 * arm-tdep.c (arm_print_float_info): Update.
5343 * arch-utils.h (default_print_float_info): Update.
5344 * arch-utils.c (default_print_float_info): Update.
5345 * infcmd.c (float_info): Update call.
5346
dd12a101
AC
53472002-06-10 Andrew Cagney <ac131313@redhat.com>
5348
5349 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5350 the front of the initialize list.
5351
101dcfbe
AC
53522002-06-10 Andrew Cagney <ac131313@redhat.com>
5353
5354 * infrun.c (struct inferior_status): Replace fields
5355 selected_frame_address and selected_level with field
5356 selected_frame_id.
5357 (save_inferior_status): Update. Use get_frame_id.
5358 (struct restore_selected_frame_args): Delete.
5359 (restore_selected_frame): Update. Use frame_find_by_id.
5360 (restore_inferior_status): Update.
5361
5362 * breakpoint.h (struct breakpoint): Change type of
5363 watchpoint_frame to frame_id.
5364 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5365 call to get_current_frame.
5366 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5367 get_current_frame.
5368 (watchpoint_check): Use frame_find_by_id.
5369
5370 * frame.h (record_selected_frame): Delete declaration.
5371 * stack.c (record_selected_frame): Delete function.
5372
5373 * frame.h (struct frame_id): Define.
5374 (get_frame_id): Declare.
5375 (frame_find_by_id): Declare.
5376 * frame.c (frame_find_by_id): New function.
5377 (get_frame_id): New function.
5378
304270b6
AV
53792002-06-10 Andrey Volkov <avolkov@transas.com>
5380
5381 * ser-e7kpc.c: Fix duplicated define and call of
5382 _initialize_ser_e7000pc
5383
2f2cf184
DJ
53842002-06-09 Daniel Jacobowitz <drow@mvista.com>
5385
5386 * signals/signals.c (target_signal_from_host): Fix #ifdef
5387 SIGRTMIN case.
5388 (do_target_signal_to_host): Likewise.
5389
caaa3122
DJ
53902002-06-09 Daniel Jacobowitz <drow@mvista.com>
5391
5392 * mips-tdep.c (mips_find_abi_section): New function.
5393 (mips_gdbarch_init): Call it.
5394
6ac5df3a
MK
53952002-06-09 Mark Kettenis <kettenis@gnu.org>
5396
5397 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5398 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5399 after Andrew's 2002-06-08 gdbarch change.
5400
82ea117a
MK
54012002-06-09 Mark Kettenis <kettenis@gnu.org>
5402
5403 * i386-linux-nat.c (suppy_gregset): Don't supply
5404 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5405 register cache.
5406 (fill_gregset): Don't fetch it under the same circumstances.
5407
3c25f8c7
AC
54082002-06-09 Andrew Cagney <cagney@redhat.com>
5409
5410 * Makefile.in (callback_h): Define.
5411 (remote_sim_h): Update path to remote-sim.h.
5412 (remote-rdp.o): Add $(callback_h).
5413 (remote-sim.o): Use $(callback_h).
5414 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5415 * remote-rdp.c: Include "gdb/callback.h".
5416
1029b7fa
MK
54172002-06-09 Mark Kettenis <kettenis@gnu.org>
5418
5419 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5420 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5421
616675d3
AC
54222002-06-08 Andrew Cagney <ac131313@redhat.com>
5423
a3efda28
AC
5424 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5425 * rdi-share/serpardr.c: Ditto.
5426 * rdi-share/unixcomm.c: Ditto.
5427 * rdi-share/serdrv.c: Ditto.
5428 * rdi-share/hostchan.h: Ditto.
5429 * rdi-share/hostchan.c: Ditto.
5430 * rdi-share/host.h: Ditto.
5431 * rdi-share/devsw.c: Ditto.
5432
c5f10366
AC
5433 * objfiles.h: Change type of obj_private to void pointer.
5434 * pa64solib.c: Update copyright. Don't include "assert.h", use
5435 strcmp instead of STREQ, use LONGEST, do not use PTR
5436 * somsolib.c: Ditto.
5437
616675d3
AC
5438 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5439 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5440 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5441
e4b415d9
AC
54422002-06-08 Andrew Cagney <ac131313@redhat.com>
5443
5444 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5445 (default_get_saved_register): Delete function.
5446 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5447 generic_unwind_get_saved_register.
5448 * gdbarch.h, gdbarch.c: Re-generate.
5449
ca0d0b52
AC
54502002-06-08 Andrew Cagney <ac131313@redhat.com>
5451
5452 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5453 generic_func_frame_chain_valid.
5454 * gdbarch.h, gdbarch.c: Re-generate.
5455 * blockframe.c (generic_func_frame_chain_valid): Only check
5456 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5457 passing FP to PC_IN_CALL_DUMMY.
5458 Fix PR gdb/360.
5459
76860b5f
AC
54602002-06-08 Andrew Cagney <ac131313@redhat.com>
5461
5462 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5463 (register_gdbarch_data): Initialize init_p.
5464 (gdbarch_data): Initialize data pointer using the init function.
5465 (init_gdbarch_data): Delete function.
5466 (gdbarch_update_p): Update.
5467 (initialize_non_multiarch): Update.
5468 (struct gdbarch): Add field initialized_p.
5469 * gdbarch.h, gdbarch.c: Re-generate.
5470
8dda9770
ML
54712002-06-07 Michal Ludvig <mludvig@suse.cz>
5472
5473 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5474 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5475 better do the things actually here.
5476 * x86-64-tdep.c (x86_64_register_name2nr): New.
5477 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5478 (x86_64_gdbarch_init): Respect the above change.
5479 * x86-64-tdep.h (x86_64_register_name2nr)
5480 (x86_64_register_nr2name): Add prototypes.
5481 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5482
3d79a47c
MS
54832002-06-06 Michael Snyder <msnyder@redhat.com>
5484
7bd91a28
MS
5485 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5486 Delete extra braces and re-indent.
5487 (d10v_store_return_value): Char return values
3d79a47c
MS
5488 must be shifted over by one byte in R0.
5489 (d10v_extract_return_value): Delete extra braces, re-indent.
5490
095a4c96
EZ
54912002-06-06 Elena Zannoni <ezannoni@redhat.com>
5492
5493 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5494 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5495 (d10v_integer_to_address): Rewrite.
5496 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5497 the d10v specific functions which take care of converting to the
5498 correct space.
5499
e8a77ca4
EZ
55002002-06-06 Elena Zannoni <ezannoni@redhat.com>
5501
5502 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5503 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5504
4f2e4a4f
AC
55052002-06-02 Andrew Cagney <ac131313@redhat.com>
5506
5507 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5508 includes.
5509 * config/tm-linux.h: Ditto.
5510 * config/alpha/tm-alphalinux.h: Ditto.
5511 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5512 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5513 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5514 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5515 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5516 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5517 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5518 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5519 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5520 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5521 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5522 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5523 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5524 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5525 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5526 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5527 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5528 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5529 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5530 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5531 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5532 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5533 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5534 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5535 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5536 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5537 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5538 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5539 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5540 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5541 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5542 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5543 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5544 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5545 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5546 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5547 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5548
ae2ab2ce
AS
55492002-05-04 Aidan Skinner <aidan@velvet.net>
5550
5551 * ada-exp.tab.c: New file
5552 * ada-exp.y: New file
5553 * ada-lang.c: New file
5554 * ada-lang.h: New file
5555 * ada-lex.c: New file
5556 * ada-lex.l: New file
5557 * ada-tasks.c: New file
5558 * ada-typeprint.c: New file
5559 * ada-valprint.c: New file
5560
0ddd0135
JT
55612002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5562
5563 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5564 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5565
750fbacc
JT
55662002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5567
5568 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5569 insetead of ppc-linux-tdep.o.
5570 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5571 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5572
df94e18a
AC
55732002-06-02 Andrew Cagney <ac131313@redhat.com>
5574
5575 2002-05-07 Christian Groessler <chris@groessler.org>
5576 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5577 bit register contents for little endian hosts.
5578
1a38ab75
AC
55792002-06-01 Andrew Cagney <ac131313@redhat.com>
5580
5581 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5582 any maintainer.
5583
8b1632ac
AC
55842002-06-01 Andrew Cagney <ac131313@redhat.com>
5585
5586 * gdbarch.h: Regenerate.
5587
627054c8
AC
55882002-06-01 Andrew Cagney <ac131313@redhat.com>
5589
5590 * MAINTAINERS: Add everyone to write-after-approval list.
5591
4f460812
AC
55922002-06-01 Andrew Cagney <ac131313@redhat.com>
5593
5594 * stack.c (frame_info): Use frame_register_unwind instead of
5595 saved_regs. Mention when the SP is on the stack or in a register.
5596
5597 * frame.h (frame_register_unwind_ftype): Define. Document.
5598 (struct frame_info): Add field register_unwind and
5599 register_unwind_cache.
5600 (frame_register_unwind): Declare.
5601 (generic_unwind_get_saved_register): Declare.
5602
5603 * frame.c (frame_register_unwind): New function.
5604 (generic_unwind_get_saved_register): New function.
5605
5606 * blockframe.c (generic_call_dummy_register_unwind): New function.
5607 (frame_saved_regs_register_unwind): New function.
5608 (set_unwind_by_pc): New function.
5609 (create_new_frame): New function.
5610 (get_prev_frame): New function.
5611
de888f76
AC
56122002-05-30 Andrew Cagney <ac131313@redhat.com>
5613
5614 * a29k-share/: Delete directory.
5615 * remote-vx29k.c: Delete file.
5616
2f2c3626
JT
56172002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5618
5619 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5620 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5621
9ce5c36a
JT
56222002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5623
5624 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5625 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5626 (sparc64nbsd-nat.o)
5627 (sparcnbsd-nat.o)
5628 (sparcnbsd-tdep.o): New dependency lists.
5629 * NEWS: Note new UltraSPARC NetBSD native configuration.
5630 * configure.host (sparc64-*-netbsd*): New host.
5631 * configure.tgt (sparc-*-netbsdelf*)
5632 (sparc-*-netbsd*): Set gdb_target to nbsd.
5633 (sparc64-*-netbsd*): New target.
5634 * sparc64nbsd-nat.c: New file.
5635 * sparcnbsd-nat.c: New file.
5636 * sparcnbsd-tdep.c: New file.
5637 * sparcnbsd-tdep.h: New file.
5638 * config/sparc/nbsd.mt: New file.
5639 * config/sparc/nbsd64.mh: New file.
5640 * config/sparc/nbsd64.mt: New file.
5641 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5642 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5643 (HOST_IPC): Remove.
5644 * config/sparc/nbsdaout.mt: Remove.
5645 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5646 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5647 (HOST_IPC): Remove.
5648 * config/sparc/nbsdelf.mt: Remove.
5649 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5650 sparc-nat.c compatiblity defines.
5651 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5652 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5653 * config/sparc/tm-nbsd64.h: New file.
5654 * config/sparc/tm-nbsdaout.h: Remove.
5655 * config/sparc/xm-nbsd.h: Remove.
5656
ef3cf062
JT
56572002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5658
5659 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5660 * sparc-tdep.c: Include osabi.h.
5661 (gdbarch_tdep): Add osabi member.
5662 (_initialize_sparc_tdep): Use gdbarch_register.
5663 (sparc_gdbarch_init): Use generic OS ABI framework.
5664 (sparc_dump_tdep): New function.
5665
ee8ff470
KB
56662002-05-30 Kevin Buettner <kevinb@redhat.com>
5667
5668 * corefile.c (do_captured_read_memory_integer): Return non-zero
5669 result.
5670 (safe_read_memory_integer): Copy result of memory read when
5671 status is non-zero. Also, add comments.
5672
7b112f9c
JT
56732002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5674
5675 * Makefile.in (ppc_tdep_h): Define.
5676 (ppc-linux-nat.o)
5677 (ppc-linux-tdep.o)
5678 (rs6000-tdep.o): Use $(ppc_tdep_h).
5679 (ppc-sysv-tdep.o)
5680 (ppcnbsd-nat.o)
5681 (ppcnbsd-tdep.o): New dependency lists.
5682 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5683 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5684 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5685 (ppc_sysv_abi_broken_use_struct_convention)
5686 (ppc_sysv_abi_use_struct_convention)
5687 (ppc_sysv_abi_push_arguments): Move to...
5688 * ppc-sysv-tdep.c: ...here.
5689 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5690 * rs6000-tdep.c (process_note_abi_tag_sections)
5691 (get_elfosabi): Remove.
5692 (rs6000_gdbarch_init): Use generic OS ABI framework.
5693 (rs6000_dump_tdep): New function.
5694 (_initialize_rs6000_tdep): Use gdbarch_register.
5695 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5696 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5697 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5698 of ppc-linux-tdep.o.
5699 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5700 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5701 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5702 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5703 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5704 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5705
480dd42a
JB
57062002-05-29 Jim Blandy <jimb@redhat.com>
5707
5708 * macroscope.c (default_macro_scope): Put `void' in empty argument
5709 list.
5710
4182591f
AC
57112002-05-29 Andrew Cagney <ac131313@redhat.com>
5712
5713 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5714 * arch-utils.c: Include "sim-regno.h".
5715 * gdbarch.sh: Don't include "sim-regno.h".
5716 * gdbarch.h, gdbarch.c: Regenerate.
5717 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5718 here.
5719 * arch-utils.h (legacy_register_sim_regno): To here.
5720 * remote-sim.c (legacy_register_sim_regno): Move function from
5721 here.
5722 * arch-utils.c (legacy_register_sim_regno): To here.
5723
8238d0bf
AC
57242002-05-28 Andrew Cagney <ac131313@redhat.com>
5725
5726 * sim-regno.h: New file.
5727 * Makefile.in (sim_regno_h): Define.
5728 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5729 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5730 (legacy_register_sim_regno): New function.
5731 (one2one_register_sim_regno): New function.
5732 (gdbsim_fetch_register): Rewrite.
5733 (gdbsim_store_register): Only store a register when
5734 REGISTER_SIM_REGNO is valid.
5735 * d10v-tdep.c: Include "sim-regno.h".
5736 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5737 (d10v_ts3_register_sim_regno): Ditto.
5738 * gdbarch.sh: Include "sim-regno.h".
5739 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5740 * gdbarch.h, gdbarch.c: Regenerate.
5741 * arch-utils.h (default_register_sim_regno): Delete declaration.
5742 * arch-utils.c (default_register_sim_regno): Delete function.
5743
485721b1
JT
57442002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5745
5746 * ppcnbsd-nat.c: Rewrite.
5747 * ppcnbsd-tdep.c: New file.
5748 * ppcnbsd-tdep.h: New file.
5749 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5750 solib.o, and solib-svr4.o.
5751 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5752 nbsd-tdep.o, and corelow.o.
5753
697f244d
AC
57542002-05-28 Andrew Cagney <ac131313@redhat.com>
5755
5756 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5757 `tr' and `sed'. Mention that `broken' targets are not expected to
5758 build.
5759
f08caad1 57602002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5761
5762 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5763 Let PC point right after the prologue before looking up symbols.
5764
3139facc
MH
57652002-05-27 Martin M. Hunt <hunt@redhat.com>
5766
5767 * i386-tdep.c (i386_register_virtual_type): Return
5768 builtin_type_vec128i for SSE registers.
5769
5770 * gdbtypes.h (builtin_type_vec128i): Declare.
5771
5772 * gdbtypes.c (build_builtin_type_vec128i): New function.
5773 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5774 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5775 (build_gdbtypes): Initialize new builtin vector types.
5776 (_initialize_gdbtypes): Register new vector types with gdbarch.
5777
6e3ba3b8
JT
57782002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5779
5780 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5781 since it has been multi-arch'd.
5782 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5783 Move Alpha and VAX multi-arch news entries to same section
5784 as other multi-arch news.
5785
93d5585d
JT
57862002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5787
5788 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5789 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5790 static. Rename some register numbers to put them in ns32k-tdep
5791 private namespace.
5792 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5793 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5794 functions.
5795 (_initialize_ns32k_tdep): Use gdbarch_register.
5796 * ns32k-tdep.h: New file.
5797 * ns32knbsd-tdep.c: New file.
5798 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5799 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5800 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5801 REGISTER_BYTES, REGISTER_BYTE): Remove.
5802 * config/ns32k/tm-ns32k.h: New file.
5803 * config/ns32k/tm-umax.h: Remove.
5804
efb2c70e
JT
58052002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5806
5807 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5808 ns32k_store_struct_return, ns32k_extract_return_value,
5809 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5810 functions.
5811 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5812 ns32k_saved_pc_after_call.
5813 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5814 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5815 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5816 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5817 ns32k_extract_struct_value_address.
5818
7bcc927b
JT
58192002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5820
5821 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5822 ns32k_fix_call_dummy): New.
5823 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5824 ns32k_call_dummy_words.
5825 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5826 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5827 CALL_DUMMY_NARGS): Remove.
5828 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5829
78f9d765
JT
58302002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5831
5832 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5833 ns32k_frame_saved_pc, ns32k_frame_args_address,
5834 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5835 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5836 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5837 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5838 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5839 (BREAKPOINT): Remove..
5840 (FRAME_CHAIN): Define as ns32k_frame_chain.
5841 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5842 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5843 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5844 (FRAME_FIND_SAVED_REGS): Remove.
5845 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5846 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5847 (POP_FRAME): Define as ns32k_pop_frame.
5848
f2c762e0
JT
58492002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5850
5851 * ns32k-tdep.c (ns32k_register_byte_32082,
5852 ns32k_register_byte_32382, ns32k_register_raw_size,
5853 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5854 functions.
5855 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5856 ns32k_register_byte_32382.
5857 * config/ns32k/tm-umax.h: Update copyright years.
5858 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5859 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5860 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5861 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5862 (ns32k_get_enter_addr): Fix prototype.
5863
af137673
JT
58642002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5865
5866 * ns32k-tdep.c: Update copyright years.
5867 (ns32k_register_name_32082): New function.
5868 (ns32k_register_name_32382): Ditto.
5869 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5870 (REGISTER_NAME): Define as ns32k_register_name_32382.
5871 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5872 (REGISTER_NAME): Define as ns32k_register_name_32082.
5873
a8bc7b56
JB
58742002-05-24 Jim Blandy <jimb@redhat.com>
5875
5876 * dwarf2read.c (free_line_header): Use xfree, not free.
5877
83a45910
JT
58782002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5879
5880 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5881 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5882
0db71247
AC
58832002-05-23 Andrew Cagney <ac131313@redhat.com>
5884
5885 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5886
b9e5e4dd
AC
58872002-05-23 Andrew Cagney <ac131313@redhat.com>
5888
5889 From Ross Alexander at NEC Europe:
5890 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5891
de530e84
MS
58922002-05-23 Michael Snyder <msnyder@redhat.com>
5893
5894 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5895 for input, rather than parse_and_eval_address.
5896
b91b96f4
AC
58972002-05-23 Andrew Cagney <ac131313@redhat.com>
5898
5899 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5900 * Makefile.in (sim_d10v_h): Update definition.
5901
8b279e7a
AC
59022002-05-24 Andrew Cagney <cagney@redhat.com>
5903
5904 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5905 change `2002-05-22 Michael Snyder' below.
5906 (d10v_push_arguments): Ditto.
5907 (d10v_extract_return_value): Ditto.
5908
0a3d0425
JB
59092002-05-23 Jim Blandy <jimb@redhat.com>
5910
5911 * macrotab.c (check_for_redefinition): Don't complain if the new
5912 definition is the same as the previous one. Take more arguments
5913 to allow the comparison.
5914 (macro_define_object, macro_define_function): Pass more arguments
5915 to check_for_redefinition.
5916
78eac43e
MS
59172002-05-22 Michael Snyder <msnyder@redhat.com>
5918
5919 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5920 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5921 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5922 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5923 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5924 Add a temp variable to save a call (and a memory read).
5925 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5926 if possible (so that PC_IN_CALL_DUMMY will work).
5927
9bc1edb8
CV
59282002-05-22 Corinna Vinschen <vinschen@redhat.com>
5929
5930 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5931
005ef3d2
ML
59322002-05-22 Michal Ludvig <mludvig@suse.cz>
5933
5934 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5935 fde->cie_ptr.
5936 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5937 (dwarf2_build_frame_info): Add offset to fde->initial_location
5938 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
5939 (execute_stack_op): Change type of 'result' from ULONGEST to
5940 CORE_ADDR.
005ef3d2 5941
fcf4f891
JT
59422002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5943
5944 * config/alpha/tm-nbsd.h: Include solib.h.
5945
cfef91e4
JT
59462002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5947
5948 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5949 assumptions about the host's byte order.
5950
9964235a
JT
59512002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5952
5953 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5954 to dependency list.
5955 * alphanbsd-tdep.c: Include solib-svr4.h.
5956 * shnbsd-tdep.c: Ditto.
5957
9eeef8ef
JT
59582002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5959
5960 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5961 nbsd-tdep.h to dependency list.
5962 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5963 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5964 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5965 nbsdaout.mh and nbsdelf.mh consistently.
5966 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5967 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5968 nbsdaout.mt and nbsdelf.mh consistently.
5969 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5970 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5971 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5972 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5973 a.out shared library stuff from here...
5974 * config/nm-nbsdaout.h: ...to here.
5975 * config/tm-nbsd.h: Remove.
5976 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5977 * config/arm/nbsd.mh: Remove.
5978 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5979 nbsd-tdep.o.
5980 * config/arm/nbsdaout.mh: New file.
5981 * config/arm/nbsdelf.mh: New file.
5982 * config/arm/nm-nbsdaout.h: New file.
5983 * config/i386/nbsd.mh: Remove.
5984 * config/i386/nbsd.mt: Remove.
5985 * config/i386/nbsdaout.mh: New file.
5986 * config/i386/nbsdaout.mt: New file.
5987 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5988 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5989 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5990 i386_register_u_addr): Remove.
5991 * config/i386/nm-nbsdaout.h: New file.
5992 * config/i386/nm-nbsdelf.h: Remove.
5993 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5994 (USE_STRUCT_CONVENTION): Remove.
5995 * config/i386/tm-nbsdaout.h: New file.
5996 * config/i386/tm-nbsdelf.h: Remove.
5997 * config/m68k/nbsd.mh: Remove.
5998 * config/m68k/nbsd.mt: Remove.
5999 * config/m68k/nbsdaout.mh: New file.
6000 * config/m68k/nbsdaout.mt: New file.
6001 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6002 * config/m68k/nm-nbsdaout.h: New file.
6003 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6004 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6005 * config/ns32k/nbsd.mh: Remove.
6006 * config/ns32k/nbsd.mt: Remove.
6007 * config/ns32k/nbsdaout.mh: New file.
6008 * config/ns32k/nbsdaout.mt: New file.
6009 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6010 * config/ns32k/nm-nbsdaout.h: New file.
6011 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6012 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6013 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6014 (SVR4_SHARED_LIBS): Remove.
6015 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6016 * config/sparc/nbsd.mh: Remove.
6017 * config/sparc/nbsd.mt: Remove.
6018 * config/sparc/nbsdaout.mh: New file.
6019 * config/sparc/nbsdaout.mt: New file.
6020 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6021 * config/sparc/nbsdelf.mt: New file.
6022 * config/sparc/nm-nbsdaout.h: New file.
6023 * config/sparc/nm-nbsdelf.h: Remove.
6024 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6025 * config/sparc/tm-nbsdaout.h: New file.
6026
257ce470
JT
60272002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6028
6029 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6030 mipsnbsd-tdep.c
6031 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6032
76a6d5fe
JT
60332002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6034
6035 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6036 shnbsd-nat.c.
6037 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6038
45888261
JT
60392002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6040
6041 * NEWS: Note new MIPS NetBSD native configuration.
6042 * configure.host (mips*-*-netbsd*): New host.
6043 * configure.tgt (mips*-*-netbsd*): New target.
6044 * mipsnbsd-nat.c: New file.
6045 * mipsnbsd-tdep.c: New file.
6046 * mipsnbsd-tdep.h: New file.
6047 * config/mips/nbsd.mh: New file.
6048 * config/mips/nbsd.mt: New file.
6049 * config/mips/nm-nbsd.h: New file.
6050 * config/mips/tm-nbsd.h: New file.
6051
70f80edf
JT
60522002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6053
6054 * Makefile.in (SFILES): Add osabi.c.
6055 (COMMON_OBS): Add osabi.o.
6056 (osabi.o): New dependency list.
6057 * osabi.c: New file.
6058 * osabi.h: New file.
6059 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6060
6061 * Makefile.in (alpha_tdep_h): Define and use instead of
6062 alpha-tdep.h.
6063 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6064 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6065 Remove.
6066 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6067 * alpha-tdep.h: Include osabi.h.
6068 (alpha_abi): Remove.
6069 (gdbarch_tdep): Use generic OS ABI framework.
6070 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6071 gdbarch_register_osabi.
6072 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6073 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6074 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6075
6076 * Makefile.in (sh_tdep_h): Add osabi.h.
6077 * sh-tdep.h (sh_osabi): Remove.
6078 (gdbarch_tdep): Use generic OS ABI framework.
6079 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6080 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6081 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6082 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6083
6084 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6085 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6086 gdbarch_register_osabi.
6087 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6088 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6089 (get_elfosabi): Rename to...
6090 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6091 ABI framework support routines.
6092 (arm_gdbarch_init): Use generic OS ABI framework.
6093 (arm_dump_tdep): Likewise.
6094 (_initialize_arm_tdep): Likewise.
6095 * arm-tdep.h: Include osabi.h.
6096 (arm_abi): Remove.
6097 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6098 osabi member.
6099 (arm_gdbarch_register_os_abi): Remove prototype.
6100 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6101 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6102
6103 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6104 * mips-tdep.c: Include osabi.h.
6105 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6106 OS ABI framework.
6107
d194345b
KH
61082002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6109
6110 * h8300-tdep.c: Fix formatting.
6111
70c6b0d1
EZ
61122002-05-20 Elena Zannoni <ezannoni@redhat.com>
6113
6114 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6115 printing vector registers.
6116
165b8e33
AC
61172002-05-19 Andrew Cagney <ac131313@redhat.com>
6118
6119 From Fernando Nasser:
6120 * remote.c (remote_async_open_1): Re-throw the exception when the
6121 connection fails.
6122 (remote_cisco_open): Ditto.
6123 (remote_open_1): Ditto.
6124
36918e70
AC
61252002-05-19 Andrew Cagney <ac131313@redhat.com>
6126
6127 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6128 (remote_start_remote): Add uiout parameter. Pass through to
6129 remote_start_remote_dummy.
6130 (remote_open_1): Use catch_exception instead of catch_errors.
6131 (remote_async_open_1): Ditto.
6132 (remote_cisco_open): Ditto.
6133
ae44c0c4
AC
61342002-05-19 Andrew Cagney <ac131313@redhat.com>
6135
6136 * remote.c (remote_start_remote): Replace PTR with void pointer.
6137 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6138 static.
6139
8efe637d
AC
61402002-05-18 Andrew Cagney <ac131313@redhat.com>
6141
6142 * gdb_indent.sh: Allow the script to be run in the sim directory.
6143
2f1b5984
MK
61442002-05-18 Mark Kettenis <kettenis@gnu.org>
6145
f0f625e2
MK
6146 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6147 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6148
2f1b5984
MK
6149 * corelow.c (core_open): Only call set_gdbarch_from_file if
6150 exec_bfd is NULL.
6151
fc974602
AV
61522002-05-17 Andrey Volkov <avolkov@transas.com>
6153
6154 * h8300-tdep.c: Add support of EXR register
6155 * config/h8300/tm-h8300.h: Ditto.
6156
906709f4
AV
61572002-05-17 Andrey Volkov <avolkov@transas.com>
6158
6159 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6160
6e591d68
AV
61612002-05-17 Andrey Volkov <avolkov@transas.com>
6162
6163 * h8300-tdep.c: Change literal regnums to REGNO.
6164
84f0252a
JB
61652002-05-17 Jim Blandy <jimb@redhat.com>
6166
e0e9281e
JB
6167 * NEWS: Note addition of macro support.
6168
84f0252a
JB
6169 Expand preprocessor macros in C expressions.
6170 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6171 (scan_macro_expansion, scanning_macro_expansion,
6172 finished_macro_expansion): New function declarations.
6173 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6174 variable declarations.
6175 * parser-defs.h (expression_context_pc): New declaration.
6176 * parse.c (expression_context_pc): New variable.
6177 (parse_exp_1): Set expression_context_pc, as well as
6178 expression_context_block.
6179 * c-exp.y (yylex): If we're not already reading the result of a
6180 macro expansion, try to macro-expand the next token. When we're
6181 done scanning a macro expansion, switch back to the mainline text.
6182 Commas and `if's in a macro's expansion don't terminate the input.
6183 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6184 (macro_original_text, macro_expanded_text,
6185 expression_macro_lookup_func, expression_macro_lookup_baton): New
6186 variables.
6187 (scan_macro_expansion, scanning_macro_expansion,
6188 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6189 c_preprocess_and_parse): New functions.
6190 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6191 c_preprocess_and_parse, instead of c_parse.
6192 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6193 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6194
1c509ca8
JR
6195Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6196
6197 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6198 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6199 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6200
2250ee0c
CV
62012002-05-17 Corinna Vinschen <vinschen@redhat.com>
6202
6203 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6204
ab3b8126
JT
62052002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6206
6207 * Makefile.in (sh_tdep_h): Define and use.
6208 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6209 register enum): Move to...
6210 * * sh-tdep.h: ...here.
6211 * sh-tdep.c: Include sh-tdep.h.
6212 * sh3-rom.c: Likewise.
6213 * shnbsd-tdep.c: Likewise.
6214
ed9d4749
MS
62152002-05-16 Michael Snyder <msnyder@redhat.com>
6216
6217 * arm-tdep.c: Spelling fix in comment.
6218
2e276125
JB
62192002-05-16 Jim Blandy <jimb@redhat.com>
6220
6821892e
JB
6221 Add commands for manually expanding macros and showing their
6222 definitions.
6223 * macrocmd.c, macroscope.c, macroscope.h: New files.
6224 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6225 (macroscope_h): New variable.
6226 (HFILES_NO_SRCDIR): Add macroscope.h.
6227 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6228 (macroscope.o, macrocmd.o): New rules.
6229
2e276125
JB
6230 Teach the Dwarf 2 reader to read macro information.
6231 * dwarf2read.c: #include "macrotab.h".
6232 (dwarf_macinfo_buffer): New variable.
6233 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6234 dwarf_macinfo_size.
6235 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6236 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6237 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6238 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6239 dwarf2_macro_spaces_in_definition): New complaints.
6240 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6241 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6242 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6243 the partial symbol table.
6244 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6245 from what's recorded in the partial symbol table.
6246 (read_file_scope): If the compilation unit has a
6247 `DW_AT_macro_info' attribute, read its macro information.
6248 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6249
2f53fe6c
DJ
62502002-05-16 Daniel Jacobowitz <drow@mvista.com>
6251
6252 Fix PR gdb/546
6253 * ser-tcp.c: Don't include <netinet/udp.h>.
6254
2be99286
SC
62552002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6256
6257 * MAINTAINERS: Update my email address.
6258
c9af212b 62592002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
6260
6261 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6262 include file of the same name.
6263
bf5f1a52
CV
62642002-05-16 Corinna Vinschen <vinschen@redhat.com>
6265
6266 * configure.tgt: Mark v850 as multi-arched.
6267 * config/v850/tm-v850.h: Remove file.
6268 * config/v850/v850.mt: Eliminate TM_FILE.
6269
435e042a
CV
62702002-05-16 Corinna Vinschen <vinschen@redhat.com>
6271
6272 * v850-tdep.c: Full multi-arch.
6273 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6274 Define GDB_MULTI_ARCH to 2.
6275
9819c6c8
PM
62762002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6277
6278 * p-exp.y (current_type): New static variable.
6279 Carries the type of the expression at the position that is parsed.
6280 (push_current_type, pop_current_type): Two new functions. Used
6281 to store/restore current_type in expression on specific tokens.
c9af212b
RE
6282 (search_field): New static variable. Set to one after parsing a point
6283 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
6284 (FIELDNAME): New token. After a point only a token belonging to
6285 current_type type definition is allowed.
6286 (all over token rules): reset and change current_type according
6287 to rules.
6288 (exp '[' rule): insert implicit array index field if
6289 exp is a pascal string type.
6290
3a06899a
CV
62912002-05-16 Corinna Vinschen <vinschen@redhat.com>
6292
6293 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6294 frame info. Use frame_info's saved_regs instead of matching member
6295 in extra_frame_info throughout.
6296 (v850_frame_init_saved_regs): New function.
6297 (v850_init_extra_frame_info): Move most functionality into
6298 v850_frame_init_saved_regs().
6299 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6300 (v850_frame_find_saved_regs): Remove declaration.
6301 (FRAME_FIND_SAVED_REGS): Remove definition.
6302 (v850_frame_init_saved_regs): Add declaration.
6303 (FRAME_INIT_SAVED_REGS): Add definition.
6304
6ed14b0e
CV
63052002-05-16 Corinna Vinschen <vinschen@redhat.com>
6306
6307 * v850-tdep.c: Begin multi-arch'ing v850.
6308 (v850_target_architecture_hook): Remove function.
6309 (v850_gdbarch_init): New function. Add code previously in
6310 v850_target_architecture_hook().
6311 (_initialize_v850_tdep): Don't set target_architecture_hook.
6312 Call register_gdbarch_init() instead.
6313
42725910
DJ
63142002-05-16 Daniel Jacobowitz <drow@mvista.com>
6315
6316 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6317 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6318 (fixup_class_method_type): Likewise.
6319
99d9066e
JB
63202002-05-15 Jim Blandy <jimb@redhat.com>
6321
6322 Add macro structures to GDB's symbol tables. Nobody puts anything
6323 in them yet.
6324 * symtab.h (struct symtab): New member: `macro_table'.
6325 * buildsym.h (pending_macros): New global variable.
6326 * buildsym.c: #include "macrotab.h".
6327 (buildsym_init): Initialize `pending_macros'.
6328 (end_symtab): If we found macro information while reading a CU's
6329 debugging info, do build a symtab structure for it. Make the
6330 symtab point to the macro information, and clear the
6331 `pending_macros' pointer which held it while we were reading the
6332 debug info.
6333 (really_free_pendings): Free any pending macro table.
6334 * objfiles.h (struct objfile): New member: `macro_cache'.
6335 * objfiles.c (allocate_objfile): Set allocate and free functions
6336 for the macro cache's objstack.
6337 (free_objfile): Empty the macro cache's obstack.
6338 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6339 set new allocate and free functions for it.
6340 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6341 free functions for the macro cache's objstack. (Why is this
6342 function building its own objfile?)
6343 * symmisc.c (print_objfile_statistics): Print statistics on the
6344 macro bcache.
6345 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6346
c899585b
RE
63472002-05-15 Richard Earnshaw <rearnsha@arm.com>
6348
6349 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6350 (REGISTER_U_ADDR): Delete definition.
6351 (arm_register_u_addr): Delete declaration.
6352
a6cdd8c5
RE
63532002-05-15 Richard Earnshaw <rearnsha@arm.com>
6354
6355 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6356 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6357
c97dcfc7
AC
63582002-05-14 Andrew Cagney <ac131313@redhat.com>
6359
6360 * regcache.c (register_valid): Revise comments refering to "Not
6361 available" and "unavailable".
6362 * frame.c (frame_register_read): Ditto.
6363 * findvar.c (value_of_register): Ditto.
6364
93021b7d
AC
63652002-05-15 Andrew Cagney <cagney@redhat.com>
6366
6367 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6368 (remote-sim.o): Update dependencies.
6369 (d10v-tdep.o): Specify dependencies.
6370 (sim_d10v_h): Define.
6371
a86bc61c
JB
63722002-05-14 Jim Blandy <jimb@redhat.com>
6373
6374 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6375 * macrotab.c (macro_lookup_inclusion, find_definition,
6376 new_macro_table): Same.
6377
6378 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6379 not `! strcmp ()'. This is a dubious improvement.
6380 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6381
6382 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6383 although it's not necessary, to avoid a warning.
6384
2fdde8f8
DJ
63852002-05-14 Daniel Jacobowitz <drow@mvista.com>
6386
6387 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6388 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6389 TYPE_INSTANCE_FLAGS.
6390 (struct main_type): New.
6391 (struct type): Move most members to struct main_type. Change
6392 cv_type and as_type to new type_chain member. Add instance_flags.
6393 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6394 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6395 (finish_cv_type): Remove prototype.
6396 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6397 Set TYPE_CHAIN.
6398 (alloc_type_instance): New function.
6399 (smash_type): New function.
6400 (make_pointer_type, make_reference_type, make_function_type)
6401 (smash_to_member_type, smash_to_method_type): Call smash_type.
6402 (make_qualified_type): New function.
6403 (make_type_with_address_space): Call make_qualified_type.
6404 (make_cv_type): Likewise.
6405 (finish_cv_type): Remove unnecessary function.
6406 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6407 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6408 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6409 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6410 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6411 * hpread.c (hpread_read_struct_type): Likewise.
6412 * stabsread.c (read_struct_type): Likewise.
6413
843fedf4
EZ
64142002-05-14 Elena Zannoni <ezannoni@redhat.com>
6415
6416 * configure.tgt: Add a catch all sh* target, for cases like
6417 sh[2,3,4]-elf and sh-hms.
6418
05a6c72c
KS
64192002-05-14 Keith Seitz <keiths@redhat.com>
6420
6421 * event-loop.c (create_file_handler): Don't do anything but
6422 update data when we are given a fd which we are already
6423 monitoring.
6424
5d085aaf
ML
64252002-05-14 Michal Ludvig <mludvig@suse.cz>
6426
6427 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6428 (update_context): Use __func__ in warnings.
6429
9db8d71f
DJ
64302002-05-14 Daniel Jacobowitz <drow@mvista.com>
6431
6432 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6433 and tcp_close to net_open and net_close.
6434 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6435 using UDP if requested. Don't try to disable Nagle on UDP
6436 sockets.
6437 * remote.c (remote_serial_open): New function. Warn about UDP.
6438 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6439
5dbc6baa
EZ
64402002-05-13 Elena Zannoni <ezannoni@redhat.com>
6441
6442 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6443
cc3023f7
EZ
64442002-05-13 Elena Zannoni <ezannoni@redhat.com>
6445
6446 * configure.tgt: Remove sh-hms target.
6447 * MAINTAINERS: Don't list sh-hms as a separate target.
6448
ec2bcbe7
JB
64492002-05-13 Jim Blandy <jimb@redhat.com>
6450
6451 Add first preprocessor macro-expansion files.
6452 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6453 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6454 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6455 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6456 (COMMON_OBS): Add macrotab.o, macroexp.o.
6457 (macroexp.o, macrotab.o): New rules.
6458
6d531722
AC
64592002-05-13 Andrew Cagney <ac131313@redhat.com>
6460
6461 * config/m88k/tm-m88k.h: Update copyright.
6462 (m88k_target_write_pc): Declare
6463 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6464 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6465 (SHIFT_INST_REGS): Update definition.
6466 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6467 using old definition of TARGET_WRITE_PC.
6468 * regcache.c (generic_target_write_pc): Delete code handling
6469 NNPC_REGNUM.
6470 * gdbarch.sh (NNPC_REGNUM): Delete.
6471 * gdbarch.h, gdbarch.c: Regenerate.
6472
3e3f2739
RE
64732002-05-13 Richard Earnshaw <rearnsha@arm.com>
6474
6475 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6476 builtin reg number.
6477
0004e5a2
DJ
64782002-05-13 Daniel Jacobowitz <drow@mvista.com>
6479
6480 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6481 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6482 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6483 access macros.
6484 * c-typeprint.c (cp_type_print_method_args): Likewise.
6485 (c_type_print_args): Likewise.
6486 * d10v-tdep.c (d10v_push_arguments): Likewise.
6487 (d10v_extract_return_value): Likewise.
6488 * expprint.c (print_subexp): Likewise.
6489 * gdbtypes.c (lookup_primitive_typename): Likewise.
6490 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6491 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6492 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6493 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6494 (TYPE_VECTOR): Likewise.
6495 * hpread.c (hpread_read_struct_type)
6496 (fix_static_member_physnames, fixup_class_method_type)
6497 (hpread_type_lookup): Likewise.
6498 * mdebugread.c (parse_symbol, parse_type): Likewise.
6499 * p-lang.c (is_pascal_string_type): Likewise.
6500 * valops.c (hand_function_call): Likewise.
6501 * x86-64-tdep.c (classify_argument): Likewise.
6502
6503 * hpread.c (hpread_read_function_type)
6504 (hpread_read_doc_function_type): Call replace_type.
6505 * dstread.c (create_new_type): Delete.
6506 (decode_dst_structure, process_dst_function): Call alloc_type.
6507 Use type access macros.
6508
dff95cc7
MK
65092002-05-12 Mark Kettenis <kettenis@gnu.org>
6510
6511 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6512 the're not supported by the current architecture.
6513 (i387_fill_fxsave): Likewise.
6514
bbcd32ad
FF
65152002-05-12 Fred Fish <fnf@redhat.com>
6516
6517 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6518 sect_index_xxx members to index the first slot in section_offsets
6519 if all of the section_offsets are zero.
6520
89cf4787
MK
65212002-05-12 Mark Kettenis <kettenis@gnu.org>
6522
6523 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6524 checked in with last change.
6525
1f77ffc5
MK
65262002-05-12 Mark Kettenis <kettenis@gnu.org>
6527
6528 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6529 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6530 config.sub.
6531
89b8b4a9
DJ
65322002-05-12 Daniel Jacobowitz <drow@mvista.com>
6533
6534 * Makefile.in: Update dependencies.
6535
14a5e767
AC
65362002-05-11 Andrew Cagney <ac131313@redhat.com>
6537
6538 * language.c (local_hex_string_custom): Simplify. Do not depend
6539 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6540
6541 * memattr.c (mem_info_command): Replace calls to
6542 longest_local_hex_string and longest_local_hex_string_custom.
6543 * buildsym.c (make_blockvector): Ditto.
6544 * solib.c (info_sharedlibrary_command): Ditto.
6545 * tracepoint.c (tracepoints_info): Ditto.
6546 * symtab.c (print_msymbol_info): Ditto.
6547
6548 * language.c (local_hex_string): Delete.
6549 (local_hex_string_custom): Delete.
6550 (longest_local_hex_string): Rename to local_hex_string.
6551 (longest_local_hex_string_custom): Rename to
6552 local_hex_string_custom.
6553 * language.h (local_hex_string): Change parameter type to LONGEST.
6554 (local_hex_string_custom): Ditto.
6555 (longest_local_hex_string): Delete declaration.
6556 (longest_local_hex_string_custom): Ditto.
6557
6558 * solib.c: Update copyright.
6559 * memattr.c: Update copyright.
6560
13d01224
AC
65612002-05-11 Andrew Cagney <ac131313@redhat.com>
6562
6563 * arch-utils.h (legacy_register_to_value): Declare.
6564 (legacy_value_to_register): Declare.
6565 (legacy_convert_register_p): Declare.
6566 * arch-utils.c (legacy_register_to_value): New function.
6567 (legacy_value_to_register): New function.
6568 (legacy_convert_register_p): New function.
6569
6570 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6571 (VALUE_TO_REGISTER): Define.
6572 (CONVERT_REGISTER_P): Define.
6573 * gdbarch.h, gdbarch.c: Regenerate.
6574
6575 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6576 VALUE_TO_REGISTER.
6577 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6578 CONVERT_REGISTER_P.
6579
4a1970e4
DJ
65802005-05-11 Daniel Jacobowitz <drow@mvista.com>
6581 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6582
6583 * Makefile.in: Update dependencies for valops.c.
6584 * valops.c: Include "gdb_assert.h".
6585 (typecmp): Skip THIS parameter to methods.
6586 (find_method_list): Remove static_memfuncp argument,
6587 update callers. Check for stub methods.
6588 (find_value_oload_method_list): Don't set *static_memfuncp.
6589 (find_overload_match): Don't check for stub methods. Assert
6590 that methods are not stubbed. Handle static methods.
6591 (value_find_oload_method_list): Remove static_memfuncp argument.
6592 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6593 to the argument list for static stub methods.
6594 * value.h (value_find_oload_method_list): Update prototype.
6595
b2e75d78
AC
65962002-05-11 Andrew Cagney <ac131313@redhat.com>
6597
6598 * arch-utils.h (generic_register_size): Declare.
6599 (generic_register_raw_size, generic_register_virtual_size): Delete
6600 declarations.
6601 * arch-utils.c (generic_register_raw_size): Delete.
6602 (generic_register_size): New function.
6603 (generic_register_virtual_size): Delete.
6604
6605 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6606 default generic_register_size.
6607 * gdbarch.h, gdbarch.c: Re-generate.
6608
6609 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6610 register_virtual_size.
6611 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6612 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6613
451fbdda
AC
66142002-05-11 Andrew Cagney <ac131313@redhat.com>
6615
6616 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6617 * gdbarch.h, gdbarch.c: Regenerate.
6618 * gnu-v3-abi.c: Update copyright.
6619 (vtable_address_point_offset): Update.
6620 (gnuv3_rtti_type): Update.
6621 (gnuv3_baseclass_offset): Update.
6622 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6623 (init_fetch_link_map_offsets): Update.
6624 * remote.c (get_remote_state): Update.
6625
6d2f5cea
DJ
66262002-05-11 Daniel Jacobowitz <drow@mvista.com>
6627
6628 * TODO: Remove value_headof/value_from_vtable_info comment.
6629 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6630 * values.c (value_headof, value_from_vtable_info): Delete.
6631 * value.h (value_from_vtable_info): Delete prototype.
6632
d2324da4
AC
66332002-05-11 Andrew Cagney <ac131313@redhat.com>
6634
6635 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6636 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6637 $(gdb_regex_h).
6638 (gdb_assert_h): Define.
6639 (gdb_wait_h): Define.
6640 (gdb_regex_h): Define.
6641
5c717440
DJ
66422002-05-11 Daniel Jacobowitz <drow@mvista.com>
6643
6644 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6645 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6646
6c7861b3
JT
66472002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6648
6649 * nbsd-tdep.c: Fix comment.
6650
ea5bc2a6
JT
66512002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6652
6653 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6654 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6655 (nbsd-tdep.o): New dependency list.
6656 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6657 nbsd-tdep.h.
6658 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6659 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6660 * nbsd-tdep.c: New file.
6661 * nbsd-tdep.h: New file.
6662 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6663 nbsd-tdep.h.
6664 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6665 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6666 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6667 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6668
b28da865
JT
66692002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6670
6671 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6672 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6673 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6674 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6675 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6676 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6677
4b8ff1fa
JT
66782002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6679
6680 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6681 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6682 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6683 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6684 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6685 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6686 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6687
dfe6eb1f
JT
66882002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6689
6690 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6691 fetch_elfcore_registers to...
6692 * i386nbsd-tdep.c: ...here.
6693 (i386nbsd_use_struct_convention): Rename to...
6694 (i386nbsd_aout_use_struct_convention): ...this.
6695 (i386nbsd_supply_reg): New function.
6696 (i386nbsd_fill_reg): New function.
6697 (fetch_core_registers): Use i386nbsd_supply_reg.
6698 (fetch_elfcore_registers): Likewise.
6699 (_initialize_i386nbsd_tdep): New function.
6700 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6701 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6702 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6703 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6704 (i386nbsd_aout_use_struct_convention): ...this.
6705
20cb8cda
JT
67062002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6707
6708 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6709 (store_inferior_registers): Use shnbsd_fill_reg.
6710 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6711 sh_nbsd_supply_register): Collapse into...
6712 (shnbsd_supply_reg): ...this.
6713 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6714 (shnbsd_fill_reg): ...this.
6715 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6716 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6717 (fetch_core_registers): Use shnbsd_supply_reg.
6718 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6719 (sh_nbsd_core_fns): Rename to...
6720 (shnbsd_core_fns): ...this.
6721 (sh_nbsd_elfcore_fns): Rename to...
6722 (shnbsd_elfcore_fns): ...this.
6723 (sh_nbsd_init_abi): Rename to...
6724 (shnbsd_init_abi): ...this.
6725 (_initialize_sh_nbsd_tdep): Rename to...
6726 (_initialize_shnbsd_tdep): ...this.
6727 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6728 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6729 sh_nbsd_fill_register): Remove prototypes.
6730 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6731
e750d25e
JT
67322002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6733
6734 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6735 (i387-nat.o): Delete dependency list.
6736 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6737 (x86-64-linux-nat.o): Likewise.
6738 * i387-nat.c: Delete file, moving contents to...
6739 * i387-tdep.c: ...here.
6740 * i387-nat.h: Rename...
6741 * i387-tdep.h: ...to this.
6742 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6743 * i386-linux-nat.c: Likewise.
6744 * i386bsd-nat.c: Likewise.
6745 * i386gnu-nat.c: Likewise.
6746 * i386nbsd-nat.c: Likewise.
6747 * i386v4-nat.c: Likewise.
6748 * x86-64-linux-nat.c: Likewise.
6749 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6750 * config/i386/go32.mh (NATDEPFILES): Likewise.
6751 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6752 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6753 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6754 * config/i386/linux.mh (NATDEPFILES): Likewise.
6755 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6756 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6757 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6758 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6759
1aee598a
JT
67602002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6761
6762 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6763 (alphanbsd-nat.o): Remove dependency list.
6764 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6765 * alphanbsd-nat.c: Delete. Contents moved to...
6766 * alphanbsd-tdep.c: ...here.
6767 (_initialize_alphanbsd_tdep): Register core functions.
6768 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6769
12bcb0fe
JT
67702002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6771
6772 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6773 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6774 (alphanbsd-nat.o): Likewise.
6775 (alphabsd-tdep.o): New dependency list.
6776 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6777 (fill_gregset): Use alphabsd_fill_reg.
6778 (supply_fpregset): Use alphabsd_supply_fpreg.
6779 (fill_fpregset): Use alphabsd_fill_fpreg.
6780 (fetch_inferior_registers): Use struct reg and struct fpreg
6781 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6782 and alphabsd_supply_fpreg.
6783 (store_inferior_registers): Use struct reg and struct fpreg
6784 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6785 and alphabsd_fill_fpreg.
6786 * alphabsd-tdep.c: New file.
6787 * alphabsd-tdep.h: New file.
6788 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6789 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6790 alphabsd_supply_fpreg.
6791 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6792 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6793
361d1df0
EC
67942002-05-11 Eric Christopher <echristo@redhat.com>
6795
6796 * mips-tdep.c (mips_double_register_type): Fix thinko.
6797 (mips_single_register_type): Ditto.
6798 * MAINTAINERS: Add self.
6799
92dd7cee
MK
68002002-05-11 Mark Kettenis <kettenis@gnu.org>
6801
6802 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6803 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6804 right thing on architectures with different endianness and/or
6805 integer sizes.
6806
e27da16d
JT
68072002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6808
6809 From Christian Limpach <chris@Pin.LU>
6810 * configure.in: Change sed expression which comments out
6811 NATDEPFILES to also comment out continuation lines.
6812 * configure: Regenerate.
6813
ddde02bd
EZ
68142002-05-10 Elena Zannoni <ezannoni@redhat.com>
6815
6816 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6817 big patch.
6818
1c922164
EZ
68192002-05-10 Elena Zannoni <ezannoni@redhat.com>
6820
6821 * sh-tdep.c: Include correct file.
6822
283150cd
EZ
68232002-05-10 Elena Zannoni <ezannoni@redhat.com>
6824
6825 New support for sh64-elf (sh5) target.
6826
6827 * configure.tgt: For sh64-elf target, default to sh-elf.
6828
6829 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6830 (struct gdbarch_tdep): Add new fields for new registers and ABI
6831 info.
361d1df0 6832
283150cd
EZ
6833 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6834 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6835 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6836 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6837 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6838 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6839 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6840 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6841 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6842 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6843 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6844 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6845 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6846 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6847 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6848 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6849 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6850 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6851 sign_extend, sh64_nofp_frame_init_saved_regs,
6852 sh64_init_extra_frame_info, sh64_get_saved_register,
6853 sh64_extract_struct_value_address, sh64_pop_frame,
6854 sh64_push_arguments, sh64_extract_return_value,
6855 sh64_store_return_value, sh64_show_media_regs,
6856 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6857 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6858 sh_sh64_register_virtual_type,
6859 sh_sh64_register_convert_to_virtual,
6860 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6861 sh64_register_read, sh64_pseudo_register_write,
6862 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6863 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6864 sh64_do_pseudo_register, sh_compact_do_registers_info,
6865 sh64_do_registers_info, sh_gdbarch_init): New functions.
6866
3117ed25
EZ
68672002-05-10 Elena Zannoni <ezannoni@redhat.com>
6868
6869 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6870
2654e6d4
DJ
68712002-05-10 Daniel Jacobowitz <drow@mvista.com>
6872
6873 * linespec.c (decode_line_1): Check for a double quote after
6874 a filename correctly.
6875
9ab3e532
JB
68762002-05-10 Jim Blandy <jimb@redhat.com>
6877
6878 Properly track the size of the current objfile's .debug_line section.
6879 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6880 (DWARF_LINE_SIZE): New macro.
6881 (dwarf2_build_psymtabs_hard): Record the line section's size in
6882 the partial symbol table.
6883 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6884 symbol table.
6885
126fa72d
PS
68862002-05-10 Petr Sorfa <petrs@caldera.com>
6887
6888 * ia64-tdep.c: Handle breakpoints on L instruction type
6889 in MLX instruction bundle by moving the breakpoint to
6890 the third slot (X instruction type) as L holds only data.
6891
1f077a3e
KB
68922002-05-10 Kevin Buettner <kevinb@redhat.com>
6893
6894 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6895 (process_one_symbol): Complain about discarding local symbols
6896 due to a misplaced N_LBRAC entry.
6897
8120c9d5 68982002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
6899
6900 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
6901 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6902 decrease the depth we are at, in the case of templates.
361d1df0 6903
67b2c998
DJ
69042002-05-09 Daniel Jacobowitz <drow@mvista.com>
6905
6906 * mips-tdep.c (mips_float_register_type): New function.
6907 (mips_double_register_type): New function.
6908 (mips_print_register): Use them.
6909 (do_fp_register_row): Likewise.
6910
fd326606
DJ
69112002-05-09 Daniel Jacobowitz <drow@mvista.com>
6912
6609d9af 6913 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6914 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6915 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6916
bef35864
MS
69172002-05-09 Michael Snyder <msnyder@redhat.com>
6918
6919 * remote-rdp.c (remote_rdp_can_run): Remove.
6920
c55a3f73
TT
69212002-05-09 Tom Tromey <tromey@redhat.com>
6922
6923 * jv-valprint.c (java_val_print): Handle `char' as a special case
6924 of TYPE_CODE_INT.
6925
b8d5e71d
MS
69262002-05-09 Michael Snyder <msnyder@redhat.com>
6927
6928 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6929 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6930 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6931 str r(0123),[sp,#nn].
361d1df0 6932 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6933 order-independent by placing it in a loop.
6934
e2cd42dd
MS
69352002-05-06 Michael Snyder <msnyder@redhat.com>
6936
6937 * stabsread.c (read_type): Add recognition for new attribute:
6938 "@V;" means that an array type is actually a vector.
6939 This is analogous to the vector flag that's been added to dwarf2.
6940
3ce1502b
MK
69412002-05-09 Mark Kettenis <kettenis@gnu.org>
6942
6943 * i386-tdep.h (i386_abi): New enum.
6944 (struct gdbarch_tdep): Replace os_ident member with abi.
6945 (i386_gdbarch_register_os_abi): New prototype.
6946 * i386-tdep.c (i386_abi_names): New array.
6947 (process_note_abi_tag_sections): Removed.
6948 (process_note_sections): New function.
6949 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6950 (struct i386_abi_handler): New struct.
6951 (i386_abi_handler_list): New variable.
6952 (i386_gdbarch_register_os_abi): New function.
6953 (i386_gdbarch_init): Adapt for the changes given above.
6954
084c156a
DJ
69552002-05-08 Daniel Jacobowitz <drow@mvista.com>
6956
6957 * gregset.h: Say "GNU/Linux".
6958
6599f021
EZ
69592002-05-08 Elena Zannoni <ezannoni@redhat.com>
6960
6961 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6962 (build_gdbtypes): Build builtin_type_v2_float.
6963 (_initialize_gdbtypes): Register new builtin type.
6964
40af4b0c
AC
69652002-05-08 Andrew Cagney <ac131313@redhat.com>
6966
6967 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6968 (clear_gdbarch_swap): New function.
6969 (initialize_non_multiarch): Call.
6970 (gdbarch_update_p): Before calling init(), swap out and clear the
6971 existing architecture.
6972 * gdbarch.c: Regenerate.
6973
4fe84f46
JT
69742002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6975
6976 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6977 alphanbsd-tdep.c.
6978
4015edd1
JT
69792002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6980
6981 * sh-nbsd-nat.c: Rename to...
6982 * shnbsd-nat.c: ...this.
6983 * sh-nbsd-tdep.c: Rename to...
6984 * shnbsd-tdep.c: ...this.
6985 * sh-nbsd-tdep.h: Rename to...
6986 * shnbsd-tdep.h: ...this.
6987 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6988 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6989
0e2bd219
RE
69902002-05-08 Richard Earnshaw <rearnsha@arm.com>
6991
6992 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6993 concatenation for command help messages.
6994
13a38d45
JT
69952002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6996
6997 * NEWS: Note new sh*-*-netbsdelf* configuration.
6998 * configure.host: Set gdb_host_cpu to sh for all sh*.
6999 (sh*-*-netbsdelf*): New host.
7000 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7001 (sh*-*-netbsdelf*): New target.
7002 * sh-nbsd-nat.c: New file.
7003 * sh-nbsd-tdep.c: New file.
7004 * sh-nbsd-tdep.h: New file.
7005 * config/sh/nbsd.mh: New file.
7006 * config/sh/nbsd.mt: New file.
7007 * config/sh/nm-nbsd.h: New file.
7008 * config/sh/tm-nbsd.h: New file.
7009
d658f924
JT
70102002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7011
7012 * sh-tdep.c (sh_osabi_names): Declare.
7013 (process_note_abi_tag_sections): New function.
7014 (get_elfosabi): Ditto.
7015 (sh_gdbarch_register_os_abi): Ditto.
7016 (sh_dump_tdep): Ditto.
7017 _initialize_sh_tdep): Use gdbarch_register to register
7018 sh_gdbarch_init and sh_dump_tdep.
7019 * config/sh/tm-sh.h (sh_osabi): Declare.
7020 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7021
848cfffb
AC
70222002-05-07 Andrew Cagney <ac131313@redhat.com>
7023
7024 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7025 (thumb_scan_prologue): Ditto.
7026 (arm_find_callers_reg): Ditto.
7027 (arm_frame_chain): Ditto.
7028 (arm_init_extra_frame_info): Ditto.
7029 (arm_frame_saved_pc): Ditto.
7030 (arm_pop_frame): Ditto.
7031 (arm_push_return_address): New function.
7032 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7033 call_dummy_location, call_dummy_breakpoint_offset_p,
7034 call_dummy_breakpoint_offset, call_dummy_p,
7035 call_dummy_stack_adjust_p, call_dummy_words,
7036 sizeof_call_dummy_words, call_dummy_start_offset,
7037 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7038 call_dummy_address, push_return_address and push_dummy_frame for
7039 generic dummy frames.
7040
e7d717c0
JT
70412002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7042
7043 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7044 size computation for alloca.
7045 (sh_fp_frame_init_saved_regs): Likewise.
7046
7bbcf283
RE
70472002-05-07 Richard Earnshaw <rearnsha@arm.com>
7048
7049 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7050 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 7051 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
7052 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7053 * remote-rdp.c (remote_rdp_fetch_register): Use
7054 ARM_MAX_REGISTER_RAW_SIZE.
7055 (remote_rdp_store_register): Likewise.
7056
4657573b
ML
70572002-05-07 Michal Ludvig <mludvig@suse.cz>
7058
361d1df0 7059 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
7060 added default labels to switch {} statements.
7061 * x86-64-tdep.c: Ditto.
7062 * x86-64-linux-nat.c: Ditto.
7063
010f3b2f
JT
70642002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7065
7066 * solib.h: Protect against multiple inclusion.
7067
debd256d
JB
70682002-05-06 Jim Blandy <jimb@redhat.com>
7069
9ab3e532
JB
7070 Add first preprocessor macro-expansion files.
7071 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7072 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7073 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7074 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7075 (COMMON_OBS): Add macrotab.o, macroexp.o.
7076 (macroexp.o, macrotab.o): New rules.
7077
debd256d
JB
7078 Separate the job of reading the line number info statement program
7079 header (...expialidocious) out into its own function.
7080 * dwarf2read.c (struct line_head, struct filenames, struct
7081 directories): Replace with...
7082 (struct line_header): New structure, containing the full
7083 contents of the statement program header, including the
7084 include directory and file name tables.
7085 (read_file_scope): If we have line number info, instead of just
7086 calling dwarf_decode_lines to do all the work, call
7087 dwarf_decode_line_header first to get a `struct line_header'
7088 containing the data in the statement program header, and then
7089 pass that to dwarf_decode_lines, which will pick up where that
7090 left off. Be sure to clean up the `struct line_header' object.
7091 (dwarf_decode_line_header, free_line_header, add_include_dir,
7092 add_file_name): New functions.
7093 (dwarf_decode_lines): Move all the code to read the statement
7094 program header into dwarf_decode_line_header. Take the line
7095 header it built as the first argument, instead of the offset to
7096 the compilation unit's line number info. Use the new `struct
7097 line_header' type instead of the old structures. No need to do
7098 cleanups here now, since we don't allocate anything.
7099 (dwarf2_statement_list_fits_in_line_number_section,
7100 dwarf2_line_header_too_long): New complaints.
7101
ac3aafc7
EZ
71022002-05-06 Elena Zannoni <ezannoni@redhat.com>
7103
7104 * gdbtypes.c (init_vector_type): New function.
7105 (build_builtin_type_vec128): Simplify the representation of SIMD
7106 registers.
7107 (build_gdbtypes): Initialize new builtin vector types.
7108 (_initialize_gdbtypes): Register new vector types with gdbarch.
7109 (builtin_type_v4_float, builtin_type_v4_int32,
7110 builtin_type_v8_int16, builtin_type_v16_int8,
7111 builtin_type_v2_int32, builtin_type_v4_int16,
7112 builtin_type_v8_int8): New (renamed) SIMD types.
7113
13e49980
MK
71142002-05-06 Mark Kettenis <kettenis@gnu.org>
7115
7116 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7117 (i387_fill_fxsave): Likewise.
7118
997b20b8
AO
71192002-05-05 Alexandre Oliva <aoliva@redhat.com>
7120
7121 * alpha-tdep.c (alpha_extract_return_value): Don't use
7122 non-constant array size in prototype.
7123
535c96ce
AC
71242002-05-04 Andrew Cagney <ac131313@redhat.com>
7125
7126 From Brian Taylor <briant at model dot com>:
7127 * ui-out.c (ui_out_field_core_addr): Use the function
7128 longest_local_hex_string_custom'to format addresses > 32 bits
7129 wide.
7130
7131 * ui-out.c (ui_out_field_core_addr): Update comment.
7132
bedfa57b
AC
71332002-05-04 Andrew Cagney <ac131313@redhat.com>
7134
7135 * stack.c (select_and_print_frame): Make static. Delete the
7136 parameter `level'.
7137 (func_command): Update call.
7138 (select_frame_command): Delete code computing the frame level.
7139 * frame.h (select_and_print_frame): Delete declaration.
7140
f621c63e
AC
71412002-05-04 Andrew Cagney <ac131313@redhat.com>
7142
7143 * sparc-tdep.c (sparc_get_saved_register): Comment why
7144 get_prev_frame call is safe.
7145
0f7d239c
AC
71462002-05-04 Andrew Cagney <ac131313@redhat.com>
7147
7148 * frame.h (select_frame): Delete level parameter.
7149 * stack.c (select_frame): Update. Use frame_relative_level to
7150 obtain the frame's level.
7151 (select_and_print_frame): Update call.
7152 (select_frame_command): Ditto.
7153 (up_silently_base): Ditto.
7154 (down_silently_base): Ditto.
7155 * ocd.c (ocd_start_remote): Ditto.
7156 * remote-rdp.c (remote_rdp_open): Ditto.
7157 * remote-mips.c (mips_initialize): Ditto.
7158 (common_open): Ditto.
7159 * remote-e7000.c (e7000_start_remote): Ditto.
7160 * m3-nat.c (select_thread): Ditto.
7161 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7162 (child_get_current_exception_event): Ditto.
7163 * varobj.c (varobj_create): Ditto.
7164 (varobj_update): Ditto.
7165 (c_value_of_root): Ditto.
7166 * tracepoint.c (finish_tfind_command): Ditto.
7167 * corelow.c (core_open): Ditto.
7168 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7169 * thread.c (info_threads_command): Ditto.
7170 (switch_to_thread): Ditto.
7171 * infrun.c (normal_stop): Ditto.
7172 (restore_selected_frame): Ditto.
7173 (restore_inferior_status): Ditto.
7174 * breakpoint.c (insert_breakpoints): Ditto.
7175 (watchpoint_check): Ditto.
7176 (bpstat_stop_status): Ditto.
7177 (do_enable_breakpoint): Ditto.
7178 * blockframe.c (flush_cached_frames): Ditto.
7179 (reinit_frame_cache): Ditto.
7180
71d6c7b1
AC
71812002-05-04 Andrew Cagney <ac131313@redhat.com>
7182
7183 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7184 maintainer.
7185
cda6c68a
JB
71862002-05-04 Jim Blandy <jimb@redhat.com>
7187
7188 * gdbtypes.c (replace_type): Doc fix.
7189
5c1c87f0
AC
71902002-05-04 Andrew Cagney <ac131313@redhat.com>
7191
7192 * valprint.c (strcat_longest): Delete commented out function.
7193 Update copyright.
7194
cd9bfe15
AC
71952002-05-04 Andrew Cagney <ac131313@redhat.com>
7196
7197 * MAINTAINERS: Mark a29k as deleted.
7198 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7199 Move new configurations to the top.
7200 * configure.tgt: Remove a29k.
7201 * config/a29k/tm-vx29k.h: Delete.
7202 * config/a29k/vx29k.mt: Delete.
7203 * config/a29k/tm-a29k.h: Delete.
7204 * config/a29k/a29k-udi.mt: Delete.
7205 * config/a29k/a29k.mt: Delete.
7206 * a29k-tdep.c: Delete.
7207 * remote-udi.c: Delete.
7208 * remote-mm.c: Delete.
7209 * remote-eb.c: Delete.
7210 * remote-adapt.c: Delete.
7211 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
7212 * config/s390/s390x.mt: Ditto.
7213 * config/s390/s390.mt: Ditto.
7214 * config/sparc/sparclynx.mh: Ditto.
7215 * config/sparc/linux.mh: Ditto.
7216 * config/pa/hppaosf.mh: Ditto.
7217 * config/pa/hppabsd.mh: Ditto.
7218 * config/ns32k/nbsd.mt: Ditto.
7219 * config/mips/vr5000.mt: Ditto.
7220 * config/m68k/sun3os4.mh: Ditto.
7221 * config/m68k/nbsd.mt: Ditto.
7222 * config/m68k/m68klynx.mh: Ditto.
7223 * config/m32r/m32r.mt: Ditto.
7224 * config/i386/x86-64linux.mt: Ditto.
7225 * config/i386/nbsdelf.mt: Ditto.
7226 * config/i386/nbsd.mt: Ditto.
7227 * config/i386/i386lynx.mh: Ditto.
7228
bf0c5130
AC
72292002-05-04 Andrew Cagney <ac131313@redhat.com>
7230
7231 * target.c (debug_print_register): New function. Handle oversize
7232 registers.
7233 (debug_to_fetch_registers): Call.
7234 (debug_to_store_registers): Call.
7235
2ae1c2d2
JB
72362002-05-03 Jim Blandy <jimb@redhat.com>
7237
13a393b0
JB
7238 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7239 (read_type): Doc fix.
7240 * gdbtypes.c (replace_type): Doc fix.
7241
2ae1c2d2
JB
7242 * stabsread.c (multiply_defined_struct): New complaint.
7243 (read_struct_type): If the type we were passed isn't empty, or
7244 incomplete, don't read the new struct type into it; complain,
7245 and return the original type unchanged. Take a new `type_code'
7246 argument, which is the type code for the new type.
7247 (read_type): Rather than storing the type's type code here, pass
7248 it as an argument to read_struct_type, and let that take care of
7249 storing it. That way, we don't overwrite the original type code,
7250 so read_struct_type can use it to decide whether we're overwriting
7251 something we shouldn't.
7252 (complain_about_struct_wipeout): New function.
7253
8de9bdc4
AC
72542002-05-03 Andrew Cagney <ac131313@redhat.com>
7255
7256 * gdbarch.sh: Assert that gdbarch is non-NULL.
7257 * gdbarch.c: Regenerate.
7258
f773fdbb
JM
72592002-05-03 Jason Merrill <jason@redhat.com>
7260
7261 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7262 and return NULL.
7263
0e04a514
ML
72642002-05-03 Michal Ludvig <mludvig@suse.cz>
7265
7266 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7267 (x86_64_dwarf2gdb_regno_map_length),
7268 (x86_64_dwarf2_reg_to_regnum): Added.
7269 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7270 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7271 (_initialize_x86_64_tdep): Synced with the change above.
7272 (x86_64_skip_prologue): Reformulated message.
7273
065432a8
PM
72742002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7275
7276 * f-exp.y: Also use new prev_lexptr variable
7277 to improve error reporting. Based on Michael Snyder
7278 2002-04-24 dated patch to c-exp.y.
7279 * jv-exp.y: Likewise.
7280 * m2-exp.y: Likewise.
7281
a3162708
EZ
72822002-05-02 Elena Zannoni <ezannoni@redhat.com>
7283
7284 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7285 we are dealing with vectors.
7286
03620c38
PM
72872002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7288
7289 * config/m68k/tm-nbsd.h: Obvious fix,
7290 correct machine name.
7291
6604db2e
PM
72922002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7293
7294 * p-typeprint.c (pascal_type_print_base): Add support
7295 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7296
0906b739
PM
72972002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7298
7299 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7300 for fondamental pascal 'char' type.
7301
e2625b33
PM
73022002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7303
7304 * p-lang.h (is_pascal_string_type): Declaration changed,
7305 new sixth argument of type char ** added.
361d1df0 7306 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
7307 changed. Args length_pos, length_size, string_pos, char_size
7308 can now be NULL. New argument arrayname set to the field
7309 name of the char array. Return value set to char array
7310 field index plus one.
361d1df0 7311 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
7312 is_pascal_string_type function.
7313
cf17c188
AC
73142002-05-02 Andrew Cagney <cagney@redhat.com>
7315
7316 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7317 <cagney@redhat.com> change.
7318 * gdbarch.c: Regenerate.
7319
52bca491
AC
73202002-05-02 Andrew Cagney <cagney@redhat.com>
7321
7322 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7323 before probing for a new one. Detect errorenous gdbarch_init
7324 functions.
7325 * gdbarch.c: Regenerate.
7326
d5e72505
AC
73272002-05-01 Andrew Cagney <cagney@redhat.com>
7328
7329 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7330 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7331 * config/v850/tm-v850.h: Ditto. Update copyright.
7332
af566d9f
AC
73332002-04-30 Andrew Cagney <ac131313@redhat.com>
7334
7335 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7336 current_gdbarch.
7337
880d85fa
MS
73382002-04-30 Michael Snyder <msnyder@redhat.com>
7339
94c30b78
MS
7340 * arm-tdep.c: Whitespace clean-ups.
7341 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7342 should have been removed as part of 4/24 change.
7343
6f5987a6
KB
73442002-04-30 Kevin Buettner <kevinb@redhat.com>
7345
7346 * rs6000-tdep.c: Added comment describing how fpscr register
7347 numbers were chosen.
7348
1a113c93
MS
73492002-04-30 Michael Snyder <msnyder@redhat.com>
7350
7351 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7352
9a6f53fe
EZ
73532002-04-29 Elena Zannoni <ezannoni@redhat.com>
7354
7355 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7356 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7357 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7358
11ed25ac
KB
73592002-04-29 Kevin Buettner <kevinb@redhat.com>
7360
7361 From Louis Hamilton <hamilton@redhat.com>:
7362 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7363 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7364 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7365 not bfd-private xcoff data, to determine wordsize.
7366 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7367
ae232405
AC
73682002-04-29 Andrew Cagney <ac131313@redhat.com>
7369
7370 GDB 5.2 released from 5.2 branch.
7371
91fd20f7
ML
73722002-04-29 Michal Ludvig <mludvig@suse.cz>
7373
7374 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7375 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7376 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7377
2dc5091b
EZ
73782002-04-29 Elena Zannoni <ezannoni@redhat.com>
7379
7380 * rs6000-tdep.c (rs6000_extract_return_value,
7381 rs6000_store_return_value): Handle returning vectors.
7382 (rs6000_gdbarch_init): Use
7383 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7384 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7385 New function.
7386 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7387 vectors.
7388 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7389 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7390
2b9848d8
PM
73912002-04-24 Pierre Muller <ics.u-strasbg.fr>
7392
7393 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7394 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7395 with fprintf_unfiltered (gdb_stderr,...).
7396
f8d17dc5
PM
73972002-04-24 Pierre Muller <ics.u-strasbg.fr>
7398
7399 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7400 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7401 Replace fprintf (stderr,...
7402 with fprintf_unfiltered (gdb_stderr,....
7403 * remote-es.c: Likewise.
7404 * remote-os9k.c: Likewise.
7405 * remote-st.c: Likewise.
7406
2f2f1ad1
AS
74072002-04-28 Andreas Schwab <schwab@suse.de>
7408
7409 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7410 linux-proc.o and gcore.o.
7411
b6779aa2
AC
74122002-04-26 Michal Ludvig <mludvig@suse.cz>
7413
7414 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7415 code without frame pointers.
7416
7e57f5f4
AC
74172002-04-26 Andrew Cagney <ac131313@redhat.com>
7418
7419 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7420 ON_STACK is needed.
7421
2ceb85d0
BE
74222002-04-26 Ben Elliston <bje@redhat.com>
7423
7424 * target.c (do_xfer_memory): Correct reference to the new option
7425 "trust-readonly-sections".
7426
f5f8a009
EZ
74272002-04-26 Elena Zannoni <ezannoni@redhat.com>
7428
7429 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7430 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7431 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7432 vectors.
7433 (read_array_type): Record the fact that this array type is really a
7434 vector (i.e. are passed in by value).
7435
5868c862
JT
74362002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7437
7438 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7439 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7440 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7441 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7442 * alpha-linux-tdep.c: Include frame.h.
7443 (alpha_linux_sigcontext_addr): New function.
7444 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7445 alpha_linux_sigcontext_addr.
7446 * alpha-osf1-tdep.c: Include gdbcore.h.
7447 (alpha_osf1_sigcontext_addr): New function.
7448 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7449 alpha_osf1_sigcontext_addr.
7450 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7451 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7452
bfb01f37
AC
74532002-04-26 Andrew Cagney <ac131313@redhat.com>
7454
361d1df0 7455 * stack.c (selected_frame_level):
bfb01f37
AC
7456 (select_frame): Do not set selected_frame_level.
7457 * frame.h (selected_frame_level): Delete declaration.
7458
15813d3f
AC
74592002-04-26 Andrew Cagney <ac131313@redhat.com>
7460
7461 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7462 convert_from_func_ptr-addr when AIX / PowerOpen.
7463
6096c27a
AC
74642002-04-25 Andrew Cagney <ac131313@redhat.com>
7465
7466 * valops.c (hand_function_call): Call
7467 generic_save_call_dummy_addr.
7468 * frame.h (generic_save_call_dummy_addr): Declare.
7469 * blockframe.c (struct dummy_frame): Add fields call_lo and
7470 call_hi.
7471 (generic_find_dummy_frame): Check for PC in range call_lo to
7472 call_hi instead of entry_point_address.
7473 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7474 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7475 (generic_save_call_dummy_addr): New function.
7476
f510d44e
DM
74772002-04-24 David S. Miller <davem@redhat.com>
7478
7479 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7480 sparc_skip_prologue.
7481 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7482 information to find prologue when possible.
7483 (sparc_prologue_frameless_p): Call examine_prologue directly.
7484 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7485 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7486 second argument.
7487 (SKIP_PROLOGUE): Likewise.
7488
15d72a92
JT
74892002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7490
7491 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7492 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7493 indicate that the condition it was testing is always true.
7494 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7495 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7496 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7497
accc6d1f
JT
74982002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7499
7500 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7501 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7502 tdep->jb_pc and tdep->jb_elt_size.
7503 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7504 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7505 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7506 * alpha-nat.c (get_longjmp_target): Remove.
7507 (JB_ELEMENT_SIZE): Ditto.
7508 (JB_PC): Ditto.
7509 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7510 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7511 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7512 to alpha_get_longjmp_target.
7513 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7514 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7515 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7516
1bfdc549
AC
75172002-04-25 Andrew Cagney <ac131313@redhat.com>
7518
7519 * README: Update to GDB 5.2.
7520
1bd316f0
AC
75212002-04-25 Andrew Cagney <ac131313@redhat.com>
7522
7523 * gdbarch.sh (LC_ALL): Set to `c'.
7524
2e5ff58c
TR
75252002-04-25 Theodore A. Roth <troth@verinet.com>
7526
7527 * avr-tdep.c: Ran through gdb_indent.sh.
7528
e33ce519
TR
75292002-04-25 Theodore A. Roth <troth@verinet.com>
7530
7531 * MAINTAINERS: Add myself as AVR maintainer.
7532 * NEWS: Note new target avr.
7533
8818c391
TR
75342002-04-25 Theodore A. Roth <troth@verinet.com>
7535
7536 * Makefile.in: Add support for AVR target.
7537 * configure.tgt: Add support for AVR target.
7538 * avr-tdep.c: New file
7539 * config/avr/avr.mt: New file.
7540
79509c2d
TR
75412002-04-25 Theodore A. Roth <troth@verinet.com>
7542
7543 * MAINTAINERS: Add myself to write-after-approval.
7544
dac8068e
PM
75452002-04-24 Pierre Muller <ics.u-strasbg.fr>
7546
7547 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7548 with fprintf_unfiltered (gdb_stderr,....
7549
25bf3106
PM
75502002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7551
7552 Fix PR gdb/508.
7553 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7554
24467a86
PM
75552002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7556
7557 * p-exp.y: Also use new prev_lexptr variable
7558 to improve error reporting. Based on Michael Snyder
7559 2002-04-24 dated patch to c-exp.y.
7560
95b80706
JT
75612002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7562
7563 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7564 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7565 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7566 to 0.
7567 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7568 and struct value.
7569 (FUNCTION_START_OFFSET): Remove.
7570 (BREAKPOINT): Ditto.
7571
e90cc612
JT
75722002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7573
7574 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7575 * NEWS: Ditto.
7576
6c72f9f9
JT
75772002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7578
7579 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7580 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7581 alpha_linux_pc_in_sigtramp.
7582 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7583 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7584 alpha_osf1_pc_in_sigtramp.
7585 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7586 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7587 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7588 alphafbsd_pc_in_sigtramp.
7589 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7590 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7591 alphanbsd_pc_in_sigtramp.
7592 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7593 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7594
5e4f3379
JT
75952002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7596
7597 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7598
da8ca43d
JT
75992002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7600
7601 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7602 alphanbsd-tdep.c.
7603 (alphanbsd-nat.o): New dependency list.
7604 (alphanbsd-tdep.o): Ditto.
7605 * NEWS: Note new native NetBSD/alpha configuration.
7606 * alphanbsd-nat.c: New file.
7607 * alphanbsd-tdep.c: Ditto.
7608 * configure.host (alpha*-*-netbsd*): New host.
7609 * configure.tgt (alpha*-*-netbsd*): New target.
7610 * config/alpha/nbsd.mh: New file.
7611 * config/alpha/nbsd.mt: Ditto.
7612 * config/alpha/nm-nbsd.h: Ditto.
7613 * config/alpha/tm-nbsd.h: Ditto.
7614
36a6271d
JT
76152002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7616
7617 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7618 (alpha-osf1-tdep.o): New dependency list.
7619 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7620 and skip_sigtramp_frame members.
7621 * alpha-linux-tdep.c: Include gdbcore.h.
7622 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7623 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7624 * alpha-osf1-tdep.c: New file.
7625 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7626 alpha-osf1-dep.c.
7627 (alpha_frame_past_sigtramp_frame): New function.
7628 (alpha_dynamic_sigtramp_offset): Ditto.
7629 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7630 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7631 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7632 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7633 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7634 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7635 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7636 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7637 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7638 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7639 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7640 to find_solib_trampoline_target.
7641 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7642 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7643 (SKIP_TRAMPOLINE_CODE): Remove.
7644 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7645 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7646 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7647 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7648 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7649 (PROC_SIGTRAMP_MAGIC): Ditto.
7650 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7651 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7652 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7653 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7654 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7655
2f4bc57b
JT
76562002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7657
7658 * NEWS: Note that Alpha targets are now multi-arch.
7659
665132f9
MS
76602002-04-24 Michael Snyder <msnyder@redhat.com>
7661
7662 * parser-defs.h (prev_lexptr): New external variable.
7663 * parse.c (parse_exp_1): Set prev_lexptr to null before
7664 calling the language-specific parser.
7665 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7666 (yyerror): Use prev_lexptr in error reporting.
7667
32872fa7
DJ
76682002-04-24 Daniel Jacobowitz <drow@mvista.com>
7669
7670 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7671 * gregset.h: If FILL_FPXREGSET is defined, provide
7672 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7673 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7674 is defined, call fill_fpxregset.
7675
57e76fac
MS
76762002-04-24 Roland McGrath <roland@frob.com>
7677
7678 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7679 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7680 (supply_gregset, supply_fpregset): New functions.
7681
7682 * gnu-nat.c (gnu_find_memory_regions): New function.
7683 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7684 (gnu_xfer_memory): Add a cast.
7685
f43845b3
MS
76862002-04-24 Michael Snyder <msnyder@redhat.com>
7687
361d1df0 7688 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7689 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7690 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7691 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7692 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7693 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7694
a0abec03
AC
7695Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7696
7697 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7698 NUM_PSEUDO_REGS can be used.
7699
d7bd68ca
AC
77002002-04-24 Andrew Cagney <ac131313@redhat.com>
7701
7702 * arch-utils.h: Update copyright.
7703
7704 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7705 * gdbarch.h, gdbarch.c: Re-generate.
7706
7707 * inferior.h (IN_SIGTRAMP): Delete definition.
7708 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7709 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7710
7711 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7712 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7713 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7714 (find_proc_framesize): Ditto.
7715 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7716 (alpha_init_extra_frame_info): Ditto.
7717 * infrun.c (handle_inferior_event): Ditto.
7718 (handle_inferior_event): Ditto.
7719 (check_sigtramp2): Ditto.
7720 * blockframe.c (create_new_frame): Ditto.
7721 (get_prev_frame): Ditto.
7722 * ppc-linux-tdep.c: Update comments.
7723 * i386-linux-tdep.c: Update comments.
7724 * breakpoint.c (bpstat_what): Update comment.
7725
4867e41e
DM
77262002-04-24 David S. Miller <davem@redhat.com>
7727
21d83aa5
DM
7728 * i960-tdep.c (register_in_window_p): New function.
7729 (i960_find_saved_register): Use it instead of
7730 REGISTER_IN_WINDOW_P.
7731 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7732
4867e41e
DM
7733 * symtab.h (find_stab_function_addr): Kill extern.
7734 * minsyms.c (find_stab_function_addr): Remove from here...
7735 * dbxread.c: ... to here, and mark it static.
7736
69cdf6a2
DM
77372002-04-20 David S. Miller <davem@redhat.com>
7738
7739 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7740 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7741
5a595886
DM
77422002-04-21 David S. Miller <davem@redhat.com>
7743
7744 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7745 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7746 (vx_write_register): Likewise.
7747
1da1a192
JB
77482002-04-23 J. Brobecker <brobecker@gnat.com>
7749
7750 * source.c (is_regular_file): New function.
7751 (openp): Check wether file to open is a regular file
7752 to avoid opening directories.
7753
baa6f10b
JT
77542002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7755
7756 * findvar.c (extract_signed_integer): Cast printf argument
7757 to suppress format warning.
7758 (extract_unsigned_integer): Likewise.
7759 * infcmd.c (registers_info): Likewise.
7760 * top.c (get_prompt_1): Likewise.
7761 * valops.c (value_assign): Likewise.
7762 * valprint.c (print_decimal): Likewise.
7763
b2c4da81
L
77642002-04-22 H.J. Lu (hjl@gnu.org)
7765
7766 * c-exp.y (typebase): Support
361d1df0 7767
b2c4da81
L
7768 [long|long long|short] [signed|unsigned] [int|]
7769
7770 and
7771
7772 signed [long|long long|short] int
7773
f267bd6a
JT
77742002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7775
7776 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7777 and vax-tdep.h.
7778 * vax-tdep.h: New file.
7779 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7780 Make several routines static.
7781 (vax_get_saved_register): New function.
7782 (vax_gdbarch_init): New function.
7783 (_initialize_vax_tdep): Register vax_gdbarch_init.
7784 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7785 Remove macros now under the control of gdbarch.
7786
da3c6d4a
MS
77872002-04-22 Michael Snyder <msnyder@redhat.com>
7788
11d3b27d
MS
7789 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7790 Some whitespace and coding standards tweaks.
da3c6d4a 7791
a33f7558
JT
77922002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7793
7794 * vax-tdep.c: Include regcache.h.
7795 (vax_call_dummy_words): New.
7796 (sizeof_vax_call_dummy_words): New.
7797 (vax_fix_call_dummy): New function.
7798 (vax_saved_pc_after_call): Ditto.
7799 * config/vax/tm-vax.h: Don't include regcache.h.
7800 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7801 (CALL_DUMMY): Remove.
7802 (CALL_DUMMY_WORDS): Define.
7803 (SIZEOF_CALL_DUMMY_WORDS): Define.
7804 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7805
47a73475
MS
78062002-04-18 Michael Snyder <msnyder@redhat.com>
7807
7808 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7809
52efde73
JT
78102002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7811
7812 * vax-tdep.c (vax_frame_chain): New function.
7813 (vax_push_dummy_frame): Ditto.
7814 (vax_pop_frame): Ditto.
7815 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7816 (FRAMELESS_FUNCTION_INVOCATION): Use
7817 generic_frameless_function_invocation_not.
7818 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7819 (POP_FRAME): Use vax_pop_frame.
7820
ea74468c
JT
78212002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7822
7823 * vax-tdep.c (vax_store_struct_return): New function.
7824 (vax_extract_return_value): Ditto.
7825 (vax_store_return_value): Ditto.
7826 (vax_extract_struct_value_address): Ditto.
7827 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7828 vax_store_struct_return.
7829 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7830 (STORE_RETURN_VALUE): Use vax_store_return_value.
7831 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7832
5516aa92
JT
78332002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7834
7835 * vax-tdep.c (vax_frame_saved_pc): New function.
7836 (vax_frame_args_address_correct): Ditto.
7837 (vax_frame_args_address): Ditto.
7838 (vax_frame_locals_address): Ditto.
7839 (vax_frame_num_args): Move code to be in proximity to
7840 other frame-related functions.
7841 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7842 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7843 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7844 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7845 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7846
36af0b35
L
78472002-04-22 H.J. Lu (hjl@gnu.org)
7848
7849 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7850 includedir.
7851
ab62c900
JT
78522002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7853
7854 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7855 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7856 (FRAME_INIT_SAVED_REGS): New macro.
7857
7232b100
JT
78582002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7859
7860 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7861
b70d2aee
JT
78622002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7863
7864 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7865 where needed.
7866 (fetch_osf_core_registers): Likewise.
7867 (supply_gregset): Likewise.
7868
a0e8a2d1 78692002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 7870
a0e8a2d1
JB
7871 * symfile.h (get_section_index): Define.
7872 * symfile.c (get_section_index): New function.
7873 * mdebugread.c (SC_IS_SBSS): New macro.
7874 (SC_IS_BSS): Return true for the scBss storage class only, as
7875 the scSBss storage class refers to the .sbss section.
7876 (parse_partial_symbols): Discard the symbols which associated
7877 section does not exist.
7878 Make sure to use the .sbss section index for symbols which
7879 storage class is scBss, rather than using the .bss section index.
7880
51eb8b08
JT
78812002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7882
7883 * vax-tdep.c: Update copyright years.
7884 (vax_register_name): New function.
7885 (vax_register_byte): Ditto.
7886 (vax_register_raw_size): Ditto.
7887 (vax_register_virtual_size): Ditto.
7888 (vax_register_virtual_type): Ditto.
7889 * config/vax/tm-vax.h: Update copyright years.
7890 (REGISTER_NAMES): Remove.
7891 (REGISTER_NAME): Define.
7892 (REGISTER_BYTE): Use vax_register_byte.
7893 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7894 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7895 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7896
6cc1c0a8
AC
78972002-04-21 Andrew Cagney <ac131313@redhat.com>
7898
7899 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7900 declaration
7901 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7902
9319a2fe
DM
79032002-04-21 David S. Miller <davem@redhat.com>
7904
7905 * arch-utils.c (generic_prologue_frameless_p): Kill
7906 SKIP_PROLOGUE_FRAMELESS_P code.
7907 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7908 references.
7909 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7910 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7911 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7912 references.
7913 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7914 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7915 (sparc_gdbarch_init): Pass it to
7916 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7917
e9ed6d01
JT
79182002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7919
7920 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7921 (alphabsd-nat.o): New dependency list.
7922
36012033
JT
79232002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7924
7925 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7926 alphafbsd-tdep.c.
7927 (alpha-linux-tdep.o): New dependency list.
7928 (alphafbsd-tdep.o): Likewise.
7929
3379287a
JT
79302002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7931
7932 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7933 to here...
7934 * alpha-tdep.c: ...from here.
7935 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7936
4bcbd6cb
JT
79372002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7938
7939 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7940 prototype from here...
7941 * alpha-tdep.h: ...to here.
7942
b31da25e
AC
79432002-04-21 Andrew Cagney <ac131313@redhat.com>
7944
7945 * frame.h (selected_frame_level): Document as deprecated.
7946 (frame_relative_level): Declare.
7947 * stack.c (frame_relative_level): New function.
7948 (selected_frame_level): Document as deprecated.
7949 (select_frame): Do not set the selected_frame_level.
7950
7951 * stack.c (frame_info, record_selected_frame): Update.
7952 (frame_command, current_frame_command): Update.
7953 (up_silently_base, up_command, down_silently_base): Update.
7954 (down_command): Update.
7955 * inflow.c (kill_command): Update.
7956 * tracepoint.c (finish_tfind_command): Update.
7957 * corelow.c (core_open): Update.
7958 * thread.c (info_threads_command): Update.
7959 (do_captured_thread_select): Update.
7960 * infcmd.c (finish_command): Update.
7961 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7962
9c1d6fe5
JT
79632002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7964
7965 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7966
ab89facf
AC
79672002-04-21 Andrew Cagney <ac131313@redhat.com>
7968
7969 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7970 type const.
7971
82a4efa1
JT
79722002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7973
7974 * alphafbsd-tdep.c: Update copyright years. Include
7975 alpha-tdep.h.
7976 (alphafbsd_use_struct_convention): Make static.
7977 (alphafbsd_init_abi): New function.
7978 (_initialize_alphafbsd_tdep): New function.
7979 * config/alpha/tm-fbsd.h: Update copyright years.
7980 (USE_STRUCT_CONVENTION): Remove.
7981
44dffaac
JT
79822002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7983
7984 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7985 an Alpha ABI variant.
7986 (alpha_abi_handler_list): Declare.
7987 (alpha_gdbarch_register_os_abi): New function.
7988 (alpha_gdbarch_init): Give registered ABI variant handlers a
7989 chance to tweak the gdbarch once we have set up defaults.
7990 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7991
65585be4
JT
79922002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7993
7994 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7995 to standard_coerce_float_to_double.
7996 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7997
d9b023cc
JT
79982002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7999
8000 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8001 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8002 from gdbarch_tdep rather than a constant.
8003 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8004 the default text address for all Alpha Unix ABIs.
8005 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8006 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8007
dc129d82
JT
80082002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8009
8010 * alpha-tdep.h: New file. Includes several Alpha target constants
8011 taken from...
8012 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8013 let gdbarch deal with.
8014 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8015 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8016 to dependency list.
8017 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8018 Alpha target register names.
8019 * alphabsd-nat.c: Likewise.
8020 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8021 Alpha target register names. Make serveral routines static.
8022 (alpha_get_saved_register): New function.
8023 (alpha_abi_names): New.
8024 (process_note_abi_tag_sections): New function.
8025 (get_elfosabi): New function.
8026 (alpha_gdbarch_init): New function.
8027 (alpha_dump_tdep): New function.
8028 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8029
d49d1e0a
AC
80302002-04-21 Andrew Cagney <ac131313@redhat.com>
8031
8032 * frame.c (find_saved_register): Delete #ifdef
8033 HAVE_REGISTER_WINDOWS code.
8034 * config/sparc/tm-sparc.h: Update comments.
8035 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8036
92e8c9ed
AC
80372002-04-21 Andrew Cagney <ac131313@redhat.com>
8038
8039 * i960-tdep.c (i960_find_saved_register): New function.
8040 (i960_get_saved_register): New function.
8041 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8042 (i960_get_saved_register): Declare.
8043 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8044
e1925118
DM
80452002-04-20 David S. Miller <davem@redhat.com>
8046
8047 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8048
29673b29
AC
80492002-04-20 Andrew Cagney <ac131313@redhat.com>
8050
8051 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8052 instead of NUM_PSEUDO_REGS.
8053
6c86dcd5
DM
80542002-04-20 David S. Miller <davem@redhat.com>
8055
8056 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8057 GDB_MULTI_ARCH_PARTIAL
8058 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8059 define, let tm-sp64.h do it.
8060
aa40ec90
JT
80612002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8062
8063 * frame.c (find_saved_register): Avoid a NULL pointer
8064 dereference and actually walk the frame list.
8065
0f79675b
AC
80662002-04-20 Andrew Cagney <ac131313@redhat.com>
8067
8068 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8069 sorted in most most-recent-used order. Document.
8070 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8071
f91305dd 80722002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
8073
8074 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8075 instead of ->prev.
8076 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8077 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8078 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8079 instead of ->prev.
8080
73d322b1
EZ
80812002-04-19 Elena Zannoni <ezannoni@redhat.com>
8082
8083 Fix PR gdb/471.
8084 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8085 (build_builtin_type_vec128): Ditto.
8086 (append_composite_type_field): Fix calculation of type length in
8087 union case.
8088
ccd9a834
EZ
80892002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8090
8091 * config/djgpp/README: Update.
8092
8093 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8094 compiler warnings.
8095
a57f9e49
JT
80962002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8097
8098 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8099 (alpha_setup_arbitrary_frame): ...to this.
8100 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8101 for alpha_setup_arbitrary_frame.
8102
f4f9705a
AC
81032002-04-18 Andrew Cagney <cagney@redhat.com>
8104
8105 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8106 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8107
f4f9705a
AC
8108 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8109 * target.h (memory_breakpoint_from_pc): Update declaration.
8110 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8111
8112 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8113 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8114 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8115 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8116 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8117 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8118 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8119 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8120 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8121 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8122 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8123 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8124
8125 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8126 const pointer.
8127 * monitor.c (monitor_insert_breakpoint): Ditto.
8128 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8129
8130 * config/mcore/tm-mcore.h: Update copyright.
8131 * mem-break.c: Ditto.
8132 * xstormy16-tdep.c: Ditto.
8133
29f319b8
PM
81342002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8135
8136 * p-exp.y: Add precedence rule for '^' token.
8137 This removes the shift/reduce conflicts.
8138 Remove the comment concerning these shift/reduce conflicts.
8139
ebeac11a
EZ
81402002-04-18 Elena Zannoni <ezannoni@redhat.com>
8141
8142 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8143 (registers_powerpc_nofp): New register set for processors
8144 without floating point unit.
8145
27c31547
DM
81462002-04-18 David S. Miller <davem@redhat.com>
8147
8148 * MAINTAINERS: Add myself to write-after-approval.
8149
47a73475
MS
81502002-04-17 Michael Snyder <msnyder@redhat.com>
8151
8152 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8153
953836b2
AC
81542002-04-17 Andrew Cagney <ac131313@redhat.com>
8155
8156 * rs6000-tdep.c (frame_initial_stack_address): Use
8157 frame_register_read to read the alloca_reg.
8158
8b0d4340
AC
81592002-04-17 Andrew Cagney <ac131313@redhat.com>
8160
8161 * frame.c (find_saved_register): Find saved registers in the next
8162 not prev frame.
8163 Fix PR gdb/365.
8164
d8864532
AC
81652002-04-17 Andrew Cagney <ac131313@redhat.com>
8166
8167 * gdbarch.sh (LANG): Set to ``c''.
8168
36cc83a3 81692002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 8170
36cc83a3 8171 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 8172
2f4150cc 81732002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
8174
8175 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8176 Update copyright.
8177
628703c6 8178 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 8179 Also fix PR gdb/391.
361d1df0 8180
56157b4a
AC
81812002-04-14 Andrew Cagney <ac131313@redhat.com>
8182
8183 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8184 * aclocal.m4, configure: Re-generate.
8185 Fix PR gdb/391.
361d1df0 8186
6d1e3329
EZ
81872002-04-14 Elena Zannoni <ezannoni@redhat.com>
8188
8189 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8190 instead of tm_print_insn.
8191
cb06fa07
EZ
81922002-04-14 Elena Zannoni <ezannoni@redhat.com>
8193
8194 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8195
f208ba17
AC
81962002-04-14 Andrew Cagney <ac131313@redhat.com>
8197
8198 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8199 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8200 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8201
20f01a46
DH
82022002-04-12 Don Howard <dhoward@redhat.com>
8203
8204 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8205 max_user_call_depth.
8206 (init_cmd_lists): Initialize the new value;
8207 * cli/cli-script.c (execute_user_command): Limit the call depth of
8208 user defined commands. This avoids a core-dump when user commands
8209 are infinitly recursive.
8210
a88376a3
KB
82112002-04-12 Kevin Buettner <kevinb@redhat.com>
8212
8213 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8214 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8215 from tdep struct instead of DEFAULT_LR_SAVE.
8216 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8217 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8218 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8219
f2172603
MS
82202002-04-12 Michael Snyder <msnyder@redhat.com>
8221
694f61fb 8222 * Remote.c: Spelling fix.
20fe79c8
MS
8223 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8224 If no symbol found for "sbrk", try "_sbrk".
8225 (make_output_phdrs): Use bfd_section_name.
8226 (gcore_copy_callback): Use bfd_section_name.
62995fc4 8227 * eval.c: Indentation fix-ups.
169a7369
MS
8228 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8229 in case it gets applied to an address that is already
8230 in the instruction space.
de74f71f
MS
8231 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8232 * symfile.c: Fix indentation, long lines.
f2172603
MS
8233 * source.c: White space fix-up.
8234
cda5a58a
AC
82352002-04-12 Andrew Cagney <cagney@redhat.com>
8236
8237 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8238 * frame.c (frame_register_read): New function. Return non-zero on
8239 success.
8240 (read_relative_register_raw_bytes_for_frame): Delete.
8241 (read_relative_register_raw_bytes): Delete.
8242 * frame.h (frame_register_read): Declare.
8243 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8244 * sh-tdep.c: Ditto.
8245 * infcmd.c (do_registers_info): Ditto.
8246 * hppa-tdep.c: Ditto.
8247 * rs6000-tdep.c: Ditto.
8248 * h8500-tdep.c: Ditto.
8249 * mips-tdep.c: Ditto.
8250 * h8300-tdep.c: Ditto.
8251 * z8k-tdep.c: Ditto.
8252
2ea5f656
KB
82532002-04-12 Kevin Buettner <kevinb@redhat.com>
8254
8255 From Jimi X <jimix@watson.ibm.com>:
8256 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8257 64-bit SysV ABI.
8258
27b15785
KB
82592002-04-12 Kevin Buettner <kevinb@redhat.com>
8260
8261 From Jimi X <jimix@watson.ibm.com>:
8262 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8263 bfd info.
8264
5d57ee30
KB
82652002-04-12 Kevin Buettner <kevinb@redhat.com>
8266
8267 From Jimi X <jimix@watson.ibm.com>:
8268 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8269 register sets for these processor variants.
8270
bc1e36ca
DJ
82712002-04-11 Daniel Jacobowitz <drow@mvista.com>
8272
bc1e36ca
DJ
8273 * regformats/reg-ppc.dat: Support FPSCR.
8274
e3f36dbd
KB
82752002-04-11 Kevin Buettner <kevinb@redhat.com>
8276
8277 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8278 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8279 Add fpscr as an invalid/unfetchable register.
8280 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8281 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8282 (fill_fpregset): Add support for register fpscr.
8283 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8284 (fill_gregset): Account for the fact that register ``mq'' might
8285 not exist.
8286 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8287 (registers_power): Add fpscr to register set at slot 71.
8288 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8289 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8290
943c9c25
MS
82912002-04-11 Michael Snyder <msnyder@redhat.com>
8292
8293 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8294 * configure: Regenerate.
8295 * config.in: Regenerate.
8296 * acconfig.h: Add define for _SYSCALL32.
8297 * core-sol2.c: Remove #define _SYSCALL32.
8298 * solib-legacy.c: Remove #define _SYSCALL32.
8299
d8c0a2e7
AC
83002002-04-10 Andrew Cagney <ac131313@redhat.com>
8301
8302 * stack.c (select_frame): Cleanup internal error message, do not
8303 use %p.
8304
7cc19214
AC
83052002-04-10 Andrew Cagney <ac131313@redhat.com>
8306
8307 * stack.c (select_frame): Check that selected_frame and the
8308 specified level are as expected.
8309 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8310 Update copyright.
8311 * frame.h (struct frame_info): Add field `level'. Update
8312 copyright.
8313 Work-in-progress PR gdb/464.
8314
67a2b77e
AC
83152002-04-10 Andrew Cagney <ac131313@redhat.com>
8316
8317 * maint.c (maint_print_section_info): Rename print_section_info.
8318 (print_bfd_section_info, print_objfile_section_info): Update.
8319 * inferior.h (struct gdbarch): Add opaque declaration.
8320 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8321 * gdbarch.h: Regenerate.
8322
8cfda98c
ML
83232002-04-10 Michal Ludvig <mludvig@suse.cz>
8324
8325 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8326 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8327 (kernel_u_size): Added.
8328 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8329 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8330
ca439ad2 83312002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 8332
ca439ad2
JI
8333 * valarith.c (find_size_for_pointer_math): New function, either returns
8334 the size for a pointer's target, returns 1 for void *, or errors for
8335 incomplete types.
8336 (value_add, value_sub): use find_size_for_pointer_math.
8337
2f2893d9
DJ
83382002-04-09 Daniel Jacobowitz <drow@mvista.com>
8339
8340 * linux-low.c (linux_look_up_symbols): New hook.
8341 (linux_target_ops): Add linux_look_up_symbols.
8342 * remote-utils.c (decode_address): New function.
8343 (look_up_one_symbol): New function.
8344 * server.c (handle_query): Call target look_up_symbols hook.
8345 * server.h (look_up_one_symbol): Add prototype.
8346 * target.h (struct target_ops): Add look_up_symbols hook.
8347
96cb11df
AC
83482002-04-09 Andrew Cagney <ac131313@redhat.com>
8349
8350 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8351 override FP_REGNUM with frame->fp. Update copyright.
8352 * parse.c (num_std_regs, std_regs): Delete.
8353 (target_map_name_to_register): Do not search std_regs. Update
8354 function description.
8355 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8356 declarations. Update copyright.
8357 Fix PR gdb/251.
361d1df0 8358
97658e92
DJ
83592002-04-09 Daniel Jacobowitz <drow@mvista.com>
8360
8361 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8362 after the last symbol in a block.
8363
6044e3eb
PM
83642002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8365
8366 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8367 is non zero as a found symbol.
8368
0406ec40
AC
83692002-04-08 Andrew Cagney <ac131313@redhat.com>
8370
8371 * findvar.c: Include "builtin-regs.h".
8372 (value_of_register): Call value_of_builtin_reg when applicable.
8373 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8374 (target_map_name_to_register): Call
8375 builtin_reg_map_name_to_regnum.
8376 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8377 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8378 (builtin_regs_h): Define.
8379 (builtin-regs.o): New target.
8380 (findvar.o): Add $(builtin_regs_h).
8381 * builtin-regs.c, builtin-regs.h: New files.
8382 * std-regs.c: New file.
8383 Partial fix for PR gdb/251.
8384
56a6dfb9
KB
83852002-04-08 Kevin Buettner <kevinb@redhat.com>
8386
8387 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8388 it's no longer required.
8389
3a808432
AC
83902002-04-08 Andrew Cagney <ac131313@redhat.com>
8391
8392 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8393
7c40d541
KB
83942002-04-08 Kevin Buettner <kevinb@redhat.com>
8395
8396 From Jimi X <jimix@watson.ibm.com>:
8397 * rs6000-tdep.c (rs6000_software_single_step): Use
8398 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8399 and size. Use target_insert_breakpoint() and
8400 target_remove_breakpoint() to insert and remove breakpoints
8401 instead of explicit memory reads and writes.
8402
cc9836a8
KB
84032002-04-08 Kevin Buettner <kevinb@redhat.com>
8404
8405 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8406 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8407 ELF_OBJECT_FORMAT ifdef.
8408
7495d1dc
KB
84092002-04-08 Kevin Buettner <kevinb@redhat.com>
8410
8411 From Jimi X <jimix@watson.ibm.com>:
8412 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8413
4288e836
KB
84142002-04-08 Kevin Buettner <kevinb@redhat.com>
8415
8416 From Jimi X <jimix@watson.ibm.com>:
8417 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8418 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8419
a4e4e501
MK
84202002-04-07 Mark Kettenis <kettenis@gnu.org>
8421
8422 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8423 s/asprintf/xasprintf/.
8424 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8425
006defba
AC
84262002-04-07 Andrew Cagney <ac131313@redhat.com>
8427
8428 I believe Jeff Law denies responsability for this one:
8429 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8430 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8431 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8432 Work-around for PR gdb/366.
8433
7aa83cac
EZ
84342002-04-07 Elena Zannoni <ezannoni@redhat.com>
8435
8436 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8437 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8438 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8439
cf1fcca1
EZ
84402002-04-07 Elena Zannoni <ezannoni@redhat.com>
8441
8442 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8443 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8444 information.
8445
3f289e6f
AC
84462002-04-07 Andrew Cagney <ac131313@redhat.com>
8447
8448 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8449 maintainer.
8450
129188f6
AC
84512002-04-07 Andrew Cagney <ac131313@redhat.com>
8452
8453 * README (Reporting Bugs in GDB): Document the bug web page as the
8454 prefered way of submitting bugs.
8455 Fix PR gdb/402.
8456
1200cd6e
AC
84572002-04-06 Andrew Cagney <ac131313@redhat.com>
8458
8459 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8460 -1. Update comment.
8461 * gdbarch.h, gdbarch.c: Re-generate.
8462
2853c33c
AS
84632002-04-07 Andreas Schwab <schwab@suse.de>
8464
8465 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8466 buffer to regcache_collect.
8467
c2169756
AC
84682002-04-06 Andrew Cagney <ac131313@redhat.com>
8469
8470 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8471 * gdbarch.c, gdbarch.h: Re-generate.
8472
25f1b008
AC
84732002-04-06 Andrew Cagney <ac131313@redhat.com>
8474
8475 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8476 declaration. Fix -Werror.
8477
59263426
DJ
84782002-04-05 Daniel Jacobowitz <drow@mvista.com>
8479
8480 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8481 * gdbarch.c: Regenerate.
8482
f5db4da3
MS
84832002-04-05 Michael Snyder <msnyder@redhat.com>
8484
80f8a6eb
MS
8485 * breakpoint.c (clear_command): Rewrite middle section to
8486 combine two loops with identical control conditions.
8487 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8488 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8489
ad3dcc5c
L
84902002-04-05 H.J. Lu (hjl@gnu.org)
8491
8492 * solib-svr4.c (bkpt_names): Add "__start".
8493
f32e7a74
AC
84942002-04-04 Andrew Cagney <ac131313@redhat.com>
8495
8496 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8497 as test for 64 bit target.
8498
8227c0ff
AC
84992002-04-05 Andrew Cagney <ac131313@redhat.com>
8500
8501 * h8500-tdep.c (h8500_write_fp): Delete function.
8502 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8503 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8504 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8505 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8506 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8507 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8508 (s390_write_fp):
8509 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8510 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8511 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8512 (d10v_write_fp): Delete function.
8513 * inferior.h (write_fp, generic_target_write_fp): Delete
8514 declarations.
8515 * regcache.c (generic_target_write_fp): Delete function.
8516 (write_fp): Delete function.
8517 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8518 * gdbarch.h, gdbarch.c: Regenerate.
8519 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8520 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8521 (sparc64_write_fp): Delete declaration.
8522 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8523 (h8500_write_fp): Delete declaration.
8524
2757dd86
AC
85252002-04-04 Andrew Cagney <ac131313@redhat.com>
8526
8527 * sparc-tdep.c (sparc64_write_fp): Delete.
8528 (sparc_push_dummy_frame): Replace write_fp call with code to store
8529 the FP directly.
8530 (sparc_gdbarch_init): Do not initialize write_fp.
8531
c69255e1
KB
85322002-04-05 Kevin Buettner <kevinb@redhat.com>
8533
8534 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8535 clause.
8536
ae767bfb
JB
85372002-03-29 Jim Blandy <jimb@redhat.com>
8538
8539 * stack.c (get_selected_block): Add new argument `addr_in_block',
8540 used to return the exact code address we used to select the block,
8541 not just the block.
8542 * blockframe.c (get_frame_block, get_current_block): Same.
8543 * frame.h (get_frame_block, get_current_block,
8544 get_selected_block): Update declarations.
8545 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8546 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8547
84d2ac95
MS
85482002-04-05 Michael Snyder <msnyder@redhat.com>
8549
8550 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8551 warning message.
8552
596aa3bf
JB
85532002-04-05 J. Brobecker <brobecker@gnat.com>
8554
8555 * utils.c (xfullpath): New function.
8556 * defs.h (xfullpath): Add declaration.
8557 * source.c (openp): Use xfullpath in place of gdb_realpath to
8558 avoid resolving the basename part of filenames when the
8559 associated file is a symbolic link. This fixes a potential
8560 inconsistency between the filenames known to GDB and the
8561 filenames it prints in the annotations.
8562 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8563 to be able to match a filename with either the real filename, or
8564 the name of any symbolic link to this file.
8565 (lookup_partial_symtab): Ditto.
8566
c02f5703
MS
85672002-04-04 Michael Snyder <msnyder@redhat.com>
8568
8569 * breakpoint.c: Add support for hardware breakpoints in overlays.
8570 (overlay_events_enabled): New state variable.
8571 (insert_breakpoints): Use overlay_events_enabled to decide
8572 whether to attempt to set a breakpoint at the overlay load addr.
8573 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8574 (remove_breakpoint): Use overlay_events_enabled to decide
8575 whether breakpoints need to be removed from overlay load addr.
8576 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8577 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8578 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8579 disable_overlay_breakpoints): Update overlay_events_enabled.
8580
5fb290d7
DJ
85812002-04-04 Daniel Jacobowitz <drow@mvista.com>
8582
8583 * dwarf2read.c (struct function_range): New.
8584 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8585 (check_cu_functions): New.
8586 (read_file_scope): Initialize global function lists.
8587 Call dwarf_decode_line after processing children.
8588 (read_func_scope): Add to global function list.
8589 (dwarf_decode_lines): Call check_cu_functions everywhere
8590 record_line is called. Call record_line with a linenumber
8591 of 0 to mark sequence ends.
8592
7b3fabf0
ML
85932002-04-04 Michal Ludvig <mludvig@suse.cz>
8594
361d1df0 8595 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8596 change sync with glibc.
8597
bce58c09
JB
85982002-04-03 Jim Blandy <jimb@redhat.com>
8599
8600 * configure.in: Call AC_C_INLINE.
8601 * configure: Regenerated.
361d1df0 8602
2fccf04a
DJ
86032002-04-01 Daniel Jacobowitz <drow@mvista.com>
8604
8605 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8606 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8607
2d1bfe2e
MK
86082002-03-31 Mark Kettenis <kettenis@gnu.org>
8609
a5941fbf
MK
8610 * NEWS: Mention gcore support on FreeBSD/i386.
8611
a90cd31d
MK
8612 * fbsd-proc.c: New file.
8613 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8614 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8615
2d1bfe2e
MK
8616 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8617 while statement.
8618
9eb6e5a1
JB
86192002-03-29 Jim Blandy <jimb@redhat.com>
8620
8621 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8622 unescaped newlines in string literals, but newer ones don't. So
8623 escape them.
8624
f02df580
MS
86252002-03-26 Michael Snyder <msnyder@redhat.com>
8626 Andrew Cagney <cagney@redhat.com>
8627
361d1df0 8628 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8629 restore file to memory.
8630 * cli/cli-dump.h: New file.
8631 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8632 * NEWS: Mention new commands.
f02df580 8633
109f874e
MS
86342002-03-28 Michael Snyder <msnyder@redhat.com>
8635
8636 * symfile.c (symbol_file_add): Move test for null symbols to later.
8637
520f6ade
AC
86382002-03-27 Andrew Cagney <ac131313@redhat.com>
8639
8640 From veksler at il.ibm.com:
8641 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8642 the xstrduped original path.
8643 Fix PR gdb/417.
8644
d4654627
MS
86452002-03-27 Michael Snyder <msnyder@redhat.com>
8646
8647 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8648 * infcmd.c (_initialize_infcmd): Ditto.
8649 * language.c (_initialize_language): Ditto.
8650 * symfile.c (_initialize_symfile): Ditto.
8651 * top.c (_init_main): Ditto.
8652 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8653
6be8bc0c
EZ
86542002-03-27 Elena Zannoni <ezannoni@redhat.com>
8655
8656 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8657 vector registers handling.
8658 (skip_prologue): Handle new AltiVec instructions. Fill in new
8659 fields of frame data.
8660 (frame_get_saved_regs): Fill in information for AltiVec registers.
8661
12af6855
JB
86622002-03-27 Jim Blandy <jimb@redhat.com>
8663
8664 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8665 a function; leave this macro here to invoke that function.
8666 (symbol_init_mangled_name): Declaration for that function.
8667 * symtab.c (symbol_init_mangled_name): New function.
8668
dc672865
AC
86692002-03-27 Andrew Cagney <ac131313@redhat.com>
8670
8671 * valarith.c: Replace strerror with safe_strerror.
8672 * tracepoint.c: Ditto.
8673 * lin-lwp.c: Ditto.
8674 * go32-nat.c: Ditto.
8675 * inflow.c: Ditto.
8676 * gnu-nat.c: Ditto.
8677
d96429cd
AS
86782002-03-27 Andreas Schwab <schwab@suse.de>
8679
8680 * event-top.c (command_line_handler): Remove useless if.
8681
7e336ba1
AJ
86822002-03-27 Andreas Jaeger <aj@suse.de>
8683
8684 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8685 comment.
8686
de220d0f
ML
86872002-03-27 Michal Ludvig <mludvig@suse.cz>
8688
8689 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8690 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8691 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8692 (x86_64_linux_dr_get_status, supply_gregset),
8693 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8694 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8695 (x86_64_register_info_table): Add.
8696 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8697 (x86_64_register_raw_size, x86_64_register_virtual_type),
8698 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8699 general x86_64_register_info_table.
8700 (i386_gdbarch_init): gdbarch_register_bytes is now set
8701 dynamicaly during initialization.
8702 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8703 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8704
0e98d0a7
DJ
87052002-03-27 Daniel Jacobowitz <drow@mvista.com>
8706
8707 * gdbserver/server.c (main): Call target_signal_to_host_p
8708 and target_signal_to_host on signals received from the remote.
8709 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8710 target_signal_from_host on signals sent to the remote.
8711 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8712 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8713
3130066b
DJ
87142002-03-27 Daniel Jacobowitz <drow@mvista.com>
8715
8716 * signals/signals.c: Include "server.h" in gdbserver build.
8717 (target_signal_from_name): Don't use STREQ.
8718 (_initialize_signals): Likewise. Don't include function in
8719 gdbserver build.
8720
9aedf4f4
DJ
87212002-03-27 Daniel Jacobowitz <drow@mvista.com>
8722
8723 * signals.c: Moved to...
8724 * signals/signals.c: Here.
7e336ba1 8725 * Makefile (signals.o): Update.
9aedf4f4 8726
3fa41cdb
JL
87272002-03-26 Jeff Law (law@redhat.com)
8728
8729 * somread.c (som_symtab_read): Remove some commented out code and
8730 updated related comments. Do not set the minimal symbol table to
8731 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8732 in a dynamic executable.
8733 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8734 where we are unable to find the minimal symbol for the given
8735 PC value.
8736
ee677e8d
MS
87372002-03-25 Jeff Law (law@redhat.com)
8738
8739 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8740
e76e1718
ML
87412002-03-25 Michal Ludvig <mludvig@suse.cz>
8742
8743 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8744
18a642a1
AC
87452002-03-23 Andrew Cagney <ac131313@redhat.com>
8746
8747 * command.h: Update copyright.
8748 (struct cmd_list_element): Replace definition with opaque
8749 declaration.
8750 (enum cmd_types): Document that it will eventually be moved to
8751 cli/cli-decode.h
8752 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8753 (MALLOCED_REPLACEMENT): Delete macro.
8754 * Makefile.in (cli_decode_h): Add $(command_h).
8755 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8756 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8757 * completer.c: Include "cli/cli-decode.h".
8758 * maint.c: Include "cli/cli-decode.h".
8759 * cli/cli-decode.h: Include "command.h".
8760 (enum command_class): Delete.
8761 (enum cmd_types): Comment out.
8762 (enum cmd_auto_boolean): Delete.
8763 (enum var_types): Delete.
8764
b2875cc0
AC
87652002-03-23 Andrew Cagney <ac131313@redhat.com>
8766
8767 * cli/cli-decode.c: Include "gdb_assert.h".
8768 (add_set_or_show_cmd): New static function.
8769 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8770 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8771 all fields, such as func, from the set command.
8772
3b45974e
AC
87732002-03-23 Andrew Cagney <ac131313@redhat.com>
8774
8775 * MAINTAINERS (sh-elf): Change warning flag to -w.
8776
823ca731
AC
87772002-03-23 Andrew Cagney <cagney@redhat.com>
8778
8779 * defs.h (error): Add printf format attribute.
8780 * thread-db.c (thread_from_lwp): Fix error format string.
8781 * stack.c (parse_frame_specification): Ditto.
8782 * cli/cli-decode.c (undef_cmd_error): Ditto.
8783 * scm-lang.c (scm_lookup_name): Ditto.
8784 * tracepoint.c (trace_error): Ditto.
8785 * remote-utils.c (usage): Ditto.
8786 * remote.c (compare_sections_command): Ditto.
8787 Fix PR gdb/328.
8788
0e101458
AC
87892002-03-22 Andrew Cagney <ac131313@redhat.com>
8790
8791 * gdbtypes.c (append_composite_type_field): New function.
8792 (init_composite_type): New function.
8793 * gdbtypes.h (append_composite_type_field): Declare.
8794 (init_composite_type): Ditto.
8795
8e0662df
EZ
87962002-03-22 Elena Zannoni <ezannoni@redhat.com>
8797
8798 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8799 function.
8e0662df
EZ
8800 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8801 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8802 structure returning convention for SYSV ABI case, but not
8803 for GNU/Linux, FreeBSD, or NetBSD.
8804
3121eff0
DJ
88052002-03-22 Daniel Jacobowitz <drow@mvista.com>
8806
8807 * symtab.h (lookup_block_symbol): Add mangled_name argument
8808 to prototype.
8809
8810 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8811 with new mangled_name argument.
8812 * linespec.c (decode_line_1): Likewise.
8813 * valops (value_of_this): Likewise.
8814 * symtab.c (lookup_transparent_type): Likewise.
8815 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8816 (lookup_symbol): If we are given a mangled name, pass it down
8817 to lookup_symbol_aux.
8818 (lookup_block_symbol): If we are given a mangled name to check
8819 against, only return symbols which match it.
8820
349b409f
CF
88212002-03-22 Christopher Faylor <cgf@redhat.com>
8822
8823 * win32-nat.c (child_create_inferior): Check for proper shell to use
8824 here, in case the user changes it on the fly.
8825 (_initialize_inftarg): Remove shell path considerations.
8826
2a873819
EZ
88272002-03-21 Elena Zannoni <ezannoni@redhat.com>
8828
8829 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8830 for gdbarch_max_register_raw_size and max_register_virtual_size.
8831 Adjust copyright year.
8832
a1b9830c
DJ
88332002-03-21 Daniel Jacobowitz <drow@mvista.com>
8834
8835 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8836 in a function to cover the entire beginning of the function
8837 as well if it does not already.
8838
8b5790f2
TR
88392002-03-21 Tom Rix <trix@redhat.com>
8840
8841 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8842 (rs6000_ptrace64): Renamed from ptrace64.
8843
bdbe5747
MH
88442002-03-20 Martin M. Hunt <hunt@redhat.com>
8845
8846 * gdbserver/remote-utils.c (remote_open): Don't call
8847 getprotobyname, we're all using TCP here so just use
8848 IPPROTO_TCP.
7e336ba1 8849 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
8850
88512002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 8852
bdbe5747
MH
8853 * regcache.c (_initialize_regcache): No need to call
8854 build_regcache() at this time; it gets called whenever
8855 the gdbarch changes.
8856
7781cd62
DB
88572002-03-20 David O'Brien <obrien@FreeBSD.org>
8858
8859 * sparc-nat.c: Include sys/param.h where possible.
8860
f65ca430
DJ
88612002-03-20 Daniel Jacobowitz <drow@mvista.com>
8862
8863 Fix PR gdb/422.
8864 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8865 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8866 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8867 complex types.
8868 * stabsread.c (rs6000_builtin_type): Likewise.
8869 (read_sun_floating_type): Likewise.
8870
0c867556
PS
88712002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8872
8873 * stabsread.c (read_member_functions): Remove skip code for duplicate
8874 constructor/destructor methods. Use standard parsing for these
8875 methods and just do not chain them to the list of methods after
8876 parsing.
8877
12b9c64f
AO
88782002-03-19 Alexandre Oliva <aoliva@redhat.com>
8879
8880 * coffread.c: Remove redundant static declarations. Replace
8881 occurrences of `PTR' with `void *'.
8882 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8883 * top.h (quit_cover): Likewise.
8884 * defs.h (catch_errors): Likewise.
8885
349c5d5f
AC
88862002-03-18 Andrew Cagney <ac131313@redhat.com>
8887
8888 * defs.h (XMALLOC): Define.
8889 * gdb-events.sh (XMALLOC): Delete macro.
8890 * gdb-events.c, gdb-events.h: Regenerate.
8891 * gdbarch.sh (XMALLOC): Delete macro.
8892 * gdbarch.c: Regenerate.
8893 * serial.c (XMALLOC): Delete macro.
8894 * ui-file.c (XMALLOC): Ditto.
8895 * ser-unix.h (XMALLOC): Ditto.
8896 * sh-tdep.c (XMALLOC): Ditto.
8897 * ui-out.c (XMALLOC): Ditto.
8898 * utils.c (XMALLOC): Ditto.
8899 * i386-tdep.c (XMALLOC): Ditto.
8900 * gdb-events.c (XMALLOC): Ditto.
8901 * d10v-tdep.c (XMALLOC): Ditto.
8902 * cli-out.c (XMALLOC): Ditto.
8903
8904 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8905 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8906 * ui-file.c, ui-out.c: Ditto.
8907
7d0766f3
AC
89082002-03-18 Andrew Cagney <ac131313@redhat.com>
8909
8910 * command.h (struct cmd_list_element): Add field context.
8911 (set_cmd_context, get_cmd_context): Declare.
8912 * cli/cli-decode.h: Ditto.
8913 * cli/cli-decode.c (get_cmd_context): New function.
8914 (set_cmd_context): New function.
8915 (add_cmd): Initialize context.
8916 Part of fixing PR gdb/145 and PR gdb/146.
8917
5913bcb0
AC
89182002-03-17 Andrew Cagney <ac131313@redhat.com>
8919
1868c04e
AC
8920 * cli/cli-decode.c (cmd_type): New function.
8921 * command.h (cmd_type): Declare.
8922 * infrun.c (set_schedlock_func): Call function cmd_type.
8923 * kod.c (kod_set_os): Call cmd_type.
8924 * cris-tdep.c (cris_version_update): Use function cmd_type.
8925 (cris_mode_update, cris_abi_update): Ditto.
8926
5913bcb0
AC
8927 * command.h: (execute_cmd_post_hook): Declare.
8928 (execute_cmd_pre_hook): Declare.
8929 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8930 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8931 functions. Execute pre/post hook while ensuring that afterwords
8932 hook_in is cleared.
8933 * top.c (execute_command): Use execute_cmd_post_hook, and
8934 execute_cmd_pre_hook to execute pre/post commands.
8935 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8936 hook_stop_stub.
8937 (hook_stop_stub): Call execute_cmd_pre_hook.
8938
b51450c9
AC
89392002-03-17 Andrew Cagney <ac131313@redhat.com>
8940
8941 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8942 set'' and this leads to a core dump. Move xstrdup of
8943 operating_system to after check that it is not NULL.
8944
f66c9f11
AC
89452002-03-17 Andrew Cagney <ac131313@redhat.com>
8946
8e694ecf
AC
8947 * kod.c (kod_set_os): Remove unnecessary check that
8948 ``command->type'' is set_cmd.
8949
f66c9f11
AC
8950 * valprint.c (set_input_radix): Use input_radix.
8951 (set_output_radix): Use output_radix.
8952 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8953 isn't reverted.
8954
9d01611c
AC
89552002-03-16 Andrew Cagney <ac131313@redhat.com>
8956
8957 * value.h (struct value): Delete field ``substring_addr''. Change
8958 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
8959 force_core_addr_align and force_pointer_aligh.
8960
8961 * value.h (struct value): Fix typo in above change.
9d01611c 8962
4156bb53
PS
89632002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8964
8965 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8966 to fix internal_error from ``maintenance print architecture''.
8967
0e5e3ea6
PS
89682002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8969
8970 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8971 for gcc versions after gcc-2.8.1.
8972
9b013045
PS
89732002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8974
8975 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8976 for method resolution. Restore adjustment of ``this'' pointer after
8977 calling value_struct_elt, which was accidentally removed during the
8978 HP merge.
8979
376c9600
AC
89802002-03-15 Andrew Cagney <ac131313@redhat.com>
8981
8982 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8983 value_of_register.
8984 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8985 get_saved_register.
8986 * value.h (value_of_register): Update.
8987
a4db0f07
RH
89882002-03-14 Richard Henderson <rth@redhat.com>
8989
8990 * configure.in: Detect declaration for canonicalize_file_name.
8991 * utils.c (canonicalize_file_name): Declare, if needed.
8992 (gdb_realpath): Prefer realpath if available and usable.
8993 * config.in, configure: Rebuild.
8994
96383835
RH
89952002-03-14 Richard Henderson <rth@redhat.com>
8996
8997 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8998 a constant array bound.
8999
9000 * MAINTAINERS: Add myself to write-after-approval.
9001
75245b24
MS
90022002-03-14 Michael Snyder <msnyder@redhat.com>
9003
9004 * symfile.c (syms_from_objfile): Return immediately if no syms.
9005 (symbol_file_add): Return immediately if no syms.
9006 (find_sym_fns): Return immediately if no syms.
9007
e641a1ca
ML
90082002-03-13 Michal Ludvig <mludvig@suse.cz>
9009
9010 * gdbserver/remote-util.c (remote_open): Print remote-side's
9011 IP address when remote debugging over the network.
7e336ba1 9012
df08bfec
DB
90132002-03-12 David O'Brien <obrien@FreeBSD.org>
9014
9015 * config/sparc/fbsd.mh: Fix copyright.
9016 * config/sparc/fbsd.mt: Likewise.
9017
9a57864f
RE
90182002-03-11 Richard Earnshaw <rearnsha@arm.com>
9019
9020 * MAINTAINERS: Fix typo in name of gdb warnings option.
9021 (x86-64): Fix formating so that this can be parsed by awk.
9022
dd7bf85e
DJ
90232002-03-10 Daniel Jacobowitz <drow@mvista.com>
9024
9025 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9026 * defs.h: Include "gdb/signals.h".
9027 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9028
33a0a2ac
ML
90292002-03-10 Michal Ludvig <mludvig@suse.cz>
9030
9031 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 9032 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
9033 from x86-64-tdep.h
9034
dd824b04
DJ
90352002-03-10 Daniel Jacobowitz <drow@mvista.com>
9036 Don Howard <dhoward@redhat.com>
9037
9038 * mips-tdep.c (ST0_FR): Define.
9039 (mips2_fp_compat): New function, temporarily disabled.
9040 (mips_read_fp_register_single): New function.
9041 (mips_read_fp_register_double): New function.
9042 (mips_print_register): Use them.
9043 (do_fp_register_row): Likewise.
9044
6a41ff59
AC
90452002-03-09 Andrew Cagney <ac131313@redhat.com>
9046
9047 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9048 approval''.
9049
4ea09c10
PS
90502002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9051
9052 * stabsread.c (read_member_functions): Fix is_stub test for
9053 static member functions, improve comment.
9054
6ccc741d
RE
90552002-03-07 Richard Earnshaw <rearnsha@arm.com>
9056
9057 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9058 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9059 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9060 commands that set boolean values.
9061 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9062 (arm_rdi_resume): Always initialize PC.
9063 (arm_rdi_open): Don't use rslt as a boolean.
9064 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9065 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9066 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9067 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9068
438013df
AO
90692002-03-06 Alexandre Oliva <aoliva@redhat.com>
9070
9071 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9072 * configure: Rebuilt.
9073
70ed8774
SC
90742002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9075
9076 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9077 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9078
5ba2abeb
AC
90792002-03-06 Andrew Cagney <ac131313@redhat.com>
9080
9081 * cli/cli-decode.c (set_cmd_completer): New function.
9082 * command.h (set_cmd_completer): Declare.
9083 * cli/cli-decode.h (set_cmd_completer): Ditto.
9084
9085 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9086 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9087 * win32-nat.c (_initialize_inftarg): Ditto.
9088 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9089 * proc-api.c (_initialize_proc_api): Ditto.
9090 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9091 * source.c (_initialize_source): Ditto.
9092 * exec.c (_initialize_exec): Ditto.
9093 * solib.c (_initialize_solib): Ditto.
9094 * top.c (init_main): Ditto.
9095 * tracepoint.c (_initialize_tracepoint): Ditto.
9096 * symfile.c (_initialize_symfile): Ditto.
9097 * printcmd.c (_initialize_printcmd): Ditto.
9098 * infcmd.c (_initialize_infcmd): Ditto.
9099 * corefile.c (_initialize_core): Ditto.
9100
f779ca99
AC
91012002-03-05 Andrew Cagney <ac131313@redhat.com>
9102
9103 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9104
01a3934b
AC
91052002-03-05 Andrew Cagney <ac131313@redhat.com>
9106
9107 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9108
37057839
AC
91092002-03-05 Andrew Cagney <ac131313@redhat.com>
9110
9111 * NEWS: Update headings, 5.2 has branched.
9112
c6ecbae5
DJ
91132002-03-04 Daniel Jacobowitz <drow@mvista.com>
9114
9115 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9116 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9117 (register_addr, REGISTER_RAW_SIZE): Likewise.
9118 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9119 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9120
e9f30c21
ML
91212002-03-03 Michal Ludvig <mludvig@suse.cz>
9122
9123 * MAINTAINERS (x86-64): Add myself.
9124 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9125 changed value_ptr -> struct value *
9126
54394ac3
DB
91272002-03-01 David O'Brien <obrien@FreeBSD.org>
9128
9129 * configure.host (sparc64-*-freebsd): Add.
9130 * configure.tgt: Likewise.
9131 * config/sparc/fbsd.mh: New file.
9132 * config/sparc/fbsd.mt: Likewise.
9133 * config/sparc/nm-fbsd.h: Likewise.
9134 * config/sparc/tm-fbsd.h: Likewise.
9135
bfe95955
DJ
91362002-03-01 Daniel Jacobowitz <drow@mvista.com>
9137
9138 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9139 regformats/reg-s390x.dat.
9140
f33c6cbf
AC
91412002-03-01 Andrew Cagney <ac131313@redhat.com>
9142
9143 * utils.c: Add FIXME explaining true/false problem.
9144
5ecaa7dd
AC
91452002-02-28 Andrew Cagney <ac131313@redhat.com>
9146
9147 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9148
2a251cc2
MC
91492002-02-28 Michael Chastain <mec@shout.net>
9150
9151 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9152
6a8031a3 91532002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
9154
9155 * gdbserver/linux-s390-low.c: New file.
9156 * regformats/reg-s390.dat: New file.
9157 * regformats/reg-s390x.dat: New file.
9158 * gdbserver/configure.srv: Add S/390.
9159 * gdbserver/Makefile.in: Add S/390.
9160 * configure.tgt: Enable gdbserver for S/390.
9161
ac469903
EZ
91622002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9163
9164 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9165 first line of the doc string for "info dos", except at the end of
9166 the sentence, since the short help stops at the first period.
9167
985cb1a3
JM
91682002-02-28 Jason Merrill <jason@redhat.com>
9169
9170 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9171
c570663e
FF
91722002-02-27 Fred Fish <fnf@redhat.com>
9173
9174 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9175 comment (dumy -> dummy).
9176
43630227
PS
91772002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9178
9179 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9180
b84911e8
RB
91812002-02-27 Rodney Brown <rbrown64@csc.com.au>
9182
9183 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9184
58caa3dc
DJ
91852002-02-27 Daniel Jacobowitz <drow@mvista.com>
9186
9187 * gdbserver/acconfig.h: New file.
9188 * gdbserver/i387-fp.c: New file.
9189 * gdbserver/i387-fp.h: New file.
9190 * gdbserver/linux-x86-64.c: New file.
9191 * regformats/reg-x86-64.dat: New file.
9192 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9193 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9194 * gdbserver/configure.in: Add support for regsets.
9195 * gdbserver/config.in: Regenerate.
9196 * gdbserver/configure: Regenerate.
9197 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9198 * gdbserver/linux-low.h: New file.
9199 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9200 for regsets.
9201 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9202 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9203 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9204 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9205 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9206 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9207 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9208 "i387-fp.h". Add PTRACE_GETREGS and friends.
9209 * gdbserver/regcache.c (supply_register): New function.
9210 (supply_register_by_name): New function.
9211 (collect_register): New function.
9212 (collect_register_by_name): New function.
9213
93652174
DJ
92142002-02-27 Daniel Jacobowitz <drow@mvista.com>
9215
9216 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9217 (config.status): Add configure.srv dependency.
9218 (server_h): Add config.h dependency.
9219
a02e4a61
DJ
92202002-02-27 Daniel Jacobowitz <drow@mvista.com>
9221
9222 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9223 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9224 * gdbserver/configure.srv: Change i386-*-linux* to use
9225 reg-i386-linux.o.
9226
ce0eebec
AC
92272002-02-26 Andrew Cagney <ac131313@redhat.com>
9228
9229 * x86-64-tdep.c: Re-indent. Update copyright date.
9230
82dbc5f7
AC
92312002-02-26 Andrew Cagney <ac131313@redhat.com>
9232
9233 From Michal Ludvig <mludvig@suse.cz>:
9234 * x86-64-tdep.c (value.h): Delete.
9235 (gdb_assert.h): Include.
9236 (x86_64_register_convert_to_virtual,
9237 x86_64_register_convert_to_raw ): Add check which lets only
9238 floating-point values to be converted.
9239 (value_push): Delete.
9240 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9241 (i386_gdbarch_init): Number of register_bytes fixed.
9242
e4621584
AC
92432002-02-26 Andrew Cagney <ac131313@redhat.com>
9244
9245 * MAINTAINERS: Add x86-64 target.
9246
81a9a963
AC
92472002-02-26 Andrew Cagney <ac131313@redhat.com>
9248
9249 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9250 * osfsolib.c (solib_map_sections): Ditto.
9251 * irix5-nat.c (solib_map_sections): Ditto.
9252 * corelow.c (gdb_check_format): Ditto.
9253 * symfile.c (symfile_bfd_open): Ditto.
9254 * solib.c (solib_map_sections): Ditto.
9255 Fix PR gdb/354.
7e336ba1 9256
0f017ab9
AC
92572002-02-26 Andrew Cagney <ac131313@redhat.com>
9258
9259 * remote.c (_initialize_remote): By default, disable ``e'' and
9260 ``E'' step out-of-range packets.
9261
75738c29
AS
92622002-02-26 Andreas Schwab <schwab@suse.de>
9263
9264 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9265 m68k_linux_frame_saved_pc.
9266 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9267 in_sigtramp.
9268 (SIGCONTEXT_PC_OFFSET): Remove.
9269 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9270 m68k_linux_sigtramp_saved_pc): New functions.
9271 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9272 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9273 (UCONTEXT_PC_OFFSET): Define.
9274 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9275 non-RT and RT signal trampolines.
9276
7e8ed687
RE
92772002-02-26 Richard Earnshaw <rearnsha@arm.com>
9278
9279 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9280 (TARGET_NBPG, STACK_END_ADDR): Delete
9281 (VARIABLES_INSIDE_BLOCK): Delete.
9282
6972bc8b
AC
92832002-02-25 Andrew Cagney <ac131313@redhat.com>
9284
9285 * utils.c (perror_with_name): Make string parameter constant.
9286 (print_sys_errmsg): Ditto.
9287 (query): Ditto.
9288 * defs.h (perror_with_name): Update.
9289 (print_sys_errmsg): Update.
9290 (query): Update.
9291
aa32f823
DJ
92922002-02-25 Daniel Jacobowitz <drow@mvista.com>
9293
9294 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9295 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9296
19caaa45
PS
92972002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9298
9299 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9300 if it already matches the current architecture from the exec file.
9301 Include arch-utils.h for gdbarch_info_init prototype.
9302 * Makefile.in (rs6000-nat.o): Update dependencies.
9303
d951901f
EZ
93042002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9305
9306 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9307 list of exported variables.
9308
7ea81414
DJ
93092002-02-24 Daniel Jacobowitz <drow@mvista.com>
9310
9311 * gdbserver/configure.srv: New file.
9312 * gdbserver/configure.in: Use configure.srv instead
9313 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9314 from it.
9315 * gdbserver/configure: Regenerated.
9316 * gdbserver/terminal.h: New file.
9317 * gdbserver/Makefile.in: Update for configure changes. Remove
9318 more unneeded include paths.
9319
080fe24b
AC
93202002-02-24 Andrew Cagney <ac131313@redhat.com>
9321
9322 From wiz at danbala:
9323 * config/sparc/tm-sp64.h: Fix grammar and typos.
9324 Fix PR gdb/287.
9325
8605d56e
AC
93262002-02-24 Andrew Cagney <ac131313@redhat.com>
9327
9328 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9329 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9330 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9331 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9332 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9333 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9334 * s390-tdep.c: Ditto.
92362027
AC
9335 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9336 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9337 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9338 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9339 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9340 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9341 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9342 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9343 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9344 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9345 Fix PR gdb/378.
7e336ba1 9346
8ed32cc0
AC
93472002-02-23 Andrew Cagney <ac131313@redhat.com>
9348
a3007b6f
AC
9349 * lin-thread.c: Delete file.
9350 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9351 to gdb_proc_service.h.
9352 * configure: Re-generate.
9353
50a9e2f1
AC
9354 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9355 * serial.c (serial_open): Delete check for "ocd".
9356 Fix PR gdb/349.
9357
8b6e7932
AC
9358 * Makefile.in (linux-thread.o): Delete target.
9359 * linux-thread.c: Delete file.
9360
d155c46b
AC
9361 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9362 renamed SH files to be consistent.
9363
8ed32cc0
AC
9364 * symtab.c (sort_search_symbols): Use xfree.
9365
0e18d038
RE
93662002-02-23 Richard Earnshaw <rearnsha@arm.com>
9367
9368 * arm-linux-tdep.c (arm_linux_init_abi): Register
9369 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9370 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9371 definition with undef, since we don't want the sysvr4 definition.
9372 (SKIP_TRAMPOLINE_CODE): Likewise.
9373
27aac7ff
AC
93742002-02-23 Andrew Cagney <ac131313@redhat.com>
9375
9376 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9377
9378 * configure.in: (AC_CHECK_FUNCS) Added test for
9379 canonicalize_file_name Regenerated.
9380 * config.in, configure: Regenerated.
9381 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9382 defined use canonicalize_file_name.
7e336ba1 9383
65a6e0ee
MC
93842002-02-23 Michael Chastain <mec@shout.net>
9385
9386 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9387
47b95330
AC
93882002-02-23 Andrew Cagney <ac131313@redhat.com>
9389
9390 * README: Remove references to cygnus.com.
9391 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9392 dot com'' form. Remove references to cygnus.com and sourceware.
9393
696f451b
AC
93942002-02-23 Andrew Cagney <ac131313@redhat.com>
9395
9396 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9397 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9398 1003.1-2001 no longer allows "head -1".
9399 * gdb/Makefile.in (version.c): Likewise.
9400 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9401 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9402 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9403
bbaca940
AC
94042002-02-23 Andrew Cagney <ac131313@redhat.com>
9405
9406 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9407 * command.h (cmd_cfunc_eq): Declare.
9408 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9409
9410 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9411 ``struct cmd_list_element *''.
9412 * cli/cli-cmds.c (is_complete_command): Update. Use
9413 cmd_cfunc_eq.
9414 * top.c (execute_command): Pass the command to
9415 is_complete_command.
9416 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9417
b8b8b047
AC
94182002-02-23 Andrew Cagney <ac131313@redhat.com>
9419
9420 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9421 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9422 architecture defines.
9423 * s390-tdep.c (s390_gdbarch_init): Likewise.
9424
19d3fc80
RE
94252002-02-23 Richard Earnshaw <rearnsha@arm.com>
9426
9427 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9428 (arm_linux_push_arguments): Likewise.
9429 (arm_linux_init_abi): Register them. Also register linux-specific
9430 call_dummy_words.
9431 (find_minsym_and_objfile): Use strcmp, not STREQ.
9432 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9433 (arm_linux_call_dummy_words): Delete declaration.
9434 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9435 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9436 declarations.
9437 (LOWEST_PC): Delete.
9438
3ab13650
PS
94392002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9440
9441 * maint.c (print_section_info): Do not prepend `0x' to filepos
9442 output, it will be handled by local_hex_string_custom.
9443
19d3fc80 94442002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9445
9446 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9447 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9448 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9449
d85a5daf
JB
94502002-02-22 Jim Blandy <jimb@redhat.com>
9451
9452 Indicate that the bcache functions don't change the strings
9453 they're passed.
9454 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9455 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9456
eeb25b8a
PM
94572002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9458
9459 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9460
6badb179
CF
94612002-02-21 Christopher Faylor <cgf@redhat.com>
9462
9463 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9464 find the complete path to a loaded DLL.
9465
e8717518
FF
94662002-02-21 Fred Fish <fnf@redhat.com>
9467
9468 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9469 that marks the end of the range of a function, enter a line number
9470 entry that has a line number of zero and a PC offset that matches
9471 the end of the function. This starts a range of PC's for which no
9472 line number information is known.
9473 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9474 PC's for which no line number info is found (line number is zero)
9475 then we didn't find any valid line information.
9476 * symtab.h: Document use of zero line number entry.
9477
9abe5450
EZ
94782002-02-21 Elena Zannoni <ezannoni@redhat.com>
9479
9480 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9481 (have_ptrace_getvrregs): Define for run time checks.
9482 (gdb_vrregset_t): New type for Altivec register handling.
9483 (fetch_register, store_register): Fetch/store altivec register
9484 when needed.
9485 (fetch_altivec_register, store_altivec_register): New functions.
9486 (supply_vrregset, fill_vrregset): New functions.
9487 (fetch_altivec_registers, store_altivec_registers): New functions.
9488 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9489 registers as well.
9490
aaa38bb5
AJ
94912002-02-21 Jiri Smid <smid@suse.cz>
9492
9493 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9494
b34db576
RE
94952002-02-21 Richard Earnshaw <rearnsha@arm.com>
9496
9497 * Makefile.in (armnbsd-nat.o): Update dependencies.
9498 * armnbsd-nat.c (supply_gregset): New function. Common code to
9499 supply the integer register set.
9500 (supply_fparegset): New function. Similar for FPA registers.
9501 (fetch_regs, fetch_fp_regs): Use them.
9502 (fetch_core_registers): Likewise.
9503 (fetch_elfcore_registers): New function.
9504 (arm_netbsd_elfcore_fns): New core-file type specification.
9505 (_initialize_arm_netbsd_nat): Register it.
9506
3e56fc4b
RE
95072002-02-21 Richard Earnshaw <rearnsha@arm.com>
9508
9509 * armnbsd-nat.c: Include gdbcore.h.
9510 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9511 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9512 'void' to declaration, to shut up ARI.
9513 (fetch_core_registers): Make static. Rewrite using supply_register.
9514 (arm_netbsd_core_fns): New core-file type specification.
9515 (_initialize_arm_netbsd_nat): New function.
9516
097f6b0b
CF
95172002-02-21 Christopher Faylor <cgf@redhat.com>
9518
9519 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9520 value.
9521
c914e0cc
CF
95222002-02-20 Christopher Faylor <cgf@redhat.com>
9523
9524 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9525 fails.
9526
385fa495
DJ
95272002-02-20 Daniel Jacobowitz <drow@mvista.com>
9528
9529 * jv-exp.y (parse_number): Change type of implicit longs
9530 to builtin_type_uint64.
9531
e5f1222d
DJ
95322002-02-20 Daniel Jacobowitz <drow@mvista.com>
9533
9534 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9535 to be an integer instead of a `union wait'.
9536
75c9abc6
DJ
95372002-02-20 Daniel Jacobowitz <drow@mvista.com>
9538
9539 * mips-linux-nat.c: Call the operating system GNU/Linux.
9540 * mips-linux-tdep.c: Likewise.
9541 * mips-tdep.c: Likewise.
9542
551792a5
DJ
95432002-02-20 Daniel Jacobowitz <drow@mvista.com>
9544
9545 Fix PR gdb/265.
9546 * jv-exp.y (parse_number): Handle 64-bit integers.
9547
ee6e2b82
DJ
95482002-02-20 Daniel Jacobowitz <drow@mvista.com>
9549
9550 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9551 AC_STDC_HEADERS to AC_HEADER_STDC.
9552 * gdbserver/configure: Regenerated.
9553
a48442a0
RE
95542002-02-20 Richard Earnshaw <rearnsha@arm.com>
9555
9556 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9557 is defined.
9558 * sparc-tdep.c (get_longjmp_target): Likewise.
9559
fe419ffc
RE
95602002-02-20 Richard Earnshaw <rearnsha@arm.com>
9561
9562 * News: Add news about ARM and Multi-arch. Mention the new target
9563 arm*-*-netbsd*.
9564
5832ed7e
JB
95652002-02-19 Jim Blandy <jimb@redhat.com>
9566
9567 * stabsread.c (error_type_complaint): Improve error message.
9568
84563040
DJ
95692002-02-19 Daniel Jacobowitz <drow@mvista.com>
9570
9571 * gdbserver/README: Update documentation.
9572 * gdbserver/configure.in: Update configury to match documentation.
9573 * gdbserver/Makefile.in: Likewise.
9574 * gdbserver/configure: Regenerated.
9575 * gdbserver/aclocal.m4: New file, generated by aclocal.
9576 * gdbserver/config.in: New file, generated by autoheader.
9577
375fd65b
RE
95782002-02-19 Richard Earnshaw <rearnsha@arm.com>
9579
9580 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9581 armnbsd-nat.c.
9582
08216dd7
RE
95832002-02-19 Richard Earnshaw <rearnsha@arm.com>
9584
9585 * arm-tdep.h (enum arm_float_model): New enum.
9586 (struct gdbarch_tdep): Add fp_model.
9587 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9588 up floating-point conversions until we know the floating-point model
9589 in use by the inferior. Don't complain about being unable to
9590 determine the ABI of the inferior when we don't have one.
9591 (arm_extract_return_value): Support different floating-point models.
9592 (arm_store_return_value): Likewise.
aaa38bb5 9593 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9594 ARM_FLOAT_SOFT.
9595 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9596
65d6d66a
PS
95972002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9598
9599 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9600 of ``current_gdbarch''.
9601
47221191
RE
96022002-02-19 Richard Earnshaw <rearnsha@arm.com>
9603
9604 * armnbsd-nat.c : ANSIfy all function declarations.
9605 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9606 (fetch_inferior_registers): Re-implement in terms of above.
9607 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9608 (store_inferior_registers): Re-implement in terms of above.
9609
fdf39c9a
RE
96102002-02-19 Richard Earnshaw <rearnsha@arm.com>
9611
aaa38bb5 9612 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9613 kernel.
9614 * arm-linux-tdep.c: Likewise.
9615 * config/arm/tm-linux.h: Likewise.
9616
93247f88
RE
96172002-02-19 Richard Earnshaw <rearnsha@arm.com>
9618
9619 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9620 * config/arm/nbsd.mt (TM_FILE): Delete.
9621 * config/arm/tm-nbsd.h: Delete.
9622
d7b486e7
RE
96232002-02-19 Richard Earnshaw <rearnsha@arm.com>
9624
9625 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9626 Initialize CALL_DUMMY_LENGTH.
9627
41d39a95
RE
96282002-02-19 Richard Earnshaw <rearnsha@arm.com>
9629
9630 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9631 function.
9632 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9633 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9634 defines one thing and that is incorrect for this port.
9635 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9636
e1195560
PM
96372002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9638
9639 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9640
c1748f97
PM
96412002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9642
9643 * win32-nat.c (display_selector): New function. Displays information
9644 about the information returned by GetThreadSelectorEntry API function.
9645 (display_selectors): New function. Displays the infomation of
9646 the selector given as argument, or of CS, DS ans FS selectors
9647 if no argument is given.
9648 ( _initialize_inftarg): Add "w32" as info prefix command.
9649 Add "info w32 selector" as command calling display_selectors.
9650
e41e6bbf
PM
96512002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9652
9653 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9654 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9655 if not defined.
9656
0d3a9f48
RE
96572002-02-18 Richard Earnshaw <rearnsha@arm.com>
9658
9659 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9660
3fb4b924
RE
96612002-02-18 Richard Earnshaw <rearnsha@arm.com>
9662
9663 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9664 (arm_fix_call_dummy): Call it.
9665 (arm_call_dummy_breakpoint_offset): Delete.
9666 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9667 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9668
7f55af32
AC
96692002-02-18 Andrew Cagney <ac131313@redhat.com>
9670
9671 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9672 Default to func_frame_chain_valid.
9673 * gdbarch.h, gdbarch.c: Re-generate.
9674 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9675
05f13b9c
EZ
96762002-02-18 Elena Zannoni <ezannoni@redhat.com>
9677
9678 * ppc-linux-nat.c: Update copyright.
9679 (fetch_register, store_register): Add tid parameter, don't compute
9680 tid here.
9681 (fetch_ppc_registers, store_ppc_registers): Add tid
9682 parameter. Pass it along to callees.
9683 (fetch_inferior_registers, store_inferior_registers): Compute tid
9684 here, and pass it to calleed functions.
9685 (fill_gregset, supply_fpregset): Clean up formatting.
9686
d7afb4c9
RE
96872002-02-18 Richard Earnshaw <rearnsha@arm.com>
9688
9689 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9690 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9691
9df628e0
RE
96922002-02-18 Richard Earnshaw <rearnsha@arm.com>
9693
9694 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9695 * gdbarch.c gdbarch.h: Regenerate.
9696 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9697 function.
9698 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9699 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9700 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9701
9702 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9703 * arm-tdep.c (arm_get_longjmp_target): New function.
9704 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9705 this to a positive value register arm_get_longjmp_target as the
9706 longjmp handler.
9707 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9708 (arm_linux_init_abi): Set up longjmp description in tdep.
9709 * armnbsd-nat.c (get_longjmp_target): Delete.
9710 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9711 description in tdep.
9712 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9713 (get_longjmp_target): Delete declaration.
9714 (GET_LONGJMP_TARGET): Delete.
9715 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9716 (GET_LONGJMP_TARGET): Delete.
9717
57bc8964
KB
97182002-02-17 Kevin Buettner <kevinb@redhat.com>
9719
9720 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9721 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9722 of ``current_gdbarch''.
9723
83d31a92
TT
97242002-02-17 Tom Tromey <tromey@redhat.com>
9725
9726 * cli/cli-cmds.c (compare_strings): New function.
9727 (complete_command): Only print each unique item once.
9728 * completer.h (complete_line): Declare.
9729 * completer.c (complete_line): New function.
9730 (line_completion_function): Use it.
9731
17ef5d92
AC
97322002-02-16 Andrew Cagney <ac131313@redhat.com>
9733
9734 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9735 * gdbarch.h, gdbarch.c: Re-generate.
9736
491b8946
DJ
97372002-02-16 Daniel Jacobowitz <drow@mvista.com>
9738
9739 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9740
97412002-02-16 Daniel Jacobowitz <drow@mvista.com>
9742
9743 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9744 * valops.c (value_arg_coerce): Don't take the address of a reference
9745 to convert an argument to a reference.
9746
dfe7f3ac
CF
97472002-02-15 Christopher Faylor <cgf@redhat.com>
9748
9749 * win32-nat.c (get_image_name): New function.
9750 (handle_load_dll): Use get_image_name function.
9751 (get_child_debug_event): Avoid registering debug events until possibly
9752 execed process is started.
9753 (child_create_inferior): Allow invocation via shell so that command
9754 line redirection, etc. works ok.
9755 (_initialize_inftarg): Add new command: "set shell" to control whether
9756 a shell is used to start a process.
9757
1d33e73a
DJ
97582002-02-15 Daniel Jacobowitz <drow@mvista.com>
9759
9760 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9761 instead of find_register_by_number.
9762 (cannot_store_register): Likewise.
9763
48cd0caa
PM
97642002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9765
aaa38bb5 9766 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9767 fprintf_unfiltered (gdb_stderr, ...).
9768
8656e7d8
DJ
97692002-02-15 Daniel Jacobowitz <drow@mvista.com>
9770
9771 * gdbserver/gdbserver.1: Document --attach.
9772
66e810cd
RE
97732002-02-15 Richard Earnshaw <rearnsha@arm.com>
9774
9775 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9776 descriptions.
9777 * arm-tdep.c (arm_default_arm_le_breakpoint)
9778 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9779 (arm_default_thumb_be_breakpoint): New. Initialize them from
9780 traditional breakpoint defines.
9781 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9782 (arm_gdbarch_init): Initialize new breakpoint variables.
9783 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9784 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9785 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9786 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9787 code out to ...
9788 (arm_netbsd_init_abi_common): ... here; new function.
9789 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9790 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9791 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9792 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9793
97e03143
RE
97942002-02-15 Richard Earnshaw <rearnsha@arm.com>
9795
9796 * arm-tdep.h (enum arm_abi): New enum.
9797 (struct gdbarch_tdep): New structure.
9798 (LOWEST_PC): Provide a default.
9799 (arm_gdbarch_register_os_abi): Declare new function.
9800 * arm-tdep.c (arm_abi_names): New array.
9801 (process_note_abi_tag_sections): New function.
9802 (get_elfosabi): New function.
9803 (arm_gdbarch_register_os_abi): New function.
9804 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9805 support for that ABI has been built in, then call the appropriate
9806 configuration routine. Use gdbarch_num_regs() to get the number
9807 of registers.
9808 (arm_dump_tdep): New function.
9809 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9810 place-holder functions.
9811 (_initialize_arm_tdep): Register them.
9812 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9813
9814 * armnbsd-tdep.c: New file.
9815 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9816 * config/arm/nbsd.mt (TDEPFILES): Add it.
9817 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9818
9819 * armnbsd-nat.c: Include regcache.h.
9820 * Makefile.in (armnbsd-nat.o): Update dependency list.
9821
9822 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9823
ad68be46
DJ
98242002-02-14 Daniel Jacobowitz <drow@mvista.com>
9825
9826 * gdbserver/Makefile.in: Fix typos in target rules.
9827
003d6d1d
DJ
98282002-02-14 Daniel Jacobowitz <drow@mvista.com>
9829
aaa38bb5 9830 Fix part of PR gdb/267.
003d6d1d
DJ
9831 * linespec.c (find_methods): Handle constructors specially for now.
9832
6b230f1b
CV
98332002-02-14 Corinna Vinschen <vinschen@redhat.com>
9834
9835 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9836 handling.
9837 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9838 standard_coerce_float_to_double().
9839
1ea98d12
CF
98402002-02-14 Christopher Faylor <cgf@redhat.com>
9841
9842 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9843 GDBINIT_FILENAME.
9844
dd47e6fd
EZ
98452002-02-14 Elena Zannoni <ezannoni@redhat.com>
9846
9847 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9848 find_variant_by_name, because it confuses the multiarch
9849 framework. Return NULL if there isn't an architecture with the
9850 user supplied name, instead of forcing a different one without
9851 recording the change with the multiarch machinery.
9852 (find_variant_by_name): Delete.
9853
d7e39b9e
PS
98542002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9855
9856 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9857 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9858
76e42a4f
MH
98592002-02-13 Martin M. Hunt <hunt@redhat.com>
9860
aaa38bb5 9861 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9862 print_frame_info_listing_hook, set current_source_symtab.
9863
0a30fbc4
DJ
98642002-02-14 Daniel Jacobowitz <drow@mvista.com>
9865
9866 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9867 and remove unused $(INCLUDE_DIR).
9868 Add regcache.c to OBS.
9869 Add generated register protocol files to clean target.
9870 Update dependencies for new objects, obsolete old target code.
9871
9872 * gdbserver/linux-low.c: Remove all platform-specific code to
9873 new files. Remove various dead code. Update to use regcache
9874 functionality.
9875 * gdbserver/remote-utils.c (fromhex): Add return statement
9876 to quiet warning.
9877 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9878 constant.
9879 (input_interrupt): Add integer parameter to match prototype
9880 of a signal handler.
9881 (outreg): Use register_data ().
9882 (prepare_resume_reply): Use gdbserver_expedite_regs.
9883 * gdbserver/server.c (main): Dynamically allocate own_buf because
9884 PBUFSIZ is no longer constant. Use registers_to_string () and
9885 registers_from_string ().
9886 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9887 for error (), fatal (), and warning (). Update definition of
9888 PBUFSIZ to use regcache functionality. Add include guard.
9889 * gdbserver/utils.c (fatal): Add missing ``const''.
9890 (warning): New function.
9891
9892 * regformats/regdat.sh: Include "regcache.h" in generated files.
9893 Provide init_registers () function.
9894 * regformats/regdef.h: Add prototype for set_register_cache ().
9895 Add include guard.
9896
9897 * gdbserver/linux-arm-low.c: New file.
9898 * gdbserver/linux-i386-low.c: New file.
9899 * gdbserver/linux-ia64-low.c: New file.
9900 * gdbserver/linux-m68k-low.c: New file.
9901 * gdbserver/linux-mips-low.c: New file.
9902 * gdbserver/linux-ppc-low.c: New file.
9903 * gdbserver/linux-sh-low.c: New file.
9904
9905 * gdbserver/regcache.c: New file.
9906 * gdbserver/regcache.h: New file.
9907
9908 * gdbserver/low-linux.c: Removed obsolete file.
9909
4cc841d0
DJ
99102002-02-14 Daniel Jacobowitz <drow@mvista.com>
9911
9912 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9913 * config/i386/linux.mt: Likewise.
9914 * config/ia64/linux.mt: Likewise.
9915 * config/m68k/linux.mh: Likewise.
9916 * config/powerpc/linux.mh: Likewise.
9917 * config/mips/linux.mt: Likewise.
9918
9919 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9920
9921 * config/i386/i386lynx.mh: Mark gdbserver variables
9922 as (currently) obsolete for this target.
9923 * config/i386/nbsd.mt: Likewise.
9924 * config/i386/nbsdelf.mt: Likewise.
9925 * config/m32r/m32r.mt: Likewise.
9926 * config/m68k/m68klynx.mh: Likewise.
9927 * config/m68k/nbsd.mt: Likewise.
9928 * config/m68k/sun3os4.mh: Likewise.
9929 * config/mips/vr5000.mt: Likewise.
9930 * config/ns32k/nbsd.mt: Likewise.
9931 * config/pa/hppabsd.mh: Likewise.
9932 * config/pa/hppaosf.mh: Likewise.
9933 * config/powerpc/nbsd.mt: Likewise.
9934 * config/rs6000/rs6000lynx.mh: Likewise.
9935 * config/s390/s390.mt: Likewise.
9936 * config/s390/s390x.mt: Likewise.
9937 * config/sparc/sparclynx.mh: Likewise.
9938 * config/sparc/sun4os4.mh: Likewise.
9939 * config/i386/x86-64linux.mt: Likewise.
9940 * config/sparc/linux.mh: Likewise.
9941
a85f51e7
DJ
99422002-02-14 Daniel Jacobowitz <drow@mvista.com>
9943
9944 * configure.tgt: Configure gdbserver only for known working
9945 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9946 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9947 SUBDIRS if it is configured. Update comment for ${nativefile}.
9948 * configure: Regenerated.
9949
65554fef
MS
99502002-02-13 Michael Snyder <msnyder@redhat.com>
9951
670a52db
MS
9952 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9953
6dbdc4a3
MS
9954 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9955 (default_gcore_mach): Just return 0, work around a problem in bfd.
9956 (default_gcore_target): OK to return NULL if exec_bfd is null.
9957 (make_mem_sec): Use a cast, avoid a warning.
9958
9959 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 9960 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
9961 sizeof (host pointer) != sizeof (target pointer)).
9962 (procfs_make_note_section): Avoid overflow in psargs string.
9963
aaa38bb5 9964 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
9965 implementation return an error.
9966
99672002-02-13 Rodney Brown <rbrown64@csc.com.au>
9968
9969 * procfs.c (procfs_make_note_section): Provide a default definition
9970 (for alpha-dec-osf4.0f). Fix typos.
9971
1e4d76e7
EZ
99722002-02-13 Elena Zannoni <ezannoni@redhat.com>
9973
9974 * linux-proc.c: Add include of regcache.h.
9975 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9976
b6d1a1d5
AC
99772002-02-13 Andrew Cagney <ac131313@redhat.com>
9978
9979 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
9980 * memattr.c (create_mem_region): Disallow useless empty region.
9981 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 9982 non-overlapping.
b6d1a1d5 9983
6c6ea35e
MC
99842002-02-13 Michael Chastain <mec@shout.net>
9985
9986 * defs.h: Kill CONST_PTR.
9987 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9988 * c-lang.c (c_builtin_types): Likewise.
9989 * ch-lang.c (ch_builtin_types): Likewise.
9990 * f-lang.c (f_builtin_types): Likewise.
9991 * language.c (unknown_builtin_types): Likewise.
9992 * m2-lang.c (m2_builtin_types): Likewise.
9993 * p-lang.c (pascal_builtin_types): Likewise.
9994 * scm-lang.c (c_builtin_types): Likewise.
9995
3e0b0f48
KS
99962002-02-13 Keith Seitz <keiths@redhat.com>
9997
9998 * arm-tdep.h (arm_get_next_pc): Add declaration.
9999
67255d04
RE
100002002-02-13 Richard Earnshaw <rearnsha@arm.com>
10001
10002 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10003 with other related struct-returning functions.
10004 (arm_extract_struct_value_address): New function.
10005 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10006 initialize float_format, double_format and long_double_format as
10007 appropriate to the endianness of the target.
10008 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10009 (arm_use_struct_convention): Delete declaration.
10010 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10011
079777f6
KS
100122002-02-13 Keith Seitz <keiths@redhat.com>
10013
10014 * defs.h (core_addr_to_string_nz): New function.
10015
34588f23
MK
100162002-02-13 Mark Kettenis <kettenis@gnu.org>
10017
10018 Apply missing bits of 2002-01-15 patch.
10019 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10020 (fill_fpregset): Use i387_fill_fsave.
10021
49b563f9
KS
100222002-02-12 Keith Seitz <keiths@redhat.com>
10023
49b563f9
KS
10024 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10025 (core_addr_to_string_nz): New function.
10026
aeb98c60
RE
100272002-02-11 Richard Earnshaw <rearnsha@arm.com>
10028
10029 * arm-linux-nat.c: Really include arm-tdep.h.
10030 * config/arm/tm-linux.h (struct type, struct value): Declare.
10031
65554fef
MS
100322002-02-11 Michael Snyder <msnyder@redhat.com>
10033
10034 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10035 (gcore section): Ifdef for Solaris and Unixware only.
10036 (procfs_do_thread_registers): Unixware needs one lwpstatus
10037 per thread (not one prstatus or pstatus).
10038 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10039 not over all gdb threads. For unixware, call elfcore_write_pstatus
10040 once before iterating over threads.
10041
34e8f22d
RE
100422002-02-11 Richard Earnshaw <rearnsha@arm.com>
10043
10044 * arm-tdep.h: New file.
10045 * arm-tdep.c: Include arm-tdep.h.
10046 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10047 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10048 (arm_print_float_info, arm_register_type, convert_to_extended)
10049 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10050 (arm_extract_return_value, arm_register_name): Make static.
10051 (arm_software_single_step): Similarly. Fix types in declaration.
10052 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10053 (arm_store_return_value, arm_store_struct_return): New functions.
10054 (arm_gdbarch_init): Register the above functions. Also register
10055 call_dummy_start_offset, sizeof_call_dummy_words,
10056 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10057 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 10058 max_register_virtual_size, register_size. Set up
34e8f22d
RE
10059 prologue_cache.saved_regs here, rather than ...
10060 (_initialize_arm_tdep): ... here.
10061 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10062 declarations.
10063 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10064 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10065 (arm_print_float_info, arm_register_type, convert_to_extended)
10066 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10067 (arm_extract_return_value, arm_register_name): Delete declarations.
10068 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10069 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10070 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10071 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10072 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10073 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10074 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10075 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10076 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10077 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10078 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10079 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10080 interface.
10081 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10082 * remote-rdi.c remote-rdp.c: Likewise.
10083 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10084 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10085 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10086 definition.
10087
10088 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10089 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10090 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10091 from non-ARM_ prefixed definitions.
10092 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10093 all uses of above.
10094 * remote-rdi.c remote-rdp.c: Likewise.
10095 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10096
148754e5
RE
100972002-02-11 Richard Earnshaw <rearnsha@arm.com>
10098
10099 * arm-tdep.c (arm_frameless_function_invocation)
10100 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10101 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10102 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10103 (arm_pop_frame, arm_get_next_pc): Make static.
10104 (arm_gdbarch_init): Register above in gdbarch structure.
10105 (arm_read_fp): Renamed from arm_target_read_fp.
10106 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10107 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10108 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10109 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10110 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10111 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10112 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
10113 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10114 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10115 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10116 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 10117
434d2d4f
DJ
101182002-02-10 Daniel Jacobowitz <drow@mvista.com>
10119
10120 * symtab.c (compare_search_syms): New function.
10121 (sort_search_symbols): New function.
10122 (search_symbols): Sort symbols after searching rather than
10123 before.
10124
55241689
AC
101252002-02-10 Andrew Cagney <ac131313@redhat.com>
10126
10127 * NEWS: Linux -> GNU/Linux.
10128
028c194b
AC
101292002-02-10 Andrew Cagney <ac131313@redhat.com>
10130
10131 * gdbarch.sh: For for level one methods, disallow a definition
10132 when partially multi-arched. Add comments explaining rationale.
10133 * gdbarch.h: Re-generate.
10134
6acf50cd
AC
101352002-02-10 Andrew Cagney <ac131313@redhat.com>
10136
10137 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10138 multi-arch partial.
aaa38bb5 10139
50248794
AC
101402002-02-10 Andrew Cagney <ac131313@redhat.com>
10141
10142 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10143 field. Use diff -u.
10144 * gdbarch.c: Re-generate.
10145
c30e0066
AC
101462002-02-10 Andrew Cagney <ac131313@redhat.com>
10147
9b56c5f3 10148 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
10149 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10150 partial.
10151
6e6d6484
AC
101522002-02-10 Andrew Cagney <ac131313@redhat.com>
10153
10154 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10155 multi-arch partial.
10156 (PUSH_ARGUMENTS): Switch to using predefault.
10157 * gdbarch.c: Regenerate.
10158
c203844d
AC
101592002-02-10 Andrew Cagney <ac131313@redhat.com>
10160
10161 * valops.c (PUSH_ARGUMENTS): Delete definition.
10162 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10163 partial. Default to default_push_arguments.
10164 * gdbarch.h, gdbarch.c: Regenerate.
10165
b5a2688f
AC
101662002-02-09 Andrew Cagney <ac131313@redhat.com>
10167
10168 * defs.h (throw_exception): Rename return_to_top_level. Update
10169 comments.
10170 * utils.c (error_stream, internal_verror, quit): Ditto.
10171 * top.c (throw_exception, catcher): Ditto.
10172 * sparclet-rom.c (sparclet_load): Ditto.
10173 * remote.c (interrupt_query, minitelnet): Ditto.
10174 * remote-sds.c (interrupt_query): Ditto.
10175 * remote-mips.c (mips_error, mips_kill): Ditto.
10176 * ocd.c (interrupt_query): Ditto.
10177 * monitor.c (monitor_interrupt_query): Ditto.
10178 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10179 * target.h: Update comment.
aaa38bb5 10180
b5a2688f 10181 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 10182
2fa5c1e0
AC
101832002-02-09 Andrew Cagney <ac131313@redhat.com>
10184
10185 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10186 default_double_format.
10187 * gdbarch.h, gdbarch.c: Re-generate.
10188 * findvar.c (floatformat_unknown): Delete variable definition.
10189 * doublest.h (floatformat_unknown): Delete variable declaration.
10190
da966255
JB
101912002-02-09 Jim Blandy <jimb@redhat.com>
10192
10193 * stabsread.c (read_type): Add code to parse Sun's syntax for
10194 prototyped function types.
10195
123a4891
AC
101962002-02-09 Andrew Cagney <ac131313@redhat.com>
10197
10198 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10199 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10200
fb39c8f3
PS
102012002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10202
10203 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10204 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10205 now _initialize_xcoffsolib gets called again and overrides the
10206 commands from solib.c in a native configuration.
10207
0b87a11d
MK
102082002-02-09 Mark Kettenis <kettenis@gnu.org>
10209
10210 * doublest.c (store_typed_floating): Don't try to return a value.
10211 Fixes PR gdb/290.
10212
bdc2fc72
JB
102132002-02-08 Jim Blandy <jimb@redhat.com>
10214
10215 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10216 is prototyped and has no arguments, print its argument list as
10217 `(void)'.
10218
da69bbcf
CD
102192002-02-08 Chris Demetriou <cgd@broadcom.com>
10220
10221 * MAINTAINERS (write-after-approval): Add myself.
10222 (paper-trail): I've escaped!
aaa38bb5 10223
b69571f5
CF
102242002-02-08 Christopher Faylor <cgf@redhat.com>
10225
10226 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10227 changes.
10228 (_initialize_check_for_gdb_ini): Ditto.
10229
f6871398
MH
102302002-02-08 Martin M. Hunt <hunt@redhat.com>
10231
10232 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10233 xaprintf -> xasprintf.
10234
4e52d31c
PM
102352002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10236
10237 * win32-nat.c: Remove use of printf and sprintf functions.
10238
39bbf761
RE
102392002-02-08 Richard Earnshaw <rearnsha@arm.com>
10240
10241 * arm-tdep.c (arm_frame_chain_valid): Make static.
10242 (arm_push_arguments): Likewise.
10243 (arm_gdbarch_init): New function.
10244 (_initialize_arm_tdep): Call it.
10245 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10246 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10247 (FRAME_CHAIN_VALID): Delete.
10248 (arm_frame_chain_valid): Delete declaration.
10249 (PUSH_ARGUMENTS): Delete.
10250 (arm_push_arguments): Delete declaration.
10251 (CALL_DUMMY_P): Delete.
10252
9c9532c9
CV
102532002-02-08 Andrew Cagney <ac131313@redhat.com>
10254 Corinna Vinschen <vinschen@redhat.com>
10255
10256 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10257 on builtin float types.
10258
4e8f7a8b
DJ
102592002-02-08 Daniel Jacobowitz <drow@mvista.com>
10260
10261 * utils.c: Include <curses.h> before "bfd.h".
10262 * tui/tui-hooks.c: Likewise.
10263 * tui/tui.c: Likewise.
10264 * tui/tuiCommand.c: Likewise.
10265 * tui/tuiData.c: Likewise.
10266 * tui/tuiDataWin.c: Likewise.
10267 * tui/tuiDisassem.c: Likewise.
10268 * tui/tuiGeneralWin.c: Likewise.
10269 * tui/tuiIO.c: Likewise.
10270 * tui/tuiLayout.c: Likewise.
10271 * tui/tuiRegs.c: Likewise.
10272 * tui/tuiSource.c: Likewise.
10273 * tui/tuiSourceWin.c: Likewise.
10274 * tui/tuiStack.c: Likewise.
10275 * tui/tuiWin.c: Likewise.
10276
cd4bffcf
EZ
102772002-02-07 Elena Zannoni <ezannoni@redhat.com>
10278
10279 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10280 to include space for pseudoregs as well. Update loops accordingly.
10281 (sh_fp_frame_init_saved_regs): Ditto.
10282 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10283
26806ce2
AC
102842002-02-07 Andrew Cagney <ac131313@redhat.com>
10285
10286 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10287 Add Richard Earnshaw to Arm maintainers.
10288
97fdab62
AC
102892002-02-07 Andrew Cagney <ac131313@redhat.com>
10290
a6b98203
AC
10291 * defs.h (warning_begin): Delete declaration.
10292
97fdab62
AC
10293 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10294 Delete macro.
10295
78b29b40
MS
102962002-02-07 Michael Snyder <msnyder@redhat.com>
10297
aaa38bb5 10298 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
10299 Logic bug, remove misplaced else.
10300
d8849953
KD
103012002-02-07 Klee Dienes <klee@apple.com>
10302
10303 * fork-inferior.c (fork_inferior): Add '!' to the list of
10304 characters that need to be quoted when building a string for the
10305 shell. Quote '!' specifically with a backslash, since CSH chokes
10306 when trying to evaluate "str!str".
aaa38bb5 10307
095778a0
NC
103082002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10309
10310 * rdi-share/host.h: Only provide a typedef for bool if it is not
10311 defined.
10312
1900040c
MS
103132002-02-04 Michael Snyder <msnyder@redhat.com>
10314
10315 * breakpoint.h (enum bptype): Add new overlay event bp type.
10316 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 10317
1900040c
MS
10318 * breakpoint.c (create_internal_breakpoint): New function.
10319 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10320 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10321 (create_thread_event_breakpoint): Ditto.
10322 (create_solib_event_breakpoint): Ditto.
10323 (create_overlay_event_breakpoint): New function.
10324 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10325 (update_breakpoints_after_exec): Delete and re-initialize
10326 overlay event breakpoints after an exec. Add FIXME comment
10327 about longjmp breakpoint.
10328 (print_it_typical): Ignore overlay event breakpoints.
10329 (print_one_breakpoint): Ditto.
10330 (mention): Ditto.
10331 (bpstat_what): Do not stop for overlay event breakpoints.
10332 (delete_breakpoint): Don't delete overlay event breakpoints.
10333 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10334 (breakpoint_re_set): Re-create overlay event breakpoint.
10335
10336 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10337 (overlay_manual_command): Disable overlay breakpoints.
10338 (overlay_off_command): Disable overlay breakpoints.
10339
082fc60d
RE
103402002-02-06 Richard Earnshaw <rearnsha@arm.com>
10341
10342 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10343 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10344 to here from config/tm-arm.h.
10345 (coff_sym_is_thumb): Make static.
10346 (arm_elf_make_msymbol_special): New function.
10347 (arm_coff_make_msymbol_special): New function.
10348 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10349 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10350 (coff_sym_is_thumb): Delete declaration.
10351 (arm_elf_make_msymbol_special): Declare.
10352 (arm_coff_make_msymbol_special): Declare.
10353 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10354 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10355
039c5766
RE
103562002-02-06 Richard Earnshaw <rearnsha@arm.com>
10357
10358 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10359
103602002-02-06 Richard Earnshaw <rearnsha@arm.com>
10361
10362 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10363 * gdbarch.c gdbarch.h: Regenerate.
10364 * arch-utils.c (default_print_float_info): New function.
10365 * arch-utils.h (default_print_float_info): Prototype it.
10366 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10367 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10368 (PRINT_FLOAT_INFO): Document it.
10369
10370 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10371 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10372 (PRINT_FLOAT_INFO): Define.
10373
58fa08f0
PM
103742002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10375
aaa38bb5 10376 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10377 Add typecast to sprintf argument to suppress a warning.
10378
7393af7c
PM
103792002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10380
58fa08f0 10381 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10382 to allow easier handling of pass state.
10383 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10384 that gives exception name and address.
10385 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10386 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10387 exceptions added.
aaa38bb5
AJ
10388 (child_continue): Correctly report continue_status.
10389 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10390 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10391 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10392 the exception should be passed to debuggee or not.
10393
6af4589c
MS
103942002-02-05 Michael Snyder <msnyder@redhat.com>
10395
10396 * regcache.c (fetch_register): Call target_fetch_register
10397 only if we don't call FETCH_PSEUDO_REGISTER.
10398 (store_register): Call target_store_register only if we
10399 don't call STORE_PSEUDO_REGISTER.
10400
a2cf933a
EZ
104012002-02-05 Elena Zannoni <ezannoni@redhat.com>
10402
10403 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10404 ELF_MAKE_MSYMBOL_SPECIAL.
10405 * gdbarch.c, gdbarch.h: Regenerate.
10406 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10407 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10408 * elfread.c (elf_symtab_read): Compile use of
10409 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10410 multiarched.
10411 * coffread.c (coff_symtab_read): Ditto, for
10412 COFF_MAKE_MSYMBOL_SPECIAL.
10413
6bb7be43
JB
104142002-02-05 Jim Blandy <jimb@redhat.com>
10415
10416 * solib-svr4.c (svr4_truncate_ptr): New function.
10417 (svr4_relocate_section_addresses): Do the address arithmetic with
10418 the appropriate truncation for target addresses, even when
10419 CORE_ADDR is larger than a target address.
10420
e18651ec
DJ
104212002-02-05 Daniel Jacobowitz <drow@mvista.com>
10422
10423 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10424 to (int *).
10425
6b2725be
DJ
104262002-02-05 Daniel Jacobowitz <drow@mvista.com>
10427
10428 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10429 code.
10430
fca9e603
DJ
104312002-02-05 Daniel Jacobowitz <drow@mvista.com>
10432
10433 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10434
6c537a52
DJ
104352002-02-05 Daniel Jacobowitz <drow@mvista.com>
10436
10437 * gdbserver/linux-low.c: Remove unused include files.
10438
d844cde6
DJ
104392002-02-05 Daniel Jacobowitz <drow@mvista.com>
10440
10441 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10442 (read_inferior_memory): Use it.
10443 (write_inferior_memory): Likewise.
10444
d07c63e7
DJ
104452002-02-05 Daniel Jacobowitz <drow@mvista.com>
10446
10447 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10448 grubbing through sys_errlist.
10449
da6d8c04
DJ
104502002-02-05 Daniel Jacobowitz <drow@mvista.com>
10451
10452 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10453
5b421780
PM
104542002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10455 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10456
9f60d481
AC
104572002-02-04 Andrew Cagney <ac131313@redhat.com>
10458
10459 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10460 (do_sfunc, set_cmd_sfunc): New functions.
10461
10462 * command.h (struct cmd_list_element): Add field func.
10463 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10464 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10465 * cli/cli-decode.h: Ditto.
10466
10467 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10468 (help_all, help_cmd_list): Ditto.
10469 (find_cmd, complete_on_cmdlist): Ditto.
10470 * top.c (execute_command): Ditto.
10471
10472 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10473 function.sfunc.
10474
10475 * infcmd.c (notice_args_read): Fix function signature.
10476
10477 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10478 * cli/cli-decode.c (add_set_cmd): Ditto.
10479 * utils.c (initialize_utils): Ditto.
10480 * maint.c (_initialize_maint_cmds): Ditto.
10481 * infrun.c (_initialize_infrun): Ditto.
10482 * demangle.c (_initialize_demangler): Ditto.
10483 * remote.c (add_packet_config_cmd): Ditto.
10484 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10485 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10486 * proc-api.c (_initialize_proc_api): Ditto.
10487 * kod.c (_initialize_kod): Ditto.
10488 * valprint.c (_initialize_valprint): Ditto.
10489 * top.c (init_main): Ditto.
10490 * infcmd.c (_initialize_infcmd): Ditto.
10491 * corefile.c (_initialize_core): Ditto.
10492 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10493 * arch-utils.c (initialize_current_architecture): Ditto.
10494 (_initialize_gdbarch_utils): Ditto.
10495 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10496
10497 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10498 * wince.c (_initialize_inftarg): Ditto.
10499 * symfile.c (_initialize_symfile): Ditto.
10500 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10501 * language.c (_initialize_language): Ditto.
10502 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10503
f9ba0717
MS
105042002-02-04 Michael Snyder <msnyder@redhat.com>
10505
10506 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10507
0c74b2a7
DJ
105082002-02-04 Daniel Jacobowitz <drow@mvista.com>
10509
10510 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10511 Add rules for building the register data files.
10512
c638789f
DJ
105132002-02-04 Daniel Jacobowitz <drow@mvista.com>
10514
10515 * regformats/regdat.sh: Add braces to the definition of
10516 expedite_regs_${arch}.
10517
db253027
DJ
105182002-02-04 Daniel Jacobowitz <drow@mvista.com>
10519
10520 * regformats/regdef.h (struct reg): Add comment describing the
10521 requirements for offset and size fields.
10522
206be19c
AS
105232002-02-04 Andreas Schwab <schwab@suse.de>
10524
10525 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10526 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10527
181c1381
RE
105282002-02-04 Richard Earnshaw <rearnsha@arm.com>
10529
10530 * gdbarch.sh (copyright): Update years in generated header.
10531 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10532 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10533 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10534 * dbxread.c: Likewise.
10535 * dwarfread.c: Likewise.
10536 * elfread.c: Likewise.
10537 * somread.c: Likewise.
10538
10539 * arm-tdep.c (arm_smash_text_address): New function.
10540 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10541
fa4ba8da
PM
105422002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10543
10544 Add support for hardware watchpoints on win32 native.
aaa38bb5 10545 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10546 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10547 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10548 of debug registers.
10549 (debug_registers_changed): New variable. Reflects when debug registers
10550 are changed and need to be written to inferior.
aaa38bb5 10551 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10552 was set, used when new threads are created.
10553 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10554 i386-nat code.
10555 (thread_rec): Set dr array if id is the thread of current_event .
10556 (child_continue, child_resume): Change the debug registers for all
10557 threads if debug_registers_changed.
10558 (child_add_thread): Change the debug registers if debug_registers_used.
10559 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10560 Link nm.h to new nm-cygwin.h file.
10561 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10562 of hardware registers.
10563
a73c86fb
AC
105642002-02-03 Andrew Cagney <ac131313@redhat.com>
10565
10566 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10567 Restore behavour broken by 2002-01-20 Andrew Cagney
10568 <ac131313@redhat.com> IEEE_FLOAT removal.
10569
acf5ed49
DJ
105702002-02-03 Daniel Jacobowitz <drow@mvista.com>
10571
10572 * c-valprint.c (c_val_print): Pass a proper valaddr to
10573 cp_print_class_method.
10574 * valops.c (search_struct_method): If there is only one method
10575 and args is NULL, return that method.
10576
493d28d5
DJ
105772002-02-03 Daniel Jacobowitz <drow@mvista.com>
10578
10579 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10580 accessing tag_name directly.
10581
7495dfdb
DJ
105822002-02-03 Daniel Jacobowitz <drow@mvista.com>
10583
10584 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10585 of accessing tag_name directly.
10586
dd6bda65
DJ
105872002-02-03 Daniel Jacobowitz <drow@mvista.com>
10588
10589 PR gdb/280
10590 * gdbtypes.c (replace_type): New function.
10591 * gdbtypes.h (replace_type): Add prototype.
10592 * stabsread.c (read_type): Use replace_type.
10593
88fe217c
RE
105942002-02-03 Richard Earnshaw <rearnsha@arm.com>
10595
10596 * Makefile.in (memattr.o): Add missing dependencies rule.
10597
e5d66720
PS
105982002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10599
10600 * breakpoint.c (break_at_finish_command): Really export.
10601 (break_at_finish_at_depth_command): Ditto.
10602 (tbreak_at_finish_command): Ditto.
10603 * hppa-tdep.c: Include completer.h.
10604 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10605 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10606
fffee0be
AC
106072002-02-01 Andrew Cagney <ac131313@redhat.com>
10608
10609 * utils.c (do_write): New function.
10610 (error_stream): Rewrite combining the code from error_begin and
10611 verror.
10612 (verror): Rewrite using error_stream.
10613 (error_begin): Delete function.
10614
255e7dbf
AC
106152002-02-01 Andrew Cagney <ac131313@redhat.com>
10616
10617 * utils.c (error_begin): Make static.
10618 * defs.h (error_begin): Delete declaration.
10619
10620 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10621 (decode_line_1): Use cplusplus_error instead of error_begin,
10622 cplusplus_hint and return_to_top_level.
10623 * coffread.c (coff_symfile_read): Use error instead of error_begin
10624 and return_to_top_level.
10625 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10626
ddfe3c15
AC
106272002-02-01 Andrew Cagney <ac131313@redhat.com>
10628
10629 * language.h (type_error, range_error): Make string parameter
10630 constant.
10631 * language.c (warning_pre_print): Delete extern declaration.
10632 * dwarfread.c (warning_pre_print): Ditto.
10633 * language.c (type_error, range_error): Rewrite to use verror and
10634 vwarning instead of warning_begin.
10635
03ac34d5
MS
106362002-02-01 Michael Snyder <msnyder@redhat.com>
10637
261c4ca2
MS
10638 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10639 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10640
e00d1dc8
AC
106412002-02-01 Andrew Cagney <ac131313@redhat.com>
10642
10643 * command.h (NO_FUNCTION): Delete macro.
10644 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10645 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10646 * tracepoint.c (_initialize_tracepoint): Ditto.
10647 * cli/cli-decode.c (add_set_cmd): Ditto.
10648 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10649
76b79d6e
DJ
106502002-02-01 Daniel Jacobowitz <drow@mvista.com>
10651
10652 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10653 Update ``this'' pointer when calling virtual functions.
10654
799f9e91
MS
106552002-02-01 Michael Snyder <msnyder@redhat.com>
10656
c7bd442c 10657 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10658 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10659
3cf384d4
DJ
106602002-02-01 Daniel Jacobowitz <drow@mvista.com>
10661
10662 * regformats/reg-arm.dat: New file.
10663 * regformats/reg-i386.dat: New file.
10664 * regformats/reg-ia64.dat: New file.
10665 * regformats/reg-m68k.dat: New file.
10666 * regformats/reg-mips.dat: New file.
10667 * regformats/reg-ppc.dat: New file.
10668 * regformats/reg-sh.dat: New file.
10669 * regformats/regdef.h: New file.
10670 * regformats/regdat.sh: New file.
10671
0defa245
RE
106722002-02-01 Richard Earnshaw <reanrsha@arm.com>
10673
10674 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10675 (arm_frame_args_address, arm_frame_locals_address): New functions.
10676 (arm_frame_num_args): New function.
10677 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10678 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10679 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10680
405f26e6
MS
106812002-01-31 Michael Snyder <msnyder@redhat.com>
10682
502fd408
MS
10683 * breakpoint.c (break_at_finish_command): Export.
10684 (break_at_finish_at_depth_command): Export.
10685 (tbreak_at_finish_command): Export.
d6020d45 10686 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 10687 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 10688 "txbreak" commands, which are HPPA specific.
502fd408 10689
7d35e135
MS
10690 * printcmd.c (disassemble_command): Remove an ancient
10691 artifact of an old merge.
10692
aaa38bb5 10693 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10694 Define enum constant values for overlay mode.
10695 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10696 (overlay_is_mapped, overlay_auto_command,
10697 overlay_manual_command): Ditto.
d874f1e2 10698
aaa38bb5
AJ
10699 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10700 breakpoint_here_p, breakpoint_inserted_here_p,
10701 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10702 describe_other_breakpoints, check_duplicates, clear_command):
10703 Coding standard fixes.
10704
8add0441 10705 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10706 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10707 code: check bfd SEC_READONLY flag for section.
10708
e351066e
AC
107092002-01-31 Andrew Cagney <ac131313@redhat.com>
10710
7d35e135 10711 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10712
8a48e967
DJ
107132002-01-30 Daniel Jacobowitz <drow@mvista.com>
10714
10715 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10716 data symbols, since we search based on textlow and texthigh.
10717 (find_pc_sect_symtab): Likewise.
10718
f5a96129
AC
107192002-01-30 Andrew Cagney <ac131313@redhat.com>
10720
10721 * defs.h (vwarning): Declare.
f5a96129
AC
10722 * utils.c (vwarning): New function.
10723 (warning): Call vwarning.
10724 (warning_begin): Delete function.
10725
10726 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10727 the warning message.
10728 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10729 warning_begin.
10730
cefd4ef5
MS
107312002-01-30 Michael Snyder <msnyder@redhat.com>
10732
1a703748
MS
10733 * NEWS: Mention "set trust-readonly-sections" command.
10734 Mention generate-core-file command.
cefd4ef5 10735
3a11626d
MS
107362002-01-15 Michael Snyder <msnyder@redhat.com>
10737
10738 * target.c: New command, "set trust-readonly-sections on".
10739 (do_xfer_memory): Honor the suggestion to trust readonly sections
10740 by reading them from the object file instead of from the target.
10741 (initialize_targets): Register command "set trust-readonly-sections".
10742
d1c7e53b
AC
107432002-01-29 Andrew Cagney <ac131313@redhat.com>
10744
10745 * parse.c (target_map_name_to_register): Simplify, search regs and
10746 pseudo-regs using a single loop.
10747
e2c9a72c
AC
107482002-01-30 Andrew Cagney <ac131313@redhat.com>
10749
10750 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10751
69824b4e
MK
107522002-01-15 Rodney Brown <rbrown64@csc.com.au>
10753
10754 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10755 * config/i386/i386v42mp.mh: Add i387-nat.o .
10756 * i386v4-nat.c: Include i387-nat.h.
10757 (supply_fpregset): Use i387_supply_fsave.
10758 (fill_fpregset): Use i387_fill_fsave.
10759
6eb69eab
RE
107602002-01-30 Richard Earnshaw <rearnsha@arm.com>
10761
10762 * arm-tdep.c (arm_call_dummy_words): Define.
10763 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10764 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10765 (CALL_DUMMY_WORDS): Define.
10766 (arm_call_dummy_words): Declare.
10767 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10768 (arm_linux_call_dummy_words): Declare.
10769
9852326a
AS
107702002-01-30 Andreas Schwab <schwab@suse.de>
10771
10772 * m68klinux-nat.c: Fix last change to use regcache_collect
10773 instead of referencing registers[] directly.
10774
977a3030
AC
107752002-01-29 Andrew Cagney <ac131313@redhat.com>
10776
10777 * parse.c (target_map_name_to_register): Delete code wrapped in
10778 #ifdef REGISTER_NAME_ALIAS_HOOK.
10779
2076c72b
MS
107802002-01-28 Michael Snyder <msnyder@redhat.com>
10781
10782 * regcache.c (legacy_read_register_gen): Need to be able to
10783 read pseudo-register as well as real register.
10784 (legacy_write_register_gen): Ditto.
10785
8fcc723b
AC
107862002-01-28 Andrew Cagney <ac131313@redhat.com>
10787
10788 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10789 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10790 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10791 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10792 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10793 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10794 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10795 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10796 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10797 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10798 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10799 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10800 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10801 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10802 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10803 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10804 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10805 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10806 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10807 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10808
afe64c1a
AC
108092002-01-28 Andrew Cagney <ac131313@redhat.com>
10810
10811 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10812 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10813 (initialize_current_architecture): Update target_byte_order using
10814 information from BFD.
aaa38bb5 10815 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10816 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10817
75bc7ddf
AC
108182002-01-28 Andrew Cagney <ac131313@redhat.com>
10819
10820 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10821 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10822
10823 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10824 #ifdef INVALID_FLOAT.
10825 * infcmd.c (do_registers_info): Ditto.
10826 * values.c (unpack_double): Ditto. Add comment.
10827
10828 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10829 already commented out.
10830
0280a90a
AS
108312002-01-26 Andreas Schwab <schwab@suse.de>
10832
10833 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10834 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10835 registers and add support for PTRACE_GETREGS.
10836
7072a954
AC
108372002-01-24 Andrew Cagney <ac131313@redhat.com>
10838
10839 GDB 5.1.1 released from 5.1 branch.
10840 * NEWS: Add 5.1.1 news.
10841 * README: Sync with 5.1 branch.
10842
86f902e0
FF
108432002-01-23 Fred Fish <fnf@redhat.com>
10844
10845 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10846 stabstring on initial malloc. Reallocing will copy it for us,
10847 if necessary.
10848
8af51c36
EZ
108492002-01-23 Elena Zannoni <ezannoni@redhat.com>
10850
aaa38bb5 10851 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
10852 (HFILES_NO_SRCDIR): Remove hpread.h.
10853 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10854 (hpread.o): Update dependencies.
10855 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10856
10857 * hp-psymtab-read.c: Remove file.
10858 * hp-symtab-read.c: Remove file.
10859 * hpread.h: Remove file.
10860
10861 * hpread.c: Merge all contents of hp-psymtab-read.c,
10862 hp-symtab-read.c and hpread.h into this file, as it was prior to
10863 January 1999.
10864
10865 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10866 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10867 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10868 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10869
dc5cfeb6
EZ
108702002-01-23 Elena Zannoni <ezannoni@redhat.com>
10871
10872 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10873 fill_gregset): Call gdbarch_tdep() just once, assign result to
10874 variable and use that, instead of calling the function several
10875 times.
10876
ea87b71b
AO
108772002-01-24 Alexandre Oliva <aoliva@redhat.com>
10878
10879 * configure.host: Accept sparcv9 as alias for sparc64.
10880 * configure.tgt: Likewise.
10881
13fc0c2f
KB
108822002-01-22 Kevin Buettner <kevinb@redhat.com>
10883
10884 * solib-aix5.c (build_so_list_from_mapfile)
10885 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10886 arguments is not reversed.
10887 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10888 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10889
7bd872fe
EZ
108902002-01-22 Elena Zannoni <ezannoni@redhat.com>
10891
10892 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10893 modified version of obsolete sh_fetch_pseudo_register.
10894 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10895 (sh4_register_read): New function.
10896 (sh_pseudo_register_write): New function. Renamed and modified
10897 version of obsolete sh_store_pseudo_register.
10898 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10899 (sh4_register_write): New function.
10900 (sh_gdbarch_init): Remove setting of gdbarch function
10901 fetch_pseudo_register and store_pseudo_register. Remove setting of
10902 register_convert_to_raw, register_convert_to_virtual,
10903 register_convertible.
10904 (sh_sh4_register_convertible): Delete. No longer needed. All is
10905 taken care by architecture specific functions
10906 register_read/register_write.
10907 (sh_sh4_register_convert_to_virtual): Make static.
10908 (sh_sh4_register_convert_to_raw): Ditto.
10909
069e84fd
AC
109102002-01-22 Andrew Cagney <ac131313@redhat.com>
10911
10912 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10913 (floatformat_is_nan, floatformat_mantissa): Ditto.
10914
10915 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10916 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10917 builtin_type_ieee_double_little,
10918 builtin_type_ieee_double_littlebyte_bigword,
10919 builtin_type_m68881_ext, builtin_type_i960_ext,
10920 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10921 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10922 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10923 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10924
211a4f69
CV
109252002-01-22 Corinna Vinschen <vinschen@redhat.com>
10926
10927 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10928 parameter. Set frameless flag if it exists and depended of
10929 whether the scanned function is frameless or not.
10930 (xstormy16_skip_prologue): If function is frameless, return
10931 result of xstormy16_scan_prologue().
10932 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10933 call.
10934
f81353e4
EZ
109352002-01-21 Elena Zannoni <ezannoni@redhat.com>
10936
10937 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10938 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10939 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10940 sh_sh4_register_byte, sh_sh4_register_raw_size,
10941 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10942 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10943 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10944 sh_store_pseudo_register, sh_do_pseudo_register): Call
10945 gdbarch_tdep() just once, assign result to variable and use that,
10946 instead of calling the function several times.
10947
63c73a17
MK
109482002-01-20 Mark Kettenis <kettenis@gnu.org>
10949
10950 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10951 macros instead of LAST_FPU_CTRL_REGNUM.
10952 (store_register): Likewise.
10953
39ad761d
JB
109542002-01-21 Jim Blandy <jimb@redhat.com>
10955
10956 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10957 is up-to-date before running the program, not just when a program
10958 exits.
10959
3d74b771
FF
109602002-01-21 Fred Fish <fnf@redhat.com>
10961
10962 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10963 when we have found all instructions we are looking for.
10964
966fbf70
RE
109652002-01-21 Richard Earnshaw <rearnsha@arm.com>
10966
10967 * arm-tdep.c (arm_register_name): New function.
10968 (arm_registers_names): Make static.
10969 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10970 (arm_register_name): Declare.
10971 (REGISTER_NAME): Use it.
10972
c3b4394c
RE
109732002-01-21 Richard Earnshaw <rearnsha@arm.com>
10974 Kevin Buettner <kevinb@redhat.com>
10975
10976 Convert arm targets to new FRAME interface.
10977 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10978 (arm_frame_find_save_regs): Delete.
10979 (arm_frame_init_saved_regs): New.
10980 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10981 Allocate extra_info as required. Convert all uses of fsr.regs
10982 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10983 to use extra_info.
10984 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10985 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10986 (check_prologue_cache, save_prologue_cache): Likewise.
10987 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10988 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10989 (FRAME_FIND_SAVED_REGS): Delete.
10990 (arm_frame_find_saved_regs): Delete prototype.
10991 (arm_frame_init_saved_regs): New prototype.
10992 (FRAME_INIT_SAVED_REGS): Define.
10993
61d99182
AC
109942002-01-20 Andrew Cagney <ac131313@redhat.com>
10995
10996 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10997
6aaea291
AC
109982002-01-20 Andrew Cagney <ac131313@redhat.com>
10999
11000 From Jeff Law <law@redhat.com>:
11001 * infttrace.c: Include <sys/pstat.h>.
11002 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11003 exec file if the ttrace equivalent fails.
11004
15f698d2
AC
110052002-01-20 Andrew Cagney <ac131313@redhat.com>
11006
11007 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11008 (closeLogFile): Ditto.
11009
f86ddd7c
MC
110102002-01-20 Michael Chastain <mec@shout.net>
11011
11012 * top.c (print_gdb_version): Bump copyright year to 2002.
11013
904507ce
AC
110142002-01-20 Andrew Cagney <ac131313@redhat.com>
11015
11016 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11017 Zannoni and Eli Zaretskii.
11018
d7f0b9ce
DJ
110192002-01-20 Daniel Jacobowitz <drow@mvista.com>
11020
11021 * buildsym.c: Update copyright years.
11022 * c-typeprint.c: Likewise.
11023 * dwarf2read.c: Likewise.
11024 * f-typeprint.c: Likewise.
11025 * gdbtypes.c: Likewise.
11026 * gdbtypes.h: Likewise.
11027 * hp-symtab-read.c: Likewise.
11028 * hpread.c: Likewise.
11029 * mdebugread.c: Likewise.
11030 * p-typeprint.c: Likewise.
11031
3fd3d7d2
AC
110322002-01-20 Andrew Cagney <ac131313@redhat.com>
11033
11034 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11035 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11036 byte-order selectable.
11037 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11038 * arch-utils.c: Ditto.
11039 (set_endian): Ditto.
11040 (set_endian_from_file): Ditto.
11041 * gdbserver/low-sim.c (create_inferior): Ditto.
11042 * gdbarch.sh: Ditto.
11043 * gdbarch.h: Re-generate.
aaa38bb5
AJ
11044 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11045 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11046 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11047 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11048 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11049 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11050 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
11051 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11052 macro definition.
11053 * config/mips/tm-wince.h: Remove #undef of macro
11054 TARGET_BYTE_ORDER_SELECTABLE.
11055 * config/sh/tm-wince.h: Ditto.
11056
b02dede2
DJ
110572002-01-20 Daniel Jacobowitz <drow@mvista.com>
11058
11059 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11060 member function fields. Add accessor macro
11061 TYPE_FN_FIELD_ARTIFICIAL.
11062 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11063 * c-typeprint.c (c_type_print_base): Skip artificial member
11064 functions.
11065
c3643761
DJ
110662002-01-20 Daniel Jacobowitz <drow@mvista.com>
11067
11068 * f-typeprint.c: Delete unused function f_type_print_args.
11069 * p-typeprint.c: Delete unused function pascal_type_print_args.
11070
8176bb6d
DJ
110712002-01-20 Daniel Jacobowitz <drow@mvista.com>
11072
11073 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11074 comment. Add ``artificial'' to ``union field_location''.
11075
11076 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11077
11078 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11079 * mdebugread.c (parse_symbol): Likewise.
11080 * stabsread.c (define_symbol): Likewise.
11081 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11082 initializing TYPE_FIELD_BITPOS to n (obsolete).
11083 (hpread_doc_function_type): Likewise.
11084 * hpread.c (hpread_function_type): Likewise.
11085
7fd60527
AC
110862002-01-20 Andrew Cagney <ac131313@redhat.com>
11087
11088 * configure.in (host_makefile_frag): Only require a host makefile
11089 fragment when a native build.
11090 * configure: Re-generate.
11091
c2f05ac9
AC
110922002-01-20 Andrew Cagney <ac131313@redhat.com>
11093
11094 * doublest.h (floatformat_from_type): Declare.
11095 * doublest.c (floatformat_from_type): New function.
11096 (convert_typed_floating): Use.
11097
11098 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11099 call to function floatformat_from_type.
11100
11101 * gdbarch.sh (IEEE_FLOAT): Delete.
11102 * gdbarch.h, gdbarch.c: Re-generate.
11103 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11104 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11105 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11106 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11107 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11108 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11109 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11110 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11111 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11112 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11113 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
11114 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11115
11116 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11117 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11118 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11119 * sh-tdep.c (sh_gdbarch_init): Ditto.
11120 * mips-tdep.c (mips_gdbarch_init): Ditto.
11121 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11122 * cris-tdep.c (cris_gdbarch_init): Ditto.
11123
abf22e64
AJ
111242002-01-20 Jiri Smid <smid@suse.cz>
11125
11126 * configure.host, configure.tgt: Support x86-64.
11127 * NEWS: Note new target x86-64.
11128
b7c4cbf8
AJ
11129 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11130 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11131 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11132 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11133 x86-64-linux-nat.o): Fix dependencies.
11134
82600034
AC
111352002-01-19 Andrew Cagney <ac131313@redhat.com>
11136
11137 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11138 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11139 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11140 * config/sparc/xm-sun4os4.h: Delete file.
11141 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 11142
bbe5c628
AC
111432002-01-19 Andrew Cagney <ac131313@redhat.com>
11144
11145 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11146 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11147 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11148 * config/i386/i386lynx.mh (XM_FILE): Delete.
11149 * config/rs6000/xm-rs6000ly.h: Delete file.
11150 * config/sparc/xm-sparclynx.h: Delete file.
11151 * config/m68k/xm-m68klynx.h: Delete file.
11152 * config/i386/xm-i386lynx.h: Delete file.
11153 * config/xm-lynx.h: Delete file.
11154 * config/djgpp/fnchange.lst: Update.
11155
f8453e34
JT
111562002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11157
11158 * alpha-tdep.c (alpha_register_byte): New function.
11159 (alpha_register_raw_size): Ditto.
11160 (alpha_register_virtual_size): Ditto.
11161 (alpha_skip_prologue_internal): Renamed from
11162 alpha_skip_prologue.
11163 (alpha_skip_prologue): New version that calls
11164 alpha_skip_prologue_internal.
11165 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11166 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11167 second argument from alpha_skip_prologue.
11168 (REGISTER_BYTE): Use alpha_register_byte.
11169 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11170 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11171 (FRAMELESS_FUNCTION_INVOCATION): Use
11172 generic_frameless_function_invocation_not.
11173 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11174 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11175
52d9e613
AC
111762002-01-19 Andrew Cagney <ac131313@redhat.com>
11177
11178 * config/mips/xm-news-mips.h: Delete file.
11179 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11180
11181 * config/m88k/xm-m88k.h: Delete file.
11182 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11183 * config/m88k/xm-delta88v4.h: Ditto.
11184 * config/m88k/xm-delta88.h: Ditto.
11185
11186 * config/alpha/xm-fbsd.h: Delete file.
11187 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11188
11189 * config/sparc/xm-sparc.h: Delete file.
11190 * Makefile.in (xm-sun4os4.h): Delete dependency.
11191 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11192 * config/sparc/xm-sun4os4.h: Ditto.
11193 * config/sparc/xm-linux.h: Ditto.
11194
11195 * config/i386/xm-windows.h: Delete file.
11196
2d1b2124
AC
111972002-01-19 Andrew Cagney <ac131313@redhat.com>
11198
11199 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11200 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11201
ee1f65f0
JT
112022002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11203
11204 * alpha-tdep.c (alpha_call_dummy_words): New.
11205 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11206 (CALL_DUMMY_P): Define.
11207 (CALL_DUMMY_WORDS): Define.
11208 (SIZEOF_CALL_DUMMY_WORDS): Define.
11209
98081e55
PB
112102002-01-19 Per Bothner <per@bothner.com>
11211
11212 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11213 isn't NULL, which can happen with some gcj-3.x-produced code.
11214
0d056799
JT
112152002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11216
11217 * alpha-tdep.c (alpha_register_virtual_type): New function.
11218 (alpha_init_frame_pc_first): Ditto.
11219 (alpha_fix_call_dummy): Ditto.
11220 (alpha_store_struct_return): Ditto.
11221 (alpha_extract_struct_value_address): Ditto.
11222 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11223 alpha_register_virtual_type.
11224 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11225 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11226 alpha_extract_struct_value_address.
11227 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11228 (INIT_FRAME_PC): Use init_frame_pc_noop.
11229 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11230
4604bcad
MK
112312002-01-19 Mark Kettenis <kettenis@gnu.org>
11232
11233 * i386gnu-nat.c: Include "i386-tdep.h".
11234 (fetch_fpregs): Simplify code dealing with uninitialized floating
11235 point states such that it doesn't require FP7_REGNUM.
11236
140f9984
JT
112372002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11238
abf22e64
AJ
11239 * alpha-tdep.c (frame_extra_info): New.
11240 (alpha_find_saved_regs): Make static. Use
140f9984
JT
11241 frame->extra_info.
11242 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
11243 (alpha_frame_saved_pc): Use frame->extra_info.
11244 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11245 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
11246 (init_extra_frame_info): Rename to...
11247 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 11248 (alpha_print_extra_frame_info): New function.
140f9984
JT
11249 (alpha_frame_locals_address): Ditto.
11250 (alpha_frame_args_address): Ditto.
abf22e64 11251 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
11252 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11253 alpha_frame_args_address.
abf22e64 11254 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 11255 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
11256 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11257 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
11258 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11259 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11260
d734c450
JT
112612002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11262
11263 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11264 (alpha_cannot_fetch_register): Ditto.
11265 (alpha_cannot_store_register): Ditto.
11266 (alpha_register_convertible): Ditto.
11267 (alpha_use_struct_convention): Ditto.
11268 * config/alpha/tm-alpha.h: Update copyright years.
11269 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11270 (INNER_THAN): Use core_addr_lessthan.
11271 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11272 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11273 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11274 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11275 (FRAME_CHAIN): Remove unnecessary cast.
11276
b4ceaee6
AC
112772002-01-18 Andrew Cagney <ac131313@redhat.com>
11278
11279 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11280 obsolete.
11281
0a65a603
AC
112822002-01-18 Andrew Cagney <ac131313@redhat.com>
11283
11284 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11285 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11286 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11287 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11288 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11289 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11290 * x86-64-linux-nat.c: Ditto.
11291
636a6dfc
JT
112922002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11293
abf22e64 11294 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
11295 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11296 (REGISTER_NAME): Define.
11297
acceddb6
JT
112982002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11299
11300 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11301
ec32e4be
JT
113022002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11303
11304 * alpha-tdep.c: Update copyright years.
11305 (alpha_next_pc): New function.
11306 (alpha_software_single_step): Ditto.
11307 * config/alpha/tm-alpha.h: Add prototype for
11308 alpha_software_single_step.
11309
e771a871
JT
113102002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11311
11312 * alphabsd-nat.c: Update copyright years.
11313 (fill_gregset): Use regcache_collect.
11314 (fill_fpregset): Likewise.
11315 (fetch_inferior_registers): Only fetch integer registers
11316 if requested to do so.
11317 (store_inferior_registers): Only store integer registers
11318 if requested to do so.
11319
7708fa01
AC
113202002-01-17 Andrew Cagney <ac131313@redhat.com>
11321
11322 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11323 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11324 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11325 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11326 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11327 * config/arm/linux.mh (XDEPFILES): Delete.
11328 * config/arm/nbsd.mh (XDEPFILES): Delete.
11329 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11330 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11331 * config/i386/i386m3.mh (XDEPFILES): Delete.
11332 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11333 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11334 * config/i386/fbsd.mh (XDEPFILES): Delete.
11335 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11336 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11337 * config/i386/i386v4.mh (XDEPFILES): Delete.
11338 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11339 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11340 * config/i386/i386aix.mh (XDEPFILES): Delete.
11341 * config/i386/go32.mh (XDEPFILES): Delete.
11342 * config/i386/cygwin.mh (XDEPFILES): Delete.
11343 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11344 * config/i386/i386mach.mh (XDEPFILES): Delete.
11345 * config/i386/i386v32.mh (XDEPFILES): Delete.
11346 * config/i386/linux.mh (XDEPFILES): Delete.
11347 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11348 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11349 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11350 * config/i386/i386sco.mh (XDEPFILES): Delete.
11351 * config/i386/i386v.mh (XDEPFILES): Delete.
11352 * config/i386/nbsd.mh (XDEPFILES): Delete.
11353 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11354 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11355 * config/i386/symmetry.mh (XDEPFILES): Delete.
11356 * config/i386/obsd.mh (XDEPFILES): Delete.
11357 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11358 * config/ia64/linux.mh (XDEPFILES): Delete.
11359 * config/ia64/aix.mh (XDEPFILES): Delete.
11360 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11361 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11362 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11363 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11364 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11365 * config/m68k/linux.mh (XDEPFILES): Delete.
11366 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11367 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11368 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11369 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11370 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11371 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11372 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11373 * config/m88k/delta88.mh (XDEPFILES): Delete.
11374 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11375 * config/m88k/m88k.mh (XDEPFILES): Delete.
11376 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11377 * config/mips/linux.mh (XDEPFILES): Delete.
11378 * config/mips/irix6.mh (XDEPFILES): Delete.
11379 * config/mips/irix5.mh (XDEPFILES): Delete.
11380 * config/mips/irix4.mh (XDEPFILES): Delete.
11381 * config/mips/irix3.mh (XDEPFILES): Delete.
11382 * config/mips/decstation.mh (XDEPFILES): Delete.
11383 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11384 (NATDEPFILES): Move core-aout.o to here.
11385 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11386 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11387 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11388 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11389 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11390 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11391 * config/pa/hpux11.mh (XDEPFILES): Delete.
11392 * config/powerpc/aix.mh (XDEPFILES): Delete.
11393 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11394 * config/powerpc/linux.mh (XDEPFILES): Delete.
11395 * config/romp/rtbsd.mh: Rename XDEPFILES.
11396 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11397 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11398 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11399 * config/s390/s390.mh (XDEPFILES): Delete.
11400 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11401 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11402 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11403 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11404 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11405 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11406 * config/sparc/linux.mh (XDEPFILES): Delete.
11407 * config/vax/vaxult.mh (XDEPFILES): Delete.
11408 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11409 * Makefile.in (DEPFILES): Remove XDEPFILES.
11410
375fc983
AC
114112002-01-17 Andrew Cagney <ac131313@redhat.com>
11412
11413 * utils.c (internal_verror): Fix comments, default is yes not no.
11414 Update queries to match. Default to quit and dump core.
11415
8926118c
AC
114162002-01-17 Andrew Cagney <ac131313@redhat.com>
11417
11418 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11419 copyright.
11420 * defs.h, event-top.c, gdbcmd.h: Ditto.
11421 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11422 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11423 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11424 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11425 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11426 * mi/mi-main.c:Ditto.
11427
11428 * stack.c, symfile.c: Update copyright.
11429
45b7b345
DJ
114302002-01-17 Daniel Jacobowitz <drow@mvista.com>
11431
db728ff7
DJ
11432 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11433 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11434 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11435 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11436
db728ff7
DJ
114372002-01-17 Daniel Jacobowitz <drow@mvista.com>
11438
11439 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11440 * gdbserver/low-lynx.c (myattach): Likewise.
11441 * gdbserver/low-nbsd.c (myattach): Likewise.
11442 * gdbserver/low-sim.c (myattach): Likewise.
11443 * gdbserver/low-sparc.c (myattach): Likewise.
11444 * gdbserver/low-sun3.c (myattach): Likewise.
11445
11446 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11447
db728ff7 11448 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11449 (main): Handle "--attach".
11450
8de3c354
AC
114512002-01-16 Andrew Cagney <ac131313@redhat.com>
11452
11453 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11454 maintainer.
11455
b0129042
DJ
114562002-01-15 Daniel Jacobowitz <drow@mvista.com>
11457
11458 * c-typeprint.c (is_type_conversion_operator): Add additional
11459 check for non-conversion operators.
11460
ba8679fb 114612002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11462
11463 * linux-proc.c: Add "info proc" command, a la procfs.c.
11464 (read_mapping): New function, abstract and re-use code.
11465 (linux_find_memory_regions): Use new func read_mapping.
11466 (linux_info_proc_cmd): New function, implement "info proc".
11467 (_initialize_linux_proc): Add new command "info proc".
11468
e4f9b4d5
MS
114692002-01-15 Michael Snyder <msnyder@redhat.com>
11470
11471 * symfile.c (generic_load): Use bfd_map_over_sections method
11472 instead of manipulating bfd structure members directly.
11473 (add_section_size_callback): New function, bfd sections callback
11474 used by generic_load.
11475 (load_sections_callback): New function, bfd sections callback
11476 used by generic_load.
11477
08cf96df
EZ
114782002-01-15 Elena Zannoni <ezannoni@redhat.com>
11479
abf22e64 11480 [Based on work by Jim Blandy]
08cf96df
EZ
11481 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11482 (builtin_type_vec128): Export.
11483 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11484 types.
11485 (builtin_type_vec128): New builtin type for 128 bit vector
11486 registers.
11487 (build_gdbtypes): Initialize builtin_type_v16qi and
11488 builtin_type_v8hi. Create the vec128 register builtin type
11489 structure.
11490 (build_builtin_type_vec128): New function.
abf22e64 11491 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11492 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11493 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11494 AltiVec register to new builtin type.
11495
d7242108
DJ
114962001-01-15 Daniel Jacobowitz <drow@mvista.com>
11497
11498 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11499 to make_cv_type.
11500
4ee3352d
AC
115012002-01-14 Andrew Cagney <ac131313@redhat.com>
11502
11503 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11504 CLEAN_UP_REGISTER_VALUE.
11505 * regcache.c (supply_register): Update only call.
11506
f015b2e7
AC
115072002-01-14 Andrew Cagney <ac131313@redhat.com>
11508
11509 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11510 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11511 a29k-*-vxworks* targets as obsolete.
11512
356ae49d
MS
115132002-01-14 Michael Snyder <msnyder@redhat.com>
11514
11515 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11516 until we can resolve portability issues.
11517 * gregset.h: Remove references to fpxregs.
11518 * gcore.c (gcore_command): Initialize note_sec to NULL.
11519
ade8f45e
AC
115202002-01-13 Andrew Cagney <ac131313@redhat.com>
11521
11522 * signals.c (target_signal_to_name): Rewrite. Only use
11523 signals[].name when in bounds and non-NULL.
abf22e64 11524
89c49e7a
AC
115252002-01-13 Andrew Cagney <ac131313@redhat.com>
11526
11527 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11528 * signals.c (target_signal_to_name): Verify that SIG is within the
11529 bounds of the signals array.
11530
4daa9f9f
AC
115312002-01-13 Andrew Cagney <ac131313@redhat.com>
11532
11533 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11534
ba4bbdcb
KS
115352002-01-13 Keith Seitz <keiths@redhat.com>
11536
11537 * stack.c (print_frame_info_base): Print the frame's pc
11538 only if when print_frame_info_listing_hook is not defined.
11539
575bbeb6
KS
115402002-01-13 Keith Seitz <keiths@redhat.com>
11541
11542 * varobj.c (varobj_set_value): Make sure that there were no
11543 errors evaluating the object before attempting to set its
11544 value.
11545 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11546 so this offset adjustment is no longer necessary.
11547 (create_child): Don't set the error flag if the child is
11548 a CPLUS_FAKE_CHILD.
11549 (value_of_child): If value_fetch_lazy fails, return NULL
11550 so that callers will be notified that an error occurred.
11551 (c_value_of_variable): Delay check of variable's validity
11552 until later. We actually want all structs and unions to have
11553 the value "{...}".
11554 Do not return "???" for variables which could not be evaluated.
11555 This error condition must be returned to the caller so that it
11556 can get the error condition from gdb.
11557 (cplus_name_of_child): Adjust index for vptr before figuring
11558 out the name of the child.
11559 (cplus_value_of_child): If a child's (real) parent is not valid,
11560 don't even bother trying to give a value for it. Just return
11561 an error. Change all instances in this function.
11562 (cplus_type_of_child): If our parent is one of the "fake"
11563 parents, we need to get at the type of the real parent, and
11564 derive the child's true type using this information.
11565
b76898ab
AC
115662002-01-13 Andrew Cagney <ac131313@redhat.com>
11567
11568 From 2002-01-09 John Marshall <johnm@falch.net>:
11569 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11570 sources.redhat.com, and tweak some related URLs which had
11571 suffered from linkrot.
11572
b6649e88
AC
115732002-01-13 Andrew Cagney <ac131313@redhat.com>
11574
11575 From Jeff law:
11576 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11577 structures passed in registers.
11578
82cc5033
EZ
115792002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11580
11581 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11582 white space which prevented compilation. Reported by DSK
11583 <dsk@student.unsw.edu.au>.
11584
ba5f2f8a
MS
115852002-01-11 Michael Snyder <msnyder@redhat.com>
11586
fbd35540
MS
11587 * symfile.c (build_section_addr_info_from_section_tab):
11588 Use bfd access method instead of manipulating bfd directly.
11589 (syms_from_objfile): Ditto.
11590 (simple_overlay_update_1): Ditto.
11591 (simple_overlay_update): Ditto.
11592 (generic_load): Ditto.
11593 (overlay_unmapped_address): FIXME comment, bfd access methods.
11594 (sections_overlap): FIXME comment, bfd access methods.
11595 (pc_in_mapped_range): FIXME comment, bfd access methods.
11596 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11597 (section_is_mapped): FIXME comment, bfd access methods.
11598 (section_is_overlay): FIXME comment, bfd access methods.
11599
ba5f2f8a
MS
11600 * symfile.c (generic_load): Whitespace and long line cleanups.
11601 Remove duplicate variable, change several local variables to
11602 more appropriate data types.
11603 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11604
17df2af6
AC
116052002-01-12 Andrew Cagney <ac131313@redhat.com>
11606
11607 From Peter Schauer:
11608 * language.c (longest_local_hex_string_custom): Use phex_nz to
11609 convert NUM to a hex string.
11610
ec920329
EZ
116112002-01-12 Elena Zannoni <ezannoni@redhat.com>
11612
11613 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11614 the function.
538a76d6 11615 Update Copyright year.
ec920329 11616
3abd2e01
AC
116172002-01-12 Andrew Cagney <ac131313@redhat.com>
11618
11619 * language.c (longest_raw_hex_string): Delete unused function.
11620
b21b22e0
PS
116212002-01-11 Petr Sorfa <petrs@caldera.com>
11622
11623 * MAINTAINERS (write-after-approval): Add myself.
11624 * dwarf2read.c (read_tag_string_type): Handling of
11625 DW_AT_byte_size.
11626 (read_tag_string_type): FORTRAN fix to prevent propagation of
11627 first string size.
11628 (set_cu_language): Handling of DW_LANG_Fortran95
11629
747fe712
RE
116302002-01-11 Richard Earnshaw <rearnsha@arm.com>
11631
11632 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11633 GETPID(inferior_ptid).
11634 (store_inferior_registers): Likewise.
11635
f1bea926
JM
116362002-01-10 Jason Merrill <jason@redhat.com>
11637
11638 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11639 Fix DW_OP_minus.
11640
ae940673
AC
116412002-01-10 Andrew Cagney <ac131313@redhat.com>
11642
11643 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11644 and bfd/elf32-sh-nbsd.c.
11645
00546b04
MS
116462002-01-10 Michael Snyder <msnyder@redhat.com>
11647
352ed7b4
MS
11648 * NEWS: Mention --pid and corefile/proc-id behavior change.
11649
c18be923
MS
11650 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11651 * gcore.c: Include cli/cli-decode.h instead of command.h.
11652
00546b04
MS
11653 * main.c (captured_main): Add new command line option "--pid".
11654 If the second command line argument (following the symbol-file)
11655 begins with a digit, try to attach to it before trying to open
11656 it as a corefile.
11657 (print_gdb_help): Document the "--pid" argument.
11658
db60ec62
EZ
116592002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11660
11661 * completer.c (command_completer): New function.
11662
11663 * completer.h <command_completer>: Add prototype.
11664
11665 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11666 completer for the "help" command.
11667
39c22d1a
JM
116682002-01-09 Jason Merrill <jason@redhat.com>
11669
11670 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11671
c564377f
MS
116722002-01-09 Michael Snyder <msnyder@redhat.com>
11673
975aec09
MS
11674 * i386-linux-nat.c (fill_fpxregset): Make global.
11675 (store_fpxregset): Ditto.
11676
db4a10fa
MS
11677 * gregset.h (gdb_fpxregset_t): Define.
11678 (supply_fpxregset): Prototype.
11679 (fill_fpxregset): Prototype.
11680
c564377f
MS
11681 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11682
c3d45d70
RE
116832002-01-09 Richard Earnshaw <rearnsha@arm.com>
11684
11685 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11686 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11687 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11688
fcc87af1
AC
116892002-01-09 Andrew Cagney <ac131313@redhat.com>
11690
11691 * MAINTAINERS: Update target maintainer rules so that any
11692 Maintainer can approve a tested patch for a maintenance-only
11693 target.
11694
dd96c05b
RE
116952002-01-09 Richard Earnshaw <rearnsha@arm.com>
11696
d4297db9 11697 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11698
d4297db9 11699 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11700 IN_SIGTRAMP.
11701
145fdc6e
MS
117022002-01-08 Michael Snyder <msnyder@redhat.com>
11703
11704 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11705 real name of the executable, rather than the /proc name.
11706
be4d1333
MS
117072002-01-03 Michael Snyder <msnyder@redhat.com>
11708
11709 Implement a "generate-core-file" command in gdb, save target state.
11710 * gcore.c: New file. Implement new command 'generate-core-file'.
11711 Save a corefile image of the current state of the inferior.
11712 * linux-proc.c: Add linux-specific code for saving corefiles.
11713 * target.h (struct target_ops): Add new target vectors for saving
11714 corefiles; to_find_memory_regions and to_make_corefile_notes.
11715 (target_find_memory_regions): New macro.
11716 (target_make_corefile_notes): New macro.
11717 * target.c (update_current_target): Inherit new target methods.
11718 (dummy_find_memory_regions): New place-holder method.
11719 (dummy_make_corefile_notes): New place-holder method.
11720 (init_dummy_target): Initialize new dummy target vectors.
11721 * exec.c (exec_set_find_memory_regions): New function.
11722 Allow the exec_ops vector for memory regions to be taken over.
11723 (exec_make_note_section): New function, target vector method.
11724 * defs.h (exec_set_find_memory_regions): Export prototype.
11725 * procfs.c (proc_find_memory_regions): New function, corefile method.
11726 (procfs_make_note_section): New function, corefile method.
11727 (init_procfs_ops): Set new target vector pointers.
11728 (find_memory_regions_callback): New function.
11729 (procfs_do_thread_registers): New function.
11730 (procfs_corefile_thread_callback): New function.
11731 * sol-thread.c (sol_find_memory_regions): New function.
11732 (sol_make_note_section): New function.
11733 (init_sol_thread_ops): Initialize new target vectors.
11734 * inftarg.c (inftarg_set_find_memory_regions): New function.
11735 Allow to_find_memory_regions vector to be taken over.
11736 (inftarg_set_make_corefile_notes): New function.
11737 Allow to_make_corefile_notes vector to be taken over.
11738 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11739 interface layer if not target_has_execution (may be a corefile).
11740 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11741 * config/sparc/sun4sol2.mh: Ditto.
11742 * config/alpha/alpha-linux.mh: Ditto.
11743 * config/arm/linux.mh: Ditto.
11744 * config/i386/x86-64linux.mh: Ditto.
11745 * config/ia64/linux.mh: Ditto.
11746 * config/m68k/linux.mh: Ditto.
11747 * config/mips/linux.mh: Ditto.
11748 * config/powerpc/linux.mh: Ditto.
11749 * config/sparc/linux.mh: Ditto.
11750
c6b92abd
MS
117512002-01-07 Michael Snyder <msnyder@redhat.com>
11752
11753 * arm-linux-nat.c: Remove references to regcache.c internal data
11754 (registers[] and register_valid[]).
11755
4b09dc8c
MS
117562002-01-07 Michael Snyder <msnyder@redhat.com>
11757
abf22e64
AJ
11758 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11759 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11760 symbol file and shlibs.
11761 * Makefile.in: Add rule for linux-proc.o.
11762 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11763 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11764 * config/arm/linux.mh: Ditto.
11765 * config/i386/linux.mh: Ditto.
11766 * config/i386/x86-64linux.mh: Ditto.
11767 * config/ia64/linux.mh: Ditto.
11768 * config/m68k/linux.mh: Ditto.
11769 * config/mips/linux.mh: Ditto.
11770 * config/powerpc/linux.mh: Ditto.
11771 * config/sparc/linux.mh: Ditto.
11772
c25b74ac
PM
117732002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11774
11775 * win32-nat.c: Add i386-tdep.h dependency.
11776
94cd915f
MS
117772002-01-07 Michael Snyder <msnyder@redhat.com>
11778
c7cccb76
MS
11779 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11780 instead of bfd_get_arch_size. Don't bail out just because
11781 there's no exec_bfd.
abf22e64 11782
34c0bd93
MS
11783 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11784 * p-valprint.c (pascal_object_print_value): Ditto.
11785 * somread.c (som_symtab_read): Ditto.
11786 * symfile.c (simple_free_overlay_region_table): Ditto.
11787 * valops.c (value_assign): Ditto.
11788
21c1c920
MS
11789 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11790 use tilde_expand and strerror for opening save-tracepoints file.
11791
5bbd998e
MS
11792 * thread-db.c (thread_db_new_objfile): Indendation fix.
11793
94cd915f
MS
11794 * infptrace.c (GDB_MAX_ALLOCA): New define.
11795 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11796 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11797 can be overridden with whatever value is appropriate to the host).
11798 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11799 alloca to allocate potentially large buffer.
11800 * rs6000-nat.c (child_xfer_memory): Ditto.
11801 * symm-nat.c (child_xfer_memory): Ditto.
11802 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11803
494e8a93
JSC
118042002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11805
11806 From Nick Clifton <nickc@redhat.com>
11807 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11808
d0e1d48e
MS
118092002-01-07 Michael Snyder <msnyder@redhat.com>
11810
abf22e64 11811 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11812 Don't use exec_bfd if it's NULL.
11813
290b2c7a
MK
118142002-01-06 Mark Kettenis <kettenis@gnu.org>
11815
abf22e64 11816 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11817
aef21287
AC
118182002-01-06 Andrew Cagney <ac131313@redhat.com>
11819
11820 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11821 * gnu-nat.c: Ditto.
11822
30efa627
AC
118232002-01-06 Andrew Cagney <ac131313@redhat.com>
11824
11825 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11826 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11827 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11828 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11829 z8k-coff have not been multi-arched. Update z8k-coff build
11830 status.
11831
9b4ff276
AC
118322002-01-06 Andrew Cagney <ac131313@redhat.com>
11833
11834 * MAINTAINERS: Mark a29k target as obsolete.
11835 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11836 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11837 comments.
11838 * NEWS: Note that a29k targets are obsolete.
11839 * a29k-tdep.c: Mark as obsolete.
11840 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11841 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11842 a29k-*-vxworks* targets as obsolete.
11843 * remote-adapt.c: Obsolete.
11844 * remote-eb.c: Obsolete.
11845 * remote-mm.c: Obsolete.
11846 * remote-udi.c: Obsolete.
11847 * config/a29k/a29k-udi.mt: Obsolete.
11848 * config/a29k/a29k.mt: Obsolete.
11849 * config/a29k/tm-a29k.h: Obsolete.
11850 * config/a29k/tm-vx29k.h: Obsolete.
11851 * config/a29k/vx29k.mt: Obsolete.
11852
a9011d31
AC
118532002-01-05 Andrew Cagney <ac131313@redhat.com>
11854
11855 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11856 with BFD_ENDIAN_BIG.
11857
9299404e
AC
118582002-01-05 Andrew Cagney <ac131313@redhat.com>
11859
11860 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11861 * configure, config.in: Re-generate.
11862 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11863 * defs.h: Do not include <endian.h>.
11864
7e89e357
JT
118652002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11866
11867 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11868 * config.in: Regenerate.
11869 * configure.in: Update copyright years.
11870 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11871 * configure: Regenerate.
11872 * i386bsd-nat.c: Update copyright years.
11873 (fill_gregset): Use regcache_collect.
11874 (fetch_inferior_registers): Only fetch integer registers
11875 if requested to do so. Add support for XMM registers
11876 using PT_GETXMMREGS.
11877 (store_inferior_registers): Only store integer registers
11878 if requested to do so. Add support for XMM registers
11879 using PT_SETXMMREGS.
11880 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11881 (store_inferior_registers): Remove.
11882 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11883 (fetch_elfcore_registers): New function.
11884 (i386nbsd_elfcore_fns): New.
11885 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11886 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11887 i386bsd-nat.o.
11888 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11889 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11890 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11891 * config/i386/tm-nbsd.h: Update copyright years.
11892 (HAVE_SSE_REGS): Define.
11893 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11894 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11895 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11896 (SIGCONTEXT_PC_OFFSET): Remove.
11897 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11898
a752853e
AC
118992002-01-05 Andrew Cagney <ac131313@redhat.com>
11900
11901 * configure.tgt: Remove powerpc-*-macos* target.
11902 * config/m68k/xm-mpw.h: Delete file.
11903 * config/xm-mpw.h: Delete file.
11904 * ser-mac.c: Delete file.
11905 * mpw-make.sed: Delete file.
11906 * mpw-config.in: Delete file.
11907 * mac-xdep.c: Delete file.
11908 * mac-gdb.r: Delete file.
11909 * mac-defs.h: Delete file.
11910 * mac-nat.c: Delete file.
11911 * config/powerpc/macos.mh: Delete file.
11912 * config/powerpc/macos.mt: Delete file.
11913 * config/powerpc/nm-macos.h: Delete file.
11914 * config/powerpc/tm-macos.h: Delete file.
11915 * source.c (openp, open_source_file): Remove obsolete code.
11916 * top.c (gdb_readline): Ditto.
11917 * utils.c (query): Ditto.
11918 * event-top.c (display_gdb_prompt): Ditto.
11919 * Makefile.in (ser-mac.o): Delete obsolete target.
11920 * NEWS: Update.
11921
d7449b42
AC
119222002-01-04 Andrew Cagney <ac131313@redhat.com>
11923
11924 * defs.h (BIG_ENDIAN): Delete macro definition.
11925 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11926 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11927 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11928 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11929 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11930 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11931 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11932 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11933 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11934 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11935 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11936 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11937 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11938 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11939 * gdbarch.c: Re-generate.
11940
356374e8
DJ
119412002-01-04 Daniel Jacobowitz <drow@mvista.com>
11942
11943 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11944 for core files.
11945
a2b8f8f8
JT
119462002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11947
11948 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11949
12466af9
AC
119502002-01-04 Andrew Cagney <ac131313@redhat.com>
11951
11952 * value.h (value_ptr): Delete typedef.
11953
3549ab40
JT
119542002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11955
11956 * i386nbsd-nat.c: Update copyright years.
11957 Include i386-tdep.h.
11958
fedbd091
EZ
119592002-01-04 Elena Zannoni <ezannoni@redhat.com>
11960
11961 * stabsread.c: Update copyright years.
11962
11963 From Debashis Mahata <debashis.mahata@wipro.com>:
11964 (read_struct_fields): Deal with Sun C compiler erroneous stab
11965 output for structs and unions.
fec8b34f 11966 Fix PR gdb/269.
fedbd091 11967
eb43544b
DJ
119682002-01-04 Daniel Jacobowitz <drow@mvista.com>
11969
11970 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11971 prototype.
11972
1514d34e
DJ
119732002-01-04 Daniel Jacobowitz <drow@mvista.com>
11974
11975 * cp-abi.c: Fix whitespace.
11976 (baseclass_offset): New wrapper function.
11977 * cp-abi.h (baseclass_offset): Add prototype.
11978 (struct cp_abi_ops): Add baseclass_offset pointer.
11979
11980 * valops.c (vb_match): Move to...
11981 * gnu-v2-abi.c (vb_match): here.
11982 * valops.c (baseclass_offset): Move to...
11983 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11984
11985 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11986
11987 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11988 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11989 * hpacc-abi.c (init_hpacc_ops): Likewise.
11990
7f8c9282
DJ
119912002-01-04 Daniel Jacobowitz <drow@mvista.com>
11992
11993 * valops.c (find_overload_match): Accept obj as a
11994 reference parameter. Update it before returning.
11995 * value.h (find_overload_match): Update prototype.
11996 * eval.c (evaluate_subexp_standard): Pass object to
11997 find_overload_match by reference.
11998
f23631e4
AC
119992002-01-03 Andrew Cagney <ac131313@redhat.com>
12000
12001 * valarith.c: Replace value_ptr with struct value pointer. Remove
12002 register attribute from value declarations.
12003 * valops.c: Ditto.
12004 * value.h: Ditto.
12005 * scm-lang.c (scm_lookup_name): Ditto.
12006
79e10fab 120072002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 12008
79e10fab
AC
12009 Abstract the functionality of iterating over mapped memory
12010 regions into a general purpose iterator function.
abf22e64 12011 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
12012 iterator for memory sections.
12013 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12014 (solib_mappings_callback): New function, callback for above.
12015 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12016 (info_mappings_callback): New function, callback for above.
12017
12018 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12019
c5ad026a
MK
120202002-01-01 Mark Kettenis <kettenis@gnu.org>
12021
d2a7c97a
MK
12022 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12023 * i386-tdep.c: Include "elf-bfd.h".
12024 (process_note_abi_tag_sections): New function.
12025 (i386_gdbarch_init): Add code to recognize various OS/ABI
12026 combinations.
12027
c5ad026a
MK
12028 * maint.c (_initialize_maint_cmds): Add missing \ in
12029 string-literal.
12030
a1a5b71e 12031For older changes see ChangeLog-2001
c906108c
SS
12032\f
12033Local Variables:
12034mode: change-log
12035left-margin: 8
12036fill-column: 74
12037version-control: never
12038End: