* gdb.asm/asm-source.exp: Add "mips*-*" pattern. Update line
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3987b9d4
EZ
12002-10-21 Elena Zannoni <ezannoni@redhat.com>
2
3 * findvar.c (read_var_value): Temporarily disable TLS code, until
4 complete TLS support is added.
5
9d774e44
EZ
62002-10-21 Jim Blandy <jimb@redhat.com>
7 Elena Zannoni <ezannoni@redhat.com>
8
9 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
10 for thread local storage locations.
11 (struct symbol): Add objfile field.
12 (SYMBOL_OBJFILE): Define.
13 * dwarf2read.c (is_thread_local): New static variable.
14 (new_symbol): If variable is in thread local fill in address class
15 and objfile appropriately.
16 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
17 stack operation.
18 * printcmd.c (address_info): Print the information for thread
19 local storage variable.
20 * findvar.c (read_var_value): In case of thread local variable,
21 defer to the target vector code to compute address.
22
bc4a16ae
EZ
232002-10-21 Elena Zannoni <ezannoni@redhat.com>
24
25 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
26 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
27
407caf07
EZ
282002-10-21 Elena Zannoni <ezannoni@redhat.com>
29
30 * symtab.h (address_class): Rename
31 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
32 * hpread.c (hpread_process_one_debug_symbol): Ditto.
33 * printcmd.c (address_info): Ditto.
34 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
35
005328e3
MK
362002-10-20 Mark Kettenis <kettenis@gnu.org>
37
afdb036a
MK
38 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
39 DBREG_DRX macro to acces debug registers.
40
ca02e098
MK
41 * Makefile.in (i386obsd-tdep.o): New target.
42
03cc47f7
MK
43 * solib-sunos.c: Include "bcache.h" and "regcache.h".
44 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
45
005328e3
MK
46 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
47 * config/i386/obsd.mt: New file.
48 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
49 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
50 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
51 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
52 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
53 * i386obsd-tdep.c: New file.
54
9c96f9f2
AF
552002-10-19 Adam Fedor <fedor@gnu.org>
56
57 * objc-exp.y (name_not_typename): Fix invalid comment.
58
ce1ed485
MK
592002-10-20 Mark Kettenis <kettenis@gnu.org>
60
61 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
62 to allocate partial syms and macro byte caches.
63
1efc7aaa
DC
642002-10-18 David Carlton <carlton@math.stanford.edu>
65
66 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
67
7e1d63ec
AF
682002-10-18 Adam Fedor <fedor@gnu.org>
69
70 * stabsread.c (find_name_end): New function.
71 (define_symbol): Use it.
72
6e8d29a9
DJ
732002-10-18 Daniel Jacobowitz <drow@mvista.com>
74
75 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
76 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
77 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
78 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
79
1efc7aaa 802002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
81
82 * symfile.h: Add opaque declaration for struct obstack.
83 Declare obsavestring to take a const char *.
84 * symfile.c (obsavestring): Make first argument a const char *.
85
1aeae86e
AF
862002-10-16 Adam Fedor <fedor@gnu.org>
87
88 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
89 names when matching breakpoints in current file.
90
8b2dbe47
KB
912002-10-16 Kevin Buettner <kevinb@redhat.com>
92
93 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
94 (read_tag_pointer_type): Add address class support.
95 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
96 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
97 New methods.
98 * gdbarch.h, gdbarch.c: Regenerate.
99 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
100 (make_type_with_address_space, recursive_type_dump): Add address
101 class support.
102 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
103 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
104 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
105
74451869
KD
1062002-10-16 Klee Dienes <kdienes@apple.com>
107
108 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
109 to get the last character of a char[] buffer, not
110 name[sizeof(vptr_name)-1].
111
ff4cb3e8
AF
1122002-10-14 Adam Fedor <fedor@gnu.org>
113
114 * symtab.h: New objc_specific struct.
115 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
116 (SYMBOL_DEMANGLED_NAME): Likewise.
117
da2cf7e0
AF
1182002-10-14 Adam Fedor <fedor@gnu.org>
119
120 * symfile.c (init_filename_language_table): Add ObjC file extension.
121
4a351cef
AF
1222002-10-14 Adam Fedor <fedor@gnu.org>
123
124 * utils.c (puts_filtered_tabular): New function.
125 (fprintf_symbol_filtered): Get ObjC demangled name.
126 * defs.h (puts_filtered_tabular): Declared.
127
9750e763
KB
1282002-10-14 Kevin Buettner <kevinb@redhat.com>
129
130 * c-lang.h (c_type_print_varspec_prefix): Delete.
131 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
132 ``need_post_space'' parameter. Adjust all callers.
133
eee771c1
DJ
1342002-10-14 Daniel Jacobowitz <drow@mvista.com>
135
136 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
137 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
138 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
139 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
140
46c82446
AF
1412002-10-13 Adam Fedor <fedor@gnu.org>
142
143 * source.c (print_source_lines): Update comments.
144
d069f99d
AF
1452002-10-13 Adam Fedor <fedor@gnu.org>
146
147 * valops.c (value_of_local): New function.
148 (value_of_this): Use it.
149 * value.h (value_of_local): Declared.
150
53c551b7
AF
1512002-10-13 Adam Fedor <fedor@gnu.org>
152
153 * parse.c: (length_of_subexp, prefixify_subexp): Handle
154 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
155
eb392fbf
AF
1562002-10-12 Adam Fedor <fedor@gnu.org>
157
158 * language.c (binop_result_type): Add language_objc to case.
159 (integral_type): Likewise.
160 (character_type): Likewise.
161 (string_type): Likewise.
162 (boolean_type): Likewise.
163 (structured_type): Likewise.
164 (binop_type_check): Likewise.
165
e2b23ee9
AF
1662002-10-11 Adam Fedor <fedor@gnu.org>
167
168 * printcmd.c (address_info): Print 'self' for ObjC.
169
b01ab485
AF
1702002-10-11 Adam Fedor <fedor@gnu.org>
171
172 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
173 OP_SELF.
174
806e6073
AF
1752002-10-11 Adam Fedor <fedor@gnu.org>
176
177 * language.h (CAST_IS_CONVERSION): Add language_objc.
178
50f85cdf
AF
1792002-10-11 Adam Fedor <fedor@gnu.org>
180
181 * defs.h (enum language): Add language_objc.
182
0d540cdf
KD
1832002-10-11 Klee Dienes <kdienes@apple.com>
184
185 * findvar.c (read_memory_typed_address): New function.
186 * gdbcore.h (read_memory_typed_address): Add prototype.
187 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
188 to read a value destined for a CORE_ADDR, not read_memory_integer.
189 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
190 (f77_get_dynamic_lowerbound): Ditto.
191
d5dc7960
MH
1922002-10-11 Martin M. Hunt <hunt@redhat.com>
193
194 * utils.c (string_to_core_addr): After turning string into
195 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
196 which will do necessary sign-extension, etc.
197
8343f86c
DJ
1982002-10-11 Daniel Jacobowitz <drow@mvista.com>
199
200 * c-exp.y (THIS): Delete token and grammar rule.
201 (yylex): Don't return THIS.
202 * cp-valprint.c (vtbl_ptr_name_old): Delete.
203 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
204 * demangle.c (cplus_markers): Update comment. Put '$'
205 first. Remove CPLUS_MARKER.
206 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
207 * jv-exp.y (THIS): Delete token and grammar rule.
208 (yylex): Don't return THIS.
209 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
210 * objc-exp.y (THIS): Delete token and grammar rule.
211 (yylex): Don't return THIS.
212 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
213 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
214 (read_member_functions): Likewise for opname.
215 (read_tilde_fields): Use is_cplus_marker.
216
217 * defs.h (CPLUS_MARKER): Don't define.
218 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
219 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
220 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
221 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
222 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
223
224 * config/i386/tm-i386v4.h: Delete file.
225 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
226 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
227 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
228 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
229 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
230 * config/i386/i386sco5.mt (TM_FILE): Likewise.
231 * config/i386/i386v4.mt (TM_FILE): Likewise.
232 * config/i386/ncr3000.mt (TM_FILE): Likewise.
233
967c0d83
MM
2342002-10-10 Marko Mlinar <markom@opencores.org>
235
236 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
237 accidentially not commited 2002-10-09
238 * gdbarch.h, gdbarch.c: Re-generate.
239
f74fa174
MM
2402002-10-09 Marko Mlinar <markom@opencores.org>
241
242 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
243 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
244 * gdbarch.h, gdbarch.c: Re-generate.
245
57349743
JB
2462002-10-08 Petr Sorfa <petrs@caldera.com>
247
248 Revised and re-submitted by John Wolfe <jlw@caldera.com>
249
250 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
251 so we can work on more than one compilation unit at a time. This
252 helps prepare GDB to handle inter-CU die references.
253 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
254 the code to be defined before struct comp_unit_head.
255 (comp_unit_head): Added new members - offset, cu_head,
256 begin_die, next and dwarf2_abbrevs.
257 (dwarf2_abbrevs): Removed single static var; now member of
258 struct comp_unit_head.
259 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
260 members.
261 (psymtab_to_symtab_1): Changed to work with the new
262 struct comp_unit_head.
263 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
264 constructs the dwarf2_abbrevs[] inside the cu_header.
265 (dwarf2_empty_abbrev_table): Now expects a ptr to a
266 dwarf2_abbrev table to clean up.
267 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
268 handling of dwarf2_abbrevs inside the cu_header.
269 (read_partial_die): Now supports the call to the new
270 dwarf2_lookup_abbrev.
271 (read_full_die): Now supports the call to the new
272 dwarf2_lookup_abbrev.
273
4092aadb
CF
2742002-10-06 Christopher Faylor <cgf@redhat.com>
275
276 * Makefile.in (install-gdbtk): Add missing continuation backslash to
277 insure that shell variables, such as "transformed_name" are propagated
278 to later shell statements in rule.
279
af0b2512
MK
2802002-10-06 Mark Kettenis <kettenis@gnu.org>
281
282 * config/i386/nm-i386sco.h: Add protection against
283 multiple-inclusion. Include "i386/nm-i386v.h".
284 (REGISTER_U_ADDR): Remove define.
285 (i386_register_u_addr): Remove prototype.
286
d6020d45
MS
2872002-10-04 Michael Snyder <msnyder@redhat.com>
288
289 * m32r-stub.c (handle_exception): Make sure exception is "trap"
290 before treating it as a single-step event.
291
7248f48e
AF
2922002-10-03 Adam Fedor <fedor@gnu.org>
293
294 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
295 (objc_demangle): Remove assignment in if statements, Replace
296 free with xfree.
297 (add_msglist): Likewise.
298 (end_msglist): Likewise.
299 (complare_selectors): Likewise.
300 (selectors_info): Likewise.
301 (compare_classes): Likewise.
302 (classes_info): Likewise.
303 (print_object_command): Likewise.
304 (find_objc_msgcall_submethod): Replace PTR with void *.
305 * objc-lang.h: Remove check for __STDC__.
306
52c6a6ac
JJ
3072002-10-03 Jeff Johnston <jjohnstn@redhat.com>
308
309 * ui-out.h (ui_out_field_fmt_int): New prototype.
310 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
311 of field width and alignment.
312 * stack.c (print_frame_info_base): When printing frame level, use
313 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
314 PR gdb/192
315
7e3cec17
JJ
3162002-10-03 Jeff Johnston <jjohnstn@redhat.com>
317
318 * MAINTAINERS: Add self to Write After Approval list.
319
a58dd373
EZ
3202002-10-02 Elena Zannoni <ezannoni@redhat.com>
321
322 * infcmd.c (interrupt_target_command_wrapper): Delete.
323 (interrupt_target_command): Make non static.
324 (nofp_registers_info): Make static.
325 * stack.c (return_command_wrapper): Delete.
326 (return_command): Make non static.
327
cee6ddeb
EZ
3282002-10-02 Elena Zannoni <ezannoni@redhat.com>
329
330 * event-top.c (gdb_setup_readline): New function. Code moved from
331 _initialize_event_loop().
332 (_initialize_event_loop): Call gdb_setup_readline().
333
c4ed33b9
AC
3342002-10-02 Andrew Cagney <ac131313@redhat.com>
335
336 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
337 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
338 * gdbarch.h, gdbarch.c: Re-generate.
339
cef4f5dd
DJ
3402002-10-02 Daniel Jacobowitz <drow@mvista.com>
341
342 Fix PR gdb/778
343 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
344 before recursing.
345 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
346 of fill_in_vptr_fieldno.
347
36dc181b 3482002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 349
36dc181b
EZ
350 * inferior.h (registers_info, stepi_command, nexti_command,
351 continue_command, interrupt_target_command): Export from infcmd.c.
352 * frame.h (args_info, selected_frame_level_changed_hook,
353 return_command): Export from stack.c.
354 * v850ice.c (stepi_command, nexti_command, continue_command): use
355 prototypes from inferior.h.
356 * tracepoint.c (registers_info, args_info, locals_info): Use
357 prototypes from frame.h and inferior.h.
358 * Makefile.in (mi-main.o): Add dependency on frame.h.
359
6f99cb26
AC
3602002-10-02 Andrew Cagney <ac131313@redhat.com>
361
da3eff49
AC
362 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
363 value in register 3 adjusted by ppc_gp0_regnum.
364
6f99cb26
AC
365 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
366
da615bee
MM
3672002-10-02 Marko Mlinar <markom@opencores.org>
368
369 * MAINTAINERS: Add myself to the Write After Approval list.
370
d154bee2
AO
3712002-10-01 Alexandre Oliva <aoliva@redhat.com>
372
62a49b2c
AO
373 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
374 of the section for the N64 ABI, fixed.
375
d154bee2
AO
376 * config/mips/tm-irix6.h: Include solib.h.
377
ed348acc
EZ
3782002-10-01 Elena Zannoni <ezannoni@redhat.com>
379
380 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
381 GNU operators.
382
da0f9dcd
AC
3832002-10-01 Andrew Cagney <ac131313@redhat.com>
384
385 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
386 and that "mi0" syntax has been removed.
387
bdf64bac
DC
3882002-09-30 David Carlton <carlton@math.stanford.edu>
389
390 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
391 * ppc-sysv-tdep.c: #include "gdb_string.h".
392 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
393 pacify GCC.
394
54c2a1e6
AC
3952002-10-01 Andrew Cagney <ac131313@redhat.com>
396
397 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
398 "vrsave"'s register number.
399
cedea778
AC
4002002-09-30 Andrew Cagney <ac131313@redhat.com>
401
402 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
403 use frame_unwind_signed_register to obtain the PC.
404 (mips_frame_chain): Handle a generic dummy frame.
405 (mips_init_extra_frame_info): When a generic dummy frame, don't
406 re-compute the frame base.
407 (mips_pop_frame): Handle generic dummy frames.
408 (mips_gdbarch_init): When generic dummy frames, set
409 use_generic_dummy_frames, push_dummy_frame to
410 generic_push_dummy_frame, pc_in_call_dummy to
411 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
412 generic_save_dummy_frame_tos.
413
68315eb8
AC
4142002-09-30 Andrew Cagney <ac131313@redhat.com>
415
416 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
417 against TOP when TOP was explictly set.
418 (generic_push_dummy_frame): Set TOP to zero.
419
3b8630c3
EZ
4202002-09-30 Elena Zannoni <ezannoni@redhat.com>
421
422 * event-loop.c (start_event_loop): Rename variable 'result' to
423 'gdb_result', to avoid conflicts with upcoming intepreters changes.
424
28ee05e9
KS
4252002-09-30 Keith Seitz <keiths@redhat.com>
426
427 * gdb-events.sh (selected_thread_changed): New event.
428 * gdb-events.c: Regenerated.
429 * gdb-events.h: Regenerated.
430
6eecb1c8
HPN
4312002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
432
433 * MAINTAINERS: Add self to Write After Approval list.
434
92df71f0
FN
4352002-09-30 Fernando Nasser <fnasser@redhat.com>
436
3b8630c3
EZ
437 * disasm.c: New file.
438 * disasm.h: New file.
92df71f0
FN
439 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
440 (compare_lines): Ditto.
441 (dump_insns): Ditto.
3b8630c3
EZ
442 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
443 argument.
92df71f0 444 (do_assembly_only): Ditto.
3b8630c3
EZ
445 (do_disassembly): Renamed to gdb_disassembly and moved to
446 disasm.c. Sdded uiout argument.
447 * Makefile.in: Add new files. Reorder SFILES list. Update
448 dependencies. Include libgdb.a later in the insight executable.
92df71f0 449
0c22854d
AC
4502002-09-29 Andrew Cagney <ac131313@redhat.com>
451
452 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
453 bfd/elf64-alpha-fbsd.c.
454
e67f2023
AC
4552002-09-29 Andrew Cagney <ac131313@redhat.com>
456
457 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
458 i386gnu-tdep.c.
459
89396210
AC
4602002-09-29 Andrew Cagney <ac131313@redhat.com>
461
462 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
463 __FUNCTION__.
464 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
465 function name.
466 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
467 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
468 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
469 (S_msg_sig_post_reply): Ditto.
470
7079c36c
CV
4712002-09-28 Corinna Vinschen <vinschen@redhat.com>
472
89396210
AC
473 * sh-tdep.c (sh_use_struct_convention): Use definition according
474 to ABI.
7079c36c
CV
475 (sh_push_arguments): Store in register with correct endianess.
476 (sh_default_store_return_value): Ditto.
477 (sh_gdbarch_init): Set sizeof long double to 8.
478
975ac915
MK
4792002-09-27 Mark Kettenis <kettenis@gnu.org>
480
481 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
482 Fix some whitespace problems.
483
9bbe19fb
DC
4842002-09-27 David Carlton <carlton@math.stanford.edu>
485
486 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
487 (mcore-tdep.o): Ditto.
488 (ns32k-tdep.o): Ditto.
489 (ns32knbsd-tdep.o): Ditto.
490 (sh3-rom.o): Ditto.
491 (vax-tdep.o): Ditto.
492 * cris-tdep.c: #include "gdb_string.h"
493 * mcore-tdep.c: Ditto.
494 * ns32k-tdep.c: Ditto.
495 * ns32knbsd-tdep.c: Ditto.
496 * sh3-rom.c: Ditto.
497 * vax-tdep.c: Ditto.
498
43b2fdc7
DC
4992002-09-27 David Carlton <carlton@math.stanford.edu>
500
501 * config/djgpp/fnchange.lst: Add entries for
502 gdb/testsuite/gdb.c++/m-static files.
503
e8cfbbd9
JW
5042002-09-27 Jim Wilson <wilson@redhat.com>
505
506 * MAINTAINERS: Add myself to the Write After Approval list.
507
43b2fdc7 5082002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
509
510 * mips-tdep.c (find_proc_desc): Initialize startaddr.
511
512
9f3b7f07
AC
5132002-09-26 Andrew Cagney <ac131313@redhat.com>
514
515 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
516 frame.
517
11269d7e
AC
5182002-09-26 Andrew Cagney <ac131313@redhat.com>
519
520 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
521 (rs6000_struct_return_address): Delete variable.
522 (rs6000_store_struct_return): Update.
523 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
524 deprecated_extract_struct_value_address.
525 (rs6000_frame_align): New function.
526 (rs6000_gdbarch_init): Set frame_align.
527
f15ab4a7
AC
5282002-09-26 Andrew Cagney <ac131313@redhat.com>
529
530 From Grace Sainsbury <graces@redhat.com>:
531 * Makefile.in (gdbtk-main.o): New target.
532 (gdb.o): New target.
533 (main_h): Define.
534 (main.o): Update dependencies.
535 (gdb$(EXEEXT)): Add gdb.o.
536 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
537 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
538 (SUBDIR_GDBTK_CLEAN): Set.
539 (install-gdbtk): Install the insight binary.
540 (uninstall-gdbtk): New target.
541 (all-gdbtk, clean-gdbtk): New rule.
542 * top.c (use_windows): Default to zero.
543 * main.c: Include "main.h".
544 (main): Delete.
545 (struct captured_main_args): Delete.
546 (gdb_main): New function.
547 * main.h: New file.
548 * gdb.c: New File.
549
e36180d7
AC
5502002-09-25 Andrew Cagney <cagney@redhat.com>
551
552 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
553 (frame_map_regnum_to_name): New function.
554 (frame_map_name_to_regnum): New function.
555 * frame.h (frame_map_name_to_regnum): Declare.
556 (frame_map_regnum_to_name): Declare.
557 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
558 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
559 * parse.c: Do not include "builtin-regs.h".
560 (target_map_name_to_register): Delete function.
561 (write_dollar_variable): Use frame_map_name_to_regnum.
562 * parser-defs.h (target_map_name_to_register): Delete declaration.
563 * expprint.c: Include "frame.h".
564 (print_subexp): Use frame_map_regnum_to_name.
565 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
566 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
567
8b69000d
AC
5682002-09-25 Andrew Cagney <ac131313@redhat.com>
569
570 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
571 wasn't saved, and the next innermost frame is a dummy, return the
572 dummy frame's link register.
573
046ca86a
JB
5742002-09-24 Jim Blandy <jimb@redhat.com>
575
576 Fix from Paul Breed:
577 * main.c (captured_main): Add a `break' after the case for 'b'.
578
94b66fa7
KS
5792002-09-24 Keith Seitz <keiths@redhat.com>
580
581 * varobj.c (c_type_of_child): Use get_target_type instead
582 of TYPE_TARGET_TYPE.
583
c214a6fd
FN
5842002-09-22 Fernando Nasser <fnasser@redhat.com>
585
53cb0458
FN
586 * source.c (get_current_or_default_source_symtab_and_line): Remove
587 function.
588 (set_default_source_symtab_and_line): New function. Attempts to
589 determine a source file to list lines from if one is not currently
590 defined.
591 (get_current_source_symtab_and_line): Initialize sal.pc and
592 sal.end fields.
593 (set_current_source_symtab_and_line): Mark argument as const.
594 * source.h: Update declarations and comments.
595 * linespec.c (decode_line_1): Replace call to removed routine above.
596 * stack.c (print_frame_info_base): Ditto.
597 * cli/cli-cmds.c (edit_command): Ditto.
598 (list_command): Ditto.
599
6002002-09-22 Fernando Nasser <fnasser@redhat.com>
601
d6020d45 602 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 603 sal.pc and sal.end fields.
c214a6fd
FN
604 (get_current_or_default_source_symtab_and_line): Ditto.
605 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
606 so we do not cause a new source symtab to be searched for (reverting an
607 unintentional change from the 2002-09-20 patch).
608 * scm-lang.c (scm_unpac): Ditto.
609
cc3b68a5
AC
6102002-09-21 Andrew Cagney <cagney@redhat.com>
611
612 * complaints.c (symfile_explanations): Remove new-line from
613 ``isolated_message''.
614 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
615 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
616
5835abe7
NC
6172002-09-20 Nick Clifton <nickc@redhat.com>
618
619 * NEWS: Announce that V850EA ISA is no longer supported.
620 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
621
a15ef5f5
DC
6222002-09-20 David Carlton <carlton@math.stanford.edu>
623
06ba1b39
DC
624 * Makefile.in (c-lang.o): Correct dependencies.
625 (utils.o): Gather dependencies.
626 (charset.o): Move.
a15ef5f5
DC
627 * c-lang.c: #include "gdb_string.h"
628
87885426
FN
6292002-09-20 Fernando Nasser <fnasser@redhat.com>
630
631 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
632 * cli/cli-cmds.c (list_command): New function. Implements the new
633 cli edit command.
634 (_init_cli_cmds): Add new command definition.
635 * gdb.1: Document edit command.
636 * doc/gdb.texinfo: Document edit command.
637
6382002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
639
640 * source.c: Make global variables current_source_symtab and
641 current_source_line static.
642 (list_command): Moved to cli/cli-cmds.c.
643 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
644 (get_first_line_listed): New accessor function.
645 (get_lines_to_list): New accessor function.
646 (get_current_source_symtab_and_line): New function. Retrieves the
647 position in the source code that we consider current.
648 (get_current_or_default_source_symtab_and_line): New function.
649 Like the above but attempts to determine a default position if one
650 is not currently defined.
651 (set_current_source_symtab_and_line): New function. Sets the source
652 code position considered current and returns the previously set one.
653 (clear_current_source_symtab_and_line): Reset stored information about
654 a current source line.
655 (_initialize_source): Remove registration for the "list" command and
656 its alias.
657 * source.h: Add declarations for the new functions above.
658 * symtab.h: Remove declarations for the global variables mentioned
659 above.
660 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
661 obtain current source line.
662 * linespec.c (decode_line_1): Ditto.
663 * macroscope.c (default_macro_scope): Ditto.
664 * scm-lang.c (scm_unpac): Ditto.
665 * stack.c (print_frame_info_base): Ditto.
666 * symfile.c (clear_symtab_users): Ditto.
667 * symtab.c (decode_line_spec): Ditto.
668 * cli/cli-cmds.c (list_command): Moved here from source.c.
669 (ambiguous_line_spec): Moved here from source.c.
670 (_init_cli_cmds): Add definition for "list" and its alias.
671 * Makefile.in: Update dependencies.
672
ddd216ea
CV
6732002-09-20 Corinna Vinschen <vinschen@redhat.com>
674
675 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
676 with what gcc thinks is correct.
677
6d305052
CV
6782002-09-20 Corinna Vinschen <vinschen@redhat.com>
679
680 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
681 multiple register push instruction.
682
234b45d4
KB
6832002-09-19 Jim Blandy <jimb@redhat.com>
684
685 Add support for distinct host and target character sets.
686 * charset.c, charset.h: New files.
687 * c-exp.y: #include "charset.h".
688 (yylex): Convert character and string literals to the target
689 character set, before returning them as the semantic value of the
690 token.
691 * c-lang.c: #include "charset.h".
692 (c_emit_char): Use charset-specific methods to recognize
693 characters with backslash escape forms, to decide which characters
694 to print literally and which to print using numeric escape
695 sequences, and to convert target characters to host characters
696 before printing.
697 * utils.c: #include "charset.h".
698 (no_control_char_error): New function.
699 (parse_escape): Use charset-specific methods to recognize
700 backslash escapes, parse `control character' notation, and convert
701 characters from the host character set to the target character set.
702 * configure.in: Set the default host character set.
703 Check where to find iconv, and what its argument types might be.
704 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
705 * Makefile.in (SFILES): List charset.c.
706 (COMMON_OBS): List charset.o.
707 (charset.o): New rule.
708 (charset_h): New header dependency variable.
709 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
710 (LIBICONV): New variable, set by configure.
711 (CLIBS): Include $(LIBICONV) here.
712 * aclocal.m4, config.in, configure: Regenerated.
713
525d6a61
JB
7142002-09-19 Joel Brobecker <brobecker@gnat.com>
715
716 * ada-exp.y: Add missing semicolons to end rules. Fixes a
717 bison 1.35 warning.
718
3ed93867
RE
7192002-09-19 Richard Earnshaw <rearnsha@arm.com>
720
721 * gdb_mbuild.sh: New file.
722
437666f8
AC
7232002-09-19 Andrew Cagney <ac131313@redhat.com>
724
725 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
726
389e51db
AC
7272002-09-18 Andrew Cagney <ac131313@redhat.com>
728
729 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
730 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
731 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
732 valops.c, value.h: Revert previous change.
733
3b4efeaa
MS
7342002-09-18 Michael Snyder <msnyder@redhat.com>
735
736 Preliminary support for Objective-C:
737 * defs.h (language_objc): New enum value.
738 (puts_filtered_tabular): Declaration only, exported from utils.c.
739 (skip_quoted): Delete, declared in completer.h.
740 * c-exp.y: Include completer.h.
741 * p-exp.y: Ditto.
742 * jv-exp.y: Ditto.
743 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
744 New operator enum values.
745 * language.h (CAST_IS_CONVERSION): Test for language_objc.
746 * language.c (binop_result_type): Handle language_objc case.
747 (integral_type, character_type, string_type, boolean_type,
748 structured_type, binop_type_check): Ditto.
749 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
750 (struct objc_specific): Add to general_symbol_info.
751 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
752 (SYMBOL_DEMANGLED_NAME): Handle objc case.
753 * parser-defs.h (struct objc_class_str): New struct type.
754 (start_msglist, end_msglist, add_msglist): Declaration only,
755 exported from objc-lang.c.
756 * value.h (value_of_local, value_nsstring,
757 call_function_by_hand_expecting_type): Exported from valops.c.
758 * valops.c (find_function_addr): Export.
759 (call_function_by_hand_expecting_type): New function.
760 (value_of_local): New function.
761 * symfile.c (init_filename_language_table): Add ".m" extension
762 for Objective-C.
763 * utils.c (puts_filtered_tabular): New function.
764 (fprintf_symbol_filtered): Add objc demangling support (disabled).
765 (set/show demangle): Extend help-string to refer to ObjC.
766 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
767 * stabsread.c (symbol_reference_defined): Objective-C symbols
768 may contain colons: make allowances when scanning stabs strings
769 for colons.
770 (objc_find_colon): New function.
771 * printcmd.c (address_info): If language == objc then print
772 "self" instead of "this".
773 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
774 OP_NSSTRING, and OP_SELF.
775 (prefixify_subexp): Ditto.
776 * source.c (print_source_lines): Mention objc in comment.
777 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
778 method names.
779
b9caf505
AC
7802002-09-18 Andrew Cagney <ac131313@redhat.com>
781
782 * complaints.h: Update copyright.
783 (struct complaints): Declare.
784 (struct complaint): Make `message' constant.
785 (internal_complaint): Declare.
786 (complaint): Declare.
787 (complaint_root): Delete declaration.
788 (symfile_complaints): Delete declaration.
789 (struct complaints): Add opaque declaration.
790 (clear_complaints): Add a complaints parameter.
791 * complaints.c: Update copyright.
792 (enum complaint_series): Define.
793 (complaint_root): Delete.
794 (struct complaints): Define.
795 (complaint_sentinel, symfile_complaint_book): New variables.
796 (symfile_explanations, symfile_complaints): New variables.
797 New variables.
798 (get_complaints): New function.
799 (vcomplaint): New function.
800 (complaint): New function.
801 (internal_complaint): New function.
802 (complain): Call vcomplain with symfile_complaint.
803 (clear_complaints): Rewrite.
804 (_initialize_complaints): Use add_setshow_command.
805 * Makefile.in (complaints.o): Update dependencies.
806 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
807 to call to clear_complaints.
808 (new_symfile_objfile, reread_symbols): Ditto.
809 (oldsyms_complaint): Delete.
810 (empty_symtab_complaint, unknown_option_complaint): Delete.
811 (free_named_symtabs): Use complaint instead of complain.
812
d2e6263c
MS
8132002-09-18 Michael Snyder <msnyder@redhat.com>
814
5fb2031a
AC
815 Contributed by Apple Computer, Inc. Merged with current sources
816 by Adam Fedor <fedor@doc.com> [cagney].
817
d2e6263c
MS
818 * objc-lang.c: First clean-up round: comments, indentation.
819 * objc-lang.h: Ditto.
820 * objc-lang.y: Ditto.
821
dec43320
AC
8222002-09-18 Andrew Cagney <ac131313@redhat.com>
823
824 * maint.c (maintenance_internal_error): Print the parameter as the
825 error message.
826 (maintenance_internal_warning): New function.
827 (_initialize_maint_cmds): Add command `maint internal-warning'.
828
829 * defs.h (internal_warning, internal_vwarning): Declare.
830 * utils.c (struct internal_problem): Define.
831 (internal_vproblem): New function.
832 (internal_warning): New function.
833 (internal_vwarning): New function.
834 (internal_warning_problem, internal_error_problem): New variables.
835 (internal_verror): Just call internal_vproblem.
836
b81654f1
MS
8372002-09-18 Michael Snyder <msnyder@redhat.com>
838
839 * objc-lang.c: New file, support for Objective-C.
840 Preliminary check-in, not yet integrated into gdb.
841 * objc-lang.h: New file.
842 * objc-exp.y: New file.
843
0542c381
AC
8442002-09-18 Andrew Cagney <ac131313@redhat.com>
845
7bda5e4a
AC
846 * infrun.c (signal_stop_update): Convert definition to ISO C.
847 (signal_print_update): Ditto.
848 (signal_pass_update): Ditto.
849 * inflow.c (terminal_save_ours): Ditto.
850
5247b418
AC
851 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
852 comments.
853
fc60962c
AC
854 * config/djgpp/fnchange.lst: Handle name clashes between
855 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
856 bfd/coff-tic80.c.
857
0542c381
AC
858 * i386-linux-tdep.h: Fix tipo.
859
5b924b9b
AF
8602002-09-18 Adam Fedor <fedor@gnu.org>
861
862 * MAINTAINERS: Add myself to the Write After Approval list.
863
5afc051b
JB
8642002-09-18 Jim Blandy <jimb@redhat.com>
865
866 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
867 texthigh and textlow to reader-specific structs caused
868 objfile_relocate to miss them. This is fixable, but the work that
869 the change was supposed to prepare GDB for never got done anyway.
870
eb944380
DC
8712002-09-18 David Carlton <carlton@math.stanford.edu>
872
873 * MAINTAINERS: Alphabetize Write After Approval list.
874
948e66d9
DJ
8752002-09-18 Daniel Jacobowitz <drow@mvista.com>
876
877 Fix PR gdb/709
878 * values.c (value_static_field): Call read_var_value.
879
dc604539
AC
8802002-09-18 Andrew Cagney <ac131313@redhat.com>
881
882 * valops.c (hand_function_call): Align the initial stack pointer
883 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
884 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
885 return value.
886 * mips-tdep.c (mips_frame_align): New function.
887 (mips_gdbarch_init): Set frame_align.
888 * gdbarch.sh (FRAME_ALIGN): New method.
889 * gdbarch.h, gdbarch.c: Re-generate.
890
cb7e422f
ML
8912002-09-18 Michal Ludvig <mludvig@suse.cz>
892
893 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
894 registers.
895
a094c6fb
AC
8962002-09-17 Andrew Cagney <ac131313@redhat.com>
897
898 * NEWS: Mention that MIPS $fp behavior changed.
899 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
900 reference to FP_REGNUM.
901 (mipsnbsd_cannot_store_register): Ditto.
902 * mips-linux-nat.c: Update copyright.
903 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
904 (mips_linux_cannot_store_register): Ditto.
905 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
906 * config/mips/tm-mips.h: Update copyright.
907 (FP_REGNUM): Delete macro.
908 (MIPS_REGISTER_NAMES): Replace "fp" with "".
909 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
910 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
911 (mips_r3041_reg_names, mips_r3051_reg_names)
912 (mips_r3081_reg_names): Replace "fp" with "".
913 Fix PR gdb/480.
914
45cf40d1
TR
9152002-09-17 Theodore A. Roth <troth@verinet.com>
916
917 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
918 generic_read_register_dummy() (PR gdb/703).
919 (avr_push_return_address): #if 0 out unused vars.
920 (avr_gdbarch_init): Enable use of avr_push_return_address().
921
c7e701b5
MS
9222002-09-17 Michael Snyder <msnyder@redhat.com>
923
d76ba2a5 924 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
925 RTE will take care of it.
926
20bcf01c
AC
9272002-09-17 Andrew Cagney <ac131313@redhat.com>
928
929 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
930 invalid, return SP_REGNUM.
931
009a9971 9322002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
933
934 * mips-tdep.c (mips_pop_frame): Read saved values of floating
935 point registers without sign extension.
936
135c175f
AC
9372002-09-17 Andrew Cagney <cagney@redhat.com>
938
939 * blockframe.c (deprecated_read_register_dummy): Rename
940 generic_read_register_dummy.
941 * frame.c (frame_unwind_signed_register): New function.
942 (frame_unwind_unsigned_register): New function.
943 * frame.h (frame_unwind_signed_register): Declare.
944 (frame_unwind_unsigned_register): Declare.
945 (deprecated_read_register_dummy): Rename
946 generic_read_register_dummy.
947
948 * h8300-tdep.c (h8300_frame_chain): Update.
949 (h8300_frame_saved_pc): Update.
950 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
951 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
952 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
953 (s390_frame_chain): Update.
954 * v850-tdep.c (v850_find_callers_reg): Update.
955 (v850_frame_saved_pc): Update.
956 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
957 (m32r_find_callers_reg): Update.
958 (m32r_frame_saved_pc): Update.
959 * sh-tdep.c (sh_find_callers_reg): Update.
960 (sh64_get_saved_pr): Update.
961 (sh_init_extra_frame_info): Update.
962 (sh_init_extra_frame_info): Update.
963 (sh64_init_extra_frame_info): Update.
964 (sh64_init_extra_frame_info): Update.
965 * mcore-tdep.c (mcore_find_callers_reg): Update.
966 (mcore_frame_saved_pc): Update.
967 (mcore_init_extra_frame_info): Update.
968 * i386-tdep.c (i386_frame_saved_pc): Update.
969 * ia64-tdep.c (ia64_frame_saved_pc): Update.
970 (ia64_init_extra_frame_info): Update.
971 (ia64_init_extra_frame_info): Update.
972 * d10v-tdep.c (d10v_frame_saved_pc): Update.
973 * cris-tdep.c (cris_init_extra_frame_info): Update.
974 * avr-tdep.c (avr_frame_chain): Update.
975 (avr_init_extra_frame_info): Update.
976 (avr_frame_saved_pc): Update.
977 * arm-tdep.c (arm_find_callers_reg): Update.
978 (arm_init_extra_frame_info): Update.
979 (arm_frame_saved_pc): Update.
980
a741e514
TT
9812002-09-17 Tom Tromey <tromey@redhat.com>
982
983 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
984 is "'".
985
d1a8e808
CV
9862002-09-17 Corinna Vinschen <vinschen@redhat.com>
987
988 * MAINTAINERS: Remove "non multi-arched" text from h8300.
989 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
990 NEXT_PROLOGUE_INSN.
991 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
992 NEXT_PROLOGUE_INSN.
993
d9025a18
JB
9942002-09-16 Joel Brobecker <brobecker@gnat.com>
995
996 * osfsolib.c: Remove file, replaced by solib-osf.c.
997 * Makefile.in: Remove compilation rules for osfsolib.c.
998
1b2ef1b6
DC
9992002-09-16 David Carlton <carlton@math.stanford.edu>
1000
1001 * cp-valprint.c (cp_print_class_method): Correct args to
1002 check_stub_method_group.
1003
928e48af
CV
10042002-09-16 Corinna Vinschen <vinschen@redhat.com>
1005
1006 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1007 `set architecture'. Unify naming convention of functions.
1008 (h8300_skip_prologue): Improve prologue analysis.
1009 (h8300_push_arguments): Rewritten to more closely match GCC's
1010 bizarre argument-passing behavior, along with the comment describing
1011 said behavior.
1012 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1013 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1014 sim, remote-e7000.c, remote-hms.c and remote.c
1015
5e3397bb
MK
10162002-09-15 Mark Kettenis <kettenis@gnu.org>
1017
1018 * i386-tdep.c (gdb_print_insn_i386): Removed.
1019 (i386_print_insn): New function.
1020 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1021 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1022 tm_print_insn_info.
1023
f710f4fc
MK
10242002-09-14 Mark Kettenis <kettenis@gnu.org>
1025
1026 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1027 zero.
1028
db54fef4
CV
10292002-09-14 Corinna Vinschen <vinschen@redhat.com>
1030
1031 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1032 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1033 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1034
2becadee
CF
10352002-09-13 Christopher Faylor <cgf@redhat.com>
1036
1037 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1038
de17c821
DJ
10392002-09-13 Daniel Jacobowitz <drow@mvista.com>
1040
1041 * gdbtypes.c (check_stub_method): Make static.
1042 (check_stub_method_group): New function.
1043 * gdbtypes.h: Update prototypes.
1044 * cp-support.c: New file.
1045 * cp-support.h: New file.
1046
1047 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1048 (update_method_name_from_physname): New function.
1049 (read_member_functions): Correct method names for operators
1050 and v3 constructors/destructors. Separate v2 constructors and
1051 destructors.
1052 * Makefile.in (stabsread.o): Update dependencies.
1053 (SFILES): Add cp-support.c.
1054 (COMMON_OBS): Add cp-support.o.
1055 (cp_support_h, cp-support.o): Add.
1056
1057 * cp-valprint.c (cp_print_class_method): Call
1058 check_stub_method_group instead of check_stub_method. Remove
1059 extraneous QUITs.
1060 * p-valprint.c (pascal_object_print_class_method): Likewise.
1061 * valops.c (search_struct_method): Likewise.
1062 (find_method_list, value_struct_elt_for_reference): Likewise.
1063
e76cff22
AC
10642002-09-13 Andrew Cagney <cagney@redhat.com>
1065
1066 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1067 * gdbarch.h, gdbarch.c: Regenerate.
1068
905abb3f
AC
10692002-09-13 Andrew Cagney <ac131313@redhat.com>
1070
1071 * frame.c (find_saved_register): Delete function.
1072 * frame.h (find_saved_register): Delete declaration.
1073 Fix PR gdb/631.
1074
64159455
AC
1075Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1076
1077 * mips-tdep.c (read_next_frame_reg): Re-hack using
1078 frame_register_unwind.
1079
795e1e11
AC
1080Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1081
1082 * mips-tdep.c (mips_get_saved_register): Re-hack using
1083 frame_register_unwind.
1084
5720643c
JB
10852002-09-12 Joel Brobecker <brobecker@gnat.com>
1086
1087 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1088 vector. Will be useful for Interix.
1089 * gdbarch.h, gdbarch.c: Regenerate.
1090
1091 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1092 name of the malloc function by NAME_OF_MALLOC.
1093
3bada2a2
JB
10942002-09-12 Joel Brobecker <brobecker@gnat.com>
1095
1096 * value.h (find_function_in_inferior): Add const keyword to
1097 one of the parameters. Allows us to invoke this function with
1098 a const char *.
1099 * valops.c (find_function_in_inferior): Likewise.
1100
3db26b01
JB
11012002-09-12 Joel Brobecker <brobecker@gnat.com>
1102
1103 * exec.c (xfer_memory): Fix compilation warning with old versions
1104 of GCC.
1105 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1106
17c5ed2c
DC
11072002-09-12 David Carlton <carlton@math.stanford.edu>
1108
1109 * symtab.h: Run through gdb_indent.h.
1110 Add 2002 to Copyright year list.
1111
ecd1107e
AM
11122002-09-12 Alan Modra <amodra@bigpond.net.au>
1113
1114 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1115 mach constants.
1116 * MAINTAINERS: Add myself to write after approval list.
1117
e64f66d1
JB
11182002-09-11 J. Brobecker <brobecker@gnat.com>
1119
1120 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1121
f9395794
JB
11222002-09-11 J. Brobecker <brobecker@gnat.com>
1123
1124 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1125 Interix.
1126
1a303dec
MS
11272002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1128
1129 * procfs.c (do_detach): Clear current signal, not just fault.
1130 Corrects problem with breakpoint trap signal leaking to detached
1131 process on Tru64.
1132
c0219d42
MS
11332002-09-10 Michael Snyder <msnyder@redhat.com>
1134
1135 * buildsym.c (finish_block): Protect against null pointer.
1136
9d84ac84
AC
11372002-09-10 Andrew Cagney <cagney@redhat.com>
1138
1139 * infcmd.c (default_print_registers_info): Send all output to
1140 ``file'' instead of ``gdb_stdout''.
1141
77d8f2b4
MS
11422002-09-10 Michael Snyder <msnyder@redhat.com>
1143
1144 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1145 LONGEST, and use signed register read (addresses are sign-
1146 extended for mips).
1147
99656a61
SC
11482002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1149
1150 * event-loop.c (gdb_do_one_event): Make public.
1151 * event-loop.h (gdb_do_one_event): Declare.
1152
da12f4d8
JL
11532002-09-10 Jeff Law <law@redhat.com>
1154
1155 * infttrace.c (child_resume): Simplify and rework to avoid
1156 TT_PROC_CONTINUE.
1157
d0aee0c4
FF
11582002-09-09 Fred Fish <fnf@intrinsity.com>
1159
1160 * printcmd.c (print_scalar_formatted): "len" is the number of
1161 target bytes, NOT the number of target bits.
1162
7cb3ec5e
EZ
11632002-09-09 Elena Zannoni <ezannoni@redhat.com>
1164
1165 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1166 * top.c (init_main): Set rl_terminal_name.
1167
4dc81987
AS
11682002-09-08 Aidan Skinner <aidan@velvet.net>
1169
1170 * ada-lang.c (ada_array_bound, ada_type_match,
1171 _initialize_ada_language): Fix K&R definitions.
1172 * ada-tasks.c (get_current_task): Fix K&R definitions.
1173 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1174
842330b4
CF
11752002-09-07 Christopher Faylor <cgf@redhat.com>
1176
1177 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1178 Add XP.
1179
43156d82
MK
11802002-09-06 Mark Kettenis <kettenis@gnu.org>
1181
66da5fd8
MK
1182 * i386-tdep.c (i386_register_virtual_type,
1183 i386_register_convertible, i386_register_convert_to_virtual,
1184 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1185 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1186 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1187 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1188 Don't set push_arguments twice.
1189
4b218c18
MK
1190 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1191 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1192 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1193 sigtramp_end to NULL.
1194 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1195 defines.
1196 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1197
4cc314d5
MK
1198 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1199 whitespace.
1200
43156d82
MK
1201 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1202 * gdbarch.h, gdbarch.c: Re-generate.
1203 * blockframe.c (find_pc_sect_partial_function): Convert to use
1204 SIGTRAMP_START_P predicate.
1205
6672060b
MS
12062002-09-05 Michael Snyder <msnyder@redhat.com>
1207
a90c3637
MS
1208 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1209 generic_dummy_frame method and old method. Also distinguish
1210 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 1211 (arm_extract_return_value): Use new regcache method.
a90c3637 1212
6672060b
MS
1213 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1214 adjustment that doesn't conform to the ABI.
1215 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1216 saved regcache, not from current regcache.
1217
299ffc64
AC
12182002-09-05 Andrew Cagney <ac131313@redhat.com>
1219
1220 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1221 * README: Update.
1222
a3a2ee65
JT
12232002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1224
1225 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1226 if arm_apcs_32 is false.
1227
2bc7eea9
AC
12282002-09-04 Andrew Cagney <ac131313@redhat.com>
1229
1230 GDB 5.3 branch created.
1231
8a55a7c5
TR
12322002-09-03 Theodore A. Roth <troth@verinet.com>
1233
1234 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1235 generic_unwind_get_saved_register.
1236
e26fb1d7
DC
12372002-09-03 David Carlton <carlton@math.stanford.edu>
1238
1239 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1240 argument (PR gdb/653). Update call to smash_to_method_type.
1241 (read_structure_scope): Update call to dwarf2_add_member_fn.
1242
30d52491
ML
12432002-09-03 Michal Ludvig <mludvig@suse.cz>
1244
1245 * x86-64-linux-tdep.c: Include gdb_string.h
1246 * x86-64-linux-nat.c: Ditto.
1247
06891d83
JT
12482002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1249
1250 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1251 when YYDEBUG is set to 1.
1252 * c-exp.y: Likewise.
1253 * f-exp.y: Likewise.
1254 * jv-exp.y: Likewise.
1255 * m2-exp.y: Likewise.
1256 * p-exp.y: Likewise.
1257
7d400e77
JT
12582002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1259
1260 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1261 dependency list.
1262 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1263 solib_svr4_fetch_link_map_offsets to
1264 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1265 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1266 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1267 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1268 solib-svr4.o, and solib-legacy.o.
1269 * config/i386/tm-nbsd.h: Include solib.h.
1270
704a27c4
JT
12712002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1272
1273 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1274 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1275 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1276 comment noting that this needs its own target configuration.
1277 * config/i386/nbsd.mt: New file.
1278 * config/i386/nbsdaout.mt: Remove.
1279 * config/i386/nbsdelf.mt: Ditto.
1280 * config/i386/tm-nbsdaout.h: Ditto.
1281
d66198e1
JT
12822002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1283
1284 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1285 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1286 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1287 tdep->sigtramp_end.
1288 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1289 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1290 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1291
3cac699e
JT
12922002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1293
1294 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1295 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1296 * i386-tdep.h (i386bsd_init_abi): New prototype.
1297 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1298 function declaration.
1299 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1300 for NetBSD-a.out or NetBSD-ELF.
1301 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1302 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1303 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1304 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1305 and nbsd-tdep.h.
1306 (i386nbsd_pc_in_sigtramp): New function.
1307 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1308 i386nbsd_pc_in_sigtramp.
1309 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1310 and i386nbsdelf_init_abi OS ABI handlers.
1311 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1312 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1313
7010ca0a
MK
13142002-09-02 Mark Kettenis <kettenis@gnu.org>
1315
1316 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1317 registers if the target really has them.
1318
6dd93b72
JT
13192002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1320
1321 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1322 than nbsd-tdep.h.
1323
2ca8ae21
JT
13242002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1325
1326 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1327 list.
1328 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1329 (alphanbsd_skip_sigtramp_frame): New functions.
1330 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1331 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1332 to alphanbsd_sigcontext_addr.
1333
3d9b49b0
JT
13342002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1335
1336 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1337 list.
1338 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1339 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1340 nbsd_pc_in_sigtramp.
1341 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1342 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1343 * nbsd-tdep.c: Include gdb_string.h.
1344 (nbsd_pc_in_sigtramp): New function.
1345 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1346 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1347 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1348 ppcnbsd_pc_in_sigtramp.
1349 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1350 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1351 shnbsd_pc_in_sigtramp.
1352 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1353 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1354 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1355
c860120c
PM
13562002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1357
1358 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1359 watchpoints to NULL.
1360 (insert_breakpoints): set val field of watchpoints if NULL.
1361
1362
c7612d53
JB
13632002-08-29 Jim Blandy <jimb@redhat.com>
1364
1365 * symtab.c (lookup_symbol_aux): In the cases where we find a
1366 minimal symbol of an appropriate name and use its address to
1367 select a symtab to read and search, use `name' (as passed to us)
1368 as the demangled name when searching the symtab's global and
1369 static blocks, not the minsym's name.
1370
66609862
KS
13712002-08-29 Keith Seitz <keiths@redhat.com>
1372
1373 * stack.c (print_frame_info_base): Always set current_source_symtab
1374 and current_source_line.
1375
151fefe2
JB
13762002-08-29 Donn Terry <donnte@microsoft.com>
1377
1378 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1379
bfb3754e
KS
13802002-08-28 Keith Seitz <keiths@redhat.com>
1381
1382 * stack.c (select_frame): Add FIXME concerning selected-frame
1383 events.
1384 (select_frame_command): Send selected-frame-level-changed
1385 event notification, but only if the level actually changed.
1386 (up_silently_base): Add selected-frame-level-changed event
1387 notification.
1388 (down_silently_base): Likewise.
1389
e822a2a0
AC
13902002-08-28 Andrew Cagney <ac131313@redhat.com>
1391
1392 * Makefile.in: Update dependencies for all gdb/*.c files.
1393
309367d4
TT
13942002-08-27 Tom Tromey <tromey@redhat.com>
1395
1396 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1397 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1398 Update dependencies.
1399 * i387-tdep.c: Include gdb_string.h.
1400 * osabi.c: Likewise.
1401 * i386-linux-nat.c: Likewise.
1402 * lin-lwp.c: Likewise.
1403 * ax-gdb.c: Likewise.
1404 * signals/signals.c: Likewise.
1405 * jv-valprint.c: Likewise.
1406 * p-lang.c: Likewise.
1407 * c-valprint.c: Likewise.
1408 * cp-abi.c: Likewise.
1409
e1507482
EZ
14102002-08-27 Elena Zannoni <ezannoni@redhat.com>
1411
1412 * cli/cli-script.h (copy_command_lines): Export.
1413 * breakpoint.c: Include cli/cli-script.h.
1414 * Makefile.in (breakpoint.o): Update dependencies.
1415
c6510018
MS
14162002-08-26 Michael Snyder <msnyder@redhat.com>
1417
1418 * breakpoint.c (insert_breakpoints): Protect all references
1419 to 'process_warning'. Shorten long lines.
1420
c2b8ed2c
MS
14212002-08-26 Joel Brobecker <brobecker@gnat.com>
1422
1423 * cli/cli-script.c (copy_command_lines): New function.
1424 * defs.h (copy_command_lines): Export.
1425 * testsuite/gdb.base/commands.exp: New tests for commands
1426 attached to a temporary breakpoint, and for commands that
1427 delete the breakpoint they are attached to.
1428
14292002-08-26 Michael Snyder <msnyder@redhat.com>
1430
1431 * breakpoint.c (bpstat_stop_status): Instead of copying the
1432 pointer to the breakpoint commands struct, make a new copy
1433 of the struct and point to that.
1434 (bpstat_clear): Free the commands struct.
1435 (bpstat_clear_actions): Free the commands struct.
1436 (bpstat_do_actions): Free the command actions. Also execute
1437 the local cleanups, instead of deleting them.
1438 (delete_breakpoint): Leave the commands field of the bpstat
1439 chain alone -- it will be freed later.
1440
64b84175
KB
14412002-08-26 Kevin Buettner <kevinb@redhat.com>
1442
1443 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1444 deleted in 2002-08-20 commit. This function is still used by
1445 ppc-linux-nat.c.
1446
55970da6
KS
14472002-08-26 Keith Seitz <keiths@redhat.com>
1448
1449 * gdb-events.sh: Add selected-frame-level-changed event.
1450 * gdb-events.c: Regenerated.
1451 * gdb-events.h: Regenerated.
1452
a790ad35
SC
14532002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1454
1455 Fix PR gdb/393:
1456 * inflow.c (terminal_save_ours): New function to save terminal
1457 settings.
1458 * inferior.h (terminal_save_ours): Declare.
1459 * target.c (debug_to_terminal_save_ours): New function.
1460 (cleanup_target): Defaults to_terminal_save_ours.
1461 (update_current_target): Inherit to_terminal_save_ours.
1462 (setup_target_debug): Set to_terminal_save_ours.
1463 * target.h (target_terminal_save_ours): New to save terminal settings.
1464 (target_ops): New member to_terminal_save_ours.
1465 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1466 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1467 * inftarg.c (init_child_ops): Likewise.
1468 * m3-nat.c (init_m3_ops): Likewise.
1469 * procfs.c (init_procfs_ops): Likewise.
1470 * wince.c (init_child_ops): Likewise.
1471 * win32-nat.c (init_child_ops): Likewise.
1472 * sol-thread.c (init_sol_thread_ops): Likewise.
1473
c00dcbe9
MK
14742002-08-26 Mark Kettenis <kettenis@gnu.org>
1475
3d7f4f49
MK
1476 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1477 use regcache_* functions.
1478 (i386_gdbarch_init): Set store_return_value instead of
1479 deprecated_store_return_value.
1480
c00dcbe9
MK
1481 * regcache.c (regcache_raw_write_signed,
1482 regcache_raw_write_unsigned): New functions.
1483 * regcache.h (regcache_raw_write_signed,
1484 regcache_raw_write_unsigned): New prototypes.
1485
0e0d15ca
AC
14862002-08-25 Andrew Cagney <ac131313@redhat.com>
1487
1488 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1489 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1490 source file dependencies. Cleanup corresponding generator rules.
1491
d3b22ed5
AC
14922002-08-25 Andrew Cagney <ac131313@redhat.com>
1493
1494 * regcache.h (register_offset_hack): Declare.
1495 (regcache_cooked_read_using_offset_hack): Declare.
1496 (regcache_cooked_write_using_offset_hack): Declare.
1497
1498 * regcache.c (register_offset_hack): New function.
1499 (regcache_cooked_read_using_offset_hack): New function.
1500 (regcache_cooked_write_using_offset_hack): New function.
1501 (regcache_dump): Check that the registers, according to their
1502 offset, are packed hard against each other.
1503 (cooked_xfer_using_offset_hack): New function.
1504
bb425013
AC
15052002-08-25 Andrew Cagney <ac131313@redhat.com>
1506
1507 * regcache.c (struct regcache_descr): Add field register_type.
1508 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1509 in as a parameter
1510 (init_regcache_descr): Initialize register_type. Pass the descr
1511 to init_legacy_regcache_descr. Use register_type instead of
1512 REGISTER_VIRTUAL_TYPE.
1513 (register_type): New function.
1514 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1515 * regcache.h (register_type): Declare.
1516
d0403e00
AC
15172002-08-25 Andrew Cagney <ac131313@redhat.com>
1518
1519 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1520 instead of deprecated_store_return_value. Fix fallout from
1521 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1522
0ed04cce
AC
15232002-08-25 Andrew Cagney <ac131313@redhat.com>
1524
1525 * regcache.c (max_register_size): New function.
1526 (init_legacy_regcache_descr): Ensure that max_register_size is
1527 large enough for REGISTER_VIRTUAL_SIZE.
1528 * regcache.h (max_register_size): Declare.
1529
46d79c04
AC
15302002-08-24 Andrew Cagney <ac131313@redhat.com>
1531
1532 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1533 store_return_value.
1534 (e500_extract_return_value): Change type of valbuf pointer to
1535 void.
1536
853c7bd0
MK
15372002-08-24 Mark Kettenis <kettenis@gnu.org>
1538
cd87e769
MK
1539 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1540 workaround.
1541
853c7bd0
MK
1542 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1543 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1544 long long) to prevent compiler warning on 64-bit systems.
1545
ebba8386
AC
15462002-08-23 Andrew Cagney <cagney@redhat.com>
1547
1548 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1549 (DEPRECATED_STORE_RETURN_VALUE): New method.
1550 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1551 * gdbarch.h, gdbarch.c: Re-generate.
1552
1553 * values.c (set_return_value): Pass current_regcache to
1554 STORE_RETURN_VALUE.
1555 * arch-utils.h (legacy_store_return_value): Declare.
1556 * arch-utils.c (legacy_store_return_value): New function.
1557 (legacy_extract_return_value): Update parameters.
1558
1559 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1560 STORE_RETURN_VALUE.
1561 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1562 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1563 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1564 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1565 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1566 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1567 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1568 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1569 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1570 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1571
1572 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1573 * i386-tdep.c (i386_extract_return_value): Update.
1574 * arch-utils.c (legacy_extract_return_value): Update.
1575 * frv-tdep.c (frv_gdbarch_init): Update.
1576 * cris-tdep.c (cris_gdbarch_init): Update.
1577 * d10v-tdep.c (d10v_gdbarch_init): Update.
1578 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1579 * m68k-tdep.c (m68k_gdbarch_init): Update.
1580 * mcore-tdep.c (mcore_gdbarch_init): Update.
1581 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1582 * s390-tdep.c (s390_gdbarch_init): Update.
1583 * sparc-tdep.c (sparc_gdbarch_init): Update.
1584 * sh-tdep.c (sh_gdbarch_init): Update.
1585 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1586 * v850-tdep.c (v850_gdbarch_init): Update.
1587 * avr-tdep.c (avr_gdbarch_init): Update.
1588 * ia64-tdep.c (ia64_gdbarch_init): Update.
1589 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1590 * vax-tdep.c (vax_gdbarch_init): Update.
1591 * alpha-tdep.c (alpha_gdbarch_init): Update.
1592 * arm-tdep.c (arm_gdbarch_init): Update.
1593 * mips-tdep.c (mips_gdbarch_init): Update.
1594 * i386-tdep.c (i386_gdbarch_init): Update.
1595
5bd8c6d0
AC
15962002-08-23 Andrew Cagney <ac131313@redhat.com>
1597
1598 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1599 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1600
e73e1724
MK
16012002-08-24 Mark Kettenis <kettenis@gnu.org>
1602
1603 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1604 problems.
1605
3e6564e1
JB
16062002-08-23 Joel Brobecker <brobecker@gnat.com>
1607
1608 * infrun.c (handle_inferior_event): Move a comment outside of a
1609 function call, in order to avoid indent reformatting this part
1610 of the code in an unreadable way.
1611
81d0cc19
GS
16122002-08-23 Grace Sainsbury <graces@redhat.com>
1613
1614 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1615 when breakpoints fail. Move general breakpoint error messages to
1616 insert_breakpoints.
1617 * breakpoint.c (insert_breakpoints): Change warnings when
1618 breakpoints are nto inserted to specify the type. Remove call to
1619 memory_error when hardware breakpoints can't be inserted. Remove
1620 multiple calls to warning so all messages are sent to the user at
1621 once.
1622 (delete_breakpoints): Make insert error messsages more explicit.
1623
17574093
DJ
16242002-08-23 Daniel Jacobowitz <drow@mvista.com>
1625
1626 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1627 gdbserver/ChangeLog.
1628
8acc2935
MK
16292002-08-23 Mark Kettenis <kettenis@gnu.org>
1630
dfe01d39
MK
1631 * i386-tdep.c: Include "objfiles.h".
1632 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1633 skip_trampoline_code.
1634 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1635 (CPLUS_MARKER): Define to '.'.
1636
8acc2935
MK
1637 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1638 member.
1639 (linux_corefile_thread_callback): Increase args->num_notes.
1640 (linux_make_note_section): Initialize thread_args.num_notes, and
1641 use it to determine whether notes for any threads were created.
1642
151fefe2 16432002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1644
1645 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1646 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1647 and PCUNKILL.
1648 (write_with_trace): Conditionalize out the switch branch handling
1649 PCSHOLD if the corresponding macro is not defined. Likewise for
1650 PRSABORT and PRSTOP.
1651 This change will be needed by the Interix port.
1652
e1507482
EZ
16532002-08-22 Elena Zannoni <ezannoni@redhat.com>
1654
1655 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1656 write_register wherever possible instead of manipulating the
1657 register bytes directly.
1658 Assign VALUE_CONTENTS to a variable and use that.
1659 The GPR numbers are now dependent on the architecture.
1660
96ff0de4
EZ
16612002-08-22 Elena Zannoni <ezannoni@redhat.com>
1662
1663 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1664 ev_offset fields.
1665 (skip_prologue): Add support for BookE/e500 instructions.
1666 (e500_extract_return_value): New function.
1667 (frame_get_saved_regs): Add support for saving ev registers and
1668 pseudo gpr's.
1669 (e500_store_return_value): New function.
1670 (rs6000_gdbarch_init): Move up default intializations of
1671 deprecated_extract_return_value and store_return_value. Overwrite
1672 init of store_return_value with e500 specific version.
1673 Set extract_return_value for e500.
1674
fbefca5b
EZ
16752002-08-22 Elena Zannoni <ezannoni@redhat.com>
1676
1677 * blockframe.c (generic_call_dummy_register_unwind): Use
1678 regcache_cooked_read to catch cases in which the variable is
1679 stored in a pseudo register.
1680
4d210288
AC
16812002-08-22 Andrew Cagney <cagney@redhat.com>
1682
1683 * NEWS: Mention that the i960 has been made obsolete.
1684 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1685 i960-tdep.c
1686 (remote-nrom.o): Obsolete target.
1687 (remote-nindy.o, i960-tdep.o): Ditto.
1688 * remote-nrom.c: Make file obsolete.
1689 * remote-nindy.c, remote-vx960.c: Ditto.
1690 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1691 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1692 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1693 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1694 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1695 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1696 i960-*-vxworks* obsolete.
1697 * MAINTAINERS: Note that the i960 is obsolete.
1698
6c0c456d
CV
16992002-08-21 Corinna Vinschen <vinschen@redhat.com
1700
1701 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1702 detach to allow reinitialization.
1703
9f9d12b3
AC
17042002-08-22 Andrew Cagney <ac131313@redhat.com>
1705
1706 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1707 attempt).
1708
ebeb39fe
JB
17092002-08-22 Jim Blandy <jimb@redhat.com>
1710
1711 * coffread.c (coff_symfile_read): Don't try to read the line
1712 number table from disk if the image file doesn't have a symbol
1713 table; we'll never actually look at the info anyway, and Windows
1714 ships DLL's with bogus file offsets for the line number data.
1715
5bf1c677
EZ
17162002-08-21 Elena Zannoni <ezannoni@redhat.com>
1717
1718 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1719 an e500 executable.
1720
71b8ef93
MS
17212002-08-21 Michael Snyder <msnyder@redhat.com>
1722
1723 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1724 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1725 (DEFAULT_MIPS_TYPE): Delete unused macro.
1726 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1727 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1728
d174216d
JB
17292002-08-21 Jim Blandy <jimb@redhat.com>
1730
1731 * valops.c (value_cast): Simplify and correct logic for doing a
1732 static cast from a pointer to a base class to a pointer to a
1733 derived class.
1734
0ab7a791
AC
17352002-08-21 Andrew Cagney <ac131313@redhat.com>
1736
1737 * infcmd.c (default_print_registers_info): Replace
1738 do_registers_info.
1739 (registers_info): Use gdbarch_print_registers_info instead of
1740 DO_REGISTERS_INFO.
1741 * inferior.h (default_print_registers_info): Replace
1742 do_registers_info.
1743 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1744 (DO_REGISTERS_INFO): Change to a predicate function.
1745 * gdbarch.h, gdbarch.c: Regenerate.
1746
e23792cc
KS
17472002-08-21 Keith Seitz <keiths@redhat.com>
1748
1749 * gdb-events.sh: Add target-changed event.
1750 * gdb-events.c: Regenerated.
1751 * gdb-events.c: Regenerated.
1752 * valops.c (value_assign): Add target-changed event notification
1753 to inlval_register, lval_memory, and lval_reg_frame_relative.
1754
9fb14e79
JB
17552002-08-21 Joel Brobecker <brobecker@gnat.com>
1756
1757 * NEWS: Add an entry regarding the improvement of the next/step
1758 operation on Alpha Tru64 multi-processor machines.
1759
6d39a69f
AC
17602002-08-21 Andrew Cagney <ac131313@redhat.com>
1761
72acd513
AC
1762 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1763 directores.
342af04b 1764 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1765 * Makefile.in (install-gdbtk): Move to install section.
1766 (rdi-share/libangsd.a): Move to end of file.
1767
fa5f27c7
AC
17682002-08-19 Andrew Cagney <ac131313@redhat.com>
1769
1770 * frame.c (frame_register_unwind): When a register, set addrp to
1771 the register's byte.
1772
5a89d8aa
MS
17732002-08-20 Michael Snyder <msnyder@redhat.com>
1774
1775 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1776 used locally, so move them from the target machine header to here.
1777 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1778 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1779 Make static.
1780 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1781
822e978b
AC
17822002-08-20 Andrew Cagney <cagney@redhat.com>
1783
1784 * NEWS: Mention that the Apollo line was made obsolete.
1785 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1786 m68*-hp-hpux* obsolete.
1787 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1788 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1789 * buildsym.c (make_blockvector): Make static.
1790 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1791 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1792 (ALLDEPFILES): Remove dstread.c.
1793 (dstread.o): Obsolete make rule.
1794 * dstread.c: Makefile obsolete.
1795 * dst.h: Ditto.
1796 * config/m68k/hp300hpux.mt: Ditto.
1797 * config/m68k/hp300hpux.mh: Ditto.
1798 * config/m68k/hp300bsd.mt: Ditto.
1799 * config/m68k/hp300bsd.mh: Ditto.
1800 * config/m68k/apollo68b.mt: Ditto.
1801 * config/m68k/apollo68v.mh: Ditto.
1802 * config/m68k/apollo68b.mh: Ditto.
1803
e41b17f0
MS
18042002-08-20 Michael Snyder <msnyder@redhat.com>
1805
1806 * mips-tdep.c (mips_in_return_stub): Make static.
1807 (mips_gdbarch_init): Set in_solib_return_trampoline.
1808 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1809
d50355b6
MS
18102002-08-20 Michael Snyder <msnyder@redhat.com>
1811
1812 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1813 * gdbarch.c, gdbarch.h: Regenerate.
1814 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1815 Add.
1816 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1817
757a7cc6
MS
18182002-08-20 Michael Snyder <msnyder@redhat.com>
1819
1820 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1821 (mips_gdbarch_init): Set skip_trampoline_code,
1822 in_solib_call_trampoline.
1823 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1824 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1825
c8001721
EZ
18262002-08-20 Elena Zannoni <ezannoni@redhat.com>
1827
1828 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1829
1830 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1831 vector type for ev registers.
1832 (e500_pseudo_register_read): New function.
1833 (e500_pseudo_register_write): New function.
1834 (e500_dwarf2_reg_to_regnum): New function.
1835 (PPC_UISA_NOFP_SPRS): New macro.
1836 (PPC_EV_REGS): New macro.
1837 (PPC_GPRS_PSEUDO_REGS): New macro.
1838 (registers_e500): New register set for e500.
1839 (variants): Add e500 variant.
1840 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1841 before setting architectural dependent variations. Initialize ev
1842 registers numbers. Add case for e500 architecture. Set the
1843 number of pseudo registers.
1844
64366f1c
EZ
18452002-08-20 Elena Zannoni <ezannoni@redhat.com>
1846
1847 * rs6000-tdep.c: Clean up comments.
1848
7e78f0ca
AC
18492002-08-20 Andrew Cagney <cagney@redhat.com>
1850
1851 * h8300-tdep.c: Re-indent file.
1852
697f7479
JB
18532002-08-20 Jim Blandy <jimb@redhat.com>
1854
1855 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1856 default for this.
697f7479 1857
e86ae29f
KS
18582002-08-20 Keith Seitz <keiths@redhat.com>
1859
1860 * breakpoints.c (watch_command_1): Use internal breakpoint
1861 when setting a watchpoint_scope breakpoint.
1862
216b504f
EZ
18632002-08-20 Elena Zannoni <ezannoni@redhat.com>
1864
1865 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1866 (build_builtin_type_vec64i): Ditto.
1867 (build_builtin_type_vec128): Ditto.
1868 (build_builtin_type_vec128i): Ditto.
1869
f7ab6ec6
MS
18702002-08-19 Michael Snyder <msnyder@redhat.com>
1871
1872 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1873 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1874 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1875 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1876 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1877 CALL_DUMMY_ADDRESS): Delete.
1878 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1879 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1880 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1881 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1882 push_return_address.
1883 (mips_register_raw_size, mips_eabi_use_struct_convention,
1884 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1885 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1886 mips_init_extra_frame_info, mips_eabi_push_arguments,
1887 mips_n32n64_push_arguments, mips_push_return_address,
1888 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1889 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1890
b5d1566e
MS
18912002-08-19 Michael Snyder <msnyder@redhat.com>
1892
1893 * mips-tdep.c (mips_frame_num_args): New function.
1894 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1895 frame_saved_pc, frame_args_address, frame_locals_address,
1896 frame_num_args, and frame_args_skip.
1897 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1898 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1899 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1900 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1901
2f1488ce
MS
19022002-08-20 Michael Snyder <msnyder@redhat.com>
1903
1904 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1905 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1906 * mips-tdep.c (mips_store_struct_return): New function.
1907 (mips_extract_struct_value_address): New function.
1908 (mips_gdbarch_init): Set store_struct_return and
1909 extract_struct_value_address.
1910
41ff2da1
DC
19112002-08-20 David Carlton <carlton@math.stanford.edu>
1912
1913 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1914 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1915 (read_file_scope): Check that line_header is nonzero before
1916 decoding macro information.
1917
e5451d58
MK
19182002-08-20 Mark Kettenis <kettenis@gnu.org>
1919
1920 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1921 flag the general-purpose registers as floating-point on targets
1922 that don't support the floating-point registers.
1923
4a6daafa
EZ
19242002-08-20 Elena Zannoni <ezannoni@redhat.com>
1925
1926 * rs6000-tdep.c (altivec_register_p): Delete.
1927 (rs6000_do_altivec_registers): Delete.
1928 (rs6000_altivec_registers_info): Delete.
1929 (rs6000_do_registers_info): Delete.
1930 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1931 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1932
ab4327e0
EZ
19332002-08-20 Elena Zannoni <ezannoni@redhat.com>
1934
1935 * infcmd.c (do_registers_info): Print vector registers in hex
1936 format only.
1937 (print_vector_info): Check that printing registers
1938 makes sense.
1939 (print_float_info): Ditto.
1940
cb1d2653
AC
19412002-08-20 Andrew Cagney <ac131313@redhat.com>
1942
1943 * mips-tdep.c (mips_gdbarch_init): Update.
1944 (mips_o32_extract_return_value): Rewrite.
1945 (mips_o32_store_return_value): Rewrite.
1946 (mips_o32_xfer_return_value): New function.
1947 (mips_xfer_register): Tweak debug print message. Allow for
1948 buf_offset when dumping the value transfered.
1949
dfc3d9b2
AC
19502002-08-20 Andrew Cagney <ac131313@redhat.com>
1951
1952 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1953 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1954 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1955 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1956 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1957
7807aa61
MS
19582002-08-14 Michael Snyder <msnyder@redhat.com>
1959
1960 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1961
489461e2
EZ
19622002-08-19 Elena Zannoni <ezannoni@redhat.com>
1963
1964 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1965 register.
1966 (P): New macro to define a register as a pseudo register.
1967 (R, R4, R8, R16, FR32, R64, R0): Updated.
1968 (struct variant): Add new fields for number of pseudo registers
1969 and number of total registers.
1970 (tot_num_registers): New macro replacing....
1971 (num_registers): ...deleted macro.
1972 (num_registers): New function.
1973 (num_pseudo_registers): New function.
1974 (variants): Update all variants to intialize new fields correctly.
1975 Postpone initialization of number of pseudo regs and real regs.
1976 (init_variants): New function.
1977 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1978 registers offsets.
1979
fcaffe4c
DC
19802002-08-19 David Carlton <carlton@math.stanford.edu>
1981
2c2738a0
DC
1982 * valops.c (search_struct_field): Change error message to treat
1983 return value of 0 from value_static_field as meaning that field is
1984 optimized out.
1985 (value_struct_elt_for_reference): Ditto.
1986 * values.c (value_static_field): Treat an unresolved location the
1987 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
1988 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1989 enclosed. Fix PR gdb/574.
fcaffe4c
DC
1990 * MAINTAINERS: Add self to Write After Approval list.
1991
88658117
AC
19922002-08-19 Andrew Cagney <ac131313@redhat.com>
1993
1994 * mips-tdep.c (mips_xfer_register): New function.
1995 (mips_n32n64_extract_return_value): Rewrite.
1996 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1997 instead of deprecated_extract_return_value.
1998
21283beb
EZ
19992002-08-19 Elena Zannoni <ezannoni@redhat.com>
2000
2001 * rs6000-tdep.c (TDEP): Delete macro.
2002 (branch_dest): Replace use of TDEP macro with its body.
2003 (rs6000_pop_frame): Ditto.
2004 (rs6000_push_arguments): Ditto.
2005 (rs6000_skip_trampoline_code): Ditto.
2006 (rs6000_frame_saved_pc): Ditto.
2007 (rs6000_frame_chain): Ditto.
2008 (rs6000_register_name): Ditto.
2009 (rs6000_register_byte): Ditto.
2010 (rs6000_register_raw_size): Ditto.
2011 (rs6000_register_virtual_type): Ditto.
2012 (rs6000_register_convertible): Ditto.
2013 (rs6000_convert_from_func_ptr_addr): Ditto.
2014
bf072999
DJ
20152002-08-19 Daniel Jacobowitz <drow@mvista.com>
2016
2017 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2018 conditionally.
2019 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2020 MIPS_LINUX_JB_ELEMENT_SIZE.
2021 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2022 for MAX_REGISTER_RAW_SIZE arrays.
2023 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2024 MIPS_LINUX_JB_ELEMENT_SIZE.
2025
9b949a49
PM
20262002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2027
2028 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2029
6d3e79c6
AS
20302002-08-19 Aidan Skinner <aidan@velvet.net>
2031
2032 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2033 ada-valprint.c ada-tasks.c.
2034 (YYFILES): Add ada-exp.y.
2035 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2036 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2037 (ada-exp.tab.o): New target.
2038
06c0b04e
AC
20392002-08-18 Andrew Cagney <ac131313@redhat.com>
2040
2041 * regcache.c (regcache_xfer_part): New function.
2042 (regcache_raw_read_part): New function.
2043 (regcache_raw_write_part): New function.
2044 (regcache_cooked_read_part): New function.
2045 (regcache_cooked_write_part): New function.
2046 * regcache.h (regcache_raw_read_part): Declare.
2047 (regcache_raw_write_part): Declare.
2048 (regcache_cooked_read_part): Declare.
2049 (regcache_cooked_write_part): Declare.
2050
92d1e331
DJ
20512002-08-18 Daniel Jacobowitz <drow@mvista.com>
2052
2053 * remote.c (remote_open_1): Add async_p.
2054 (remote_async_open_1): Delete.
2055 (open_remote_target): Delete.
2056 (remote_open, extended_remote_open): Update calls to remote_open_1.
2057 (remote_async_open, extended_remote_async_open): Call
2058 remote_open_1 instead of remote_async_open_1.
2059
247055de
MK
20602002-08-19 Mark Kettenis <kettenis@gnu.org>
2061
2062 * blockframe.c: Fix a few coding standard violations.
2063
641eda39
MK
20642002-08-19 Mark Kettenis <kettenis@gnu.org>
2065
0b717710
MK
2066 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2067 here from ...
2068 * config/i386/tm-i386sco5.h: ... here. File removed.
2069 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2070
26d28e12 2071 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
2072 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2073 (TM_FILE): Set to tm-i386.h.
2074 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2075 * config/i386/tm-i386v.h: Remove file.
2076 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2077 instead of "i386/tm-i386v.h".
2078 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2079 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2080 "i386/tm-i386v.h".
2081 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2082 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2083 "i386/tm-i386.h".
2084
d4e0bab4
MK
20852002-08-18 Mark Kettenis <kettenis@gnu.org>
2086
2087 * config/i386/nm-i386v.h: Add protection against
2088 multiple-inclusion.
2089 (i386_register_u_addr): Remove prototype.
2090 (register_u_addr): New prototype.
2091 (REGISTER_U_ADDR): Redefine accordingly.
2092 * i386v-nat.c: Improve several comments.
2093 (i386_register_u_addr): Change signature and rename to
2094 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2095 ubase variable.
2096
46cac009
AC
20972002-08-18 Andrew Cagney <ac131313@redhat.com>
2098
2099 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2100 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2101 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2102 deprecated_extract_return_value.
2103 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2104 rename mips_o32o64_push_arguments.
2105 (mips_gdbarch_init): Update.
2106 (mips_extract_return_value): Delete.
2107 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2108 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2109 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2110 (mips_n32n64_extract_return_value): Clone
2111 mips_extract_return_value.
2112 (mips_store_return_value): Delete.
2113 (mips_o32_store_return_value): Clone mips_store_return_value.
2114 (mips_o64_store_return_value): Clone mips_store_return_value.
2115 (mips_eabi_store_return_value): Clone mips_store_return_value.
2116 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2117
d2e4a39e
AS
21182002-08-18 Aidan Skinner <aidan@velvet.net>
2119
0c30c098
AS
2120 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2121 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2122
21232002-08-18 Aidan Skinner <aidan@velvet.net>
2124
2125 * ada-lang.c: Run through gdb_indent.sh.
2126 * ada-lang.h: Run through gdb_indent.sh.
2127 * ada-tasks.c: Run through gdb_indent.sh.
2128 * ada-typeprint.c: Run through gdb_indent.sh.
2129 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 2130
01fc4e33
AC
21312002-08-18 Andrew Cagney <ac131313@redhat.com>
2132
2133 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2134 ABI.
2135
d8ee244c
MK
21362002-08-18 Mark Kettenis <kettenis@gnu.org>
2137
c38d8261
MK
2138 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2139
222db64c
MK
2140 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2141 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2142
c2848c82
MK
2143 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2144 write_register_gen instead of write_register_bytes.
2145
d8ee244c
MK
2146 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2147 i[3456]-*-osf1mk* configurations have been made obsolete.
2148 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2149 i[3456]86-*-osf1mk* hosts obsolete.
2150 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2151 targets obsolete.
2152 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2153 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2154 config/i386/i386m3.mt, config/i386/nm-m3.h,
2155 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2156 config/i386/i386mk.mh, config/i386/i386mk.mt,
2157 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2158 obsolete.
2159 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2160 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2161 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2162
61d8d407
AC
21632002-08-18 Andrew Cagney <ac131313@redhat.com>
2164
2165 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2166 (hppa_value_returned_from_stack): Declare.
2167 (hppa_extract_return_value): Declare.
2168 * config/pa/hppa.mt: New file.
2169 * configure.tgt: Recognize hppa*-*-*.
2170 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2171
0c52bd59
MK
21722002-08-18 Mark Kettenis <kettenis@gnu.org>
2173
2174 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2175 comment.
2176
b5686e99
MK
21772002-08-17 Mark Kettenis <kettenis@gnu.org>
2178
2179 * top.c (gdb_rl_operate_and_get_next): Make sure
2180 operate-and-get-next functions correctly even when the history
2181 list is completely filled.
2182
c1bab85b
AC
21832002-08-18 Andrew Cagney <ac131313@redhat.com>
2184
2185 * MAINTAINERS (Target Instruction Set Architectures): Rename
2186 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2187 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2188 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2189 already listed under Host/Native.
2190
2191 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2192 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2193 mips*-*-*.
2194
32089c7c
AC
21952002-08-17 Andrew Cagney <ac131313@redhat.com>
2196
2197 * config/ia64/ia64.mt: New file.
2198 * config/alpha/alpha.mt: New file.
2199 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2200 ia64-linux-gnu. Mention that ia64-elf is broken.
2201 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2202
b4671f85
MK
22032002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2204
2205 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2206 generic_func_frame_valid instead of func_frame_valid.
2207
c8edd8b4
JB
22082002-08-16 Joel Brobecker <brobecker@gnat.com>
2209
2210 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2211 procfs appears to be broken when debugging on multi-processor
2212 machines. So enable software single stepping in order to avoid
2213 using the procfs interface to do next/step operations, using
2214 internal breakpoints instead.
2215
2216 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2217 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2218 make this pc address equal to the value it would have if the
2219 system stepping capability was used. Also set a new flag used
2220 to ensure that we don't readjust the PC one more time later.
2221
2222 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2223 address by DECR_PC_AFTER_BREAK when software single step is
2224 in use for this architecture, as this has already been taken
2225 care of in handle_inferior_event().
2226
238617f6
JB
22272002-08-16 Joel Brobecker <brobecker@gnat.com>
2228
2229 * infrun.c (handle_inferior_event): Minor reformatting, to make
2230 a rather long condition expression easier to read.
2231
541a7aac
AC
22322002-08-16 Andrew Cagney <ac131313@redhat.com>
2233
2234 * Makefile.in (gdbtk.o): Move to end of file.
2235 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2236 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2237 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2238 (gdbtk-wrapper.o, gdbres.o): Ditto.
2239
f92d4a7b
AC
22402002-08-16 Andrew Cagney <ac131313@redhat.com>
2241
2242 * Makefile.in (copying.o): Separate out compile rule.
2243 (hpux-thread.o, procfs.o, signals.o): Ditto.
2244 (v850ice.o, z8k-tdep.o): Ditto.
2245 (tui-file.o): Move to TUI section.
2246 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2247 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2248
1cce71eb
JB
22492002-08-16 Joel Brobecker <brobecker@gnat.com>
2250
2251 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2252 skip_trampoline_code, for better namespace-proofing.
2253
2254 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2255
0851f23d
JB
22562002-08-16 Joel Brobecker <brobecker@gnat.com>
2257
2258 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2259
f8d40ec8
JB
22602002-08-16 Joel Brobecker <brobecker@gnat.com>
2261
2262 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2263 signal, check whether we hit a breakpoint before checking for a
2264 single step breakpoint. Otherwise, GDB fails to notice that a
2265 breakpoint has been hit when stepping onto a breakpoint.
2266
63d022e0
KS
22672002-08-16 Keith Seitz <keiths@redhat.com>
2268
2269 * gdb-events.sh (clear_gdb_event_hooks): New function.
2270 * gdb-events.c: Regenerate.
2271 * gdb-events.h: Regenerate.
2272
6e31adb3
AC
22732002-08-16 Andrew Cagney <ac131313@redhat.com>
2274
2275 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2276 not_a_sw_breakpoint.
2277 * breakpoint.h (bpstat_stop_status): Add parameter names.
2278
c8189ed1
GS
22792002-08-16 Grace Sainsbury <graces@redhat.com>
2280
2281 * remote.c (remote_insert_hw_breakpoint)
2282 (remote_remove_hw_breakpoint): Fix calculation of length field
2283 for Z-packet.
2284
d05285fa
MS
22852002-08-15 Michael Snyder <msnyder@redhat.com>
2286
466d7106
MS
2287 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2288 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2289 (supply_fpregset): Ditto.
2290
d05285fa
MS
2291 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2292 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2293 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 2294 (TARGET_READ_SP): Delete.
bf1f5b4c 2295 (DO_REGISTERS_INFO): Delete.
102182a9
MS
2296 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2297 Delete.
2298 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2299 from macros to functions.
bf1f5b4c 2300
d05285fa
MS
2301 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2302 (mips_register_convertible, mips_register_convert_to_virtual,
2303 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
2304 (mips_read_sp): New function.
2305 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
2306 (mips_do_registers_info): Make static.
2307 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
2308 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2309 (mips_register_convert_from_type, mips_register_convert_to_type):
2310 New functions.
2311 (mips_gdbarch_init): Set up function_start_offset,
2312 register_virtual_size, pc_in_sigtramp.
d05285fa 2313
e76f1f2e
AC
23142002-08-15 Andrew Cagney <ac131313@redhat.com>
2315
2316 * infcmd.c (vector_info): New function.
2317 (_initialize_infcmd): Add command "info vector".
2318 (print_vector_info): New function.
2319
2320 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2321 * gdbarch.h, gdbarch.c: Regenerate.
2322
4782dc19
AC
23232002-08-15 Andrew Cagney <ac131313@redhat.com>
2324
2325 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2326 ``print_all''. Only print vector registers when ``print_all''.
2327
23e3a7ac
AC
23282002-08-15 Andrew Cagney <ac131313@redhat.com>
2329
8e186fd6
AC
2330 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2331 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2332
23e3a7ac
AC
2333 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2334 Add `args' parameter.
2335 * gdbarch.h, gdbarch.c: Regenerate.
2336
2337 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2338
2339 * infcmd.c (float_info): Call print_float_info.
2340 (print_float_info): New function. By default, print the
2341 floating-point registers.
2342
2343 * arch-utils.h (default_print_float_info): Delete declaration.
2344 * arch-utils.c (default_print_float_info): Delete function.
2345
e0ca2bb9
MK
23462002-08-16 Mark Kettenis <kettenis@gnu.org>
2347
3f733acc
MK
2348 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2349 out define.
2350
7d8d2918
MK
2351 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2352 FRAME.
2353
1c7cc583
MK
2354 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2355 * configure.host: Make i[3456]86-*-aix host obsolete.
2356 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2357 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2358 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2359 config/i386/xm-i386aix.h: Make files obsolete.
2360 * i386aix-nat.c: Make file obsolete.
2361 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2362 (i386aix-nat.o): Make target obsolete.
2363
e0ca2bb9
MK
2364 * config/i386/nm-gnu.h: Removed.
2365 * config/i386/nm-i386gnu.h: New file.
2366 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2367 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2368 Moved here from ...
2369 * config/i386/tm-i386gnu.h: ... here. Removed.
2370 * config/i386/xm-i386gnu.h: Removed.
2371 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2372 (NAT_FILE): Set to nm-i386gnu.h.
2373 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2374 * i386-tdep.c: New file.
2375 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2376 (i386gnu-tdep.o): Specify dependencies.
2377
16057ec7 23782002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2379
6b99ee2e
MK
2380 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2381 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2382 Adjust a few comments to reflect reality a bit closer.
2383 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2384 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2385 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2386 target_insert_watchpoint, target_remove_watchpoint):
2387 Move defines to ...
2388 * config/i386/nm-i386sco5.h: ... here.
2389 (kernel_u_size): Add prototype. Improve a few comments and add
2390 protection against multiple inclusion.
2391
d9a6f65c
MK
2392 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2393 out define.
2394
047eff6a
MK
2395 * uw-thread.c (SP_ARG0): Define if not already defined.
2396 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2397
dcdb1290
MK
2398 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2399
5d2d0b2a
MK
2400 * config/i386/tm-i386.h: Don't include "regcache.h".
2401
61113f8b
MK
2402 * i387-tdep.h (i387_print_float_info): New prototype.
2403 * i387-tdep.c (print_i387_value, print_i387_ext,
2404 print_i387_status_word, print_i387_control_word): Add `struct
2405 ui_file *' argument and use it for output.
2406 (i387_print_float_info): Renamed from i387_float_info. Add
2407 `struct gdbarch *' and `struct ui_file *' arguments and use the
2408 latter for output.
2409 * i386-tdep.c: Include "i387-tdep.h".
2410 (i386_gdbarch_init): Set print_float_info.
2411 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2412 (FLOAT_INFO): Remove define.
2413
46e0f506
MS
24142002-08-13 Michael Snyder <msnyder@redhat.com>
2415
2416 * mips-tdep.c (mips_push_arguments): Rename to
2417 mips_eabi_push_arguments, and tune for EABI.
2418 (MIPS_REGS_HAVE_HOME_P): Delete.
2419 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2420 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2421 Delete references to mips_regs_have_home_p.
2422
409268de
KS
24232002-08-14 Keith Seitz <keiths@redhat.com>
2424
2425 * Makefile.in (install-gdbtk): Create insight plugin directory.
2426 Install plugins.tcl file.
2427
ffc6a242
KS
24282002-08-14 Keith Seitz <keiths@redhat.com>
2429
2430 * configure.in: Move SUBDIRS to near top of the file so that
2431 --enable options may add things to it.
2432 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2433 * configure: Regenerate.
2434
ebafbe83
MS
24352002-08-13 Michael Snyder <msnyder@redhat.com>
2436
2437 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2438 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2439 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2440
32f6f25d
AC
24412002-08-13 Andrew Cagney <ac131313@redhat.com>
2442
2443 * vax-tdep.c (vax_get_saved_register): Delete function.
2444 (vax_gdbarch_init): Update.
2445 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2446 (ns32k_gdbarch_init): Update.
2447 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2448 (alpha_gdbarch_init): Update.
2449
53826de9
AC
24502002-08-13 Andrew Cagney <cagney@redhat.com>
2451
2452 * regcache.c (init_regcache_descr): Overallocate the
2453 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2454 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2455 nr_raw_registers.
2456 (set_register_cached): Add range checking assertions. Use
2457 current_regcache.
2458
16057ec7 24592002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2460
2461 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2462 numbers for MMX registers.
2463
7b4c2dce
AC
24642002-08-13 Andrew Cagney <cagney@redhat.com>
2465
2466 * i386-tdep.c (i386_gdbarch_init): Use
2467 generic_unwind_get_saved_register.
2468
1e03ad20
KB
24692002-08-13 Kevin Buettner <kevinb@redhat.com>
2470
2471 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2472 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2473 target vector.
2474 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2475 Delete. Add comment regarding this now-deleted target method.
2476
548bcbec
SC
24772002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2478
2479 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2480 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2481 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2482 real PC and the page number (if it's within the memory bank window).
2483 (m68hc11_pseudo_register_write): Likewise when saving.
2484 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2485 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2486 (m68hc11_register_raw_size): And use 32-bit for it.
2487 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2488 16K memory bank is used by the prog; also use the virtual pc.
2489
7df11f59
SC
24902002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2491
2492 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2493 (m68hc11_gdbarch_init): Install it in gdbarch.
2494 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2495 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2496 (MSYMBOL_SIZE): New for documentation.
2497 (insn_return_kind): Enum to specify how a function returns.
2498 (frame_extra_info): Cleanup and record the return mode.
2499 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2500 register in address computation.
2501 (m68hc11_get_return_insn): New to obtain the return instruction used
2502 by the function.
2503 (m68hc11_frame_init_saved_regs): Take into account the return
2504 instruction used by the function for far and interrupt functions.
2505 (m68hc11_init_extra_frame_info): Take into account page register.
2506 (m68hc11_frame_args_address): Adjust according to the return mode.
2507 (show_regs): Print page register only when it's used.
2508
5706502a
SC
25092002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2510
2511 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2512 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2513 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2514 registers.
2515 (m68hc11_register_raw_size): Likewise.
2516
28fc6740
AC
25172002-08-13 Andrew Cagney <cagney@redhat.com>
2518
2519 * i386-tdep.c (i386_register_name): Handle mmx registers.
2520 (mmx_regnum_p): New function.
2521 (i386_mmx_names): New array.
2522 (mmx_num_regs): New variable.
2523 (i386_pseudo_register_read): New function.
2524 (i386_pseudo_register_write): New function.
2525 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2526
2527 * regcache.c (regcache_raw_read_unsigned): New function.
2528 (regcache_raw_read_signed): New function.
2529 * regcache.h (regcache_raw_read_unsigned): Declare.
2530 (regcache_raw_read_signed): Declare.
2531
a378f419
AC
25322002-08-13 Andrew Cagney <cagney@redhat.com>
2533
2534 * regcache.c (regcache_raw_read_as_address): Delete function.
2535 (regcache_cooked_read_signed): New function.
2536 (regcache_cooked_read_unsigned): New function.
2537 * regcache.h (regcache_cooked_read_signed): Declare.
2538 (regcache_cooked_read_unsigned): Declare.
2539 (regcache_raw_read_as_address): Delete declaration.
2540
2541 * blockframe.c (generic_read_register_dummy): Use
2542 regcache_cooked_read_unsigned.
2543 * i386-tdep.c (i386_extract_struct_value_address): Use
2544 regcache_cooked_read_unsigned.
2545
81967506
SC
25462002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2547
2548 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2549 double sizes according to ELF ABI flags.
2550 (gdbarch_tdep): Record elf_flags.
2551
ffe1f3ee
SC
25522002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2553
2554 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2555 (m6812_prolog): They can appear in 68HC12 function prologue.
2556 (m68hc11_frame_chain): Cleanup.
2557
98216c5d
AC
25582002-08-12 Andrew Cagney <cagney@redhat.com>
2559
2560 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2561 declarations.
2562 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2563 (i386_linux_register_raw_size): Delete function.
2564 (i386_linux_init_abi): Update.
2565 * i386-tdep.c (i386_register_raw_size): Delete function.
2566 (i386_register_byte): Delete function.
2567 (i386_gdbarch_init): Update.
2568 (i386_register_size): Delete array.
2569 (i386_register_offset): Delete array.
2570
2571 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2572 (REGISTER_RAW_SIZE): Delete macro.
2573 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2574 (REGISTER_BYTE): Delete macro.
2575
3b19021e
AS
25762002-08-11 Aidan Skinner <aidan@velvet.net>
2577
2578 * ada-lang.c (ada_lookup_partial_symbol)
2579 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2580 prototype names so that grep ^func works properly.
2581
2582 * ada-lang.c (ada_array_element_type)
2583 (ada_lookup_partial_symbol): Fix typos in parameter list.
2584
2585 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2586 Fix prototype names so that grep ^func works properly.
2587
b063e7a2
AC
25882002-08-10 Andrew Cagney <cagney@redhat.com>
2589 Elena Zannoni <ezannoni@redhat.com>
2590 Martin M. Hunt <hunt@redhat.com>
2591
2592 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2593 (build_builtin_type_vec128i): Set the vector bit.
2594 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2595 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2596 (build_builtin_type_vec64): New function.
2597 (build_builtin_type_vec64i): New function.
2598 (build_gdbtypes): Initialize builtin_type_vec64 and
2599 builtin_type_vec64i.
2600
a7e3c2ad
AC
26012002-08-09 Andrew Cagney <cagney@redhat.com>
2602
2603 * regcache.c (regcache_dump): Compare the register offset
2604 with REGISTER_BYTE.
2605 * arch-utils.c (generic_register_byte): New function.
2606 * arch-utils.h (generic_register_byte): Declare.
2607 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2608 * gdbarch.h, gdbarch.c: Regenerate.
2609
af030b9a
AC
26102002-08-09 Andrew Cagney <cagney@redhat.com>
2611
2612 * regcache.c: Include "gdbcmd.h"
2613 (_initialize_regcache): Add commands "maintenance print
2614 registers", "maintenance print raw-registers" and "maintenance
2615 print cooked-registers".
2616 (enum regcache_dump_what): Define.
2617 (dump_endian_bytes): New function.
2618 (regcache_dump): New function.
2619 (regcache_print): New function.
2620 (maintenance_print_registers): New function.
2621 (maintenance_print_raw_registers): New function.
2622 (maintenance_print_cooked_registers): New function.
2623 * Makefile.in (regcache.o): Update dependencies.
2624
cb3d25d1
MS
26252002-08-09 Michael Snyder <msnyder@redhat.com>
2626
2627 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2628 (mips_push_arguments): Correct some comments. Use paddr_nz
2629 for printing addresses in debug output. Replace static
2630 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2631 (mips_n32n64_push_arguments): New function, cloned from
2632 mips_push_arguments and tuned for the n32/n64 ABI.
2633 (mips_push_register): Buffer needs dynamic allocation.
2634 (mips_print_register): Ditto.
2635 (do_gp_register_row): Ditto.
2636 (mips_store_return_value): Ditto.
2637 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2638
2163ab9d
DH
26392002-08-09 Don Howard <dhoward@redhat.com>
2640
2641 * memattr.c (mem_info_command): Print special case of upper bound
2642 as max CORE_ADDR + 1.
2643
b78bcb18
MS
26442002-08-08 Michael Snyder <msnyder@redhat.com>
2645
2646 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2647 returns structs by ref if they're too big to fit in two registers.
2648
ffabd70d
KB
26492002-08-09 Kevin Buettner <kevinb@redhat.com>
2650
2651 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2652 saved regs value.
2653 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2654 mips_find_saved_regs().
2655 (mips_pop_frame): Likewise.
2656
fbcdb4a3
KB
26572002-08-09 Kevin Buettner <kevinb@redhat.com>
2658
2659 * blockframe.c (frame_saved_regs_register_unwind): Revise
2660 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2661 frames are in use.
2662
3c3bea1c
GS
26632002-08-09 Grace Sainsbury <graces@redhat.com>
2664
2665 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2666 T-packets; the 'a' is not taken as a register number.
2667 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2668 (remote_stopped_data_address): New functions; add to target
2669 vector.
2670 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2671 prototypes to match other implementations of this
2672 function. replace integer argument with pointer -- the length
2673 field in the Z-packet is the length of what is pointed to or 1 if
2674 pointer is null. Add to target vector.
2675 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2676 target vector.
2677
2678 From Mark Salter:
2679 * remote.c (remote_wait): Add support to extract optional
2680 watchpoint information from T-packet. Ignore unrecognized
2681 optional info in T-packet.
2682 (remote_async_wait): Ditto.
2683
5d1d95de
CV
26842002-08-09 Corinna Vinschen <vinschen@redhat.com>
2685
2686 * cli/cli-dump.c: Change fopen modes to use binary open modes
2687 as defined in include/fopen-bin.h throughout.
2688
c86b5b38
MS
26892002-08-08 Michael Snyder <msnyder@redhat.com>
2690
2691 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2692
b30590dc
KB
26932002-08-08 Kevin Buettner <kevinb@redhat.com>
2694
2695 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2696 assertion failure by returning early after a warning.
2697
498868ed
KB
26982002-08-08 Kevin Buettner <kevinb@redhat.com>
2699
2700 * mips-tdep.c (mips_find_saved_regs): Make static.
2701 (mips_frame_init_saved_regs): New function.
2702 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2703 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2704 (mips_find_saved_regs): Delete declaration.
2705
b2dd6311
GS
27062002-08-08 Grace Sainsbury <graces@redhat.com>
2707
3c3bea1c
GS
2708 * remote.c (remote_wait, remote_async_wait): Change
2709 thread_num from int to ULONGEST.
2710 (unpack_varlen_hex): Change result parameter from
2711 int * to ULONGEST *.
b2dd6311 2712
ea47855f
AC
27132002-08-08 Andrew Cagney <ac131313@redhat.com>
2714
2715 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2716 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2717 powerpc*-*-*.
2718 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2719
69db8bae
AC
27202002-08-08 Andrew Cagney <cagney@redhat.com>
2721
2722 * gcore.c (override_derive_stack_segment): Delete variable.
2723 (preempt_derive_stack_segment): Delete function.
2724 (derive_stack_segment): Delete function.
2725 (default_derive_stack_segment): Renamed to derive_stack_segment.
2726 (override_derive_heap_segment): Delete variable.
2727 (preempt_derive_heap_segment): Delete function.
2728 (derive_heap_segment): Delete function.
2729 (default_derive_heap_segment): Rename to derive_heap_segment.
2730
cb811fe7
MS
27312002-08-06 Michael Snyder <msnyder@redhat.com>
2732
2733 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2734 * mips-tdep.c (mips_EABI_use_struct_convention,
2735 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2736 New functions. (mips_use_struct_convention): Delete.
2737 (mips_gdbarch_init): set use_gdbarch_convention.
2738
8b389c40
MS
27392002-08-06 Michael Snyder <msnyder@redhat.com>
2740
2741 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2742 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2743 mips_o32_reg_struct_has_addr): New functions.
2744 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2745
5c27f28a
AC
27462002-08-07 Andrew Cagney <ac131313@redhat.com>
2747
2748 * regcache.c (pseudo_register): Delete function.
2749 (fetch_register): Delete function.
2750 (store_register): Delete function.
2751 (regcache_raw_read, legacy_read_register_gen): Use
2752 target_fetch_registers instead of fetch_register.
2753 (legacy_write_register_gen, regcache_raw_write): Use
2754 target_store_register instead of store_register.
2755 (write_register_bytes): Ditto.
2756
2757 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2758 (STORE_PSEUDO_REGISTER): Delete.
2759 * gdbarch.h, gdbarch.c: Regenerate.
2760
5b331675
CV
27612002-08-06 Corinna Vinschen <vinschen@redhat.com>
2762
2763 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2764 write dump file binary.
2765
6acdf5c7
MS
27662002-08-05 Michael Snyder <msnyder@redhat.com>
2767
2768 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2769 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2770 (mips_gdbarch_init): Set N32 target to be mips64.
2771
b2f01c35
KB
27722002-08-06 Kevin Buettner <kevinb@redhat.com>
2773
2774 * frame.c (find_saved_register): Break out of loop once saved
2775 register address is found. Don't mention sparc in loop comment
2776 anymore.
2777
63db5580
KB
27782002-08-06 Kevin Buettner <kevinb@redhat.com>
2779
2780 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2781 mips_default_saved_regsize to 8.
2782
5e34e75e
AC
27832002-08-06 Andrew Cagney <ac131313@redhat.com>
2784
2785 * gcore.c: Do not include <sys/procfs.h>.
2786 * Makefile.in (gcore.o): Update dependencies.
2787
eb4c54a2
AC
27882002-08-06 Andrew Cagney <cagney@redhat.com>
2789
2790 * configure.tgt: Make arc-*-* obsolete.
2791 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2792 * MAINTAINERS: Make arc-elf obsolete.
2793 * arc-tdep.c: Make file obsolete.
2794 * config/arc/arc.mt: Ditto.
2795 * config/arc/tm-arc.h: Ditto.
2796
ced15480
TR
27972002-08-05 Theodore A. Roth <troth@verinet.com>
2798
c1bab85b 2799 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2800
b4743822
AC
28012002-08-05 Andrew Cagney <ac131313@redhat.com>
2802
2803 * mcore-tdep.c (mcore_gdbarch_init): Use
2804 generic_unwind_get_saved_register instead of
2805 generic_get_saved_register.
2806 * v850-tdep.c (v850_gdbarch_init): Ditto.
2807 * frv-tdep.c (frv_gdbarch_init): Ditto.
2808 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2809 * s390-tdep.c (s390_gdbarch_init): Ditto.
2810 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2811 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2812 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2813
3956d554
JB
28142002-08-05 Joel Brobecker <brobecker@gnat.com>
2815
2816 * objfiles.h: Add missing #include "symfile.h"
2817
2818 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2819
8249c0d6
AC
28202002-08-04 Andrew Cagney <ac131313@redhat.com>
2821
2822 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2823 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2824 of FIELD_BITSIZE.
2825
b9d14705
DJ
28262002-08-04 Daniel Jacobowitz <drow@mvista.com>
2827
2828 * NEWS: Cleanup and nitpick.
2829
dd73b9bb
AC
28302002-08-03 Andrew Cagney <ac131313@redhat.com>
2831
2832 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2833
043a27f8
AC
28342002-08-03 Andrew Cagney <ac131313@redhat.com>
2835
2836 * Makefile.in (gdbtk-bp.o): Update dependencies.
2837 (gdbtk-register.o): Ditto.
2838 (gdbtk-varobj.o): Ditto.
2839
46ce284d
AC
28402002-08-03 Andrew Cagney <cagney@redhat.com>
2841
2842 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2843 m68hc11_fetch_pseudo_register.
2844 (m68hc11_pseudo_register_write): Replace
2845 m68hc11_store_pseudo_register.
2846 (m68hc11_gdbarch_init): Update.
2847
b66d6d2e
AC
2848Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2849
2850 * gdbarch.sh: Include "gdb_string.h".
2851 * gdbarch.c: Regenerate.
2852
2853 * regcache.c: Include "gdb_string.h".
2854 * ax-general.c: Ditto.
2855 * varobj.c: Ditto.
2856 * std-regs.c: Ditto.
2857 * fbsd-proc.c: Ditto.
2858 * thread.c: Ditto.
2859
2860 * Makefile.in (regcache.o): Update dependencies.
2861 (thread.o, gdbarch.o): Ditto.
2862 (ax-general.o, gdbarch.o): Ditto.
2863 (varobj.o, std-regs.o): Ditto.
2864 (fbsd-proc.o): Specify dependencies.
2865
29e1842b
AC
28662002-08-02 Andrew Cagney <cagney@redhat.com>
2867
2868 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2869 regnum.
2870 (regcache_cooked_write): Ditto.
2871
68365089
AC
28722002-08-02 Andrew Cagney <ac131313@redhat.com>
2873
2874 * regcache.c (regcache_cooked_read): New function.
2875 (regcache_cooked_write): New function.
2876 (read_register_gen): Rewrite using regcache_cooked_read.
2877 (write_register_gen): Rewrite using regcache_cooked_write.
2878
2879 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2880 Declare.
2881
d8124050
AC
28822002-08-02 Andrew Cagney <cagney@redhat.com>
2883
2884 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2885 Replace the architecture methods register_read and register_write.
2886 * gdbarch.h, gdbarch.c: Regenerate.
2887 * regcache.c (init_regcache_descr): Update.
2888 (read_register_gen): Update.
2889 (write_register_gen): Update.
2890 (supply_register): Update comment.
2891
2892 * sh-tdep.c (sh_gdbarch_init): Update.
2893 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2894 `regcache' and `gdbarch' parameters. Make `buffer' a void
2895 pointer. Update code.
2896 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2897 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2898 void pointer. Update code.
2899 (sh64_register_write): Delete.
2900 (sh4_register_read): Delete.
2901 (sh64_register_read): Delete.
2902 (sh4_register_write): Delete.
2903 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2904 void pointer, `to' parameter a void pointer.
2905 (sh_sh64_register_convert_to_raw): Ditto.
2906
a6425924
KB
29072002-08-01 Kevin Buettner <kevinb@redhat.com>
2908
2909 * mips-tdep.c (mips_register_virtual_type): Use architecture
2910 invariant return values.
2911
ff5922b5
AC
29122002-08-01 Andrew Cagney <cagney@redhat.com>
2913
2914 * linux-proc.c: Include "gdb_string.h".
2915 * Makefile.in (linux-proc.o): Update dependency list.
2916
32a6503c
KB
29172002-08-01 Kevin Buettner <kevinb@redhat.com>
2918
2919 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2920 comment.
2921
ccaa32c7
GS
29222002-08-01 Grace Sainsbury <graces@redhat.com>
2923
2924 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2925 to_insert_watchpoint, to_remove_watchpoint,
2926 to_stopped_by_watchpoint, to_stopped_data_address,
2927 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2928 target vecctor. Define their corresponding macros so they call
2929 them.
2930
2931 * target.c: Add default and debug versions of for
2932 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2933 to_insert_watchpoint, to_remove_watchpoint,
2934 to_stopped_by_watchpoint, to_stopped_data_address,
2935 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2936
78fde5f8
KB
29372002-08-01 Kevin Buettner <kevinb@redhat.com>
2938
2939 * mips-tdep.c (mips_register_virtual_type): New function.
2940 (mips_gdbarch_init): Register mips_register_virtual_type()
2941 with gdbarch machinery.
2942 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2943 this file instead of tm-bigmips.h.
2944 (MIPS_REGSIZE): Delete this macro.
2945 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2946 multiarch version in mips-tdep.c will be found.
2947
db034ac5
AC
29482002-08-01 Andrew Cagney <cagney@redhat.com>
2949
2950 * NEWS: Menion that CHILL has been made obsolete.
2951
2952 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
2953 * stabsread.c (read_range_type): Ditto.
2954 * gdbtypes.h: Ditto.
2955 * language.c (binop_type_check): Ditto.
2956 (binop_result_type): Ditto.
2957 (integral_type): Ditto.
2958 (character_type): Ditto.
2959 (string_type): Ditto.
2960 (boolean_type): Ditto.
2961 (structured_type): Ditto.
2962 (lang_bool_type): Ditto.
2963 (binop_type_check): Ditto.
2964 * language.h (_LANG_chill): Ditto.
2965 * dwarfread.c (set_cu_language): Ditto.
2966 * dwarfread.c (CHILL_PRODUCER): Ditto.
2967 * dwarfread.c (handle_producer): Ditto.
2968 * expression.h (enum exp_opcode): Ditto.
2969 * eval.c: Ditto for comments.
2970 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2971 * expprint.c (print_subexp): Ditto.
2972 (print_subexp): Ditto.
2973 * valops.c (value_cast): Ditto.
2974 (search_struct_field): Ditto.
2975 * value.h (COERCE_VARYING_ARRAY): Ditto.
2976 * symfile.c (init_filename_language_table): Ditto.
2977 (add_psymbol_with_dem_name_to_list): Ditto.
2978 * valarith.c (value_binop): Ditto.
2979 (value_neg): Ditto.
2980 * valops.c (value_slice): Ditto.
2981 * symtab.h (union language_specific): Ditto.
2982 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2983 (SYMBOL_DEMANGLED_NAME): Ditto.
2984 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2985 * defs.h (enum language): Ditto.
2986 * symtab.c (got_symtab): Ditto.
2987 * utils.c (fprintf_symbol_filtered): Ditto.
2988
2989 * ch-typeprint.c: Make file obsolete.
2990 * ch-valprint.c: Make file obsolete.
2991 * ch-lang.h: Make file obsolete.
2992 * ch-exp.c: Make file obsolete.
2993 * ch-lang.c: Make file obsolete.
2994
2995 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2996 CHILL_LIB.
2997 (TARGET_FLAGS_TO_PASS): Ditto.
2998 (CHILLFLAGS): Obsolete.
2999 (CHILL): Obsolete.
3000 (CHILL_FOR_TARGET): Obsolete.
3001 (CHILL_LIB): Obsolete.
3002 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3003 ch-valprint.c.
3004 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3005 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3006 ch-lang.o.
3007 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3008 targets.
3009
8aaf0b47
JB
30102002-07-31 Joel Brobecker <brobecker@gnat.com>
3011
3012 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3013 This does not change anything at the moment, but will be helpful
3014 later when full Ada support is integrated.
3015
f3a7b3a5
KB
30162002-07-31 Kevin Buettner <kevinb@redhat.com>
3017
3018 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3019 help message.
3020
fb850278
KB
30212002-07-31 Kevin Buettner <kevinb@redhat.com>
3022
3023 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3024 and save it in a local variable. Use variable in later test.
3025
e3bddbfa
KB
30262002-07-31 Kevin Buettner <kevinb@redhat.com>
3027
3028 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3029 test. (Thanks to Daniel Jacobowitz.)
3030
28d169de
KB
30312002-07-31 Kevin Buettner <kevinb@redhat.com>
3032
3033 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3034 (mips_abi_strings): Add "n64".
3035 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3036
7fe7e44e
KB
30372002-07-31 Kevin Buettner <kevinb@redhat.com>
3038
3039 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3040 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3041
c6caf090
KB
30422002-07-31 Kevin Buettner <kevinb@redhat.com>
3043
3044 * utils.c (host_pointer_to_address, address_to_host_pointer):
3045 Use gdb_assert() instead of explicit call to internal_error().
3046
c41669e0
KB
30472002-07-30 Kevin Buettner <kevinb@redhat.com>
3048
3049 * Makefile.in (rs6000-nat.o): Update dependencies.
3050
3051 From Nicholas Duffek:
3052 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3053 (aix-thread.o): New rule.
3054 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3055 * config/powerpc/aix432.mh: New file.
3056
2fda4977
DJ
30572002-07-30 Daniel Jacobowitz <drow@mvista.com>
3058
3059 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3060 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3061 (fetch_core_registers, ppc_linux_supply_gregset)
3062 (ppc_linux_supply_fpregset): New functions.
3063 (ppc_linux_regset_core_fns): New.
3064 (_initialize_ppc_linux_tdep): Call add_core_fns.
3065 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3066 and ppc_linux_supply_gregset.
3067 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3068 (supply_fpregset): Call ppc_linux_supply_fpregset.
3069 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3070 corelow.o.
3071 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3072
729051e6
DJ
30732002-07-30 Daniel Jacobowitz <drow@mvista.com>
3074
3075 * symtab.c (lookup_symbol): Demangle before lowercasing.
3076
5f8a3188
AC
30772002-07-30 Andrew Cagney <ac131313@redhat.com>
3078
3079 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3080 declaration.
3081 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3082 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3083 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3084 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3085 "gdb_string.h".
3086 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3087 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3088 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3089 (avr-tdep.o, mon960-rom.o): Ditto.
3090 (aout_stabs_gnu_h): Define.
3091 (symtab_h): Remove $(gdb_obstack_h).
3092
67f07146
JB
30932002-07-30 Jim Blandy <jimb@redhat.com>
3094
3095 Patch from David Carlton <carlton@math.stanford.edu>:
3096 * gdbinit.in: Move the `dir' commands that add GDB's own source
3097 directory to the search path to the end, so that the `gdb' source
3098 directory will be searched first.
3099
04ea0df1
AC
31002002-07-29 Andrew Cagney <ac131313@redhat.com>
3101
3102 * gdb_obstack.h: New file.
3103 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3104 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3105 * objfiles.h: Include "gdb_obstack.h".
3106 * Makefile.in (gdb_obstack_h): Define.
3107 (symtab_h): Add $(gdb_obstack_h).
3108 (objfiles_h): Add $(gdb_obstack_h).
3109
3110 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3111 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3112 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3113 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3114 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3115 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3116 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3117 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3118
3119 * Makefile.in (bcache.o): Update dependencies.
3120 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3121 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3122 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3123 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3124 (stabsread.o, symfile.o, symmisc.o): Ditto.
3125 (symtab.o, typeprint.o, macroexp.o): Ditto.
3126 (macrotab.o, mdebugread.o): Ditto.
3127 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3128 (coff_ecoff_h, aout_aout64_h): Define.
3129 (aout_stabs_gnu_h, libaout_h): Define.
3130
d138e37a
AC
31312002-07-29 Andrew Cagney <cagney@redhat.com>
3132
3133 * regcache.c (struct regcache_descr): Rename nr_registers to
3134 nr_cooked_registers. Revise comments describing the structure
3135 member fields.
3136 (init_regcache_descr): Update.
3137 (init_legacy_regcache_descr): Update.
3138 (read_register_gen, write_register_gen): When a cooked register in
3139 the raw register range, directly access the value from the raw
3140 register cache.
3141
460e6ec3
AC
31422002-07-29 Andrew Cagney <ac131313@redhat.com>
3143
3144 * z8k-tdep.c: Do not include "obstack.h".
3145 * h8300-tdep.c, h8500-tdep.c: Ditto.
3146 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3147 * valprint.c, v850-tdep.c: Ditto.
3148 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3149 * mn10200-tdep.c: Ditto.
3150
3151 * Makefile.in (z8k-tdep.o): Update dependencies.
3152 (m68hc11-tdep.o, valprint.o): Ditto.
3153 (v850-tdep.o, d10v-tdep.o): Ditto.
3154 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3155 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3156 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3157 (sh_opc_h, gdb_sim_sh_h): Define.
3158 (elf_sh_h, elf_bfd_h): Define.
3159 (opcode_m68hc11_h): Define.
3160 (OPCODES_SRC, OPCODES_DIR): define.
3161 (OPCODES): Use $(OPCODES_DIR).
3162 (gdb_sim_d10v_h): Rename sim_d10v_h.
3163 (gdb_sim_arm_h): Rename sim_arm_h.
3164
790c9cf0
KB
31652002-07-26 Kevin Buettner <kevinb@redhat.com>
3166
3167 * utils.c (host_pointer_to_address, address_to_host_pointer):
3168 Change internal_error() message to indicate function responsible
3169 for the error.
3170
9647fa49
KB
31712002-07-26 Kevin Buettner <kevinb@redhat.com>
3172
3173 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3174 calls to local_hex_string_custom().
3175
dabbe2c0
KB
31762002-07-26 Kevin Buettner <kevinb@redhat.com>
3177
3178 * irix5-nat.c: Move IRIX shared library support from here...
3179 * solib-irix.c: ...to here. Revised substantially to work with
3180 generic solib framework.
3181
b96d0a4e
KB
3182 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3183 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3184 * mips-irix-tdep.c: New file.
3185
313fb2f6
KB
3186 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3187 (mips-irix-tdep.o, solib-irix.o): New rules.
3188 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3189 solib-irix.o.
3190 * config/mips/irix6.mt (TDEPFILES): Likewise.
3191 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3192
ab2eaf26
KB
31932002-07-26 Kevin Buettner <kevinb@redhat.com>
3194
177e4768 3195 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
3196 disabled (via ``#if 0'') includes.
3197
7244546a
KB
31982002-07-26 Kevin Buettner <kevinb@redhat.com>
3199
3200 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3201 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3202 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3203 Add support for the fpscr register.
3204 * rs6000-nat.c (regmap, fetch_inferior_registers)
3205 (store_inferior_registers, fetch_core_registers): Likewise.
3206
dd7be90a
KB
32072002-07-26 Kevin Buettner <kevinb@redhat.com>
3208
3209 * rs6000-nat.c (language.h): Include.
3210 (special_regs): Delete this array.
3211 (regmap): New function.
3212 (fetch_register, store_register): Use regmap() to map gdb
3213 register numbers to ptrace register numbers. Also, use
3214 outputs from regmap() to make decisions regarding type of
3215 ptrace() call to make. In particular, don't compare against
3216 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3217 (fetch_inferior_registers, store_inferior_registers): Where
3218 possible, obtain register numbers from tdep struct. Don't
3219 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3220 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3221 (LAST_UISA_SP_REGNUM): Delete.
3222
11bf77db
KB
32232002-07-25 Kevin Buettner <kevinb@redhat.com>
3224
3225 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
3226 (fetch_registers, store_register, fetch_core_registers): Don't
3227 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
3228 regcache_collect() as appropriate.
3229 (find_toc_address): Format hex address with local_hex_string().
3230
06afebeb
AC
32312002-07-25 Andrew Cagney <ac131313@redhat.com>
3232
3233 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3234 bfd/elf32-frv.c.
3235
8c554d79
TT
32362002-07-24 Tom Tromey <tromey@redhat.com>
3237
3238 * jv-exp.y: Marked all strings with _().
3239 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3240 internal_error.
3241 (MethodInvocation, CastExpression, parse_number, yyerror,
3242 java_type_from_name, push_expression_name, yylex): Typo fixes.
3243
e4c242d9
DJ
32442002-07-24 Daniel Jacobowitz <drow@mvista.com>
3245
3246 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3247 (tee_file_flush, tee_file_write, tee_file_fputs)
3248 (tee_file_isatty): New.
3249 * ui-file.h (tee_file_new): Add prototype.
3250
ebf56fd3
AS
32512002-07-24 Aidan Skinner <aidan@velvet.net>
3252
3253 * ada-lang.c: Change k&r style function definitions to prototyped
3254 form.
3255 * ada-typeprint.c: Change k&r style function definitions to prototyped
3256 form.
3257 * ada-valprint.c: Change k&r style function definitions to prototyped
3258 form.
3259
7fb623f7
AC
32602002-07-24 Andrew Cagney <cagney@redhat.com>
3261
3262 * README: Remove reference to remote-bug.
3263 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3264 remote-bug.c.
3265 (m88k-nat.o): Delete rule.
3266 (m88k-tdep.o): Delete rule.
3267 (remote-bug.o): Delete rule.
3268 * MAINTAINERS: Mark as obsolete.
3269 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3270 * m88k-tdep.c: Make file obsolete.
3271 * config/m88k/m88k.mh: Ditto.
3272 * config/m88k/delta88v4.mh: Ditto.
3273 * config/m88k/delta88v4.mt: Ditto.
3274 * config/m88k/delta88.mt: Ditto.
3275 * config/m88k/delta88.mh: Ditto.
3276 * remote-bug.c: Ditto.
3277 * config/m88k/tm-delta88.h: Ditto.
3278 * config/m88k/nm-delta88v4.h: Ditto.
3279 * config/m88k/xm-delta88.h: Ditto.
3280 * config/m88k/xm-dgux.h: Ditto.
3281 * config/m88k/tm-m88k.h: Ditto.
3282 * config/m88k/nm-m88k.h: Ditto.
3283 * config/m88k/tm-delta88v4.h: Ditto.
3284 * m88k-nat.c: Ditto.
3285 * cxux-nat.c: Ditto.
3286 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3287 and m88*-*-* obsolete.
3288 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3289 m88*-*-* obsolete.
3290
37611a2b
AC
32912002-07-24 Andrew Cagney <cagney@redhat.com>
3292
3293 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3294 constant. Same for local pointer variables.
3295 (extract_signed_integer): Ditto.
3296 * defs.h (extract_unsigned_integer): Update.
3297 (extract_signed_integer): Update.
3298
1aaa5f99
AC
32992002-07-24 Andrew Cagney <cagney@redhat.com>
3300
3301 * regcache.c (regcache_raw_write): Change buf parameter to a
3302 constant void pointer.
3303 (regcache_raw_read): Change buf parameter to a void pointer.
3304 (legacy_write_register_gen): Change myaddr parameter a constant
3305 void pointer.
3306 (supply_register): Change val parameter to a const void pointer.
3307 * regcache.h (regcache_raw_write): Update declaration.
3308 (regcache_raw_read): Update declaration.
3309 (supply_register): Update declaration.
3310
b4f5539f
TT
33112002-07-24 Tom Tromey <tromey@redhat.com>
3312
3313 * defs.h (gdb_readline_wrapper): Declare.
3314 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3315 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3316 * top.c (gdb_readline_wrapper): New function.
3317 (command_line_input): Use it.
3318
0818c12a
AC
33192002-07-24 Andrew Cagney <cagney@redhat.com>
3320
3321 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3322 regcache_read and regcache_write.
3323 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3324 * regcache.c: Update.
3325 * sh-tdep.c (sh64_push_arguments): Update comment.
3326 (sh_pseudo_register_read): Update.
3327 (sh_pseudo_register_write): Update.
3328 (sh4_register_read): Update.
3329 (sh4_register_write): Update.
3330 (sh64_pseudo_register_read): Update.
3331 (sh64_pseudo_register_write): Update.
3332 (sh64_register_read): Update.
3333 (sh64_register_write): Update.
3334 * i386-tdep.c (i386_extract_return_value): Update.
3335 (i386_extract_struct_value_address): Update.
3336 (i386_extract_return_value): Update.
3337 * blockframe.c (generic_read_register_dummy): Update.
3338 (generic_call_dummy_register_unwind): Update
3339 * infrun.c (write_inferior_status_register): Update.
3340
f7321c06
JB
33412002-07-23 Jim Blandy <jimb@redhat.com>
3342
3343 * parser-defs.h (expression_context_pc): Make this extern.
3344 (Thanks to Michael Snyder.)
3345
2037aebb
AC
33462002-07-23 Andrew Cagney <ac131313@redhat.com>
3347
3348 GDB 5.2.1 released from 5.2 branch.
3349 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3350 * README: Update to mention 5.2.1.
3351
66504d44
MS
33522002-07-23 Mark Salter <msalter@redhat.com>
3353
3354 * remote.c (remote_read_bytes): Fix check for error.
3355
27bae383
KB
33562002-07-22 Kevin Buettner <kevinb@redhat.com>
3357
3358 * aix-thread.c (language.h): Include.
3359 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3360 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3361 Print newlines at end of debug messages.
3362 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3363 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3364
33652002-07-22 Kevin Buettner <kevinb@redhat.com>
3366
3367 * aix-thread.c (ppc-tdep.h): Include.
3368 (special_register_p): New function.
3369 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3370 (store_regs_user_thread): Use register number information from
3371 gdbarch_tdep struct instead of hardcoded offsets relative to
3372 FIRST_UISA_SP_REGNUM.
3373 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3374 special_register_p() instead of using FPLAST_REGNUM and
3375 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3376 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3377 will be MQ's register number.
3378
33792002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3380
3381 * aix-thread.c (ops): Rename to aix_thread_ops.
3382 (base_ops): Rename to base_target.
3383 (ops_attach): Rename to aix_thread_attach.
3384 (ops_detach): Rename to aix_thread_detach.
3385 (ops_resume): Rename to aix_thread_detach.
3386 (ops_wait): Rename to aix_thread_wait.
3387 (ops_kill): Rename to aix_thread_kill.
3388 (init_ops): Rename to init_aix_thread_ops.
3389 (ops_fetch_register): Rename to aix_thread_fetch_register.
3390 (ops_store_register): Rename to aix_thread_store_register.
3391 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3392 (ops_thread_alive): Rename to aix_thread_thread_alive.
3393 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3394 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3395 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3396 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3397 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3398 (store_regs_lib): Rename to store_regs_user_thread.
3399 (store_regs_kern): Rename to store_regs_kernel_thread.
3400
27bae383 34012002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3402
3403 * aix-thread.c (ops_prepare_to_store): Eliminate.
3404 (init_ops): Don't initialize ops.prepare_to_store.
3405 (store_regs_kern): Pre-fetch register buffers from child,
3406 because some registers may not be in the cache. Copy
3407 regs from register cache only if they are cached.
3408 (store_regs_lib): Copy regs from register cache only
3409 if they are cached.
3410 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3411 fill_gprs64): Ditto.
3412
61c5da0b
KB
34132002-07-22 Kevin Buettner <kevinb@redhat.com>
3414
3415 * aix-thread.c (gdb_assert.h): Include.
3416 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3417 register sizes (from register cache) match size of buffer holding
3418 register data.
3419 (fill_sprs32): Change parameter types to match those in the ptrace()
3420 buffer.
3421 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3422 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3423
34242002-07-22 Michael Snyder <msnyder@redhat.com>
3425
3426 * aix-thread.c (supply_sprs64): Cosmetic change.
3427 (supply_sprs32): Cosmetic change.
3428 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3429 (fill_sprs64): Use regcache_collect instead of read_register.
3430 (store_regs_lib): Use regcache_collect instead of
3431 read_register. Use fill_sprs32 instead of fill_sprs64,
3432 if debugging a 32-bit architecture.
3433 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3434 out of the register cache, instead of passing a pointer into
3435 the register cache directly to ptrace. Use regcache_collect
3436 insteaad of read_register.
3437 (ops_prepare_to_store): Use target_read_registers instead
3438 of read_register_bytes.
3439
36479eb1
AS
34402002-07-20 Aidan Skinner <aidan@velvet.net>
3441
3442 * MAINTAINERS: Add self under write after approval.
3443
80ae6ee2
AS
34442002-07-20 Aidan Skinner <aidan@velvet.net>
3445
3446 * ada-tasks.c: Change k&r style function definitions to prototyped
3447 form.
3448
8a8ab2b9
AC
34492002-07-19 Andrew Cagney <ac131313@redhat.com>
3450
3451 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3452 * x86-64-tdep.c: Include "objfiles.h".
3453 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3454 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3455
fb16b900
ML
34562002-07-17 Michal Ludvig <michal@suse.cz>
3457
3458 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3459 (update_context): Initialise cfa variable.
3460
0fe7bf7b
MS
34612002-07-17 Michael Snyder <msnyder@redhat.com>
3462
3463 * aix-thread.c: Shorten some long lines.
3464 Bring comments into line with code spec.
3465
488f131b
JB
34662002-07-18 Joel Brobecker <brobecker@gnat.com>
3467
3468 * infrun.c: Re-indent using gdb_indent.sh.
3469
46c415d2
JB
34702002-07-18 Joel Brobecker <brobecker@gnat.com>
3471
3472 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3473 Leave the indentation temporarily untouched, to minimize the diffs.
3474
cdecafbe
EZ
34752002-07-18 Elena Zannoni <ezannoni@redhat.com>
3476
3477 * stabsread.c: Make os9k sections of the code obsolete,
3478 for real this time.
3479 * stabsread.h: Make os9k sections of the code obsolete.
3480
7b6aa020
ML
34812002-07-18 Michal Ludvig <mludvig@suse.cz>
3482
09ec9b38
ML
3483 * linux-low.c (regsets_store_inferior_registers): Add free()
3484 at the end of a loop to prevent memory leak.
3485 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3486 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3487 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3488 line a comment.
4894ac5d 3489 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3490
233282cd
JB
34912002-07-17 Jim Blandy <jimb@redhat.com>
3492
3493 * macrocmd.c (info_macro_command): Remove newline from error
3494 message.
3495
7b6aa020 34962002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3497
3498 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3499 (sh_gdbarch_init): Use it for sh-dsp.
3500
f7ef9339
KB
35012002-07-16 Kevin Buettner <kevinb@redhat.com>
3502
3503 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3504 64-bit DWARF2 format.
3505
8dd72958
JB
35062002-07-16 Joel Brobecker <brobecker@gnat.com>
3507
3508 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3509 <sys/proc.h> when not available.
3510
a99a9e1b
AC
35112002-07-16 Andrew Cagney <ac131313@redhat.com>
3512
3513 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3514 * stabsread.c: Make os9k sections of the code obsolete.
3515 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3516 * config/i386/i386os9k.mt: Make file obsolete.
3517 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3518 (COMMON_OBS): Remove os9kread.o
3519 (SFILES): Remove os9kread.c.
3520 (os9kread.o, remote-os9k.o): Make target obsolete.
3521 * remote-os9k.c: Make file obsolete.
3522 * os9kread.c: Make file obsolete.
3523 * Makefile.in
3524
7a3085c1
AC
35252002-07-16 Andrew Cagney <ac131313@redhat.com>
3526
3527 * NEWS: Mention that the FR30 has been made obsolete.
3528 * fr30-tdep.c: Make file obsolete.
3529 * config/fr30/tm-fr30.h: Ditto.
3530 * config/fr30/fr30.mt: Ditto.
3531 * configure.tgt: Make fr30-*-elf obsolete.
3532 * MAINTAINERS: Make fr30-elf obsolete.
3533
28a93f5a
PM
35342002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3535
3536 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3537 found is not inside a section.
3538
be006b8b
KB
35392002-07-15 Kevin Buettner <kevinb@redhat.com>
3540
3541 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3542 strerror().
3543 (pdc_realloc): Use xrealloc() instead of realloc().
3544
14fa3751
KB
35452002-07-15 Kevin Buettner <kevinb@redhat.com>
3546
3547 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3548 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3549 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3550 macros.
3551
42cc437f
KB
35522002-07-15 Kevin Buettner <kevinb@redhat.com>
3553
3554 * aix-thread.c (ptrace_check): Eliminate goto.
3555 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3556 problem.
3557
8e2c28d4
KB
35582002-07-15 Kevin Buettner <kevinb@redhat.com>
3559
3560 * aix-thread.c (gdbcmd.h): Include.
3561 (DEBUG, DBG, DBG2, dbg): Eliminate.
3562 (debug_aix_thread): New static global.
3563 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3564 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3565 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3566 invocations to DBG and DBG2 macros to test against
3567 ``debug_aix_thread'' and call fprintf_unfiltered().
3568 (_initialize_aix_thread): Add new command "set debug aix-thread".
3569
30413464
AC
35702002-07-15 Andrew Cagney <ac131313@redhat.com>
3571
3572 From Gerhard Tonn <TON@de.ibm.com>:
3573 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3574 instead of supply_register.
3575
7c43edc1
AC
35762002-07-15 Andrew Cagney <ac131313@redhat.com>
3577
3578 * dwarf2cfi.c: Include "gdb_assert.h".
3579 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3580 non-NULL.
3581 (update_context): Do not use __func__. Add missing ``break''.
3582 (update_context): Do not use __func__.
3583
9364a0ef
EZ
35842002-07-15 Elena Zannoni <ezannoni@redhat.com>
3585
3586 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3587 and its setting. Set gdbarch instruction printing functions
3588 directly. For non-rs6000 case use new function
3589 gdb_print_insn_powerpc.
3590 (gdb_print_insn_powerpc): New function.
3591
3fbeef0b
AC
35922002-07-13 Andrew Cagney <ac131313@redhat.com>
3593
92eb23c5 3594 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3595 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3596 * configure.tgt: Mark d30v-*-* as obsolete.
3597 * d30v-tdep.c: Mark file as obsolete.
3598 * config/d30v/d30v.mt: Ditto.
3599 * config/d30v/tm-d30v.h: Ditto.
3600
aacb1f0a
AS
36012002-07-13 Aidan Skinner <aidan@velvet.net>
3602
3603 * ada-tasks.c (add_task_entry): replace calls to
3604 malloc() with xmalloc
3605 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3606
3607 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3608 ada_finish_decode_line_1, all_sals_for_line
3609 ada_breakpoint_rewrite): replace calls to free() with xfree()
3610
c11d79f2
KB
36112002-07-12 Kevin Buettner <kevinb@redhat.com>
3612
3613 From Nicholas Duffek (with minor changes by Martin Hunt,
3614 Louis Hamilton, and Kevin Buettner):
3615 * aix-thread.c: New file.
3616
8e19ed76
PS
36172002-07-12 Petr Sorfa <petrs@caldera.com>
3618
3619 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3620 complaint for invalid attribute class or form.
3621 (read_func_scope): DW_AT_frame_base
3622 better handling of DW_AT_block*.
3623 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3624 better handling of DW_AT_block*.
3625 (read_common_block): DW_AT_location
3626 better handling of DW_AT_block*.
3627 (read_partial_die): DW_AT_location better handling
3628 of DW_AT_block*.
3629 (new_symbol): DW_AT_external better handling of
3630 DW_AT_block*. Proper initialization of variable
3631 "addr".
3632 (attr_form_is_block): New function that returns true
3633 if the attribute's form is of DW_FORM_block*.
3634
295401f7
DJ
36352002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3636
3637 * valops.c (find_method_list): Remove comment about
3638 removed STATIC_MEMFUNCP argument.
3639 (value_find_oload_method_list): Likewise.
3640
e42dc924
KB
36412002-07-12 Kevin Buettner <kevinb@redhat.com>
3642
3643 From Nicholas Duffek:
3644 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3645 target_new_objfile_hook.
3646
6904b546
KB
36472002-07-12 Kevin Buettner <kevinb@redhat.com>
3648
3649 From Nicholas Duffek:
3650 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3651 csect.
3652
53fe9346
AC
36532002-07-12 Andrew Cagney <cagney@redhat.com>
3654
3655 * MAINTAINERS: Mention --enable-sim-build-warnings.
3656 (m68hc11-elf): Disable sim build warnings.
3657 (m32r-elf): Mark as broken obsolete candidate.
3658 (x86_64-linux-gnu): Mark as buildable with -Werror.
3659 (arm-elf): Change -w to ``,'' which enables warnings but not
3660 -Werror.
3661
af5f3db6
AC
36622002-07-12 Andrew Cagney <ac131313@redhat.com>
3663
3664 * bcache.h: Update copyright.
3665 (struct bstring, struct bcache): Move definition to "bcache.c".
3666 Replaced by opaque declaration.
3667 (bcache_xfree): Replace free_bcache.
3668 (bcache_xmalloc, bcache_memory_used): Declare.
3669
3670 * bcache.c: Update copyright.
3671 (struct bstring, struct bcache): Moved to here from "bcache.h".
3672 Update comments.
3673 (bcache_xmalloc, bcache_memory_used): New functions.
3674 (bcache_xfree): Replace function free_bcache.
3675
3676 * Makefile.in (objfiles.o): Add $(bcache_h).
3677 (objfiles_h): Remove $(bcache_h).
3678 (symfile.o): Add $(bcache_h).
3679
3680 * symmisc.c: Update copyright.
3681 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3682 (print_objfile_statistics): Use bcache_memory_used.
3683
3684 * symfile.c: Include "bcache.h".
3685 (reread_symbols): Use bcache_xfree.
3686 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3687 (add_psymbol_to_list): Pass psymbol_cache by value.
3688 (add_psymbol_with_dem_name_to_list): Ditto.
3689
3690 * objfiles.h: Update copyright.
3691 (struct bcache): Declare opaque. Do not include "bcache.h".
3692 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3693 bcache'' pointers.
3694 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3695
3696 * objfiles.c: Include "bcache.h". Update copyright.
3697 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3698 macro_cache.
3699 (free_objfile): Use bcache_xfree.
3700
444199e7
GS
37012002-07-11 Grace Sainsbury <graces@redhat.com>
3702
3703 * monitor.c (monitor_fetch_register): Make name a constant.
3704 (monitor_store_register): Same.
3705
261397f8
DJ
37062002-07-11 Daniel Jacobowitz <drow@mvista.com>
3707
3708 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3709 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3710 (finish_block) For non-function blocks, hash the symbol table. For
3711 function blocks, mark the symbol table as unhashed.
3712 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3713 (msymbol_hash_iw): Likewise.
3714 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3715 value.
3716 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3717 (lookup_minimal_symbol): Likewise for both.
3718 * symtab.h (struct block): Add `hashtable' flag. Comment the
3719 hashtable.
3720 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3721 (ALL_BLOCK_SYMBOLS): Update.
3722 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3723 (struct symbol): Add `hash_next' pointer.
3724 * symtab.c (lookup_block_symbol): Search using the hash table when
3725 possible.
3726 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3727 (search_symbols, find_addr_symbol): Likewise.
3728
3729 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3730 (read_dst_symtab): Likewise.
3731 * jv-lang.c (get_java_class_symtab): Likewise.
3732 * mdebugread.c: Include "gdb_assert.h".
3733 (shrink_block): Assert that the block being modified is not hashed.
3734 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3735 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3736 symbols.
3737 (dump_symtab): Recognize hashed blocks.
3738 * printcmd.c (print_frame_args): Assert that function blocks do not
3739 have hashed symbol tables.
3740 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3741 (fill_in_ada_prototype, debug_print_block): Likewise.
3742 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3743
6f0eaa01
CV
37442002-07-11 Corinna Vinschen <vinschen@redhat.com>
3745
3746 * stack.c (print_frame): Use result of frame_address_in_block()
3747 instead of fi->pc when evaluating symbols.
3748 (backtrace_command_1): Ditto.
3749
a208b0cb
AC
37502002-07-11 Andrew Cagney <cagney@redhat.com>
3751
3752 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3753 Make static.
3754
3755 * arm-tdep.c (arm_register_name): Make return type constant.
3756
a6b6b089
AC
37572002-07-10 Andrew Cagney <ac131313@redhat.com>
3758
5ae5f592
AC
3759 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3760 prototype.
3761 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3762 * s390-tdep.c (s390_fp_regnum): Ditto.
3763 (s390_read_fp): Ditto.
3764 (s390_pop_frame): Ditto.
3765 (_initialize_s390_tdep): Ditto.
3766 * remote.c (get_remote_state): Ditto.
3767 * procfs.c (mappingflags): Ditto.
3768 * memattr.c (_initialize_mem): Ditto.
3769 * mcore-tdep.c (mcore_pop_frame): Ditto.
3770 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3771 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3772 * language.c (set_case_str): Ditto.
3773 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3774 * frv-tdep.c (new_variant): Ditto.
3775 (frv_stopped_data_address): Ditto.
3776 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3777 (context_alloc): Ditto.
3778 (frame_state_alloc): Ditto.
3779 (unwind_tmp_obstack_init): Ditto.
3780 (unwind_tmp_obstack_free): Ditto.
3781 (cfi_read_fp): Ditto.
3782 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3783 (cris_pop_frame): Ditto.
3784 * c-lang.c (scanning_macro_expansion): Ditto.
3785 (finished_macro_expansion): Ditto.
3786 (c_preprocess_and_parse): Ditto.
3787 * gdbarch.sh: Ditto.
3788 * gdbarch.h, gdbarch.c: Regenerate.
3789 * config/mn10200/tm-mn10200.h: Adjust indentation.
3790 * target.c: Adjust indentation.
3791 * symtab.h: Adjust indentation.
3792 * stabsread.h: Adjust indentation.
3793 * remote-es.c: Adjust indentation.
3794 * os9kread.c: Adjust indentation.
3795
37962002-07-10 Andrew Cagney <ac131313@redhat.com>
3797
a6b6b089
AC
3798 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3799 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3800
a1789893
GS
38012002-07-10 Grace Sainsbury <graces@redhat.com>
3802
3803 * NEWS: Mention m68k, mcore multi-arching.
3804 * MAINTAINERS: Change status of m68k, mcore to reflect
3805 multi-arching.
3806
02f0d45d
DJ
38072002-07-10 Daniel Jacobowitz <drow@mvista.com>
3808
3809 * valops.c (find_overload_match): Free oload_syms.
3810
f15f768e
JB
38112002-07-09 Joel Brobecker <brobecker@gnat.com>
3812
3813 Define HAVE_SYS_PROC_H if sys/proc.h exists
3814 * configure.in: Add check for sys/proc.h
3815 * config.in: Regenerate.
3816 * configure: Regenerate.
3817
902a7139
GS
38182002-07-09 Grace Sainsbury <graces@redhat.com>
3819
3820 * config/m68k/tm-m68k.h: Remove macros wrapped in
3821 #if !GDB_MULTI_ARCH.
3822
a534e424
AC
38232002-07-08 Andrew Cagney <ac131313@redhat.com>
3824
3825 * config.in, configure: Regenerate.
3826
9b94f7bf
MK
38272002-07-08 Mark Kettenis <kettenis@gnu.org>
3828
3829 * dwarf2cfi.c: Include "gcore.h".
3830 (execute_stack_op): Fix implementation of the
3831 DW_OP_deref and DW_OP_deref_size operators by letting do their
3832 lookup in the target.
3833
1d34db41
MK
38342002-07-07 Mark Kettenis <kettenis@gnu.org>
3835
3836 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3837 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3838 tdep->sc_sp_offset.
3839
79d5b63a
DJ
38402002-07-05 Daniel Jacobowitz <drow@mvista.com>
3841
3842 Fix PR gdb/595, gdb/602
3843 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3844 Don't call value_cast, just read the vtable pointer; update comments
3845 to match.
3846
3bb912e8
GS
38472002-07-05 Grace Sainsbury <graces@redhat.com>
3848
3849 * config/mcore/tm-mcore.h: Remove file.
3850 * config/mcore/mcore.mt: Remove definition of TM_FILE
3851 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3852
ca39387d
MK
38532002-07-05 Mark Kettenis <kettenis@gnu.org>
3854
3855 * i386bsd-tdep.c: Include "gdb_string.h".
3856
efdc1108
GS
38572002-07-04 Grace Sainsbury <graces@redhat.com>
3858
3859 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3860 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3861 mcore-tdep.
3862 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3863 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3864 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3865 (RETVAL_REGNUM): Move macros from tm-mcore.h
3866 (mcore_reg_struct_has_addr): New function.
3867 (mcore_gdbarch_init): Added initializations for the macros removed
3868 from tm-mcore.h.
3869
bb21884d
MK
38702002-07-04 Mark Kettenis <kettenis@gnu.org>
3871
3872 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3873 traditonal string branding within the ELF header.
3874
228c6d41
DJ
38752002-07-04 Daniel Jacobowitz <drow@mvista.com>
3876
3877 * symtab.c (remove_params): New function.
3878 (make_symbol_overload_list): Use it instead of cplus_demangle.
3879 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3880
2404952e
MK
38812002-07-04 Mark Kettenis <kettenis@gnu.org>
3882
e5e4acad
MK
3883 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3884
baadce09
MK
3885 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3886 New variables.
3887 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3888 and tdep->sigtramp_end.
3889 * i386obsd-nat.c: New file.
3890 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3891
2404952e
MK
3892 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3893 Don't call get_current_frame().
3894
9b4f1ba7
PM
38952002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3896
3897 * i386-nat.c (child_post_startup_inferior): New function
3898 calling i386_cleanup_dregs if
3899 I386_USE_GENERIC_WATCHPOINTS is defined.
3900 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3901 conditional to acknowledge that i386-nat.c has its
3902 own child_post_startup_inferior function.
3903
c0d1d883
MK
39042002-07-04 Mark Kettenis <kettenis@gnu.org>
3905
00f8375e
MK
3906 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3907 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3908 instead of MAX_REGISTER_RAW_SIZE.
3909 (i386_extract_return_value, i386_extract_struct_value_address):
3910 Convert to use regcache.
3911 (i386_gdbarch_init): Set max_register_raw_size and
3912 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3913 Set extract_return_value and extract_struct_value_address instead
3914 of their deprecated variants.
3915
c0d1d883
MK
3916 Convert i386 target to generic dummy frames.
3917 * i386-tdep.c: Include "symfile.h".
3918 (i386_frameless_signal_p): Consider a function to be frameless if
3919 the pc points at the first instruction of the function.
3920 (i386_frame_chain): Handle (generic) call dummies.
3921 (i386_frame_saved_pc): Likewise.
3922 (i386_frame_init_saved_regs): Remove code dealing with call
3923 dummies on the stack.
3924 (i386_push_dummy_frame): Removed.
3925 (i386_call_dummy_words): Removed.
3926 (i386_fix_call_dummy): Removed.
3927 (i386_push_return_address): New function.
3928 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3929 parameter, and don't call get_current_frame.
3930 (i386_pop_frame): New function.
3931 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3932 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3933 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3934 call_dummy_length to 0, set call_dummy_words to NULL, set
3935 sizeof_call_dummy_words to 0, set fix_call_dummy to
3936 generic_fix_call_dummy, set pc_in_call_dummy to
3937 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3938 generic_push_dummy_frame, set push_return_address to
3939 i386_push_return_address and set frame_chain_valid to
3940 generic_file_frame_chain_valid.
3941
049ee0e4
AC
39422002-07-03 Andrew Cagney <ac131313@redhat.com>
3943
3944 * gdbarch.sh (struct regcache): Add opaque declaration.
3945 (EXTRACT_RETURN_VALUE): New architecture method.
3946 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3947 * gdbarch.h, gdbarch.c: Regenerate.
3948 * arch-utils.c (legacy_extract_return_value): New function.
3949 * arch-utils.h (legacy_extract_return_value): Declare.
3950 * values.c (value_being_returned): Re-enable code handling
3951 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3952 deprecated_grub_regcache_for_registers call to block handling
3953 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3954 (EXTRACT_RETURN_VALUE): Do not define.
3955
4e0d9804
GS
39562002-07-03 Grace Sainsbury <graces@redhat.com>
3957
3958 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3959 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3960 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3961 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3962 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3963 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3964 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3965 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3966 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3967 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3968 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3969 argument so the function fits the prototype in the architecture
3970 vector.
3971 (mcore_pop_frame): Remove argument so the function fits the
3972 prototype. Use get_current_frame instead of the argument.
3973 (mcore_push_arguments): Change type of struct_return so the
3974 function can be used in the architecture vector.
3975 (mcore_store_struct_return): Add.
3976 (mcore_frame_init_saved_regs): Add.
3977 (mcore_gdbarch_init): Add function calls to replace the macros
3978 removed from tm-mcore.h
3979
36160dc4
AC
39802002-07-03 Andrew Cagney <ac131313@redhat.com>
3981
3982 * infcmd.c (print_return_value): Remove compatibility code calling
3983 deprecated_grub_regcache_for_registers.
3984
3985 * values.c: Include "regcache.h".
3986 (value_being_returned): Update. Use
3987 deprecated_grub_regcache_for_registers to extract the register
3988 buffer address.
3989 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3990 ``struct regcache''.
3991 * Makefile.in (values.o): Add dependency on $(regcache_h).
3992
3993 * inferior.h (run_stack_dummy): Change type of second parameter to
3994 a ``struct regcache''.
3995 * valops.c (hand_function_call): Change type of retbuf to ``struct
3996 regcache''. Allocate using regcache_xmalloc, clean using
3997 make_cleanup_regcache_xfree.
3998 * infcmd.c (run_stack_dummy): Update. Use
3999 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4000
4001 * regcache.c (do_regcache_xfree): New function.
4002 (make_cleanup_regcache_xfree): New function.
4003 * regcache.h (make_cleanup_regcache_xfree): Declare.
4004
e64d9b3d
MH
40052002-07-03 Martin M. Hunt <hunt@redhat.com>
4006
4dd79c29
MH
4007 * event-top.c (command_line_handler): Don't read past
4008 beginning of buffer.
e64d9b3d 4009
4dd79c29
MH
40102002-07-03 Martin M. Hunt <hunt@redhat.com>
4011
e64d9b3d
MH
4012 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4013 struct frame_id.
4014 (varobj_create): Store frame_id for root.
4015 (varobj_gen_name): Use xasprintf.
4016 (varobj_update): Save and restore frame using get_frame_id() and
4017 frame_find_by_id().
4018 (create_child): Use xasprintf.
4019 (new_root_variable): Initialize frame_id.
4020 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4021 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4022 to prevent memory leak.
4023
26e6c56a
AC
40242002-07-03 Andrew Cagney <ac131313@redhat.com>
4025
4026 * valops.c (hand_function_call): Move declaration of retbuf to
4027 start of function, allocate using malloc, add a cleanup but before
4028 the inf_status cleanup, cleanup the buffer. Rename local variable
4029 old_chain to inf_status_cleanup.
4030
f436dd25
MH
40312002-07-03 Martin M. Hunt <hunt@redhat.com>
4032
4033 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4034
4035 * cli/cli-decode.c (cmd_func_p): New function.
4036 (cmd_func): New function.
4037
4038 * command.h: Add cmd_func() and cmd_func_p().
4039
4cfe2084
GS
40402002-07-03 Grace Sainsbury <graces@redhat.com>
4041
4042 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4043 (REGISTER_SIZE): Remove.
4044 (MAX_REGISTER_RAW_SIZE): Remove.
4045 (REGISTER_VIRTUAL_TYPE): Remove.
4046 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4047 (REGISTER_NAME): Remove.
4048 (USE_GENERIC_DUMMY_FRAMES): Remove.
4049 (CALL_DUMMY): Remove.
4050 (CALL_DUMMY_START_OFFSET): Remove.
4051 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4052 (CALL_DUMMY_LOCATION): Remove.
4053 (FIX_CALL_DUMMY): Remove.
4054 (CALL_DUMMY_ADDRESS): Remove.
4055 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4056 (SAVE_DUMMY_FRAME_TOS): Remove.
4057 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4058 (mcore_register_virtual_type): New function.
4059 (mcore_register_byte): New function.
4060 (mcore_register_size): New function.
4061 (mcore_register_name): New function.
4062 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4063 macros removed from tm-mcore.h.
4064 (mcore_dump_tdep): Add.
4065 (_initialize_mcore_tdep): Add gdbarch_register call.
4066
4fd667e9
MK
40672002-07-03 Mark Kettenis <kettenis@gnu.org>
4068
4069 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4070 frameless_look_for_prologue, such that we actually call this
4071 function.
4072
42f99ac2
JB
40732002-07-02 Joel Brobecker <brobecker@gnat.com>
4074
4075 * frame.h (frame_address_in_block): New function.
4076
4077 * blockframe.c (frame_address_in_block): New function extracted
4078 from get_frame_block().
4079 (get_frame_block): Use frame_address_in_block().
4080 (block_innermost_frame): Use frame_address_in_block() to match
4081 the frame pc address against the block boundaries rather than
4082 the frame pc directly. This prevents a failure when a frame pc
4083 is actually a return-address pointing immediately after the end
4084 of the given block.
4085
103a1597 40862002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
4087
4088 * MAINTAINERS: Add self under write after approval.
4089
40902002-07-02 Grace Sainsbury <graces@redhat.com>
4091
103a1597
GS
4092 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4093 used in architecture vector. The default is
4094 m68k_local_breakpoint_from_pc.
4095 (m68k_local_breakpoint_from_pc): Add.
4096 (enum): Add register numbers from tm-m68k.h.
4097 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4098 vector.
4099 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4100 GDB_MULTI_ARCH_PARTIAL.
4101 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4102 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4103 m68k-tdep.c.
4104 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4105 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4106 to enum in m68k-tdep.c
4107
7a5a0534
JB
41082002-07-02 Joel Brobecker <brobecker@gnat.com>
4109
4110 * solib-osf.c (open_map): Compute the list of shared libraries
4111 loaded by the inferior, rather than the list of libraries loaded
4112 by GDB itself. Otherwise, GDB ends up reading the symbols from
4113 the wrong shared libraries...
4114
6f558d74
MK
41152002-07-02 Mark Kettenis <kettenis@gnu.org>
4116
b7d15bf7
MK
4117 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4118 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4119 macros.
4120 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4121 Remove functions.
4122 (FRAMELESS_SIGNAL): Remove function.
4123 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4124 i386_linux_saved_pc_after_call): Removed.
4125 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4126 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4127 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4128
6bff26de
MK
4129 * i386-tdep.c (i386_frameless_signal_p): New function.
4130 (i386_frame_chain): Deal with frameless signals.
4131 (i386_sigtramp_saved_sp): New function.
4132 (i386_frame_saved_pc): Deal with frameless signals.
4133 (i386_saved_pc_after_call): Make sure the correct value is
4134 returned just after entry into a sigtramp.
4135 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4136 i386fbsd4_sc_sp_offset): New variables.
4137 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4138 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4139 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4140 similiar to what we already did for sc_pc_offset.
4141 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4142 tdep->sc_sp_offset.
4143
6f558d74
MK
4144 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4145
145564b7
ML
41462002-07-02 Michal Ludvig <mludvig@suse.cz>
4147
4148 * config/i386/tm-x86-64linux.h: New.
4149 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4150 definitions.
4151 * config/i386/nm-x86-64.h: Rename to ...
4152 * config/i386/nm-x86-64linux.h: ... this one.
4153 * config/i386/x86-64linux.mh: Reflect the above change.
4154
3a1e71e3
MK
41552002-07-01 Mark Kettenis <kettenis@gnu.org>
4156
21d0e8a4
MK
4157 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4158 with sigcontext_addr. Add sc_sp_offset.
4159 (i386bsd_sigtramp_saved_pc): Remove prototype.
4160 (i386bsd_sicontext_addr): Add prototype.
4161 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4162 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4163 (i386_svr4_sigtramp_saved_pc): Removed.
4164 (i386_svr4_sigcontext_addr): New function.
4165 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4166 Initialize tdep->sigcontext_addr instead. Initialize
4167 tdep->sc_pc_offset and tdep->sc_sp_offset.
4168 (i386_gdbarch_init): Likewise.
4169 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4170 any more.
4171 (i386bsd_sigtramp_saved_pc): Remove function.
4172 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4173 Initialize tdep->sigcontext_addr instead. Initialize
4174 tdep->sc_pc_offset.
4175 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4176 of tdep->sigtramp_saved_pc.
4177 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4178 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4179 instead.
4180
3a1e71e3
MK
4181 * i386-tdep.c (i386_frameless_function_invocation,
4182 i386_frame_num_args, i386_frame_init_saved_regs,
4183 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4184 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4185 i386_extract_return_value, i386_store_return_value,
4186 i386_extract_struct_value_address, i386_register_virtual_type,
4187 i386_register_convertible, i386_register_convert_to_virtual,
4188 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4189 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4190 static.
4191
52e9098c
MK
41922002-07-01 Mark Kettenis <kettenis@gnu.org>
4193
77b13a25
MK
4194 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4195
52e9098c
MK
4196 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4197 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4198 this macro. Include "value.h".
4199
1b372fff
AS
42002002-06-30 Aidan Skinner <aidan@velvet.net>
4201
4202 * ada-exp.tab.c: remove as it's a generated file
4203 * ada-lex.c: remove as it's a generated file
4204
9c5045b5
MK
42052002-06-30 Mark Kettenis <kettenis@gnu.org>
4206
4a93c5bb
MK
4207 * config/i386/tm-i386.h (struct frame_info, struct
4208 frame_saved_regs, struct value, struct type): Remove forward
4209 declarations.
4210
322d4fe0
MK
4211 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4212 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4213 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4214 (FILL_FPXREGSET): Define.
4215
fdd8263d
MK
4216 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4217
482e577b
MK
4218 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4219 i[3456]86-*-netbsd* case.
4220 * config/i386/tm-obsd.h: Removed.
4221 * config/i386/obsd.mt: Removed.
4222 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4223 core-aout.o.
4224 (MH_CFLAGS): Add -DYYDEBUG=0.
4225
6916549a
MK
4226 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4227 i386nbsd_sc_pc_offset on OpenBSD too.
4228
9c5045b5
MK
4229 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4230 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4231 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4232 define.
4233 * i386bsd-tdep.c: Include "arch-utils.h".
4234 (i386bsd_aout_in_solib_call_trampoline): New function.
4235 (i386bsd_init_abi): Set in_solib_call_trampoline to
4236 i386bsd_aout_in_solib_call_trampoline.
4237 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4238 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4239
aa84d1bb
AC
42402002-06-28 Andrew Cagney <ac131313@redhat.com>
4241
4242 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4243 (struct obstack, struct bcache): Add opaque declarations.
4244 * Makefile.in (macrotab_h): Update
4245
b4d83933
AC
42462002-06-28 Andrew Cagney <ac131313@redhat.com>
4247
4248 * blockframe.c (generic_find_dummy_frame): Change return type to
4249 ``struct regcache''.
4250 (struct dummy_frame): Replace field ``registers'' with regcache, a
4251 struct regcache object.
4252 (generic_find_dummy_frame): Update.
4253 (generic_push_dummy_frame): Update. Use regcache_xfree,
4254 regcache_xmalloc and regcache_cpy.
4255 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4256 regcache_xfree.
4257 (deprecated_generic_find_dummy_frame): Update.
4258 (generic_read_register_dummy): Update. Use
4259 regcache_read_as_address.
4260 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4261 (generic_get_saved_register): Update. Use regcache_read.
4262
08c0b5bc
AC
42632002-06-28 Andrew Cagney <ac131313@redhat.com>
4264
4265 * Makefile.in (objfiles_h): Add $(bcache_h).
4266 * objfiles.h: Include "bcache.h".
4267
4268 * Makefile.in (symtab_h): Remove $(bcache_h).
4269 * symtab.h: Do not include "bcache.h".
4270
1f89801a
AC
42712002-06-28 Andrew Cagney <ac131313@redhat.com>
4272
4273 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4274 generic_func_frame_chain_valid.
4275
b9644b58
DB
42762002-06-28 David O'Brien <obrien@FreeBSD.org>
4277
4278 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4279 * config/i386/tm-fbsd.h: Likewise.
4280
dd486634
AC
42812002-06-28 Andrew Cagney <ac131313@redhat.com>
4282
4283 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4284 generic_unwind_get_saved_register.
4285
0b434a00
AC
42862002-06-27 Andrew Cagney <ac131313@redhat.com>
4287
4288 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4289 * regcache.c (supply_register): Add missing argument to
4290 register_buffer call.
4291
f30e5a77
AC
42922002-06-27 Andrew Cagney <ac131313@redhat.com>
4293
4294 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4295 Solaris /bin/grep does not not like it. From Peter Schauer.
4296
9f064c95
TT
42972002-06-26 Tom Tromey <tromey@redhat.com>
4298
4299 * command.h (add_setshow_cmd): Declare.
4300 (add_setshow_cmd_full): Declare.
4301 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4302 returns void. Use add_setshow_cmd_full.
4303 (add_setshow_cmd_full): New function.
4304 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4305 (add_setshow_boolean_cmd): Likewise.
4306
099c7589
JT
43072002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4308
4309 * config/vax/tm-vax.h: Protect from multiple inclusion.
4310 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4311 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4312 * config/vax/tm-vaxbsd.h: ...here. New file.
4313 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4314
1d049c5e
JT
43152002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4316
4317 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4318 (BELIEVE_PCC_PROMOTION): Remove.
4319 (AP_REGNUM): Move to...
4320 * config/vax/nm-vax.h: ...here.
4321 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4322 (vax_breakpoint_from_pc): New function.
4323 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4324 and gdbarch_believe_pcc_promotion.
4325
4791e091
JT
43262002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4327
4328 * Makefile.in (vax_tdep_h): Define.
4329 (vax-tdep.o): Use $(vax_tdep_h).
4330 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4331 (vax_dump_tdep): New function.
4332 (_initialize_vax_tdep): Register vax_dump_tdep.
4333 * vax-tdep.h: Include osabi.h.
4334 (struct gdbarch_tdep): New.
4335
da130f98
AC
43362002-06-26 Andrew Cagney <cagney@redhat.com>
4337
4338 * frame.h (deprecated_generic_find_dummy_frame): Rename
4339 generic_find_dummy_frame.
4340 * blockframe.c (generic_find_dummy_frame): Make static.
4341 (deprecated_generic_find_dummy_frame): New function.
4342 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4343 generic_find_dummy_frame with deprecated_find_dummy_frame.
4344 (sh64_nofp_frame_init_saved_regs): Ditto.
4345 (sh_fp_frame_init_saved_regs): Ditto.
4346 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4347 (s390_frame_chain): Ditto.
4348 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4349
6300c360
GS
43502002-06-26 Grace Sainsbury <graces@redhat.com>
4351
4352 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4353 gdbarch vector are at the top.
4354 (NUM_REGS): Remove.
4355 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4356 (FRAME_ARGS_ADDRESS): Remove.
4357 (FRAME_LOCALS_ADDRESS): Remove.
4358 (FRAME_NUM_ARGS): Remove.
4359 (FRAME_ARGS_SKIP): Remove.
4360 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4361 (m68k_gdbarch_init): Add gdbarch initializations for macros
4362 undefined in tm-m68k.h
4363
1c617db8
GS
43642002-06-26 Grace Sainsbury <graces@redhat.com>
4365
4366 * monitor.h: Add the function regname to monitor_ops
4367 structure. This way NUM_REGS does not have to be a constant.
4368 * monitor.c (monitor_fetch_register): Added support for regname
4369 function. The function is called if the array regnames is NULL.
4370 (monitor_store_register): Same.
da130f98
AC
4371 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4372 regnames array.
1c617db8
GS
4373 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4374 cpu32bug_cmds.regname to point to new function.
4375 * abug-rom.c (abug_regname): Same as above.
4376 (init_abug_cmds): Same.
4377 * dbug-rom.c (dbug_regname): Same as above.
4378 (init_dbug_cmds): Same.
4379 * remote-est.c (est_regname): Same.
4380 (init_est_cmds): Same.
4381 * rom68k-rom.c (rom68k_regname): Same.
4382 (init_rom68k_cmds): Same.
4383
ea9365bb
TT
43842002-06-25 Tom Tromey <tromey@redhat.com>
4385
4386 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4387
72cec141
AC
43882002-06-25 Andrew Cagney <cagney@redhat.com>
4389
4390 * infrun.c (stop_registers): Change variable's type to ``struct
4391 regcache'''.
4392 (xmalloc_inferior_status): Delete function.
4393 (free_inferior_status): Delete function.
4394 (normal_stop): Use regcache_cpy.
4395 (struct inferior_status): Change type of fields ``stop_registers''
4396 and ``registers'' to ``struct regcache''.
4397 (write_inferior_status_register): Use regcache_write.
4398 (save_inferior_status): Instead of calling
4399 xmalloc_inferior_status, allocate the inf_status buffer directly.
4400 Use regcache_dup_no_passthrough and regcache_dup to save the
4401 buffers.
4402 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4403 Replace the stop_registers regcache instead of overriding it. Use
4404 regcache_xfree. Instead of calling free_inferior_status, xfree
4405 the buffer directly.
4406 (discard_inferior_status): Use regcache_xfree. Instead of calling
4407 free_inferior_status, xfree the buffer directly.
4408 (build_infrun): Use regcache_xmalloc.
4409 (_initialize_infrun): Delete redundant call to build_infrun.
4410
4411 * Makefile.in (infcmd.o): Add $(regcache_h).
4412
4413 * infcmd.c: Include "regcache.h".
4414 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4415 obtain the address of `stop_registers' register buffer.
4416 (print_return_value): Ditto.
4417
4418 * inferior.h (struct regcache): Add opaque declaration.
4419 (stop_registers): Change variable's declared type to ``struct
4420 regcache''.
4421
defc6f8c
TT
44222002-06-24 Tom Tromey <tromey@redhat.com>
4423
c0e624e7
TT
4424 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4425 * target.c (initialize_targets): Fixed typo in
4426 trust-readonly-sections `show' documentation.
4427
defc6f8c
TT
4428 * main.c: Marked all strings with _().
4429
2b236d82
DH
44302002-06-24 Don Howard <dhoward@redhat.com>
4431
4432 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4433 that means max CORE_ADDR+1.
4434 (lookup_mem_region): Ditto.
4435 (mem_info_command): Ditto.
4436
942dc0e9
GS
44372002-06-24 Grace Sainsbury <graces@redhat.com>
4438
4439 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4440 (REGISTER_BYTES_OK): Remove.
4441 (REGISTER_BYTES): Remove.
4442 (STORE_STRUCT_RETURN): Remove.
4443 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4444 (STORE_RETURN_VALUE): Remove.
4445 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4446 (FRAME_CHAIN): Remove.
4447 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4448 (FRAME_SAVED_PC): Remove.
4449 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4450 (m68k_store_struct_return): Add.
4451 (m68k_deprecated_extract_return_value): Add.
4452 (m68k_deprecated_extract_struct_value_address): Add.
4453 (m68k_store_return_value): Add.
4454 (m68k_frame_chain): Add.
4455 (m68k_frameless_function_invocation): Add.
4456 (m68k_frame_saved_pc): Add.
4457 (m68k_gdbarch_init): added set_gdbarch calls for new
4458 functions and deleted macros.
4459
03c30d4d
TT
44602002-06-23 Tom Tromey <tromey@redhat.com>
4461
4462 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4463 (ALLDEPFILES): Likewise.
4464 (udiheaders): Removed.
4465 (udip2soc.o): Likewise.
4466 (udi2go32.o): Likewise.
4467 (udr.o): Likewise.
4468 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4469
37e71372
AC
44702002-06-22 Andrew Cagney <ac131313@redhat.com>
4471
06a6ac57
AC
4472 * infrun.c (_initialize_infrun): Delete unnecessary call to
4473 build_infrun.
4474
37e71372
AC
4475 * regcache.h: Update comments describing the regcache_cpy family
4476 of functions.
4477 (regcache_save, regcache_restore): Delete declaration.
4478 (regcache_save_no_passthrough): Delete declaration.
4479 (regcache_restore_no_passthrough): Delete declaration.
4480 * regcache.c (regcache_save): Delete function.
4481 (regcache_save_no_passthrough): Delete function.
4482 (regcache_restore): Delete function.
4483 (regcache_restore_no_passthrough): Delete function.
4484
78f6d055
AC
44852002-06-21 Andrew Cagney <ac131313@redhat.com>
4486
4487 * config/m68k/tm-m68k.h: Fix typo.
4488 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4489 (m68k_frame_init_saved_regs): Declare.
4490
78b119cb
JB
44912002-06-21 Jim Blandy <jimb@redhat.com>
4492
4493 Remove some vestiges of Harris 88k support.
4494 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4495 register numbering quirk.
4496 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4497 odd symbols occurring in Harris 88k ELF targets.
4498
0fbb3da7
TT
44992002-06-21 Tom Tromey <tromey@redhat.com>
4500
4501 * gdb_locale.h: New file.
4502 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4503 (defs_h): Added gdb_locale.h.
4504 * configure, config.in: Rebuilt.
4505 * configure.in (PACKAGE): Define.
4506 * defs.h: Include gdb_locale.h.
4507 * main.c (captured_main): Call setlocale, bindtextdomain,
4508 textdomain.
4509
456f8b9d
DB
45102002-06-21 Dave Brolley <brolley@redhat.com>
4511
4512 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4513 * config/frv/frv.mt: New file.
4514 * config/frv/tm-frv.h: New file.
4515 * configure.tgt: Support frv-*-*.
4516 * Makefile.in (frv-tdep.o): New target.
4517 * frv-tdep.c: New file.
4518 * NEWS: Mention frv.
4519
cdd463f9
DB
45202002-06-21 Dave Brolley <brolley@redhat.com>
4521
4522 * MAINTAINERS: Add self to "Write After Approval" list.
4523
5d3ed2e3
GS
45242002-06-21 Grace Sainsbury <graces@redhat.com>
4525
4526 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4527 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4528 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4529 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4530 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4531
4532 * m68k-tdep.c: Include arch-utils.h
4533 (m68k_register_raw_size): Add.
4534 (m68k_register_virtual_size): Add.
4535 (m68k_register_virtual_type): Add.
4536 (m68k_register_name): Add.
4537 (m68k_stack_align): Add.
4538 (m68k_register_byte): Add.
4539 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4540 tm-m68k.h.
4541
7f8e7424
GS
45422002-06-21 Grace Sainsbury <graces@redhat.com>
4543
a2c6a6d5 4544 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4545 m68k_find_saved_regs.
4546 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4547 references to it with frame->saved_regs.
7f8e7424
GS
4548 (m68k_gdbarch_init): Added function calls to initialize the
4549 gdbarch structure.
a2c6a6d5
GS
4550 (m68k_fix_call_dummy): Add.
4551 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4552 (CALL_DUMMY): Remove.
4553 (CALL_DUMMY_LENGTH): Remove.
4554 (CALL_DUMMY_START_OFFSET): Remove.
4555 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4556 (FIX_CALL_DUMMY): Remove.
4557 (PUSH_DUMMY_FRAME): Remove.
4558 (POP_FRAME): Remove.
7f8e7424 4559
f461f5cf
PM
45602002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4561
4562 * parse.c (parse_fprintf): New function used to avoid calls to
4563 fprintf in bison parser generated debug code.
4564 * parser-defs.h: Declaration of new parse_fprintf function.
4565 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4566 Set YYDEBUG to 1 by default.
4567 Set YYFPRINTF as parse_fprintf.
4568
7f0c12ed
ML
45692002-06-21 Michal Ludvig <mludvig@suse.cz>
4570
4571 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4572 encoding anymore.
4573 (pointer_encoding, enum ptr_encoding): New.
4574 (execute_cfa_program): Take care about pointer encoding.
4575 (dwarf2_build_frame_info): Only call parse_frame_info for
4576 .debug_frame and .eh_frame.
4577 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4578 fixed augmentation handling, added relative addressing,
4579 ignore duplicate FDEs. Added comments.
19d833a2 4580 * dwarf2cfi.c: Reindented.
7f0c12ed 4581
87c4a039
EZ
45822002-06-20 Elena Zannoni <ezannoni@redhat.com>
4583
4584 * event-top.c (command_handler): Don't use space_at_cmd_start
4585 unless there is sbrk() on the host. Assign time and space data
4586 to union fields of the appropriate length.
4587
1cf877ad
ML
45882002-06-20 Michal Ludvig <mludvig@suse.cz>
4589
4590 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4591 x86_64_register_name. Return type changed to 'const char *'.
4592 (x86_64_register_name2nr): Rename to x86_64_register_number.
4593 (x86_64_gdbarch_init): Update to reflect the change.
4594 * x86-64-tdep.h: Ditto.
4595 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4596 (supply_fpregset): Ditto.
4597
3fadccb3
AC
45982002-06-19 Andrew Cagney <cagney@redhat.com>
4599
4600 * regcache.h: Update copyright.
4601 (struct regcache, struct gdbarch): Add opaque declarations.
4602 (current_regcache): Declare global variable.
4603 (regcache_read, regcache_write): Add gdbarch parameter.
4604 (regcache_save, regcache_save_no_passthrough)
4605 (regcache_restore, regcache_restore_no_passthrough)
4606 (regcache_dup, regcache_dup_no_passthrough)
4607 (regcache_cpy, regcache_cpy_no_passthrough)
4608 (deprecated_grub_regcache_for_registers)
4609 (deprecated_grub_regcache_for_register_valid)
4610 (regcache_valid_p): Add function declarations.
4611
4612 * regcache.c: Update copyright.
4613 (regcache_descr_handle): New global variable.
4614 (struct regcache_descr): Define.
4615 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4616 (regcache_descr, xfree_regcache_descr): New functions.
4617 (struct regcache): Define.
4618 (regcache_xmalloc, regcache_xfree): New functions.
4619 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4620 (regcache_dup, regcache_dup_no_passthrough): New functions.
4621 (regcache_valid_p, regcache_read_as_address): New functions.
4622 (deprecated_grub_regcache_for_registers): New function.
4623 (deprecated_grub_regcache_for_register_valid): New function.
4624 (current_regcache): New global variable.
4625 (register_buffer): Add regcache parameter. Update calls.
4626 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4627 (read_register_gen, write_register_gen): Update register_buffer
4628 call. Test for legacy_p instead of gdbarch_register_read_p or
4629 gdbarch_register_write_p.
4630 (regcache_collect): Update register_buffer call.
4631 (build_regcache): Rewrite. Use deprecated grub functions.
4632 (regcache_save, regcache_save_no_passthrough): New functions.
4633 (regcache_restore, regcache_restore_no_passthrough): New
4634 functions.
4635 (_initialize_regcache): Create the regcache_data_handle. Swap
4636 current_regcache global variable.
4637
4638 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4639 parameter to regcache_read and regcache_write calls.
4640 (sh4_register_read): Ditto.
4641 (sh64_pseudo_register_read): Ditto.
4642 (sh64_register_read): Ditto.
4643 (sh_pseudo_register_write): Ditto.
4644 (sh4_register_write): Ditto.
4645 (sh64_pseudo_register_write): Ditto.
4646 (sh64_register_write): Ditto.
4647
4648 * defs.h (XCALLOC): Define.
4649
152d9db6
GS
46502002-06-19 Grace Sainsbury <graces@redhat.com>
4651
4652 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4653 * m68k-tdep.c (m68k_gdbarch_init): Added.
4654 (m68k_dump_tdep): Added.
4655
170911c7
DJ
46562002-06-19 Daniel Jacobowitz <drow@mvista.com>
4657
4658 * ada-lang.c (fill_in_ada_prototype): Update comment.
4659
2e4ebe70
DJ
46602002-06-19 Daniel Jacobowitz <drow@mvista.com>
4661
4662 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4663 MIPS_ABI_LAST.
4664 (mips_abi_string, mips_abi_strings): New.
4665 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4666 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4667 tdep->mips_abi_string. Honor mips_abi_string. Default to
4668 O32 if no ABI is found.
4669 (mips_dump_tdep): Use mips_abi_strings.
4670 (mips_abi_update): New function.
4671 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4672 ``set mips abi'' and ``show mips abi''. Check the size of
4673 mips_abi_strings.
4674
16775908
AC
46752002-06-19 Andrew Cagney <cagney@redhat.com>
4676
4677 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4678 constant.
4679
5051bfa4 46802002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4681
5051bfa4
JB
4682 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4683 current frame using only the first stack size adjustment. All
4684 subsequent size adjustments are not considered to be part of
4685 the "static" part of the current frame.
4686 Compute the address of the saved registers relative to the
4687 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4688 in use in this frame.
4689
56468235
DH
46902002-06-18 Don Howard <dhoward@redhat.com>
4691
4692 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4693 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4694 suggesting this solution.
4695
0b624158
AC
46962002-06-18 Andrew Cagney <ac131313@redhat.com>
4697
4698 * config/romp/xm-rtbsd.h: Delete file.
4699 * config/romp/rtbsd.mh: Delete file.
4700
221ea385
KS
47012002-06-18 Keith Seitz <keiths@redhat.com>
4702
4703 * breakpoint.c (condition_command): Post breakpoint_modify
4704 when a condition is added to an existing breakpoint.
4705 (commands_command): Likewise for commands.
4706 (set_ignore_count): Likewise for ignore counts.
4707 If no tty, do not simply return, still need to send event
4708 notification.
4709 (ignore_command): Only print a newline if the command came
4710 from a tty.
4711 Don't call breakpoints_changed, since this is now properly
4712 handled by set_ignore_count.
4713
5402eed1
AC
47142002-06-18 Andrew Cagney <cagney@redhat.com>
4715
4716 * MAINTAINERS: Note that cris-elf target can be compiled with
4717 -Werror.
4718 * cris-tdep.c (cris_register_name): Make return type constant.
4719 (cris_breakpoint_from_pc): Ditto.
4720
cc22880b
ML
47212002-06-18 Michal Ludvig <mludvig@suse.cz>
4722
4723 * frame.h (struct frame_info): Change type of context to
4724 'struct context'.
4725
fa88f677
AC
47262002-06-17 Andrew Cagney <cagney@redhat.com>
4727
4728 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4729 pointer.
4730 * gdbarch.h, gdbarch.c: Regenerate.
4731 * config/mips/tm-mips.h (mips_register_name): Update.
4732 * i386-tdep.h (i386_register_name): Update.
4733 * mips-tdep.c (mips_register_name): Update
4734 * alpha-tdep.c (alpha_register_name): Update.
4735 * arch-utils.c (legacy_register_name): Update.
4736 * arch-utils.h (legacy_register_name): Update.
4737 * avr-tdep.c (avr_register_name): Update.
4738 * ia64-tdep.c (ia64_register_name): Update.
4739 * i386-tdep.c (i386_register_name): Update.
4740 * sparc-tdep.c (sparc32_register_name): Update.
4741 (sparc64_register_name): Update.
4742 (sparclite_register_name): Update.
4743 (sparclet_register_name): Update.
4744 * sh-tdep.c (sh_generic_register_name): Update.
4745 (sh_sh_register_name): Update.
4746 (sh_sh3_register_name): Update.
4747 (sh_sh3e_register_name): Update.
4748 (sh_sh_dsp_register_name): Update.
4749 (sh_sh3_dsp_register_name): Update.
4750 (sh_sh4_register_name): Update.
4751 (sh_sh64_register_name): Update.
4752 * s390-tdep.c (s390_register_name): Update.
4753 * rs6000-tdep.c (rs6000_register_name): Update.
4754 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4755 (ns32k_register_name_32382): Update.
4756 * d10v-tdep.c (d10v_ts2_register_name): Update.
4757 (d10v_ts3_register_name): Update.
4758 * xstormy16-tdep.c (xstormy16_register_name): Update.
4759 * vax-tdep.c (vax_register_name): Update.
4760 * v850-tdep.c (v850_register_name): Update.
4761 * m68hc11-tdep.c (m68hc11_register_name): Update.
4762 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4763 (am33_register_name): Update.
4764
ea1e7ef6
GS
47652002-06-17 Grace Sainsbury <graces@redhat.com>
4766
4767 * m68k-tdep.c: Reindented.
4768
9b02dd1b
AC
47692002-06-17 Andrew Cagney <ac131313@redhat.com>
4770
4771 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4772 list of predefined types.
4773
8758dec1
MK
47742002-06-16 Mark Kettenis <kettenis@gnu.org>
4775
b6197528
MK
4776 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4777 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4778 REGISTER_CONVERT_TO_RAW): Remove defines.
4779 (i386_register_virtual_type, i386_register_convertible,
4780 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4781 Remove prototypes.
4782 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4783 macros mentioned above.
4784
82b47e62
MK
4785 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4786 (i386lynx_saved_pc_after_call): Remove prototype.
4787 * i386ly-tdep.c: Include "i386-tdep.h".
4788 (i386lynx_saved_pc_after_call): Make static. Use
4789 read_memory_nobpt instead of read_memory. Use
4790 read_memory_unsigned_integer instead of read_memory_integer.
4791 (i386lynx_init_abi): New function.
4792 (i386lynx_coff_osabi_sniffer): New function.
4793 (_initialize_i386bsd_tdep): New function.
4794
8758dec1
MK
4795 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4796 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4797 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4798 (i386_fix_call_dummy): Remove prototype.
4799 * i386-tdep.c (i386_call_dummy_words): New variable.
4800 (i386_gdbarch_init): Adjust for removal of the
4801 macros mentioned above.
4802
e9e68a56
AC
48032002-06-15 Andrew Cagney <ac131313@redhat.com>
4804
4805 * command.h (add_setshow_auto_boolean_cmd): Replace
4806 add_set_auto_boolean_cmd.
4807 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4808 add_set_auto_boolean_cmd.
4809 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4810 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4811 mask-address'' command.
4812 (show_mask_address): Add cmd parameter.
4813 * remote.c (add_packet_config_cmd): Update. Change type of
4814 set_func and show_func to cmd_sfunc_ftype.
4815 (_initialize_remote): Update `set remote Z-packet'
4816 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4817 (show_remote_protocol_e_packet_cmd): Ditto.
4818 (show_remote_protocol_E_packet_cmd): Ditto.
4819 (show_remote_protocol_P_packet_cmd): Ditto.
4820 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4821 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4822 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4823 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4824 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4825 (show_remote_protocol_Z_packet_cmd): Ditto.
4826 (show_remote_protocol_binary_download_cmd): Ditto.
4827 (show_remote_cmd): Pass NULL to all of above.
4828
fc08ec52
MK
48292002-06-15 Mark Kettenis <kettenis@gnu.org>
4830
4831 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4832 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4833 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4834 POP_FRAME): Remove defines.
4835 (i386_push_arguments, i386_store_struct_return,
4836 i386_extract_return_value, i386_store_return_value,
4837 i386_extract_struct_value_address, i386_push_dummy_frame,
4838 i386_pop_frame): Renove prototypes.
4839 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4840 macros mentioned above.
4841
e707bbc2
AC
48422002-06-15 Andrew Cagney <ac131313@redhat.com>
4843
4844 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4845 add_set_boolean_cmd.
4846 (add_setshow_cmd): New function.
4847 * command.h (add_setshow_boolean_cmd): Replace
4848 add_set_boolean_cmd.
4849 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4850 and ``set rdiromatzero''.
4851 * maint.c (_initialize_maint_cmds): Update commented out code.
4852 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4853 * target.c (initialize_targets): Update `set
4854 trust-readonly-sections'.
4855 * remote.c (_initialize_remote): Update `set remotebreak'.
4856
42fdc8df
MK
48572002-06-15 Mark Kettenis <kettenis@gnu.org>
4858
93924b6b
MK
4859 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4860 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4861 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4862 fit into multi-arch framework.
4863 (i386_breakpoint_from_pc): New function.
4864 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4865 above.
4866
42fdc8df
MK
4867 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4868 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4869 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4870 (i386_frameless_function_invocation, i386_frame_num_args,
4871 i386_frame_init_saved_regs): Remove prototypes.
4872 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4873 macros mentioned above.
4874
9773a94b
AC
48752002-06-15 Andrew Cagney <ac131313@redhat.com>
4876
4877 * cli/cli-decode.c (set_cmd_cfunc): Update.
4878 (set_cmd_sfunc): Update.
4879 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4880 (set_cmd_sfunc, set_cmd_cfunc): Update.
4881 * cli/cli-decode.h: Update.
4882
6e157172
MK
48832002-06-15 Mark Kettenis <kettenis@gnu.org>
4884
4885 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4886 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4887
7f19b9a2
AC
48882002-06-15 Andrew Cagney <ac131313@redhat.com>
4889
4890 * defs.h (auto_boolean): Declare enum.
4891 * command.h (cmd_auto_boolean): Delete enum.
4892 * mips-tdep.c (mask_address_var): Update.
4893 (mips_mask_address_p): Update.
4894 (show_mask_address): Update.
4895 * remote.c (struct packet_config): Update.
4896 (update_packet_config): Update.
4897 (show_packet_config_cmd): Update.
4898 (packet_ok): Update.
4899 (add_packet_config_cmd): Update.
4900 (_initialize_remote):
4901 * command.h: Update.
4902 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4903 (do_setshow_command): Update.
4904 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4905 * cli/cli-decode.h: Update.
4906
1cf88de5
MK
49072002-06-15 Mark Kettenis <kettenis@gnu.org>
4908
22ba8cf2
MK
4909 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4910 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4911 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4912 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4913 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4914 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4915
762c5349
MK
4916 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4917 list of DJGPP COFF targets.
4918
091198bb
MK
4919 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4920 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4921 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4922 (FP0_REGNUM): Remove define.
4923 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4924 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4925 (i386_register_virtual_size): Remove protoype.
4926 * i386-tdep.c (i386_register_virtual_size): Removed.
4927 (i386_extract_return_value, i386_store_return_value): Use
4928 FP0_REGNUM instead of NUM_FREGS to determine whether the
4929 floating-point registers are available.
4930 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4931 Adjust for removal of macros mentioned above.
4932
49332002-06-15 Mark Kettenis <kettenis@gnu.org>
4934
fcc9bf01
MK
4935 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4936 comments.
4937 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4938 Remove prototypes.
4939 (supply_gregset, fill_gregset): Remove use of register keyword and
4940 remove declaration for regmap. Use I386_NUM_GREGS instead of
4941 NUM_REGS and NUM_FREGS.
4942 (FPREGSET_FSAVE_OFFSET): Remove.
4943 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4944 NUM_FREGS to determine whether the floating-point registers are
4945 available.
4946
65e78234
MK
4947 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4948 gnu_store_registers): Replace usage of NUM_GREGS with
4949 I386_NUM_GREGS.
4950
98df6387
MK
4951 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4952 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4953 usage of NUM_GREGS with I386_NUM_GREGS.
4954
099a9414
MK
4955 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4956
57976e88
MK
4957 * i386bsd-nat.c: Include "i386-tdep.h".
4958 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4959 I386_NUM_GREGS.
4960
b335f4a6
MK
4961 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4962 and associated comment. They no longer make any sense, since we
4963 don't use this file anymore on Linux.
4964
1cf88de5
MK
4965 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4966 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4967 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4968 elements in these arrays.
4969 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4970 MAX_NUM_REGS.
4971
daa66587
MK
49722002-06-15 Mark Kettenis <kettenis@gnu.org>
4973
4974 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4975 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4976
26e9b323
AC
49772002-06-14 Andrew Cagney <cagney@redhat.com>
4978
4979 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4980 EXTRACT_RETURN_VALUE.
4981 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4982 EXTRACT_STRUCT_VALUE_ADDRESS.
4983 * gdbarch.h, gdbarch.c: Regenerate.
4984
4985 * values.c (value_being_returned): Handle
4986 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4987 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4988
4989 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4990 * arm-tdep.c (arm_gdbarch_init): Update.
4991 * avr-tdep.c (avr_gdbarch_init): Update.
4992 * cris-tdep.c (cris_gdbarch_init): Update.
4993 * d10v-tdep.c (d10v_gdbarch_init): Update.
4994 * ia64-tdep.c (ia64_gdbarch_init): Update.
4995 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4996 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4997 * s390-tdep.c (s390_gdbarch_init): Update.
4998 * sh-tdep.c (sh_gdbarch_init): Update.
4999 * s390-tdep.c (s390_gdbarch_init): Update.
5000 * sparc-tdep.c (sparc_gdbarch_init): Update.
5001 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5002 * v850-tdep.c (v850_gdbarch_init): Update.
5003 * vax-tdep.c (vax_gdbarch_init): Update.
5004 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5005 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5006
5007 * config/arc/tm-arc.h: Update.
5008 * config/d30v/tm-d30v.h: Update.
5009 * config/fr30/tm-fr30.h: Update.
5010 * config/h8300/tm-h8300.h: Update.
5011 * config/h8500/tm-h8500.h: Update.
5012 * config/i386/tm-i386.h: Update.
5013 * config/i386/tm-ptx.h: Update.
5014 * config/i386/tm-symmetry.h: Update.
5015 * config/i960/tm-i960.h: Update.
5016 * config/m32r/tm-m32r.h: Update.
5017 * config/m68k/tm-delta68.h: Update.
5018 * config/m68k/tm-linux.h: Update.
5019 * config/m68k/tm-m68k.h: Update.
5020 * config/m88k/tm-m88k.h: Update.
5021 * config/mcore/tm-mcore.h: Update.
5022 * config/mips/tm-mips.h: Update.
5023 * config/mn10200/tm-mn10200.h: Update.
5024 * config/pa/tm-hppa.h: Update.
5025 * config/pa/tm-hppa64.h: Update.
5026 * config/sparc/tm-sp64.h: Update.
5027 * config/sparc/tm-sparc.h: Update.
5028 * config/sparc/tm-sparclet.h: Update.
5029 * config/z8k/tm-z8k.h: Update.
5030
5179e78f
AC
50312002-06-14 Andrew Cagney <cagney@redhat.com>
5032
5033 * Makefile.in (i386_linux_tdep_h): Define.
5034 (i386_tdep_h, i387_tdep_h): Define.
5035 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5036 $(i386_tdep_h) and $(i387_tdep_h).
5037 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5038
8201327c
MK
50392002-06-14 Mark Kettenis <kettenis@gnu.org>
5040
edf393ac
MK
5041 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5042 Already covered by the default.
5043
896fb97d
MK
5044 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5045 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5046 (i386_gdbarch_init): Initialize long_double_format and long_double
5047 bit.
5048
8201327c
MK
5049 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5050 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5051 Move these to ...
5052 * config/i386/i386sol2.mh: ... here.
5053 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5054 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5055 (SIGCONTEXT_PC_OFFSET): Remove define.
5056 (IN_SIGTRAMP): Remove define.
5057 * i386-sol2-tdep.c: New file.
5058
5059 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5060 * config/i386/tm-i386nw.h: Removed.
5061
5062 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5063 USE_STRUCT_CONVENTION): Remove defines.
5064 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5065 (get_longjmp_target): Remove prototype.
5066 (IN_SIGTRAMP): Remove define.
5067 (i386bsd_in_sigtramp): Remove prototype.
5068 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5069 function. Update comment accordingly
5070 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5071 (FRAME_SAVED_PC): Remove define.
5072 (i386bsd_frame_saved_pc): Remove prototype.
5073 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5074 GET_LONGJMP_TARGET): Remove defines.
5075 (get_longjmp_target): Remove prototype.
5076 (IN_SIGTRAMP): Remove define.
5077 (i386bsd_in_sigtramp): Remove prototype.
5078 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5079 function. Update comment accordingly
5080 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5081 (FRAME_SAVED_PC): Remove define.
5082 (i386bsd_frame_saved_pc): Remove prototype.
5083 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5084 Remove prototype.
5085 (USE_STRUCT_CONVENTION): Remove prototype.
5086 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5087 declaration.
5088 (_initialize_i386bsd_nat): Revise logic to determine some
5089 constants at compile time when compiling a native GDB. Warn if
5090 things don't match up with what we expect.
5091 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5092 Remove variables.
5093 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5094 to use date stored in `struct gdbarch_tdep'.
5095 (i386bsd_sigcontext_offset): Remove varaible.
5096 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5097 stored in `struct gdbarch_tdep'.
5098 (i386bsd_frame_saved_pc): Make static.
5099 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5100 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5101 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5102 i386fbsd4_sc_pc_offset): New variables.
5103 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5104 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5105 functions.
5106 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5107 functions.
5108 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5109 Modify the value of i386fbsd_sigtramp_start and
5110 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5111 i386fbsd_sigtramp_end.
5112 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5113 function.
5114
5115 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5116 define to i386-linux-tdep.h.
5117 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5118 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5119 defines.
5120 (i386_linux_register_name, i386_linux_register_byte,
5121 i386_linux_register_raw_size): Remove prototypes.
5122 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5123 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5124 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5125 TARGET_WRITE_PC): Remove defines.
5126 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5127 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5128 i386_linux_write_pc): Remove prototypes.
5129 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5130 (get_longjmp_target): Remove prototype.
5131 * i386-linux-tdep.h: New file.
5132 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5133 * i386-linux-tdep.c: Include "i386-tdep.h" and
5134 "i386-linux-tdep.h".
5135 (i386_linux_register_name, i386_linux_register_byte,
5136 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5137 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5138 Make static.
5139 (i386_linux_init_abi): New function.
5140 (_initialize_i386_linux_tdep): New function.
5141
5142 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5143 (i386_saved_pc_after_call): Remove prototype.
5144 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5145 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5146 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5147 (i386_register_name, i386_stab_reg_to_regnum,
5148 i386_dwarf_reg_to_regnum): Remove prototypes.
5149 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5150 SIZEOF_SSE_REGS): Remove defines.
5151 (REGISTER_BYTES): Remove define.
5152 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5153 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5154 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5155 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5156 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5157 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5158 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5159 (get_longjmp_target): Remove prototype.
5160 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5161 (sigtramp_saved_pc): Remove define.
5162 (i386v4_sigtramp_saved_pc): Remove prototype.
5163 * config/i386/tm-go32.h (FRAME_CHAIN,
5164 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5165 (i386go32_frame_saved_pc): Remove prototype.
5166 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5167 (get_longjmp_target): Remove prototype.
5168 * i386-tdep.h: Include "osabi.h".
5169 (enum i386_abi): Removed.
5170 (enum struct_return): New enum.
5171 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5172 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5173 sc_pc_offset members.
5174 (i386_gdbarch_register_os_abi): Remove prototype.
5175 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5176 I386_SSE_NUM_REGS): New defines.
5177 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5178 I386_SSE_SIZEOF_REGS): New defines.
5179 (i386_register_name, i386_register_byte, i386_register_raw_size):
5180 New prototypes.
5181 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5182 (i386bsd_sigtramp_saved_pc): New prototype.
5183 * i386-tdep.c: Don't include "elf-bfd.h".
5184 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5185 i386_frame_chain, i386_saved_pc_after_call): Make static.
5186 (i386_frame_saved_pc): Rewrite to call architecture dependent
5187 function to deal with signal handlers. Make static.
5188 (i386go32_frame_saved_pc): Removed.
5189 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5190 Removed.
5191 (i386_get_longjmp_target): New function.
5192 (default_struct_convention, pcc_struct_convention,
5193 reg_struct_convention, valid_conventions, struct_convention): New
5194 variables.
5195 (i386_use_struct_convention): New function.
5196 (i386v4_sigtramp_saved_pc): Renamed to
5197 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5198 (i386_pc_in_sigtramp): New function.
5199 (i386_abi_names): Removed.
5200 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5201 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5202 Removed.
5203 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5204 i386_gdbarch_register_os_abi): Removed.
5205 (struct i386_abi_handler): Removed.
5206 (i386_abi_handler_list): Removed.
5207 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5208 functions.
5209 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5210 i386_nw_init_abi): New functions.
5211 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5212 Use set_gdbarch_xxx() calls instead of relying on macros for a
5213 number of calls.
5214 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5215 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5216 Register the various architecture variants defined in this file.
5217
ad2f7632
DJ
52182002-06-14 Daniel Jacobowitz <drow@mvista.com>
5219
5220 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5221 (struct main_type): Remove arg_types member. Update comments for
5222 struct field.
5223 (TYPE_ARG_TYPES): Remove.
5224 (TYPE_FN_FIELD_ARGS): Update.
5225 (smash_to_method_type): Update prototype.
5226
5227 * c-typeprint.c (cp_type_print_method_args): Take method type
5228 instead of argument list. Use new argument layout. Simplify.
5229 (c_type_print_args): Use new argument layout. Simplify.
5230 (c_type_print_base): Update call to cp_type_print_method_args.
5231 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5232 argument; use die->type instead. Update call to
5233 smash_to_method_type.
5234 (read_structure_scope): Update call to dwarf2_add_member_fn.
5235 * gdbtypes.c (allocate_stub_method): Update comment.
5236 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5237 Use new argument layout.
5238 (check_stub_method): Use new argument layout. Don't count
5239 void as an argument.
5240 (print_arg_types): Update comments. Use new argument layout.
5241 (recursive_dump_type): Don't print arg_types member.
5242 * hpread.c (hpread_read_struct_type): Use new argument layout.
5243 (fixup_class_method_type): Likewise.
5244 (hpread_type_lookup): Likewise.
5245 * stabsread.c (read_type): Update calls to read_args and
5246 smash_to_method_type.
5247 (read_args): Use new argument layout. Simplify.
5248 * valops.c (typecmp): Use new argument layout. Update parameters
5249 and comments. Simplify.
5250 (hand_function_call): Use new argument layout.
5251 (search_struct_method): Update call to typecmp.
5252 (find_overload_match): Use new argument layout.
5253
6da02953
DJ
52542002-06-13 Daniel Jacobowitz <drow@mvista.com>
5255
5256 * NEWS: Mention multithreaded debug support for gdbserver.
5257
519b2366
DJ
52582002-06-13 Daniel Jacobowitz <drow@mvista.com>
5259
5260 * MAINTAINERS: Mention NEWS.
5261
6c0d6680
DJ
52622002-06-13 Daniel Jacobowitz <drow@mvista.com>
5263
5264 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5265 (struct mips_objfile_private, compare_pdr_entries): New.
5266 (non_heuristic_proc_desc): Read the ".pdr" section if it
5267 is present.
5268
6529d2dd
AC
52692002-06-12 Andrew Cagney <ac131313@redhat.com>
5270
5271 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5272 (arm_debug): New static variable.
5273 (_initialize_arm_tdep): Add ``set debug arm'' command.
5274
26216b98
AC
52752002-06-12 Andrew Cagney <ac131313@redhat.com>
5276
5277 * Makefile.in (sim_arm_h): Define.
5278 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5279 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5280 (arm_register_sim_regno): New function, map an internal REGNUM
5281 onto a simulator register number.
5282 (arm_gdbarch_init): Set register_sim_regno.
5283
814b3ba0
AH
52842002-06-09 Aldy Hernandez <aldyh@redhat.com>
5285
5286 * MAINTAINERS: Add self.
5287
475b0867
JB
52882002-06-11 Jim Blandy <jimb@redhat.com>
5289
919d772c
JB
5290 * source.c (source_info): Mention whether the symtab has
5291 information about preprocessor macros.
5292
475b0867
JB
5293 Call the command `info macro', not `show macro'.
5294 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5295 Fix error message.
5296 (_initialize_macrocmd): Register `info_macro_command' in
5297 `infolist', not `showlist'.
5298
9e364162
DJ
52992002-06-11 Daniel Jacobowitz <drow@mvista.com>
5300
5301 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5302 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5303 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5304 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5305 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5306 unconditionally.
5307 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5308 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5309 (_initialize_mips_tdep): Remove dead code.
5310 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5311 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5312 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5313 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5314 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5315 MIPS_LAST_FP_ARG_REGNUM): Remove.
5316
23aa4c72
ML
53172002-06-11 Michal Ludvig <mludvig@suse.cz>
5318
5319 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5320 (unwind_tmp_obstack_free, parse_frame_info)
5321 (update_context, cfi_read_fp, cfi_write_fp)
5322 (cfi_frame_chain, cfi_init_extra_frame_info)
5323 (cfi_virtual_frame_pointer): Use the above function.
264d1763 5324 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 5325
70eb15a4
CV
53262002-06-11 Corinna Vinschen <vinschen@redhat.com>
5327
5328 * v850-tdep.c (v850_type_is_scalar): New function.
5329 (v850_use_struct_convention): Match current gcc implementation
5330 as close as possible.
5331 (v850_push_arguments): Fix stack_offset handling. Don't write
5332 struct_addr into register. This is done by v850_store_struct_return.
5333 (v850_extract_return_value): Care for structs.
5334 (v850_store_return_value): Ditto.
5335 (v850_store_struct_return): Actually write address.
5336
482a4d06
ML
53372002-06-11 Michal Ludvig <mludvig@suse.cz>
5338
5339 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5340 without debug information too.
5341
d855c300
AC
53422002-06-10 Andrew Cagney <ac131313@redhat.com>
5343
5344 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5345 Make multi-arch pure.
5346 * gdbarch.h, gdbarch.c: Re-generate.
5347 * arm-tdep.c (arm_print_float_info): Update.
5348 * arch-utils.h (default_print_float_info): Update.
5349 * arch-utils.c (default_print_float_info): Update.
5350 * infcmd.c (float_info): Update call.
5351
dd12a101
AC
53522002-06-10 Andrew Cagney <ac131313@redhat.com>
5353
5354 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5355 the front of the initialize list.
5356
101dcfbe
AC
53572002-06-10 Andrew Cagney <ac131313@redhat.com>
5358
5359 * infrun.c (struct inferior_status): Replace fields
5360 selected_frame_address and selected_level with field
5361 selected_frame_id.
5362 (save_inferior_status): Update. Use get_frame_id.
5363 (struct restore_selected_frame_args): Delete.
5364 (restore_selected_frame): Update. Use frame_find_by_id.
5365 (restore_inferior_status): Update.
5366
5367 * breakpoint.h (struct breakpoint): Change type of
5368 watchpoint_frame to frame_id.
5369 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5370 call to get_current_frame.
5371 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5372 get_current_frame.
5373 (watchpoint_check): Use frame_find_by_id.
5374
5375 * frame.h (record_selected_frame): Delete declaration.
5376 * stack.c (record_selected_frame): Delete function.
5377
5378 * frame.h (struct frame_id): Define.
5379 (get_frame_id): Declare.
5380 (frame_find_by_id): Declare.
5381 * frame.c (frame_find_by_id): New function.
5382 (get_frame_id): New function.
5383
304270b6
AV
53842002-06-10 Andrey Volkov <avolkov@transas.com>
5385
5386 * ser-e7kpc.c: Fix duplicated define and call of
5387 _initialize_ser_e7000pc
5388
2f2cf184
DJ
53892002-06-09 Daniel Jacobowitz <drow@mvista.com>
5390
5391 * signals/signals.c (target_signal_from_host): Fix #ifdef
5392 SIGRTMIN case.
5393 (do_target_signal_to_host): Likewise.
5394
caaa3122
DJ
53952002-06-09 Daniel Jacobowitz <drow@mvista.com>
5396
5397 * mips-tdep.c (mips_find_abi_section): New function.
5398 (mips_gdbarch_init): Call it.
5399
6ac5df3a
MK
54002002-06-09 Mark Kettenis <kettenis@gnu.org>
5401
5402 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5403 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5404 after Andrew's 2002-06-08 gdbarch change.
5405
82ea117a
MK
54062002-06-09 Mark Kettenis <kettenis@gnu.org>
5407
5408 * i386-linux-nat.c (suppy_gregset): Don't supply
5409 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5410 register cache.
5411 (fill_gregset): Don't fetch it under the same circumstances.
5412
3c25f8c7
AC
54132002-06-09 Andrew Cagney <cagney@redhat.com>
5414
5415 * Makefile.in (callback_h): Define.
5416 (remote_sim_h): Update path to remote-sim.h.
5417 (remote-rdp.o): Add $(callback_h).
5418 (remote-sim.o): Use $(callback_h).
5419 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5420 * remote-rdp.c: Include "gdb/callback.h".
5421
1029b7fa
MK
54222002-06-09 Mark Kettenis <kettenis@gnu.org>
5423
5424 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5425 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5426
616675d3
AC
54272002-06-08 Andrew Cagney <ac131313@redhat.com>
5428
a3efda28
AC
5429 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5430 * rdi-share/serpardr.c: Ditto.
5431 * rdi-share/unixcomm.c: Ditto.
5432 * rdi-share/serdrv.c: Ditto.
5433 * rdi-share/hostchan.h: Ditto.
5434 * rdi-share/hostchan.c: Ditto.
5435 * rdi-share/host.h: Ditto.
5436 * rdi-share/devsw.c: Ditto.
5437
c5f10366
AC
5438 * objfiles.h: Change type of obj_private to void pointer.
5439 * pa64solib.c: Update copyright. Don't include "assert.h", use
5440 strcmp instead of STREQ, use LONGEST, do not use PTR
5441 * somsolib.c: Ditto.
5442
616675d3
AC
5443 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5444 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5445 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5446
e4b415d9
AC
54472002-06-08 Andrew Cagney <ac131313@redhat.com>
5448
5449 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5450 (default_get_saved_register): Delete function.
5451 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5452 generic_unwind_get_saved_register.
5453 * gdbarch.h, gdbarch.c: Re-generate.
5454
ca0d0b52
AC
54552002-06-08 Andrew Cagney <ac131313@redhat.com>
5456
5457 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5458 generic_func_frame_chain_valid.
5459 * gdbarch.h, gdbarch.c: Re-generate.
5460 * blockframe.c (generic_func_frame_chain_valid): Only check
5461 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5462 passing FP to PC_IN_CALL_DUMMY.
5463 Fix PR gdb/360.
5464
76860b5f
AC
54652002-06-08 Andrew Cagney <ac131313@redhat.com>
5466
5467 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5468 (register_gdbarch_data): Initialize init_p.
5469 (gdbarch_data): Initialize data pointer using the init function.
5470 (init_gdbarch_data): Delete function.
5471 (gdbarch_update_p): Update.
5472 (initialize_non_multiarch): Update.
5473 (struct gdbarch): Add field initialized_p.
5474 * gdbarch.h, gdbarch.c: Re-generate.
5475
8dda9770
ML
54762002-06-07 Michal Ludvig <mludvig@suse.cz>
5477
5478 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5479 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5480 better do the things actually here.
5481 * x86-64-tdep.c (x86_64_register_name2nr): New.
5482 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5483 (x86_64_gdbarch_init): Respect the above change.
5484 * x86-64-tdep.h (x86_64_register_name2nr)
5485 (x86_64_register_nr2name): Add prototypes.
5486 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5487
3d79a47c
MS
54882002-06-06 Michael Snyder <msnyder@redhat.com>
5489
7bd91a28
MS
5490 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5491 Delete extra braces and re-indent.
5492 (d10v_store_return_value): Char return values
3d79a47c
MS
5493 must be shifted over by one byte in R0.
5494 (d10v_extract_return_value): Delete extra braces, re-indent.
5495
095a4c96
EZ
54962002-06-06 Elena Zannoni <ezannoni@redhat.com>
5497
5498 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5499 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5500 (d10v_integer_to_address): Rewrite.
5501 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5502 the d10v specific functions which take care of converting to the
5503 correct space.
5504
e8a77ca4
EZ
55052002-06-06 Elena Zannoni <ezannoni@redhat.com>
5506
5507 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5508 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5509
4f2e4a4f
AC
55102002-06-02 Andrew Cagney <ac131313@redhat.com>
5511
5512 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5513 includes.
5514 * config/tm-linux.h: Ditto.
5515 * config/alpha/tm-alphalinux.h: Ditto.
5516 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5517 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5518 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5519 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5520 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5521 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5522 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5523 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5524 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5525 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5526 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5527 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5528 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5529 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5530 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5531 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5532 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5533 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5534 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5535 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5536 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5537 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5538 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5539 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5540 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5541 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5542 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5543 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5544 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5545 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5546 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5547 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5548 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5549 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5550 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5551 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5552 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5553
ae2ab2ce
AS
55542002-05-04 Aidan Skinner <aidan@velvet.net>
5555
5556 * ada-exp.tab.c: New file
5557 * ada-exp.y: New file
5558 * ada-lang.c: New file
5559 * ada-lang.h: New file
5560 * ada-lex.c: New file
5561 * ada-lex.l: New file
5562 * ada-tasks.c: New file
5563 * ada-typeprint.c: New file
5564 * ada-valprint.c: New file
5565
0ddd0135
JT
55662002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5567
5568 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5569 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5570
750fbacc
JT
55712002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5572
5573 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5574 insetead of ppc-linux-tdep.o.
5575 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5576 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5577
df94e18a
AC
55782002-06-02 Andrew Cagney <ac131313@redhat.com>
5579
5580 2002-05-07 Christian Groessler <chris@groessler.org>
5581 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5582 bit register contents for little endian hosts.
5583
1a38ab75
AC
55842002-06-01 Andrew Cagney <ac131313@redhat.com>
5585
5586 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5587 any maintainer.
5588
8b1632ac
AC
55892002-06-01 Andrew Cagney <ac131313@redhat.com>
5590
5591 * gdbarch.h: Regenerate.
5592
627054c8
AC
55932002-06-01 Andrew Cagney <ac131313@redhat.com>
5594
5595 * MAINTAINERS: Add everyone to write-after-approval list.
5596
4f460812
AC
55972002-06-01 Andrew Cagney <ac131313@redhat.com>
5598
5599 * stack.c (frame_info): Use frame_register_unwind instead of
5600 saved_regs. Mention when the SP is on the stack or in a register.
5601
5602 * frame.h (frame_register_unwind_ftype): Define. Document.
5603 (struct frame_info): Add field register_unwind and
5604 register_unwind_cache.
5605 (frame_register_unwind): Declare.
5606 (generic_unwind_get_saved_register): Declare.
5607
5608 * frame.c (frame_register_unwind): New function.
5609 (generic_unwind_get_saved_register): New function.
5610
5611 * blockframe.c (generic_call_dummy_register_unwind): New function.
5612 (frame_saved_regs_register_unwind): New function.
5613 (set_unwind_by_pc): New function.
5614 (create_new_frame): New function.
5615 (get_prev_frame): New function.
5616
de888f76
AC
56172002-05-30 Andrew Cagney <ac131313@redhat.com>
5618
5619 * a29k-share/: Delete directory.
5620 * remote-vx29k.c: Delete file.
5621
2f2c3626
JT
56222002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5623
5624 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5625 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5626
9ce5c36a
JT
56272002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5628
5629 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5630 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5631 (sparc64nbsd-nat.o)
5632 (sparcnbsd-nat.o)
5633 (sparcnbsd-tdep.o): New dependency lists.
5634 * NEWS: Note new UltraSPARC NetBSD native configuration.
5635 * configure.host (sparc64-*-netbsd*): New host.
5636 * configure.tgt (sparc-*-netbsdelf*)
5637 (sparc-*-netbsd*): Set gdb_target to nbsd.
5638 (sparc64-*-netbsd*): New target.
5639 * sparc64nbsd-nat.c: New file.
5640 * sparcnbsd-nat.c: New file.
5641 * sparcnbsd-tdep.c: New file.
5642 * sparcnbsd-tdep.h: New file.
5643 * config/sparc/nbsd.mt: New file.
5644 * config/sparc/nbsd64.mh: New file.
5645 * config/sparc/nbsd64.mt: New file.
5646 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5647 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5648 (HOST_IPC): Remove.
5649 * config/sparc/nbsdaout.mt: Remove.
5650 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5651 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5652 (HOST_IPC): Remove.
5653 * config/sparc/nbsdelf.mt: Remove.
5654 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5655 sparc-nat.c compatiblity defines.
5656 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5657 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5658 * config/sparc/tm-nbsd64.h: New file.
5659 * config/sparc/tm-nbsdaout.h: Remove.
5660 * config/sparc/xm-nbsd.h: Remove.
5661
ef3cf062
JT
56622002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5663
5664 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5665 * sparc-tdep.c: Include osabi.h.
5666 (gdbarch_tdep): Add osabi member.
5667 (_initialize_sparc_tdep): Use gdbarch_register.
5668 (sparc_gdbarch_init): Use generic OS ABI framework.
5669 (sparc_dump_tdep): New function.
5670
ee8ff470
KB
56712002-05-30 Kevin Buettner <kevinb@redhat.com>
5672
5673 * corefile.c (do_captured_read_memory_integer): Return non-zero
5674 result.
5675 (safe_read_memory_integer): Copy result of memory read when
5676 status is non-zero. Also, add comments.
5677
7b112f9c
JT
56782002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5679
5680 * Makefile.in (ppc_tdep_h): Define.
5681 (ppc-linux-nat.o)
5682 (ppc-linux-tdep.o)
5683 (rs6000-tdep.o): Use $(ppc_tdep_h).
5684 (ppc-sysv-tdep.o)
5685 (ppcnbsd-nat.o)
5686 (ppcnbsd-tdep.o): New dependency lists.
5687 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5688 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5689 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5690 (ppc_sysv_abi_broken_use_struct_convention)
5691 (ppc_sysv_abi_use_struct_convention)
5692 (ppc_sysv_abi_push_arguments): Move to...
5693 * ppc-sysv-tdep.c: ...here.
5694 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5695 * rs6000-tdep.c (process_note_abi_tag_sections)
5696 (get_elfosabi): Remove.
5697 (rs6000_gdbarch_init): Use generic OS ABI framework.
5698 (rs6000_dump_tdep): New function.
5699 (_initialize_rs6000_tdep): Use gdbarch_register.
5700 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5701 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5702 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5703 of ppc-linux-tdep.o.
5704 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5705 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5706 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5707 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5708 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5709 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5710
480dd42a
JB
57112002-05-29 Jim Blandy <jimb@redhat.com>
5712
5713 * macroscope.c (default_macro_scope): Put `void' in empty argument
5714 list.
5715
4182591f
AC
57162002-05-29 Andrew Cagney <ac131313@redhat.com>
5717
5718 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5719 * arch-utils.c: Include "sim-regno.h".
5720 * gdbarch.sh: Don't include "sim-regno.h".
5721 * gdbarch.h, gdbarch.c: Regenerate.
5722 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5723 here.
5724 * arch-utils.h (legacy_register_sim_regno): To here.
5725 * remote-sim.c (legacy_register_sim_regno): Move function from
5726 here.
5727 * arch-utils.c (legacy_register_sim_regno): To here.
5728
8238d0bf
AC
57292002-05-28 Andrew Cagney <ac131313@redhat.com>
5730
5731 * sim-regno.h: New file.
5732 * Makefile.in (sim_regno_h): Define.
5733 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5734 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5735 (legacy_register_sim_regno): New function.
5736 (one2one_register_sim_regno): New function.
5737 (gdbsim_fetch_register): Rewrite.
5738 (gdbsim_store_register): Only store a register when
5739 REGISTER_SIM_REGNO is valid.
5740 * d10v-tdep.c: Include "sim-regno.h".
5741 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5742 (d10v_ts3_register_sim_regno): Ditto.
5743 * gdbarch.sh: Include "sim-regno.h".
5744 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5745 * gdbarch.h, gdbarch.c: Regenerate.
5746 * arch-utils.h (default_register_sim_regno): Delete declaration.
5747 * arch-utils.c (default_register_sim_regno): Delete function.
5748
485721b1
JT
57492002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5750
5751 * ppcnbsd-nat.c: Rewrite.
5752 * ppcnbsd-tdep.c: New file.
5753 * ppcnbsd-tdep.h: New file.
5754 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5755 solib.o, and solib-svr4.o.
5756 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5757 nbsd-tdep.o, and corelow.o.
5758
697f244d
AC
57592002-05-28 Andrew Cagney <ac131313@redhat.com>
5760
5761 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5762 `tr' and `sed'. Mention that `broken' targets are not expected to
5763 build.
5764
f08caad1 57652002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5766
5767 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5768 Let PC point right after the prologue before looking up symbols.
5769
3139facc
MH
57702002-05-27 Martin M. Hunt <hunt@redhat.com>
5771
5772 * i386-tdep.c (i386_register_virtual_type): Return
5773 builtin_type_vec128i for SSE registers.
5774
5775 * gdbtypes.h (builtin_type_vec128i): Declare.
5776
5777 * gdbtypes.c (build_builtin_type_vec128i): New function.
5778 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5779 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5780 (build_gdbtypes): Initialize new builtin vector types.
5781 (_initialize_gdbtypes): Register new vector types with gdbarch.
5782
6e3ba3b8
JT
57832002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5784
5785 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5786 since it has been multi-arch'd.
5787 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5788 Move Alpha and VAX multi-arch news entries to same section
5789 as other multi-arch news.
5790
93d5585d
JT
57912002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5792
5793 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5794 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5795 static. Rename some register numbers to put them in ns32k-tdep
5796 private namespace.
5797 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5798 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5799 functions.
5800 (_initialize_ns32k_tdep): Use gdbarch_register.
5801 * ns32k-tdep.h: New file.
5802 * ns32knbsd-tdep.c: New file.
5803 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5804 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5805 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5806 REGISTER_BYTES, REGISTER_BYTE): Remove.
5807 * config/ns32k/tm-ns32k.h: New file.
5808 * config/ns32k/tm-umax.h: Remove.
5809
efb2c70e
JT
58102002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5811
5812 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5813 ns32k_store_struct_return, ns32k_extract_return_value,
5814 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5815 functions.
5816 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5817 ns32k_saved_pc_after_call.
5818 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5819 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5820 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5821 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5822 ns32k_extract_struct_value_address.
5823
7bcc927b
JT
58242002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5825
5826 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5827 ns32k_fix_call_dummy): New.
5828 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5829 ns32k_call_dummy_words.
5830 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5831 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5832 CALL_DUMMY_NARGS): Remove.
5833 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5834
78f9d765
JT
58352002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5836
5837 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5838 ns32k_frame_saved_pc, ns32k_frame_args_address,
5839 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5840 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5841 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5842 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5843 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5844 (BREAKPOINT): Remove..
5845 (FRAME_CHAIN): Define as ns32k_frame_chain.
5846 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5847 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5848 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5849 (FRAME_FIND_SAVED_REGS): Remove.
5850 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5851 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5852 (POP_FRAME): Define as ns32k_pop_frame.
5853
f2c762e0
JT
58542002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5855
5856 * ns32k-tdep.c (ns32k_register_byte_32082,
5857 ns32k_register_byte_32382, ns32k_register_raw_size,
5858 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5859 functions.
5860 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5861 ns32k_register_byte_32382.
5862 * config/ns32k/tm-umax.h: Update copyright years.
5863 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5864 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5865 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5866 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5867 (ns32k_get_enter_addr): Fix prototype.
5868
af137673
JT
58692002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5870
5871 * ns32k-tdep.c: Update copyright years.
5872 (ns32k_register_name_32082): New function.
5873 (ns32k_register_name_32382): Ditto.
5874 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5875 (REGISTER_NAME): Define as ns32k_register_name_32382.
5876 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5877 (REGISTER_NAME): Define as ns32k_register_name_32082.
5878
a8bc7b56
JB
58792002-05-24 Jim Blandy <jimb@redhat.com>
5880
5881 * dwarf2read.c (free_line_header): Use xfree, not free.
5882
83a45910
JT
58832002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5884
5885 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5886 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5887
0db71247
AC
58882002-05-23 Andrew Cagney <ac131313@redhat.com>
5889
5890 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5891
b9e5e4dd
AC
58922002-05-23 Andrew Cagney <ac131313@redhat.com>
5893
5894 From Ross Alexander at NEC Europe:
5895 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5896
de530e84
MS
58972002-05-23 Michael Snyder <msnyder@redhat.com>
5898
5899 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5900 for input, rather than parse_and_eval_address.
5901
b91b96f4
AC
59022002-05-23 Andrew Cagney <ac131313@redhat.com>
5903
5904 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5905 * Makefile.in (sim_d10v_h): Update definition.
5906
8b279e7a
AC
59072002-05-24 Andrew Cagney <cagney@redhat.com>
5908
5909 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5910 change `2002-05-22 Michael Snyder' below.
5911 (d10v_push_arguments): Ditto.
5912 (d10v_extract_return_value): Ditto.
5913
0a3d0425
JB
59142002-05-23 Jim Blandy <jimb@redhat.com>
5915
5916 * macrotab.c (check_for_redefinition): Don't complain if the new
5917 definition is the same as the previous one. Take more arguments
5918 to allow the comparison.
5919 (macro_define_object, macro_define_function): Pass more arguments
5920 to check_for_redefinition.
5921
78eac43e
MS
59222002-05-22 Michael Snyder <msnyder@redhat.com>
5923
5924 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5925 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5926 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5927 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5928 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5929 Add a temp variable to save a call (and a memory read).
5930 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5931 if possible (so that PC_IN_CALL_DUMMY will work).
5932
9bc1edb8
CV
59332002-05-22 Corinna Vinschen <vinschen@redhat.com>
5934
5935 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5936
005ef3d2
ML
59372002-05-22 Michal Ludvig <mludvig@suse.cz>
5938
5939 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5940 fde->cie_ptr.
5941 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5942 (dwarf2_build_frame_info): Add offset to fde->initial_location
5943 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
5944 (execute_stack_op): Change type of 'result' from ULONGEST to
5945 CORE_ADDR.
005ef3d2 5946
fcf4f891
JT
59472002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5948
5949 * config/alpha/tm-nbsd.h: Include solib.h.
5950
cfef91e4
JT
59512002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5952
5953 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5954 assumptions about the host's byte order.
5955
9964235a
JT
59562002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5957
5958 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5959 to dependency list.
5960 * alphanbsd-tdep.c: Include solib-svr4.h.
5961 * shnbsd-tdep.c: Ditto.
5962
9eeef8ef
JT
59632002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5964
5965 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5966 nbsd-tdep.h to dependency list.
5967 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5968 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5969 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5970 nbsdaout.mh and nbsdelf.mh consistently.
5971 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5972 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5973 nbsdaout.mt and nbsdelf.mh consistently.
5974 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5975 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5976 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5977 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5978 a.out shared library stuff from here...
5979 * config/nm-nbsdaout.h: ...to here.
5980 * config/tm-nbsd.h: Remove.
5981 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5982 * config/arm/nbsd.mh: Remove.
5983 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5984 nbsd-tdep.o.
5985 * config/arm/nbsdaout.mh: New file.
5986 * config/arm/nbsdelf.mh: New file.
5987 * config/arm/nm-nbsdaout.h: New file.
5988 * config/i386/nbsd.mh: Remove.
5989 * config/i386/nbsd.mt: Remove.
5990 * config/i386/nbsdaout.mh: New file.
5991 * config/i386/nbsdaout.mt: New file.
5992 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5993 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5994 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5995 i386_register_u_addr): Remove.
5996 * config/i386/nm-nbsdaout.h: New file.
5997 * config/i386/nm-nbsdelf.h: Remove.
5998 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5999 (USE_STRUCT_CONVENTION): Remove.
6000 * config/i386/tm-nbsdaout.h: New file.
6001 * config/i386/tm-nbsdelf.h: Remove.
6002 * config/m68k/nbsd.mh: Remove.
6003 * config/m68k/nbsd.mt: Remove.
6004 * config/m68k/nbsdaout.mh: New file.
6005 * config/m68k/nbsdaout.mt: New file.
6006 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6007 * config/m68k/nm-nbsdaout.h: New file.
6008 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6009 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6010 * config/ns32k/nbsd.mh: Remove.
6011 * config/ns32k/nbsd.mt: Remove.
6012 * config/ns32k/nbsdaout.mh: New file.
6013 * config/ns32k/nbsdaout.mt: New file.
6014 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6015 * config/ns32k/nm-nbsdaout.h: New file.
6016 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6017 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6018 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6019 (SVR4_SHARED_LIBS): Remove.
6020 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6021 * config/sparc/nbsd.mh: Remove.
6022 * config/sparc/nbsd.mt: Remove.
6023 * config/sparc/nbsdaout.mh: New file.
6024 * config/sparc/nbsdaout.mt: New file.
6025 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6026 * config/sparc/nbsdelf.mt: New file.
6027 * config/sparc/nm-nbsdaout.h: New file.
6028 * config/sparc/nm-nbsdelf.h: Remove.
6029 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6030 * config/sparc/tm-nbsdaout.h: New file.
6031
257ce470
JT
60322002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6033
6034 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6035 mipsnbsd-tdep.c
6036 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6037
76a6d5fe
JT
60382002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6039
6040 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6041 shnbsd-nat.c.
6042 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6043
45888261
JT
60442002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6045
6046 * NEWS: Note new MIPS NetBSD native configuration.
6047 * configure.host (mips*-*-netbsd*): New host.
6048 * configure.tgt (mips*-*-netbsd*): New target.
6049 * mipsnbsd-nat.c: New file.
6050 * mipsnbsd-tdep.c: New file.
6051 * mipsnbsd-tdep.h: New file.
6052 * config/mips/nbsd.mh: New file.
6053 * config/mips/nbsd.mt: New file.
6054 * config/mips/nm-nbsd.h: New file.
6055 * config/mips/tm-nbsd.h: New file.
6056
70f80edf
JT
60572002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6058
6059 * Makefile.in (SFILES): Add osabi.c.
6060 (COMMON_OBS): Add osabi.o.
6061 (osabi.o): New dependency list.
6062 * osabi.c: New file.
6063 * osabi.h: New file.
6064 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6065
6066 * Makefile.in (alpha_tdep_h): Define and use instead of
6067 alpha-tdep.h.
6068 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6069 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6070 Remove.
6071 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6072 * alpha-tdep.h: Include osabi.h.
6073 (alpha_abi): Remove.
6074 (gdbarch_tdep): Use generic OS ABI framework.
6075 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6076 gdbarch_register_osabi.
6077 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6078 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6079 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6080
6081 * Makefile.in (sh_tdep_h): Add osabi.h.
6082 * sh-tdep.h (sh_osabi): Remove.
6083 (gdbarch_tdep): Use generic OS ABI framework.
6084 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6085 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6086 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6087 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6088
6089 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6090 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6091 gdbarch_register_osabi.
6092 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6093 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6094 (get_elfosabi): Rename to...
6095 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6096 ABI framework support routines.
6097 (arm_gdbarch_init): Use generic OS ABI framework.
6098 (arm_dump_tdep): Likewise.
6099 (_initialize_arm_tdep): Likewise.
6100 * arm-tdep.h: Include osabi.h.
6101 (arm_abi): Remove.
6102 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6103 osabi member.
6104 (arm_gdbarch_register_os_abi): Remove prototype.
6105 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6106 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6107
6108 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6109 * mips-tdep.c: Include osabi.h.
6110 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6111 OS ABI framework.
6112
d194345b
KH
61132002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6114
6115 * h8300-tdep.c: Fix formatting.
6116
70c6b0d1
EZ
61172002-05-20 Elena Zannoni <ezannoni@redhat.com>
6118
6119 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6120 printing vector registers.
6121
165b8e33
AC
61222002-05-19 Andrew Cagney <ac131313@redhat.com>
6123
6124 From Fernando Nasser:
6125 * remote.c (remote_async_open_1): Re-throw the exception when the
6126 connection fails.
6127 (remote_cisco_open): Ditto.
6128 (remote_open_1): Ditto.
6129
36918e70
AC
61302002-05-19 Andrew Cagney <ac131313@redhat.com>
6131
6132 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6133 (remote_start_remote): Add uiout parameter. Pass through to
6134 remote_start_remote_dummy.
6135 (remote_open_1): Use catch_exception instead of catch_errors.
6136 (remote_async_open_1): Ditto.
6137 (remote_cisco_open): Ditto.
6138
ae44c0c4
AC
61392002-05-19 Andrew Cagney <ac131313@redhat.com>
6140
6141 * remote.c (remote_start_remote): Replace PTR with void pointer.
6142 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6143 static.
6144
8efe637d
AC
61452002-05-18 Andrew Cagney <ac131313@redhat.com>
6146
6147 * gdb_indent.sh: Allow the script to be run in the sim directory.
6148
2f1b5984
MK
61492002-05-18 Mark Kettenis <kettenis@gnu.org>
6150
f0f625e2
MK
6151 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6152 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6153
2f1b5984
MK
6154 * corelow.c (core_open): Only call set_gdbarch_from_file if
6155 exec_bfd is NULL.
6156
fc974602
AV
61572002-05-17 Andrey Volkov <avolkov@transas.com>
6158
6159 * h8300-tdep.c: Add support of EXR register
6160 * config/h8300/tm-h8300.h: Ditto.
6161
906709f4
AV
61622002-05-17 Andrey Volkov <avolkov@transas.com>
6163
6164 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6165
6e591d68
AV
61662002-05-17 Andrey Volkov <avolkov@transas.com>
6167
6168 * h8300-tdep.c: Change literal regnums to REGNO.
6169
84f0252a
JB
61702002-05-17 Jim Blandy <jimb@redhat.com>
6171
e0e9281e
JB
6172 * NEWS: Note addition of macro support.
6173
84f0252a
JB
6174 Expand preprocessor macros in C expressions.
6175 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6176 (scan_macro_expansion, scanning_macro_expansion,
6177 finished_macro_expansion): New function declarations.
6178 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6179 variable declarations.
6180 * parser-defs.h (expression_context_pc): New declaration.
6181 * parse.c (expression_context_pc): New variable.
6182 (parse_exp_1): Set expression_context_pc, as well as
6183 expression_context_block.
6184 * c-exp.y (yylex): If we're not already reading the result of a
6185 macro expansion, try to macro-expand the next token. When we're
6186 done scanning a macro expansion, switch back to the mainline text.
6187 Commas and `if's in a macro's expansion don't terminate the input.
6188 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6189 (macro_original_text, macro_expanded_text,
6190 expression_macro_lookup_func, expression_macro_lookup_baton): New
6191 variables.
6192 (scan_macro_expansion, scanning_macro_expansion,
6193 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6194 c_preprocess_and_parse): New functions.
6195 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6196 c_preprocess_and_parse, instead of c_parse.
6197 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6198 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6199
1c509ca8
JR
6200Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6201
6202 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6203 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6204 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6205
2250ee0c
CV
62062002-05-17 Corinna Vinschen <vinschen@redhat.com>
6207
6208 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6209
ab3b8126
JT
62102002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6211
6212 * Makefile.in (sh_tdep_h): Define and use.
6213 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6214 register enum): Move to...
6215 * * sh-tdep.h: ...here.
6216 * sh-tdep.c: Include sh-tdep.h.
6217 * sh3-rom.c: Likewise.
6218 * shnbsd-tdep.c: Likewise.
6219
ed9d4749
MS
62202002-05-16 Michael Snyder <msnyder@redhat.com>
6221
6222 * arm-tdep.c: Spelling fix in comment.
6223
2e276125
JB
62242002-05-16 Jim Blandy <jimb@redhat.com>
6225
6821892e
JB
6226 Add commands for manually expanding macros and showing their
6227 definitions.
6228 * macrocmd.c, macroscope.c, macroscope.h: New files.
6229 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6230 (macroscope_h): New variable.
6231 (HFILES_NO_SRCDIR): Add macroscope.h.
6232 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6233 (macroscope.o, macrocmd.o): New rules.
6234
2e276125
JB
6235 Teach the Dwarf 2 reader to read macro information.
6236 * dwarf2read.c: #include "macrotab.h".
6237 (dwarf_macinfo_buffer): New variable.
6238 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6239 dwarf_macinfo_size.
6240 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6241 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6242 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6243 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6244 dwarf2_macro_spaces_in_definition): New complaints.
6245 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6246 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6247 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6248 the partial symbol table.
6249 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6250 from what's recorded in the partial symbol table.
6251 (read_file_scope): If the compilation unit has a
6252 `DW_AT_macro_info' attribute, read its macro information.
6253 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6254
2f53fe6c
DJ
62552002-05-16 Daniel Jacobowitz <drow@mvista.com>
6256
6257 Fix PR gdb/546
6258 * ser-tcp.c: Don't include <netinet/udp.h>.
6259
2be99286
SC
62602002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6261
6262 * MAINTAINERS: Update my email address.
6263
c9af212b 62642002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
6265
6266 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6267 include file of the same name.
6268
bf5f1a52
CV
62692002-05-16 Corinna Vinschen <vinschen@redhat.com>
6270
6271 * configure.tgt: Mark v850 as multi-arched.
6272 * config/v850/tm-v850.h: Remove file.
6273 * config/v850/v850.mt: Eliminate TM_FILE.
6274
435e042a
CV
62752002-05-16 Corinna Vinschen <vinschen@redhat.com>
6276
6277 * v850-tdep.c: Full multi-arch.
6278 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6279 Define GDB_MULTI_ARCH to 2.
6280
9819c6c8
PM
62812002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6282
6283 * p-exp.y (current_type): New static variable.
6284 Carries the type of the expression at the position that is parsed.
6285 (push_current_type, pop_current_type): Two new functions. Used
6286 to store/restore current_type in expression on specific tokens.
c9af212b
RE
6287 (search_field): New static variable. Set to one after parsing a point
6288 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
6289 (FIELDNAME): New token. After a point only a token belonging to
6290 current_type type definition is allowed.
6291 (all over token rules): reset and change current_type according
6292 to rules.
6293 (exp '[' rule): insert implicit array index field if
6294 exp is a pascal string type.
6295
3a06899a
CV
62962002-05-16 Corinna Vinschen <vinschen@redhat.com>
6297
6298 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6299 frame info. Use frame_info's saved_regs instead of matching member
6300 in extra_frame_info throughout.
6301 (v850_frame_init_saved_regs): New function.
6302 (v850_init_extra_frame_info): Move most functionality into
6303 v850_frame_init_saved_regs().
6304 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6305 (v850_frame_find_saved_regs): Remove declaration.
6306 (FRAME_FIND_SAVED_REGS): Remove definition.
6307 (v850_frame_init_saved_regs): Add declaration.
6308 (FRAME_INIT_SAVED_REGS): Add definition.
6309
6ed14b0e
CV
63102002-05-16 Corinna Vinschen <vinschen@redhat.com>
6311
6312 * v850-tdep.c: Begin multi-arch'ing v850.
6313 (v850_target_architecture_hook): Remove function.
6314 (v850_gdbarch_init): New function. Add code previously in
6315 v850_target_architecture_hook().
6316 (_initialize_v850_tdep): Don't set target_architecture_hook.
6317 Call register_gdbarch_init() instead.
6318
42725910
DJ
63192002-05-16 Daniel Jacobowitz <drow@mvista.com>
6320
6321 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6322 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6323 (fixup_class_method_type): Likewise.
6324
99d9066e
JB
63252002-05-15 Jim Blandy <jimb@redhat.com>
6326
6327 Add macro structures to GDB's symbol tables. Nobody puts anything
6328 in them yet.
6329 * symtab.h (struct symtab): New member: `macro_table'.
6330 * buildsym.h (pending_macros): New global variable.
6331 * buildsym.c: #include "macrotab.h".
6332 (buildsym_init): Initialize `pending_macros'.
6333 (end_symtab): If we found macro information while reading a CU's
6334 debugging info, do build a symtab structure for it. Make the
6335 symtab point to the macro information, and clear the
6336 `pending_macros' pointer which held it while we were reading the
6337 debug info.
6338 (really_free_pendings): Free any pending macro table.
6339 * objfiles.h (struct objfile): New member: `macro_cache'.
6340 * objfiles.c (allocate_objfile): Set allocate and free functions
6341 for the macro cache's objstack.
6342 (free_objfile): Empty the macro cache's obstack.
6343 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6344 set new allocate and free functions for it.
6345 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6346 free functions for the macro cache's objstack. (Why is this
6347 function building its own objfile?)
6348 * symmisc.c (print_objfile_statistics): Print statistics on the
6349 macro bcache.
6350 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6351
c899585b
RE
63522002-05-15 Richard Earnshaw <rearnsha@arm.com>
6353
6354 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6355 (REGISTER_U_ADDR): Delete definition.
6356 (arm_register_u_addr): Delete declaration.
6357
a6cdd8c5
RE
63582002-05-15 Richard Earnshaw <rearnsha@arm.com>
6359
6360 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6361 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6362
c97dcfc7
AC
63632002-05-14 Andrew Cagney <ac131313@redhat.com>
6364
6365 * regcache.c (register_valid): Revise comments refering to "Not
6366 available" and "unavailable".
6367 * frame.c (frame_register_read): Ditto.
6368 * findvar.c (value_of_register): Ditto.
6369
93021b7d
AC
63702002-05-15 Andrew Cagney <cagney@redhat.com>
6371
6372 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6373 (remote-sim.o): Update dependencies.
6374 (d10v-tdep.o): Specify dependencies.
6375 (sim_d10v_h): Define.
6376
a86bc61c
JB
63772002-05-14 Jim Blandy <jimb@redhat.com>
6378
6379 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6380 * macrotab.c (macro_lookup_inclusion, find_definition,
6381 new_macro_table): Same.
6382
6383 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6384 not `! strcmp ()'. This is a dubious improvement.
6385 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6386
6387 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6388 although it's not necessary, to avoid a warning.
6389
2fdde8f8
DJ
63902002-05-14 Daniel Jacobowitz <drow@mvista.com>
6391
6392 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6393 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6394 TYPE_INSTANCE_FLAGS.
6395 (struct main_type): New.
6396 (struct type): Move most members to struct main_type. Change
6397 cv_type and as_type to new type_chain member. Add instance_flags.
6398 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6399 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6400 (finish_cv_type): Remove prototype.
6401 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6402 Set TYPE_CHAIN.
6403 (alloc_type_instance): New function.
6404 (smash_type): New function.
6405 (make_pointer_type, make_reference_type, make_function_type)
6406 (smash_to_member_type, smash_to_method_type): Call smash_type.
6407 (make_qualified_type): New function.
6408 (make_type_with_address_space): Call make_qualified_type.
6409 (make_cv_type): Likewise.
6410 (finish_cv_type): Remove unnecessary function.
6411 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6412 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6413 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6414 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6415 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6416 * hpread.c (hpread_read_struct_type): Likewise.
6417 * stabsread.c (read_struct_type): Likewise.
6418
843fedf4
EZ
64192002-05-14 Elena Zannoni <ezannoni@redhat.com>
6420
6421 * configure.tgt: Add a catch all sh* target, for cases like
6422 sh[2,3,4]-elf and sh-hms.
6423
05a6c72c
KS
64242002-05-14 Keith Seitz <keiths@redhat.com>
6425
6426 * event-loop.c (create_file_handler): Don't do anything but
6427 update data when we are given a fd which we are already
6428 monitoring.
6429
5d085aaf
ML
64302002-05-14 Michal Ludvig <mludvig@suse.cz>
6431
6432 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6433 (update_context): Use __func__ in warnings.
6434
9db8d71f
DJ
64352002-05-14 Daniel Jacobowitz <drow@mvista.com>
6436
6437 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6438 and tcp_close to net_open and net_close.
6439 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6440 using UDP if requested. Don't try to disable Nagle on UDP
6441 sockets.
6442 * remote.c (remote_serial_open): New function. Warn about UDP.
6443 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6444
5dbc6baa
EZ
64452002-05-13 Elena Zannoni <ezannoni@redhat.com>
6446
6447 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6448
cc3023f7
EZ
64492002-05-13 Elena Zannoni <ezannoni@redhat.com>
6450
6451 * configure.tgt: Remove sh-hms target.
6452 * MAINTAINERS: Don't list sh-hms as a separate target.
6453
ec2bcbe7
JB
64542002-05-13 Jim Blandy <jimb@redhat.com>
6455
6456 Add first preprocessor macro-expansion files.
6457 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6458 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6459 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6460 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6461 (COMMON_OBS): Add macrotab.o, macroexp.o.
6462 (macroexp.o, macrotab.o): New rules.
6463
6d531722
AC
64642002-05-13 Andrew Cagney <ac131313@redhat.com>
6465
6466 * config/m88k/tm-m88k.h: Update copyright.
6467 (m88k_target_write_pc): Declare
6468 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6469 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6470 (SHIFT_INST_REGS): Update definition.
6471 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6472 using old definition of TARGET_WRITE_PC.
6473 * regcache.c (generic_target_write_pc): Delete code handling
6474 NNPC_REGNUM.
6475 * gdbarch.sh (NNPC_REGNUM): Delete.
6476 * gdbarch.h, gdbarch.c: Regenerate.
6477
3e3f2739
RE
64782002-05-13 Richard Earnshaw <rearnsha@arm.com>
6479
6480 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6481 builtin reg number.
6482
0004e5a2
DJ
64832002-05-13 Daniel Jacobowitz <drow@mvista.com>
6484
6485 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6486 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6487 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6488 access macros.
6489 * c-typeprint.c (cp_type_print_method_args): Likewise.
6490 (c_type_print_args): Likewise.
6491 * d10v-tdep.c (d10v_push_arguments): Likewise.
6492 (d10v_extract_return_value): Likewise.
6493 * expprint.c (print_subexp): Likewise.
6494 * gdbtypes.c (lookup_primitive_typename): Likewise.
6495 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6496 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6497 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6498 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6499 (TYPE_VECTOR): Likewise.
6500 * hpread.c (hpread_read_struct_type)
6501 (fix_static_member_physnames, fixup_class_method_type)
6502 (hpread_type_lookup): Likewise.
6503 * mdebugread.c (parse_symbol, parse_type): Likewise.
6504 * p-lang.c (is_pascal_string_type): Likewise.
6505 * valops.c (hand_function_call): Likewise.
6506 * x86-64-tdep.c (classify_argument): Likewise.
6507
6508 * hpread.c (hpread_read_function_type)
6509 (hpread_read_doc_function_type): Call replace_type.
6510 * dstread.c (create_new_type): Delete.
6511 (decode_dst_structure, process_dst_function): Call alloc_type.
6512 Use type access macros.
6513
dff95cc7
MK
65142002-05-12 Mark Kettenis <kettenis@gnu.org>
6515
6516 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6517 the're not supported by the current architecture.
6518 (i387_fill_fxsave): Likewise.
6519
bbcd32ad
FF
65202002-05-12 Fred Fish <fnf@redhat.com>
6521
6522 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6523 sect_index_xxx members to index the first slot in section_offsets
6524 if all of the section_offsets are zero.
6525
89cf4787
MK
65262002-05-12 Mark Kettenis <kettenis@gnu.org>
6527
6528 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6529 checked in with last change.
6530
1f77ffc5
MK
65312002-05-12 Mark Kettenis <kettenis@gnu.org>
6532
6533 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6534 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6535 config.sub.
6536
89b8b4a9
DJ
65372002-05-12 Daniel Jacobowitz <drow@mvista.com>
6538
6539 * Makefile.in: Update dependencies.
6540
14a5e767
AC
65412002-05-11 Andrew Cagney <ac131313@redhat.com>
6542
6543 * language.c (local_hex_string_custom): Simplify. Do not depend
6544 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6545
6546 * memattr.c (mem_info_command): Replace calls to
6547 longest_local_hex_string and longest_local_hex_string_custom.
6548 * buildsym.c (make_blockvector): Ditto.
6549 * solib.c (info_sharedlibrary_command): Ditto.
6550 * tracepoint.c (tracepoints_info): Ditto.
6551 * symtab.c (print_msymbol_info): Ditto.
6552
6553 * language.c (local_hex_string): Delete.
6554 (local_hex_string_custom): Delete.
6555 (longest_local_hex_string): Rename to local_hex_string.
6556 (longest_local_hex_string_custom): Rename to
6557 local_hex_string_custom.
6558 * language.h (local_hex_string): Change parameter type to LONGEST.
6559 (local_hex_string_custom): Ditto.
6560 (longest_local_hex_string): Delete declaration.
6561 (longest_local_hex_string_custom): Ditto.
6562
6563 * solib.c: Update copyright.
6564 * memattr.c: Update copyright.
6565
13d01224
AC
65662002-05-11 Andrew Cagney <ac131313@redhat.com>
6567
6568 * arch-utils.h (legacy_register_to_value): Declare.
6569 (legacy_value_to_register): Declare.
6570 (legacy_convert_register_p): Declare.
6571 * arch-utils.c (legacy_register_to_value): New function.
6572 (legacy_value_to_register): New function.
6573 (legacy_convert_register_p): New function.
6574
6575 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6576 (VALUE_TO_REGISTER): Define.
6577 (CONVERT_REGISTER_P): Define.
6578 * gdbarch.h, gdbarch.c: Regenerate.
6579
6580 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6581 VALUE_TO_REGISTER.
6582 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6583 CONVERT_REGISTER_P.
6584
4a1970e4
DJ
65852005-05-11 Daniel Jacobowitz <drow@mvista.com>
6586 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6587
6588 * Makefile.in: Update dependencies for valops.c.
6589 * valops.c: Include "gdb_assert.h".
6590 (typecmp): Skip THIS parameter to methods.
6591 (find_method_list): Remove static_memfuncp argument,
6592 update callers. Check for stub methods.
6593 (find_value_oload_method_list): Don't set *static_memfuncp.
6594 (find_overload_match): Don't check for stub methods. Assert
6595 that methods are not stubbed. Handle static methods.
6596 (value_find_oload_method_list): Remove static_memfuncp argument.
6597 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6598 to the argument list for static stub methods.
6599 * value.h (value_find_oload_method_list): Update prototype.
6600
b2e75d78
AC
66012002-05-11 Andrew Cagney <ac131313@redhat.com>
6602
6603 * arch-utils.h (generic_register_size): Declare.
6604 (generic_register_raw_size, generic_register_virtual_size): Delete
6605 declarations.
6606 * arch-utils.c (generic_register_raw_size): Delete.
6607 (generic_register_size): New function.
6608 (generic_register_virtual_size): Delete.
6609
6610 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6611 default generic_register_size.
6612 * gdbarch.h, gdbarch.c: Re-generate.
6613
6614 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6615 register_virtual_size.
6616 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6617 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6618
451fbdda
AC
66192002-05-11 Andrew Cagney <ac131313@redhat.com>
6620
6621 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6622 * gdbarch.h, gdbarch.c: Regenerate.
6623 * gnu-v3-abi.c: Update copyright.
6624 (vtable_address_point_offset): Update.
6625 (gnuv3_rtti_type): Update.
6626 (gnuv3_baseclass_offset): Update.
6627 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6628 (init_fetch_link_map_offsets): Update.
6629 * remote.c (get_remote_state): Update.
6630
6d2f5cea
DJ
66312002-05-11 Daniel Jacobowitz <drow@mvista.com>
6632
6633 * TODO: Remove value_headof/value_from_vtable_info comment.
6634 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6635 * values.c (value_headof, value_from_vtable_info): Delete.
6636 * value.h (value_from_vtable_info): Delete prototype.
6637
d2324da4
AC
66382002-05-11 Andrew Cagney <ac131313@redhat.com>
6639
6640 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6641 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6642 $(gdb_regex_h).
6643 (gdb_assert_h): Define.
6644 (gdb_wait_h): Define.
6645 (gdb_regex_h): Define.
6646
5c717440
DJ
66472002-05-11 Daniel Jacobowitz <drow@mvista.com>
6648
6649 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6650 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6651
6c7861b3
JT
66522002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6653
6654 * nbsd-tdep.c: Fix comment.
6655
ea5bc2a6
JT
66562002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6657
6658 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6659 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6660 (nbsd-tdep.o): New dependency list.
6661 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6662 nbsd-tdep.h.
6663 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6664 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6665 * nbsd-tdep.c: New file.
6666 * nbsd-tdep.h: New file.
6667 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6668 nbsd-tdep.h.
6669 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6670 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6671 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6672 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6673
b28da865
JT
66742002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6675
6676 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6677 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6678 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6679 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6680 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6681 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6682
4b8ff1fa
JT
66832002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6684
6685 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6686 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6687 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6688 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6689 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6690 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6691 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6692
dfe6eb1f
JT
66932002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6694
6695 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6696 fetch_elfcore_registers to...
6697 * i386nbsd-tdep.c: ...here.
6698 (i386nbsd_use_struct_convention): Rename to...
6699 (i386nbsd_aout_use_struct_convention): ...this.
6700 (i386nbsd_supply_reg): New function.
6701 (i386nbsd_fill_reg): New function.
6702 (fetch_core_registers): Use i386nbsd_supply_reg.
6703 (fetch_elfcore_registers): Likewise.
6704 (_initialize_i386nbsd_tdep): New function.
6705 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6706 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6707 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6708 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6709 (i386nbsd_aout_use_struct_convention): ...this.
6710
20cb8cda
JT
67112002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6712
6713 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6714 (store_inferior_registers): Use shnbsd_fill_reg.
6715 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6716 sh_nbsd_supply_register): Collapse into...
6717 (shnbsd_supply_reg): ...this.
6718 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6719 (shnbsd_fill_reg): ...this.
6720 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6721 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6722 (fetch_core_registers): Use shnbsd_supply_reg.
6723 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6724 (sh_nbsd_core_fns): Rename to...
6725 (shnbsd_core_fns): ...this.
6726 (sh_nbsd_elfcore_fns): Rename to...
6727 (shnbsd_elfcore_fns): ...this.
6728 (sh_nbsd_init_abi): Rename to...
6729 (shnbsd_init_abi): ...this.
6730 (_initialize_sh_nbsd_tdep): Rename to...
6731 (_initialize_shnbsd_tdep): ...this.
6732 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6733 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6734 sh_nbsd_fill_register): Remove prototypes.
6735 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6736
e750d25e
JT
67372002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6738
6739 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6740 (i387-nat.o): Delete dependency list.
6741 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6742 (x86-64-linux-nat.o): Likewise.
6743 * i387-nat.c: Delete file, moving contents to...
6744 * i387-tdep.c: ...here.
6745 * i387-nat.h: Rename...
6746 * i387-tdep.h: ...to this.
6747 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6748 * i386-linux-nat.c: Likewise.
6749 * i386bsd-nat.c: Likewise.
6750 * i386gnu-nat.c: Likewise.
6751 * i386nbsd-nat.c: Likewise.
6752 * i386v4-nat.c: Likewise.
6753 * x86-64-linux-nat.c: Likewise.
6754 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6755 * config/i386/go32.mh (NATDEPFILES): Likewise.
6756 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6757 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6758 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6759 * config/i386/linux.mh (NATDEPFILES): Likewise.
6760 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6761 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6762 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6763 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6764
1aee598a
JT
67652002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6766
6767 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6768 (alphanbsd-nat.o): Remove dependency list.
6769 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6770 * alphanbsd-nat.c: Delete. Contents moved to...
6771 * alphanbsd-tdep.c: ...here.
6772 (_initialize_alphanbsd_tdep): Register core functions.
6773 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6774
12bcb0fe
JT
67752002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6776
6777 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6778 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6779 (alphanbsd-nat.o): Likewise.
6780 (alphabsd-tdep.o): New dependency list.
6781 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6782 (fill_gregset): Use alphabsd_fill_reg.
6783 (supply_fpregset): Use alphabsd_supply_fpreg.
6784 (fill_fpregset): Use alphabsd_fill_fpreg.
6785 (fetch_inferior_registers): Use struct reg and struct fpreg
6786 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6787 and alphabsd_supply_fpreg.
6788 (store_inferior_registers): Use struct reg and struct fpreg
6789 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6790 and alphabsd_fill_fpreg.
6791 * alphabsd-tdep.c: New file.
6792 * alphabsd-tdep.h: New file.
6793 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6794 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6795 alphabsd_supply_fpreg.
6796 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6797 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6798
361d1df0
EC
67992002-05-11 Eric Christopher <echristo@redhat.com>
6800
6801 * mips-tdep.c (mips_double_register_type): Fix thinko.
6802 (mips_single_register_type): Ditto.
6803 * MAINTAINERS: Add self.
6804
92dd7cee
MK
68052002-05-11 Mark Kettenis <kettenis@gnu.org>
6806
6807 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6808 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6809 right thing on architectures with different endianness and/or
6810 integer sizes.
6811
e27da16d
JT
68122002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6813
6814 From Christian Limpach <chris@Pin.LU>
6815 * configure.in: Change sed expression which comments out
6816 NATDEPFILES to also comment out continuation lines.
6817 * configure: Regenerate.
6818
ddde02bd
EZ
68192002-05-10 Elena Zannoni <ezannoni@redhat.com>
6820
6821 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6822 big patch.
6823
1c922164
EZ
68242002-05-10 Elena Zannoni <ezannoni@redhat.com>
6825
6826 * sh-tdep.c: Include correct file.
6827
283150cd
EZ
68282002-05-10 Elena Zannoni <ezannoni@redhat.com>
6829
6830 New support for sh64-elf (sh5) target.
6831
6832 * configure.tgt: For sh64-elf target, default to sh-elf.
6833
6834 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6835 (struct gdbarch_tdep): Add new fields for new registers and ABI
6836 info.
361d1df0 6837
283150cd
EZ
6838 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6839 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6840 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6841 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6842 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6843 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6844 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6845 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6846 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6847 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6848 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6849 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6850 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6851 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6852 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6853 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6854 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6855 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6856 sign_extend, sh64_nofp_frame_init_saved_regs,
6857 sh64_init_extra_frame_info, sh64_get_saved_register,
6858 sh64_extract_struct_value_address, sh64_pop_frame,
6859 sh64_push_arguments, sh64_extract_return_value,
6860 sh64_store_return_value, sh64_show_media_regs,
6861 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6862 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6863 sh_sh64_register_virtual_type,
6864 sh_sh64_register_convert_to_virtual,
6865 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6866 sh64_register_read, sh64_pseudo_register_write,
6867 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6868 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6869 sh64_do_pseudo_register, sh_compact_do_registers_info,
6870 sh64_do_registers_info, sh_gdbarch_init): New functions.
6871
3117ed25
EZ
68722002-05-10 Elena Zannoni <ezannoni@redhat.com>
6873
6874 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6875
2654e6d4
DJ
68762002-05-10 Daniel Jacobowitz <drow@mvista.com>
6877
6878 * linespec.c (decode_line_1): Check for a double quote after
6879 a filename correctly.
6880
9ab3e532
JB
68812002-05-10 Jim Blandy <jimb@redhat.com>
6882
6883 Properly track the size of the current objfile's .debug_line section.
6884 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6885 (DWARF_LINE_SIZE): New macro.
6886 (dwarf2_build_psymtabs_hard): Record the line section's size in
6887 the partial symbol table.
6888 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6889 symbol table.
6890
126fa72d
PS
68912002-05-10 Petr Sorfa <petrs@caldera.com>
6892
6893 * ia64-tdep.c: Handle breakpoints on L instruction type
6894 in MLX instruction bundle by moving the breakpoint to
6895 the third slot (X instruction type) as L holds only data.
6896
1f077a3e
KB
68972002-05-10 Kevin Buettner <kevinb@redhat.com>
6898
6899 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6900 (process_one_symbol): Complain about discarding local symbols
6901 due to a misplaced N_LBRAC entry.
6902
8120c9d5 69032002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
6904
6905 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
6906 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6907 decrease the depth we are at, in the case of templates.
361d1df0 6908
67b2c998
DJ
69092002-05-09 Daniel Jacobowitz <drow@mvista.com>
6910
6911 * mips-tdep.c (mips_float_register_type): New function.
6912 (mips_double_register_type): New function.
6913 (mips_print_register): Use them.
6914 (do_fp_register_row): Likewise.
6915
fd326606
DJ
69162002-05-09 Daniel Jacobowitz <drow@mvista.com>
6917
6609d9af 6918 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6919 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6920 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6921
bef35864
MS
69222002-05-09 Michael Snyder <msnyder@redhat.com>
6923
6924 * remote-rdp.c (remote_rdp_can_run): Remove.
6925
c55a3f73
TT
69262002-05-09 Tom Tromey <tromey@redhat.com>
6927
6928 * jv-valprint.c (java_val_print): Handle `char' as a special case
6929 of TYPE_CODE_INT.
6930
b8d5e71d
MS
69312002-05-09 Michael Snyder <msnyder@redhat.com>
6932
6933 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6934 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6935 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6936 str r(0123),[sp,#nn].
361d1df0 6937 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6938 order-independent by placing it in a loop.
6939
e2cd42dd
MS
69402002-05-06 Michael Snyder <msnyder@redhat.com>
6941
6942 * stabsread.c (read_type): Add recognition for new attribute:
6943 "@V;" means that an array type is actually a vector.
6944 This is analogous to the vector flag that's been added to dwarf2.
6945
3ce1502b
MK
69462002-05-09 Mark Kettenis <kettenis@gnu.org>
6947
6948 * i386-tdep.h (i386_abi): New enum.
6949 (struct gdbarch_tdep): Replace os_ident member with abi.
6950 (i386_gdbarch_register_os_abi): New prototype.
6951 * i386-tdep.c (i386_abi_names): New array.
6952 (process_note_abi_tag_sections): Removed.
6953 (process_note_sections): New function.
6954 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6955 (struct i386_abi_handler): New struct.
6956 (i386_abi_handler_list): New variable.
6957 (i386_gdbarch_register_os_abi): New function.
6958 (i386_gdbarch_init): Adapt for the changes given above.
6959
084c156a
DJ
69602002-05-08 Daniel Jacobowitz <drow@mvista.com>
6961
6962 * gregset.h: Say "GNU/Linux".
6963
6599f021
EZ
69642002-05-08 Elena Zannoni <ezannoni@redhat.com>
6965
6966 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6967 (build_gdbtypes): Build builtin_type_v2_float.
6968 (_initialize_gdbtypes): Register new builtin type.
6969
40af4b0c
AC
69702002-05-08 Andrew Cagney <ac131313@redhat.com>
6971
6972 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6973 (clear_gdbarch_swap): New function.
6974 (initialize_non_multiarch): Call.
6975 (gdbarch_update_p): Before calling init(), swap out and clear the
6976 existing architecture.
6977 * gdbarch.c: Regenerate.
6978
4fe84f46
JT
69792002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6980
6981 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6982 alphanbsd-tdep.c.
6983
4015edd1
JT
69842002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6985
6986 * sh-nbsd-nat.c: Rename to...
6987 * shnbsd-nat.c: ...this.
6988 * sh-nbsd-tdep.c: Rename to...
6989 * shnbsd-tdep.c: ...this.
6990 * sh-nbsd-tdep.h: Rename to...
6991 * shnbsd-tdep.h: ...this.
6992 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6993 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6994
0e2bd219
RE
69952002-05-08 Richard Earnshaw <rearnsha@arm.com>
6996
6997 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6998 concatenation for command help messages.
6999
13a38d45
JT
70002002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7001
7002 * NEWS: Note new sh*-*-netbsdelf* configuration.
7003 * configure.host: Set gdb_host_cpu to sh for all sh*.
7004 (sh*-*-netbsdelf*): New host.
7005 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7006 (sh*-*-netbsdelf*): New target.
7007 * sh-nbsd-nat.c: New file.
7008 * sh-nbsd-tdep.c: New file.
7009 * sh-nbsd-tdep.h: New file.
7010 * config/sh/nbsd.mh: New file.
7011 * config/sh/nbsd.mt: New file.
7012 * config/sh/nm-nbsd.h: New file.
7013 * config/sh/tm-nbsd.h: New file.
7014
d658f924
JT
70152002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7016
7017 * sh-tdep.c (sh_osabi_names): Declare.
7018 (process_note_abi_tag_sections): New function.
7019 (get_elfosabi): Ditto.
7020 (sh_gdbarch_register_os_abi): Ditto.
7021 (sh_dump_tdep): Ditto.
7022 _initialize_sh_tdep): Use gdbarch_register to register
7023 sh_gdbarch_init and sh_dump_tdep.
7024 * config/sh/tm-sh.h (sh_osabi): Declare.
7025 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7026
848cfffb
AC
70272002-05-07 Andrew Cagney <ac131313@redhat.com>
7028
7029 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7030 (thumb_scan_prologue): Ditto.
7031 (arm_find_callers_reg): Ditto.
7032 (arm_frame_chain): Ditto.
7033 (arm_init_extra_frame_info): Ditto.
7034 (arm_frame_saved_pc): Ditto.
7035 (arm_pop_frame): Ditto.
7036 (arm_push_return_address): New function.
7037 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7038 call_dummy_location, call_dummy_breakpoint_offset_p,
7039 call_dummy_breakpoint_offset, call_dummy_p,
7040 call_dummy_stack_adjust_p, call_dummy_words,
7041 sizeof_call_dummy_words, call_dummy_start_offset,
7042 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7043 call_dummy_address, push_return_address and push_dummy_frame for
7044 generic dummy frames.
7045
e7d717c0
JT
70462002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7047
7048 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7049 size computation for alloca.
7050 (sh_fp_frame_init_saved_regs): Likewise.
7051
7bbcf283
RE
70522002-05-07 Richard Earnshaw <rearnsha@arm.com>
7053
7054 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7055 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 7056 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
7057 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7058 * remote-rdp.c (remote_rdp_fetch_register): Use
7059 ARM_MAX_REGISTER_RAW_SIZE.
7060 (remote_rdp_store_register): Likewise.
7061
4657573b
ML
70622002-05-07 Michal Ludvig <mludvig@suse.cz>
7063
361d1df0 7064 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
7065 added default labels to switch {} statements.
7066 * x86-64-tdep.c: Ditto.
7067 * x86-64-linux-nat.c: Ditto.
7068
010f3b2f
JT
70692002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7070
7071 * solib.h: Protect against multiple inclusion.
7072
debd256d
JB
70732002-05-06 Jim Blandy <jimb@redhat.com>
7074
9ab3e532
JB
7075 Add first preprocessor macro-expansion files.
7076 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7077 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7078 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7079 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7080 (COMMON_OBS): Add macrotab.o, macroexp.o.
7081 (macroexp.o, macrotab.o): New rules.
7082
debd256d
JB
7083 Separate the job of reading the line number info statement program
7084 header (...expialidocious) out into its own function.
7085 * dwarf2read.c (struct line_head, struct filenames, struct
7086 directories): Replace with...
7087 (struct line_header): New structure, containing the full
7088 contents of the statement program header, including the
7089 include directory and file name tables.
7090 (read_file_scope): If we have line number info, instead of just
7091 calling dwarf_decode_lines to do all the work, call
7092 dwarf_decode_line_header first to get a `struct line_header'
7093 containing the data in the statement program header, and then
7094 pass that to dwarf_decode_lines, which will pick up where that
7095 left off. Be sure to clean up the `struct line_header' object.
7096 (dwarf_decode_line_header, free_line_header, add_include_dir,
7097 add_file_name): New functions.
7098 (dwarf_decode_lines): Move all the code to read the statement
7099 program header into dwarf_decode_line_header. Take the line
7100 header it built as the first argument, instead of the offset to
7101 the compilation unit's line number info. Use the new `struct
7102 line_header' type instead of the old structures. No need to do
7103 cleanups here now, since we don't allocate anything.
7104 (dwarf2_statement_list_fits_in_line_number_section,
7105 dwarf2_line_header_too_long): New complaints.
7106
ac3aafc7
EZ
71072002-05-06 Elena Zannoni <ezannoni@redhat.com>
7108
7109 * gdbtypes.c (init_vector_type): New function.
7110 (build_builtin_type_vec128): Simplify the representation of SIMD
7111 registers.
7112 (build_gdbtypes): Initialize new builtin vector types.
7113 (_initialize_gdbtypes): Register new vector types with gdbarch.
7114 (builtin_type_v4_float, builtin_type_v4_int32,
7115 builtin_type_v8_int16, builtin_type_v16_int8,
7116 builtin_type_v2_int32, builtin_type_v4_int16,
7117 builtin_type_v8_int8): New (renamed) SIMD types.
7118
13e49980
MK
71192002-05-06 Mark Kettenis <kettenis@gnu.org>
7120
7121 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7122 (i387_fill_fxsave): Likewise.
7123
997b20b8
AO
71242002-05-05 Alexandre Oliva <aoliva@redhat.com>
7125
7126 * alpha-tdep.c (alpha_extract_return_value): Don't use
7127 non-constant array size in prototype.
7128
535c96ce
AC
71292002-05-04 Andrew Cagney <ac131313@redhat.com>
7130
7131 From Brian Taylor <briant at model dot com>:
7132 * ui-out.c (ui_out_field_core_addr): Use the function
7133 longest_local_hex_string_custom'to format addresses > 32 bits
7134 wide.
7135
7136 * ui-out.c (ui_out_field_core_addr): Update comment.
7137
bedfa57b
AC
71382002-05-04 Andrew Cagney <ac131313@redhat.com>
7139
7140 * stack.c (select_and_print_frame): Make static. Delete the
7141 parameter `level'.
7142 (func_command): Update call.
7143 (select_frame_command): Delete code computing the frame level.
7144 * frame.h (select_and_print_frame): Delete declaration.
7145
f621c63e
AC
71462002-05-04 Andrew Cagney <ac131313@redhat.com>
7147
7148 * sparc-tdep.c (sparc_get_saved_register): Comment why
7149 get_prev_frame call is safe.
7150
0f7d239c
AC
71512002-05-04 Andrew Cagney <ac131313@redhat.com>
7152
7153 * frame.h (select_frame): Delete level parameter.
7154 * stack.c (select_frame): Update. Use frame_relative_level to
7155 obtain the frame's level.
7156 (select_and_print_frame): Update call.
7157 (select_frame_command): Ditto.
7158 (up_silently_base): Ditto.
7159 (down_silently_base): Ditto.
7160 * ocd.c (ocd_start_remote): Ditto.
7161 * remote-rdp.c (remote_rdp_open): Ditto.
7162 * remote-mips.c (mips_initialize): Ditto.
7163 (common_open): Ditto.
7164 * remote-e7000.c (e7000_start_remote): Ditto.
7165 * m3-nat.c (select_thread): Ditto.
7166 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7167 (child_get_current_exception_event): Ditto.
7168 * varobj.c (varobj_create): Ditto.
7169 (varobj_update): Ditto.
7170 (c_value_of_root): Ditto.
7171 * tracepoint.c (finish_tfind_command): Ditto.
7172 * corelow.c (core_open): Ditto.
7173 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7174 * thread.c (info_threads_command): Ditto.
7175 (switch_to_thread): Ditto.
7176 * infrun.c (normal_stop): Ditto.
7177 (restore_selected_frame): Ditto.
7178 (restore_inferior_status): Ditto.
7179 * breakpoint.c (insert_breakpoints): Ditto.
7180 (watchpoint_check): Ditto.
7181 (bpstat_stop_status): Ditto.
7182 (do_enable_breakpoint): Ditto.
7183 * blockframe.c (flush_cached_frames): Ditto.
7184 (reinit_frame_cache): Ditto.
7185
71d6c7b1
AC
71862002-05-04 Andrew Cagney <ac131313@redhat.com>
7187
7188 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7189 maintainer.
7190
cda6c68a
JB
71912002-05-04 Jim Blandy <jimb@redhat.com>
7192
7193 * gdbtypes.c (replace_type): Doc fix.
7194
5c1c87f0
AC
71952002-05-04 Andrew Cagney <ac131313@redhat.com>
7196
7197 * valprint.c (strcat_longest): Delete commented out function.
7198 Update copyright.
7199
cd9bfe15
AC
72002002-05-04 Andrew Cagney <ac131313@redhat.com>
7201
7202 * MAINTAINERS: Mark a29k as deleted.
7203 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7204 Move new configurations to the top.
7205 * configure.tgt: Remove a29k.
7206 * config/a29k/tm-vx29k.h: Delete.
7207 * config/a29k/vx29k.mt: Delete.
7208 * config/a29k/tm-a29k.h: Delete.
7209 * config/a29k/a29k-udi.mt: Delete.
7210 * config/a29k/a29k.mt: Delete.
7211 * a29k-tdep.c: Delete.
7212 * remote-udi.c: Delete.
7213 * remote-mm.c: Delete.
7214 * remote-eb.c: Delete.
7215 * remote-adapt.c: Delete.
7216 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
7217 * config/s390/s390x.mt: Ditto.
7218 * config/s390/s390.mt: Ditto.
7219 * config/sparc/sparclynx.mh: Ditto.
7220 * config/sparc/linux.mh: Ditto.
7221 * config/pa/hppaosf.mh: Ditto.
7222 * config/pa/hppabsd.mh: Ditto.
7223 * config/ns32k/nbsd.mt: Ditto.
7224 * config/mips/vr5000.mt: Ditto.
7225 * config/m68k/sun3os4.mh: Ditto.
7226 * config/m68k/nbsd.mt: Ditto.
7227 * config/m68k/m68klynx.mh: Ditto.
7228 * config/m32r/m32r.mt: Ditto.
7229 * config/i386/x86-64linux.mt: Ditto.
7230 * config/i386/nbsdelf.mt: Ditto.
7231 * config/i386/nbsd.mt: Ditto.
7232 * config/i386/i386lynx.mh: Ditto.
7233
bf0c5130
AC
72342002-05-04 Andrew Cagney <ac131313@redhat.com>
7235
7236 * target.c (debug_print_register): New function. Handle oversize
7237 registers.
7238 (debug_to_fetch_registers): Call.
7239 (debug_to_store_registers): Call.
7240
2ae1c2d2
JB
72412002-05-03 Jim Blandy <jimb@redhat.com>
7242
13a393b0
JB
7243 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7244 (read_type): Doc fix.
7245 * gdbtypes.c (replace_type): Doc fix.
7246
2ae1c2d2
JB
7247 * stabsread.c (multiply_defined_struct): New complaint.
7248 (read_struct_type): If the type we were passed isn't empty, or
7249 incomplete, don't read the new struct type into it; complain,
7250 and return the original type unchanged. Take a new `type_code'
7251 argument, which is the type code for the new type.
7252 (read_type): Rather than storing the type's type code here, pass
7253 it as an argument to read_struct_type, and let that take care of
7254 storing it. That way, we don't overwrite the original type code,
7255 so read_struct_type can use it to decide whether we're overwriting
7256 something we shouldn't.
7257 (complain_about_struct_wipeout): New function.
7258
8de9bdc4
AC
72592002-05-03 Andrew Cagney <ac131313@redhat.com>
7260
7261 * gdbarch.sh: Assert that gdbarch is non-NULL.
7262 * gdbarch.c: Regenerate.
7263
f773fdbb
JM
72642002-05-03 Jason Merrill <jason@redhat.com>
7265
7266 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7267 and return NULL.
7268
0e04a514
ML
72692002-05-03 Michal Ludvig <mludvig@suse.cz>
7270
7271 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7272 (x86_64_dwarf2gdb_regno_map_length),
7273 (x86_64_dwarf2_reg_to_regnum): Added.
7274 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7275 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7276 (_initialize_x86_64_tdep): Synced with the change above.
7277 (x86_64_skip_prologue): Reformulated message.
7278
065432a8
PM
72792002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7280
7281 * f-exp.y: Also use new prev_lexptr variable
7282 to improve error reporting. Based on Michael Snyder
7283 2002-04-24 dated patch to c-exp.y.
7284 * jv-exp.y: Likewise.
7285 * m2-exp.y: Likewise.
7286
a3162708
EZ
72872002-05-02 Elena Zannoni <ezannoni@redhat.com>
7288
7289 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7290 we are dealing with vectors.
7291
03620c38
PM
72922002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7293
7294 * config/m68k/tm-nbsd.h: Obvious fix,
7295 correct machine name.
7296
6604db2e
PM
72972002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7298
7299 * p-typeprint.c (pascal_type_print_base): Add support
7300 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7301
0906b739
PM
73022002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7303
7304 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7305 for fondamental pascal 'char' type.
7306
e2625b33
PM
73072002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7308
7309 * p-lang.h (is_pascal_string_type): Declaration changed,
7310 new sixth argument of type char ** added.
361d1df0 7311 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
7312 changed. Args length_pos, length_size, string_pos, char_size
7313 can now be NULL. New argument arrayname set to the field
7314 name of the char array. Return value set to char array
7315 field index plus one.
361d1df0 7316 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
7317 is_pascal_string_type function.
7318
cf17c188
AC
73192002-05-02 Andrew Cagney <cagney@redhat.com>
7320
7321 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7322 <cagney@redhat.com> change.
7323 * gdbarch.c: Regenerate.
7324
52bca491
AC
73252002-05-02 Andrew Cagney <cagney@redhat.com>
7326
7327 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7328 before probing for a new one. Detect errorenous gdbarch_init
7329 functions.
7330 * gdbarch.c: Regenerate.
7331
d5e72505
AC
73322002-05-01 Andrew Cagney <cagney@redhat.com>
7333
7334 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7335 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7336 * config/v850/tm-v850.h: Ditto. Update copyright.
7337
af566d9f
AC
73382002-04-30 Andrew Cagney <ac131313@redhat.com>
7339
7340 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7341 current_gdbarch.
7342
880d85fa
MS
73432002-04-30 Michael Snyder <msnyder@redhat.com>
7344
94c30b78
MS
7345 * arm-tdep.c: Whitespace clean-ups.
7346 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7347 should have been removed as part of 4/24 change.
7348
6f5987a6
KB
73492002-04-30 Kevin Buettner <kevinb@redhat.com>
7350
7351 * rs6000-tdep.c: Added comment describing how fpscr register
7352 numbers were chosen.
7353
1a113c93
MS
73542002-04-30 Michael Snyder <msnyder@redhat.com>
7355
7356 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7357
9a6f53fe
EZ
73582002-04-29 Elena Zannoni <ezannoni@redhat.com>
7359
7360 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7361 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7362 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7363
11ed25ac
KB
73642002-04-29 Kevin Buettner <kevinb@redhat.com>
7365
7366 From Louis Hamilton <hamilton@redhat.com>:
7367 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7368 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7369 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7370 not bfd-private xcoff data, to determine wordsize.
7371 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7372
ae232405
AC
73732002-04-29 Andrew Cagney <ac131313@redhat.com>
7374
7375 GDB 5.2 released from 5.2 branch.
7376
91fd20f7
ML
73772002-04-29 Michal Ludvig <mludvig@suse.cz>
7378
7379 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7380 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7381 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7382
2dc5091b
EZ
73832002-04-29 Elena Zannoni <ezannoni@redhat.com>
7384
7385 * rs6000-tdep.c (rs6000_extract_return_value,
7386 rs6000_store_return_value): Handle returning vectors.
7387 (rs6000_gdbarch_init): Use
7388 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7389 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7390 New function.
7391 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7392 vectors.
7393 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7394 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7395
2b9848d8
PM
73962002-04-24 Pierre Muller <ics.u-strasbg.fr>
7397
7398 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7399 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7400 with fprintf_unfiltered (gdb_stderr,...).
7401
f8d17dc5
PM
74022002-04-24 Pierre Muller <ics.u-strasbg.fr>
7403
7404 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7405 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7406 Replace fprintf (stderr,...
7407 with fprintf_unfiltered (gdb_stderr,....
7408 * remote-es.c: Likewise.
7409 * remote-os9k.c: Likewise.
7410 * remote-st.c: Likewise.
7411
2f2f1ad1
AS
74122002-04-28 Andreas Schwab <schwab@suse.de>
7413
7414 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7415 linux-proc.o and gcore.o.
7416
b6779aa2
AC
74172002-04-26 Michal Ludvig <mludvig@suse.cz>
7418
7419 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7420 code without frame pointers.
7421
7e57f5f4
AC
74222002-04-26 Andrew Cagney <ac131313@redhat.com>
7423
7424 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7425 ON_STACK is needed.
7426
2ceb85d0
BE
74272002-04-26 Ben Elliston <bje@redhat.com>
7428
7429 * target.c (do_xfer_memory): Correct reference to the new option
7430 "trust-readonly-sections".
7431
f5f8a009
EZ
74322002-04-26 Elena Zannoni <ezannoni@redhat.com>
7433
7434 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7435 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7436 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7437 vectors.
7438 (read_array_type): Record the fact that this array type is really a
7439 vector (i.e. are passed in by value).
7440
5868c862
JT
74412002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7442
7443 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7444 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7445 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7446 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7447 * alpha-linux-tdep.c: Include frame.h.
7448 (alpha_linux_sigcontext_addr): New function.
7449 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7450 alpha_linux_sigcontext_addr.
7451 * alpha-osf1-tdep.c: Include gdbcore.h.
7452 (alpha_osf1_sigcontext_addr): New function.
7453 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7454 alpha_osf1_sigcontext_addr.
7455 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7456 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7457
bfb01f37
AC
74582002-04-26 Andrew Cagney <ac131313@redhat.com>
7459
361d1df0 7460 * stack.c (selected_frame_level):
bfb01f37
AC
7461 (select_frame): Do not set selected_frame_level.
7462 * frame.h (selected_frame_level): Delete declaration.
7463
15813d3f
AC
74642002-04-26 Andrew Cagney <ac131313@redhat.com>
7465
7466 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7467 convert_from_func_ptr-addr when AIX / PowerOpen.
7468
6096c27a
AC
74692002-04-25 Andrew Cagney <ac131313@redhat.com>
7470
7471 * valops.c (hand_function_call): Call
7472 generic_save_call_dummy_addr.
7473 * frame.h (generic_save_call_dummy_addr): Declare.
7474 * blockframe.c (struct dummy_frame): Add fields call_lo and
7475 call_hi.
7476 (generic_find_dummy_frame): Check for PC in range call_lo to
7477 call_hi instead of entry_point_address.
7478 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7479 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7480 (generic_save_call_dummy_addr): New function.
7481
f510d44e
DM
74822002-04-24 David S. Miller <davem@redhat.com>
7483
7484 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7485 sparc_skip_prologue.
7486 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7487 information to find prologue when possible.
7488 (sparc_prologue_frameless_p): Call examine_prologue directly.
7489 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7490 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7491 second argument.
7492 (SKIP_PROLOGUE): Likewise.
7493
15d72a92
JT
74942002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7495
7496 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7497 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7498 indicate that the condition it was testing is always true.
7499 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7500 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7501 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7502
accc6d1f
JT
75032002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7504
7505 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7506 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7507 tdep->jb_pc and tdep->jb_elt_size.
7508 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7509 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7510 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7511 * alpha-nat.c (get_longjmp_target): Remove.
7512 (JB_ELEMENT_SIZE): Ditto.
7513 (JB_PC): Ditto.
7514 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7515 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7516 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7517 to alpha_get_longjmp_target.
7518 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7519 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7520 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7521
1bfdc549
AC
75222002-04-25 Andrew Cagney <ac131313@redhat.com>
7523
7524 * README: Update to GDB 5.2.
7525
1bd316f0
AC
75262002-04-25 Andrew Cagney <ac131313@redhat.com>
7527
7528 * gdbarch.sh (LC_ALL): Set to `c'.
7529
2e5ff58c
TR
75302002-04-25 Theodore A. Roth <troth@verinet.com>
7531
7532 * avr-tdep.c: Ran through gdb_indent.sh.
7533
e33ce519
TR
75342002-04-25 Theodore A. Roth <troth@verinet.com>
7535
7536 * MAINTAINERS: Add myself as AVR maintainer.
7537 * NEWS: Note new target avr.
7538
8818c391
TR
75392002-04-25 Theodore A. Roth <troth@verinet.com>
7540
7541 * Makefile.in: Add support for AVR target.
7542 * configure.tgt: Add support for AVR target.
7543 * avr-tdep.c: New file
7544 * config/avr/avr.mt: New file.
7545
79509c2d
TR
75462002-04-25 Theodore A. Roth <troth@verinet.com>
7547
7548 * MAINTAINERS: Add myself to write-after-approval.
7549
dac8068e
PM
75502002-04-24 Pierre Muller <ics.u-strasbg.fr>
7551
7552 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7553 with fprintf_unfiltered (gdb_stderr,....
7554
25bf3106
PM
75552002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7556
7557 Fix PR gdb/508.
7558 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7559
24467a86
PM
75602002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7561
7562 * p-exp.y: Also use new prev_lexptr variable
7563 to improve error reporting. Based on Michael Snyder
7564 2002-04-24 dated patch to c-exp.y.
7565
95b80706
JT
75662002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7567
7568 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7569 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7570 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7571 to 0.
7572 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7573 and struct value.
7574 (FUNCTION_START_OFFSET): Remove.
7575 (BREAKPOINT): Ditto.
7576
e90cc612
JT
75772002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7578
7579 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7580 * NEWS: Ditto.
7581
6c72f9f9
JT
75822002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7583
7584 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7585 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7586 alpha_linux_pc_in_sigtramp.
7587 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7588 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7589 alpha_osf1_pc_in_sigtramp.
7590 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7591 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7592 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7593 alphafbsd_pc_in_sigtramp.
7594 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7595 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7596 alphanbsd_pc_in_sigtramp.
7597 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7598 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7599
5e4f3379
JT
76002002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7601
7602 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7603
da8ca43d
JT
76042002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7605
7606 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7607 alphanbsd-tdep.c.
7608 (alphanbsd-nat.o): New dependency list.
7609 (alphanbsd-tdep.o): Ditto.
7610 * NEWS: Note new native NetBSD/alpha configuration.
7611 * alphanbsd-nat.c: New file.
7612 * alphanbsd-tdep.c: Ditto.
7613 * configure.host (alpha*-*-netbsd*): New host.
7614 * configure.tgt (alpha*-*-netbsd*): New target.
7615 * config/alpha/nbsd.mh: New file.
7616 * config/alpha/nbsd.mt: Ditto.
7617 * config/alpha/nm-nbsd.h: Ditto.
7618 * config/alpha/tm-nbsd.h: Ditto.
7619
36a6271d
JT
76202002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7621
7622 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7623 (alpha-osf1-tdep.o): New dependency list.
7624 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7625 and skip_sigtramp_frame members.
7626 * alpha-linux-tdep.c: Include gdbcore.h.
7627 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7628 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7629 * alpha-osf1-tdep.c: New file.
7630 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7631 alpha-osf1-dep.c.
7632 (alpha_frame_past_sigtramp_frame): New function.
7633 (alpha_dynamic_sigtramp_offset): Ditto.
7634 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7635 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7636 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7637 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7638 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7639 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7640 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7641 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7642 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7643 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7644 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7645 to find_solib_trampoline_target.
7646 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7647 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7648 (SKIP_TRAMPOLINE_CODE): Remove.
7649 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7650 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7651 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7652 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7653 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7654 (PROC_SIGTRAMP_MAGIC): Ditto.
7655 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7656 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7657 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7658 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7659 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7660
2f4bc57b
JT
76612002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7662
7663 * NEWS: Note that Alpha targets are now multi-arch.
7664
665132f9
MS
76652002-04-24 Michael Snyder <msnyder@redhat.com>
7666
7667 * parser-defs.h (prev_lexptr): New external variable.
7668 * parse.c (parse_exp_1): Set prev_lexptr to null before
7669 calling the language-specific parser.
7670 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7671 (yyerror): Use prev_lexptr in error reporting.
7672
32872fa7
DJ
76732002-04-24 Daniel Jacobowitz <drow@mvista.com>
7674
7675 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7676 * gregset.h: If FILL_FPXREGSET is defined, provide
7677 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7678 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7679 is defined, call fill_fpxregset.
7680
57e76fac
MS
76812002-04-24 Roland McGrath <roland@frob.com>
7682
7683 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7684 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7685 (supply_gregset, supply_fpregset): New functions.
7686
7687 * gnu-nat.c (gnu_find_memory_regions): New function.
7688 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7689 (gnu_xfer_memory): Add a cast.
7690
f43845b3
MS
76912002-04-24 Michael Snyder <msnyder@redhat.com>
7692
361d1df0 7693 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7694 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7695 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7696 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7697 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7698 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7699
a0abec03
AC
7700Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7701
7702 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7703 NUM_PSEUDO_REGS can be used.
7704
d7bd68ca
AC
77052002-04-24 Andrew Cagney <ac131313@redhat.com>
7706
7707 * arch-utils.h: Update copyright.
7708
7709 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7710 * gdbarch.h, gdbarch.c: Re-generate.
7711
7712 * inferior.h (IN_SIGTRAMP): Delete definition.
7713 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7714 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7715
7716 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7717 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7718 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7719 (find_proc_framesize): Ditto.
7720 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7721 (alpha_init_extra_frame_info): Ditto.
7722 * infrun.c (handle_inferior_event): Ditto.
7723 (handle_inferior_event): Ditto.
7724 (check_sigtramp2): Ditto.
7725 * blockframe.c (create_new_frame): Ditto.
7726 (get_prev_frame): Ditto.
7727 * ppc-linux-tdep.c: Update comments.
7728 * i386-linux-tdep.c: Update comments.
7729 * breakpoint.c (bpstat_what): Update comment.
7730
4867e41e
DM
77312002-04-24 David S. Miller <davem@redhat.com>
7732
21d83aa5
DM
7733 * i960-tdep.c (register_in_window_p): New function.
7734 (i960_find_saved_register): Use it instead of
7735 REGISTER_IN_WINDOW_P.
7736 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7737
4867e41e
DM
7738 * symtab.h (find_stab_function_addr): Kill extern.
7739 * minsyms.c (find_stab_function_addr): Remove from here...
7740 * dbxread.c: ... to here, and mark it static.
7741
69cdf6a2
DM
77422002-04-20 David S. Miller <davem@redhat.com>
7743
7744 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7745 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7746
5a595886
DM
77472002-04-21 David S. Miller <davem@redhat.com>
7748
7749 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7750 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7751 (vx_write_register): Likewise.
7752
1da1a192
JB
77532002-04-23 J. Brobecker <brobecker@gnat.com>
7754
7755 * source.c (is_regular_file): New function.
7756 (openp): Check wether file to open is a regular file
7757 to avoid opening directories.
7758
baa6f10b
JT
77592002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7760
7761 * findvar.c (extract_signed_integer): Cast printf argument
7762 to suppress format warning.
7763 (extract_unsigned_integer): Likewise.
7764 * infcmd.c (registers_info): Likewise.
7765 * top.c (get_prompt_1): Likewise.
7766 * valops.c (value_assign): Likewise.
7767 * valprint.c (print_decimal): Likewise.
7768
b2c4da81
L
77692002-04-22 H.J. Lu (hjl@gnu.org)
7770
7771 * c-exp.y (typebase): Support
361d1df0 7772
b2c4da81
L
7773 [long|long long|short] [signed|unsigned] [int|]
7774
7775 and
7776
7777 signed [long|long long|short] int
7778
f267bd6a
JT
77792002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7780
7781 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7782 and vax-tdep.h.
7783 * vax-tdep.h: New file.
7784 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7785 Make several routines static.
7786 (vax_get_saved_register): New function.
7787 (vax_gdbarch_init): New function.
7788 (_initialize_vax_tdep): Register vax_gdbarch_init.
7789 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7790 Remove macros now under the control of gdbarch.
7791
da3c6d4a
MS
77922002-04-22 Michael Snyder <msnyder@redhat.com>
7793
11d3b27d
MS
7794 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7795 Some whitespace and coding standards tweaks.
da3c6d4a 7796
a33f7558
JT
77972002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7798
7799 * vax-tdep.c: Include regcache.h.
7800 (vax_call_dummy_words): New.
7801 (sizeof_vax_call_dummy_words): New.
7802 (vax_fix_call_dummy): New function.
7803 (vax_saved_pc_after_call): Ditto.
7804 * config/vax/tm-vax.h: Don't include regcache.h.
7805 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7806 (CALL_DUMMY): Remove.
7807 (CALL_DUMMY_WORDS): Define.
7808 (SIZEOF_CALL_DUMMY_WORDS): Define.
7809 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7810
47a73475
MS
78112002-04-18 Michael Snyder <msnyder@redhat.com>
7812
7813 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7814
52efde73
JT
78152002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7816
7817 * vax-tdep.c (vax_frame_chain): New function.
7818 (vax_push_dummy_frame): Ditto.
7819 (vax_pop_frame): Ditto.
7820 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7821 (FRAMELESS_FUNCTION_INVOCATION): Use
7822 generic_frameless_function_invocation_not.
7823 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7824 (POP_FRAME): Use vax_pop_frame.
7825
ea74468c
JT
78262002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7827
7828 * vax-tdep.c (vax_store_struct_return): New function.
7829 (vax_extract_return_value): Ditto.
7830 (vax_store_return_value): Ditto.
7831 (vax_extract_struct_value_address): Ditto.
7832 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7833 vax_store_struct_return.
7834 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7835 (STORE_RETURN_VALUE): Use vax_store_return_value.
7836 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7837
5516aa92
JT
78382002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7839
7840 * vax-tdep.c (vax_frame_saved_pc): New function.
7841 (vax_frame_args_address_correct): Ditto.
7842 (vax_frame_args_address): Ditto.
7843 (vax_frame_locals_address): Ditto.
7844 (vax_frame_num_args): Move code to be in proximity to
7845 other frame-related functions.
7846 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7847 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7848 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7849 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7850 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7851
36af0b35
L
78522002-04-22 H.J. Lu (hjl@gnu.org)
7853
7854 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7855 includedir.
7856
ab62c900
JT
78572002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7858
7859 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7860 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7861 (FRAME_INIT_SAVED_REGS): New macro.
7862
7232b100
JT
78632002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7864
7865 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7866
b70d2aee
JT
78672002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7868
7869 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7870 where needed.
7871 (fetch_osf_core_registers): Likewise.
7872 (supply_gregset): Likewise.
7873
a0e8a2d1 78742002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 7875
a0e8a2d1
JB
7876 * symfile.h (get_section_index): Define.
7877 * symfile.c (get_section_index): New function.
7878 * mdebugread.c (SC_IS_SBSS): New macro.
7879 (SC_IS_BSS): Return true for the scBss storage class only, as
7880 the scSBss storage class refers to the .sbss section.
7881 (parse_partial_symbols): Discard the symbols which associated
7882 section does not exist.
7883 Make sure to use the .sbss section index for symbols which
7884 storage class is scBss, rather than using the .bss section index.
7885
51eb8b08
JT
78862002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7887
7888 * vax-tdep.c: Update copyright years.
7889 (vax_register_name): New function.
7890 (vax_register_byte): Ditto.
7891 (vax_register_raw_size): Ditto.
7892 (vax_register_virtual_size): Ditto.
7893 (vax_register_virtual_type): Ditto.
7894 * config/vax/tm-vax.h: Update copyright years.
7895 (REGISTER_NAMES): Remove.
7896 (REGISTER_NAME): Define.
7897 (REGISTER_BYTE): Use vax_register_byte.
7898 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7899 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7900 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7901
6cc1c0a8
AC
79022002-04-21 Andrew Cagney <ac131313@redhat.com>
7903
7904 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7905 declaration
7906 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7907
9319a2fe
DM
79082002-04-21 David S. Miller <davem@redhat.com>
7909
7910 * arch-utils.c (generic_prologue_frameless_p): Kill
7911 SKIP_PROLOGUE_FRAMELESS_P code.
7912 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7913 references.
7914 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7915 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7916 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7917 references.
7918 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7919 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7920 (sparc_gdbarch_init): Pass it to
7921 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7922
e9ed6d01
JT
79232002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7924
7925 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7926 (alphabsd-nat.o): New dependency list.
7927
36012033
JT
79282002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7929
7930 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7931 alphafbsd-tdep.c.
7932 (alpha-linux-tdep.o): New dependency list.
7933 (alphafbsd-tdep.o): Likewise.
7934
3379287a
JT
79352002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7936
7937 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7938 to here...
7939 * alpha-tdep.c: ...from here.
7940 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7941
4bcbd6cb
JT
79422002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7943
7944 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7945 prototype from here...
7946 * alpha-tdep.h: ...to here.
7947
b31da25e
AC
79482002-04-21 Andrew Cagney <ac131313@redhat.com>
7949
7950 * frame.h (selected_frame_level): Document as deprecated.
7951 (frame_relative_level): Declare.
7952 * stack.c (frame_relative_level): New function.
7953 (selected_frame_level): Document as deprecated.
7954 (select_frame): Do not set the selected_frame_level.
7955
7956 * stack.c (frame_info, record_selected_frame): Update.
7957 (frame_command, current_frame_command): Update.
7958 (up_silently_base, up_command, down_silently_base): Update.
7959 (down_command): Update.
7960 * inflow.c (kill_command): Update.
7961 * tracepoint.c (finish_tfind_command): Update.
7962 * corelow.c (core_open): Update.
7963 * thread.c (info_threads_command): Update.
7964 (do_captured_thread_select): Update.
7965 * infcmd.c (finish_command): Update.
7966 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7967
9c1d6fe5
JT
79682002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7969
7970 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7971
ab89facf
AC
79722002-04-21 Andrew Cagney <ac131313@redhat.com>
7973
7974 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7975 type const.
7976
82a4efa1
JT
79772002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7978
7979 * alphafbsd-tdep.c: Update copyright years. Include
7980 alpha-tdep.h.
7981 (alphafbsd_use_struct_convention): Make static.
7982 (alphafbsd_init_abi): New function.
7983 (_initialize_alphafbsd_tdep): New function.
7984 * config/alpha/tm-fbsd.h: Update copyright years.
7985 (USE_STRUCT_CONVENTION): Remove.
7986
44dffaac
JT
79872002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7988
7989 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7990 an Alpha ABI variant.
7991 (alpha_abi_handler_list): Declare.
7992 (alpha_gdbarch_register_os_abi): New function.
7993 (alpha_gdbarch_init): Give registered ABI variant handlers a
7994 chance to tweak the gdbarch once we have set up defaults.
7995 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7996
65585be4
JT
79972002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7998
7999 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8000 to standard_coerce_float_to_double.
8001 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8002
d9b023cc
JT
80032002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8004
8005 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8006 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8007 from gdbarch_tdep rather than a constant.
8008 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8009 the default text address for all Alpha Unix ABIs.
8010 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8011 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8012
dc129d82
JT
80132002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8014
8015 * alpha-tdep.h: New file. Includes several Alpha target constants
8016 taken from...
8017 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8018 let gdbarch deal with.
8019 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8020 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8021 to dependency list.
8022 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8023 Alpha target register names.
8024 * alphabsd-nat.c: Likewise.
8025 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8026 Alpha target register names. Make serveral routines static.
8027 (alpha_get_saved_register): New function.
8028 (alpha_abi_names): New.
8029 (process_note_abi_tag_sections): New function.
8030 (get_elfosabi): New function.
8031 (alpha_gdbarch_init): New function.
8032 (alpha_dump_tdep): New function.
8033 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8034
d49d1e0a
AC
80352002-04-21 Andrew Cagney <ac131313@redhat.com>
8036
8037 * frame.c (find_saved_register): Delete #ifdef
8038 HAVE_REGISTER_WINDOWS code.
8039 * config/sparc/tm-sparc.h: Update comments.
8040 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8041
92e8c9ed
AC
80422002-04-21 Andrew Cagney <ac131313@redhat.com>
8043
8044 * i960-tdep.c (i960_find_saved_register): New function.
8045 (i960_get_saved_register): New function.
8046 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8047 (i960_get_saved_register): Declare.
8048 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8049
e1925118
DM
80502002-04-20 David S. Miller <davem@redhat.com>
8051
8052 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8053
29673b29
AC
80542002-04-20 Andrew Cagney <ac131313@redhat.com>
8055
8056 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8057 instead of NUM_PSEUDO_REGS.
8058
6c86dcd5
DM
80592002-04-20 David S. Miller <davem@redhat.com>
8060
8061 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8062 GDB_MULTI_ARCH_PARTIAL
8063 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8064 define, let tm-sp64.h do it.
8065
aa40ec90
JT
80662002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8067
8068 * frame.c (find_saved_register): Avoid a NULL pointer
8069 dereference and actually walk the frame list.
8070
0f79675b
AC
80712002-04-20 Andrew Cagney <ac131313@redhat.com>
8072
8073 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8074 sorted in most most-recent-used order. Document.
8075 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8076
f91305dd 80772002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
8078
8079 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8080 instead of ->prev.
8081 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8082 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8083 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8084 instead of ->prev.
8085
73d322b1
EZ
80862002-04-19 Elena Zannoni <ezannoni@redhat.com>
8087
8088 Fix PR gdb/471.
8089 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8090 (build_builtin_type_vec128): Ditto.
8091 (append_composite_type_field): Fix calculation of type length in
8092 union case.
8093
ccd9a834
EZ
80942002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8095
8096 * config/djgpp/README: Update.
8097
8098 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8099 compiler warnings.
8100
a57f9e49
JT
81012002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8102
8103 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8104 (alpha_setup_arbitrary_frame): ...to this.
8105 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8106 for alpha_setup_arbitrary_frame.
8107
f4f9705a
AC
81082002-04-18 Andrew Cagney <cagney@redhat.com>
8109
8110 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8111 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8112
f4f9705a
AC
8113 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8114 * target.h (memory_breakpoint_from_pc): Update declaration.
8115 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8116
8117 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8118 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8119 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8120 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8121 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8122 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8123 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8124 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8125 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8126 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8127 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8128 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8129
8130 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8131 const pointer.
8132 * monitor.c (monitor_insert_breakpoint): Ditto.
8133 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8134
8135 * config/mcore/tm-mcore.h: Update copyright.
8136 * mem-break.c: Ditto.
8137 * xstormy16-tdep.c: Ditto.
8138
29f319b8
PM
81392002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8140
8141 * p-exp.y: Add precedence rule for '^' token.
8142 This removes the shift/reduce conflicts.
8143 Remove the comment concerning these shift/reduce conflicts.
8144
ebeac11a
EZ
81452002-04-18 Elena Zannoni <ezannoni@redhat.com>
8146
8147 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8148 (registers_powerpc_nofp): New register set for processors
8149 without floating point unit.
8150
27c31547
DM
81512002-04-18 David S. Miller <davem@redhat.com>
8152
8153 * MAINTAINERS: Add myself to write-after-approval.
8154
47a73475
MS
81552002-04-17 Michael Snyder <msnyder@redhat.com>
8156
8157 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8158
953836b2
AC
81592002-04-17 Andrew Cagney <ac131313@redhat.com>
8160
8161 * rs6000-tdep.c (frame_initial_stack_address): Use
8162 frame_register_read to read the alloca_reg.
8163
8b0d4340
AC
81642002-04-17 Andrew Cagney <ac131313@redhat.com>
8165
8166 * frame.c (find_saved_register): Find saved registers in the next
8167 not prev frame.
8168 Fix PR gdb/365.
8169
d8864532
AC
81702002-04-17 Andrew Cagney <ac131313@redhat.com>
8171
8172 * gdbarch.sh (LANG): Set to ``c''.
8173
36cc83a3 81742002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 8175
36cc83a3 8176 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 8177
2f4150cc 81782002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
8179
8180 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8181 Update copyright.
8182
628703c6 8183 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 8184 Also fix PR gdb/391.
361d1df0 8185
56157b4a
AC
81862002-04-14 Andrew Cagney <ac131313@redhat.com>
8187
8188 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8189 * aclocal.m4, configure: Re-generate.
8190 Fix PR gdb/391.
361d1df0 8191
6d1e3329
EZ
81922002-04-14 Elena Zannoni <ezannoni@redhat.com>
8193
8194 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8195 instead of tm_print_insn.
8196
cb06fa07
EZ
81972002-04-14 Elena Zannoni <ezannoni@redhat.com>
8198
8199 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8200
f208ba17
AC
82012002-04-14 Andrew Cagney <ac131313@redhat.com>
8202
8203 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8204 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8205 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8206
20f01a46
DH
82072002-04-12 Don Howard <dhoward@redhat.com>
8208
8209 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8210 max_user_call_depth.
8211 (init_cmd_lists): Initialize the new value;
8212 * cli/cli-script.c (execute_user_command): Limit the call depth of
8213 user defined commands. This avoids a core-dump when user commands
8214 are infinitly recursive.
8215
a88376a3
KB
82162002-04-12 Kevin Buettner <kevinb@redhat.com>
8217
8218 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8219 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8220 from tdep struct instead of DEFAULT_LR_SAVE.
8221 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8222 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8223 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8224
f2172603
MS
82252002-04-12 Michael Snyder <msnyder@redhat.com>
8226
694f61fb 8227 * Remote.c: Spelling fix.
20fe79c8
MS
8228 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8229 If no symbol found for "sbrk", try "_sbrk".
8230 (make_output_phdrs): Use bfd_section_name.
8231 (gcore_copy_callback): Use bfd_section_name.
62995fc4 8232 * eval.c: Indentation fix-ups.
169a7369
MS
8233 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8234 in case it gets applied to an address that is already
8235 in the instruction space.
de74f71f
MS
8236 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8237 * symfile.c: Fix indentation, long lines.
f2172603
MS
8238 * source.c: White space fix-up.
8239
cda5a58a
AC
82402002-04-12 Andrew Cagney <cagney@redhat.com>
8241
8242 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8243 * frame.c (frame_register_read): New function. Return non-zero on
8244 success.
8245 (read_relative_register_raw_bytes_for_frame): Delete.
8246 (read_relative_register_raw_bytes): Delete.
8247 * frame.h (frame_register_read): Declare.
8248 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8249 * sh-tdep.c: Ditto.
8250 * infcmd.c (do_registers_info): Ditto.
8251 * hppa-tdep.c: Ditto.
8252 * rs6000-tdep.c: Ditto.
8253 * h8500-tdep.c: Ditto.
8254 * mips-tdep.c: Ditto.
8255 * h8300-tdep.c: Ditto.
8256 * z8k-tdep.c: Ditto.
8257
2ea5f656
KB
82582002-04-12 Kevin Buettner <kevinb@redhat.com>
8259
8260 From Jimi X <jimix@watson.ibm.com>:
8261 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8262 64-bit SysV ABI.
8263
27b15785
KB
82642002-04-12 Kevin Buettner <kevinb@redhat.com>
8265
8266 From Jimi X <jimix@watson.ibm.com>:
8267 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8268 bfd info.
8269
5d57ee30
KB
82702002-04-12 Kevin Buettner <kevinb@redhat.com>
8271
8272 From Jimi X <jimix@watson.ibm.com>:
8273 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8274 register sets for these processor variants.
8275
bc1e36ca
DJ
82762002-04-11 Daniel Jacobowitz <drow@mvista.com>
8277
bc1e36ca
DJ
8278 * regformats/reg-ppc.dat: Support FPSCR.
8279
e3f36dbd
KB
82802002-04-11 Kevin Buettner <kevinb@redhat.com>
8281
8282 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8283 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8284 Add fpscr as an invalid/unfetchable register.
8285 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8286 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8287 (fill_fpregset): Add support for register fpscr.
8288 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8289 (fill_gregset): Account for the fact that register ``mq'' might
8290 not exist.
8291 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8292 (registers_power): Add fpscr to register set at slot 71.
8293 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8294 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8295
943c9c25
MS
82962002-04-11 Michael Snyder <msnyder@redhat.com>
8297
8298 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8299 * configure: Regenerate.
8300 * config.in: Regenerate.
8301 * acconfig.h: Add define for _SYSCALL32.
8302 * core-sol2.c: Remove #define _SYSCALL32.
8303 * solib-legacy.c: Remove #define _SYSCALL32.
8304
d8c0a2e7
AC
83052002-04-10 Andrew Cagney <ac131313@redhat.com>
8306
8307 * stack.c (select_frame): Cleanup internal error message, do not
8308 use %p.
8309
7cc19214
AC
83102002-04-10 Andrew Cagney <ac131313@redhat.com>
8311
8312 * stack.c (select_frame): Check that selected_frame and the
8313 specified level are as expected.
8314 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8315 Update copyright.
8316 * frame.h (struct frame_info): Add field `level'. Update
8317 copyright.
8318 Work-in-progress PR gdb/464.
8319
67a2b77e
AC
83202002-04-10 Andrew Cagney <ac131313@redhat.com>
8321
8322 * maint.c (maint_print_section_info): Rename print_section_info.
8323 (print_bfd_section_info, print_objfile_section_info): Update.
8324 * inferior.h (struct gdbarch): Add opaque declaration.
8325 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8326 * gdbarch.h: Regenerate.
8327
8cfda98c
ML
83282002-04-10 Michal Ludvig <mludvig@suse.cz>
8329
8330 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8331 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8332 (kernel_u_size): Added.
8333 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8334 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8335
ca439ad2 83362002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 8337
ca439ad2
JI
8338 * valarith.c (find_size_for_pointer_math): New function, either returns
8339 the size for a pointer's target, returns 1 for void *, or errors for
8340 incomplete types.
8341 (value_add, value_sub): use find_size_for_pointer_math.
8342
2f2893d9
DJ
83432002-04-09 Daniel Jacobowitz <drow@mvista.com>
8344
8345 * linux-low.c (linux_look_up_symbols): New hook.
8346 (linux_target_ops): Add linux_look_up_symbols.
8347 * remote-utils.c (decode_address): New function.
8348 (look_up_one_symbol): New function.
8349 * server.c (handle_query): Call target look_up_symbols hook.
8350 * server.h (look_up_one_symbol): Add prototype.
8351 * target.h (struct target_ops): Add look_up_symbols hook.
8352
96cb11df
AC
83532002-04-09 Andrew Cagney <ac131313@redhat.com>
8354
8355 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8356 override FP_REGNUM with frame->fp. Update copyright.
8357 * parse.c (num_std_regs, std_regs): Delete.
8358 (target_map_name_to_register): Do not search std_regs. Update
8359 function description.
8360 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8361 declarations. Update copyright.
8362 Fix PR gdb/251.
361d1df0 8363
97658e92
DJ
83642002-04-09 Daniel Jacobowitz <drow@mvista.com>
8365
8366 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8367 after the last symbol in a block.
8368
6044e3eb
PM
83692002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8370
8371 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8372 is non zero as a found symbol.
8373
0406ec40
AC
83742002-04-08 Andrew Cagney <ac131313@redhat.com>
8375
8376 * findvar.c: Include "builtin-regs.h".
8377 (value_of_register): Call value_of_builtin_reg when applicable.
8378 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8379 (target_map_name_to_register): Call
8380 builtin_reg_map_name_to_regnum.
8381 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8382 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8383 (builtin_regs_h): Define.
8384 (builtin-regs.o): New target.
8385 (findvar.o): Add $(builtin_regs_h).
8386 * builtin-regs.c, builtin-regs.h: New files.
8387 * std-regs.c: New file.
8388 Partial fix for PR gdb/251.
8389
56a6dfb9
KB
83902002-04-08 Kevin Buettner <kevinb@redhat.com>
8391
8392 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8393 it's no longer required.
8394
3a808432
AC
83952002-04-08 Andrew Cagney <ac131313@redhat.com>
8396
8397 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8398
7c40d541
KB
83992002-04-08 Kevin Buettner <kevinb@redhat.com>
8400
8401 From Jimi X <jimix@watson.ibm.com>:
8402 * rs6000-tdep.c (rs6000_software_single_step): Use
8403 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8404 and size. Use target_insert_breakpoint() and
8405 target_remove_breakpoint() to insert and remove breakpoints
8406 instead of explicit memory reads and writes.
8407
cc9836a8
KB
84082002-04-08 Kevin Buettner <kevinb@redhat.com>
8409
8410 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8411 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8412 ELF_OBJECT_FORMAT ifdef.
8413
7495d1dc
KB
84142002-04-08 Kevin Buettner <kevinb@redhat.com>
8415
8416 From Jimi X <jimix@watson.ibm.com>:
8417 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8418
4288e836
KB
84192002-04-08 Kevin Buettner <kevinb@redhat.com>
8420
8421 From Jimi X <jimix@watson.ibm.com>:
8422 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8423 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8424
a4e4e501
MK
84252002-04-07 Mark Kettenis <kettenis@gnu.org>
8426
8427 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8428 s/asprintf/xasprintf/.
8429 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8430
006defba
AC
84312002-04-07 Andrew Cagney <ac131313@redhat.com>
8432
8433 I believe Jeff Law denies responsability for this one:
8434 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8435 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8436 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8437 Work-around for PR gdb/366.
8438
7aa83cac
EZ
84392002-04-07 Elena Zannoni <ezannoni@redhat.com>
8440
8441 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8442 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8443 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8444
cf1fcca1
EZ
84452002-04-07 Elena Zannoni <ezannoni@redhat.com>
8446
8447 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8448 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8449 information.
8450
3f289e6f
AC
84512002-04-07 Andrew Cagney <ac131313@redhat.com>
8452
8453 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8454 maintainer.
8455
129188f6
AC
84562002-04-07 Andrew Cagney <ac131313@redhat.com>
8457
8458 * README (Reporting Bugs in GDB): Document the bug web page as the
8459 prefered way of submitting bugs.
8460 Fix PR gdb/402.
8461
1200cd6e
AC
84622002-04-06 Andrew Cagney <ac131313@redhat.com>
8463
8464 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8465 -1. Update comment.
8466 * gdbarch.h, gdbarch.c: Re-generate.
8467
2853c33c
AS
84682002-04-07 Andreas Schwab <schwab@suse.de>
8469
8470 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8471 buffer to regcache_collect.
8472
c2169756
AC
84732002-04-06 Andrew Cagney <ac131313@redhat.com>
8474
8475 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8476 * gdbarch.c, gdbarch.h: Re-generate.
8477
25f1b008
AC
84782002-04-06 Andrew Cagney <ac131313@redhat.com>
8479
8480 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8481 declaration. Fix -Werror.
8482
59263426
DJ
84832002-04-05 Daniel Jacobowitz <drow@mvista.com>
8484
8485 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8486 * gdbarch.c: Regenerate.
8487
f5db4da3
MS
84882002-04-05 Michael Snyder <msnyder@redhat.com>
8489
80f8a6eb
MS
8490 * breakpoint.c (clear_command): Rewrite middle section to
8491 combine two loops with identical control conditions.
8492 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8493 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8494
ad3dcc5c
L
84952002-04-05 H.J. Lu (hjl@gnu.org)
8496
8497 * solib-svr4.c (bkpt_names): Add "__start".
8498
f32e7a74
AC
84992002-04-04 Andrew Cagney <ac131313@redhat.com>
8500
8501 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8502 as test for 64 bit target.
8503
8227c0ff
AC
85042002-04-05 Andrew Cagney <ac131313@redhat.com>
8505
8506 * h8500-tdep.c (h8500_write_fp): Delete function.
8507 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8508 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8509 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8510 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8511 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8512 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8513 (s390_write_fp):
8514 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8515 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8516 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8517 (d10v_write_fp): Delete function.
8518 * inferior.h (write_fp, generic_target_write_fp): Delete
8519 declarations.
8520 * regcache.c (generic_target_write_fp): Delete function.
8521 (write_fp): Delete function.
8522 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8523 * gdbarch.h, gdbarch.c: Regenerate.
8524 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8525 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8526 (sparc64_write_fp): Delete declaration.
8527 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8528 (h8500_write_fp): Delete declaration.
8529
2757dd86
AC
85302002-04-04 Andrew Cagney <ac131313@redhat.com>
8531
8532 * sparc-tdep.c (sparc64_write_fp): Delete.
8533 (sparc_push_dummy_frame): Replace write_fp call with code to store
8534 the FP directly.
8535 (sparc_gdbarch_init): Do not initialize write_fp.
8536
c69255e1
KB
85372002-04-05 Kevin Buettner <kevinb@redhat.com>
8538
8539 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8540 clause.
8541
ae767bfb
JB
85422002-03-29 Jim Blandy <jimb@redhat.com>
8543
8544 * stack.c (get_selected_block): Add new argument `addr_in_block',
8545 used to return the exact code address we used to select the block,
8546 not just the block.
8547 * blockframe.c (get_frame_block, get_current_block): Same.
8548 * frame.h (get_frame_block, get_current_block,
8549 get_selected_block): Update declarations.
8550 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8551 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8552
84d2ac95
MS
85532002-04-05 Michael Snyder <msnyder@redhat.com>
8554
8555 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8556 warning message.
8557
596aa3bf
JB
85582002-04-05 J. Brobecker <brobecker@gnat.com>
8559
8560 * utils.c (xfullpath): New function.
8561 * defs.h (xfullpath): Add declaration.
8562 * source.c (openp): Use xfullpath in place of gdb_realpath to
8563 avoid resolving the basename part of filenames when the
8564 associated file is a symbolic link. This fixes a potential
8565 inconsistency between the filenames known to GDB and the
8566 filenames it prints in the annotations.
8567 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8568 to be able to match a filename with either the real filename, or
8569 the name of any symbolic link to this file.
8570 (lookup_partial_symtab): Ditto.
8571
c02f5703
MS
85722002-04-04 Michael Snyder <msnyder@redhat.com>
8573
8574 * breakpoint.c: Add support for hardware breakpoints in overlays.
8575 (overlay_events_enabled): New state variable.
8576 (insert_breakpoints): Use overlay_events_enabled to decide
8577 whether to attempt to set a breakpoint at the overlay load addr.
8578 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8579 (remove_breakpoint): Use overlay_events_enabled to decide
8580 whether breakpoints need to be removed from overlay load addr.
8581 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8582 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8583 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8584 disable_overlay_breakpoints): Update overlay_events_enabled.
8585
5fb290d7
DJ
85862002-04-04 Daniel Jacobowitz <drow@mvista.com>
8587
8588 * dwarf2read.c (struct function_range): New.
8589 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8590 (check_cu_functions): New.
8591 (read_file_scope): Initialize global function lists.
8592 Call dwarf_decode_line after processing children.
8593 (read_func_scope): Add to global function list.
8594 (dwarf_decode_lines): Call check_cu_functions everywhere
8595 record_line is called. Call record_line with a linenumber
8596 of 0 to mark sequence ends.
8597
7b3fabf0
ML
85982002-04-04 Michal Ludvig <mludvig@suse.cz>
8599
361d1df0 8600 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8601 change sync with glibc.
8602
bce58c09
JB
86032002-04-03 Jim Blandy <jimb@redhat.com>
8604
8605 * configure.in: Call AC_C_INLINE.
8606 * configure: Regenerated.
361d1df0 8607
2fccf04a
DJ
86082002-04-01 Daniel Jacobowitz <drow@mvista.com>
8609
8610 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8611 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8612
2d1bfe2e
MK
86132002-03-31 Mark Kettenis <kettenis@gnu.org>
8614
a5941fbf
MK
8615 * NEWS: Mention gcore support on FreeBSD/i386.
8616
a90cd31d
MK
8617 * fbsd-proc.c: New file.
8618 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8619 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8620
2d1bfe2e
MK
8621 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8622 while statement.
8623
9eb6e5a1
JB
86242002-03-29 Jim Blandy <jimb@redhat.com>
8625
8626 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8627 unescaped newlines in string literals, but newer ones don't. So
8628 escape them.
8629
f02df580
MS
86302002-03-26 Michael Snyder <msnyder@redhat.com>
8631 Andrew Cagney <cagney@redhat.com>
8632
361d1df0 8633 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8634 restore file to memory.
8635 * cli/cli-dump.h: New file.
8636 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8637 * NEWS: Mention new commands.
f02df580 8638
109f874e
MS
86392002-03-28 Michael Snyder <msnyder@redhat.com>
8640
8641 * symfile.c (symbol_file_add): Move test for null symbols to later.
8642
520f6ade
AC
86432002-03-27 Andrew Cagney <ac131313@redhat.com>
8644
8645 From veksler at il.ibm.com:
8646 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8647 the xstrduped original path.
8648 Fix PR gdb/417.
8649
d4654627
MS
86502002-03-27 Michael Snyder <msnyder@redhat.com>
8651
8652 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8653 * infcmd.c (_initialize_infcmd): Ditto.
8654 * language.c (_initialize_language): Ditto.
8655 * symfile.c (_initialize_symfile): Ditto.
8656 * top.c (_init_main): Ditto.
8657 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8658
6be8bc0c
EZ
86592002-03-27 Elena Zannoni <ezannoni@redhat.com>
8660
8661 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8662 vector registers handling.
8663 (skip_prologue): Handle new AltiVec instructions. Fill in new
8664 fields of frame data.
8665 (frame_get_saved_regs): Fill in information for AltiVec registers.
8666
12af6855
JB
86672002-03-27 Jim Blandy <jimb@redhat.com>
8668
8669 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8670 a function; leave this macro here to invoke that function.
8671 (symbol_init_mangled_name): Declaration for that function.
8672 * symtab.c (symbol_init_mangled_name): New function.
8673
dc672865
AC
86742002-03-27 Andrew Cagney <ac131313@redhat.com>
8675
8676 * valarith.c: Replace strerror with safe_strerror.
8677 * tracepoint.c: Ditto.
8678 * lin-lwp.c: Ditto.
8679 * go32-nat.c: Ditto.
8680 * inflow.c: Ditto.
8681 * gnu-nat.c: Ditto.
8682
d96429cd
AS
86832002-03-27 Andreas Schwab <schwab@suse.de>
8684
8685 * event-top.c (command_line_handler): Remove useless if.
8686
7e336ba1
AJ
86872002-03-27 Andreas Jaeger <aj@suse.de>
8688
8689 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8690 comment.
8691
de220d0f
ML
86922002-03-27 Michal Ludvig <mludvig@suse.cz>
8693
8694 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8695 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8696 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8697 (x86_64_linux_dr_get_status, supply_gregset),
8698 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8699 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8700 (x86_64_register_info_table): Add.
8701 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8702 (x86_64_register_raw_size, x86_64_register_virtual_type),
8703 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8704 general x86_64_register_info_table.
8705 (i386_gdbarch_init): gdbarch_register_bytes is now set
8706 dynamicaly during initialization.
8707 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8708 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8709
0e98d0a7
DJ
87102002-03-27 Daniel Jacobowitz <drow@mvista.com>
8711
8712 * gdbserver/server.c (main): Call target_signal_to_host_p
8713 and target_signal_to_host on signals received from the remote.
8714 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8715 target_signal_from_host on signals sent to the remote.
8716 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8717 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8718
3130066b
DJ
87192002-03-27 Daniel Jacobowitz <drow@mvista.com>
8720
8721 * signals/signals.c: Include "server.h" in gdbserver build.
8722 (target_signal_from_name): Don't use STREQ.
8723 (_initialize_signals): Likewise. Don't include function in
8724 gdbserver build.
8725
9aedf4f4
DJ
87262002-03-27 Daniel Jacobowitz <drow@mvista.com>
8727
8728 * signals.c: Moved to...
8729 * signals/signals.c: Here.
7e336ba1 8730 * Makefile (signals.o): Update.
9aedf4f4 8731
3fa41cdb
JL
87322002-03-26 Jeff Law (law@redhat.com)
8733
8734 * somread.c (som_symtab_read): Remove some commented out code and
8735 updated related comments. Do not set the minimal symbol table to
8736 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8737 in a dynamic executable.
8738 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8739 where we are unable to find the minimal symbol for the given
8740 PC value.
8741
ee677e8d
MS
87422002-03-25 Jeff Law (law@redhat.com)
8743
8744 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8745
e76e1718
ML
87462002-03-25 Michal Ludvig <mludvig@suse.cz>
8747
8748 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8749
18a642a1
AC
87502002-03-23 Andrew Cagney <ac131313@redhat.com>
8751
8752 * command.h: Update copyright.
8753 (struct cmd_list_element): Replace definition with opaque
8754 declaration.
8755 (enum cmd_types): Document that it will eventually be moved to
8756 cli/cli-decode.h
8757 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8758 (MALLOCED_REPLACEMENT): Delete macro.
8759 * Makefile.in (cli_decode_h): Add $(command_h).
8760 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8761 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8762 * completer.c: Include "cli/cli-decode.h".
8763 * maint.c: Include "cli/cli-decode.h".
8764 * cli/cli-decode.h: Include "command.h".
8765 (enum command_class): Delete.
8766 (enum cmd_types): Comment out.
8767 (enum cmd_auto_boolean): Delete.
8768 (enum var_types): Delete.
8769
b2875cc0
AC
87702002-03-23 Andrew Cagney <ac131313@redhat.com>
8771
8772 * cli/cli-decode.c: Include "gdb_assert.h".
8773 (add_set_or_show_cmd): New static function.
8774 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8775 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8776 all fields, such as func, from the set command.
8777
3b45974e
AC
87782002-03-23 Andrew Cagney <ac131313@redhat.com>
8779
8780 * MAINTAINERS (sh-elf): Change warning flag to -w.
8781
823ca731
AC
87822002-03-23 Andrew Cagney <cagney@redhat.com>
8783
8784 * defs.h (error): Add printf format attribute.
8785 * thread-db.c (thread_from_lwp): Fix error format string.
8786 * stack.c (parse_frame_specification): Ditto.
8787 * cli/cli-decode.c (undef_cmd_error): Ditto.
8788 * scm-lang.c (scm_lookup_name): Ditto.
8789 * tracepoint.c (trace_error): Ditto.
8790 * remote-utils.c (usage): Ditto.
8791 * remote.c (compare_sections_command): Ditto.
8792 Fix PR gdb/328.
8793
0e101458
AC
87942002-03-22 Andrew Cagney <ac131313@redhat.com>
8795
8796 * gdbtypes.c (append_composite_type_field): New function.
8797 (init_composite_type): New function.
8798 * gdbtypes.h (append_composite_type_field): Declare.
8799 (init_composite_type): Ditto.
8800
8e0662df
EZ
88012002-03-22 Elena Zannoni <ezannoni@redhat.com>
8802
8803 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8804 function.
8e0662df
EZ
8805 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8806 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8807 structure returning convention for SYSV ABI case, but not
8808 for GNU/Linux, FreeBSD, or NetBSD.
8809
3121eff0
DJ
88102002-03-22 Daniel Jacobowitz <drow@mvista.com>
8811
8812 * symtab.h (lookup_block_symbol): Add mangled_name argument
8813 to prototype.
8814
8815 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8816 with new mangled_name argument.
8817 * linespec.c (decode_line_1): Likewise.
8818 * valops (value_of_this): Likewise.
8819 * symtab.c (lookup_transparent_type): Likewise.
8820 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8821 (lookup_symbol): If we are given a mangled name, pass it down
8822 to lookup_symbol_aux.
8823 (lookup_block_symbol): If we are given a mangled name to check
8824 against, only return symbols which match it.
8825
349b409f
CF
88262002-03-22 Christopher Faylor <cgf@redhat.com>
8827
8828 * win32-nat.c (child_create_inferior): Check for proper shell to use
8829 here, in case the user changes it on the fly.
8830 (_initialize_inftarg): Remove shell path considerations.
8831
2a873819
EZ
88322002-03-21 Elena Zannoni <ezannoni@redhat.com>
8833
8834 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8835 for gdbarch_max_register_raw_size and max_register_virtual_size.
8836 Adjust copyright year.
8837
a1b9830c
DJ
88382002-03-21 Daniel Jacobowitz <drow@mvista.com>
8839
8840 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8841 in a function to cover the entire beginning of the function
8842 as well if it does not already.
8843
8b5790f2
TR
88442002-03-21 Tom Rix <trix@redhat.com>
8845
8846 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8847 (rs6000_ptrace64): Renamed from ptrace64.
8848
bdbe5747
MH
88492002-03-20 Martin M. Hunt <hunt@redhat.com>
8850
8851 * gdbserver/remote-utils.c (remote_open): Don't call
8852 getprotobyname, we're all using TCP here so just use
8853 IPPROTO_TCP.
7e336ba1 8854 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
8855
88562002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 8857
bdbe5747
MH
8858 * regcache.c (_initialize_regcache): No need to call
8859 build_regcache() at this time; it gets called whenever
8860 the gdbarch changes.
8861
7781cd62
DB
88622002-03-20 David O'Brien <obrien@FreeBSD.org>
8863
8864 * sparc-nat.c: Include sys/param.h where possible.
8865
f65ca430
DJ
88662002-03-20 Daniel Jacobowitz <drow@mvista.com>
8867
8868 Fix PR gdb/422.
8869 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8870 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8871 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8872 complex types.
8873 * stabsread.c (rs6000_builtin_type): Likewise.
8874 (read_sun_floating_type): Likewise.
8875
0c867556
PS
88762002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8877
8878 * stabsread.c (read_member_functions): Remove skip code for duplicate
8879 constructor/destructor methods. Use standard parsing for these
8880 methods and just do not chain them to the list of methods after
8881 parsing.
8882
12b9c64f
AO
88832002-03-19 Alexandre Oliva <aoliva@redhat.com>
8884
8885 * coffread.c: Remove redundant static declarations. Replace
8886 occurrences of `PTR' with `void *'.
8887 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8888 * top.h (quit_cover): Likewise.
8889 * defs.h (catch_errors): Likewise.
8890
349c5d5f
AC
88912002-03-18 Andrew Cagney <ac131313@redhat.com>
8892
8893 * defs.h (XMALLOC): Define.
8894 * gdb-events.sh (XMALLOC): Delete macro.
8895 * gdb-events.c, gdb-events.h: Regenerate.
8896 * gdbarch.sh (XMALLOC): Delete macro.
8897 * gdbarch.c: Regenerate.
8898 * serial.c (XMALLOC): Delete macro.
8899 * ui-file.c (XMALLOC): Ditto.
8900 * ser-unix.h (XMALLOC): Ditto.
8901 * sh-tdep.c (XMALLOC): Ditto.
8902 * ui-out.c (XMALLOC): Ditto.
8903 * utils.c (XMALLOC): Ditto.
8904 * i386-tdep.c (XMALLOC): Ditto.
8905 * gdb-events.c (XMALLOC): Ditto.
8906 * d10v-tdep.c (XMALLOC): Ditto.
8907 * cli-out.c (XMALLOC): Ditto.
8908
8909 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8910 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8911 * ui-file.c, ui-out.c: Ditto.
8912
7d0766f3
AC
89132002-03-18 Andrew Cagney <ac131313@redhat.com>
8914
8915 * command.h (struct cmd_list_element): Add field context.
8916 (set_cmd_context, get_cmd_context): Declare.
8917 * cli/cli-decode.h: Ditto.
8918 * cli/cli-decode.c (get_cmd_context): New function.
8919 (set_cmd_context): New function.
8920 (add_cmd): Initialize context.
8921 Part of fixing PR gdb/145 and PR gdb/146.
8922
5913bcb0
AC
89232002-03-17 Andrew Cagney <ac131313@redhat.com>
8924
1868c04e
AC
8925 * cli/cli-decode.c (cmd_type): New function.
8926 * command.h (cmd_type): Declare.
8927 * infrun.c (set_schedlock_func): Call function cmd_type.
8928 * kod.c (kod_set_os): Call cmd_type.
8929 * cris-tdep.c (cris_version_update): Use function cmd_type.
8930 (cris_mode_update, cris_abi_update): Ditto.
8931
5913bcb0
AC
8932 * command.h: (execute_cmd_post_hook): Declare.
8933 (execute_cmd_pre_hook): Declare.
8934 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8935 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8936 functions. Execute pre/post hook while ensuring that afterwords
8937 hook_in is cleared.
8938 * top.c (execute_command): Use execute_cmd_post_hook, and
8939 execute_cmd_pre_hook to execute pre/post commands.
8940 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8941 hook_stop_stub.
8942 (hook_stop_stub): Call execute_cmd_pre_hook.
8943
b51450c9
AC
89442002-03-17 Andrew Cagney <ac131313@redhat.com>
8945
8946 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8947 set'' and this leads to a core dump. Move xstrdup of
8948 operating_system to after check that it is not NULL.
8949
f66c9f11
AC
89502002-03-17 Andrew Cagney <ac131313@redhat.com>
8951
8e694ecf
AC
8952 * kod.c (kod_set_os): Remove unnecessary check that
8953 ``command->type'' is set_cmd.
8954
f66c9f11
AC
8955 * valprint.c (set_input_radix): Use input_radix.
8956 (set_output_radix): Use output_radix.
8957 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8958 isn't reverted.
8959
9d01611c
AC
89602002-03-16 Andrew Cagney <ac131313@redhat.com>
8961
8962 * value.h (struct value): Delete field ``substring_addr''. Change
8963 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
8964 force_core_addr_align and force_pointer_aligh.
8965
8966 * value.h (struct value): Fix typo in above change.
9d01611c 8967
4156bb53
PS
89682002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8969
8970 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8971 to fix internal_error from ``maintenance print architecture''.
8972
0e5e3ea6
PS
89732002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8974
8975 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8976 for gcc versions after gcc-2.8.1.
8977
9b013045
PS
89782002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8979
8980 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8981 for method resolution. Restore adjustment of ``this'' pointer after
8982 calling value_struct_elt, which was accidentally removed during the
8983 HP merge.
8984
376c9600
AC
89852002-03-15 Andrew Cagney <ac131313@redhat.com>
8986
8987 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8988 value_of_register.
8989 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8990 get_saved_register.
8991 * value.h (value_of_register): Update.
8992
a4db0f07
RH
89932002-03-14 Richard Henderson <rth@redhat.com>
8994
8995 * configure.in: Detect declaration for canonicalize_file_name.
8996 * utils.c (canonicalize_file_name): Declare, if needed.
8997 (gdb_realpath): Prefer realpath if available and usable.
8998 * config.in, configure: Rebuild.
8999
96383835
RH
90002002-03-14 Richard Henderson <rth@redhat.com>
9001
9002 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9003 a constant array bound.
9004
9005 * MAINTAINERS: Add myself to write-after-approval.
9006
75245b24
MS
90072002-03-14 Michael Snyder <msnyder@redhat.com>
9008
9009 * symfile.c (syms_from_objfile): Return immediately if no syms.
9010 (symbol_file_add): Return immediately if no syms.
9011 (find_sym_fns): Return immediately if no syms.
9012
e641a1ca
ML
90132002-03-13 Michal Ludvig <mludvig@suse.cz>
9014
9015 * gdbserver/remote-util.c (remote_open): Print remote-side's
9016 IP address when remote debugging over the network.
7e336ba1 9017
df08bfec
DB
90182002-03-12 David O'Brien <obrien@FreeBSD.org>
9019
9020 * config/sparc/fbsd.mh: Fix copyright.
9021 * config/sparc/fbsd.mt: Likewise.
9022
9a57864f
RE
90232002-03-11 Richard Earnshaw <rearnsha@arm.com>
9024
9025 * MAINTAINERS: Fix typo in name of gdb warnings option.
9026 (x86-64): Fix formating so that this can be parsed by awk.
9027
dd7bf85e
DJ
90282002-03-10 Daniel Jacobowitz <drow@mvista.com>
9029
9030 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9031 * defs.h: Include "gdb/signals.h".
9032 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9033
33a0a2ac
ML
90342002-03-10 Michal Ludvig <mludvig@suse.cz>
9035
9036 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 9037 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
9038 from x86-64-tdep.h
9039
dd824b04
DJ
90402002-03-10 Daniel Jacobowitz <drow@mvista.com>
9041 Don Howard <dhoward@redhat.com>
9042
9043 * mips-tdep.c (ST0_FR): Define.
9044 (mips2_fp_compat): New function, temporarily disabled.
9045 (mips_read_fp_register_single): New function.
9046 (mips_read_fp_register_double): New function.
9047 (mips_print_register): Use them.
9048 (do_fp_register_row): Likewise.
9049
6a41ff59
AC
90502002-03-09 Andrew Cagney <ac131313@redhat.com>
9051
9052 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9053 approval''.
9054
4ea09c10
PS
90552002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9056
9057 * stabsread.c (read_member_functions): Fix is_stub test for
9058 static member functions, improve comment.
9059
6ccc741d
RE
90602002-03-07 Richard Earnshaw <rearnsha@arm.com>
9061
9062 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9063 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9064 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9065 commands that set boolean values.
9066 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9067 (arm_rdi_resume): Always initialize PC.
9068 (arm_rdi_open): Don't use rslt as a boolean.
9069 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9070 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9071 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9072 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9073
438013df
AO
90742002-03-06 Alexandre Oliva <aoliva@redhat.com>
9075
9076 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9077 * configure: Rebuilt.
9078
70ed8774
SC
90792002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9080
9081 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9082 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9083
5ba2abeb
AC
90842002-03-06 Andrew Cagney <ac131313@redhat.com>
9085
9086 * cli/cli-decode.c (set_cmd_completer): New function.
9087 * command.h (set_cmd_completer): Declare.
9088 * cli/cli-decode.h (set_cmd_completer): Ditto.
9089
9090 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9091 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9092 * win32-nat.c (_initialize_inftarg): Ditto.
9093 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9094 * proc-api.c (_initialize_proc_api): Ditto.
9095 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9096 * source.c (_initialize_source): Ditto.
9097 * exec.c (_initialize_exec): Ditto.
9098 * solib.c (_initialize_solib): Ditto.
9099 * top.c (init_main): Ditto.
9100 * tracepoint.c (_initialize_tracepoint): Ditto.
9101 * symfile.c (_initialize_symfile): Ditto.
9102 * printcmd.c (_initialize_printcmd): Ditto.
9103 * infcmd.c (_initialize_infcmd): Ditto.
9104 * corefile.c (_initialize_core): Ditto.
9105
f779ca99
AC
91062002-03-05 Andrew Cagney <ac131313@redhat.com>
9107
9108 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9109
01a3934b
AC
91102002-03-05 Andrew Cagney <ac131313@redhat.com>
9111
9112 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9113
37057839
AC
91142002-03-05 Andrew Cagney <ac131313@redhat.com>
9115
9116 * NEWS: Update headings, 5.2 has branched.
9117
c6ecbae5
DJ
91182002-03-04 Daniel Jacobowitz <drow@mvista.com>
9119
9120 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9121 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9122 (register_addr, REGISTER_RAW_SIZE): Likewise.
9123 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9124 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9125
e9f30c21
ML
91262002-03-03 Michal Ludvig <mludvig@suse.cz>
9127
9128 * MAINTAINERS (x86-64): Add myself.
9129 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9130 changed value_ptr -> struct value *
9131
54394ac3
DB
91322002-03-01 David O'Brien <obrien@FreeBSD.org>
9133
9134 * configure.host (sparc64-*-freebsd): Add.
9135 * configure.tgt: Likewise.
9136 * config/sparc/fbsd.mh: New file.
9137 * config/sparc/fbsd.mt: Likewise.
9138 * config/sparc/nm-fbsd.h: Likewise.
9139 * config/sparc/tm-fbsd.h: Likewise.
9140
bfe95955
DJ
91412002-03-01 Daniel Jacobowitz <drow@mvista.com>
9142
9143 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9144 regformats/reg-s390x.dat.
9145
f33c6cbf
AC
91462002-03-01 Andrew Cagney <ac131313@redhat.com>
9147
9148 * utils.c: Add FIXME explaining true/false problem.
9149
5ecaa7dd
AC
91502002-02-28 Andrew Cagney <ac131313@redhat.com>
9151
9152 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9153
2a251cc2
MC
91542002-02-28 Michael Chastain <mec@shout.net>
9155
9156 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9157
6a8031a3 91582002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
9159
9160 * gdbserver/linux-s390-low.c: New file.
9161 * regformats/reg-s390.dat: New file.
9162 * regformats/reg-s390x.dat: New file.
9163 * gdbserver/configure.srv: Add S/390.
9164 * gdbserver/Makefile.in: Add S/390.
9165 * configure.tgt: Enable gdbserver for S/390.
9166
ac469903
EZ
91672002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9168
9169 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9170 first line of the doc string for "info dos", except at the end of
9171 the sentence, since the short help stops at the first period.
9172
985cb1a3
JM
91732002-02-28 Jason Merrill <jason@redhat.com>
9174
9175 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9176
c570663e
FF
91772002-02-27 Fred Fish <fnf@redhat.com>
9178
9179 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9180 comment (dumy -> dummy).
9181
43630227
PS
91822002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9183
9184 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9185
b84911e8
RB
91862002-02-27 Rodney Brown <rbrown64@csc.com.au>
9187
9188 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9189
58caa3dc
DJ
91902002-02-27 Daniel Jacobowitz <drow@mvista.com>
9191
9192 * gdbserver/acconfig.h: New file.
9193 * gdbserver/i387-fp.c: New file.
9194 * gdbserver/i387-fp.h: New file.
9195 * gdbserver/linux-x86-64.c: New file.
9196 * regformats/reg-x86-64.dat: New file.
9197 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9198 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9199 * gdbserver/configure.in: Add support for regsets.
9200 * gdbserver/config.in: Regenerate.
9201 * gdbserver/configure: Regenerate.
9202 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9203 * gdbserver/linux-low.h: New file.
9204 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9205 for regsets.
9206 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9207 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9208 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9209 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9210 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9211 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9212 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9213 "i387-fp.h". Add PTRACE_GETREGS and friends.
9214 * gdbserver/regcache.c (supply_register): New function.
9215 (supply_register_by_name): New function.
9216 (collect_register): New function.
9217 (collect_register_by_name): New function.
9218
93652174
DJ
92192002-02-27 Daniel Jacobowitz <drow@mvista.com>
9220
9221 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9222 (config.status): Add configure.srv dependency.
9223 (server_h): Add config.h dependency.
9224
a02e4a61
DJ
92252002-02-27 Daniel Jacobowitz <drow@mvista.com>
9226
9227 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9228 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9229 * gdbserver/configure.srv: Change i386-*-linux* to use
9230 reg-i386-linux.o.
9231
ce0eebec
AC
92322002-02-26 Andrew Cagney <ac131313@redhat.com>
9233
9234 * x86-64-tdep.c: Re-indent. Update copyright date.
9235
82dbc5f7
AC
92362002-02-26 Andrew Cagney <ac131313@redhat.com>
9237
9238 From Michal Ludvig <mludvig@suse.cz>:
9239 * x86-64-tdep.c (value.h): Delete.
9240 (gdb_assert.h): Include.
9241 (x86_64_register_convert_to_virtual,
9242 x86_64_register_convert_to_raw ): Add check which lets only
9243 floating-point values to be converted.
9244 (value_push): Delete.
9245 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9246 (i386_gdbarch_init): Number of register_bytes fixed.
9247
e4621584
AC
92482002-02-26 Andrew Cagney <ac131313@redhat.com>
9249
9250 * MAINTAINERS: Add x86-64 target.
9251
81a9a963
AC
92522002-02-26 Andrew Cagney <ac131313@redhat.com>
9253
9254 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9255 * osfsolib.c (solib_map_sections): Ditto.
9256 * irix5-nat.c (solib_map_sections): Ditto.
9257 * corelow.c (gdb_check_format): Ditto.
9258 * symfile.c (symfile_bfd_open): Ditto.
9259 * solib.c (solib_map_sections): Ditto.
9260 Fix PR gdb/354.
7e336ba1 9261
0f017ab9
AC
92622002-02-26 Andrew Cagney <ac131313@redhat.com>
9263
9264 * remote.c (_initialize_remote): By default, disable ``e'' and
9265 ``E'' step out-of-range packets.
9266
75738c29
AS
92672002-02-26 Andreas Schwab <schwab@suse.de>
9268
9269 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9270 m68k_linux_frame_saved_pc.
9271 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9272 in_sigtramp.
9273 (SIGCONTEXT_PC_OFFSET): Remove.
9274 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9275 m68k_linux_sigtramp_saved_pc): New functions.
9276 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9277 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9278 (UCONTEXT_PC_OFFSET): Define.
9279 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9280 non-RT and RT signal trampolines.
9281
7e8ed687
RE
92822002-02-26 Richard Earnshaw <rearnsha@arm.com>
9283
9284 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9285 (TARGET_NBPG, STACK_END_ADDR): Delete
9286 (VARIABLES_INSIDE_BLOCK): Delete.
9287
6972bc8b
AC
92882002-02-25 Andrew Cagney <ac131313@redhat.com>
9289
9290 * utils.c (perror_with_name): Make string parameter constant.
9291 (print_sys_errmsg): Ditto.
9292 (query): Ditto.
9293 * defs.h (perror_with_name): Update.
9294 (print_sys_errmsg): Update.
9295 (query): Update.
9296
aa32f823
DJ
92972002-02-25 Daniel Jacobowitz <drow@mvista.com>
9298
9299 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9300 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9301
19caaa45
PS
93022002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9303
9304 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9305 if it already matches the current architecture from the exec file.
9306 Include arch-utils.h for gdbarch_info_init prototype.
9307 * Makefile.in (rs6000-nat.o): Update dependencies.
9308
d951901f
EZ
93092002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9310
9311 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9312 list of exported variables.
9313
7ea81414
DJ
93142002-02-24 Daniel Jacobowitz <drow@mvista.com>
9315
9316 * gdbserver/configure.srv: New file.
9317 * gdbserver/configure.in: Use configure.srv instead
9318 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9319 from it.
9320 * gdbserver/configure: Regenerated.
9321 * gdbserver/terminal.h: New file.
9322 * gdbserver/Makefile.in: Update for configure changes. Remove
9323 more unneeded include paths.
9324
080fe24b
AC
93252002-02-24 Andrew Cagney <ac131313@redhat.com>
9326
9327 From wiz at danbala:
9328 * config/sparc/tm-sp64.h: Fix grammar and typos.
9329 Fix PR gdb/287.
9330
8605d56e
AC
93312002-02-24 Andrew Cagney <ac131313@redhat.com>
9332
9333 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9334 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9335 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9336 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9337 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9338 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9339 * s390-tdep.c: Ditto.
92362027
AC
9340 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9341 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9342 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9343 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9344 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9345 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9346 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9347 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9348 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9349 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9350 Fix PR gdb/378.
7e336ba1 9351
8ed32cc0
AC
93522002-02-23 Andrew Cagney <ac131313@redhat.com>
9353
a3007b6f
AC
9354 * lin-thread.c: Delete file.
9355 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9356 to gdb_proc_service.h.
9357 * configure: Re-generate.
9358
50a9e2f1
AC
9359 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9360 * serial.c (serial_open): Delete check for "ocd".
9361 Fix PR gdb/349.
9362
8b6e7932
AC
9363 * Makefile.in (linux-thread.o): Delete target.
9364 * linux-thread.c: Delete file.
9365
d155c46b
AC
9366 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9367 renamed SH files to be consistent.
9368
8ed32cc0
AC
9369 * symtab.c (sort_search_symbols): Use xfree.
9370
0e18d038
RE
93712002-02-23 Richard Earnshaw <rearnsha@arm.com>
9372
9373 * arm-linux-tdep.c (arm_linux_init_abi): Register
9374 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9375 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9376 definition with undef, since we don't want the sysvr4 definition.
9377 (SKIP_TRAMPOLINE_CODE): Likewise.
9378
27aac7ff
AC
93792002-02-23 Andrew Cagney <ac131313@redhat.com>
9380
9381 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9382
9383 * configure.in: (AC_CHECK_FUNCS) Added test for
9384 canonicalize_file_name Regenerated.
9385 * config.in, configure: Regenerated.
9386 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9387 defined use canonicalize_file_name.
7e336ba1 9388
65a6e0ee
MC
93892002-02-23 Michael Chastain <mec@shout.net>
9390
9391 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9392
47b95330
AC
93932002-02-23 Andrew Cagney <ac131313@redhat.com>
9394
9395 * README: Remove references to cygnus.com.
9396 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9397 dot com'' form. Remove references to cygnus.com and sourceware.
9398
696f451b
AC
93992002-02-23 Andrew Cagney <ac131313@redhat.com>
9400
9401 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9402 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9403 1003.1-2001 no longer allows "head -1".
9404 * gdb/Makefile.in (version.c): Likewise.
9405 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9406 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9407 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9408
bbaca940
AC
94092002-02-23 Andrew Cagney <ac131313@redhat.com>
9410
9411 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9412 * command.h (cmd_cfunc_eq): Declare.
9413 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9414
9415 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9416 ``struct cmd_list_element *''.
9417 * cli/cli-cmds.c (is_complete_command): Update. Use
9418 cmd_cfunc_eq.
9419 * top.c (execute_command): Pass the command to
9420 is_complete_command.
9421 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9422
b8b8b047
AC
94232002-02-23 Andrew Cagney <ac131313@redhat.com>
9424
9425 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9426 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9427 architecture defines.
9428 * s390-tdep.c (s390_gdbarch_init): Likewise.
9429
19d3fc80
RE
94302002-02-23 Richard Earnshaw <rearnsha@arm.com>
9431
9432 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9433 (arm_linux_push_arguments): Likewise.
9434 (arm_linux_init_abi): Register them. Also register linux-specific
9435 call_dummy_words.
9436 (find_minsym_and_objfile): Use strcmp, not STREQ.
9437 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9438 (arm_linux_call_dummy_words): Delete declaration.
9439 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9440 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9441 declarations.
9442 (LOWEST_PC): Delete.
9443
3ab13650
PS
94442002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9445
9446 * maint.c (print_section_info): Do not prepend `0x' to filepos
9447 output, it will be handled by local_hex_string_custom.
9448
19d3fc80 94492002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9450
9451 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9452 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9453 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9454
d85a5daf
JB
94552002-02-22 Jim Blandy <jimb@redhat.com>
9456
9457 Indicate that the bcache functions don't change the strings
9458 they're passed.
9459 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9460 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9461
eeb25b8a
PM
94622002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9463
9464 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9465
6badb179
CF
94662002-02-21 Christopher Faylor <cgf@redhat.com>
9467
9468 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9469 find the complete path to a loaded DLL.
9470
e8717518
FF
94712002-02-21 Fred Fish <fnf@redhat.com>
9472
9473 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9474 that marks the end of the range of a function, enter a line number
9475 entry that has a line number of zero and a PC offset that matches
9476 the end of the function. This starts a range of PC's for which no
9477 line number information is known.
9478 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9479 PC's for which no line number info is found (line number is zero)
9480 then we didn't find any valid line information.
9481 * symtab.h: Document use of zero line number entry.
9482
9abe5450
EZ
94832002-02-21 Elena Zannoni <ezannoni@redhat.com>
9484
9485 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9486 (have_ptrace_getvrregs): Define for run time checks.
9487 (gdb_vrregset_t): New type for Altivec register handling.
9488 (fetch_register, store_register): Fetch/store altivec register
9489 when needed.
9490 (fetch_altivec_register, store_altivec_register): New functions.
9491 (supply_vrregset, fill_vrregset): New functions.
9492 (fetch_altivec_registers, store_altivec_registers): New functions.
9493 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9494 registers as well.
9495
aaa38bb5
AJ
94962002-02-21 Jiri Smid <smid@suse.cz>
9497
9498 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9499
b34db576
RE
95002002-02-21 Richard Earnshaw <rearnsha@arm.com>
9501
9502 * Makefile.in (armnbsd-nat.o): Update dependencies.
9503 * armnbsd-nat.c (supply_gregset): New function. Common code to
9504 supply the integer register set.
9505 (supply_fparegset): New function. Similar for FPA registers.
9506 (fetch_regs, fetch_fp_regs): Use them.
9507 (fetch_core_registers): Likewise.
9508 (fetch_elfcore_registers): New function.
9509 (arm_netbsd_elfcore_fns): New core-file type specification.
9510 (_initialize_arm_netbsd_nat): Register it.
9511
3e56fc4b
RE
95122002-02-21 Richard Earnshaw <rearnsha@arm.com>
9513
9514 * armnbsd-nat.c: Include gdbcore.h.
9515 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9516 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9517 'void' to declaration, to shut up ARI.
9518 (fetch_core_registers): Make static. Rewrite using supply_register.
9519 (arm_netbsd_core_fns): New core-file type specification.
9520 (_initialize_arm_netbsd_nat): New function.
9521
097f6b0b
CF
95222002-02-21 Christopher Faylor <cgf@redhat.com>
9523
9524 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9525 value.
9526
c914e0cc
CF
95272002-02-20 Christopher Faylor <cgf@redhat.com>
9528
9529 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9530 fails.
9531
385fa495
DJ
95322002-02-20 Daniel Jacobowitz <drow@mvista.com>
9533
9534 * jv-exp.y (parse_number): Change type of implicit longs
9535 to builtin_type_uint64.
9536
e5f1222d
DJ
95372002-02-20 Daniel Jacobowitz <drow@mvista.com>
9538
9539 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9540 to be an integer instead of a `union wait'.
9541
75c9abc6
DJ
95422002-02-20 Daniel Jacobowitz <drow@mvista.com>
9543
9544 * mips-linux-nat.c: Call the operating system GNU/Linux.
9545 * mips-linux-tdep.c: Likewise.
9546 * mips-tdep.c: Likewise.
9547
551792a5
DJ
95482002-02-20 Daniel Jacobowitz <drow@mvista.com>
9549
9550 Fix PR gdb/265.
9551 * jv-exp.y (parse_number): Handle 64-bit integers.
9552
ee6e2b82
DJ
95532002-02-20 Daniel Jacobowitz <drow@mvista.com>
9554
9555 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9556 AC_STDC_HEADERS to AC_HEADER_STDC.
9557 * gdbserver/configure: Regenerated.
9558
a48442a0
RE
95592002-02-20 Richard Earnshaw <rearnsha@arm.com>
9560
9561 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9562 is defined.
9563 * sparc-tdep.c (get_longjmp_target): Likewise.
9564
fe419ffc
RE
95652002-02-20 Richard Earnshaw <rearnsha@arm.com>
9566
9567 * News: Add news about ARM and Multi-arch. Mention the new target
9568 arm*-*-netbsd*.
9569
5832ed7e
JB
95702002-02-19 Jim Blandy <jimb@redhat.com>
9571
9572 * stabsread.c (error_type_complaint): Improve error message.
9573
84563040
DJ
95742002-02-19 Daniel Jacobowitz <drow@mvista.com>
9575
9576 * gdbserver/README: Update documentation.
9577 * gdbserver/configure.in: Update configury to match documentation.
9578 * gdbserver/Makefile.in: Likewise.
9579 * gdbserver/configure: Regenerated.
9580 * gdbserver/aclocal.m4: New file, generated by aclocal.
9581 * gdbserver/config.in: New file, generated by autoheader.
9582
375fd65b
RE
95832002-02-19 Richard Earnshaw <rearnsha@arm.com>
9584
9585 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9586 armnbsd-nat.c.
9587
08216dd7
RE
95882002-02-19 Richard Earnshaw <rearnsha@arm.com>
9589
9590 * arm-tdep.h (enum arm_float_model): New enum.
9591 (struct gdbarch_tdep): Add fp_model.
9592 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9593 up floating-point conversions until we know the floating-point model
9594 in use by the inferior. Don't complain about being unable to
9595 determine the ABI of the inferior when we don't have one.
9596 (arm_extract_return_value): Support different floating-point models.
9597 (arm_store_return_value): Likewise.
aaa38bb5 9598 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9599 ARM_FLOAT_SOFT.
9600 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9601
65d6d66a
PS
96022002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9603
9604 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9605 of ``current_gdbarch''.
9606
47221191
RE
96072002-02-19 Richard Earnshaw <rearnsha@arm.com>
9608
9609 * armnbsd-nat.c : ANSIfy all function declarations.
9610 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9611 (fetch_inferior_registers): Re-implement in terms of above.
9612 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9613 (store_inferior_registers): Re-implement in terms of above.
9614
fdf39c9a
RE
96152002-02-19 Richard Earnshaw <rearnsha@arm.com>
9616
aaa38bb5 9617 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9618 kernel.
9619 * arm-linux-tdep.c: Likewise.
9620 * config/arm/tm-linux.h: Likewise.
9621
93247f88
RE
96222002-02-19 Richard Earnshaw <rearnsha@arm.com>
9623
9624 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9625 * config/arm/nbsd.mt (TM_FILE): Delete.
9626 * config/arm/tm-nbsd.h: Delete.
9627
d7b486e7
RE
96282002-02-19 Richard Earnshaw <rearnsha@arm.com>
9629
9630 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9631 Initialize CALL_DUMMY_LENGTH.
9632
41d39a95
RE
96332002-02-19 Richard Earnshaw <rearnsha@arm.com>
9634
9635 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9636 function.
9637 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9638 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9639 defines one thing and that is incorrect for this port.
9640 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9641
e1195560
PM
96422002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9643
9644 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9645
c1748f97
PM
96462002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9647
9648 * win32-nat.c (display_selector): New function. Displays information
9649 about the information returned by GetThreadSelectorEntry API function.
9650 (display_selectors): New function. Displays the infomation of
9651 the selector given as argument, or of CS, DS ans FS selectors
9652 if no argument is given.
9653 ( _initialize_inftarg): Add "w32" as info prefix command.
9654 Add "info w32 selector" as command calling display_selectors.
9655
e41e6bbf
PM
96562002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9657
9658 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9659 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9660 if not defined.
9661
0d3a9f48
RE
96622002-02-18 Richard Earnshaw <rearnsha@arm.com>
9663
9664 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9665
3fb4b924
RE
96662002-02-18 Richard Earnshaw <rearnsha@arm.com>
9667
9668 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9669 (arm_fix_call_dummy): Call it.
9670 (arm_call_dummy_breakpoint_offset): Delete.
9671 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9672 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9673
7f55af32
AC
96742002-02-18 Andrew Cagney <ac131313@redhat.com>
9675
9676 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9677 Default to func_frame_chain_valid.
9678 * gdbarch.h, gdbarch.c: Re-generate.
9679 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9680
05f13b9c
EZ
96812002-02-18 Elena Zannoni <ezannoni@redhat.com>
9682
9683 * ppc-linux-nat.c: Update copyright.
9684 (fetch_register, store_register): Add tid parameter, don't compute
9685 tid here.
9686 (fetch_ppc_registers, store_ppc_registers): Add tid
9687 parameter. Pass it along to callees.
9688 (fetch_inferior_registers, store_inferior_registers): Compute tid
9689 here, and pass it to calleed functions.
9690 (fill_gregset, supply_fpregset): Clean up formatting.
9691
d7afb4c9
RE
96922002-02-18 Richard Earnshaw <rearnsha@arm.com>
9693
9694 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9695 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9696
9df628e0
RE
96972002-02-18 Richard Earnshaw <rearnsha@arm.com>
9698
9699 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9700 * gdbarch.c gdbarch.h: Regenerate.
9701 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9702 function.
9703 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9704 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9705 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9706
9707 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9708 * arm-tdep.c (arm_get_longjmp_target): New function.
9709 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9710 this to a positive value register arm_get_longjmp_target as the
9711 longjmp handler.
9712 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9713 (arm_linux_init_abi): Set up longjmp description in tdep.
9714 * armnbsd-nat.c (get_longjmp_target): Delete.
9715 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9716 description in tdep.
9717 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9718 (get_longjmp_target): Delete declaration.
9719 (GET_LONGJMP_TARGET): Delete.
9720 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9721 (GET_LONGJMP_TARGET): Delete.
9722
57bc8964
KB
97232002-02-17 Kevin Buettner <kevinb@redhat.com>
9724
9725 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9726 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9727 of ``current_gdbarch''.
9728
83d31a92
TT
97292002-02-17 Tom Tromey <tromey@redhat.com>
9730
9731 * cli/cli-cmds.c (compare_strings): New function.
9732 (complete_command): Only print each unique item once.
9733 * completer.h (complete_line): Declare.
9734 * completer.c (complete_line): New function.
9735 (line_completion_function): Use it.
9736
17ef5d92
AC
97372002-02-16 Andrew Cagney <ac131313@redhat.com>
9738
9739 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9740 * gdbarch.h, gdbarch.c: Re-generate.
9741
491b8946
DJ
97422002-02-16 Daniel Jacobowitz <drow@mvista.com>
9743
9744 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9745
97462002-02-16 Daniel Jacobowitz <drow@mvista.com>
9747
9748 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9749 * valops.c (value_arg_coerce): Don't take the address of a reference
9750 to convert an argument to a reference.
9751
dfe7f3ac
CF
97522002-02-15 Christopher Faylor <cgf@redhat.com>
9753
9754 * win32-nat.c (get_image_name): New function.
9755 (handle_load_dll): Use get_image_name function.
9756 (get_child_debug_event): Avoid registering debug events until possibly
9757 execed process is started.
9758 (child_create_inferior): Allow invocation via shell so that command
9759 line redirection, etc. works ok.
9760 (_initialize_inftarg): Add new command: "set shell" to control whether
9761 a shell is used to start a process.
9762
1d33e73a
DJ
97632002-02-15 Daniel Jacobowitz <drow@mvista.com>
9764
9765 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9766 instead of find_register_by_number.
9767 (cannot_store_register): Likewise.
9768
48cd0caa
PM
97692002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9770
aaa38bb5 9771 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9772 fprintf_unfiltered (gdb_stderr, ...).
9773
8656e7d8
DJ
97742002-02-15 Daniel Jacobowitz <drow@mvista.com>
9775
9776 * gdbserver/gdbserver.1: Document --attach.
9777
66e810cd
RE
97782002-02-15 Richard Earnshaw <rearnsha@arm.com>
9779
9780 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9781 descriptions.
9782 * arm-tdep.c (arm_default_arm_le_breakpoint)
9783 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9784 (arm_default_thumb_be_breakpoint): New. Initialize them from
9785 traditional breakpoint defines.
9786 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9787 (arm_gdbarch_init): Initialize new breakpoint variables.
9788 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9789 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9790 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9791 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9792 code out to ...
9793 (arm_netbsd_init_abi_common): ... here; new function.
9794 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9795 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9796 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9797 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9798
97e03143
RE
97992002-02-15 Richard Earnshaw <rearnsha@arm.com>
9800
9801 * arm-tdep.h (enum arm_abi): New enum.
9802 (struct gdbarch_tdep): New structure.
9803 (LOWEST_PC): Provide a default.
9804 (arm_gdbarch_register_os_abi): Declare new function.
9805 * arm-tdep.c (arm_abi_names): New array.
9806 (process_note_abi_tag_sections): New function.
9807 (get_elfosabi): New function.
9808 (arm_gdbarch_register_os_abi): New function.
9809 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9810 support for that ABI has been built in, then call the appropriate
9811 configuration routine. Use gdbarch_num_regs() to get the number
9812 of registers.
9813 (arm_dump_tdep): New function.
9814 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9815 place-holder functions.
9816 (_initialize_arm_tdep): Register them.
9817 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9818
9819 * armnbsd-tdep.c: New file.
9820 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9821 * config/arm/nbsd.mt (TDEPFILES): Add it.
9822 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9823
9824 * armnbsd-nat.c: Include regcache.h.
9825 * Makefile.in (armnbsd-nat.o): Update dependency list.
9826
9827 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9828
ad68be46
DJ
98292002-02-14 Daniel Jacobowitz <drow@mvista.com>
9830
9831 * gdbserver/Makefile.in: Fix typos in target rules.
9832
003d6d1d
DJ
98332002-02-14 Daniel Jacobowitz <drow@mvista.com>
9834
aaa38bb5 9835 Fix part of PR gdb/267.
003d6d1d
DJ
9836 * linespec.c (find_methods): Handle constructors specially for now.
9837
6b230f1b
CV
98382002-02-14 Corinna Vinschen <vinschen@redhat.com>
9839
9840 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9841 handling.
9842 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9843 standard_coerce_float_to_double().
9844
1ea98d12
CF
98452002-02-14 Christopher Faylor <cgf@redhat.com>
9846
9847 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9848 GDBINIT_FILENAME.
9849
dd47e6fd
EZ
98502002-02-14 Elena Zannoni <ezannoni@redhat.com>
9851
9852 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9853 find_variant_by_name, because it confuses the multiarch
9854 framework. Return NULL if there isn't an architecture with the
9855 user supplied name, instead of forcing a different one without
9856 recording the change with the multiarch machinery.
9857 (find_variant_by_name): Delete.
9858
d7e39b9e
PS
98592002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9860
9861 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9862 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9863
76e42a4f
MH
98642002-02-13 Martin M. Hunt <hunt@redhat.com>
9865
aaa38bb5 9866 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9867 print_frame_info_listing_hook, set current_source_symtab.
9868
0a30fbc4
DJ
98692002-02-14 Daniel Jacobowitz <drow@mvista.com>
9870
9871 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9872 and remove unused $(INCLUDE_DIR).
9873 Add regcache.c to OBS.
9874 Add generated register protocol files to clean target.
9875 Update dependencies for new objects, obsolete old target code.
9876
9877 * gdbserver/linux-low.c: Remove all platform-specific code to
9878 new files. Remove various dead code. Update to use regcache
9879 functionality.
9880 * gdbserver/remote-utils.c (fromhex): Add return statement
9881 to quiet warning.
9882 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9883 constant.
9884 (input_interrupt): Add integer parameter to match prototype
9885 of a signal handler.
9886 (outreg): Use register_data ().
9887 (prepare_resume_reply): Use gdbserver_expedite_regs.
9888 * gdbserver/server.c (main): Dynamically allocate own_buf because
9889 PBUFSIZ is no longer constant. Use registers_to_string () and
9890 registers_from_string ().
9891 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9892 for error (), fatal (), and warning (). Update definition of
9893 PBUFSIZ to use regcache functionality. Add include guard.
9894 * gdbserver/utils.c (fatal): Add missing ``const''.
9895 (warning): New function.
9896
9897 * regformats/regdat.sh: Include "regcache.h" in generated files.
9898 Provide init_registers () function.
9899 * regformats/regdef.h: Add prototype for set_register_cache ().
9900 Add include guard.
9901
9902 * gdbserver/linux-arm-low.c: New file.
9903 * gdbserver/linux-i386-low.c: New file.
9904 * gdbserver/linux-ia64-low.c: New file.
9905 * gdbserver/linux-m68k-low.c: New file.
9906 * gdbserver/linux-mips-low.c: New file.
9907 * gdbserver/linux-ppc-low.c: New file.
9908 * gdbserver/linux-sh-low.c: New file.
9909
9910 * gdbserver/regcache.c: New file.
9911 * gdbserver/regcache.h: New file.
9912
9913 * gdbserver/low-linux.c: Removed obsolete file.
9914
4cc841d0
DJ
99152002-02-14 Daniel Jacobowitz <drow@mvista.com>
9916
9917 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9918 * config/i386/linux.mt: Likewise.
9919 * config/ia64/linux.mt: Likewise.
9920 * config/m68k/linux.mh: Likewise.
9921 * config/powerpc/linux.mh: Likewise.
9922 * config/mips/linux.mt: Likewise.
9923
9924 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9925
9926 * config/i386/i386lynx.mh: Mark gdbserver variables
9927 as (currently) obsolete for this target.
9928 * config/i386/nbsd.mt: Likewise.
9929 * config/i386/nbsdelf.mt: Likewise.
9930 * config/m32r/m32r.mt: Likewise.
9931 * config/m68k/m68klynx.mh: Likewise.
9932 * config/m68k/nbsd.mt: Likewise.
9933 * config/m68k/sun3os4.mh: Likewise.
9934 * config/mips/vr5000.mt: Likewise.
9935 * config/ns32k/nbsd.mt: Likewise.
9936 * config/pa/hppabsd.mh: Likewise.
9937 * config/pa/hppaosf.mh: Likewise.
9938 * config/powerpc/nbsd.mt: Likewise.
9939 * config/rs6000/rs6000lynx.mh: Likewise.
9940 * config/s390/s390.mt: Likewise.
9941 * config/s390/s390x.mt: Likewise.
9942 * config/sparc/sparclynx.mh: Likewise.
9943 * config/sparc/sun4os4.mh: Likewise.
9944 * config/i386/x86-64linux.mt: Likewise.
9945 * config/sparc/linux.mh: Likewise.
9946
a85f51e7
DJ
99472002-02-14 Daniel Jacobowitz <drow@mvista.com>
9948
9949 * configure.tgt: Configure gdbserver only for known working
9950 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9951 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9952 SUBDIRS if it is configured. Update comment for ${nativefile}.
9953 * configure: Regenerated.
9954
65554fef
MS
99552002-02-13 Michael Snyder <msnyder@redhat.com>
9956
670a52db
MS
9957 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9958
6dbdc4a3
MS
9959 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9960 (default_gcore_mach): Just return 0, work around a problem in bfd.
9961 (default_gcore_target): OK to return NULL if exec_bfd is null.
9962 (make_mem_sec): Use a cast, avoid a warning.
9963
9964 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 9965 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
9966 sizeof (host pointer) != sizeof (target pointer)).
9967 (procfs_make_note_section): Avoid overflow in psargs string.
9968
aaa38bb5 9969 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
9970 implementation return an error.
9971
99722002-02-13 Rodney Brown <rbrown64@csc.com.au>
9973
9974 * procfs.c (procfs_make_note_section): Provide a default definition
9975 (for alpha-dec-osf4.0f). Fix typos.
9976
1e4d76e7
EZ
99772002-02-13 Elena Zannoni <ezannoni@redhat.com>
9978
9979 * linux-proc.c: Add include of regcache.h.
9980 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9981
b6d1a1d5
AC
99822002-02-13 Andrew Cagney <ac131313@redhat.com>
9983
9984 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
9985 * memattr.c (create_mem_region): Disallow useless empty region.
9986 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 9987 non-overlapping.
b6d1a1d5 9988
6c6ea35e
MC
99892002-02-13 Michael Chastain <mec@shout.net>
9990
9991 * defs.h: Kill CONST_PTR.
9992 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9993 * c-lang.c (c_builtin_types): Likewise.
9994 * ch-lang.c (ch_builtin_types): Likewise.
9995 * f-lang.c (f_builtin_types): Likewise.
9996 * language.c (unknown_builtin_types): Likewise.
9997 * m2-lang.c (m2_builtin_types): Likewise.
9998 * p-lang.c (pascal_builtin_types): Likewise.
9999 * scm-lang.c (c_builtin_types): Likewise.
10000
3e0b0f48
KS
100012002-02-13 Keith Seitz <keiths@redhat.com>
10002
10003 * arm-tdep.h (arm_get_next_pc): Add declaration.
10004
67255d04
RE
100052002-02-13 Richard Earnshaw <rearnsha@arm.com>
10006
10007 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10008 with other related struct-returning functions.
10009 (arm_extract_struct_value_address): New function.
10010 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10011 initialize float_format, double_format and long_double_format as
10012 appropriate to the endianness of the target.
10013 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10014 (arm_use_struct_convention): Delete declaration.
10015 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10016
079777f6
KS
100172002-02-13 Keith Seitz <keiths@redhat.com>
10018
10019 * defs.h (core_addr_to_string_nz): New function.
10020
34588f23
MK
100212002-02-13 Mark Kettenis <kettenis@gnu.org>
10022
10023 Apply missing bits of 2002-01-15 patch.
10024 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10025 (fill_fpregset): Use i387_fill_fsave.
10026
49b563f9
KS
100272002-02-12 Keith Seitz <keiths@redhat.com>
10028
49b563f9
KS
10029 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10030 (core_addr_to_string_nz): New function.
10031
aeb98c60
RE
100322002-02-11 Richard Earnshaw <rearnsha@arm.com>
10033
10034 * arm-linux-nat.c: Really include arm-tdep.h.
10035 * config/arm/tm-linux.h (struct type, struct value): Declare.
10036
65554fef
MS
100372002-02-11 Michael Snyder <msnyder@redhat.com>
10038
10039 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10040 (gcore section): Ifdef for Solaris and Unixware only.
10041 (procfs_do_thread_registers): Unixware needs one lwpstatus
10042 per thread (not one prstatus or pstatus).
10043 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10044 not over all gdb threads. For unixware, call elfcore_write_pstatus
10045 once before iterating over threads.
10046
34e8f22d
RE
100472002-02-11 Richard Earnshaw <rearnsha@arm.com>
10048
10049 * arm-tdep.h: New file.
10050 * arm-tdep.c: Include arm-tdep.h.
10051 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10052 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10053 (arm_print_float_info, arm_register_type, convert_to_extended)
10054 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10055 (arm_extract_return_value, arm_register_name): Make static.
10056 (arm_software_single_step): Similarly. Fix types in declaration.
10057 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10058 (arm_store_return_value, arm_store_struct_return): New functions.
10059 (arm_gdbarch_init): Register the above functions. Also register
10060 call_dummy_start_offset, sizeof_call_dummy_words,
10061 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10062 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 10063 max_register_virtual_size, register_size. Set up
34e8f22d
RE
10064 prologue_cache.saved_regs here, rather than ...
10065 (_initialize_arm_tdep): ... here.
10066 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10067 declarations.
10068 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10069 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10070 (arm_print_float_info, arm_register_type, convert_to_extended)
10071 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10072 (arm_extract_return_value, arm_register_name): Delete declarations.
10073 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10074 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10075 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10076 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10077 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10078 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10079 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10080 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10081 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10082 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10083 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10084 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10085 interface.
10086 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10087 * remote-rdi.c remote-rdp.c: Likewise.
10088 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10089 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10090 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10091 definition.
10092
10093 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10094 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10095 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10096 from non-ARM_ prefixed definitions.
10097 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10098 all uses of above.
10099 * remote-rdi.c remote-rdp.c: Likewise.
10100 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10101
148754e5
RE
101022002-02-11 Richard Earnshaw <rearnsha@arm.com>
10103
10104 * arm-tdep.c (arm_frameless_function_invocation)
10105 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10106 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10107 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10108 (arm_pop_frame, arm_get_next_pc): Make static.
10109 (arm_gdbarch_init): Register above in gdbarch structure.
10110 (arm_read_fp): Renamed from arm_target_read_fp.
10111 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10112 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10113 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10114 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10115 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10116 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10117 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
10118 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10119 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10120 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10121 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 10122
434d2d4f
DJ
101232002-02-10 Daniel Jacobowitz <drow@mvista.com>
10124
10125 * symtab.c (compare_search_syms): New function.
10126 (sort_search_symbols): New function.
10127 (search_symbols): Sort symbols after searching rather than
10128 before.
10129
55241689
AC
101302002-02-10 Andrew Cagney <ac131313@redhat.com>
10131
10132 * NEWS: Linux -> GNU/Linux.
10133
028c194b
AC
101342002-02-10 Andrew Cagney <ac131313@redhat.com>
10135
10136 * gdbarch.sh: For for level one methods, disallow a definition
10137 when partially multi-arched. Add comments explaining rationale.
10138 * gdbarch.h: Re-generate.
10139
6acf50cd
AC
101402002-02-10 Andrew Cagney <ac131313@redhat.com>
10141
10142 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10143 multi-arch partial.
aaa38bb5 10144
50248794
AC
101452002-02-10 Andrew Cagney <ac131313@redhat.com>
10146
10147 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10148 field. Use diff -u.
10149 * gdbarch.c: Re-generate.
10150
c30e0066
AC
101512002-02-10 Andrew Cagney <ac131313@redhat.com>
10152
9b56c5f3 10153 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
10154 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10155 partial.
10156
6e6d6484
AC
101572002-02-10 Andrew Cagney <ac131313@redhat.com>
10158
10159 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10160 multi-arch partial.
10161 (PUSH_ARGUMENTS): Switch to using predefault.
10162 * gdbarch.c: Regenerate.
10163
c203844d
AC
101642002-02-10 Andrew Cagney <ac131313@redhat.com>
10165
10166 * valops.c (PUSH_ARGUMENTS): Delete definition.
10167 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10168 partial. Default to default_push_arguments.
10169 * gdbarch.h, gdbarch.c: Regenerate.
10170
b5a2688f
AC
101712002-02-09 Andrew Cagney <ac131313@redhat.com>
10172
10173 * defs.h (throw_exception): Rename return_to_top_level. Update
10174 comments.
10175 * utils.c (error_stream, internal_verror, quit): Ditto.
10176 * top.c (throw_exception, catcher): Ditto.
10177 * sparclet-rom.c (sparclet_load): Ditto.
10178 * remote.c (interrupt_query, minitelnet): Ditto.
10179 * remote-sds.c (interrupt_query): Ditto.
10180 * remote-mips.c (mips_error, mips_kill): Ditto.
10181 * ocd.c (interrupt_query): Ditto.
10182 * monitor.c (monitor_interrupt_query): Ditto.
10183 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10184 * target.h: Update comment.
aaa38bb5 10185
b5a2688f 10186 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 10187
2fa5c1e0
AC
101882002-02-09 Andrew Cagney <ac131313@redhat.com>
10189
10190 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10191 default_double_format.
10192 * gdbarch.h, gdbarch.c: Re-generate.
10193 * findvar.c (floatformat_unknown): Delete variable definition.
10194 * doublest.h (floatformat_unknown): Delete variable declaration.
10195
da966255
JB
101962002-02-09 Jim Blandy <jimb@redhat.com>
10197
10198 * stabsread.c (read_type): Add code to parse Sun's syntax for
10199 prototyped function types.
10200
123a4891
AC
102012002-02-09 Andrew Cagney <ac131313@redhat.com>
10202
10203 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10204 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10205
fb39c8f3
PS
102062002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10207
10208 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10209 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10210 now _initialize_xcoffsolib gets called again and overrides the
10211 commands from solib.c in a native configuration.
10212
0b87a11d
MK
102132002-02-09 Mark Kettenis <kettenis@gnu.org>
10214
10215 * doublest.c (store_typed_floating): Don't try to return a value.
10216 Fixes PR gdb/290.
10217
bdc2fc72
JB
102182002-02-08 Jim Blandy <jimb@redhat.com>
10219
10220 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10221 is prototyped and has no arguments, print its argument list as
10222 `(void)'.
10223
da69bbcf
CD
102242002-02-08 Chris Demetriou <cgd@broadcom.com>
10225
10226 * MAINTAINERS (write-after-approval): Add myself.
10227 (paper-trail): I've escaped!
aaa38bb5 10228
b69571f5
CF
102292002-02-08 Christopher Faylor <cgf@redhat.com>
10230
10231 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10232 changes.
10233 (_initialize_check_for_gdb_ini): Ditto.
10234
f6871398
MH
102352002-02-08 Martin M. Hunt <hunt@redhat.com>
10236
10237 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10238 xaprintf -> xasprintf.
10239
4e52d31c
PM
102402002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10241
10242 * win32-nat.c: Remove use of printf and sprintf functions.
10243
39bbf761
RE
102442002-02-08 Richard Earnshaw <rearnsha@arm.com>
10245
10246 * arm-tdep.c (arm_frame_chain_valid): Make static.
10247 (arm_push_arguments): Likewise.
10248 (arm_gdbarch_init): New function.
10249 (_initialize_arm_tdep): Call it.
10250 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10251 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10252 (FRAME_CHAIN_VALID): Delete.
10253 (arm_frame_chain_valid): Delete declaration.
10254 (PUSH_ARGUMENTS): Delete.
10255 (arm_push_arguments): Delete declaration.
10256 (CALL_DUMMY_P): Delete.
10257
9c9532c9
CV
102582002-02-08 Andrew Cagney <ac131313@redhat.com>
10259 Corinna Vinschen <vinschen@redhat.com>
10260
10261 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10262 on builtin float types.
10263
4e8f7a8b
DJ
102642002-02-08 Daniel Jacobowitz <drow@mvista.com>
10265
10266 * utils.c: Include <curses.h> before "bfd.h".
10267 * tui/tui-hooks.c: Likewise.
10268 * tui/tui.c: Likewise.
10269 * tui/tuiCommand.c: Likewise.
10270 * tui/tuiData.c: Likewise.
10271 * tui/tuiDataWin.c: Likewise.
10272 * tui/tuiDisassem.c: Likewise.
10273 * tui/tuiGeneralWin.c: Likewise.
10274 * tui/tuiIO.c: Likewise.
10275 * tui/tuiLayout.c: Likewise.
10276 * tui/tuiRegs.c: Likewise.
10277 * tui/tuiSource.c: Likewise.
10278 * tui/tuiSourceWin.c: Likewise.
10279 * tui/tuiStack.c: Likewise.
10280 * tui/tuiWin.c: Likewise.
10281
cd4bffcf
EZ
102822002-02-07 Elena Zannoni <ezannoni@redhat.com>
10283
10284 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10285 to include space for pseudoregs as well. Update loops accordingly.
10286 (sh_fp_frame_init_saved_regs): Ditto.
10287 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10288
26806ce2
AC
102892002-02-07 Andrew Cagney <ac131313@redhat.com>
10290
10291 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10292 Add Richard Earnshaw to Arm maintainers.
10293
97fdab62
AC
102942002-02-07 Andrew Cagney <ac131313@redhat.com>
10295
a6b98203
AC
10296 * defs.h (warning_begin): Delete declaration.
10297
97fdab62
AC
10298 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10299 Delete macro.
10300
78b29b40
MS
103012002-02-07 Michael Snyder <msnyder@redhat.com>
10302
aaa38bb5 10303 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
10304 Logic bug, remove misplaced else.
10305
d8849953
KD
103062002-02-07 Klee Dienes <klee@apple.com>
10307
10308 * fork-inferior.c (fork_inferior): Add '!' to the list of
10309 characters that need to be quoted when building a string for the
10310 shell. Quote '!' specifically with a backslash, since CSH chokes
10311 when trying to evaluate "str!str".
aaa38bb5 10312
095778a0
NC
103132002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10314
10315 * rdi-share/host.h: Only provide a typedef for bool if it is not
10316 defined.
10317
1900040c
MS
103182002-02-04 Michael Snyder <msnyder@redhat.com>
10319
10320 * breakpoint.h (enum bptype): Add new overlay event bp type.
10321 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 10322
1900040c
MS
10323 * breakpoint.c (create_internal_breakpoint): New function.
10324 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10325 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10326 (create_thread_event_breakpoint): Ditto.
10327 (create_solib_event_breakpoint): Ditto.
10328 (create_overlay_event_breakpoint): New function.
10329 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10330 (update_breakpoints_after_exec): Delete and re-initialize
10331 overlay event breakpoints after an exec. Add FIXME comment
10332 about longjmp breakpoint.
10333 (print_it_typical): Ignore overlay event breakpoints.
10334 (print_one_breakpoint): Ditto.
10335 (mention): Ditto.
10336 (bpstat_what): Do not stop for overlay event breakpoints.
10337 (delete_breakpoint): Don't delete overlay event breakpoints.
10338 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10339 (breakpoint_re_set): Re-create overlay event breakpoint.
10340
10341 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10342 (overlay_manual_command): Disable overlay breakpoints.
10343 (overlay_off_command): Disable overlay breakpoints.
10344
082fc60d
RE
103452002-02-06 Richard Earnshaw <rearnsha@arm.com>
10346
10347 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10348 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10349 to here from config/tm-arm.h.
10350 (coff_sym_is_thumb): Make static.
10351 (arm_elf_make_msymbol_special): New function.
10352 (arm_coff_make_msymbol_special): New function.
10353 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10354 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10355 (coff_sym_is_thumb): Delete declaration.
10356 (arm_elf_make_msymbol_special): Declare.
10357 (arm_coff_make_msymbol_special): Declare.
10358 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10359 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10360
039c5766
RE
103612002-02-06 Richard Earnshaw <rearnsha@arm.com>
10362
10363 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10364
103652002-02-06 Richard Earnshaw <rearnsha@arm.com>
10366
10367 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10368 * gdbarch.c gdbarch.h: Regenerate.
10369 * arch-utils.c (default_print_float_info): New function.
10370 * arch-utils.h (default_print_float_info): Prototype it.
10371 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10372 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10373 (PRINT_FLOAT_INFO): Document it.
10374
10375 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10376 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10377 (PRINT_FLOAT_INFO): Define.
10378
58fa08f0
PM
103792002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10380
aaa38bb5 10381 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10382 Add typecast to sprintf argument to suppress a warning.
10383
7393af7c
PM
103842002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10385
58fa08f0 10386 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10387 to allow easier handling of pass state.
10388 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10389 that gives exception name and address.
10390 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10391 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10392 exceptions added.
aaa38bb5
AJ
10393 (child_continue): Correctly report continue_status.
10394 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10395 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10396 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10397 the exception should be passed to debuggee or not.
10398
6af4589c
MS
103992002-02-05 Michael Snyder <msnyder@redhat.com>
10400
10401 * regcache.c (fetch_register): Call target_fetch_register
10402 only if we don't call FETCH_PSEUDO_REGISTER.
10403 (store_register): Call target_store_register only if we
10404 don't call STORE_PSEUDO_REGISTER.
10405
a2cf933a
EZ
104062002-02-05 Elena Zannoni <ezannoni@redhat.com>
10407
10408 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10409 ELF_MAKE_MSYMBOL_SPECIAL.
10410 * gdbarch.c, gdbarch.h: Regenerate.
10411 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10412 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10413 * elfread.c (elf_symtab_read): Compile use of
10414 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10415 multiarched.
10416 * coffread.c (coff_symtab_read): Ditto, for
10417 COFF_MAKE_MSYMBOL_SPECIAL.
10418
6bb7be43
JB
104192002-02-05 Jim Blandy <jimb@redhat.com>
10420
10421 * solib-svr4.c (svr4_truncate_ptr): New function.
10422 (svr4_relocate_section_addresses): Do the address arithmetic with
10423 the appropriate truncation for target addresses, even when
10424 CORE_ADDR is larger than a target address.
10425
e18651ec
DJ
104262002-02-05 Daniel Jacobowitz <drow@mvista.com>
10427
10428 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10429 to (int *).
10430
6b2725be
DJ
104312002-02-05 Daniel Jacobowitz <drow@mvista.com>
10432
10433 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10434 code.
10435
fca9e603
DJ
104362002-02-05 Daniel Jacobowitz <drow@mvista.com>
10437
10438 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10439
6c537a52
DJ
104402002-02-05 Daniel Jacobowitz <drow@mvista.com>
10441
10442 * gdbserver/linux-low.c: Remove unused include files.
10443
d844cde6
DJ
104442002-02-05 Daniel Jacobowitz <drow@mvista.com>
10445
10446 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10447 (read_inferior_memory): Use it.
10448 (write_inferior_memory): Likewise.
10449
d07c63e7
DJ
104502002-02-05 Daniel Jacobowitz <drow@mvista.com>
10451
10452 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10453 grubbing through sys_errlist.
10454
da6d8c04
DJ
104552002-02-05 Daniel Jacobowitz <drow@mvista.com>
10456
10457 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10458
5b421780
PM
104592002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10460 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10461
9f60d481
AC
104622002-02-04 Andrew Cagney <ac131313@redhat.com>
10463
10464 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10465 (do_sfunc, set_cmd_sfunc): New functions.
10466
10467 * command.h (struct cmd_list_element): Add field func.
10468 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10469 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10470 * cli/cli-decode.h: Ditto.
10471
10472 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10473 (help_all, help_cmd_list): Ditto.
10474 (find_cmd, complete_on_cmdlist): Ditto.
10475 * top.c (execute_command): Ditto.
10476
10477 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10478 function.sfunc.
10479
10480 * infcmd.c (notice_args_read): Fix function signature.
10481
10482 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10483 * cli/cli-decode.c (add_set_cmd): Ditto.
10484 * utils.c (initialize_utils): Ditto.
10485 * maint.c (_initialize_maint_cmds): Ditto.
10486 * infrun.c (_initialize_infrun): Ditto.
10487 * demangle.c (_initialize_demangler): Ditto.
10488 * remote.c (add_packet_config_cmd): Ditto.
10489 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10490 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10491 * proc-api.c (_initialize_proc_api): Ditto.
10492 * kod.c (_initialize_kod): Ditto.
10493 * valprint.c (_initialize_valprint): Ditto.
10494 * top.c (init_main): Ditto.
10495 * infcmd.c (_initialize_infcmd): Ditto.
10496 * corefile.c (_initialize_core): Ditto.
10497 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10498 * arch-utils.c (initialize_current_architecture): Ditto.
10499 (_initialize_gdbarch_utils): Ditto.
10500 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10501
10502 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10503 * wince.c (_initialize_inftarg): Ditto.
10504 * symfile.c (_initialize_symfile): Ditto.
10505 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10506 * language.c (_initialize_language): Ditto.
10507 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10508
f9ba0717
MS
105092002-02-04 Michael Snyder <msnyder@redhat.com>
10510
10511 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10512
0c74b2a7
DJ
105132002-02-04 Daniel Jacobowitz <drow@mvista.com>
10514
10515 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10516 Add rules for building the register data files.
10517
c638789f
DJ
105182002-02-04 Daniel Jacobowitz <drow@mvista.com>
10519
10520 * regformats/regdat.sh: Add braces to the definition of
10521 expedite_regs_${arch}.
10522
db253027
DJ
105232002-02-04 Daniel Jacobowitz <drow@mvista.com>
10524
10525 * regformats/regdef.h (struct reg): Add comment describing the
10526 requirements for offset and size fields.
10527
206be19c
AS
105282002-02-04 Andreas Schwab <schwab@suse.de>
10529
10530 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10531 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10532
181c1381
RE
105332002-02-04 Richard Earnshaw <rearnsha@arm.com>
10534
10535 * gdbarch.sh (copyright): Update years in generated header.
10536 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10537 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10538 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10539 * dbxread.c: Likewise.
10540 * dwarfread.c: Likewise.
10541 * elfread.c: Likewise.
10542 * somread.c: Likewise.
10543
10544 * arm-tdep.c (arm_smash_text_address): New function.
10545 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10546
fa4ba8da
PM
105472002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10548
10549 Add support for hardware watchpoints on win32 native.
aaa38bb5 10550 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10551 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10552 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10553 of debug registers.
10554 (debug_registers_changed): New variable. Reflects when debug registers
10555 are changed and need to be written to inferior.
aaa38bb5 10556 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10557 was set, used when new threads are created.
10558 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10559 i386-nat code.
10560 (thread_rec): Set dr array if id is the thread of current_event .
10561 (child_continue, child_resume): Change the debug registers for all
10562 threads if debug_registers_changed.
10563 (child_add_thread): Change the debug registers if debug_registers_used.
10564 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10565 Link nm.h to new nm-cygwin.h file.
10566 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10567 of hardware registers.
10568
a73c86fb
AC
105692002-02-03 Andrew Cagney <ac131313@redhat.com>
10570
10571 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10572 Restore behavour broken by 2002-01-20 Andrew Cagney
10573 <ac131313@redhat.com> IEEE_FLOAT removal.
10574
acf5ed49
DJ
105752002-02-03 Daniel Jacobowitz <drow@mvista.com>
10576
10577 * c-valprint.c (c_val_print): Pass a proper valaddr to
10578 cp_print_class_method.
10579 * valops.c (search_struct_method): If there is only one method
10580 and args is NULL, return that method.
10581
493d28d5
DJ
105822002-02-03 Daniel Jacobowitz <drow@mvista.com>
10583
10584 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10585 accessing tag_name directly.
10586
7495dfdb
DJ
105872002-02-03 Daniel Jacobowitz <drow@mvista.com>
10588
10589 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10590 of accessing tag_name directly.
10591
dd6bda65
DJ
105922002-02-03 Daniel Jacobowitz <drow@mvista.com>
10593
10594 PR gdb/280
10595 * gdbtypes.c (replace_type): New function.
10596 * gdbtypes.h (replace_type): Add prototype.
10597 * stabsread.c (read_type): Use replace_type.
10598
88fe217c
RE
105992002-02-03 Richard Earnshaw <rearnsha@arm.com>
10600
10601 * Makefile.in (memattr.o): Add missing dependencies rule.
10602
e5d66720
PS
106032002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10604
10605 * breakpoint.c (break_at_finish_command): Really export.
10606 (break_at_finish_at_depth_command): Ditto.
10607 (tbreak_at_finish_command): Ditto.
10608 * hppa-tdep.c: Include completer.h.
10609 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10610 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10611
fffee0be
AC
106122002-02-01 Andrew Cagney <ac131313@redhat.com>
10613
10614 * utils.c (do_write): New function.
10615 (error_stream): Rewrite combining the code from error_begin and
10616 verror.
10617 (verror): Rewrite using error_stream.
10618 (error_begin): Delete function.
10619
255e7dbf
AC
106202002-02-01 Andrew Cagney <ac131313@redhat.com>
10621
10622 * utils.c (error_begin): Make static.
10623 * defs.h (error_begin): Delete declaration.
10624
10625 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10626 (decode_line_1): Use cplusplus_error instead of error_begin,
10627 cplusplus_hint and return_to_top_level.
10628 * coffread.c (coff_symfile_read): Use error instead of error_begin
10629 and return_to_top_level.
10630 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10631
ddfe3c15
AC
106322002-02-01 Andrew Cagney <ac131313@redhat.com>
10633
10634 * language.h (type_error, range_error): Make string parameter
10635 constant.
10636 * language.c (warning_pre_print): Delete extern declaration.
10637 * dwarfread.c (warning_pre_print): Ditto.
10638 * language.c (type_error, range_error): Rewrite to use verror and
10639 vwarning instead of warning_begin.
10640
03ac34d5
MS
106412002-02-01 Michael Snyder <msnyder@redhat.com>
10642
261c4ca2
MS
10643 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10644 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10645
e00d1dc8
AC
106462002-02-01 Andrew Cagney <ac131313@redhat.com>
10647
10648 * command.h (NO_FUNCTION): Delete macro.
10649 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10650 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10651 * tracepoint.c (_initialize_tracepoint): Ditto.
10652 * cli/cli-decode.c (add_set_cmd): Ditto.
10653 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10654
76b79d6e
DJ
106552002-02-01 Daniel Jacobowitz <drow@mvista.com>
10656
10657 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10658 Update ``this'' pointer when calling virtual functions.
10659
799f9e91
MS
106602002-02-01 Michael Snyder <msnyder@redhat.com>
10661
c7bd442c 10662 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10663 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10664
3cf384d4
DJ
106652002-02-01 Daniel Jacobowitz <drow@mvista.com>
10666
10667 * regformats/reg-arm.dat: New file.
10668 * regformats/reg-i386.dat: New file.
10669 * regformats/reg-ia64.dat: New file.
10670 * regformats/reg-m68k.dat: New file.
10671 * regformats/reg-mips.dat: New file.
10672 * regformats/reg-ppc.dat: New file.
10673 * regformats/reg-sh.dat: New file.
10674 * regformats/regdef.h: New file.
10675 * regformats/regdat.sh: New file.
10676
0defa245
RE
106772002-02-01 Richard Earnshaw <reanrsha@arm.com>
10678
10679 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10680 (arm_frame_args_address, arm_frame_locals_address): New functions.
10681 (arm_frame_num_args): New function.
10682 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10683 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10684 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10685
405f26e6
MS
106862002-01-31 Michael Snyder <msnyder@redhat.com>
10687
502fd408
MS
10688 * breakpoint.c (break_at_finish_command): Export.
10689 (break_at_finish_at_depth_command): Export.
10690 (tbreak_at_finish_command): Export.
d6020d45 10691 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 10692 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 10693 "txbreak" commands, which are HPPA specific.
502fd408 10694
7d35e135
MS
10695 * printcmd.c (disassemble_command): Remove an ancient
10696 artifact of an old merge.
10697
aaa38bb5 10698 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10699 Define enum constant values for overlay mode.
10700 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10701 (overlay_is_mapped, overlay_auto_command,
10702 overlay_manual_command): Ditto.
d874f1e2 10703
aaa38bb5
AJ
10704 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10705 breakpoint_here_p, breakpoint_inserted_here_p,
10706 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10707 describe_other_breakpoints, check_duplicates, clear_command):
10708 Coding standard fixes.
10709
8add0441 10710 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10711 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10712 code: check bfd SEC_READONLY flag for section.
10713
e351066e
AC
107142002-01-31 Andrew Cagney <ac131313@redhat.com>
10715
7d35e135 10716 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10717
8a48e967
DJ
107182002-01-30 Daniel Jacobowitz <drow@mvista.com>
10719
10720 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10721 data symbols, since we search based on textlow and texthigh.
10722 (find_pc_sect_symtab): Likewise.
10723
f5a96129
AC
107242002-01-30 Andrew Cagney <ac131313@redhat.com>
10725
10726 * defs.h (vwarning): Declare.
f5a96129
AC
10727 * utils.c (vwarning): New function.
10728 (warning): Call vwarning.
10729 (warning_begin): Delete function.
10730
10731 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10732 the warning message.
10733 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10734 warning_begin.
10735
cefd4ef5
MS
107362002-01-30 Michael Snyder <msnyder@redhat.com>
10737
1a703748
MS
10738 * NEWS: Mention "set trust-readonly-sections" command.
10739 Mention generate-core-file command.
cefd4ef5 10740
3a11626d
MS
107412002-01-15 Michael Snyder <msnyder@redhat.com>
10742
10743 * target.c: New command, "set trust-readonly-sections on".
10744 (do_xfer_memory): Honor the suggestion to trust readonly sections
10745 by reading them from the object file instead of from the target.
10746 (initialize_targets): Register command "set trust-readonly-sections".
10747
d1c7e53b
AC
107482002-01-29 Andrew Cagney <ac131313@redhat.com>
10749
10750 * parse.c (target_map_name_to_register): Simplify, search regs and
10751 pseudo-regs using a single loop.
10752
e2c9a72c
AC
107532002-01-30 Andrew Cagney <ac131313@redhat.com>
10754
10755 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10756
69824b4e
MK
107572002-01-15 Rodney Brown <rbrown64@csc.com.au>
10758
10759 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10760 * config/i386/i386v42mp.mh: Add i387-nat.o .
10761 * i386v4-nat.c: Include i387-nat.h.
10762 (supply_fpregset): Use i387_supply_fsave.
10763 (fill_fpregset): Use i387_fill_fsave.
10764
6eb69eab
RE
107652002-01-30 Richard Earnshaw <rearnsha@arm.com>
10766
10767 * arm-tdep.c (arm_call_dummy_words): Define.
10768 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10769 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10770 (CALL_DUMMY_WORDS): Define.
10771 (arm_call_dummy_words): Declare.
10772 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10773 (arm_linux_call_dummy_words): Declare.
10774
9852326a
AS
107752002-01-30 Andreas Schwab <schwab@suse.de>
10776
10777 * m68klinux-nat.c: Fix last change to use regcache_collect
10778 instead of referencing registers[] directly.
10779
977a3030
AC
107802002-01-29 Andrew Cagney <ac131313@redhat.com>
10781
10782 * parse.c (target_map_name_to_register): Delete code wrapped in
10783 #ifdef REGISTER_NAME_ALIAS_HOOK.
10784
2076c72b
MS
107852002-01-28 Michael Snyder <msnyder@redhat.com>
10786
10787 * regcache.c (legacy_read_register_gen): Need to be able to
10788 read pseudo-register as well as real register.
10789 (legacy_write_register_gen): Ditto.
10790
8fcc723b
AC
107912002-01-28 Andrew Cagney <ac131313@redhat.com>
10792
10793 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10794 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10795 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10796 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10797 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10798 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10799 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10800 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10801 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10802 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10803 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10804 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10805 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10806 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10807 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10808 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10809 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10810 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10811 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10812 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10813
afe64c1a
AC
108142002-01-28 Andrew Cagney <ac131313@redhat.com>
10815
10816 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10817 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10818 (initialize_current_architecture): Update target_byte_order using
10819 information from BFD.
aaa38bb5 10820 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10821 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10822
75bc7ddf
AC
108232002-01-28 Andrew Cagney <ac131313@redhat.com>
10824
10825 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10826 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10827
10828 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10829 #ifdef INVALID_FLOAT.
10830 * infcmd.c (do_registers_info): Ditto.
10831 * values.c (unpack_double): Ditto. Add comment.
10832
10833 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10834 already commented out.
10835
0280a90a
AS
108362002-01-26 Andreas Schwab <schwab@suse.de>
10837
10838 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10839 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10840 registers and add support for PTRACE_GETREGS.
10841
7072a954
AC
108422002-01-24 Andrew Cagney <ac131313@redhat.com>
10843
10844 GDB 5.1.1 released from 5.1 branch.
10845 * NEWS: Add 5.1.1 news.
10846 * README: Sync with 5.1 branch.
10847
86f902e0
FF
108482002-01-23 Fred Fish <fnf@redhat.com>
10849
10850 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10851 stabstring on initial malloc. Reallocing will copy it for us,
10852 if necessary.
10853
8af51c36
EZ
108542002-01-23 Elena Zannoni <ezannoni@redhat.com>
10855
aaa38bb5 10856 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
10857 (HFILES_NO_SRCDIR): Remove hpread.h.
10858 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10859 (hpread.o): Update dependencies.
10860 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10861
10862 * hp-psymtab-read.c: Remove file.
10863 * hp-symtab-read.c: Remove file.
10864 * hpread.h: Remove file.
10865
10866 * hpread.c: Merge all contents of hp-psymtab-read.c,
10867 hp-symtab-read.c and hpread.h into this file, as it was prior to
10868 January 1999.
10869
10870 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10871 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10872 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10873 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10874
dc5cfeb6
EZ
108752002-01-23 Elena Zannoni <ezannoni@redhat.com>
10876
10877 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10878 fill_gregset): Call gdbarch_tdep() just once, assign result to
10879 variable and use that, instead of calling the function several
10880 times.
10881
ea87b71b
AO
108822002-01-24 Alexandre Oliva <aoliva@redhat.com>
10883
10884 * configure.host: Accept sparcv9 as alias for sparc64.
10885 * configure.tgt: Likewise.
10886
13fc0c2f
KB
108872002-01-22 Kevin Buettner <kevinb@redhat.com>
10888
10889 * solib-aix5.c (build_so_list_from_mapfile)
10890 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10891 arguments is not reversed.
10892 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10893 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10894
7bd872fe
EZ
108952002-01-22 Elena Zannoni <ezannoni@redhat.com>
10896
10897 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10898 modified version of obsolete sh_fetch_pseudo_register.
10899 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10900 (sh4_register_read): New function.
10901 (sh_pseudo_register_write): New function. Renamed and modified
10902 version of obsolete sh_store_pseudo_register.
10903 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10904 (sh4_register_write): New function.
10905 (sh_gdbarch_init): Remove setting of gdbarch function
10906 fetch_pseudo_register and store_pseudo_register. Remove setting of
10907 register_convert_to_raw, register_convert_to_virtual,
10908 register_convertible.
10909 (sh_sh4_register_convertible): Delete. No longer needed. All is
10910 taken care by architecture specific functions
10911 register_read/register_write.
10912 (sh_sh4_register_convert_to_virtual): Make static.
10913 (sh_sh4_register_convert_to_raw): Ditto.
10914
069e84fd
AC
109152002-01-22 Andrew Cagney <ac131313@redhat.com>
10916
10917 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10918 (floatformat_is_nan, floatformat_mantissa): Ditto.
10919
10920 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10921 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10922 builtin_type_ieee_double_little,
10923 builtin_type_ieee_double_littlebyte_bigword,
10924 builtin_type_m68881_ext, builtin_type_i960_ext,
10925 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10926 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10927 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10928 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10929
211a4f69
CV
109302002-01-22 Corinna Vinschen <vinschen@redhat.com>
10931
10932 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10933 parameter. Set frameless flag if it exists and depended of
10934 whether the scanned function is frameless or not.
10935 (xstormy16_skip_prologue): If function is frameless, return
10936 result of xstormy16_scan_prologue().
10937 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10938 call.
10939
f81353e4
EZ
109402002-01-21 Elena Zannoni <ezannoni@redhat.com>
10941
10942 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10943 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10944 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10945 sh_sh4_register_byte, sh_sh4_register_raw_size,
10946 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10947 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10948 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10949 sh_store_pseudo_register, sh_do_pseudo_register): Call
10950 gdbarch_tdep() just once, assign result to variable and use that,
10951 instead of calling the function several times.
10952
63c73a17
MK
109532002-01-20 Mark Kettenis <kettenis@gnu.org>
10954
10955 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10956 macros instead of LAST_FPU_CTRL_REGNUM.
10957 (store_register): Likewise.
10958
39ad761d
JB
109592002-01-21 Jim Blandy <jimb@redhat.com>
10960
10961 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10962 is up-to-date before running the program, not just when a program
10963 exits.
10964
3d74b771
FF
109652002-01-21 Fred Fish <fnf@redhat.com>
10966
10967 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10968 when we have found all instructions we are looking for.
10969
966fbf70
RE
109702002-01-21 Richard Earnshaw <rearnsha@arm.com>
10971
10972 * arm-tdep.c (arm_register_name): New function.
10973 (arm_registers_names): Make static.
10974 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10975 (arm_register_name): Declare.
10976 (REGISTER_NAME): Use it.
10977
c3b4394c
RE
109782002-01-21 Richard Earnshaw <rearnsha@arm.com>
10979 Kevin Buettner <kevinb@redhat.com>
10980
10981 Convert arm targets to new FRAME interface.
10982 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10983 (arm_frame_find_save_regs): Delete.
10984 (arm_frame_init_saved_regs): New.
10985 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10986 Allocate extra_info as required. Convert all uses of fsr.regs
10987 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10988 to use extra_info.
10989 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10990 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10991 (check_prologue_cache, save_prologue_cache): Likewise.
10992 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10993 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10994 (FRAME_FIND_SAVED_REGS): Delete.
10995 (arm_frame_find_saved_regs): Delete prototype.
10996 (arm_frame_init_saved_regs): New prototype.
10997 (FRAME_INIT_SAVED_REGS): Define.
10998
61d99182
AC
109992002-01-20 Andrew Cagney <ac131313@redhat.com>
11000
11001 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11002
6aaea291
AC
110032002-01-20 Andrew Cagney <ac131313@redhat.com>
11004
11005 From Jeff Law <law@redhat.com>:
11006 * infttrace.c: Include <sys/pstat.h>.
11007 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11008 exec file if the ttrace equivalent fails.
11009
15f698d2
AC
110102002-01-20 Andrew Cagney <ac131313@redhat.com>
11011
11012 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11013 (closeLogFile): Ditto.
11014
f86ddd7c
MC
110152002-01-20 Michael Chastain <mec@shout.net>
11016
11017 * top.c (print_gdb_version): Bump copyright year to 2002.
11018
904507ce
AC
110192002-01-20 Andrew Cagney <ac131313@redhat.com>
11020
11021 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11022 Zannoni and Eli Zaretskii.
11023
d7f0b9ce
DJ
110242002-01-20 Daniel Jacobowitz <drow@mvista.com>
11025
11026 * buildsym.c: Update copyright years.
11027 * c-typeprint.c: Likewise.
11028 * dwarf2read.c: Likewise.
11029 * f-typeprint.c: Likewise.
11030 * gdbtypes.c: Likewise.
11031 * gdbtypes.h: Likewise.
11032 * hp-symtab-read.c: Likewise.
11033 * hpread.c: Likewise.
11034 * mdebugread.c: Likewise.
11035 * p-typeprint.c: Likewise.
11036
3fd3d7d2
AC
110372002-01-20 Andrew Cagney <ac131313@redhat.com>
11038
11039 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11040 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11041 byte-order selectable.
11042 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11043 * arch-utils.c: Ditto.
11044 (set_endian): Ditto.
11045 (set_endian_from_file): Ditto.
11046 * gdbserver/low-sim.c (create_inferior): Ditto.
11047 * gdbarch.sh: Ditto.
11048 * gdbarch.h: Re-generate.
aaa38bb5
AJ
11049 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11050 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11051 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11052 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11053 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11054 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11055 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
11056 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11057 macro definition.
11058 * config/mips/tm-wince.h: Remove #undef of macro
11059 TARGET_BYTE_ORDER_SELECTABLE.
11060 * config/sh/tm-wince.h: Ditto.
11061
b02dede2
DJ
110622002-01-20 Daniel Jacobowitz <drow@mvista.com>
11063
11064 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11065 member function fields. Add accessor macro
11066 TYPE_FN_FIELD_ARTIFICIAL.
11067 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11068 * c-typeprint.c (c_type_print_base): Skip artificial member
11069 functions.
11070
c3643761
DJ
110712002-01-20 Daniel Jacobowitz <drow@mvista.com>
11072
11073 * f-typeprint.c: Delete unused function f_type_print_args.
11074 * p-typeprint.c: Delete unused function pascal_type_print_args.
11075
8176bb6d
DJ
110762002-01-20 Daniel Jacobowitz <drow@mvista.com>
11077
11078 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11079 comment. Add ``artificial'' to ``union field_location''.
11080
11081 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11082
11083 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11084 * mdebugread.c (parse_symbol): Likewise.
11085 * stabsread.c (define_symbol): Likewise.
11086 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11087 initializing TYPE_FIELD_BITPOS to n (obsolete).
11088 (hpread_doc_function_type): Likewise.
11089 * hpread.c (hpread_function_type): Likewise.
11090
7fd60527
AC
110912002-01-20 Andrew Cagney <ac131313@redhat.com>
11092
11093 * configure.in (host_makefile_frag): Only require a host makefile
11094 fragment when a native build.
11095 * configure: Re-generate.
11096
c2f05ac9
AC
110972002-01-20 Andrew Cagney <ac131313@redhat.com>
11098
11099 * doublest.h (floatformat_from_type): Declare.
11100 * doublest.c (floatformat_from_type): New function.
11101 (convert_typed_floating): Use.
11102
11103 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11104 call to function floatformat_from_type.
11105
11106 * gdbarch.sh (IEEE_FLOAT): Delete.
11107 * gdbarch.h, gdbarch.c: Re-generate.
11108 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11109 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11110 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11111 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11112 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11113 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11114 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11115 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11116 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11117 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11118 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
11119 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11120
11121 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11122 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11123 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11124 * sh-tdep.c (sh_gdbarch_init): Ditto.
11125 * mips-tdep.c (mips_gdbarch_init): Ditto.
11126 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11127 * cris-tdep.c (cris_gdbarch_init): Ditto.
11128
abf22e64
AJ
111292002-01-20 Jiri Smid <smid@suse.cz>
11130
11131 * configure.host, configure.tgt: Support x86-64.
11132 * NEWS: Note new target x86-64.
11133
b7c4cbf8
AJ
11134 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11135 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11136 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11137 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11138 x86-64-linux-nat.o): Fix dependencies.
11139
82600034
AC
111402002-01-19 Andrew Cagney <ac131313@redhat.com>
11141
11142 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11143 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11144 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11145 * config/sparc/xm-sun4os4.h: Delete file.
11146 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 11147
bbe5c628
AC
111482002-01-19 Andrew Cagney <ac131313@redhat.com>
11149
11150 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11151 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11152 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11153 * config/i386/i386lynx.mh (XM_FILE): Delete.
11154 * config/rs6000/xm-rs6000ly.h: Delete file.
11155 * config/sparc/xm-sparclynx.h: Delete file.
11156 * config/m68k/xm-m68klynx.h: Delete file.
11157 * config/i386/xm-i386lynx.h: Delete file.
11158 * config/xm-lynx.h: Delete file.
11159 * config/djgpp/fnchange.lst: Update.
11160
f8453e34
JT
111612002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11162
11163 * alpha-tdep.c (alpha_register_byte): New function.
11164 (alpha_register_raw_size): Ditto.
11165 (alpha_register_virtual_size): Ditto.
11166 (alpha_skip_prologue_internal): Renamed from
11167 alpha_skip_prologue.
11168 (alpha_skip_prologue): New version that calls
11169 alpha_skip_prologue_internal.
11170 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11171 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11172 second argument from alpha_skip_prologue.
11173 (REGISTER_BYTE): Use alpha_register_byte.
11174 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11175 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11176 (FRAMELESS_FUNCTION_INVOCATION): Use
11177 generic_frameless_function_invocation_not.
11178 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11179 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11180
52d9e613
AC
111812002-01-19 Andrew Cagney <ac131313@redhat.com>
11182
11183 * config/mips/xm-news-mips.h: Delete file.
11184 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11185
11186 * config/m88k/xm-m88k.h: Delete file.
11187 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11188 * config/m88k/xm-delta88v4.h: Ditto.
11189 * config/m88k/xm-delta88.h: Ditto.
11190
11191 * config/alpha/xm-fbsd.h: Delete file.
11192 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11193
11194 * config/sparc/xm-sparc.h: Delete file.
11195 * Makefile.in (xm-sun4os4.h): Delete dependency.
11196 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11197 * config/sparc/xm-sun4os4.h: Ditto.
11198 * config/sparc/xm-linux.h: Ditto.
11199
11200 * config/i386/xm-windows.h: Delete file.
11201
2d1b2124
AC
112022002-01-19 Andrew Cagney <ac131313@redhat.com>
11203
11204 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11205 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11206
ee1f65f0
JT
112072002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11208
11209 * alpha-tdep.c (alpha_call_dummy_words): New.
11210 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11211 (CALL_DUMMY_P): Define.
11212 (CALL_DUMMY_WORDS): Define.
11213 (SIZEOF_CALL_DUMMY_WORDS): Define.
11214
98081e55
PB
112152002-01-19 Per Bothner <per@bothner.com>
11216
11217 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11218 isn't NULL, which can happen with some gcj-3.x-produced code.
11219
0d056799
JT
112202002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11221
11222 * alpha-tdep.c (alpha_register_virtual_type): New function.
11223 (alpha_init_frame_pc_first): Ditto.
11224 (alpha_fix_call_dummy): Ditto.
11225 (alpha_store_struct_return): Ditto.
11226 (alpha_extract_struct_value_address): Ditto.
11227 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11228 alpha_register_virtual_type.
11229 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11230 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11231 alpha_extract_struct_value_address.
11232 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11233 (INIT_FRAME_PC): Use init_frame_pc_noop.
11234 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11235
4604bcad
MK
112362002-01-19 Mark Kettenis <kettenis@gnu.org>
11237
11238 * i386gnu-nat.c: Include "i386-tdep.h".
11239 (fetch_fpregs): Simplify code dealing with uninitialized floating
11240 point states such that it doesn't require FP7_REGNUM.
11241
140f9984
JT
112422002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11243
abf22e64
AJ
11244 * alpha-tdep.c (frame_extra_info): New.
11245 (alpha_find_saved_regs): Make static. Use
140f9984
JT
11246 frame->extra_info.
11247 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
11248 (alpha_frame_saved_pc): Use frame->extra_info.
11249 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11250 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
11251 (init_extra_frame_info): Rename to...
11252 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 11253 (alpha_print_extra_frame_info): New function.
140f9984
JT
11254 (alpha_frame_locals_address): Ditto.
11255 (alpha_frame_args_address): Ditto.
abf22e64 11256 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
11257 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11258 alpha_frame_args_address.
abf22e64 11259 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 11260 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
11261 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11262 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
11263 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11264 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11265
d734c450
JT
112662002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11267
11268 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11269 (alpha_cannot_fetch_register): Ditto.
11270 (alpha_cannot_store_register): Ditto.
11271 (alpha_register_convertible): Ditto.
11272 (alpha_use_struct_convention): Ditto.
11273 * config/alpha/tm-alpha.h: Update copyright years.
11274 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11275 (INNER_THAN): Use core_addr_lessthan.
11276 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11277 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11278 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11279 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11280 (FRAME_CHAIN): Remove unnecessary cast.
11281
b4ceaee6
AC
112822002-01-18 Andrew Cagney <ac131313@redhat.com>
11283
11284 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11285 obsolete.
11286
0a65a603
AC
112872002-01-18 Andrew Cagney <ac131313@redhat.com>
11288
11289 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11290 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11291 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11292 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11293 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11294 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11295 * x86-64-linux-nat.c: Ditto.
11296
636a6dfc
JT
112972002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11298
abf22e64 11299 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
11300 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11301 (REGISTER_NAME): Define.
11302
acceddb6
JT
113032002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11304
11305 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11306
ec32e4be
JT
113072002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11308
11309 * alpha-tdep.c: Update copyright years.
11310 (alpha_next_pc): New function.
11311 (alpha_software_single_step): Ditto.
11312 * config/alpha/tm-alpha.h: Add prototype for
11313 alpha_software_single_step.
11314
e771a871
JT
113152002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11316
11317 * alphabsd-nat.c: Update copyright years.
11318 (fill_gregset): Use regcache_collect.
11319 (fill_fpregset): Likewise.
11320 (fetch_inferior_registers): Only fetch integer registers
11321 if requested to do so.
11322 (store_inferior_registers): Only store integer registers
11323 if requested to do so.
11324
7708fa01
AC
113252002-01-17 Andrew Cagney <ac131313@redhat.com>
11326
11327 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11328 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11329 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11330 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11331 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11332 * config/arm/linux.mh (XDEPFILES): Delete.
11333 * config/arm/nbsd.mh (XDEPFILES): Delete.
11334 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11335 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11336 * config/i386/i386m3.mh (XDEPFILES): Delete.
11337 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11338 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11339 * config/i386/fbsd.mh (XDEPFILES): Delete.
11340 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11341 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11342 * config/i386/i386v4.mh (XDEPFILES): Delete.
11343 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11344 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11345 * config/i386/i386aix.mh (XDEPFILES): Delete.
11346 * config/i386/go32.mh (XDEPFILES): Delete.
11347 * config/i386/cygwin.mh (XDEPFILES): Delete.
11348 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11349 * config/i386/i386mach.mh (XDEPFILES): Delete.
11350 * config/i386/i386v32.mh (XDEPFILES): Delete.
11351 * config/i386/linux.mh (XDEPFILES): Delete.
11352 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11353 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11354 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11355 * config/i386/i386sco.mh (XDEPFILES): Delete.
11356 * config/i386/i386v.mh (XDEPFILES): Delete.
11357 * config/i386/nbsd.mh (XDEPFILES): Delete.
11358 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11359 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11360 * config/i386/symmetry.mh (XDEPFILES): Delete.
11361 * config/i386/obsd.mh (XDEPFILES): Delete.
11362 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11363 * config/ia64/linux.mh (XDEPFILES): Delete.
11364 * config/ia64/aix.mh (XDEPFILES): Delete.
11365 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11366 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11367 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11368 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11369 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11370 * config/m68k/linux.mh (XDEPFILES): Delete.
11371 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11372 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11373 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11374 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11375 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11376 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11377 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11378 * config/m88k/delta88.mh (XDEPFILES): Delete.
11379 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11380 * config/m88k/m88k.mh (XDEPFILES): Delete.
11381 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11382 * config/mips/linux.mh (XDEPFILES): Delete.
11383 * config/mips/irix6.mh (XDEPFILES): Delete.
11384 * config/mips/irix5.mh (XDEPFILES): Delete.
11385 * config/mips/irix4.mh (XDEPFILES): Delete.
11386 * config/mips/irix3.mh (XDEPFILES): Delete.
11387 * config/mips/decstation.mh (XDEPFILES): Delete.
11388 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11389 (NATDEPFILES): Move core-aout.o to here.
11390 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11391 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11392 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11393 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11394 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11395 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11396 * config/pa/hpux11.mh (XDEPFILES): Delete.
11397 * config/powerpc/aix.mh (XDEPFILES): Delete.
11398 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11399 * config/powerpc/linux.mh (XDEPFILES): Delete.
11400 * config/romp/rtbsd.mh: Rename XDEPFILES.
11401 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11402 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11403 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11404 * config/s390/s390.mh (XDEPFILES): Delete.
11405 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11406 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11407 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11408 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11409 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11410 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11411 * config/sparc/linux.mh (XDEPFILES): Delete.
11412 * config/vax/vaxult.mh (XDEPFILES): Delete.
11413 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11414 * Makefile.in (DEPFILES): Remove XDEPFILES.
11415
375fc983
AC
114162002-01-17 Andrew Cagney <ac131313@redhat.com>
11417
11418 * utils.c (internal_verror): Fix comments, default is yes not no.
11419 Update queries to match. Default to quit and dump core.
11420
8926118c
AC
114212002-01-17 Andrew Cagney <ac131313@redhat.com>
11422
11423 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11424 copyright.
11425 * defs.h, event-top.c, gdbcmd.h: Ditto.
11426 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11427 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11428 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11429 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11430 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11431 * mi/mi-main.c:Ditto.
11432
11433 * stack.c, symfile.c: Update copyright.
11434
45b7b345
DJ
114352002-01-17 Daniel Jacobowitz <drow@mvista.com>
11436
db728ff7
DJ
11437 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11438 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11439 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11440 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11441
db728ff7
DJ
114422002-01-17 Daniel Jacobowitz <drow@mvista.com>
11443
11444 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11445 * gdbserver/low-lynx.c (myattach): Likewise.
11446 * gdbserver/low-nbsd.c (myattach): Likewise.
11447 * gdbserver/low-sim.c (myattach): Likewise.
11448 * gdbserver/low-sparc.c (myattach): Likewise.
11449 * gdbserver/low-sun3.c (myattach): Likewise.
11450
11451 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11452
db728ff7 11453 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11454 (main): Handle "--attach".
11455
8de3c354
AC
114562002-01-16 Andrew Cagney <ac131313@redhat.com>
11457
11458 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11459 maintainer.
11460
b0129042
DJ
114612002-01-15 Daniel Jacobowitz <drow@mvista.com>
11462
11463 * c-typeprint.c (is_type_conversion_operator): Add additional
11464 check for non-conversion operators.
11465
ba8679fb 114662002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11467
11468 * linux-proc.c: Add "info proc" command, a la procfs.c.
11469 (read_mapping): New function, abstract and re-use code.
11470 (linux_find_memory_regions): Use new func read_mapping.
11471 (linux_info_proc_cmd): New function, implement "info proc".
11472 (_initialize_linux_proc): Add new command "info proc".
11473
e4f9b4d5
MS
114742002-01-15 Michael Snyder <msnyder@redhat.com>
11475
11476 * symfile.c (generic_load): Use bfd_map_over_sections method
11477 instead of manipulating bfd structure members directly.
11478 (add_section_size_callback): New function, bfd sections callback
11479 used by generic_load.
11480 (load_sections_callback): New function, bfd sections callback
11481 used by generic_load.
11482
08cf96df
EZ
114832002-01-15 Elena Zannoni <ezannoni@redhat.com>
11484
abf22e64 11485 [Based on work by Jim Blandy]
08cf96df
EZ
11486 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11487 (builtin_type_vec128): Export.
11488 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11489 types.
11490 (builtin_type_vec128): New builtin type for 128 bit vector
11491 registers.
11492 (build_gdbtypes): Initialize builtin_type_v16qi and
11493 builtin_type_v8hi. Create the vec128 register builtin type
11494 structure.
11495 (build_builtin_type_vec128): New function.
abf22e64 11496 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11497 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11498 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11499 AltiVec register to new builtin type.
11500
d7242108
DJ
115012001-01-15 Daniel Jacobowitz <drow@mvista.com>
11502
11503 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11504 to make_cv_type.
11505
4ee3352d
AC
115062002-01-14 Andrew Cagney <ac131313@redhat.com>
11507
11508 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11509 CLEAN_UP_REGISTER_VALUE.
11510 * regcache.c (supply_register): Update only call.
11511
f015b2e7
AC
115122002-01-14 Andrew Cagney <ac131313@redhat.com>
11513
11514 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11515 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11516 a29k-*-vxworks* targets as obsolete.
11517
356ae49d
MS
115182002-01-14 Michael Snyder <msnyder@redhat.com>
11519
11520 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11521 until we can resolve portability issues.
11522 * gregset.h: Remove references to fpxregs.
11523 * gcore.c (gcore_command): Initialize note_sec to NULL.
11524
ade8f45e
AC
115252002-01-13 Andrew Cagney <ac131313@redhat.com>
11526
11527 * signals.c (target_signal_to_name): Rewrite. Only use
11528 signals[].name when in bounds and non-NULL.
abf22e64 11529
89c49e7a
AC
115302002-01-13 Andrew Cagney <ac131313@redhat.com>
11531
11532 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11533 * signals.c (target_signal_to_name): Verify that SIG is within the
11534 bounds of the signals array.
11535
4daa9f9f
AC
115362002-01-13 Andrew Cagney <ac131313@redhat.com>
11537
11538 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11539
ba4bbdcb
KS
115402002-01-13 Keith Seitz <keiths@redhat.com>
11541
11542 * stack.c (print_frame_info_base): Print the frame's pc
11543 only if when print_frame_info_listing_hook is not defined.
11544
575bbeb6
KS
115452002-01-13 Keith Seitz <keiths@redhat.com>
11546
11547 * varobj.c (varobj_set_value): Make sure that there were no
11548 errors evaluating the object before attempting to set its
11549 value.
11550 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11551 so this offset adjustment is no longer necessary.
11552 (create_child): Don't set the error flag if the child is
11553 a CPLUS_FAKE_CHILD.
11554 (value_of_child): If value_fetch_lazy fails, return NULL
11555 so that callers will be notified that an error occurred.
11556 (c_value_of_variable): Delay check of variable's validity
11557 until later. We actually want all structs and unions to have
11558 the value "{...}".
11559 Do not return "???" for variables which could not be evaluated.
11560 This error condition must be returned to the caller so that it
11561 can get the error condition from gdb.
11562 (cplus_name_of_child): Adjust index for vptr before figuring
11563 out the name of the child.
11564 (cplus_value_of_child): If a child's (real) parent is not valid,
11565 don't even bother trying to give a value for it. Just return
11566 an error. Change all instances in this function.
11567 (cplus_type_of_child): If our parent is one of the "fake"
11568 parents, we need to get at the type of the real parent, and
11569 derive the child's true type using this information.
11570
b76898ab
AC
115712002-01-13 Andrew Cagney <ac131313@redhat.com>
11572
11573 From 2002-01-09 John Marshall <johnm@falch.net>:
11574 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11575 sources.redhat.com, and tweak some related URLs which had
11576 suffered from linkrot.
11577
b6649e88
AC
115782002-01-13 Andrew Cagney <ac131313@redhat.com>
11579
11580 From Jeff law:
11581 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11582 structures passed in registers.
11583
82cc5033
EZ
115842002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11585
11586 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11587 white space which prevented compilation. Reported by DSK
11588 <dsk@student.unsw.edu.au>.
11589
ba5f2f8a
MS
115902002-01-11 Michael Snyder <msnyder@redhat.com>
11591
fbd35540
MS
11592 * symfile.c (build_section_addr_info_from_section_tab):
11593 Use bfd access method instead of manipulating bfd directly.
11594 (syms_from_objfile): Ditto.
11595 (simple_overlay_update_1): Ditto.
11596 (simple_overlay_update): Ditto.
11597 (generic_load): Ditto.
11598 (overlay_unmapped_address): FIXME comment, bfd access methods.
11599 (sections_overlap): FIXME comment, bfd access methods.
11600 (pc_in_mapped_range): FIXME comment, bfd access methods.
11601 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11602 (section_is_mapped): FIXME comment, bfd access methods.
11603 (section_is_overlay): FIXME comment, bfd access methods.
11604
ba5f2f8a
MS
11605 * symfile.c (generic_load): Whitespace and long line cleanups.
11606 Remove duplicate variable, change several local variables to
11607 more appropriate data types.
11608 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11609
17df2af6
AC
116102002-01-12 Andrew Cagney <ac131313@redhat.com>
11611
11612 From Peter Schauer:
11613 * language.c (longest_local_hex_string_custom): Use phex_nz to
11614 convert NUM to a hex string.
11615
ec920329
EZ
116162002-01-12 Elena Zannoni <ezannoni@redhat.com>
11617
11618 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11619 the function.
538a76d6 11620 Update Copyright year.
ec920329 11621
3abd2e01
AC
116222002-01-12 Andrew Cagney <ac131313@redhat.com>
11623
11624 * language.c (longest_raw_hex_string): Delete unused function.
11625
b21b22e0
PS
116262002-01-11 Petr Sorfa <petrs@caldera.com>
11627
11628 * MAINTAINERS (write-after-approval): Add myself.
11629 * dwarf2read.c (read_tag_string_type): Handling of
11630 DW_AT_byte_size.
11631 (read_tag_string_type): FORTRAN fix to prevent propagation of
11632 first string size.
11633 (set_cu_language): Handling of DW_LANG_Fortran95
11634
747fe712
RE
116352002-01-11 Richard Earnshaw <rearnsha@arm.com>
11636
11637 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11638 GETPID(inferior_ptid).
11639 (store_inferior_registers): Likewise.
11640
f1bea926
JM
116412002-01-10 Jason Merrill <jason@redhat.com>
11642
11643 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11644 Fix DW_OP_minus.
11645
ae940673
AC
116462002-01-10 Andrew Cagney <ac131313@redhat.com>
11647
11648 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11649 and bfd/elf32-sh-nbsd.c.
11650
00546b04
MS
116512002-01-10 Michael Snyder <msnyder@redhat.com>
11652
352ed7b4
MS
11653 * NEWS: Mention --pid and corefile/proc-id behavior change.
11654
c18be923
MS
11655 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11656 * gcore.c: Include cli/cli-decode.h instead of command.h.
11657
00546b04
MS
11658 * main.c (captured_main): Add new command line option "--pid".
11659 If the second command line argument (following the symbol-file)
11660 begins with a digit, try to attach to it before trying to open
11661 it as a corefile.
11662 (print_gdb_help): Document the "--pid" argument.
11663
db60ec62
EZ
116642002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11665
11666 * completer.c (command_completer): New function.
11667
11668 * completer.h <command_completer>: Add prototype.
11669
11670 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11671 completer for the "help" command.
11672
39c22d1a
JM
116732002-01-09 Jason Merrill <jason@redhat.com>
11674
11675 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11676
c564377f
MS
116772002-01-09 Michael Snyder <msnyder@redhat.com>
11678
975aec09
MS
11679 * i386-linux-nat.c (fill_fpxregset): Make global.
11680 (store_fpxregset): Ditto.
11681
db4a10fa
MS
11682 * gregset.h (gdb_fpxregset_t): Define.
11683 (supply_fpxregset): Prototype.
11684 (fill_fpxregset): Prototype.
11685
c564377f
MS
11686 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11687
c3d45d70
RE
116882002-01-09 Richard Earnshaw <rearnsha@arm.com>
11689
11690 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11691 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11692 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11693
fcc87af1
AC
116942002-01-09 Andrew Cagney <ac131313@redhat.com>
11695
11696 * MAINTAINERS: Update target maintainer rules so that any
11697 Maintainer can approve a tested patch for a maintenance-only
11698 target.
11699
dd96c05b
RE
117002002-01-09 Richard Earnshaw <rearnsha@arm.com>
11701
d4297db9 11702 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11703
d4297db9 11704 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11705 IN_SIGTRAMP.
11706
145fdc6e
MS
117072002-01-08 Michael Snyder <msnyder@redhat.com>
11708
11709 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11710 real name of the executable, rather than the /proc name.
11711
be4d1333
MS
117122002-01-03 Michael Snyder <msnyder@redhat.com>
11713
11714 Implement a "generate-core-file" command in gdb, save target state.
11715 * gcore.c: New file. Implement new command 'generate-core-file'.
11716 Save a corefile image of the current state of the inferior.
11717 * linux-proc.c: Add linux-specific code for saving corefiles.
11718 * target.h (struct target_ops): Add new target vectors for saving
11719 corefiles; to_find_memory_regions and to_make_corefile_notes.
11720 (target_find_memory_regions): New macro.
11721 (target_make_corefile_notes): New macro.
11722 * target.c (update_current_target): Inherit new target methods.
11723 (dummy_find_memory_regions): New place-holder method.
11724 (dummy_make_corefile_notes): New place-holder method.
11725 (init_dummy_target): Initialize new dummy target vectors.
11726 * exec.c (exec_set_find_memory_regions): New function.
11727 Allow the exec_ops vector for memory regions to be taken over.
11728 (exec_make_note_section): New function, target vector method.
11729 * defs.h (exec_set_find_memory_regions): Export prototype.
11730 * procfs.c (proc_find_memory_regions): New function, corefile method.
11731 (procfs_make_note_section): New function, corefile method.
11732 (init_procfs_ops): Set new target vector pointers.
11733 (find_memory_regions_callback): New function.
11734 (procfs_do_thread_registers): New function.
11735 (procfs_corefile_thread_callback): New function.
11736 * sol-thread.c (sol_find_memory_regions): New function.
11737 (sol_make_note_section): New function.
11738 (init_sol_thread_ops): Initialize new target vectors.
11739 * inftarg.c (inftarg_set_find_memory_regions): New function.
11740 Allow to_find_memory_regions vector to be taken over.
11741 (inftarg_set_make_corefile_notes): New function.
11742 Allow to_make_corefile_notes vector to be taken over.
11743 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11744 interface layer if not target_has_execution (may be a corefile).
11745 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11746 * config/sparc/sun4sol2.mh: Ditto.
11747 * config/alpha/alpha-linux.mh: Ditto.
11748 * config/arm/linux.mh: Ditto.
11749 * config/i386/x86-64linux.mh: Ditto.
11750 * config/ia64/linux.mh: Ditto.
11751 * config/m68k/linux.mh: Ditto.
11752 * config/mips/linux.mh: Ditto.
11753 * config/powerpc/linux.mh: Ditto.
11754 * config/sparc/linux.mh: Ditto.
11755
c6b92abd
MS
117562002-01-07 Michael Snyder <msnyder@redhat.com>
11757
11758 * arm-linux-nat.c: Remove references to regcache.c internal data
11759 (registers[] and register_valid[]).
11760
4b09dc8c
MS
117612002-01-07 Michael Snyder <msnyder@redhat.com>
11762
abf22e64
AJ
11763 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11764 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11765 symbol file and shlibs.
11766 * Makefile.in: Add rule for linux-proc.o.
11767 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11768 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11769 * config/arm/linux.mh: Ditto.
11770 * config/i386/linux.mh: Ditto.
11771 * config/i386/x86-64linux.mh: Ditto.
11772 * config/ia64/linux.mh: Ditto.
11773 * config/m68k/linux.mh: Ditto.
11774 * config/mips/linux.mh: Ditto.
11775 * config/powerpc/linux.mh: Ditto.
11776 * config/sparc/linux.mh: Ditto.
11777
c25b74ac
PM
117782002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11779
11780 * win32-nat.c: Add i386-tdep.h dependency.
11781
94cd915f
MS
117822002-01-07 Michael Snyder <msnyder@redhat.com>
11783
c7cccb76
MS
11784 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11785 instead of bfd_get_arch_size. Don't bail out just because
11786 there's no exec_bfd.
abf22e64 11787
34c0bd93
MS
11788 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11789 * p-valprint.c (pascal_object_print_value): Ditto.
11790 * somread.c (som_symtab_read): Ditto.
11791 * symfile.c (simple_free_overlay_region_table): Ditto.
11792 * valops.c (value_assign): Ditto.
11793
21c1c920
MS
11794 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11795 use tilde_expand and strerror for opening save-tracepoints file.
11796
5bbd998e
MS
11797 * thread-db.c (thread_db_new_objfile): Indendation fix.
11798
94cd915f
MS
11799 * infptrace.c (GDB_MAX_ALLOCA): New define.
11800 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11801 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11802 can be overridden with whatever value is appropriate to the host).
11803 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11804 alloca to allocate potentially large buffer.
11805 * rs6000-nat.c (child_xfer_memory): Ditto.
11806 * symm-nat.c (child_xfer_memory): Ditto.
11807 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11808
494e8a93
JSC
118092002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11810
11811 From Nick Clifton <nickc@redhat.com>
11812 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11813
d0e1d48e
MS
118142002-01-07 Michael Snyder <msnyder@redhat.com>
11815
abf22e64 11816 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11817 Don't use exec_bfd if it's NULL.
11818
290b2c7a
MK
118192002-01-06 Mark Kettenis <kettenis@gnu.org>
11820
abf22e64 11821 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11822
aef21287
AC
118232002-01-06 Andrew Cagney <ac131313@redhat.com>
11824
11825 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11826 * gnu-nat.c: Ditto.
11827
30efa627
AC
118282002-01-06 Andrew Cagney <ac131313@redhat.com>
11829
11830 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11831 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11832 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11833 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11834 z8k-coff have not been multi-arched. Update z8k-coff build
11835 status.
11836
9b4ff276
AC
118372002-01-06 Andrew Cagney <ac131313@redhat.com>
11838
11839 * MAINTAINERS: Mark a29k target as obsolete.
11840 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11841 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11842 comments.
11843 * NEWS: Note that a29k targets are obsolete.
11844 * a29k-tdep.c: Mark as obsolete.
11845 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11846 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11847 a29k-*-vxworks* targets as obsolete.
11848 * remote-adapt.c: Obsolete.
11849 * remote-eb.c: Obsolete.
11850 * remote-mm.c: Obsolete.
11851 * remote-udi.c: Obsolete.
11852 * config/a29k/a29k-udi.mt: Obsolete.
11853 * config/a29k/a29k.mt: Obsolete.
11854 * config/a29k/tm-a29k.h: Obsolete.
11855 * config/a29k/tm-vx29k.h: Obsolete.
11856 * config/a29k/vx29k.mt: Obsolete.
11857
a9011d31
AC
118582002-01-05 Andrew Cagney <ac131313@redhat.com>
11859
11860 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11861 with BFD_ENDIAN_BIG.
11862
9299404e
AC
118632002-01-05 Andrew Cagney <ac131313@redhat.com>
11864
11865 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11866 * configure, config.in: Re-generate.
11867 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11868 * defs.h: Do not include <endian.h>.
11869
7e89e357
JT
118702002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11871
11872 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11873 * config.in: Regenerate.
11874 * configure.in: Update copyright years.
11875 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11876 * configure: Regenerate.
11877 * i386bsd-nat.c: Update copyright years.
11878 (fill_gregset): Use regcache_collect.
11879 (fetch_inferior_registers): Only fetch integer registers
11880 if requested to do so. Add support for XMM registers
11881 using PT_GETXMMREGS.
11882 (store_inferior_registers): Only store integer registers
11883 if requested to do so. Add support for XMM registers
11884 using PT_SETXMMREGS.
11885 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11886 (store_inferior_registers): Remove.
11887 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11888 (fetch_elfcore_registers): New function.
11889 (i386nbsd_elfcore_fns): New.
11890 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11891 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11892 i386bsd-nat.o.
11893 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11894 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11895 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11896 * config/i386/tm-nbsd.h: Update copyright years.
11897 (HAVE_SSE_REGS): Define.
11898 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11899 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11900 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11901 (SIGCONTEXT_PC_OFFSET): Remove.
11902 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11903
a752853e
AC
119042002-01-05 Andrew Cagney <ac131313@redhat.com>
11905
11906 * configure.tgt: Remove powerpc-*-macos* target.
11907 * config/m68k/xm-mpw.h: Delete file.
11908 * config/xm-mpw.h: Delete file.
11909 * ser-mac.c: Delete file.
11910 * mpw-make.sed: Delete file.
11911 * mpw-config.in: Delete file.
11912 * mac-xdep.c: Delete file.
11913 * mac-gdb.r: Delete file.
11914 * mac-defs.h: Delete file.
11915 * mac-nat.c: Delete file.
11916 * config/powerpc/macos.mh: Delete file.
11917 * config/powerpc/macos.mt: Delete file.
11918 * config/powerpc/nm-macos.h: Delete file.
11919 * config/powerpc/tm-macos.h: Delete file.
11920 * source.c (openp, open_source_file): Remove obsolete code.
11921 * top.c (gdb_readline): Ditto.
11922 * utils.c (query): Ditto.
11923 * event-top.c (display_gdb_prompt): Ditto.
11924 * Makefile.in (ser-mac.o): Delete obsolete target.
11925 * NEWS: Update.
11926
d7449b42
AC
119272002-01-04 Andrew Cagney <ac131313@redhat.com>
11928
11929 * defs.h (BIG_ENDIAN): Delete macro definition.
11930 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11931 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11932 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11933 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11934 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11935 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11936 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11937 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11938 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11939 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11940 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11941 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11942 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11943 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11944 * gdbarch.c: Re-generate.
11945
356374e8
DJ
119462002-01-04 Daniel Jacobowitz <drow@mvista.com>
11947
11948 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11949 for core files.
11950
a2b8f8f8
JT
119512002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11952
11953 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11954
12466af9
AC
119552002-01-04 Andrew Cagney <ac131313@redhat.com>
11956
11957 * value.h (value_ptr): Delete typedef.
11958
3549ab40
JT
119592002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11960
11961 * i386nbsd-nat.c: Update copyright years.
11962 Include i386-tdep.h.
11963
fedbd091
EZ
119642002-01-04 Elena Zannoni <ezannoni@redhat.com>
11965
11966 * stabsread.c: Update copyright years.
11967
11968 From Debashis Mahata <debashis.mahata@wipro.com>:
11969 (read_struct_fields): Deal with Sun C compiler erroneous stab
11970 output for structs and unions.
fec8b34f 11971 Fix PR gdb/269.
fedbd091 11972
eb43544b
DJ
119732002-01-04 Daniel Jacobowitz <drow@mvista.com>
11974
11975 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11976 prototype.
11977
1514d34e
DJ
119782002-01-04 Daniel Jacobowitz <drow@mvista.com>
11979
11980 * cp-abi.c: Fix whitespace.
11981 (baseclass_offset): New wrapper function.
11982 * cp-abi.h (baseclass_offset): Add prototype.
11983 (struct cp_abi_ops): Add baseclass_offset pointer.
11984
11985 * valops.c (vb_match): Move to...
11986 * gnu-v2-abi.c (vb_match): here.
11987 * valops.c (baseclass_offset): Move to...
11988 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11989
11990 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11991
11992 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11993 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11994 * hpacc-abi.c (init_hpacc_ops): Likewise.
11995
7f8c9282
DJ
119962002-01-04 Daniel Jacobowitz <drow@mvista.com>
11997
11998 * valops.c (find_overload_match): Accept obj as a
11999 reference parameter. Update it before returning.
12000 * value.h (find_overload_match): Update prototype.
12001 * eval.c (evaluate_subexp_standard): Pass object to
12002 find_overload_match by reference.
12003
f23631e4
AC
120042002-01-03 Andrew Cagney <ac131313@redhat.com>
12005
12006 * valarith.c: Replace value_ptr with struct value pointer. Remove
12007 register attribute from value declarations.
12008 * valops.c: Ditto.
12009 * value.h: Ditto.
12010 * scm-lang.c (scm_lookup_name): Ditto.
12011
79e10fab 120122002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 12013
79e10fab
AC
12014 Abstract the functionality of iterating over mapped memory
12015 regions into a general purpose iterator function.
abf22e64 12016 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
12017 iterator for memory sections.
12018 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12019 (solib_mappings_callback): New function, callback for above.
12020 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12021 (info_mappings_callback): New function, callback for above.
12022
12023 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12024
c5ad026a
MK
120252002-01-01 Mark Kettenis <kettenis@gnu.org>
12026
d2a7c97a
MK
12027 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12028 * i386-tdep.c: Include "elf-bfd.h".
12029 (process_note_abi_tag_sections): New function.
12030 (i386_gdbarch_init): Add code to recognize various OS/ABI
12031 combinations.
12032
c5ad026a
MK
12033 * maint.c (_initialize_maint_cmds): Add missing \ in
12034 string-literal.
12035
a1a5b71e 12036For older changes see ChangeLog-2001
c906108c
SS
12037\f
12038Local Variables:
12039mode: change-log
12040left-margin: 8
12041fill-column: 74
12042version-control: never
12043End:
This page took 0.984405 seconds and 4 git commands to generate.