* solib-sunos.c: Include "bcache.h" and "regcache.h".
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
005328e3
MK
12002-10-20 Mark Kettenis <kettenis@gnu.org>
2
03cc47f7
MK
3 * solib-sunos.c: Include "bcache.h" and "regcache.h".
4 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
5
005328e3
MK
6 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
7 * config/i386/obsd.mt: New file.
8 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
9 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
10 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
11 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
12 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
13 * i386obsd-tdep.c: New file.
14
9c96f9f2
AF
152002-10-19 Adam Fedor <fedor@gnu.org>
16
17 * objc-exp.y (name_not_typename): Fix invalid comment.
18
ce1ed485
MK
192002-10-20 Mark Kettenis <kettenis@gnu.org>
20
21 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
22 to allocate partial syms and macro byte caches.
23
1efc7aaa
DC
242002-10-18 David Carlton <carlton@math.stanford.edu>
25
26 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
27
7e1d63ec
AF
282002-10-18 Adam Fedor <fedor@gnu.org>
29
30 * stabsread.c (find_name_end): New function.
31 (define_symbol): Use it.
32
6e8d29a9
DJ
332002-10-18 Daniel Jacobowitz <drow@mvista.com>
34
35 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
36 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
37 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
38 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
39
1efc7aaa 402002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
41
42 * symfile.h: Add opaque declaration for struct obstack.
43 Declare obsavestring to take a const char *.
44 * symfile.c (obsavestring): Make first argument a const char *.
45
1aeae86e
AF
462002-10-16 Adam Fedor <fedor@gnu.org>
47
48 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
49 names when matching breakpoints in current file.
50
8b2dbe47
KB
512002-10-16 Kevin Buettner <kevinb@redhat.com>
52
53 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
54 (read_tag_pointer_type): Add address class support.
55 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
56 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
57 New methods.
58 * gdbarch.h, gdbarch.c: Regenerate.
59 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
60 (make_type_with_address_space, recursive_type_dump): Add address
61 class support.
62 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
63 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
64 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
65
74451869
KD
662002-10-16 Klee Dienes <kdienes@apple.com>
67
68 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
69 to get the last character of a char[] buffer, not
70 name[sizeof(vptr_name)-1].
71
ff4cb3e8
AF
722002-10-14 Adam Fedor <fedor@gnu.org>
73
74 * symtab.h: New objc_specific struct.
75 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
76 (SYMBOL_DEMANGLED_NAME): Likewise.
77
da2cf7e0
AF
782002-10-14 Adam Fedor <fedor@gnu.org>
79
80 * symfile.c (init_filename_language_table): Add ObjC file extension.
81
4a351cef
AF
822002-10-14 Adam Fedor <fedor@gnu.org>
83
84 * utils.c (puts_filtered_tabular): New function.
85 (fprintf_symbol_filtered): Get ObjC demangled name.
86 * defs.h (puts_filtered_tabular): Declared.
87
9750e763
KB
882002-10-14 Kevin Buettner <kevinb@redhat.com>
89
90 * c-lang.h (c_type_print_varspec_prefix): Delete.
91 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
92 ``need_post_space'' parameter. Adjust all callers.
93
eee771c1
DJ
942002-10-14 Daniel Jacobowitz <drow@mvista.com>
95
96 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
97 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
98 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
99 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
100
46c82446
AF
1012002-10-13 Adam Fedor <fedor@gnu.org>
102
103 * source.c (print_source_lines): Update comments.
104
d069f99d
AF
1052002-10-13 Adam Fedor <fedor@gnu.org>
106
107 * valops.c (value_of_local): New function.
108 (value_of_this): Use it.
109 * value.h (value_of_local): Declared.
110
53c551b7
AF
1112002-10-13 Adam Fedor <fedor@gnu.org>
112
113 * parse.c: (length_of_subexp, prefixify_subexp): Handle
114 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
115
eb392fbf
AF
1162002-10-12 Adam Fedor <fedor@gnu.org>
117
118 * language.c (binop_result_type): Add language_objc to case.
119 (integral_type): Likewise.
120 (character_type): Likewise.
121 (string_type): Likewise.
122 (boolean_type): Likewise.
123 (structured_type): Likewise.
124 (binop_type_check): Likewise.
125
e2b23ee9
AF
1262002-10-11 Adam Fedor <fedor@gnu.org>
127
128 * printcmd.c (address_info): Print 'self' for ObjC.
129
b01ab485
AF
1302002-10-11 Adam Fedor <fedor@gnu.org>
131
132 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
133 OP_SELF.
134
806e6073
AF
1352002-10-11 Adam Fedor <fedor@gnu.org>
136
137 * language.h (CAST_IS_CONVERSION): Add language_objc.
138
50f85cdf
AF
1392002-10-11 Adam Fedor <fedor@gnu.org>
140
141 * defs.h (enum language): Add language_objc.
142
0d540cdf
KD
1432002-10-11 Klee Dienes <kdienes@apple.com>
144
145 * findvar.c (read_memory_typed_address): New function.
146 * gdbcore.h (read_memory_typed_address): Add prototype.
147 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
148 to read a value destined for a CORE_ADDR, not read_memory_integer.
149 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
150 (f77_get_dynamic_lowerbound): Ditto.
151
d5dc7960
MH
1522002-10-11 Martin M. Hunt <hunt@redhat.com>
153
154 * utils.c (string_to_core_addr): After turning string into
155 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
156 which will do necessary sign-extension, etc.
157
8343f86c
DJ
1582002-10-11 Daniel Jacobowitz <drow@mvista.com>
159
160 * c-exp.y (THIS): Delete token and grammar rule.
161 (yylex): Don't return THIS.
162 * cp-valprint.c (vtbl_ptr_name_old): Delete.
163 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
164 * demangle.c (cplus_markers): Update comment. Put '$'
165 first. Remove CPLUS_MARKER.
166 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
167 * jv-exp.y (THIS): Delete token and grammar rule.
168 (yylex): Don't return THIS.
169 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
170 * objc-exp.y (THIS): Delete token and grammar rule.
171 (yylex): Don't return THIS.
172 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
173 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
174 (read_member_functions): Likewise for opname.
175 (read_tilde_fields): Use is_cplus_marker.
176
177 * defs.h (CPLUS_MARKER): Don't define.
178 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
179 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
180 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
181 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
182 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
183
184 * config/i386/tm-i386v4.h: Delete file.
185 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
186 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
187 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
188 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
189 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
190 * config/i386/i386sco5.mt (TM_FILE): Likewise.
191 * config/i386/i386v4.mt (TM_FILE): Likewise.
192 * config/i386/ncr3000.mt (TM_FILE): Likewise.
193
967c0d83
MM
1942002-10-10 Marko Mlinar <markom@opencores.org>
195
196 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
197 accidentially not commited 2002-10-09
198 * gdbarch.h, gdbarch.c: Re-generate.
199
f74fa174
MM
2002002-10-09 Marko Mlinar <markom@opencores.org>
201
202 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
203 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
204 * gdbarch.h, gdbarch.c: Re-generate.
205
57349743
JB
2062002-10-08 Petr Sorfa <petrs@caldera.com>
207
208 Revised and re-submitted by John Wolfe <jlw@caldera.com>
209
210 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
211 so we can work on more than one compilation unit at a time. This
212 helps prepare GDB to handle inter-CU die references.
213 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
214 the code to be defined before struct comp_unit_head.
215 (comp_unit_head): Added new members - offset, cu_head,
216 begin_die, next and dwarf2_abbrevs.
217 (dwarf2_abbrevs): Removed single static var; now member of
218 struct comp_unit_head.
219 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
220 members.
221 (psymtab_to_symtab_1): Changed to work with the new
222 struct comp_unit_head.
223 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
224 constructs the dwarf2_abbrevs[] inside the cu_header.
225 (dwarf2_empty_abbrev_table): Now expects a ptr to a
226 dwarf2_abbrev table to clean up.
227 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
228 handling of dwarf2_abbrevs inside the cu_header.
229 (read_partial_die): Now supports the call to the new
230 dwarf2_lookup_abbrev.
231 (read_full_die): Now supports the call to the new
232 dwarf2_lookup_abbrev.
233
4092aadb
CF
2342002-10-06 Christopher Faylor <cgf@redhat.com>
235
236 * Makefile.in (install-gdbtk): Add missing continuation backslash to
237 insure that shell variables, such as "transformed_name" are propagated
238 to later shell statements in rule.
239
af0b2512
MK
2402002-10-06 Mark Kettenis <kettenis@gnu.org>
241
242 * config/i386/nm-i386sco.h: Add protection against
243 multiple-inclusion. Include "i386/nm-i386v.h".
244 (REGISTER_U_ADDR): Remove define.
245 (i386_register_u_addr): Remove prototype.
246
d6020d45
MS
2472002-10-04 Michael Snyder <msnyder@redhat.com>
248
249 * m32r-stub.c (handle_exception): Make sure exception is "trap"
250 before treating it as a single-step event.
251
7248f48e
AF
2522002-10-03 Adam Fedor <fedor@gnu.org>
253
254 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
255 (objc_demangle): Remove assignment in if statements, Replace
256 free with xfree.
257 (add_msglist): Likewise.
258 (end_msglist): Likewise.
259 (complare_selectors): Likewise.
260 (selectors_info): Likewise.
261 (compare_classes): Likewise.
262 (classes_info): Likewise.
263 (print_object_command): Likewise.
264 (find_objc_msgcall_submethod): Replace PTR with void *.
265 * objc-lang.h: Remove check for __STDC__.
266
52c6a6ac
JJ
2672002-10-03 Jeff Johnston <jjohnstn@redhat.com>
268
269 * ui-out.h (ui_out_field_fmt_int): New prototype.
270 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
271 of field width and alignment.
272 * stack.c (print_frame_info_base): When printing frame level, use
273 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
274 PR gdb/192
275
7e3cec17
JJ
2762002-10-03 Jeff Johnston <jjohnstn@redhat.com>
277
278 * MAINTAINERS: Add self to Write After Approval list.
279
a58dd373
EZ
2802002-10-02 Elena Zannoni <ezannoni@redhat.com>
281
282 * infcmd.c (interrupt_target_command_wrapper): Delete.
283 (interrupt_target_command): Make non static.
284 (nofp_registers_info): Make static.
285 * stack.c (return_command_wrapper): Delete.
286 (return_command): Make non static.
287
cee6ddeb
EZ
2882002-10-02 Elena Zannoni <ezannoni@redhat.com>
289
290 * event-top.c (gdb_setup_readline): New function. Code moved from
291 _initialize_event_loop().
292 (_initialize_event_loop): Call gdb_setup_readline().
293
c4ed33b9
AC
2942002-10-02 Andrew Cagney <ac131313@redhat.com>
295
296 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
297 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
298 * gdbarch.h, gdbarch.c: Re-generate.
299
cef4f5dd
DJ
3002002-10-02 Daniel Jacobowitz <drow@mvista.com>
301
302 Fix PR gdb/778
303 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
304 before recursing.
305 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
306 of fill_in_vptr_fieldno.
307
36dc181b 3082002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 309
36dc181b
EZ
310 * inferior.h (registers_info, stepi_command, nexti_command,
311 continue_command, interrupt_target_command): Export from infcmd.c.
312 * frame.h (args_info, selected_frame_level_changed_hook,
313 return_command): Export from stack.c.
314 * v850ice.c (stepi_command, nexti_command, continue_command): use
315 prototypes from inferior.h.
316 * tracepoint.c (registers_info, args_info, locals_info): Use
317 prototypes from frame.h and inferior.h.
318 * Makefile.in (mi-main.o): Add dependency on frame.h.
319
6f99cb26
AC
3202002-10-02 Andrew Cagney <ac131313@redhat.com>
321
da3eff49
AC
322 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
323 value in register 3 adjusted by ppc_gp0_regnum.
324
6f99cb26
AC
325 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
326
da615bee
MM
3272002-10-02 Marko Mlinar <markom@opencores.org>
328
329 * MAINTAINERS: Add myself to the Write After Approval list.
330
d154bee2
AO
3312002-10-01 Alexandre Oliva <aoliva@redhat.com>
332
62a49b2c
AO
333 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
334 of the section for the N64 ABI, fixed.
335
d154bee2
AO
336 * config/mips/tm-irix6.h: Include solib.h.
337
ed348acc
EZ
3382002-10-01 Elena Zannoni <ezannoni@redhat.com>
339
340 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
341 GNU operators.
342
da0f9dcd
AC
3432002-10-01 Andrew Cagney <ac131313@redhat.com>
344
345 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
346 and that "mi0" syntax has been removed.
347
bdf64bac
DC
3482002-09-30 David Carlton <carlton@math.stanford.edu>
349
350 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
351 * ppc-sysv-tdep.c: #include "gdb_string.h".
352 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
353 pacify GCC.
354
54c2a1e6
AC
3552002-10-01 Andrew Cagney <ac131313@redhat.com>
356
357 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
358 "vrsave"'s register number.
359
cedea778
AC
3602002-09-30 Andrew Cagney <ac131313@redhat.com>
361
362 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
363 use frame_unwind_signed_register to obtain the PC.
364 (mips_frame_chain): Handle a generic dummy frame.
365 (mips_init_extra_frame_info): When a generic dummy frame, don't
366 re-compute the frame base.
367 (mips_pop_frame): Handle generic dummy frames.
368 (mips_gdbarch_init): When generic dummy frames, set
369 use_generic_dummy_frames, push_dummy_frame to
370 generic_push_dummy_frame, pc_in_call_dummy to
371 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
372 generic_save_dummy_frame_tos.
373
68315eb8
AC
3742002-09-30 Andrew Cagney <ac131313@redhat.com>
375
376 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
377 against TOP when TOP was explictly set.
378 (generic_push_dummy_frame): Set TOP to zero.
379
3b8630c3
EZ
3802002-09-30 Elena Zannoni <ezannoni@redhat.com>
381
382 * event-loop.c (start_event_loop): Rename variable 'result' to
383 'gdb_result', to avoid conflicts with upcoming intepreters changes.
384
28ee05e9
KS
3852002-09-30 Keith Seitz <keiths@redhat.com>
386
387 * gdb-events.sh (selected_thread_changed): New event.
388 * gdb-events.c: Regenerated.
389 * gdb-events.h: Regenerated.
390
6eecb1c8
HPN
3912002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
392
393 * MAINTAINERS: Add self to Write After Approval list.
394
92df71f0
FN
3952002-09-30 Fernando Nasser <fnasser@redhat.com>
396
3b8630c3
EZ
397 * disasm.c: New file.
398 * disasm.h: New file.
92df71f0
FN
399 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
400 (compare_lines): Ditto.
401 (dump_insns): Ditto.
3b8630c3
EZ
402 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
403 argument.
92df71f0 404 (do_assembly_only): Ditto.
3b8630c3
EZ
405 (do_disassembly): Renamed to gdb_disassembly and moved to
406 disasm.c. Sdded uiout argument.
407 * Makefile.in: Add new files. Reorder SFILES list. Update
408 dependencies. Include libgdb.a later in the insight executable.
92df71f0 409
0c22854d
AC
4102002-09-29 Andrew Cagney <ac131313@redhat.com>
411
412 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
413 bfd/elf64-alpha-fbsd.c.
414
e67f2023
AC
4152002-09-29 Andrew Cagney <ac131313@redhat.com>
416
417 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
418 i386gnu-tdep.c.
419
89396210
AC
4202002-09-29 Andrew Cagney <ac131313@redhat.com>
421
422 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
423 __FUNCTION__.
424 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
425 function name.
426 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
427 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
428 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
429 (S_msg_sig_post_reply): Ditto.
430
7079c36c
CV
4312002-09-28 Corinna Vinschen <vinschen@redhat.com>
432
89396210
AC
433 * sh-tdep.c (sh_use_struct_convention): Use definition according
434 to ABI.
7079c36c
CV
435 (sh_push_arguments): Store in register with correct endianess.
436 (sh_default_store_return_value): Ditto.
437 (sh_gdbarch_init): Set sizeof long double to 8.
438
975ac915
MK
4392002-09-27 Mark Kettenis <kettenis@gnu.org>
440
441 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
442 Fix some whitespace problems.
443
9bbe19fb
DC
4442002-09-27 David Carlton <carlton@math.stanford.edu>
445
446 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
447 (mcore-tdep.o): Ditto.
448 (ns32k-tdep.o): Ditto.
449 (ns32knbsd-tdep.o): Ditto.
450 (sh3-rom.o): Ditto.
451 (vax-tdep.o): Ditto.
452 * cris-tdep.c: #include "gdb_string.h"
453 * mcore-tdep.c: Ditto.
454 * ns32k-tdep.c: Ditto.
455 * ns32knbsd-tdep.c: Ditto.
456 * sh3-rom.c: Ditto.
457 * vax-tdep.c: Ditto.
458
43b2fdc7
DC
4592002-09-27 David Carlton <carlton@math.stanford.edu>
460
461 * config/djgpp/fnchange.lst: Add entries for
462 gdb/testsuite/gdb.c++/m-static files.
463
e8cfbbd9
JW
4642002-09-27 Jim Wilson <wilson@redhat.com>
465
466 * MAINTAINERS: Add myself to the Write After Approval list.
467
43b2fdc7 4682002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
469
470 * mips-tdep.c (find_proc_desc): Initialize startaddr.
471
472
9f3b7f07
AC
4732002-09-26 Andrew Cagney <ac131313@redhat.com>
474
475 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
476 frame.
477
11269d7e
AC
4782002-09-26 Andrew Cagney <ac131313@redhat.com>
479
480 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
481 (rs6000_struct_return_address): Delete variable.
482 (rs6000_store_struct_return): Update.
483 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
484 deprecated_extract_struct_value_address.
485 (rs6000_frame_align): New function.
486 (rs6000_gdbarch_init): Set frame_align.
487
f15ab4a7
AC
4882002-09-26 Andrew Cagney <ac131313@redhat.com>
489
490 From Grace Sainsbury <graces@redhat.com>:
491 * Makefile.in (gdbtk-main.o): New target.
492 (gdb.o): New target.
493 (main_h): Define.
494 (main.o): Update dependencies.
495 (gdb$(EXEEXT)): Add gdb.o.
496 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
497 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
498 (SUBDIR_GDBTK_CLEAN): Set.
499 (install-gdbtk): Install the insight binary.
500 (uninstall-gdbtk): New target.
501 (all-gdbtk, clean-gdbtk): New rule.
502 * top.c (use_windows): Default to zero.
503 * main.c: Include "main.h".
504 (main): Delete.
505 (struct captured_main_args): Delete.
506 (gdb_main): New function.
507 * main.h: New file.
508 * gdb.c: New File.
509
e36180d7
AC
5102002-09-25 Andrew Cagney <cagney@redhat.com>
511
512 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
513 (frame_map_regnum_to_name): New function.
514 (frame_map_name_to_regnum): New function.
515 * frame.h (frame_map_name_to_regnum): Declare.
516 (frame_map_regnum_to_name): Declare.
517 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
518 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
519 * parse.c: Do not include "builtin-regs.h".
520 (target_map_name_to_register): Delete function.
521 (write_dollar_variable): Use frame_map_name_to_regnum.
522 * parser-defs.h (target_map_name_to_register): Delete declaration.
523 * expprint.c: Include "frame.h".
524 (print_subexp): Use frame_map_regnum_to_name.
525 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
526 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
527
8b69000d
AC
5282002-09-25 Andrew Cagney <ac131313@redhat.com>
529
530 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
531 wasn't saved, and the next innermost frame is a dummy, return the
532 dummy frame's link register.
533
046ca86a
JB
5342002-09-24 Jim Blandy <jimb@redhat.com>
535
536 Fix from Paul Breed:
537 * main.c (captured_main): Add a `break' after the case for 'b'.
538
94b66fa7
KS
5392002-09-24 Keith Seitz <keiths@redhat.com>
540
541 * varobj.c (c_type_of_child): Use get_target_type instead
542 of TYPE_TARGET_TYPE.
543
c214a6fd
FN
5442002-09-22 Fernando Nasser <fnasser@redhat.com>
545
53cb0458
FN
546 * source.c (get_current_or_default_source_symtab_and_line): Remove
547 function.
548 (set_default_source_symtab_and_line): New function. Attempts to
549 determine a source file to list lines from if one is not currently
550 defined.
551 (get_current_source_symtab_and_line): Initialize sal.pc and
552 sal.end fields.
553 (set_current_source_symtab_and_line): Mark argument as const.
554 * source.h: Update declarations and comments.
555 * linespec.c (decode_line_1): Replace call to removed routine above.
556 * stack.c (print_frame_info_base): Ditto.
557 * cli/cli-cmds.c (edit_command): Ditto.
558 (list_command): Ditto.
559
5602002-09-22 Fernando Nasser <fnasser@redhat.com>
561
d6020d45 562 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 563 sal.pc and sal.end fields.
c214a6fd
FN
564 (get_current_or_default_source_symtab_and_line): Ditto.
565 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
566 so we do not cause a new source symtab to be searched for (reverting an
567 unintentional change from the 2002-09-20 patch).
568 * scm-lang.c (scm_unpac): Ditto.
569
cc3b68a5
AC
5702002-09-21 Andrew Cagney <cagney@redhat.com>
571
572 * complaints.c (symfile_explanations): Remove new-line from
573 ``isolated_message''.
574 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
575 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
576
5835abe7
NC
5772002-09-20 Nick Clifton <nickc@redhat.com>
578
579 * NEWS: Announce that V850EA ISA is no longer supported.
580 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
581
a15ef5f5
DC
5822002-09-20 David Carlton <carlton@math.stanford.edu>
583
06ba1b39
DC
584 * Makefile.in (c-lang.o): Correct dependencies.
585 (utils.o): Gather dependencies.
586 (charset.o): Move.
a15ef5f5
DC
587 * c-lang.c: #include "gdb_string.h"
588
87885426
FN
5892002-09-20 Fernando Nasser <fnasser@redhat.com>
590
591 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
592 * cli/cli-cmds.c (list_command): New function. Implements the new
593 cli edit command.
594 (_init_cli_cmds): Add new command definition.
595 * gdb.1: Document edit command.
596 * doc/gdb.texinfo: Document edit command.
597
5982002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
599
600 * source.c: Make global variables current_source_symtab and
601 current_source_line static.
602 (list_command): Moved to cli/cli-cmds.c.
603 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
604 (get_first_line_listed): New accessor function.
605 (get_lines_to_list): New accessor function.
606 (get_current_source_symtab_and_line): New function. Retrieves the
607 position in the source code that we consider current.
608 (get_current_or_default_source_symtab_and_line): New function.
609 Like the above but attempts to determine a default position if one
610 is not currently defined.
611 (set_current_source_symtab_and_line): New function. Sets the source
612 code position considered current and returns the previously set one.
613 (clear_current_source_symtab_and_line): Reset stored information about
614 a current source line.
615 (_initialize_source): Remove registration for the "list" command and
616 its alias.
617 * source.h: Add declarations for the new functions above.
618 * symtab.h: Remove declarations for the global variables mentioned
619 above.
620 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
621 obtain current source line.
622 * linespec.c (decode_line_1): Ditto.
623 * macroscope.c (default_macro_scope): Ditto.
624 * scm-lang.c (scm_unpac): Ditto.
625 * stack.c (print_frame_info_base): Ditto.
626 * symfile.c (clear_symtab_users): Ditto.
627 * symtab.c (decode_line_spec): Ditto.
628 * cli/cli-cmds.c (list_command): Moved here from source.c.
629 (ambiguous_line_spec): Moved here from source.c.
630 (_init_cli_cmds): Add definition for "list" and its alias.
631 * Makefile.in: Update dependencies.
632
ddd216ea
CV
6332002-09-20 Corinna Vinschen <vinschen@redhat.com>
634
635 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
636 with what gcc thinks is correct.
637
6d305052
CV
6382002-09-20 Corinna Vinschen <vinschen@redhat.com>
639
640 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
641 multiple register push instruction.
642
234b45d4
KB
6432002-09-19 Jim Blandy <jimb@redhat.com>
644
645 Add support for distinct host and target character sets.
646 * charset.c, charset.h: New files.
647 * c-exp.y: #include "charset.h".
648 (yylex): Convert character and string literals to the target
649 character set, before returning them as the semantic value of the
650 token.
651 * c-lang.c: #include "charset.h".
652 (c_emit_char): Use charset-specific methods to recognize
653 characters with backslash escape forms, to decide which characters
654 to print literally and which to print using numeric escape
655 sequences, and to convert target characters to host characters
656 before printing.
657 * utils.c: #include "charset.h".
658 (no_control_char_error): New function.
659 (parse_escape): Use charset-specific methods to recognize
660 backslash escapes, parse `control character' notation, and convert
661 characters from the host character set to the target character set.
662 * configure.in: Set the default host character set.
663 Check where to find iconv, and what its argument types might be.
664 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
665 * Makefile.in (SFILES): List charset.c.
666 (COMMON_OBS): List charset.o.
667 (charset.o): New rule.
668 (charset_h): New header dependency variable.
669 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
670 (LIBICONV): New variable, set by configure.
671 (CLIBS): Include $(LIBICONV) here.
672 * aclocal.m4, config.in, configure: Regenerated.
673
525d6a61
JB
6742002-09-19 Joel Brobecker <brobecker@gnat.com>
675
676 * ada-exp.y: Add missing semicolons to end rules. Fixes a
677 bison 1.35 warning.
678
3ed93867
RE
6792002-09-19 Richard Earnshaw <rearnsha@arm.com>
680
681 * gdb_mbuild.sh: New file.
682
437666f8
AC
6832002-09-19 Andrew Cagney <ac131313@redhat.com>
684
685 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
686
389e51db
AC
6872002-09-18 Andrew Cagney <ac131313@redhat.com>
688
689 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
690 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
691 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
692 valops.c, value.h: Revert previous change.
693
3b4efeaa
MS
6942002-09-18 Michael Snyder <msnyder@redhat.com>
695
696 Preliminary support for Objective-C:
697 * defs.h (language_objc): New enum value.
698 (puts_filtered_tabular): Declaration only, exported from utils.c.
699 (skip_quoted): Delete, declared in completer.h.
700 * c-exp.y: Include completer.h.
701 * p-exp.y: Ditto.
702 * jv-exp.y: Ditto.
703 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
704 New operator enum values.
705 * language.h (CAST_IS_CONVERSION): Test for language_objc.
706 * language.c (binop_result_type): Handle language_objc case.
707 (integral_type, character_type, string_type, boolean_type,
708 structured_type, binop_type_check): Ditto.
709 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
710 (struct objc_specific): Add to general_symbol_info.
711 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
712 (SYMBOL_DEMANGLED_NAME): Handle objc case.
713 * parser-defs.h (struct objc_class_str): New struct type.
714 (start_msglist, end_msglist, add_msglist): Declaration only,
715 exported from objc-lang.c.
716 * value.h (value_of_local, value_nsstring,
717 call_function_by_hand_expecting_type): Exported from valops.c.
718 * valops.c (find_function_addr): Export.
719 (call_function_by_hand_expecting_type): New function.
720 (value_of_local): New function.
721 * symfile.c (init_filename_language_table): Add ".m" extension
722 for Objective-C.
723 * utils.c (puts_filtered_tabular): New function.
724 (fprintf_symbol_filtered): Add objc demangling support (disabled).
725 (set/show demangle): Extend help-string to refer to ObjC.
726 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
727 * stabsread.c (symbol_reference_defined): Objective-C symbols
728 may contain colons: make allowances when scanning stabs strings
729 for colons.
730 (objc_find_colon): New function.
731 * printcmd.c (address_info): If language == objc then print
732 "self" instead of "this".
733 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
734 OP_NSSTRING, and OP_SELF.
735 (prefixify_subexp): Ditto.
736 * source.c (print_source_lines): Mention objc in comment.
737 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
738 method names.
739
b9caf505
AC
7402002-09-18 Andrew Cagney <ac131313@redhat.com>
741
742 * complaints.h: Update copyright.
743 (struct complaints): Declare.
744 (struct complaint): Make `message' constant.
745 (internal_complaint): Declare.
746 (complaint): Declare.
747 (complaint_root): Delete declaration.
748 (symfile_complaints): Delete declaration.
749 (struct complaints): Add opaque declaration.
750 (clear_complaints): Add a complaints parameter.
751 * complaints.c: Update copyright.
752 (enum complaint_series): Define.
753 (complaint_root): Delete.
754 (struct complaints): Define.
755 (complaint_sentinel, symfile_complaint_book): New variables.
756 (symfile_explanations, symfile_complaints): New variables.
757 New variables.
758 (get_complaints): New function.
759 (vcomplaint): New function.
760 (complaint): New function.
761 (internal_complaint): New function.
762 (complain): Call vcomplain with symfile_complaint.
763 (clear_complaints): Rewrite.
764 (_initialize_complaints): Use add_setshow_command.
765 * Makefile.in (complaints.o): Update dependencies.
766 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
767 to call to clear_complaints.
768 (new_symfile_objfile, reread_symbols): Ditto.
769 (oldsyms_complaint): Delete.
770 (empty_symtab_complaint, unknown_option_complaint): Delete.
771 (free_named_symtabs): Use complaint instead of complain.
772
d2e6263c
MS
7732002-09-18 Michael Snyder <msnyder@redhat.com>
774
5fb2031a
AC
775 Contributed by Apple Computer, Inc. Merged with current sources
776 by Adam Fedor <fedor@doc.com> [cagney].
777
d2e6263c
MS
778 * objc-lang.c: First clean-up round: comments, indentation.
779 * objc-lang.h: Ditto.
780 * objc-lang.y: Ditto.
781
dec43320
AC
7822002-09-18 Andrew Cagney <ac131313@redhat.com>
783
784 * maint.c (maintenance_internal_error): Print the parameter as the
785 error message.
786 (maintenance_internal_warning): New function.
787 (_initialize_maint_cmds): Add command `maint internal-warning'.
788
789 * defs.h (internal_warning, internal_vwarning): Declare.
790 * utils.c (struct internal_problem): Define.
791 (internal_vproblem): New function.
792 (internal_warning): New function.
793 (internal_vwarning): New function.
794 (internal_warning_problem, internal_error_problem): New variables.
795 (internal_verror): Just call internal_vproblem.
796
b81654f1
MS
7972002-09-18 Michael Snyder <msnyder@redhat.com>
798
799 * objc-lang.c: New file, support for Objective-C.
800 Preliminary check-in, not yet integrated into gdb.
801 * objc-lang.h: New file.
802 * objc-exp.y: New file.
803
0542c381
AC
8042002-09-18 Andrew Cagney <ac131313@redhat.com>
805
7bda5e4a
AC
806 * infrun.c (signal_stop_update): Convert definition to ISO C.
807 (signal_print_update): Ditto.
808 (signal_pass_update): Ditto.
809 * inflow.c (terminal_save_ours): Ditto.
810
5247b418
AC
811 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
812 comments.
813
fc60962c
AC
814 * config/djgpp/fnchange.lst: Handle name clashes between
815 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
816 bfd/coff-tic80.c.
817
0542c381
AC
818 * i386-linux-tdep.h: Fix tipo.
819
5b924b9b
AF
8202002-09-18 Adam Fedor <fedor@gnu.org>
821
822 * MAINTAINERS: Add myself to the Write After Approval list.
823
5afc051b
JB
8242002-09-18 Jim Blandy <jimb@redhat.com>
825
826 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
827 texthigh and textlow to reader-specific structs caused
828 objfile_relocate to miss them. This is fixable, but the work that
829 the change was supposed to prepare GDB for never got done anyway.
830
eb944380
DC
8312002-09-18 David Carlton <carlton@math.stanford.edu>
832
833 * MAINTAINERS: Alphabetize Write After Approval list.
834
948e66d9
DJ
8352002-09-18 Daniel Jacobowitz <drow@mvista.com>
836
837 Fix PR gdb/709
838 * values.c (value_static_field): Call read_var_value.
839
dc604539
AC
8402002-09-18 Andrew Cagney <ac131313@redhat.com>
841
842 * valops.c (hand_function_call): Align the initial stack pointer
843 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
844 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
845 return value.
846 * mips-tdep.c (mips_frame_align): New function.
847 (mips_gdbarch_init): Set frame_align.
848 * gdbarch.sh (FRAME_ALIGN): New method.
849 * gdbarch.h, gdbarch.c: Re-generate.
850
cb7e422f
ML
8512002-09-18 Michal Ludvig <mludvig@suse.cz>
852
853 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
854 registers.
855
a094c6fb
AC
8562002-09-17 Andrew Cagney <ac131313@redhat.com>
857
858 * NEWS: Mention that MIPS $fp behavior changed.
859 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
860 reference to FP_REGNUM.
861 (mipsnbsd_cannot_store_register): Ditto.
862 * mips-linux-nat.c: Update copyright.
863 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
864 (mips_linux_cannot_store_register): Ditto.
865 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
866 * config/mips/tm-mips.h: Update copyright.
867 (FP_REGNUM): Delete macro.
868 (MIPS_REGISTER_NAMES): Replace "fp" with "".
869 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
870 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
871 (mips_r3041_reg_names, mips_r3051_reg_names)
872 (mips_r3081_reg_names): Replace "fp" with "".
873 Fix PR gdb/480.
874
45cf40d1
TR
8752002-09-17 Theodore A. Roth <troth@verinet.com>
876
877 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
878 generic_read_register_dummy() (PR gdb/703).
879 (avr_push_return_address): #if 0 out unused vars.
880 (avr_gdbarch_init): Enable use of avr_push_return_address().
881
c7e701b5
MS
8822002-09-17 Michael Snyder <msnyder@redhat.com>
883
d76ba2a5 884 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
885 RTE will take care of it.
886
20bcf01c
AC
8872002-09-17 Andrew Cagney <ac131313@redhat.com>
888
889 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
890 invalid, return SP_REGNUM.
891
009a9971 8922002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
893
894 * mips-tdep.c (mips_pop_frame): Read saved values of floating
895 point registers without sign extension.
896
135c175f
AC
8972002-09-17 Andrew Cagney <cagney@redhat.com>
898
899 * blockframe.c (deprecated_read_register_dummy): Rename
900 generic_read_register_dummy.
901 * frame.c (frame_unwind_signed_register): New function.
902 (frame_unwind_unsigned_register): New function.
903 * frame.h (frame_unwind_signed_register): Declare.
904 (frame_unwind_unsigned_register): Declare.
905 (deprecated_read_register_dummy): Rename
906 generic_read_register_dummy.
907
908 * h8300-tdep.c (h8300_frame_chain): Update.
909 (h8300_frame_saved_pc): Update.
910 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
911 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
912 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
913 (s390_frame_chain): Update.
914 * v850-tdep.c (v850_find_callers_reg): Update.
915 (v850_frame_saved_pc): Update.
916 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
917 (m32r_find_callers_reg): Update.
918 (m32r_frame_saved_pc): Update.
919 * sh-tdep.c (sh_find_callers_reg): Update.
920 (sh64_get_saved_pr): Update.
921 (sh_init_extra_frame_info): Update.
922 (sh_init_extra_frame_info): Update.
923 (sh64_init_extra_frame_info): Update.
924 (sh64_init_extra_frame_info): Update.
925 * mcore-tdep.c (mcore_find_callers_reg): Update.
926 (mcore_frame_saved_pc): Update.
927 (mcore_init_extra_frame_info): Update.
928 * i386-tdep.c (i386_frame_saved_pc): Update.
929 * ia64-tdep.c (ia64_frame_saved_pc): Update.
930 (ia64_init_extra_frame_info): Update.
931 (ia64_init_extra_frame_info): Update.
932 * d10v-tdep.c (d10v_frame_saved_pc): Update.
933 * cris-tdep.c (cris_init_extra_frame_info): Update.
934 * avr-tdep.c (avr_frame_chain): Update.
935 (avr_init_extra_frame_info): Update.
936 (avr_frame_saved_pc): Update.
937 * arm-tdep.c (arm_find_callers_reg): Update.
938 (arm_init_extra_frame_info): Update.
939 (arm_frame_saved_pc): Update.
940
a741e514
TT
9412002-09-17 Tom Tromey <tromey@redhat.com>
942
943 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
944 is "'".
945
d1a8e808
CV
9462002-09-17 Corinna Vinschen <vinschen@redhat.com>
947
948 * MAINTAINERS: Remove "non multi-arched" text from h8300.
949 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
950 NEXT_PROLOGUE_INSN.
951 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
952 NEXT_PROLOGUE_INSN.
953
d9025a18
JB
9542002-09-16 Joel Brobecker <brobecker@gnat.com>
955
956 * osfsolib.c: Remove file, replaced by solib-osf.c.
957 * Makefile.in: Remove compilation rules for osfsolib.c.
958
1b2ef1b6
DC
9592002-09-16 David Carlton <carlton@math.stanford.edu>
960
961 * cp-valprint.c (cp_print_class_method): Correct args to
962 check_stub_method_group.
963
928e48af
CV
9642002-09-16 Corinna Vinschen <vinschen@redhat.com>
965
966 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
967 `set architecture'. Unify naming convention of functions.
968 (h8300_skip_prologue): Improve prologue analysis.
969 (h8300_push_arguments): Rewritten to more closely match GCC's
970 bizarre argument-passing behavior, along with the comment describing
971 said behavior.
972 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
973 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
974 sim, remote-e7000.c, remote-hms.c and remote.c
975
5e3397bb
MK
9762002-09-15 Mark Kettenis <kettenis@gnu.org>
977
978 * i386-tdep.c (gdb_print_insn_i386): Removed.
979 (i386_print_insn): New function.
980 (i386_gdbarch_init): Set print_insn to i386_print_insns.
981 (_initialize_i386_tdep): Don't initialize tm_print_insn and
982 tm_print_insn_info.
983
f710f4fc
MK
9842002-09-14 Mark Kettenis <kettenis@gnu.org>
985
986 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
987 zero.
988
db54fef4
CV
9892002-09-14 Corinna Vinschen <vinschen@redhat.com>
990
991 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
992 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
993 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
994
2becadee
CF
9952002-09-13 Christopher Faylor <cgf@redhat.com>
996
997 * win32-nat.c (child_create_inferior): Honor 'tty' command.
998
de17c821
DJ
9992002-09-13 Daniel Jacobowitz <drow@mvista.com>
1000
1001 * gdbtypes.c (check_stub_method): Make static.
1002 (check_stub_method_group): New function.
1003 * gdbtypes.h: Update prototypes.
1004 * cp-support.c: New file.
1005 * cp-support.h: New file.
1006
1007 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1008 (update_method_name_from_physname): New function.
1009 (read_member_functions): Correct method names for operators
1010 and v3 constructors/destructors. Separate v2 constructors and
1011 destructors.
1012 * Makefile.in (stabsread.o): Update dependencies.
1013 (SFILES): Add cp-support.c.
1014 (COMMON_OBS): Add cp-support.o.
1015 (cp_support_h, cp-support.o): Add.
1016
1017 * cp-valprint.c (cp_print_class_method): Call
1018 check_stub_method_group instead of check_stub_method. Remove
1019 extraneous QUITs.
1020 * p-valprint.c (pascal_object_print_class_method): Likewise.
1021 * valops.c (search_struct_method): Likewise.
1022 (find_method_list, value_struct_elt_for_reference): Likewise.
1023
e76cff22
AC
10242002-09-13 Andrew Cagney <cagney@redhat.com>
1025
1026 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1027 * gdbarch.h, gdbarch.c: Regenerate.
1028
905abb3f
AC
10292002-09-13 Andrew Cagney <ac131313@redhat.com>
1030
1031 * frame.c (find_saved_register): Delete function.
1032 * frame.h (find_saved_register): Delete declaration.
1033 Fix PR gdb/631.
1034
64159455
AC
1035Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1036
1037 * mips-tdep.c (read_next_frame_reg): Re-hack using
1038 frame_register_unwind.
1039
795e1e11
AC
1040Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1041
1042 * mips-tdep.c (mips_get_saved_register): Re-hack using
1043 frame_register_unwind.
1044
5720643c
JB
10452002-09-12 Joel Brobecker <brobecker@gnat.com>
1046
1047 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1048 vector. Will be useful for Interix.
1049 * gdbarch.h, gdbarch.c: Regenerate.
1050
1051 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1052 name of the malloc function by NAME_OF_MALLOC.
1053
3bada2a2
JB
10542002-09-12 Joel Brobecker <brobecker@gnat.com>
1055
1056 * value.h (find_function_in_inferior): Add const keyword to
1057 one of the parameters. Allows us to invoke this function with
1058 a const char *.
1059 * valops.c (find_function_in_inferior): Likewise.
1060
3db26b01
JB
10612002-09-12 Joel Brobecker <brobecker@gnat.com>
1062
1063 * exec.c (xfer_memory): Fix compilation warning with old versions
1064 of GCC.
1065 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1066
17c5ed2c
DC
10672002-09-12 David Carlton <carlton@math.stanford.edu>
1068
1069 * symtab.h: Run through gdb_indent.h.
1070 Add 2002 to Copyright year list.
1071
ecd1107e
AM
10722002-09-12 Alan Modra <amodra@bigpond.net.au>
1073
1074 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1075 mach constants.
1076 * MAINTAINERS: Add myself to write after approval list.
1077
e64f66d1
JB
10782002-09-11 J. Brobecker <brobecker@gnat.com>
1079
1080 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1081
f9395794
JB
10822002-09-11 J. Brobecker <brobecker@gnat.com>
1083
1084 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1085 Interix.
1086
1a303dec
MS
10872002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1088
1089 * procfs.c (do_detach): Clear current signal, not just fault.
1090 Corrects problem with breakpoint trap signal leaking to detached
1091 process on Tru64.
1092
c0219d42
MS
10932002-09-10 Michael Snyder <msnyder@redhat.com>
1094
1095 * buildsym.c (finish_block): Protect against null pointer.
1096
9d84ac84
AC
10972002-09-10 Andrew Cagney <cagney@redhat.com>
1098
1099 * infcmd.c (default_print_registers_info): Send all output to
1100 ``file'' instead of ``gdb_stdout''.
1101
77d8f2b4
MS
11022002-09-10 Michael Snyder <msnyder@redhat.com>
1103
1104 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1105 LONGEST, and use signed register read (addresses are sign-
1106 extended for mips).
1107
99656a61
SC
11082002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1109
1110 * event-loop.c (gdb_do_one_event): Make public.
1111 * event-loop.h (gdb_do_one_event): Declare.
1112
da12f4d8
JL
11132002-09-10 Jeff Law <law@redhat.com>
1114
1115 * infttrace.c (child_resume): Simplify and rework to avoid
1116 TT_PROC_CONTINUE.
1117
d0aee0c4
FF
11182002-09-09 Fred Fish <fnf@intrinsity.com>
1119
1120 * printcmd.c (print_scalar_formatted): "len" is the number of
1121 target bytes, NOT the number of target bits.
1122
7cb3ec5e
EZ
11232002-09-09 Elena Zannoni <ezannoni@redhat.com>
1124
1125 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1126 * top.c (init_main): Set rl_terminal_name.
1127
4dc81987
AS
11282002-09-08 Aidan Skinner <aidan@velvet.net>
1129
1130 * ada-lang.c (ada_array_bound, ada_type_match,
1131 _initialize_ada_language): Fix K&R definitions.
1132 * ada-tasks.c (get_current_task): Fix K&R definitions.
1133 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1134
842330b4
CF
11352002-09-07 Christopher Faylor <cgf@redhat.com>
1136
1137 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1138 Add XP.
1139
43156d82
MK
11402002-09-06 Mark Kettenis <kettenis@gnu.org>
1141
66da5fd8
MK
1142 * i386-tdep.c (i386_register_virtual_type,
1143 i386_register_convertible, i386_register_convert_to_virtual,
1144 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1145 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1146 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1147 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1148 Don't set push_arguments twice.
1149
4b218c18
MK
1150 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1151 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1152 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1153 sigtramp_end to NULL.
1154 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1155 defines.
1156 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1157
4cc314d5
MK
1158 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1159 whitespace.
1160
43156d82
MK
1161 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1162 * gdbarch.h, gdbarch.c: Re-generate.
1163 * blockframe.c (find_pc_sect_partial_function): Convert to use
1164 SIGTRAMP_START_P predicate.
1165
6672060b
MS
11662002-09-05 Michael Snyder <msnyder@redhat.com>
1167
a90c3637
MS
1168 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1169 generic_dummy_frame method and old method. Also distinguish
1170 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 1171 (arm_extract_return_value): Use new regcache method.
a90c3637 1172
6672060b
MS
1173 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1174 adjustment that doesn't conform to the ABI.
1175 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1176 saved regcache, not from current regcache.
1177
299ffc64
AC
11782002-09-05 Andrew Cagney <ac131313@redhat.com>
1179
1180 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1181 * README: Update.
1182
a3a2ee65
JT
11832002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1184
1185 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1186 if arm_apcs_32 is false.
1187
2bc7eea9
AC
11882002-09-04 Andrew Cagney <ac131313@redhat.com>
1189
1190 GDB 5.3 branch created.
1191
8a55a7c5
TR
11922002-09-03 Theodore A. Roth <troth@verinet.com>
1193
1194 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1195 generic_unwind_get_saved_register.
1196
e26fb1d7
DC
11972002-09-03 David Carlton <carlton@math.stanford.edu>
1198
1199 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1200 argument (PR gdb/653). Update call to smash_to_method_type.
1201 (read_structure_scope): Update call to dwarf2_add_member_fn.
1202
30d52491
ML
12032002-09-03 Michal Ludvig <mludvig@suse.cz>
1204
1205 * x86-64-linux-tdep.c: Include gdb_string.h
1206 * x86-64-linux-nat.c: Ditto.
1207
06891d83
JT
12082002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1209
1210 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1211 when YYDEBUG is set to 1.
1212 * c-exp.y: Likewise.
1213 * f-exp.y: Likewise.
1214 * jv-exp.y: Likewise.
1215 * m2-exp.y: Likewise.
1216 * p-exp.y: Likewise.
1217
7d400e77
JT
12182002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1219
1220 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1221 dependency list.
1222 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1223 solib_svr4_fetch_link_map_offsets to
1224 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1225 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1226 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1227 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1228 solib-svr4.o, and solib-legacy.o.
1229 * config/i386/tm-nbsd.h: Include solib.h.
1230
704a27c4
JT
12312002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1232
1233 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1234 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1235 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1236 comment noting that this needs its own target configuration.
1237 * config/i386/nbsd.mt: New file.
1238 * config/i386/nbsdaout.mt: Remove.
1239 * config/i386/nbsdelf.mt: Ditto.
1240 * config/i386/tm-nbsdaout.h: Ditto.
1241
d66198e1
JT
12422002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1243
1244 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1245 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1246 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1247 tdep->sigtramp_end.
1248 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1249 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1250 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1251
3cac699e
JT
12522002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1253
1254 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1255 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1256 * i386-tdep.h (i386bsd_init_abi): New prototype.
1257 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1258 function declaration.
1259 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1260 for NetBSD-a.out or NetBSD-ELF.
1261 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1262 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1263 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1264 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1265 and nbsd-tdep.h.
1266 (i386nbsd_pc_in_sigtramp): New function.
1267 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1268 i386nbsd_pc_in_sigtramp.
1269 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1270 and i386nbsdelf_init_abi OS ABI handlers.
1271 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1272 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1273
7010ca0a
MK
12742002-09-02 Mark Kettenis <kettenis@gnu.org>
1275
1276 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1277 registers if the target really has them.
1278
6dd93b72
JT
12792002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1280
1281 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1282 than nbsd-tdep.h.
1283
2ca8ae21
JT
12842002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1285
1286 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1287 list.
1288 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1289 (alphanbsd_skip_sigtramp_frame): New functions.
1290 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1291 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1292 to alphanbsd_sigcontext_addr.
1293
3d9b49b0
JT
12942002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1295
1296 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1297 list.
1298 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1299 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1300 nbsd_pc_in_sigtramp.
1301 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1302 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1303 * nbsd-tdep.c: Include gdb_string.h.
1304 (nbsd_pc_in_sigtramp): New function.
1305 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1306 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1307 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1308 ppcnbsd_pc_in_sigtramp.
1309 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1310 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1311 shnbsd_pc_in_sigtramp.
1312 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1313 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1314 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1315
c860120c
PM
13162002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1317
1318 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1319 watchpoints to NULL.
1320 (insert_breakpoints): set val field of watchpoints if NULL.
1321
1322
c7612d53
JB
13232002-08-29 Jim Blandy <jimb@redhat.com>
1324
1325 * symtab.c (lookup_symbol_aux): In the cases where we find a
1326 minimal symbol of an appropriate name and use its address to
1327 select a symtab to read and search, use `name' (as passed to us)
1328 as the demangled name when searching the symtab's global and
1329 static blocks, not the minsym's name.
1330
66609862
KS
13312002-08-29 Keith Seitz <keiths@redhat.com>
1332
1333 * stack.c (print_frame_info_base): Always set current_source_symtab
1334 and current_source_line.
1335
151fefe2
JB
13362002-08-29 Donn Terry <donnte@microsoft.com>
1337
1338 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1339
bfb3754e
KS
13402002-08-28 Keith Seitz <keiths@redhat.com>
1341
1342 * stack.c (select_frame): Add FIXME concerning selected-frame
1343 events.
1344 (select_frame_command): Send selected-frame-level-changed
1345 event notification, but only if the level actually changed.
1346 (up_silently_base): Add selected-frame-level-changed event
1347 notification.
1348 (down_silently_base): Likewise.
1349
e822a2a0
AC
13502002-08-28 Andrew Cagney <ac131313@redhat.com>
1351
1352 * Makefile.in: Update dependencies for all gdb/*.c files.
1353
309367d4
TT
13542002-08-27 Tom Tromey <tromey@redhat.com>
1355
1356 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1357 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1358 Update dependencies.
1359 * i387-tdep.c: Include gdb_string.h.
1360 * osabi.c: Likewise.
1361 * i386-linux-nat.c: Likewise.
1362 * lin-lwp.c: Likewise.
1363 * ax-gdb.c: Likewise.
1364 * signals/signals.c: Likewise.
1365 * jv-valprint.c: Likewise.
1366 * p-lang.c: Likewise.
1367 * c-valprint.c: Likewise.
1368 * cp-abi.c: Likewise.
1369
e1507482
EZ
13702002-08-27 Elena Zannoni <ezannoni@redhat.com>
1371
1372 * cli/cli-script.h (copy_command_lines): Export.
1373 * breakpoint.c: Include cli/cli-script.h.
1374 * Makefile.in (breakpoint.o): Update dependencies.
1375
c6510018
MS
13762002-08-26 Michael Snyder <msnyder@redhat.com>
1377
1378 * breakpoint.c (insert_breakpoints): Protect all references
1379 to 'process_warning'. Shorten long lines.
1380
c2b8ed2c
MS
13812002-08-26 Joel Brobecker <brobecker@gnat.com>
1382
1383 * cli/cli-script.c (copy_command_lines): New function.
1384 * defs.h (copy_command_lines): Export.
1385 * testsuite/gdb.base/commands.exp: New tests for commands
1386 attached to a temporary breakpoint, and for commands that
1387 delete the breakpoint they are attached to.
1388
13892002-08-26 Michael Snyder <msnyder@redhat.com>
1390
1391 * breakpoint.c (bpstat_stop_status): Instead of copying the
1392 pointer to the breakpoint commands struct, make a new copy
1393 of the struct and point to that.
1394 (bpstat_clear): Free the commands struct.
1395 (bpstat_clear_actions): Free the commands struct.
1396 (bpstat_do_actions): Free the command actions. Also execute
1397 the local cleanups, instead of deleting them.
1398 (delete_breakpoint): Leave the commands field of the bpstat
1399 chain alone -- it will be freed later.
1400
64b84175
KB
14012002-08-26 Kevin Buettner <kevinb@redhat.com>
1402
1403 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1404 deleted in 2002-08-20 commit. This function is still used by
1405 ppc-linux-nat.c.
1406
55970da6
KS
14072002-08-26 Keith Seitz <keiths@redhat.com>
1408
1409 * gdb-events.sh: Add selected-frame-level-changed event.
1410 * gdb-events.c: Regenerated.
1411 * gdb-events.h: Regenerated.
1412
a790ad35
SC
14132002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1414
1415 Fix PR gdb/393:
1416 * inflow.c (terminal_save_ours): New function to save terminal
1417 settings.
1418 * inferior.h (terminal_save_ours): Declare.
1419 * target.c (debug_to_terminal_save_ours): New function.
1420 (cleanup_target): Defaults to_terminal_save_ours.
1421 (update_current_target): Inherit to_terminal_save_ours.
1422 (setup_target_debug): Set to_terminal_save_ours.
1423 * target.h (target_terminal_save_ours): New to save terminal settings.
1424 (target_ops): New member to_terminal_save_ours.
1425 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1426 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1427 * inftarg.c (init_child_ops): Likewise.
1428 * m3-nat.c (init_m3_ops): Likewise.
1429 * procfs.c (init_procfs_ops): Likewise.
1430 * wince.c (init_child_ops): Likewise.
1431 * win32-nat.c (init_child_ops): Likewise.
1432 * sol-thread.c (init_sol_thread_ops): Likewise.
1433
c00dcbe9
MK
14342002-08-26 Mark Kettenis <kettenis@gnu.org>
1435
3d7f4f49
MK
1436 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1437 use regcache_* functions.
1438 (i386_gdbarch_init): Set store_return_value instead of
1439 deprecated_store_return_value.
1440
c00dcbe9
MK
1441 * regcache.c (regcache_raw_write_signed,
1442 regcache_raw_write_unsigned): New functions.
1443 * regcache.h (regcache_raw_write_signed,
1444 regcache_raw_write_unsigned): New prototypes.
1445
0e0d15ca
AC
14462002-08-25 Andrew Cagney <ac131313@redhat.com>
1447
1448 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1449 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1450 source file dependencies. Cleanup corresponding generator rules.
1451
d3b22ed5
AC
14522002-08-25 Andrew Cagney <ac131313@redhat.com>
1453
1454 * regcache.h (register_offset_hack): Declare.
1455 (regcache_cooked_read_using_offset_hack): Declare.
1456 (regcache_cooked_write_using_offset_hack): Declare.
1457
1458 * regcache.c (register_offset_hack): New function.
1459 (regcache_cooked_read_using_offset_hack): New function.
1460 (regcache_cooked_write_using_offset_hack): New function.
1461 (regcache_dump): Check that the registers, according to their
1462 offset, are packed hard against each other.
1463 (cooked_xfer_using_offset_hack): New function.
1464
bb425013
AC
14652002-08-25 Andrew Cagney <ac131313@redhat.com>
1466
1467 * regcache.c (struct regcache_descr): Add field register_type.
1468 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1469 in as a parameter
1470 (init_regcache_descr): Initialize register_type. Pass the descr
1471 to init_legacy_regcache_descr. Use register_type instead of
1472 REGISTER_VIRTUAL_TYPE.
1473 (register_type): New function.
1474 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1475 * regcache.h (register_type): Declare.
1476
d0403e00
AC
14772002-08-25 Andrew Cagney <ac131313@redhat.com>
1478
1479 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1480 instead of deprecated_store_return_value. Fix fallout from
1481 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1482
0ed04cce
AC
14832002-08-25 Andrew Cagney <ac131313@redhat.com>
1484
1485 * regcache.c (max_register_size): New function.
1486 (init_legacy_regcache_descr): Ensure that max_register_size is
1487 large enough for REGISTER_VIRTUAL_SIZE.
1488 * regcache.h (max_register_size): Declare.
1489
46d79c04
AC
14902002-08-24 Andrew Cagney <ac131313@redhat.com>
1491
1492 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1493 store_return_value.
1494 (e500_extract_return_value): Change type of valbuf pointer to
1495 void.
1496
853c7bd0
MK
14972002-08-24 Mark Kettenis <kettenis@gnu.org>
1498
cd87e769
MK
1499 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1500 workaround.
1501
853c7bd0
MK
1502 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1503 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1504 long long) to prevent compiler warning on 64-bit systems.
1505
ebba8386
AC
15062002-08-23 Andrew Cagney <cagney@redhat.com>
1507
1508 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1509 (DEPRECATED_STORE_RETURN_VALUE): New method.
1510 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1511 * gdbarch.h, gdbarch.c: Re-generate.
1512
1513 * values.c (set_return_value): Pass current_regcache to
1514 STORE_RETURN_VALUE.
1515 * arch-utils.h (legacy_store_return_value): Declare.
1516 * arch-utils.c (legacy_store_return_value): New function.
1517 (legacy_extract_return_value): Update parameters.
1518
1519 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1520 STORE_RETURN_VALUE.
1521 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1522 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1523 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1524 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1525 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1526 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1527 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1528 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1529 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1530 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1531
1532 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1533 * i386-tdep.c (i386_extract_return_value): Update.
1534 * arch-utils.c (legacy_extract_return_value): Update.
1535 * frv-tdep.c (frv_gdbarch_init): Update.
1536 * cris-tdep.c (cris_gdbarch_init): Update.
1537 * d10v-tdep.c (d10v_gdbarch_init): Update.
1538 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1539 * m68k-tdep.c (m68k_gdbarch_init): Update.
1540 * mcore-tdep.c (mcore_gdbarch_init): Update.
1541 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1542 * s390-tdep.c (s390_gdbarch_init): Update.
1543 * sparc-tdep.c (sparc_gdbarch_init): Update.
1544 * sh-tdep.c (sh_gdbarch_init): Update.
1545 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1546 * v850-tdep.c (v850_gdbarch_init): Update.
1547 * avr-tdep.c (avr_gdbarch_init): Update.
1548 * ia64-tdep.c (ia64_gdbarch_init): Update.
1549 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1550 * vax-tdep.c (vax_gdbarch_init): Update.
1551 * alpha-tdep.c (alpha_gdbarch_init): Update.
1552 * arm-tdep.c (arm_gdbarch_init): Update.
1553 * mips-tdep.c (mips_gdbarch_init): Update.
1554 * i386-tdep.c (i386_gdbarch_init): Update.
1555
5bd8c6d0
AC
15562002-08-23 Andrew Cagney <ac131313@redhat.com>
1557
1558 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1559 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1560
e73e1724
MK
15612002-08-24 Mark Kettenis <kettenis@gnu.org>
1562
1563 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1564 problems.
1565
3e6564e1
JB
15662002-08-23 Joel Brobecker <brobecker@gnat.com>
1567
1568 * infrun.c (handle_inferior_event): Move a comment outside of a
1569 function call, in order to avoid indent reformatting this part
1570 of the code in an unreadable way.
1571
81d0cc19
GS
15722002-08-23 Grace Sainsbury <graces@redhat.com>
1573
1574 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1575 when breakpoints fail. Move general breakpoint error messages to
1576 insert_breakpoints.
1577 * breakpoint.c (insert_breakpoints): Change warnings when
1578 breakpoints are nto inserted to specify the type. Remove call to
1579 memory_error when hardware breakpoints can't be inserted. Remove
1580 multiple calls to warning so all messages are sent to the user at
1581 once.
1582 (delete_breakpoints): Make insert error messsages more explicit.
1583
17574093
DJ
15842002-08-23 Daniel Jacobowitz <drow@mvista.com>
1585
1586 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1587 gdbserver/ChangeLog.
1588
8acc2935
MK
15892002-08-23 Mark Kettenis <kettenis@gnu.org>
1590
dfe01d39
MK
1591 * i386-tdep.c: Include "objfiles.h".
1592 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1593 skip_trampoline_code.
1594 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1595 (CPLUS_MARKER): Define to '.'.
1596
8acc2935
MK
1597 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1598 member.
1599 (linux_corefile_thread_callback): Increase args->num_notes.
1600 (linux_make_note_section): Initialize thread_args.num_notes, and
1601 use it to determine whether notes for any threads were created.
1602
151fefe2 16032002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1604
1605 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1606 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1607 and PCUNKILL.
1608 (write_with_trace): Conditionalize out the switch branch handling
1609 PCSHOLD if the corresponding macro is not defined. Likewise for
1610 PRSABORT and PRSTOP.
1611 This change will be needed by the Interix port.
1612
e1507482
EZ
16132002-08-22 Elena Zannoni <ezannoni@redhat.com>
1614
1615 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1616 write_register wherever possible instead of manipulating the
1617 register bytes directly.
1618 Assign VALUE_CONTENTS to a variable and use that.
1619 The GPR numbers are now dependent on the architecture.
1620
96ff0de4
EZ
16212002-08-22 Elena Zannoni <ezannoni@redhat.com>
1622
1623 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1624 ev_offset fields.
1625 (skip_prologue): Add support for BookE/e500 instructions.
1626 (e500_extract_return_value): New function.
1627 (frame_get_saved_regs): Add support for saving ev registers and
1628 pseudo gpr's.
1629 (e500_store_return_value): New function.
1630 (rs6000_gdbarch_init): Move up default intializations of
1631 deprecated_extract_return_value and store_return_value. Overwrite
1632 init of store_return_value with e500 specific version.
1633 Set extract_return_value for e500.
1634
fbefca5b
EZ
16352002-08-22 Elena Zannoni <ezannoni@redhat.com>
1636
1637 * blockframe.c (generic_call_dummy_register_unwind): Use
1638 regcache_cooked_read to catch cases in which the variable is
1639 stored in a pseudo register.
1640
4d210288
AC
16412002-08-22 Andrew Cagney <cagney@redhat.com>
1642
1643 * NEWS: Mention that the i960 has been made obsolete.
1644 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1645 i960-tdep.c
1646 (remote-nrom.o): Obsolete target.
1647 (remote-nindy.o, i960-tdep.o): Ditto.
1648 * remote-nrom.c: Make file obsolete.
1649 * remote-nindy.c, remote-vx960.c: Ditto.
1650 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1651 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1652 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1653 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1654 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1655 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1656 i960-*-vxworks* obsolete.
1657 * MAINTAINERS: Note that the i960 is obsolete.
1658
6c0c456d
CV
16592002-08-21 Corinna Vinschen <vinschen@redhat.com
1660
1661 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1662 detach to allow reinitialization.
1663
9f9d12b3
AC
16642002-08-22 Andrew Cagney <ac131313@redhat.com>
1665
1666 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1667 attempt).
1668
ebeb39fe
JB
16692002-08-22 Jim Blandy <jimb@redhat.com>
1670
1671 * coffread.c (coff_symfile_read): Don't try to read the line
1672 number table from disk if the image file doesn't have a symbol
1673 table; we'll never actually look at the info anyway, and Windows
1674 ships DLL's with bogus file offsets for the line number data.
1675
5bf1c677
EZ
16762002-08-21 Elena Zannoni <ezannoni@redhat.com>
1677
1678 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1679 an e500 executable.
1680
71b8ef93
MS
16812002-08-21 Michael Snyder <msnyder@redhat.com>
1682
1683 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1684 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1685 (DEFAULT_MIPS_TYPE): Delete unused macro.
1686 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1687 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1688
d174216d
JB
16892002-08-21 Jim Blandy <jimb@redhat.com>
1690
1691 * valops.c (value_cast): Simplify and correct logic for doing a
1692 static cast from a pointer to a base class to a pointer to a
1693 derived class.
1694
0ab7a791
AC
16952002-08-21 Andrew Cagney <ac131313@redhat.com>
1696
1697 * infcmd.c (default_print_registers_info): Replace
1698 do_registers_info.
1699 (registers_info): Use gdbarch_print_registers_info instead of
1700 DO_REGISTERS_INFO.
1701 * inferior.h (default_print_registers_info): Replace
1702 do_registers_info.
1703 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1704 (DO_REGISTERS_INFO): Change to a predicate function.
1705 * gdbarch.h, gdbarch.c: Regenerate.
1706
e23792cc
KS
17072002-08-21 Keith Seitz <keiths@redhat.com>
1708
1709 * gdb-events.sh: Add target-changed event.
1710 * gdb-events.c: Regenerated.
1711 * gdb-events.c: Regenerated.
1712 * valops.c (value_assign): Add target-changed event notification
1713 to inlval_register, lval_memory, and lval_reg_frame_relative.
1714
9fb14e79
JB
17152002-08-21 Joel Brobecker <brobecker@gnat.com>
1716
1717 * NEWS: Add an entry regarding the improvement of the next/step
1718 operation on Alpha Tru64 multi-processor machines.
1719
6d39a69f
AC
17202002-08-21 Andrew Cagney <ac131313@redhat.com>
1721
72acd513
AC
1722 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1723 directores.
342af04b 1724 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1725 * Makefile.in (install-gdbtk): Move to install section.
1726 (rdi-share/libangsd.a): Move to end of file.
1727
fa5f27c7
AC
17282002-08-19 Andrew Cagney <ac131313@redhat.com>
1729
1730 * frame.c (frame_register_unwind): When a register, set addrp to
1731 the register's byte.
1732
5a89d8aa
MS
17332002-08-20 Michael Snyder <msnyder@redhat.com>
1734
1735 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1736 used locally, so move them from the target machine header to here.
1737 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1738 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1739 Make static.
1740 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1741
822e978b
AC
17422002-08-20 Andrew Cagney <cagney@redhat.com>
1743
1744 * NEWS: Mention that the Apollo line was made obsolete.
1745 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1746 m68*-hp-hpux* obsolete.
1747 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1748 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1749 * buildsym.c (make_blockvector): Make static.
1750 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1751 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1752 (ALLDEPFILES): Remove dstread.c.
1753 (dstread.o): Obsolete make rule.
1754 * dstread.c: Makefile obsolete.
1755 * dst.h: Ditto.
1756 * config/m68k/hp300hpux.mt: Ditto.
1757 * config/m68k/hp300hpux.mh: Ditto.
1758 * config/m68k/hp300bsd.mt: Ditto.
1759 * config/m68k/hp300bsd.mh: Ditto.
1760 * config/m68k/apollo68b.mt: Ditto.
1761 * config/m68k/apollo68v.mh: Ditto.
1762 * config/m68k/apollo68b.mh: Ditto.
1763
e41b17f0
MS
17642002-08-20 Michael Snyder <msnyder@redhat.com>
1765
1766 * mips-tdep.c (mips_in_return_stub): Make static.
1767 (mips_gdbarch_init): Set in_solib_return_trampoline.
1768 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1769
d50355b6
MS
17702002-08-20 Michael Snyder <msnyder@redhat.com>
1771
1772 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1773 * gdbarch.c, gdbarch.h: Regenerate.
1774 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1775 Add.
1776 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1777
757a7cc6
MS
17782002-08-20 Michael Snyder <msnyder@redhat.com>
1779
1780 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1781 (mips_gdbarch_init): Set skip_trampoline_code,
1782 in_solib_call_trampoline.
1783 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1784 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1785
c8001721
EZ
17862002-08-20 Elena Zannoni <ezannoni@redhat.com>
1787
1788 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1789
1790 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1791 vector type for ev registers.
1792 (e500_pseudo_register_read): New function.
1793 (e500_pseudo_register_write): New function.
1794 (e500_dwarf2_reg_to_regnum): New function.
1795 (PPC_UISA_NOFP_SPRS): New macro.
1796 (PPC_EV_REGS): New macro.
1797 (PPC_GPRS_PSEUDO_REGS): New macro.
1798 (registers_e500): New register set for e500.
1799 (variants): Add e500 variant.
1800 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1801 before setting architectural dependent variations. Initialize ev
1802 registers numbers. Add case for e500 architecture. Set the
1803 number of pseudo registers.
1804
64366f1c
EZ
18052002-08-20 Elena Zannoni <ezannoni@redhat.com>
1806
1807 * rs6000-tdep.c: Clean up comments.
1808
7e78f0ca
AC
18092002-08-20 Andrew Cagney <cagney@redhat.com>
1810
1811 * h8300-tdep.c: Re-indent file.
1812
697f7479
JB
18132002-08-20 Jim Blandy <jimb@redhat.com>
1814
1815 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1816 default for this.
697f7479 1817
e86ae29f
KS
18182002-08-20 Keith Seitz <keiths@redhat.com>
1819
1820 * breakpoints.c (watch_command_1): Use internal breakpoint
1821 when setting a watchpoint_scope breakpoint.
1822
216b504f
EZ
18232002-08-20 Elena Zannoni <ezannoni@redhat.com>
1824
1825 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1826 (build_builtin_type_vec64i): Ditto.
1827 (build_builtin_type_vec128): Ditto.
1828 (build_builtin_type_vec128i): Ditto.
1829
f7ab6ec6
MS
18302002-08-19 Michael Snyder <msnyder@redhat.com>
1831
1832 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1833 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1834 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1835 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1836 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1837 CALL_DUMMY_ADDRESS): Delete.
1838 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1839 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1840 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1841 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1842 push_return_address.
1843 (mips_register_raw_size, mips_eabi_use_struct_convention,
1844 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1845 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1846 mips_init_extra_frame_info, mips_eabi_push_arguments,
1847 mips_n32n64_push_arguments, mips_push_return_address,
1848 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1849 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1850
b5d1566e
MS
18512002-08-19 Michael Snyder <msnyder@redhat.com>
1852
1853 * mips-tdep.c (mips_frame_num_args): New function.
1854 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1855 frame_saved_pc, frame_args_address, frame_locals_address,
1856 frame_num_args, and frame_args_skip.
1857 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1858 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1859 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1860 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1861
2f1488ce
MS
18622002-08-20 Michael Snyder <msnyder@redhat.com>
1863
1864 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1865 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1866 * mips-tdep.c (mips_store_struct_return): New function.
1867 (mips_extract_struct_value_address): New function.
1868 (mips_gdbarch_init): Set store_struct_return and
1869 extract_struct_value_address.
1870
41ff2da1
DC
18712002-08-20 David Carlton <carlton@math.stanford.edu>
1872
1873 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1874 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1875 (read_file_scope): Check that line_header is nonzero before
1876 decoding macro information.
1877
e5451d58
MK
18782002-08-20 Mark Kettenis <kettenis@gnu.org>
1879
1880 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1881 flag the general-purpose registers as floating-point on targets
1882 that don't support the floating-point registers.
1883
4a6daafa
EZ
18842002-08-20 Elena Zannoni <ezannoni@redhat.com>
1885
1886 * rs6000-tdep.c (altivec_register_p): Delete.
1887 (rs6000_do_altivec_registers): Delete.
1888 (rs6000_altivec_registers_info): Delete.
1889 (rs6000_do_registers_info): Delete.
1890 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1891 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1892
ab4327e0
EZ
18932002-08-20 Elena Zannoni <ezannoni@redhat.com>
1894
1895 * infcmd.c (do_registers_info): Print vector registers in hex
1896 format only.
1897 (print_vector_info): Check that printing registers
1898 makes sense.
1899 (print_float_info): Ditto.
1900
cb1d2653
AC
19012002-08-20 Andrew Cagney <ac131313@redhat.com>
1902
1903 * mips-tdep.c (mips_gdbarch_init): Update.
1904 (mips_o32_extract_return_value): Rewrite.
1905 (mips_o32_store_return_value): Rewrite.
1906 (mips_o32_xfer_return_value): New function.
1907 (mips_xfer_register): Tweak debug print message. Allow for
1908 buf_offset when dumping the value transfered.
1909
dfc3d9b2
AC
19102002-08-20 Andrew Cagney <ac131313@redhat.com>
1911
1912 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1913 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1914 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1915 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1916 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1917
7807aa61
MS
19182002-08-14 Michael Snyder <msnyder@redhat.com>
1919
1920 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1921
489461e2
EZ
19222002-08-19 Elena Zannoni <ezannoni@redhat.com>
1923
1924 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1925 register.
1926 (P): New macro to define a register as a pseudo register.
1927 (R, R4, R8, R16, FR32, R64, R0): Updated.
1928 (struct variant): Add new fields for number of pseudo registers
1929 and number of total registers.
1930 (tot_num_registers): New macro replacing....
1931 (num_registers): ...deleted macro.
1932 (num_registers): New function.
1933 (num_pseudo_registers): New function.
1934 (variants): Update all variants to intialize new fields correctly.
1935 Postpone initialization of number of pseudo regs and real regs.
1936 (init_variants): New function.
1937 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1938 registers offsets.
1939
fcaffe4c
DC
19402002-08-19 David Carlton <carlton@math.stanford.edu>
1941
2c2738a0
DC
1942 * valops.c (search_struct_field): Change error message to treat
1943 return value of 0 from value_static_field as meaning that field is
1944 optimized out.
1945 (value_struct_elt_for_reference): Ditto.
1946 * values.c (value_static_field): Treat an unresolved location the
1947 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
1948 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1949 enclosed. Fix PR gdb/574.
fcaffe4c
DC
1950 * MAINTAINERS: Add self to Write After Approval list.
1951
88658117
AC
19522002-08-19 Andrew Cagney <ac131313@redhat.com>
1953
1954 * mips-tdep.c (mips_xfer_register): New function.
1955 (mips_n32n64_extract_return_value): Rewrite.
1956 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1957 instead of deprecated_extract_return_value.
1958
21283beb
EZ
19592002-08-19 Elena Zannoni <ezannoni@redhat.com>
1960
1961 * rs6000-tdep.c (TDEP): Delete macro.
1962 (branch_dest): Replace use of TDEP macro with its body.
1963 (rs6000_pop_frame): Ditto.
1964 (rs6000_push_arguments): Ditto.
1965 (rs6000_skip_trampoline_code): Ditto.
1966 (rs6000_frame_saved_pc): Ditto.
1967 (rs6000_frame_chain): Ditto.
1968 (rs6000_register_name): Ditto.
1969 (rs6000_register_byte): Ditto.
1970 (rs6000_register_raw_size): Ditto.
1971 (rs6000_register_virtual_type): Ditto.
1972 (rs6000_register_convertible): Ditto.
1973 (rs6000_convert_from_func_ptr_addr): Ditto.
1974
bf072999
DJ
19752002-08-19 Daniel Jacobowitz <drow@mvista.com>
1976
1977 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1978 conditionally.
1979 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1980 MIPS_LINUX_JB_ELEMENT_SIZE.
1981 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1982 for MAX_REGISTER_RAW_SIZE arrays.
1983 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1984 MIPS_LINUX_JB_ELEMENT_SIZE.
1985
9b949a49
PM
19862002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1987
1988 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1989
6d3e79c6
AS
19902002-08-19 Aidan Skinner <aidan@velvet.net>
1991
1992 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1993 ada-valprint.c ada-tasks.c.
1994 (YYFILES): Add ada-exp.y.
1995 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1996 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1997 (ada-exp.tab.o): New target.
1998
06c0b04e
AC
19992002-08-18 Andrew Cagney <ac131313@redhat.com>
2000
2001 * regcache.c (regcache_xfer_part): New function.
2002 (regcache_raw_read_part): New function.
2003 (regcache_raw_write_part): New function.
2004 (regcache_cooked_read_part): New function.
2005 (regcache_cooked_write_part): New function.
2006 * regcache.h (regcache_raw_read_part): Declare.
2007 (regcache_raw_write_part): Declare.
2008 (regcache_cooked_read_part): Declare.
2009 (regcache_cooked_write_part): Declare.
2010
92d1e331
DJ
20112002-08-18 Daniel Jacobowitz <drow@mvista.com>
2012
2013 * remote.c (remote_open_1): Add async_p.
2014 (remote_async_open_1): Delete.
2015 (open_remote_target): Delete.
2016 (remote_open, extended_remote_open): Update calls to remote_open_1.
2017 (remote_async_open, extended_remote_async_open): Call
2018 remote_open_1 instead of remote_async_open_1.
2019
247055de
MK
20202002-08-19 Mark Kettenis <kettenis@gnu.org>
2021
2022 * blockframe.c: Fix a few coding standard violations.
2023
641eda39
MK
20242002-08-19 Mark Kettenis <kettenis@gnu.org>
2025
0b717710
MK
2026 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2027 here from ...
2028 * config/i386/tm-i386sco5.h: ... here. File removed.
2029 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2030
26d28e12 2031 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
2032 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2033 (TM_FILE): Set to tm-i386.h.
2034 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2035 * config/i386/tm-i386v.h: Remove file.
2036 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2037 instead of "i386/tm-i386v.h".
2038 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2039 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2040 "i386/tm-i386v.h".
2041 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2042 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2043 "i386/tm-i386.h".
2044
d4e0bab4
MK
20452002-08-18 Mark Kettenis <kettenis@gnu.org>
2046
2047 * config/i386/nm-i386v.h: Add protection against
2048 multiple-inclusion.
2049 (i386_register_u_addr): Remove prototype.
2050 (register_u_addr): New prototype.
2051 (REGISTER_U_ADDR): Redefine accordingly.
2052 * i386v-nat.c: Improve several comments.
2053 (i386_register_u_addr): Change signature and rename to
2054 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2055 ubase variable.
2056
46cac009
AC
20572002-08-18 Andrew Cagney <ac131313@redhat.com>
2058
2059 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2060 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2061 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2062 deprecated_extract_return_value.
2063 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2064 rename mips_o32o64_push_arguments.
2065 (mips_gdbarch_init): Update.
2066 (mips_extract_return_value): Delete.
2067 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2068 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2069 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2070 (mips_n32n64_extract_return_value): Clone
2071 mips_extract_return_value.
2072 (mips_store_return_value): Delete.
2073 (mips_o32_store_return_value): Clone mips_store_return_value.
2074 (mips_o64_store_return_value): Clone mips_store_return_value.
2075 (mips_eabi_store_return_value): Clone mips_store_return_value.
2076 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2077
d2e4a39e
AS
20782002-08-18 Aidan Skinner <aidan@velvet.net>
2079
0c30c098
AS
2080 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2081 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2082
20832002-08-18 Aidan Skinner <aidan@velvet.net>
2084
2085 * ada-lang.c: Run through gdb_indent.sh.
2086 * ada-lang.h: Run through gdb_indent.sh.
2087 * ada-tasks.c: Run through gdb_indent.sh.
2088 * ada-typeprint.c: Run through gdb_indent.sh.
2089 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 2090
01fc4e33
AC
20912002-08-18 Andrew Cagney <ac131313@redhat.com>
2092
2093 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2094 ABI.
2095
d8ee244c
MK
20962002-08-18 Mark Kettenis <kettenis@gnu.org>
2097
c38d8261
MK
2098 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2099
222db64c
MK
2100 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2101 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2102
c2848c82
MK
2103 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2104 write_register_gen instead of write_register_bytes.
2105
d8ee244c
MK
2106 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2107 i[3456]-*-osf1mk* configurations have been made obsolete.
2108 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2109 i[3456]86-*-osf1mk* hosts obsolete.
2110 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2111 targets obsolete.
2112 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2113 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2114 config/i386/i386m3.mt, config/i386/nm-m3.h,
2115 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2116 config/i386/i386mk.mh, config/i386/i386mk.mt,
2117 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2118 obsolete.
2119 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2120 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2121 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2122
61d8d407
AC
21232002-08-18 Andrew Cagney <ac131313@redhat.com>
2124
2125 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2126 (hppa_value_returned_from_stack): Declare.
2127 (hppa_extract_return_value): Declare.
2128 * config/pa/hppa.mt: New file.
2129 * configure.tgt: Recognize hppa*-*-*.
2130 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2131
0c52bd59
MK
21322002-08-18 Mark Kettenis <kettenis@gnu.org>
2133
2134 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2135 comment.
2136
b5686e99
MK
21372002-08-17 Mark Kettenis <kettenis@gnu.org>
2138
2139 * top.c (gdb_rl_operate_and_get_next): Make sure
2140 operate-and-get-next functions correctly even when the history
2141 list is completely filled.
2142
c1bab85b
AC
21432002-08-18 Andrew Cagney <ac131313@redhat.com>
2144
2145 * MAINTAINERS (Target Instruction Set Architectures): Rename
2146 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2147 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2148 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2149 already listed under Host/Native.
2150
2151 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2152 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2153 mips*-*-*.
2154
32089c7c
AC
21552002-08-17 Andrew Cagney <ac131313@redhat.com>
2156
2157 * config/ia64/ia64.mt: New file.
2158 * config/alpha/alpha.mt: New file.
2159 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2160 ia64-linux-gnu. Mention that ia64-elf is broken.
2161 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2162
b4671f85
MK
21632002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2164
2165 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2166 generic_func_frame_valid instead of func_frame_valid.
2167
c8edd8b4
JB
21682002-08-16 Joel Brobecker <brobecker@gnat.com>
2169
2170 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2171 procfs appears to be broken when debugging on multi-processor
2172 machines. So enable software single stepping in order to avoid
2173 using the procfs interface to do next/step operations, using
2174 internal breakpoints instead.
2175
2176 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2177 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2178 make this pc address equal to the value it would have if the
2179 system stepping capability was used. Also set a new flag used
2180 to ensure that we don't readjust the PC one more time later.
2181
2182 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2183 address by DECR_PC_AFTER_BREAK when software single step is
2184 in use for this architecture, as this has already been taken
2185 care of in handle_inferior_event().
2186
238617f6
JB
21872002-08-16 Joel Brobecker <brobecker@gnat.com>
2188
2189 * infrun.c (handle_inferior_event): Minor reformatting, to make
2190 a rather long condition expression easier to read.
2191
541a7aac
AC
21922002-08-16 Andrew Cagney <ac131313@redhat.com>
2193
2194 * Makefile.in (gdbtk.o): Move to end of file.
2195 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2196 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2197 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2198 (gdbtk-wrapper.o, gdbres.o): Ditto.
2199
f92d4a7b
AC
22002002-08-16 Andrew Cagney <ac131313@redhat.com>
2201
2202 * Makefile.in (copying.o): Separate out compile rule.
2203 (hpux-thread.o, procfs.o, signals.o): Ditto.
2204 (v850ice.o, z8k-tdep.o): Ditto.
2205 (tui-file.o): Move to TUI section.
2206 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2207 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2208
1cce71eb
JB
22092002-08-16 Joel Brobecker <brobecker@gnat.com>
2210
2211 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2212 skip_trampoline_code, for better namespace-proofing.
2213
2214 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2215
0851f23d
JB
22162002-08-16 Joel Brobecker <brobecker@gnat.com>
2217
2218 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2219
f8d40ec8
JB
22202002-08-16 Joel Brobecker <brobecker@gnat.com>
2221
2222 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2223 signal, check whether we hit a breakpoint before checking for a
2224 single step breakpoint. Otherwise, GDB fails to notice that a
2225 breakpoint has been hit when stepping onto a breakpoint.
2226
63d022e0
KS
22272002-08-16 Keith Seitz <keiths@redhat.com>
2228
2229 * gdb-events.sh (clear_gdb_event_hooks): New function.
2230 * gdb-events.c: Regenerate.
2231 * gdb-events.h: Regenerate.
2232
6e31adb3
AC
22332002-08-16 Andrew Cagney <ac131313@redhat.com>
2234
2235 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2236 not_a_sw_breakpoint.
2237 * breakpoint.h (bpstat_stop_status): Add parameter names.
2238
c8189ed1
GS
22392002-08-16 Grace Sainsbury <graces@redhat.com>
2240
2241 * remote.c (remote_insert_hw_breakpoint)
2242 (remote_remove_hw_breakpoint): Fix calculation of length field
2243 for Z-packet.
2244
d05285fa
MS
22452002-08-15 Michael Snyder <msnyder@redhat.com>
2246
466d7106
MS
2247 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2248 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2249 (supply_fpregset): Ditto.
2250
d05285fa
MS
2251 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2252 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2253 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 2254 (TARGET_READ_SP): Delete.
bf1f5b4c 2255 (DO_REGISTERS_INFO): Delete.
102182a9
MS
2256 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2257 Delete.
2258 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2259 from macros to functions.
bf1f5b4c 2260
d05285fa
MS
2261 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2262 (mips_register_convertible, mips_register_convert_to_virtual,
2263 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
2264 (mips_read_sp): New function.
2265 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
2266 (mips_do_registers_info): Make static.
2267 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
2268 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2269 (mips_register_convert_from_type, mips_register_convert_to_type):
2270 New functions.
2271 (mips_gdbarch_init): Set up function_start_offset,
2272 register_virtual_size, pc_in_sigtramp.
d05285fa 2273
e76f1f2e
AC
22742002-08-15 Andrew Cagney <ac131313@redhat.com>
2275
2276 * infcmd.c (vector_info): New function.
2277 (_initialize_infcmd): Add command "info vector".
2278 (print_vector_info): New function.
2279
2280 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2281 * gdbarch.h, gdbarch.c: Regenerate.
2282
4782dc19
AC
22832002-08-15 Andrew Cagney <ac131313@redhat.com>
2284
2285 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2286 ``print_all''. Only print vector registers when ``print_all''.
2287
23e3a7ac
AC
22882002-08-15 Andrew Cagney <ac131313@redhat.com>
2289
8e186fd6
AC
2290 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2291 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2292
23e3a7ac
AC
2293 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2294 Add `args' parameter.
2295 * gdbarch.h, gdbarch.c: Regenerate.
2296
2297 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2298
2299 * infcmd.c (float_info): Call print_float_info.
2300 (print_float_info): New function. By default, print the
2301 floating-point registers.
2302
2303 * arch-utils.h (default_print_float_info): Delete declaration.
2304 * arch-utils.c (default_print_float_info): Delete function.
2305
e0ca2bb9
MK
23062002-08-16 Mark Kettenis <kettenis@gnu.org>
2307
3f733acc
MK
2308 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2309 out define.
2310
7d8d2918
MK
2311 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2312 FRAME.
2313
1c7cc583
MK
2314 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2315 * configure.host: Make i[3456]86-*-aix host obsolete.
2316 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2317 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2318 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2319 config/i386/xm-i386aix.h: Make files obsolete.
2320 * i386aix-nat.c: Make file obsolete.
2321 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2322 (i386aix-nat.o): Make target obsolete.
2323
e0ca2bb9
MK
2324 * config/i386/nm-gnu.h: Removed.
2325 * config/i386/nm-i386gnu.h: New file.
2326 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2327 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2328 Moved here from ...
2329 * config/i386/tm-i386gnu.h: ... here. Removed.
2330 * config/i386/xm-i386gnu.h: Removed.
2331 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2332 (NAT_FILE): Set to nm-i386gnu.h.
2333 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2334 * i386-tdep.c: New file.
2335 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2336 (i386gnu-tdep.o): Specify dependencies.
2337
16057ec7 23382002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2339
6b99ee2e
MK
2340 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2341 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2342 Adjust a few comments to reflect reality a bit closer.
2343 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2344 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2345 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2346 target_insert_watchpoint, target_remove_watchpoint):
2347 Move defines to ...
2348 * config/i386/nm-i386sco5.h: ... here.
2349 (kernel_u_size): Add prototype. Improve a few comments and add
2350 protection against multiple inclusion.
2351
d9a6f65c
MK
2352 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2353 out define.
2354
047eff6a
MK
2355 * uw-thread.c (SP_ARG0): Define if not already defined.
2356 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2357
dcdb1290
MK
2358 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2359
5d2d0b2a
MK
2360 * config/i386/tm-i386.h: Don't include "regcache.h".
2361
61113f8b
MK
2362 * i387-tdep.h (i387_print_float_info): New prototype.
2363 * i387-tdep.c (print_i387_value, print_i387_ext,
2364 print_i387_status_word, print_i387_control_word): Add `struct
2365 ui_file *' argument and use it for output.
2366 (i387_print_float_info): Renamed from i387_float_info. Add
2367 `struct gdbarch *' and `struct ui_file *' arguments and use the
2368 latter for output.
2369 * i386-tdep.c: Include "i387-tdep.h".
2370 (i386_gdbarch_init): Set print_float_info.
2371 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2372 (FLOAT_INFO): Remove define.
2373
46e0f506
MS
23742002-08-13 Michael Snyder <msnyder@redhat.com>
2375
2376 * mips-tdep.c (mips_push_arguments): Rename to
2377 mips_eabi_push_arguments, and tune for EABI.
2378 (MIPS_REGS_HAVE_HOME_P): Delete.
2379 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2380 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2381 Delete references to mips_regs_have_home_p.
2382
409268de
KS
23832002-08-14 Keith Seitz <keiths@redhat.com>
2384
2385 * Makefile.in (install-gdbtk): Create insight plugin directory.
2386 Install plugins.tcl file.
2387
ffc6a242
KS
23882002-08-14 Keith Seitz <keiths@redhat.com>
2389
2390 * configure.in: Move SUBDIRS to near top of the file so that
2391 --enable options may add things to it.
2392 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2393 * configure: Regenerate.
2394
ebafbe83
MS
23952002-08-13 Michael Snyder <msnyder@redhat.com>
2396
2397 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2398 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2399 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2400
32f6f25d
AC
24012002-08-13 Andrew Cagney <ac131313@redhat.com>
2402
2403 * vax-tdep.c (vax_get_saved_register): Delete function.
2404 (vax_gdbarch_init): Update.
2405 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2406 (ns32k_gdbarch_init): Update.
2407 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2408 (alpha_gdbarch_init): Update.
2409
53826de9
AC
24102002-08-13 Andrew Cagney <cagney@redhat.com>
2411
2412 * regcache.c (init_regcache_descr): Overallocate the
2413 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2414 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2415 nr_raw_registers.
2416 (set_register_cached): Add range checking assertions. Use
2417 current_regcache.
2418
16057ec7 24192002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2420
2421 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2422 numbers for MMX registers.
2423
7b4c2dce
AC
24242002-08-13 Andrew Cagney <cagney@redhat.com>
2425
2426 * i386-tdep.c (i386_gdbarch_init): Use
2427 generic_unwind_get_saved_register.
2428
1e03ad20
KB
24292002-08-13 Kevin Buettner <kevinb@redhat.com>
2430
2431 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2432 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2433 target vector.
2434 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2435 Delete. Add comment regarding this now-deleted target method.
2436
548bcbec
SC
24372002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2438
2439 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2440 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2441 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2442 real PC and the page number (if it's within the memory bank window).
2443 (m68hc11_pseudo_register_write): Likewise when saving.
2444 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2445 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2446 (m68hc11_register_raw_size): And use 32-bit for it.
2447 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2448 16K memory bank is used by the prog; also use the virtual pc.
2449
7df11f59
SC
24502002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2451
2452 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2453 (m68hc11_gdbarch_init): Install it in gdbarch.
2454 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2455 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2456 (MSYMBOL_SIZE): New for documentation.
2457 (insn_return_kind): Enum to specify how a function returns.
2458 (frame_extra_info): Cleanup and record the return mode.
2459 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2460 register in address computation.
2461 (m68hc11_get_return_insn): New to obtain the return instruction used
2462 by the function.
2463 (m68hc11_frame_init_saved_regs): Take into account the return
2464 instruction used by the function for far and interrupt functions.
2465 (m68hc11_init_extra_frame_info): Take into account page register.
2466 (m68hc11_frame_args_address): Adjust according to the return mode.
2467 (show_regs): Print page register only when it's used.
2468
5706502a
SC
24692002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2470
2471 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2472 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2473 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2474 registers.
2475 (m68hc11_register_raw_size): Likewise.
2476
28fc6740
AC
24772002-08-13 Andrew Cagney <cagney@redhat.com>
2478
2479 * i386-tdep.c (i386_register_name): Handle mmx registers.
2480 (mmx_regnum_p): New function.
2481 (i386_mmx_names): New array.
2482 (mmx_num_regs): New variable.
2483 (i386_pseudo_register_read): New function.
2484 (i386_pseudo_register_write): New function.
2485 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2486
2487 * regcache.c (regcache_raw_read_unsigned): New function.
2488 (regcache_raw_read_signed): New function.
2489 * regcache.h (regcache_raw_read_unsigned): Declare.
2490 (regcache_raw_read_signed): Declare.
2491
a378f419
AC
24922002-08-13 Andrew Cagney <cagney@redhat.com>
2493
2494 * regcache.c (regcache_raw_read_as_address): Delete function.
2495 (regcache_cooked_read_signed): New function.
2496 (regcache_cooked_read_unsigned): New function.
2497 * regcache.h (regcache_cooked_read_signed): Declare.
2498 (regcache_cooked_read_unsigned): Declare.
2499 (regcache_raw_read_as_address): Delete declaration.
2500
2501 * blockframe.c (generic_read_register_dummy): Use
2502 regcache_cooked_read_unsigned.
2503 * i386-tdep.c (i386_extract_struct_value_address): Use
2504 regcache_cooked_read_unsigned.
2505
81967506
SC
25062002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2507
2508 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2509 double sizes according to ELF ABI flags.
2510 (gdbarch_tdep): Record elf_flags.
2511
ffe1f3ee
SC
25122002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2513
2514 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2515 (m6812_prolog): They can appear in 68HC12 function prologue.
2516 (m68hc11_frame_chain): Cleanup.
2517
98216c5d
AC
25182002-08-12 Andrew Cagney <cagney@redhat.com>
2519
2520 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2521 declarations.
2522 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2523 (i386_linux_register_raw_size): Delete function.
2524 (i386_linux_init_abi): Update.
2525 * i386-tdep.c (i386_register_raw_size): Delete function.
2526 (i386_register_byte): Delete function.
2527 (i386_gdbarch_init): Update.
2528 (i386_register_size): Delete array.
2529 (i386_register_offset): Delete array.
2530
2531 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2532 (REGISTER_RAW_SIZE): Delete macro.
2533 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2534 (REGISTER_BYTE): Delete macro.
2535
3b19021e
AS
25362002-08-11 Aidan Skinner <aidan@velvet.net>
2537
2538 * ada-lang.c (ada_lookup_partial_symbol)
2539 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2540 prototype names so that grep ^func works properly.
2541
2542 * ada-lang.c (ada_array_element_type)
2543 (ada_lookup_partial_symbol): Fix typos in parameter list.
2544
2545 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2546 Fix prototype names so that grep ^func works properly.
2547
b063e7a2
AC
25482002-08-10 Andrew Cagney <cagney@redhat.com>
2549 Elena Zannoni <ezannoni@redhat.com>
2550 Martin M. Hunt <hunt@redhat.com>
2551
2552 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2553 (build_builtin_type_vec128i): Set the vector bit.
2554 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2555 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2556 (build_builtin_type_vec64): New function.
2557 (build_builtin_type_vec64i): New function.
2558 (build_gdbtypes): Initialize builtin_type_vec64 and
2559 builtin_type_vec64i.
2560
a7e3c2ad
AC
25612002-08-09 Andrew Cagney <cagney@redhat.com>
2562
2563 * regcache.c (regcache_dump): Compare the register offset
2564 with REGISTER_BYTE.
2565 * arch-utils.c (generic_register_byte): New function.
2566 * arch-utils.h (generic_register_byte): Declare.
2567 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2568 * gdbarch.h, gdbarch.c: Regenerate.
2569
af030b9a
AC
25702002-08-09 Andrew Cagney <cagney@redhat.com>
2571
2572 * regcache.c: Include "gdbcmd.h"
2573 (_initialize_regcache): Add commands "maintenance print
2574 registers", "maintenance print raw-registers" and "maintenance
2575 print cooked-registers".
2576 (enum regcache_dump_what): Define.
2577 (dump_endian_bytes): New function.
2578 (regcache_dump): New function.
2579 (regcache_print): New function.
2580 (maintenance_print_registers): New function.
2581 (maintenance_print_raw_registers): New function.
2582 (maintenance_print_cooked_registers): New function.
2583 * Makefile.in (regcache.o): Update dependencies.
2584
cb3d25d1
MS
25852002-08-09 Michael Snyder <msnyder@redhat.com>
2586
2587 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2588 (mips_push_arguments): Correct some comments. Use paddr_nz
2589 for printing addresses in debug output. Replace static
2590 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2591 (mips_n32n64_push_arguments): New function, cloned from
2592 mips_push_arguments and tuned for the n32/n64 ABI.
2593 (mips_push_register): Buffer needs dynamic allocation.
2594 (mips_print_register): Ditto.
2595 (do_gp_register_row): Ditto.
2596 (mips_store_return_value): Ditto.
2597 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2598
2163ab9d
DH
25992002-08-09 Don Howard <dhoward@redhat.com>
2600
2601 * memattr.c (mem_info_command): Print special case of upper bound
2602 as max CORE_ADDR + 1.
2603
b78bcb18
MS
26042002-08-08 Michael Snyder <msnyder@redhat.com>
2605
2606 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2607 returns structs by ref if they're too big to fit in two registers.
2608
ffabd70d
KB
26092002-08-09 Kevin Buettner <kevinb@redhat.com>
2610
2611 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2612 saved regs value.
2613 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2614 mips_find_saved_regs().
2615 (mips_pop_frame): Likewise.
2616
fbcdb4a3
KB
26172002-08-09 Kevin Buettner <kevinb@redhat.com>
2618
2619 * blockframe.c (frame_saved_regs_register_unwind): Revise
2620 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2621 frames are in use.
2622
3c3bea1c
GS
26232002-08-09 Grace Sainsbury <graces@redhat.com>
2624
2625 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2626 T-packets; the 'a' is not taken as a register number.
2627 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2628 (remote_stopped_data_address): New functions; add to target
2629 vector.
2630 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2631 prototypes to match other implementations of this
2632 function. replace integer argument with pointer -- the length
2633 field in the Z-packet is the length of what is pointed to or 1 if
2634 pointer is null. Add to target vector.
2635 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2636 target vector.
2637
2638 From Mark Salter:
2639 * remote.c (remote_wait): Add support to extract optional
2640 watchpoint information from T-packet. Ignore unrecognized
2641 optional info in T-packet.
2642 (remote_async_wait): Ditto.
2643
5d1d95de
CV
26442002-08-09 Corinna Vinschen <vinschen@redhat.com>
2645
2646 * cli/cli-dump.c: Change fopen modes to use binary open modes
2647 as defined in include/fopen-bin.h throughout.
2648
c86b5b38
MS
26492002-08-08 Michael Snyder <msnyder@redhat.com>
2650
2651 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2652
b30590dc
KB
26532002-08-08 Kevin Buettner <kevinb@redhat.com>
2654
2655 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2656 assertion failure by returning early after a warning.
2657
498868ed
KB
26582002-08-08 Kevin Buettner <kevinb@redhat.com>
2659
2660 * mips-tdep.c (mips_find_saved_regs): Make static.
2661 (mips_frame_init_saved_regs): New function.
2662 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2663 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2664 (mips_find_saved_regs): Delete declaration.
2665
b2dd6311
GS
26662002-08-08 Grace Sainsbury <graces@redhat.com>
2667
3c3bea1c
GS
2668 * remote.c (remote_wait, remote_async_wait): Change
2669 thread_num from int to ULONGEST.
2670 (unpack_varlen_hex): Change result parameter from
2671 int * to ULONGEST *.
b2dd6311 2672
ea47855f
AC
26732002-08-08 Andrew Cagney <ac131313@redhat.com>
2674
2675 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2676 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2677 powerpc*-*-*.
2678 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2679
69db8bae
AC
26802002-08-08 Andrew Cagney <cagney@redhat.com>
2681
2682 * gcore.c (override_derive_stack_segment): Delete variable.
2683 (preempt_derive_stack_segment): Delete function.
2684 (derive_stack_segment): Delete function.
2685 (default_derive_stack_segment): Renamed to derive_stack_segment.
2686 (override_derive_heap_segment): Delete variable.
2687 (preempt_derive_heap_segment): Delete function.
2688 (derive_heap_segment): Delete function.
2689 (default_derive_heap_segment): Rename to derive_heap_segment.
2690
cb811fe7
MS
26912002-08-06 Michael Snyder <msnyder@redhat.com>
2692
2693 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2694 * mips-tdep.c (mips_EABI_use_struct_convention,
2695 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2696 New functions. (mips_use_struct_convention): Delete.
2697 (mips_gdbarch_init): set use_gdbarch_convention.
2698
8b389c40
MS
26992002-08-06 Michael Snyder <msnyder@redhat.com>
2700
2701 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2702 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2703 mips_o32_reg_struct_has_addr): New functions.
2704 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2705
5c27f28a
AC
27062002-08-07 Andrew Cagney <ac131313@redhat.com>
2707
2708 * regcache.c (pseudo_register): Delete function.
2709 (fetch_register): Delete function.
2710 (store_register): Delete function.
2711 (regcache_raw_read, legacy_read_register_gen): Use
2712 target_fetch_registers instead of fetch_register.
2713 (legacy_write_register_gen, regcache_raw_write): Use
2714 target_store_register instead of store_register.
2715 (write_register_bytes): Ditto.
2716
2717 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2718 (STORE_PSEUDO_REGISTER): Delete.
2719 * gdbarch.h, gdbarch.c: Regenerate.
2720
5b331675
CV
27212002-08-06 Corinna Vinschen <vinschen@redhat.com>
2722
2723 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2724 write dump file binary.
2725
6acdf5c7
MS
27262002-08-05 Michael Snyder <msnyder@redhat.com>
2727
2728 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2729 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2730 (mips_gdbarch_init): Set N32 target to be mips64.
2731
b2f01c35
KB
27322002-08-06 Kevin Buettner <kevinb@redhat.com>
2733
2734 * frame.c (find_saved_register): Break out of loop once saved
2735 register address is found. Don't mention sparc in loop comment
2736 anymore.
2737
63db5580
KB
27382002-08-06 Kevin Buettner <kevinb@redhat.com>
2739
2740 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2741 mips_default_saved_regsize to 8.
2742
5e34e75e
AC
27432002-08-06 Andrew Cagney <ac131313@redhat.com>
2744
2745 * gcore.c: Do not include <sys/procfs.h>.
2746 * Makefile.in (gcore.o): Update dependencies.
2747
eb4c54a2
AC
27482002-08-06 Andrew Cagney <cagney@redhat.com>
2749
2750 * configure.tgt: Make arc-*-* obsolete.
2751 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2752 * MAINTAINERS: Make arc-elf obsolete.
2753 * arc-tdep.c: Make file obsolete.
2754 * config/arc/arc.mt: Ditto.
2755 * config/arc/tm-arc.h: Ditto.
2756
ced15480
TR
27572002-08-05 Theodore A. Roth <troth@verinet.com>
2758
c1bab85b 2759 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2760
b4743822
AC
27612002-08-05 Andrew Cagney <ac131313@redhat.com>
2762
2763 * mcore-tdep.c (mcore_gdbarch_init): Use
2764 generic_unwind_get_saved_register instead of
2765 generic_get_saved_register.
2766 * v850-tdep.c (v850_gdbarch_init): Ditto.
2767 * frv-tdep.c (frv_gdbarch_init): Ditto.
2768 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2769 * s390-tdep.c (s390_gdbarch_init): Ditto.
2770 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2771 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2772 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2773
3956d554
JB
27742002-08-05 Joel Brobecker <brobecker@gnat.com>
2775
2776 * objfiles.h: Add missing #include "symfile.h"
2777
2778 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2779
8249c0d6
AC
27802002-08-04 Andrew Cagney <ac131313@redhat.com>
2781
2782 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2783 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2784 of FIELD_BITSIZE.
2785
b9d14705
DJ
27862002-08-04 Daniel Jacobowitz <drow@mvista.com>
2787
2788 * NEWS: Cleanup and nitpick.
2789
dd73b9bb
AC
27902002-08-03 Andrew Cagney <ac131313@redhat.com>
2791
2792 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2793
043a27f8
AC
27942002-08-03 Andrew Cagney <ac131313@redhat.com>
2795
2796 * Makefile.in (gdbtk-bp.o): Update dependencies.
2797 (gdbtk-register.o): Ditto.
2798 (gdbtk-varobj.o): Ditto.
2799
46ce284d
AC
28002002-08-03 Andrew Cagney <cagney@redhat.com>
2801
2802 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2803 m68hc11_fetch_pseudo_register.
2804 (m68hc11_pseudo_register_write): Replace
2805 m68hc11_store_pseudo_register.
2806 (m68hc11_gdbarch_init): Update.
2807
b66d6d2e
AC
2808Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2809
2810 * gdbarch.sh: Include "gdb_string.h".
2811 * gdbarch.c: Regenerate.
2812
2813 * regcache.c: Include "gdb_string.h".
2814 * ax-general.c: Ditto.
2815 * varobj.c: Ditto.
2816 * std-regs.c: Ditto.
2817 * fbsd-proc.c: Ditto.
2818 * thread.c: Ditto.
2819
2820 * Makefile.in (regcache.o): Update dependencies.
2821 (thread.o, gdbarch.o): Ditto.
2822 (ax-general.o, gdbarch.o): Ditto.
2823 (varobj.o, std-regs.o): Ditto.
2824 (fbsd-proc.o): Specify dependencies.
2825
29e1842b
AC
28262002-08-02 Andrew Cagney <cagney@redhat.com>
2827
2828 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2829 regnum.
2830 (regcache_cooked_write): Ditto.
2831
68365089
AC
28322002-08-02 Andrew Cagney <ac131313@redhat.com>
2833
2834 * regcache.c (regcache_cooked_read): New function.
2835 (regcache_cooked_write): New function.
2836 (read_register_gen): Rewrite using regcache_cooked_read.
2837 (write_register_gen): Rewrite using regcache_cooked_write.
2838
2839 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2840 Declare.
2841
d8124050
AC
28422002-08-02 Andrew Cagney <cagney@redhat.com>
2843
2844 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2845 Replace the architecture methods register_read and register_write.
2846 * gdbarch.h, gdbarch.c: Regenerate.
2847 * regcache.c (init_regcache_descr): Update.
2848 (read_register_gen): Update.
2849 (write_register_gen): Update.
2850 (supply_register): Update comment.
2851
2852 * sh-tdep.c (sh_gdbarch_init): Update.
2853 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2854 `regcache' and `gdbarch' parameters. Make `buffer' a void
2855 pointer. Update code.
2856 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2857 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2858 void pointer. Update code.
2859 (sh64_register_write): Delete.
2860 (sh4_register_read): Delete.
2861 (sh64_register_read): Delete.
2862 (sh4_register_write): Delete.
2863 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2864 void pointer, `to' parameter a void pointer.
2865 (sh_sh64_register_convert_to_raw): Ditto.
2866
a6425924
KB
28672002-08-01 Kevin Buettner <kevinb@redhat.com>
2868
2869 * mips-tdep.c (mips_register_virtual_type): Use architecture
2870 invariant return values.
2871
ff5922b5
AC
28722002-08-01 Andrew Cagney <cagney@redhat.com>
2873
2874 * linux-proc.c: Include "gdb_string.h".
2875 * Makefile.in (linux-proc.o): Update dependency list.
2876
32a6503c
KB
28772002-08-01 Kevin Buettner <kevinb@redhat.com>
2878
2879 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2880 comment.
2881
ccaa32c7
GS
28822002-08-01 Grace Sainsbury <graces@redhat.com>
2883
2884 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2885 to_insert_watchpoint, to_remove_watchpoint,
2886 to_stopped_by_watchpoint, to_stopped_data_address,
2887 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2888 target vecctor. Define their corresponding macros so they call
2889 them.
2890
2891 * target.c: Add default and debug versions of for
2892 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2893 to_insert_watchpoint, to_remove_watchpoint,
2894 to_stopped_by_watchpoint, to_stopped_data_address,
2895 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2896
78fde5f8
KB
28972002-08-01 Kevin Buettner <kevinb@redhat.com>
2898
2899 * mips-tdep.c (mips_register_virtual_type): New function.
2900 (mips_gdbarch_init): Register mips_register_virtual_type()
2901 with gdbarch machinery.
2902 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2903 this file instead of tm-bigmips.h.
2904 (MIPS_REGSIZE): Delete this macro.
2905 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2906 multiarch version in mips-tdep.c will be found.
2907
db034ac5
AC
29082002-08-01 Andrew Cagney <cagney@redhat.com>
2909
2910 * NEWS: Menion that CHILL has been made obsolete.
2911
2912 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
2913 * stabsread.c (read_range_type): Ditto.
2914 * gdbtypes.h: Ditto.
2915 * language.c (binop_type_check): Ditto.
2916 (binop_result_type): Ditto.
2917 (integral_type): Ditto.
2918 (character_type): Ditto.
2919 (string_type): Ditto.
2920 (boolean_type): Ditto.
2921 (structured_type): Ditto.
2922 (lang_bool_type): Ditto.
2923 (binop_type_check): Ditto.
2924 * language.h (_LANG_chill): Ditto.
2925 * dwarfread.c (set_cu_language): Ditto.
2926 * dwarfread.c (CHILL_PRODUCER): Ditto.
2927 * dwarfread.c (handle_producer): Ditto.
2928 * expression.h (enum exp_opcode): Ditto.
2929 * eval.c: Ditto for comments.
2930 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2931 * expprint.c (print_subexp): Ditto.
2932 (print_subexp): Ditto.
2933 * valops.c (value_cast): Ditto.
2934 (search_struct_field): Ditto.
2935 * value.h (COERCE_VARYING_ARRAY): Ditto.
2936 * symfile.c (init_filename_language_table): Ditto.
2937 (add_psymbol_with_dem_name_to_list): Ditto.
2938 * valarith.c (value_binop): Ditto.
2939 (value_neg): Ditto.
2940 * valops.c (value_slice): Ditto.
2941 * symtab.h (union language_specific): Ditto.
2942 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2943 (SYMBOL_DEMANGLED_NAME): Ditto.
2944 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2945 * defs.h (enum language): Ditto.
2946 * symtab.c (got_symtab): Ditto.
2947 * utils.c (fprintf_symbol_filtered): Ditto.
2948
2949 * ch-typeprint.c: Make file obsolete.
2950 * ch-valprint.c: Make file obsolete.
2951 * ch-lang.h: Make file obsolete.
2952 * ch-exp.c: Make file obsolete.
2953 * ch-lang.c: Make file obsolete.
2954
2955 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2956 CHILL_LIB.
2957 (TARGET_FLAGS_TO_PASS): Ditto.
2958 (CHILLFLAGS): Obsolete.
2959 (CHILL): Obsolete.
2960 (CHILL_FOR_TARGET): Obsolete.
2961 (CHILL_LIB): Obsolete.
2962 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2963 ch-valprint.c.
2964 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2965 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2966 ch-lang.o.
2967 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2968 targets.
2969
8aaf0b47
JB
29702002-07-31 Joel Brobecker <brobecker@gnat.com>
2971
2972 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2973 This does not change anything at the moment, but will be helpful
2974 later when full Ada support is integrated.
2975
f3a7b3a5
KB
29762002-07-31 Kevin Buettner <kevinb@redhat.com>
2977
2978 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2979 help message.
2980
fb850278
KB
29812002-07-31 Kevin Buettner <kevinb@redhat.com>
2982
2983 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2984 and save it in a local variable. Use variable in later test.
2985
e3bddbfa
KB
29862002-07-31 Kevin Buettner <kevinb@redhat.com>
2987
2988 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2989 test. (Thanks to Daniel Jacobowitz.)
2990
28d169de
KB
29912002-07-31 Kevin Buettner <kevinb@redhat.com>
2992
2993 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2994 (mips_abi_strings): Add "n64".
2995 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2996
7fe7e44e
KB
29972002-07-31 Kevin Buettner <kevinb@redhat.com>
2998
2999 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3000 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3001
c6caf090
KB
30022002-07-31 Kevin Buettner <kevinb@redhat.com>
3003
3004 * utils.c (host_pointer_to_address, address_to_host_pointer):
3005 Use gdb_assert() instead of explicit call to internal_error().
3006
c41669e0
KB
30072002-07-30 Kevin Buettner <kevinb@redhat.com>
3008
3009 * Makefile.in (rs6000-nat.o): Update dependencies.
3010
3011 From Nicholas Duffek:
3012 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3013 (aix-thread.o): New rule.
3014 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3015 * config/powerpc/aix432.mh: New file.
3016
2fda4977
DJ
30172002-07-30 Daniel Jacobowitz <drow@mvista.com>
3018
3019 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3020 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3021 (fetch_core_registers, ppc_linux_supply_gregset)
3022 (ppc_linux_supply_fpregset): New functions.
3023 (ppc_linux_regset_core_fns): New.
3024 (_initialize_ppc_linux_tdep): Call add_core_fns.
3025 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3026 and ppc_linux_supply_gregset.
3027 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3028 (supply_fpregset): Call ppc_linux_supply_fpregset.
3029 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3030 corelow.o.
3031 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3032
729051e6
DJ
30332002-07-30 Daniel Jacobowitz <drow@mvista.com>
3034
3035 * symtab.c (lookup_symbol): Demangle before lowercasing.
3036
5f8a3188
AC
30372002-07-30 Andrew Cagney <ac131313@redhat.com>
3038
3039 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3040 declaration.
3041 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3042 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3043 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3044 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3045 "gdb_string.h".
3046 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3047 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3048 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3049 (avr-tdep.o, mon960-rom.o): Ditto.
3050 (aout_stabs_gnu_h): Define.
3051 (symtab_h): Remove $(gdb_obstack_h).
3052
67f07146
JB
30532002-07-30 Jim Blandy <jimb@redhat.com>
3054
3055 Patch from David Carlton <carlton@math.stanford.edu>:
3056 * gdbinit.in: Move the `dir' commands that add GDB's own source
3057 directory to the search path to the end, so that the `gdb' source
3058 directory will be searched first.
3059
04ea0df1
AC
30602002-07-29 Andrew Cagney <ac131313@redhat.com>
3061
3062 * gdb_obstack.h: New file.
3063 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3064 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3065 * objfiles.h: Include "gdb_obstack.h".
3066 * Makefile.in (gdb_obstack_h): Define.
3067 (symtab_h): Add $(gdb_obstack_h).
3068 (objfiles_h): Add $(gdb_obstack_h).
3069
3070 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3071 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3072 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3073 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3074 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3075 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3076 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3077 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3078
3079 * Makefile.in (bcache.o): Update dependencies.
3080 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3081 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3082 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3083 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3084 (stabsread.o, symfile.o, symmisc.o): Ditto.
3085 (symtab.o, typeprint.o, macroexp.o): Ditto.
3086 (macrotab.o, mdebugread.o): Ditto.
3087 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3088 (coff_ecoff_h, aout_aout64_h): Define.
3089 (aout_stabs_gnu_h, libaout_h): Define.
3090
d138e37a
AC
30912002-07-29 Andrew Cagney <cagney@redhat.com>
3092
3093 * regcache.c (struct regcache_descr): Rename nr_registers to
3094 nr_cooked_registers. Revise comments describing the structure
3095 member fields.
3096 (init_regcache_descr): Update.
3097 (init_legacy_regcache_descr): Update.
3098 (read_register_gen, write_register_gen): When a cooked register in
3099 the raw register range, directly access the value from the raw
3100 register cache.
3101
460e6ec3
AC
31022002-07-29 Andrew Cagney <ac131313@redhat.com>
3103
3104 * z8k-tdep.c: Do not include "obstack.h".
3105 * h8300-tdep.c, h8500-tdep.c: Ditto.
3106 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3107 * valprint.c, v850-tdep.c: Ditto.
3108 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3109 * mn10200-tdep.c: Ditto.
3110
3111 * Makefile.in (z8k-tdep.o): Update dependencies.
3112 (m68hc11-tdep.o, valprint.o): Ditto.
3113 (v850-tdep.o, d10v-tdep.o): Ditto.
3114 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3115 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3116 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3117 (sh_opc_h, gdb_sim_sh_h): Define.
3118 (elf_sh_h, elf_bfd_h): Define.
3119 (opcode_m68hc11_h): Define.
3120 (OPCODES_SRC, OPCODES_DIR): define.
3121 (OPCODES): Use $(OPCODES_DIR).
3122 (gdb_sim_d10v_h): Rename sim_d10v_h.
3123 (gdb_sim_arm_h): Rename sim_arm_h.
3124
790c9cf0
KB
31252002-07-26 Kevin Buettner <kevinb@redhat.com>
3126
3127 * utils.c (host_pointer_to_address, address_to_host_pointer):
3128 Change internal_error() message to indicate function responsible
3129 for the error.
3130
9647fa49
KB
31312002-07-26 Kevin Buettner <kevinb@redhat.com>
3132
3133 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3134 calls to local_hex_string_custom().
3135
dabbe2c0
KB
31362002-07-26 Kevin Buettner <kevinb@redhat.com>
3137
3138 * irix5-nat.c: Move IRIX shared library support from here...
3139 * solib-irix.c: ...to here. Revised substantially to work with
3140 generic solib framework.
3141
b96d0a4e
KB
3142 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3143 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3144 * mips-irix-tdep.c: New file.
3145
313fb2f6
KB
3146 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3147 (mips-irix-tdep.o, solib-irix.o): New rules.
3148 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3149 solib-irix.o.
3150 * config/mips/irix6.mt (TDEPFILES): Likewise.
3151 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3152
ab2eaf26
KB
31532002-07-26 Kevin Buettner <kevinb@redhat.com>
3154
177e4768 3155 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
3156 disabled (via ``#if 0'') includes.
3157
7244546a
KB
31582002-07-26 Kevin Buettner <kevinb@redhat.com>
3159
3160 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3161 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3162 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3163 Add support for the fpscr register.
3164 * rs6000-nat.c (regmap, fetch_inferior_registers)
3165 (store_inferior_registers, fetch_core_registers): Likewise.
3166
dd7be90a
KB
31672002-07-26 Kevin Buettner <kevinb@redhat.com>
3168
3169 * rs6000-nat.c (language.h): Include.
3170 (special_regs): Delete this array.
3171 (regmap): New function.
3172 (fetch_register, store_register): Use regmap() to map gdb
3173 register numbers to ptrace register numbers. Also, use
3174 outputs from regmap() to make decisions regarding type of
3175 ptrace() call to make. In particular, don't compare against
3176 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3177 (fetch_inferior_registers, store_inferior_registers): Where
3178 possible, obtain register numbers from tdep struct. Don't
3179 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3180 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3181 (LAST_UISA_SP_REGNUM): Delete.
3182
11bf77db
KB
31832002-07-25 Kevin Buettner <kevinb@redhat.com>
3184
3185 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
3186 (fetch_registers, store_register, fetch_core_registers): Don't
3187 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
3188 regcache_collect() as appropriate.
3189 (find_toc_address): Format hex address with local_hex_string().
3190
06afebeb
AC
31912002-07-25 Andrew Cagney <ac131313@redhat.com>
3192
3193 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3194 bfd/elf32-frv.c.
3195
8c554d79
TT
31962002-07-24 Tom Tromey <tromey@redhat.com>
3197
3198 * jv-exp.y: Marked all strings with _().
3199 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3200 internal_error.
3201 (MethodInvocation, CastExpression, parse_number, yyerror,
3202 java_type_from_name, push_expression_name, yylex): Typo fixes.
3203
e4c242d9
DJ
32042002-07-24 Daniel Jacobowitz <drow@mvista.com>
3205
3206 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3207 (tee_file_flush, tee_file_write, tee_file_fputs)
3208 (tee_file_isatty): New.
3209 * ui-file.h (tee_file_new): Add prototype.
3210
ebf56fd3
AS
32112002-07-24 Aidan Skinner <aidan@velvet.net>
3212
3213 * ada-lang.c: Change k&r style function definitions to prototyped
3214 form.
3215 * ada-typeprint.c: Change k&r style function definitions to prototyped
3216 form.
3217 * ada-valprint.c: Change k&r style function definitions to prototyped
3218 form.
3219
7fb623f7
AC
32202002-07-24 Andrew Cagney <cagney@redhat.com>
3221
3222 * README: Remove reference to remote-bug.
3223 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3224 remote-bug.c.
3225 (m88k-nat.o): Delete rule.
3226 (m88k-tdep.o): Delete rule.
3227 (remote-bug.o): Delete rule.
3228 * MAINTAINERS: Mark as obsolete.
3229 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3230 * m88k-tdep.c: Make file obsolete.
3231 * config/m88k/m88k.mh: Ditto.
3232 * config/m88k/delta88v4.mh: Ditto.
3233 * config/m88k/delta88v4.mt: Ditto.
3234 * config/m88k/delta88.mt: Ditto.
3235 * config/m88k/delta88.mh: Ditto.
3236 * remote-bug.c: Ditto.
3237 * config/m88k/tm-delta88.h: Ditto.
3238 * config/m88k/nm-delta88v4.h: Ditto.
3239 * config/m88k/xm-delta88.h: Ditto.
3240 * config/m88k/xm-dgux.h: Ditto.
3241 * config/m88k/tm-m88k.h: Ditto.
3242 * config/m88k/nm-m88k.h: Ditto.
3243 * config/m88k/tm-delta88v4.h: Ditto.
3244 * m88k-nat.c: Ditto.
3245 * cxux-nat.c: Ditto.
3246 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3247 and m88*-*-* obsolete.
3248 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3249 m88*-*-* obsolete.
3250
37611a2b
AC
32512002-07-24 Andrew Cagney <cagney@redhat.com>
3252
3253 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3254 constant. Same for local pointer variables.
3255 (extract_signed_integer): Ditto.
3256 * defs.h (extract_unsigned_integer): Update.
3257 (extract_signed_integer): Update.
3258
1aaa5f99
AC
32592002-07-24 Andrew Cagney <cagney@redhat.com>
3260
3261 * regcache.c (regcache_raw_write): Change buf parameter to a
3262 constant void pointer.
3263 (regcache_raw_read): Change buf parameter to a void pointer.
3264 (legacy_write_register_gen): Change myaddr parameter a constant
3265 void pointer.
3266 (supply_register): Change val parameter to a const void pointer.
3267 * regcache.h (regcache_raw_write): Update declaration.
3268 (regcache_raw_read): Update declaration.
3269 (supply_register): Update declaration.
3270
b4f5539f
TT
32712002-07-24 Tom Tromey <tromey@redhat.com>
3272
3273 * defs.h (gdb_readline_wrapper): Declare.
3274 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3275 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3276 * top.c (gdb_readline_wrapper): New function.
3277 (command_line_input): Use it.
3278
0818c12a
AC
32792002-07-24 Andrew Cagney <cagney@redhat.com>
3280
3281 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3282 regcache_read and regcache_write.
3283 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3284 * regcache.c: Update.
3285 * sh-tdep.c (sh64_push_arguments): Update comment.
3286 (sh_pseudo_register_read): Update.
3287 (sh_pseudo_register_write): Update.
3288 (sh4_register_read): Update.
3289 (sh4_register_write): Update.
3290 (sh64_pseudo_register_read): Update.
3291 (sh64_pseudo_register_write): Update.
3292 (sh64_register_read): Update.
3293 (sh64_register_write): Update.
3294 * i386-tdep.c (i386_extract_return_value): Update.
3295 (i386_extract_struct_value_address): Update.
3296 (i386_extract_return_value): Update.
3297 * blockframe.c (generic_read_register_dummy): Update.
3298 (generic_call_dummy_register_unwind): Update
3299 * infrun.c (write_inferior_status_register): Update.
3300
f7321c06
JB
33012002-07-23 Jim Blandy <jimb@redhat.com>
3302
3303 * parser-defs.h (expression_context_pc): Make this extern.
3304 (Thanks to Michael Snyder.)
3305
2037aebb
AC
33062002-07-23 Andrew Cagney <ac131313@redhat.com>
3307
3308 GDB 5.2.1 released from 5.2 branch.
3309 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3310 * README: Update to mention 5.2.1.
3311
66504d44
MS
33122002-07-23 Mark Salter <msalter@redhat.com>
3313
3314 * remote.c (remote_read_bytes): Fix check for error.
3315
27bae383
KB
33162002-07-22 Kevin Buettner <kevinb@redhat.com>
3317
3318 * aix-thread.c (language.h): Include.
3319 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3320 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3321 Print newlines at end of debug messages.
3322 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3323 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3324
33252002-07-22 Kevin Buettner <kevinb@redhat.com>
3326
3327 * aix-thread.c (ppc-tdep.h): Include.
3328 (special_register_p): New function.
3329 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3330 (store_regs_user_thread): Use register number information from
3331 gdbarch_tdep struct instead of hardcoded offsets relative to
3332 FIRST_UISA_SP_REGNUM.
3333 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3334 special_register_p() instead of using FPLAST_REGNUM and
3335 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3336 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3337 will be MQ's register number.
3338
33392002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3340
3341 * aix-thread.c (ops): Rename to aix_thread_ops.
3342 (base_ops): Rename to base_target.
3343 (ops_attach): Rename to aix_thread_attach.
3344 (ops_detach): Rename to aix_thread_detach.
3345 (ops_resume): Rename to aix_thread_detach.
3346 (ops_wait): Rename to aix_thread_wait.
3347 (ops_kill): Rename to aix_thread_kill.
3348 (init_ops): Rename to init_aix_thread_ops.
3349 (ops_fetch_register): Rename to aix_thread_fetch_register.
3350 (ops_store_register): Rename to aix_thread_store_register.
3351 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3352 (ops_thread_alive): Rename to aix_thread_thread_alive.
3353 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3354 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3355 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3356 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3357 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3358 (store_regs_lib): Rename to store_regs_user_thread.
3359 (store_regs_kern): Rename to store_regs_kernel_thread.
3360
27bae383 33612002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3362
3363 * aix-thread.c (ops_prepare_to_store): Eliminate.
3364 (init_ops): Don't initialize ops.prepare_to_store.
3365 (store_regs_kern): Pre-fetch register buffers from child,
3366 because some registers may not be in the cache. Copy
3367 regs from register cache only if they are cached.
3368 (store_regs_lib): Copy regs from register cache only
3369 if they are cached.
3370 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3371 fill_gprs64): Ditto.
3372
61c5da0b
KB
33732002-07-22 Kevin Buettner <kevinb@redhat.com>
3374
3375 * aix-thread.c (gdb_assert.h): Include.
3376 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3377 register sizes (from register cache) match size of buffer holding
3378 register data.
3379 (fill_sprs32): Change parameter types to match those in the ptrace()
3380 buffer.
3381 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3382 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3383
33842002-07-22 Michael Snyder <msnyder@redhat.com>
3385
3386 * aix-thread.c (supply_sprs64): Cosmetic change.
3387 (supply_sprs32): Cosmetic change.
3388 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3389 (fill_sprs64): Use regcache_collect instead of read_register.
3390 (store_regs_lib): Use regcache_collect instead of
3391 read_register. Use fill_sprs32 instead of fill_sprs64,
3392 if debugging a 32-bit architecture.
3393 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3394 out of the register cache, instead of passing a pointer into
3395 the register cache directly to ptrace. Use regcache_collect
3396 insteaad of read_register.
3397 (ops_prepare_to_store): Use target_read_registers instead
3398 of read_register_bytes.
3399
36479eb1
AS
34002002-07-20 Aidan Skinner <aidan@velvet.net>
3401
3402 * MAINTAINERS: Add self under write after approval.
3403
80ae6ee2
AS
34042002-07-20 Aidan Skinner <aidan@velvet.net>
3405
3406 * ada-tasks.c: Change k&r style function definitions to prototyped
3407 form.
3408
8a8ab2b9
AC
34092002-07-19 Andrew Cagney <ac131313@redhat.com>
3410
3411 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3412 * x86-64-tdep.c: Include "objfiles.h".
3413 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3414 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3415
fb16b900
ML
34162002-07-17 Michal Ludvig <michal@suse.cz>
3417
3418 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3419 (update_context): Initialise cfa variable.
3420
0fe7bf7b
MS
34212002-07-17 Michael Snyder <msnyder@redhat.com>
3422
3423 * aix-thread.c: Shorten some long lines.
3424 Bring comments into line with code spec.
3425
488f131b
JB
34262002-07-18 Joel Brobecker <brobecker@gnat.com>
3427
3428 * infrun.c: Re-indent using gdb_indent.sh.
3429
46c415d2
JB
34302002-07-18 Joel Brobecker <brobecker@gnat.com>
3431
3432 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3433 Leave the indentation temporarily untouched, to minimize the diffs.
3434
cdecafbe
EZ
34352002-07-18 Elena Zannoni <ezannoni@redhat.com>
3436
3437 * stabsread.c: Make os9k sections of the code obsolete,
3438 for real this time.
3439 * stabsread.h: Make os9k sections of the code obsolete.
3440
7b6aa020
ML
34412002-07-18 Michal Ludvig <mludvig@suse.cz>
3442
09ec9b38
ML
3443 * linux-low.c (regsets_store_inferior_registers): Add free()
3444 at the end of a loop to prevent memory leak.
3445 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3446 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3447 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3448 line a comment.
4894ac5d 3449 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3450
233282cd
JB
34512002-07-17 Jim Blandy <jimb@redhat.com>
3452
3453 * macrocmd.c (info_macro_command): Remove newline from error
3454 message.
3455
7b6aa020 34562002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3457
3458 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3459 (sh_gdbarch_init): Use it for sh-dsp.
3460
f7ef9339
KB
34612002-07-16 Kevin Buettner <kevinb@redhat.com>
3462
3463 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3464 64-bit DWARF2 format.
3465
8dd72958
JB
34662002-07-16 Joel Brobecker <brobecker@gnat.com>
3467
3468 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3469 <sys/proc.h> when not available.
3470
a99a9e1b
AC
34712002-07-16 Andrew Cagney <ac131313@redhat.com>
3472
3473 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3474 * stabsread.c: Make os9k sections of the code obsolete.
3475 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3476 * config/i386/i386os9k.mt: Make file obsolete.
3477 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3478 (COMMON_OBS): Remove os9kread.o
3479 (SFILES): Remove os9kread.c.
3480 (os9kread.o, remote-os9k.o): Make target obsolete.
3481 * remote-os9k.c: Make file obsolete.
3482 * os9kread.c: Make file obsolete.
3483 * Makefile.in
3484
7a3085c1
AC
34852002-07-16 Andrew Cagney <ac131313@redhat.com>
3486
3487 * NEWS: Mention that the FR30 has been made obsolete.
3488 * fr30-tdep.c: Make file obsolete.
3489 * config/fr30/tm-fr30.h: Ditto.
3490 * config/fr30/fr30.mt: Ditto.
3491 * configure.tgt: Make fr30-*-elf obsolete.
3492 * MAINTAINERS: Make fr30-elf obsolete.
3493
28a93f5a
PM
34942002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3495
3496 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3497 found is not inside a section.
3498
be006b8b
KB
34992002-07-15 Kevin Buettner <kevinb@redhat.com>
3500
3501 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3502 strerror().
3503 (pdc_realloc): Use xrealloc() instead of realloc().
3504
14fa3751
KB
35052002-07-15 Kevin Buettner <kevinb@redhat.com>
3506
3507 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3508 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3509 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3510 macros.
3511
42cc437f
KB
35122002-07-15 Kevin Buettner <kevinb@redhat.com>
3513
3514 * aix-thread.c (ptrace_check): Eliminate goto.
3515 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3516 problem.
3517
8e2c28d4
KB
35182002-07-15 Kevin Buettner <kevinb@redhat.com>
3519
3520 * aix-thread.c (gdbcmd.h): Include.
3521 (DEBUG, DBG, DBG2, dbg): Eliminate.
3522 (debug_aix_thread): New static global.
3523 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3524 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3525 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3526 invocations to DBG and DBG2 macros to test against
3527 ``debug_aix_thread'' and call fprintf_unfiltered().
3528 (_initialize_aix_thread): Add new command "set debug aix-thread".
3529
30413464
AC
35302002-07-15 Andrew Cagney <ac131313@redhat.com>
3531
3532 From Gerhard Tonn <TON@de.ibm.com>:
3533 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3534 instead of supply_register.
3535
7c43edc1
AC
35362002-07-15 Andrew Cagney <ac131313@redhat.com>
3537
3538 * dwarf2cfi.c: Include "gdb_assert.h".
3539 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3540 non-NULL.
3541 (update_context): Do not use __func__. Add missing ``break''.
3542 (update_context): Do not use __func__.
3543
9364a0ef
EZ
35442002-07-15 Elena Zannoni <ezannoni@redhat.com>
3545
3546 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3547 and its setting. Set gdbarch instruction printing functions
3548 directly. For non-rs6000 case use new function
3549 gdb_print_insn_powerpc.
3550 (gdb_print_insn_powerpc): New function.
3551
3fbeef0b
AC
35522002-07-13 Andrew Cagney <ac131313@redhat.com>
3553
92eb23c5 3554 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3555 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3556 * configure.tgt: Mark d30v-*-* as obsolete.
3557 * d30v-tdep.c: Mark file as obsolete.
3558 * config/d30v/d30v.mt: Ditto.
3559 * config/d30v/tm-d30v.h: Ditto.
3560
aacb1f0a
AS
35612002-07-13 Aidan Skinner <aidan@velvet.net>
3562
3563 * ada-tasks.c (add_task_entry): replace calls to
3564 malloc() with xmalloc
3565 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3566
3567 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3568 ada_finish_decode_line_1, all_sals_for_line
3569 ada_breakpoint_rewrite): replace calls to free() with xfree()
3570
c11d79f2
KB
35712002-07-12 Kevin Buettner <kevinb@redhat.com>
3572
3573 From Nicholas Duffek (with minor changes by Martin Hunt,
3574 Louis Hamilton, and Kevin Buettner):
3575 * aix-thread.c: New file.
3576
8e19ed76
PS
35772002-07-12 Petr Sorfa <petrs@caldera.com>
3578
3579 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3580 complaint for invalid attribute class or form.
3581 (read_func_scope): DW_AT_frame_base
3582 better handling of DW_AT_block*.
3583 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3584 better handling of DW_AT_block*.
3585 (read_common_block): DW_AT_location
3586 better handling of DW_AT_block*.
3587 (read_partial_die): DW_AT_location better handling
3588 of DW_AT_block*.
3589 (new_symbol): DW_AT_external better handling of
3590 DW_AT_block*. Proper initialization of variable
3591 "addr".
3592 (attr_form_is_block): New function that returns true
3593 if the attribute's form is of DW_FORM_block*.
3594
295401f7
DJ
35952002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3596
3597 * valops.c (find_method_list): Remove comment about
3598 removed STATIC_MEMFUNCP argument.
3599 (value_find_oload_method_list): Likewise.
3600
e42dc924
KB
36012002-07-12 Kevin Buettner <kevinb@redhat.com>
3602
3603 From Nicholas Duffek:
3604 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3605 target_new_objfile_hook.
3606
6904b546
KB
36072002-07-12 Kevin Buettner <kevinb@redhat.com>
3608
3609 From Nicholas Duffek:
3610 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3611 csect.
3612
53fe9346
AC
36132002-07-12 Andrew Cagney <cagney@redhat.com>
3614
3615 * MAINTAINERS: Mention --enable-sim-build-warnings.
3616 (m68hc11-elf): Disable sim build warnings.
3617 (m32r-elf): Mark as broken obsolete candidate.
3618 (x86_64-linux-gnu): Mark as buildable with -Werror.
3619 (arm-elf): Change -w to ``,'' which enables warnings but not
3620 -Werror.
3621
af5f3db6
AC
36222002-07-12 Andrew Cagney <ac131313@redhat.com>
3623
3624 * bcache.h: Update copyright.
3625 (struct bstring, struct bcache): Move definition to "bcache.c".
3626 Replaced by opaque declaration.
3627 (bcache_xfree): Replace free_bcache.
3628 (bcache_xmalloc, bcache_memory_used): Declare.
3629
3630 * bcache.c: Update copyright.
3631 (struct bstring, struct bcache): Moved to here from "bcache.h".
3632 Update comments.
3633 (bcache_xmalloc, bcache_memory_used): New functions.
3634 (bcache_xfree): Replace function free_bcache.
3635
3636 * Makefile.in (objfiles.o): Add $(bcache_h).
3637 (objfiles_h): Remove $(bcache_h).
3638 (symfile.o): Add $(bcache_h).
3639
3640 * symmisc.c: Update copyright.
3641 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3642 (print_objfile_statistics): Use bcache_memory_used.
3643
3644 * symfile.c: Include "bcache.h".
3645 (reread_symbols): Use bcache_xfree.
3646 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3647 (add_psymbol_to_list): Pass psymbol_cache by value.
3648 (add_psymbol_with_dem_name_to_list): Ditto.
3649
3650 * objfiles.h: Update copyright.
3651 (struct bcache): Declare opaque. Do not include "bcache.h".
3652 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3653 bcache'' pointers.
3654 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3655
3656 * objfiles.c: Include "bcache.h". Update copyright.
3657 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3658 macro_cache.
3659 (free_objfile): Use bcache_xfree.
3660
444199e7
GS
36612002-07-11 Grace Sainsbury <graces@redhat.com>
3662
3663 * monitor.c (monitor_fetch_register): Make name a constant.
3664 (monitor_store_register): Same.
3665
261397f8
DJ
36662002-07-11 Daniel Jacobowitz <drow@mvista.com>
3667
3668 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3669 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3670 (finish_block) For non-function blocks, hash the symbol table. For
3671 function blocks, mark the symbol table as unhashed.
3672 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3673 (msymbol_hash_iw): Likewise.
3674 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3675 value.
3676 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3677 (lookup_minimal_symbol): Likewise for both.
3678 * symtab.h (struct block): Add `hashtable' flag. Comment the
3679 hashtable.
3680 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3681 (ALL_BLOCK_SYMBOLS): Update.
3682 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3683 (struct symbol): Add `hash_next' pointer.
3684 * symtab.c (lookup_block_symbol): Search using the hash table when
3685 possible.
3686 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3687 (search_symbols, find_addr_symbol): Likewise.
3688
3689 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3690 (read_dst_symtab): Likewise.
3691 * jv-lang.c (get_java_class_symtab): Likewise.
3692 * mdebugread.c: Include "gdb_assert.h".
3693 (shrink_block): Assert that the block being modified is not hashed.
3694 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3695 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3696 symbols.
3697 (dump_symtab): Recognize hashed blocks.
3698 * printcmd.c (print_frame_args): Assert that function blocks do not
3699 have hashed symbol tables.
3700 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3701 (fill_in_ada_prototype, debug_print_block): Likewise.
3702 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3703
6f0eaa01
CV
37042002-07-11 Corinna Vinschen <vinschen@redhat.com>
3705
3706 * stack.c (print_frame): Use result of frame_address_in_block()
3707 instead of fi->pc when evaluating symbols.
3708 (backtrace_command_1): Ditto.
3709
a208b0cb
AC
37102002-07-11 Andrew Cagney <cagney@redhat.com>
3711
3712 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3713 Make static.
3714
3715 * arm-tdep.c (arm_register_name): Make return type constant.
3716
a6b6b089
AC
37172002-07-10 Andrew Cagney <ac131313@redhat.com>
3718
5ae5f592
AC
3719 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3720 prototype.
3721 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3722 * s390-tdep.c (s390_fp_regnum): Ditto.
3723 (s390_read_fp): Ditto.
3724 (s390_pop_frame): Ditto.
3725 (_initialize_s390_tdep): Ditto.
3726 * remote.c (get_remote_state): Ditto.
3727 * procfs.c (mappingflags): Ditto.
3728 * memattr.c (_initialize_mem): Ditto.
3729 * mcore-tdep.c (mcore_pop_frame): Ditto.
3730 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3731 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3732 * language.c (set_case_str): Ditto.
3733 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3734 * frv-tdep.c (new_variant): Ditto.
3735 (frv_stopped_data_address): Ditto.
3736 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3737 (context_alloc): Ditto.
3738 (frame_state_alloc): Ditto.
3739 (unwind_tmp_obstack_init): Ditto.
3740 (unwind_tmp_obstack_free): Ditto.
3741 (cfi_read_fp): Ditto.
3742 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3743 (cris_pop_frame): Ditto.
3744 * c-lang.c (scanning_macro_expansion): Ditto.
3745 (finished_macro_expansion): Ditto.
3746 (c_preprocess_and_parse): Ditto.
3747 * gdbarch.sh: Ditto.
3748 * gdbarch.h, gdbarch.c: Regenerate.
3749 * config/mn10200/tm-mn10200.h: Adjust indentation.
3750 * target.c: Adjust indentation.
3751 * symtab.h: Adjust indentation.
3752 * stabsread.h: Adjust indentation.
3753 * remote-es.c: Adjust indentation.
3754 * os9kread.c: Adjust indentation.
3755
37562002-07-10 Andrew Cagney <ac131313@redhat.com>
3757
a6b6b089
AC
3758 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3759 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3760
a1789893
GS
37612002-07-10 Grace Sainsbury <graces@redhat.com>
3762
3763 * NEWS: Mention m68k, mcore multi-arching.
3764 * MAINTAINERS: Change status of m68k, mcore to reflect
3765 multi-arching.
3766
02f0d45d
DJ
37672002-07-10 Daniel Jacobowitz <drow@mvista.com>
3768
3769 * valops.c (find_overload_match): Free oload_syms.
3770
f15f768e
JB
37712002-07-09 Joel Brobecker <brobecker@gnat.com>
3772
3773 Define HAVE_SYS_PROC_H if sys/proc.h exists
3774 * configure.in: Add check for sys/proc.h
3775 * config.in: Regenerate.
3776 * configure: Regenerate.
3777
902a7139
GS
37782002-07-09 Grace Sainsbury <graces@redhat.com>
3779
3780 * config/m68k/tm-m68k.h: Remove macros wrapped in
3781 #if !GDB_MULTI_ARCH.
3782
a534e424
AC
37832002-07-08 Andrew Cagney <ac131313@redhat.com>
3784
3785 * config.in, configure: Regenerate.
3786
9b94f7bf
MK
37872002-07-08 Mark Kettenis <kettenis@gnu.org>
3788
3789 * dwarf2cfi.c: Include "gcore.h".
3790 (execute_stack_op): Fix implementation of the
3791 DW_OP_deref and DW_OP_deref_size operators by letting do their
3792 lookup in the target.
3793
1d34db41
MK
37942002-07-07 Mark Kettenis <kettenis@gnu.org>
3795
3796 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3797 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3798 tdep->sc_sp_offset.
3799
79d5b63a
DJ
38002002-07-05 Daniel Jacobowitz <drow@mvista.com>
3801
3802 Fix PR gdb/595, gdb/602
3803 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3804 Don't call value_cast, just read the vtable pointer; update comments
3805 to match.
3806
3bb912e8
GS
38072002-07-05 Grace Sainsbury <graces@redhat.com>
3808
3809 * config/mcore/tm-mcore.h: Remove file.
3810 * config/mcore/mcore.mt: Remove definition of TM_FILE
3811 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3812
ca39387d
MK
38132002-07-05 Mark Kettenis <kettenis@gnu.org>
3814
3815 * i386bsd-tdep.c: Include "gdb_string.h".
3816
efdc1108
GS
38172002-07-04 Grace Sainsbury <graces@redhat.com>
3818
3819 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3820 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3821 mcore-tdep.
3822 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3823 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3824 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3825 (RETVAL_REGNUM): Move macros from tm-mcore.h
3826 (mcore_reg_struct_has_addr): New function.
3827 (mcore_gdbarch_init): Added initializations for the macros removed
3828 from tm-mcore.h.
3829
bb21884d
MK
38302002-07-04 Mark Kettenis <kettenis@gnu.org>
3831
3832 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3833 traditonal string branding within the ELF header.
3834
228c6d41
DJ
38352002-07-04 Daniel Jacobowitz <drow@mvista.com>
3836
3837 * symtab.c (remove_params): New function.
3838 (make_symbol_overload_list): Use it instead of cplus_demangle.
3839 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3840
2404952e
MK
38412002-07-04 Mark Kettenis <kettenis@gnu.org>
3842
e5e4acad
MK
3843 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3844
baadce09
MK
3845 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3846 New variables.
3847 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3848 and tdep->sigtramp_end.
3849 * i386obsd-nat.c: New file.
3850 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3851
2404952e
MK
3852 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3853 Don't call get_current_frame().
3854
9b4f1ba7
PM
38552002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3856
3857 * i386-nat.c (child_post_startup_inferior): New function
3858 calling i386_cleanup_dregs if
3859 I386_USE_GENERIC_WATCHPOINTS is defined.
3860 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3861 conditional to acknowledge that i386-nat.c has its
3862 own child_post_startup_inferior function.
3863
c0d1d883
MK
38642002-07-04 Mark Kettenis <kettenis@gnu.org>
3865
00f8375e
MK
3866 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3867 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3868 instead of MAX_REGISTER_RAW_SIZE.
3869 (i386_extract_return_value, i386_extract_struct_value_address):
3870 Convert to use regcache.
3871 (i386_gdbarch_init): Set max_register_raw_size and
3872 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3873 Set extract_return_value and extract_struct_value_address instead
3874 of their deprecated variants.
3875
c0d1d883
MK
3876 Convert i386 target to generic dummy frames.
3877 * i386-tdep.c: Include "symfile.h".
3878 (i386_frameless_signal_p): Consider a function to be frameless if
3879 the pc points at the first instruction of the function.
3880 (i386_frame_chain): Handle (generic) call dummies.
3881 (i386_frame_saved_pc): Likewise.
3882 (i386_frame_init_saved_regs): Remove code dealing with call
3883 dummies on the stack.
3884 (i386_push_dummy_frame): Removed.
3885 (i386_call_dummy_words): Removed.
3886 (i386_fix_call_dummy): Removed.
3887 (i386_push_return_address): New function.
3888 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3889 parameter, and don't call get_current_frame.
3890 (i386_pop_frame): New function.
3891 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3892 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3893 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3894 call_dummy_length to 0, set call_dummy_words to NULL, set
3895 sizeof_call_dummy_words to 0, set fix_call_dummy to
3896 generic_fix_call_dummy, set pc_in_call_dummy to
3897 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3898 generic_push_dummy_frame, set push_return_address to
3899 i386_push_return_address and set frame_chain_valid to
3900 generic_file_frame_chain_valid.
3901
049ee0e4
AC
39022002-07-03 Andrew Cagney <ac131313@redhat.com>
3903
3904 * gdbarch.sh (struct regcache): Add opaque declaration.
3905 (EXTRACT_RETURN_VALUE): New architecture method.
3906 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3907 * gdbarch.h, gdbarch.c: Regenerate.
3908 * arch-utils.c (legacy_extract_return_value): New function.
3909 * arch-utils.h (legacy_extract_return_value): Declare.
3910 * values.c (value_being_returned): Re-enable code handling
3911 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3912 deprecated_grub_regcache_for_registers call to block handling
3913 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3914 (EXTRACT_RETURN_VALUE): Do not define.
3915
4e0d9804
GS
39162002-07-03 Grace Sainsbury <graces@redhat.com>
3917
3918 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3919 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3920 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3921 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3922 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3923 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3924 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3925 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3926 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3927 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3928 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3929 argument so the function fits the prototype in the architecture
3930 vector.
3931 (mcore_pop_frame): Remove argument so the function fits the
3932 prototype. Use get_current_frame instead of the argument.
3933 (mcore_push_arguments): Change type of struct_return so the
3934 function can be used in the architecture vector.
3935 (mcore_store_struct_return): Add.
3936 (mcore_frame_init_saved_regs): Add.
3937 (mcore_gdbarch_init): Add function calls to replace the macros
3938 removed from tm-mcore.h
3939
36160dc4
AC
39402002-07-03 Andrew Cagney <ac131313@redhat.com>
3941
3942 * infcmd.c (print_return_value): Remove compatibility code calling
3943 deprecated_grub_regcache_for_registers.
3944
3945 * values.c: Include "regcache.h".
3946 (value_being_returned): Update. Use
3947 deprecated_grub_regcache_for_registers to extract the register
3948 buffer address.
3949 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3950 ``struct regcache''.
3951 * Makefile.in (values.o): Add dependency on $(regcache_h).
3952
3953 * inferior.h (run_stack_dummy): Change type of second parameter to
3954 a ``struct regcache''.
3955 * valops.c (hand_function_call): Change type of retbuf to ``struct
3956 regcache''. Allocate using regcache_xmalloc, clean using
3957 make_cleanup_regcache_xfree.
3958 * infcmd.c (run_stack_dummy): Update. Use
3959 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3960
3961 * regcache.c (do_regcache_xfree): New function.
3962 (make_cleanup_regcache_xfree): New function.
3963 * regcache.h (make_cleanup_regcache_xfree): Declare.
3964
e64d9b3d
MH
39652002-07-03 Martin M. Hunt <hunt@redhat.com>
3966
4dd79c29
MH
3967 * event-top.c (command_line_handler): Don't read past
3968 beginning of buffer.
e64d9b3d 3969
4dd79c29
MH
39702002-07-03 Martin M. Hunt <hunt@redhat.com>
3971
e64d9b3d
MH
3972 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3973 struct frame_id.
3974 (varobj_create): Store frame_id for root.
3975 (varobj_gen_name): Use xasprintf.
3976 (varobj_update): Save and restore frame using get_frame_id() and
3977 frame_find_by_id().
3978 (create_child): Use xasprintf.
3979 (new_root_variable): Initialize frame_id.
3980 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3981 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3982 to prevent memory leak.
3983
26e6c56a
AC
39842002-07-03 Andrew Cagney <ac131313@redhat.com>
3985
3986 * valops.c (hand_function_call): Move declaration of retbuf to
3987 start of function, allocate using malloc, add a cleanup but before
3988 the inf_status cleanup, cleanup the buffer. Rename local variable
3989 old_chain to inf_status_cleanup.
3990
f436dd25
MH
39912002-07-03 Martin M. Hunt <hunt@redhat.com>
3992
3993 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3994
3995 * cli/cli-decode.c (cmd_func_p): New function.
3996 (cmd_func): New function.
3997
3998 * command.h: Add cmd_func() and cmd_func_p().
3999
4cfe2084
GS
40002002-07-03 Grace Sainsbury <graces@redhat.com>
4001
4002 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4003 (REGISTER_SIZE): Remove.
4004 (MAX_REGISTER_RAW_SIZE): Remove.
4005 (REGISTER_VIRTUAL_TYPE): Remove.
4006 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4007 (REGISTER_NAME): Remove.
4008 (USE_GENERIC_DUMMY_FRAMES): Remove.
4009 (CALL_DUMMY): Remove.
4010 (CALL_DUMMY_START_OFFSET): Remove.
4011 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4012 (CALL_DUMMY_LOCATION): Remove.
4013 (FIX_CALL_DUMMY): Remove.
4014 (CALL_DUMMY_ADDRESS): Remove.
4015 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4016 (SAVE_DUMMY_FRAME_TOS): Remove.
4017 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4018 (mcore_register_virtual_type): New function.
4019 (mcore_register_byte): New function.
4020 (mcore_register_size): New function.
4021 (mcore_register_name): New function.
4022 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4023 macros removed from tm-mcore.h.
4024 (mcore_dump_tdep): Add.
4025 (_initialize_mcore_tdep): Add gdbarch_register call.
4026
4fd667e9
MK
40272002-07-03 Mark Kettenis <kettenis@gnu.org>
4028
4029 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4030 frameless_look_for_prologue, such that we actually call this
4031 function.
4032
42f99ac2
JB
40332002-07-02 Joel Brobecker <brobecker@gnat.com>
4034
4035 * frame.h (frame_address_in_block): New function.
4036
4037 * blockframe.c (frame_address_in_block): New function extracted
4038 from get_frame_block().
4039 (get_frame_block): Use frame_address_in_block().
4040 (block_innermost_frame): Use frame_address_in_block() to match
4041 the frame pc address against the block boundaries rather than
4042 the frame pc directly. This prevents a failure when a frame pc
4043 is actually a return-address pointing immediately after the end
4044 of the given block.
4045
103a1597 40462002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
4047
4048 * MAINTAINERS: Add self under write after approval.
4049
40502002-07-02 Grace Sainsbury <graces@redhat.com>
4051
103a1597
GS
4052 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4053 used in architecture vector. The default is
4054 m68k_local_breakpoint_from_pc.
4055 (m68k_local_breakpoint_from_pc): Add.
4056 (enum): Add register numbers from tm-m68k.h.
4057 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4058 vector.
4059 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4060 GDB_MULTI_ARCH_PARTIAL.
4061 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4062 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4063 m68k-tdep.c.
4064 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4065 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4066 to enum in m68k-tdep.c
4067
7a5a0534
JB
40682002-07-02 Joel Brobecker <brobecker@gnat.com>
4069
4070 * solib-osf.c (open_map): Compute the list of shared libraries
4071 loaded by the inferior, rather than the list of libraries loaded
4072 by GDB itself. Otherwise, GDB ends up reading the symbols from
4073 the wrong shared libraries...
4074
6f558d74
MK
40752002-07-02 Mark Kettenis <kettenis@gnu.org>
4076
b7d15bf7
MK
4077 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4078 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4079 macros.
4080 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4081 Remove functions.
4082 (FRAMELESS_SIGNAL): Remove function.
4083 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4084 i386_linux_saved_pc_after_call): Removed.
4085 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4086 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4087 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4088
6bff26de
MK
4089 * i386-tdep.c (i386_frameless_signal_p): New function.
4090 (i386_frame_chain): Deal with frameless signals.
4091 (i386_sigtramp_saved_sp): New function.
4092 (i386_frame_saved_pc): Deal with frameless signals.
4093 (i386_saved_pc_after_call): Make sure the correct value is
4094 returned just after entry into a sigtramp.
4095 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4096 i386fbsd4_sc_sp_offset): New variables.
4097 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4098 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4099 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4100 similiar to what we already did for sc_pc_offset.
4101 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4102 tdep->sc_sp_offset.
4103
6f558d74
MK
4104 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4105
145564b7
ML
41062002-07-02 Michal Ludvig <mludvig@suse.cz>
4107
4108 * config/i386/tm-x86-64linux.h: New.
4109 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4110 definitions.
4111 * config/i386/nm-x86-64.h: Rename to ...
4112 * config/i386/nm-x86-64linux.h: ... this one.
4113 * config/i386/x86-64linux.mh: Reflect the above change.
4114
3a1e71e3
MK
41152002-07-01 Mark Kettenis <kettenis@gnu.org>
4116
21d0e8a4
MK
4117 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4118 with sigcontext_addr. Add sc_sp_offset.
4119 (i386bsd_sigtramp_saved_pc): Remove prototype.
4120 (i386bsd_sicontext_addr): Add prototype.
4121 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4122 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4123 (i386_svr4_sigtramp_saved_pc): Removed.
4124 (i386_svr4_sigcontext_addr): New function.
4125 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4126 Initialize tdep->sigcontext_addr instead. Initialize
4127 tdep->sc_pc_offset and tdep->sc_sp_offset.
4128 (i386_gdbarch_init): Likewise.
4129 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4130 any more.
4131 (i386bsd_sigtramp_saved_pc): Remove function.
4132 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4133 Initialize tdep->sigcontext_addr instead. Initialize
4134 tdep->sc_pc_offset.
4135 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4136 of tdep->sigtramp_saved_pc.
4137 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4138 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4139 instead.
4140
3a1e71e3
MK
4141 * i386-tdep.c (i386_frameless_function_invocation,
4142 i386_frame_num_args, i386_frame_init_saved_regs,
4143 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4144 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4145 i386_extract_return_value, i386_store_return_value,
4146 i386_extract_struct_value_address, i386_register_virtual_type,
4147 i386_register_convertible, i386_register_convert_to_virtual,
4148 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4149 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4150 static.
4151
52e9098c
MK
41522002-07-01 Mark Kettenis <kettenis@gnu.org>
4153
77b13a25
MK
4154 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4155
52e9098c
MK
4156 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4157 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4158 this macro. Include "value.h".
4159
1b372fff
AS
41602002-06-30 Aidan Skinner <aidan@velvet.net>
4161
4162 * ada-exp.tab.c: remove as it's a generated file
4163 * ada-lex.c: remove as it's a generated file
4164
9c5045b5
MK
41652002-06-30 Mark Kettenis <kettenis@gnu.org>
4166
4a93c5bb
MK
4167 * config/i386/tm-i386.h (struct frame_info, struct
4168 frame_saved_regs, struct value, struct type): Remove forward
4169 declarations.
4170
322d4fe0
MK
4171 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4172 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4173 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4174 (FILL_FPXREGSET): Define.
4175
fdd8263d
MK
4176 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4177
482e577b
MK
4178 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4179 i[3456]86-*-netbsd* case.
4180 * config/i386/tm-obsd.h: Removed.
4181 * config/i386/obsd.mt: Removed.
4182 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4183 core-aout.o.
4184 (MH_CFLAGS): Add -DYYDEBUG=0.
4185
6916549a
MK
4186 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4187 i386nbsd_sc_pc_offset on OpenBSD too.
4188
9c5045b5
MK
4189 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4190 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4191 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4192 define.
4193 * i386bsd-tdep.c: Include "arch-utils.h".
4194 (i386bsd_aout_in_solib_call_trampoline): New function.
4195 (i386bsd_init_abi): Set in_solib_call_trampoline to
4196 i386bsd_aout_in_solib_call_trampoline.
4197 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4198 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4199
aa84d1bb
AC
42002002-06-28 Andrew Cagney <ac131313@redhat.com>
4201
4202 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4203 (struct obstack, struct bcache): Add opaque declarations.
4204 * Makefile.in (macrotab_h): Update
4205
b4d83933
AC
42062002-06-28 Andrew Cagney <ac131313@redhat.com>
4207
4208 * blockframe.c (generic_find_dummy_frame): Change return type to
4209 ``struct regcache''.
4210 (struct dummy_frame): Replace field ``registers'' with regcache, a
4211 struct regcache object.
4212 (generic_find_dummy_frame): Update.
4213 (generic_push_dummy_frame): Update. Use regcache_xfree,
4214 regcache_xmalloc and regcache_cpy.
4215 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4216 regcache_xfree.
4217 (deprecated_generic_find_dummy_frame): Update.
4218 (generic_read_register_dummy): Update. Use
4219 regcache_read_as_address.
4220 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4221 (generic_get_saved_register): Update. Use regcache_read.
4222
08c0b5bc
AC
42232002-06-28 Andrew Cagney <ac131313@redhat.com>
4224
4225 * Makefile.in (objfiles_h): Add $(bcache_h).
4226 * objfiles.h: Include "bcache.h".
4227
4228 * Makefile.in (symtab_h): Remove $(bcache_h).
4229 * symtab.h: Do not include "bcache.h".
4230
1f89801a
AC
42312002-06-28 Andrew Cagney <ac131313@redhat.com>
4232
4233 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4234 generic_func_frame_chain_valid.
4235
b9644b58
DB
42362002-06-28 David O'Brien <obrien@FreeBSD.org>
4237
4238 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4239 * config/i386/tm-fbsd.h: Likewise.
4240
dd486634
AC
42412002-06-28 Andrew Cagney <ac131313@redhat.com>
4242
4243 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4244 generic_unwind_get_saved_register.
4245
0b434a00
AC
42462002-06-27 Andrew Cagney <ac131313@redhat.com>
4247
4248 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4249 * regcache.c (supply_register): Add missing argument to
4250 register_buffer call.
4251
f30e5a77
AC
42522002-06-27 Andrew Cagney <ac131313@redhat.com>
4253
4254 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4255 Solaris /bin/grep does not not like it. From Peter Schauer.
4256
9f064c95
TT
42572002-06-26 Tom Tromey <tromey@redhat.com>
4258
4259 * command.h (add_setshow_cmd): Declare.
4260 (add_setshow_cmd_full): Declare.
4261 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4262 returns void. Use add_setshow_cmd_full.
4263 (add_setshow_cmd_full): New function.
4264 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4265 (add_setshow_boolean_cmd): Likewise.
4266
099c7589
JT
42672002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4268
4269 * config/vax/tm-vax.h: Protect from multiple inclusion.
4270 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4271 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4272 * config/vax/tm-vaxbsd.h: ...here. New file.
4273 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4274
1d049c5e
JT
42752002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4276
4277 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4278 (BELIEVE_PCC_PROMOTION): Remove.
4279 (AP_REGNUM): Move to...
4280 * config/vax/nm-vax.h: ...here.
4281 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4282 (vax_breakpoint_from_pc): New function.
4283 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4284 and gdbarch_believe_pcc_promotion.
4285
4791e091
JT
42862002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4287
4288 * Makefile.in (vax_tdep_h): Define.
4289 (vax-tdep.o): Use $(vax_tdep_h).
4290 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4291 (vax_dump_tdep): New function.
4292 (_initialize_vax_tdep): Register vax_dump_tdep.
4293 * vax-tdep.h: Include osabi.h.
4294 (struct gdbarch_tdep): New.
4295
da130f98
AC
42962002-06-26 Andrew Cagney <cagney@redhat.com>
4297
4298 * frame.h (deprecated_generic_find_dummy_frame): Rename
4299 generic_find_dummy_frame.
4300 * blockframe.c (generic_find_dummy_frame): Make static.
4301 (deprecated_generic_find_dummy_frame): New function.
4302 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4303 generic_find_dummy_frame with deprecated_find_dummy_frame.
4304 (sh64_nofp_frame_init_saved_regs): Ditto.
4305 (sh_fp_frame_init_saved_regs): Ditto.
4306 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4307 (s390_frame_chain): Ditto.
4308 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4309
6300c360
GS
43102002-06-26 Grace Sainsbury <graces@redhat.com>
4311
4312 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4313 gdbarch vector are at the top.
4314 (NUM_REGS): Remove.
4315 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4316 (FRAME_ARGS_ADDRESS): Remove.
4317 (FRAME_LOCALS_ADDRESS): Remove.
4318 (FRAME_NUM_ARGS): Remove.
4319 (FRAME_ARGS_SKIP): Remove.
4320 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4321 (m68k_gdbarch_init): Add gdbarch initializations for macros
4322 undefined in tm-m68k.h
4323
1c617db8
GS
43242002-06-26 Grace Sainsbury <graces@redhat.com>
4325
4326 * monitor.h: Add the function regname to monitor_ops
4327 structure. This way NUM_REGS does not have to be a constant.
4328 * monitor.c (monitor_fetch_register): Added support for regname
4329 function. The function is called if the array regnames is NULL.
4330 (monitor_store_register): Same.
da130f98
AC
4331 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4332 regnames array.
1c617db8
GS
4333 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4334 cpu32bug_cmds.regname to point to new function.
4335 * abug-rom.c (abug_regname): Same as above.
4336 (init_abug_cmds): Same.
4337 * dbug-rom.c (dbug_regname): Same as above.
4338 (init_dbug_cmds): Same.
4339 * remote-est.c (est_regname): Same.
4340 (init_est_cmds): Same.
4341 * rom68k-rom.c (rom68k_regname): Same.
4342 (init_rom68k_cmds): Same.
4343
ea9365bb
TT
43442002-06-25 Tom Tromey <tromey@redhat.com>
4345
4346 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4347
72cec141
AC
43482002-06-25 Andrew Cagney <cagney@redhat.com>
4349
4350 * infrun.c (stop_registers): Change variable's type to ``struct
4351 regcache'''.
4352 (xmalloc_inferior_status): Delete function.
4353 (free_inferior_status): Delete function.
4354 (normal_stop): Use regcache_cpy.
4355 (struct inferior_status): Change type of fields ``stop_registers''
4356 and ``registers'' to ``struct regcache''.
4357 (write_inferior_status_register): Use regcache_write.
4358 (save_inferior_status): Instead of calling
4359 xmalloc_inferior_status, allocate the inf_status buffer directly.
4360 Use regcache_dup_no_passthrough and regcache_dup to save the
4361 buffers.
4362 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4363 Replace the stop_registers regcache instead of overriding it. Use
4364 regcache_xfree. Instead of calling free_inferior_status, xfree
4365 the buffer directly.
4366 (discard_inferior_status): Use regcache_xfree. Instead of calling
4367 free_inferior_status, xfree the buffer directly.
4368 (build_infrun): Use regcache_xmalloc.
4369 (_initialize_infrun): Delete redundant call to build_infrun.
4370
4371 * Makefile.in (infcmd.o): Add $(regcache_h).
4372
4373 * infcmd.c: Include "regcache.h".
4374 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4375 obtain the address of `stop_registers' register buffer.
4376 (print_return_value): Ditto.
4377
4378 * inferior.h (struct regcache): Add opaque declaration.
4379 (stop_registers): Change variable's declared type to ``struct
4380 regcache''.
4381
defc6f8c
TT
43822002-06-24 Tom Tromey <tromey@redhat.com>
4383
c0e624e7
TT
4384 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4385 * target.c (initialize_targets): Fixed typo in
4386 trust-readonly-sections `show' documentation.
4387
defc6f8c
TT
4388 * main.c: Marked all strings with _().
4389
2b236d82
DH
43902002-06-24 Don Howard <dhoward@redhat.com>
4391
4392 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4393 that means max CORE_ADDR+1.
4394 (lookup_mem_region): Ditto.
4395 (mem_info_command): Ditto.
4396
942dc0e9
GS
43972002-06-24 Grace Sainsbury <graces@redhat.com>
4398
4399 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4400 (REGISTER_BYTES_OK): Remove.
4401 (REGISTER_BYTES): Remove.
4402 (STORE_STRUCT_RETURN): Remove.
4403 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4404 (STORE_RETURN_VALUE): Remove.
4405 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4406 (FRAME_CHAIN): Remove.
4407 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4408 (FRAME_SAVED_PC): Remove.
4409 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4410 (m68k_store_struct_return): Add.
4411 (m68k_deprecated_extract_return_value): Add.
4412 (m68k_deprecated_extract_struct_value_address): Add.
4413 (m68k_store_return_value): Add.
4414 (m68k_frame_chain): Add.
4415 (m68k_frameless_function_invocation): Add.
4416 (m68k_frame_saved_pc): Add.
4417 (m68k_gdbarch_init): added set_gdbarch calls for new
4418 functions and deleted macros.
4419
03c30d4d
TT
44202002-06-23 Tom Tromey <tromey@redhat.com>
4421
4422 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4423 (ALLDEPFILES): Likewise.
4424 (udiheaders): Removed.
4425 (udip2soc.o): Likewise.
4426 (udi2go32.o): Likewise.
4427 (udr.o): Likewise.
4428 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4429
37e71372
AC
44302002-06-22 Andrew Cagney <ac131313@redhat.com>
4431
06a6ac57
AC
4432 * infrun.c (_initialize_infrun): Delete unnecessary call to
4433 build_infrun.
4434
37e71372
AC
4435 * regcache.h: Update comments describing the regcache_cpy family
4436 of functions.
4437 (regcache_save, regcache_restore): Delete declaration.
4438 (regcache_save_no_passthrough): Delete declaration.
4439 (regcache_restore_no_passthrough): Delete declaration.
4440 * regcache.c (regcache_save): Delete function.
4441 (regcache_save_no_passthrough): Delete function.
4442 (regcache_restore): Delete function.
4443 (regcache_restore_no_passthrough): Delete function.
4444
78f6d055
AC
44452002-06-21 Andrew Cagney <ac131313@redhat.com>
4446
4447 * config/m68k/tm-m68k.h: Fix typo.
4448 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4449 (m68k_frame_init_saved_regs): Declare.
4450
78b119cb
JB
44512002-06-21 Jim Blandy <jimb@redhat.com>
4452
4453 Remove some vestiges of Harris 88k support.
4454 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4455 register numbering quirk.
4456 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4457 odd symbols occurring in Harris 88k ELF targets.
4458
0fbb3da7
TT
44592002-06-21 Tom Tromey <tromey@redhat.com>
4460
4461 * gdb_locale.h: New file.
4462 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4463 (defs_h): Added gdb_locale.h.
4464 * configure, config.in: Rebuilt.
4465 * configure.in (PACKAGE): Define.
4466 * defs.h: Include gdb_locale.h.
4467 * main.c (captured_main): Call setlocale, bindtextdomain,
4468 textdomain.
4469
456f8b9d
DB
44702002-06-21 Dave Brolley <brolley@redhat.com>
4471
4472 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4473 * config/frv/frv.mt: New file.
4474 * config/frv/tm-frv.h: New file.
4475 * configure.tgt: Support frv-*-*.
4476 * Makefile.in (frv-tdep.o): New target.
4477 * frv-tdep.c: New file.
4478 * NEWS: Mention frv.
4479
cdd463f9
DB
44802002-06-21 Dave Brolley <brolley@redhat.com>
4481
4482 * MAINTAINERS: Add self to "Write After Approval" list.
4483
5d3ed2e3
GS
44842002-06-21 Grace Sainsbury <graces@redhat.com>
4485
4486 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4487 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4488 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4489 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4490 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4491
4492 * m68k-tdep.c: Include arch-utils.h
4493 (m68k_register_raw_size): Add.
4494 (m68k_register_virtual_size): Add.
4495 (m68k_register_virtual_type): Add.
4496 (m68k_register_name): Add.
4497 (m68k_stack_align): Add.
4498 (m68k_register_byte): Add.
4499 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4500 tm-m68k.h.
4501
7f8e7424
GS
45022002-06-21 Grace Sainsbury <graces@redhat.com>
4503
a2c6a6d5 4504 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4505 m68k_find_saved_regs.
4506 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4507 references to it with frame->saved_regs.
7f8e7424
GS
4508 (m68k_gdbarch_init): Added function calls to initialize the
4509 gdbarch structure.
a2c6a6d5
GS
4510 (m68k_fix_call_dummy): Add.
4511 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4512 (CALL_DUMMY): Remove.
4513 (CALL_DUMMY_LENGTH): Remove.
4514 (CALL_DUMMY_START_OFFSET): Remove.
4515 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4516 (FIX_CALL_DUMMY): Remove.
4517 (PUSH_DUMMY_FRAME): Remove.
4518 (POP_FRAME): Remove.
7f8e7424 4519
f461f5cf
PM
45202002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4521
4522 * parse.c (parse_fprintf): New function used to avoid calls to
4523 fprintf in bison parser generated debug code.
4524 * parser-defs.h: Declaration of new parse_fprintf function.
4525 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4526 Set YYDEBUG to 1 by default.
4527 Set YYFPRINTF as parse_fprintf.
4528
7f0c12ed
ML
45292002-06-21 Michal Ludvig <mludvig@suse.cz>
4530
4531 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4532 encoding anymore.
4533 (pointer_encoding, enum ptr_encoding): New.
4534 (execute_cfa_program): Take care about pointer encoding.
4535 (dwarf2_build_frame_info): Only call parse_frame_info for
4536 .debug_frame and .eh_frame.
4537 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4538 fixed augmentation handling, added relative addressing,
4539 ignore duplicate FDEs. Added comments.
19d833a2 4540 * dwarf2cfi.c: Reindented.
7f0c12ed 4541
87c4a039
EZ
45422002-06-20 Elena Zannoni <ezannoni@redhat.com>
4543
4544 * event-top.c (command_handler): Don't use space_at_cmd_start
4545 unless there is sbrk() on the host. Assign time and space data
4546 to union fields of the appropriate length.
4547
1cf877ad
ML
45482002-06-20 Michal Ludvig <mludvig@suse.cz>
4549
4550 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4551 x86_64_register_name. Return type changed to 'const char *'.
4552 (x86_64_register_name2nr): Rename to x86_64_register_number.
4553 (x86_64_gdbarch_init): Update to reflect the change.
4554 * x86-64-tdep.h: Ditto.
4555 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4556 (supply_fpregset): Ditto.
4557
3fadccb3
AC
45582002-06-19 Andrew Cagney <cagney@redhat.com>
4559
4560 * regcache.h: Update copyright.
4561 (struct regcache, struct gdbarch): Add opaque declarations.
4562 (current_regcache): Declare global variable.
4563 (regcache_read, regcache_write): Add gdbarch parameter.
4564 (regcache_save, regcache_save_no_passthrough)
4565 (regcache_restore, regcache_restore_no_passthrough)
4566 (regcache_dup, regcache_dup_no_passthrough)
4567 (regcache_cpy, regcache_cpy_no_passthrough)
4568 (deprecated_grub_regcache_for_registers)
4569 (deprecated_grub_regcache_for_register_valid)
4570 (regcache_valid_p): Add function declarations.
4571
4572 * regcache.c: Update copyright.
4573 (regcache_descr_handle): New global variable.
4574 (struct regcache_descr): Define.
4575 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4576 (regcache_descr, xfree_regcache_descr): New functions.
4577 (struct regcache): Define.
4578 (regcache_xmalloc, regcache_xfree): New functions.
4579 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4580 (regcache_dup, regcache_dup_no_passthrough): New functions.
4581 (regcache_valid_p, regcache_read_as_address): New functions.
4582 (deprecated_grub_regcache_for_registers): New function.
4583 (deprecated_grub_regcache_for_register_valid): New function.
4584 (current_regcache): New global variable.
4585 (register_buffer): Add regcache parameter. Update calls.
4586 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4587 (read_register_gen, write_register_gen): Update register_buffer
4588 call. Test for legacy_p instead of gdbarch_register_read_p or
4589 gdbarch_register_write_p.
4590 (regcache_collect): Update register_buffer call.
4591 (build_regcache): Rewrite. Use deprecated grub functions.
4592 (regcache_save, regcache_save_no_passthrough): New functions.
4593 (regcache_restore, regcache_restore_no_passthrough): New
4594 functions.
4595 (_initialize_regcache): Create the regcache_data_handle. Swap
4596 current_regcache global variable.
4597
4598 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4599 parameter to regcache_read and regcache_write calls.
4600 (sh4_register_read): Ditto.
4601 (sh64_pseudo_register_read): Ditto.
4602 (sh64_register_read): Ditto.
4603 (sh_pseudo_register_write): Ditto.
4604 (sh4_register_write): Ditto.
4605 (sh64_pseudo_register_write): Ditto.
4606 (sh64_register_write): Ditto.
4607
4608 * defs.h (XCALLOC): Define.
4609
152d9db6
GS
46102002-06-19 Grace Sainsbury <graces@redhat.com>
4611
4612 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4613 * m68k-tdep.c (m68k_gdbarch_init): Added.
4614 (m68k_dump_tdep): Added.
4615
170911c7
DJ
46162002-06-19 Daniel Jacobowitz <drow@mvista.com>
4617
4618 * ada-lang.c (fill_in_ada_prototype): Update comment.
4619
2e4ebe70
DJ
46202002-06-19 Daniel Jacobowitz <drow@mvista.com>
4621
4622 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4623 MIPS_ABI_LAST.
4624 (mips_abi_string, mips_abi_strings): New.
4625 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4626 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4627 tdep->mips_abi_string. Honor mips_abi_string. Default to
4628 O32 if no ABI is found.
4629 (mips_dump_tdep): Use mips_abi_strings.
4630 (mips_abi_update): New function.
4631 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4632 ``set mips abi'' and ``show mips abi''. Check the size of
4633 mips_abi_strings.
4634
16775908
AC
46352002-06-19 Andrew Cagney <cagney@redhat.com>
4636
4637 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4638 constant.
4639
5051bfa4 46402002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4641
5051bfa4
JB
4642 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4643 current frame using only the first stack size adjustment. All
4644 subsequent size adjustments are not considered to be part of
4645 the "static" part of the current frame.
4646 Compute the address of the saved registers relative to the
4647 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4648 in use in this frame.
4649
56468235
DH
46502002-06-18 Don Howard <dhoward@redhat.com>
4651
4652 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4653 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4654 suggesting this solution.
4655
0b624158
AC
46562002-06-18 Andrew Cagney <ac131313@redhat.com>
4657
4658 * config/romp/xm-rtbsd.h: Delete file.
4659 * config/romp/rtbsd.mh: Delete file.
4660
221ea385
KS
46612002-06-18 Keith Seitz <keiths@redhat.com>
4662
4663 * breakpoint.c (condition_command): Post breakpoint_modify
4664 when a condition is added to an existing breakpoint.
4665 (commands_command): Likewise for commands.
4666 (set_ignore_count): Likewise for ignore counts.
4667 If no tty, do not simply return, still need to send event
4668 notification.
4669 (ignore_command): Only print a newline if the command came
4670 from a tty.
4671 Don't call breakpoints_changed, since this is now properly
4672 handled by set_ignore_count.
4673
5402eed1
AC
46742002-06-18 Andrew Cagney <cagney@redhat.com>
4675
4676 * MAINTAINERS: Note that cris-elf target can be compiled with
4677 -Werror.
4678 * cris-tdep.c (cris_register_name): Make return type constant.
4679 (cris_breakpoint_from_pc): Ditto.
4680
cc22880b
ML
46812002-06-18 Michal Ludvig <mludvig@suse.cz>
4682
4683 * frame.h (struct frame_info): Change type of context to
4684 'struct context'.
4685
fa88f677
AC
46862002-06-17 Andrew Cagney <cagney@redhat.com>
4687
4688 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4689 pointer.
4690 * gdbarch.h, gdbarch.c: Regenerate.
4691 * config/mips/tm-mips.h (mips_register_name): Update.
4692 * i386-tdep.h (i386_register_name): Update.
4693 * mips-tdep.c (mips_register_name): Update
4694 * alpha-tdep.c (alpha_register_name): Update.
4695 * arch-utils.c (legacy_register_name): Update.
4696 * arch-utils.h (legacy_register_name): Update.
4697 * avr-tdep.c (avr_register_name): Update.
4698 * ia64-tdep.c (ia64_register_name): Update.
4699 * i386-tdep.c (i386_register_name): Update.
4700 * sparc-tdep.c (sparc32_register_name): Update.
4701 (sparc64_register_name): Update.
4702 (sparclite_register_name): Update.
4703 (sparclet_register_name): Update.
4704 * sh-tdep.c (sh_generic_register_name): Update.
4705 (sh_sh_register_name): Update.
4706 (sh_sh3_register_name): Update.
4707 (sh_sh3e_register_name): Update.
4708 (sh_sh_dsp_register_name): Update.
4709 (sh_sh3_dsp_register_name): Update.
4710 (sh_sh4_register_name): Update.
4711 (sh_sh64_register_name): Update.
4712 * s390-tdep.c (s390_register_name): Update.
4713 * rs6000-tdep.c (rs6000_register_name): Update.
4714 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4715 (ns32k_register_name_32382): Update.
4716 * d10v-tdep.c (d10v_ts2_register_name): Update.
4717 (d10v_ts3_register_name): Update.
4718 * xstormy16-tdep.c (xstormy16_register_name): Update.
4719 * vax-tdep.c (vax_register_name): Update.
4720 * v850-tdep.c (v850_register_name): Update.
4721 * m68hc11-tdep.c (m68hc11_register_name): Update.
4722 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4723 (am33_register_name): Update.
4724
ea1e7ef6
GS
47252002-06-17 Grace Sainsbury <graces@redhat.com>
4726
4727 * m68k-tdep.c: Reindented.
4728
9b02dd1b
AC
47292002-06-17 Andrew Cagney <ac131313@redhat.com>
4730
4731 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4732 list of predefined types.
4733
8758dec1
MK
47342002-06-16 Mark Kettenis <kettenis@gnu.org>
4735
b6197528
MK
4736 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4737 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4738 REGISTER_CONVERT_TO_RAW): Remove defines.
4739 (i386_register_virtual_type, i386_register_convertible,
4740 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4741 Remove prototypes.
4742 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4743 macros mentioned above.
4744
82b47e62
MK
4745 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4746 (i386lynx_saved_pc_after_call): Remove prototype.
4747 * i386ly-tdep.c: Include "i386-tdep.h".
4748 (i386lynx_saved_pc_after_call): Make static. Use
4749 read_memory_nobpt instead of read_memory. Use
4750 read_memory_unsigned_integer instead of read_memory_integer.
4751 (i386lynx_init_abi): New function.
4752 (i386lynx_coff_osabi_sniffer): New function.
4753 (_initialize_i386bsd_tdep): New function.
4754
8758dec1
MK
4755 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4756 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4757 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4758 (i386_fix_call_dummy): Remove prototype.
4759 * i386-tdep.c (i386_call_dummy_words): New variable.
4760 (i386_gdbarch_init): Adjust for removal of the
4761 macros mentioned above.
4762
e9e68a56
AC
47632002-06-15 Andrew Cagney <ac131313@redhat.com>
4764
4765 * command.h (add_setshow_auto_boolean_cmd): Replace
4766 add_set_auto_boolean_cmd.
4767 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4768 add_set_auto_boolean_cmd.
4769 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4770 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4771 mask-address'' command.
4772 (show_mask_address): Add cmd parameter.
4773 * remote.c (add_packet_config_cmd): Update. Change type of
4774 set_func and show_func to cmd_sfunc_ftype.
4775 (_initialize_remote): Update `set remote Z-packet'
4776 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4777 (show_remote_protocol_e_packet_cmd): Ditto.
4778 (show_remote_protocol_E_packet_cmd): Ditto.
4779 (show_remote_protocol_P_packet_cmd): Ditto.
4780 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4781 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4782 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4783 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4784 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4785 (show_remote_protocol_Z_packet_cmd): Ditto.
4786 (show_remote_protocol_binary_download_cmd): Ditto.
4787 (show_remote_cmd): Pass NULL to all of above.
4788
fc08ec52
MK
47892002-06-15 Mark Kettenis <kettenis@gnu.org>
4790
4791 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4792 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4793 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4794 POP_FRAME): Remove defines.
4795 (i386_push_arguments, i386_store_struct_return,
4796 i386_extract_return_value, i386_store_return_value,
4797 i386_extract_struct_value_address, i386_push_dummy_frame,
4798 i386_pop_frame): Renove prototypes.
4799 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4800 macros mentioned above.
4801
e707bbc2
AC
48022002-06-15 Andrew Cagney <ac131313@redhat.com>
4803
4804 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4805 add_set_boolean_cmd.
4806 (add_setshow_cmd): New function.
4807 * command.h (add_setshow_boolean_cmd): Replace
4808 add_set_boolean_cmd.
4809 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4810 and ``set rdiromatzero''.
4811 * maint.c (_initialize_maint_cmds): Update commented out code.
4812 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4813 * target.c (initialize_targets): Update `set
4814 trust-readonly-sections'.
4815 * remote.c (_initialize_remote): Update `set remotebreak'.
4816
42fdc8df
MK
48172002-06-15 Mark Kettenis <kettenis@gnu.org>
4818
93924b6b
MK
4819 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4820 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4821 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4822 fit into multi-arch framework.
4823 (i386_breakpoint_from_pc): New function.
4824 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4825 above.
4826
42fdc8df
MK
4827 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4828 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4829 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4830 (i386_frameless_function_invocation, i386_frame_num_args,
4831 i386_frame_init_saved_regs): Remove prototypes.
4832 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4833 macros mentioned above.
4834
9773a94b
AC
48352002-06-15 Andrew Cagney <ac131313@redhat.com>
4836
4837 * cli/cli-decode.c (set_cmd_cfunc): Update.
4838 (set_cmd_sfunc): Update.
4839 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4840 (set_cmd_sfunc, set_cmd_cfunc): Update.
4841 * cli/cli-decode.h: Update.
4842
6e157172
MK
48432002-06-15 Mark Kettenis <kettenis@gnu.org>
4844
4845 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4846 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4847
7f19b9a2
AC
48482002-06-15 Andrew Cagney <ac131313@redhat.com>
4849
4850 * defs.h (auto_boolean): Declare enum.
4851 * command.h (cmd_auto_boolean): Delete enum.
4852 * mips-tdep.c (mask_address_var): Update.
4853 (mips_mask_address_p): Update.
4854 (show_mask_address): Update.
4855 * remote.c (struct packet_config): Update.
4856 (update_packet_config): Update.
4857 (show_packet_config_cmd): Update.
4858 (packet_ok): Update.
4859 (add_packet_config_cmd): Update.
4860 (_initialize_remote):
4861 * command.h: Update.
4862 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4863 (do_setshow_command): Update.
4864 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4865 * cli/cli-decode.h: Update.
4866
1cf88de5
MK
48672002-06-15 Mark Kettenis <kettenis@gnu.org>
4868
22ba8cf2
MK
4869 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4870 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4871 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4872 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4873 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4874 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4875
762c5349
MK
4876 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4877 list of DJGPP COFF targets.
4878
091198bb
MK
4879 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4880 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4881 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4882 (FP0_REGNUM): Remove define.
4883 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4884 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4885 (i386_register_virtual_size): Remove protoype.
4886 * i386-tdep.c (i386_register_virtual_size): Removed.
4887 (i386_extract_return_value, i386_store_return_value): Use
4888 FP0_REGNUM instead of NUM_FREGS to determine whether the
4889 floating-point registers are available.
4890 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4891 Adjust for removal of macros mentioned above.
4892
48932002-06-15 Mark Kettenis <kettenis@gnu.org>
4894
fcc9bf01
MK
4895 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4896 comments.
4897 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4898 Remove prototypes.
4899 (supply_gregset, fill_gregset): Remove use of register keyword and
4900 remove declaration for regmap. Use I386_NUM_GREGS instead of
4901 NUM_REGS and NUM_FREGS.
4902 (FPREGSET_FSAVE_OFFSET): Remove.
4903 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4904 NUM_FREGS to determine whether the floating-point registers are
4905 available.
4906
65e78234
MK
4907 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4908 gnu_store_registers): Replace usage of NUM_GREGS with
4909 I386_NUM_GREGS.
4910
98df6387
MK
4911 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4912 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4913 usage of NUM_GREGS with I386_NUM_GREGS.
4914
099a9414
MK
4915 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4916
57976e88
MK
4917 * i386bsd-nat.c: Include "i386-tdep.h".
4918 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4919 I386_NUM_GREGS.
4920
b335f4a6
MK
4921 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4922 and associated comment. They no longer make any sense, since we
4923 don't use this file anymore on Linux.
4924
1cf88de5
MK
4925 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4926 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4927 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4928 elements in these arrays.
4929 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4930 MAX_NUM_REGS.
4931
daa66587
MK
49322002-06-15 Mark Kettenis <kettenis@gnu.org>
4933
4934 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4935 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4936
26e9b323
AC
49372002-06-14 Andrew Cagney <cagney@redhat.com>
4938
4939 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4940 EXTRACT_RETURN_VALUE.
4941 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4942 EXTRACT_STRUCT_VALUE_ADDRESS.
4943 * gdbarch.h, gdbarch.c: Regenerate.
4944
4945 * values.c (value_being_returned): Handle
4946 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4947 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4948
4949 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4950 * arm-tdep.c (arm_gdbarch_init): Update.
4951 * avr-tdep.c (avr_gdbarch_init): Update.
4952 * cris-tdep.c (cris_gdbarch_init): Update.
4953 * d10v-tdep.c (d10v_gdbarch_init): Update.
4954 * ia64-tdep.c (ia64_gdbarch_init): Update.
4955 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4956 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4957 * s390-tdep.c (s390_gdbarch_init): Update.
4958 * sh-tdep.c (sh_gdbarch_init): Update.
4959 * s390-tdep.c (s390_gdbarch_init): Update.
4960 * sparc-tdep.c (sparc_gdbarch_init): Update.
4961 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4962 * v850-tdep.c (v850_gdbarch_init): Update.
4963 * vax-tdep.c (vax_gdbarch_init): Update.
4964 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4965 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4966
4967 * config/arc/tm-arc.h: Update.
4968 * config/d30v/tm-d30v.h: Update.
4969 * config/fr30/tm-fr30.h: Update.
4970 * config/h8300/tm-h8300.h: Update.
4971 * config/h8500/tm-h8500.h: Update.
4972 * config/i386/tm-i386.h: Update.
4973 * config/i386/tm-ptx.h: Update.
4974 * config/i386/tm-symmetry.h: Update.
4975 * config/i960/tm-i960.h: Update.
4976 * config/m32r/tm-m32r.h: Update.
4977 * config/m68k/tm-delta68.h: Update.
4978 * config/m68k/tm-linux.h: Update.
4979 * config/m68k/tm-m68k.h: Update.
4980 * config/m88k/tm-m88k.h: Update.
4981 * config/mcore/tm-mcore.h: Update.
4982 * config/mips/tm-mips.h: Update.
4983 * config/mn10200/tm-mn10200.h: Update.
4984 * config/pa/tm-hppa.h: Update.
4985 * config/pa/tm-hppa64.h: Update.
4986 * config/sparc/tm-sp64.h: Update.
4987 * config/sparc/tm-sparc.h: Update.
4988 * config/sparc/tm-sparclet.h: Update.
4989 * config/z8k/tm-z8k.h: Update.
4990
5179e78f
AC
49912002-06-14 Andrew Cagney <cagney@redhat.com>
4992
4993 * Makefile.in (i386_linux_tdep_h): Define.
4994 (i386_tdep_h, i387_tdep_h): Define.
4995 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4996 $(i386_tdep_h) and $(i387_tdep_h).
4997 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4998
8201327c
MK
49992002-06-14 Mark Kettenis <kettenis@gnu.org>
5000
edf393ac
MK
5001 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5002 Already covered by the default.
5003
896fb97d
MK
5004 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5005 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5006 (i386_gdbarch_init): Initialize long_double_format and long_double
5007 bit.
5008
8201327c
MK
5009 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5010 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5011 Move these to ...
5012 * config/i386/i386sol2.mh: ... here.
5013 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5014 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5015 (SIGCONTEXT_PC_OFFSET): Remove define.
5016 (IN_SIGTRAMP): Remove define.
5017 * i386-sol2-tdep.c: New file.
5018
5019 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5020 * config/i386/tm-i386nw.h: Removed.
5021
5022 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5023 USE_STRUCT_CONVENTION): Remove defines.
5024 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5025 (get_longjmp_target): Remove prototype.
5026 (IN_SIGTRAMP): Remove define.
5027 (i386bsd_in_sigtramp): Remove prototype.
5028 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5029 function. Update comment accordingly
5030 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5031 (FRAME_SAVED_PC): Remove define.
5032 (i386bsd_frame_saved_pc): Remove prototype.
5033 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5034 GET_LONGJMP_TARGET): Remove defines.
5035 (get_longjmp_target): Remove prototype.
5036 (IN_SIGTRAMP): Remove define.
5037 (i386bsd_in_sigtramp): Remove prototype.
5038 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5039 function. Update comment accordingly
5040 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5041 (FRAME_SAVED_PC): Remove define.
5042 (i386bsd_frame_saved_pc): Remove prototype.
5043 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5044 Remove prototype.
5045 (USE_STRUCT_CONVENTION): Remove prototype.
5046 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5047 declaration.
5048 (_initialize_i386bsd_nat): Revise logic to determine some
5049 constants at compile time when compiling a native GDB. Warn if
5050 things don't match up with what we expect.
5051 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5052 Remove variables.
5053 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5054 to use date stored in `struct gdbarch_tdep'.
5055 (i386bsd_sigcontext_offset): Remove varaible.
5056 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5057 stored in `struct gdbarch_tdep'.
5058 (i386bsd_frame_saved_pc): Make static.
5059 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5060 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5061 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5062 i386fbsd4_sc_pc_offset): New variables.
5063 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5064 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5065 functions.
5066 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5067 functions.
5068 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5069 Modify the value of i386fbsd_sigtramp_start and
5070 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5071 i386fbsd_sigtramp_end.
5072 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5073 function.
5074
5075 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5076 define to i386-linux-tdep.h.
5077 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5078 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5079 defines.
5080 (i386_linux_register_name, i386_linux_register_byte,
5081 i386_linux_register_raw_size): Remove prototypes.
5082 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5083 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5084 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5085 TARGET_WRITE_PC): Remove defines.
5086 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5087 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5088 i386_linux_write_pc): Remove prototypes.
5089 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5090 (get_longjmp_target): Remove prototype.
5091 * i386-linux-tdep.h: New file.
5092 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5093 * i386-linux-tdep.c: Include "i386-tdep.h" and
5094 "i386-linux-tdep.h".
5095 (i386_linux_register_name, i386_linux_register_byte,
5096 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5097 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5098 Make static.
5099 (i386_linux_init_abi): New function.
5100 (_initialize_i386_linux_tdep): New function.
5101
5102 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5103 (i386_saved_pc_after_call): Remove prototype.
5104 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5105 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5106 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5107 (i386_register_name, i386_stab_reg_to_regnum,
5108 i386_dwarf_reg_to_regnum): Remove prototypes.
5109 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5110 SIZEOF_SSE_REGS): Remove defines.
5111 (REGISTER_BYTES): Remove define.
5112 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5113 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5114 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5115 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5116 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5117 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5118 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5119 (get_longjmp_target): Remove prototype.
5120 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5121 (sigtramp_saved_pc): Remove define.
5122 (i386v4_sigtramp_saved_pc): Remove prototype.
5123 * config/i386/tm-go32.h (FRAME_CHAIN,
5124 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5125 (i386go32_frame_saved_pc): Remove prototype.
5126 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5127 (get_longjmp_target): Remove prototype.
5128 * i386-tdep.h: Include "osabi.h".
5129 (enum i386_abi): Removed.
5130 (enum struct_return): New enum.
5131 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5132 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5133 sc_pc_offset members.
5134 (i386_gdbarch_register_os_abi): Remove prototype.
5135 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5136 I386_SSE_NUM_REGS): New defines.
5137 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5138 I386_SSE_SIZEOF_REGS): New defines.
5139 (i386_register_name, i386_register_byte, i386_register_raw_size):
5140 New prototypes.
5141 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5142 (i386bsd_sigtramp_saved_pc): New prototype.
5143 * i386-tdep.c: Don't include "elf-bfd.h".
5144 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5145 i386_frame_chain, i386_saved_pc_after_call): Make static.
5146 (i386_frame_saved_pc): Rewrite to call architecture dependent
5147 function to deal with signal handlers. Make static.
5148 (i386go32_frame_saved_pc): Removed.
5149 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5150 Removed.
5151 (i386_get_longjmp_target): New function.
5152 (default_struct_convention, pcc_struct_convention,
5153 reg_struct_convention, valid_conventions, struct_convention): New
5154 variables.
5155 (i386_use_struct_convention): New function.
5156 (i386v4_sigtramp_saved_pc): Renamed to
5157 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5158 (i386_pc_in_sigtramp): New function.
5159 (i386_abi_names): Removed.
5160 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5161 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5162 Removed.
5163 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5164 i386_gdbarch_register_os_abi): Removed.
5165 (struct i386_abi_handler): Removed.
5166 (i386_abi_handler_list): Removed.
5167 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5168 functions.
5169 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5170 i386_nw_init_abi): New functions.
5171 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5172 Use set_gdbarch_xxx() calls instead of relying on macros for a
5173 number of calls.
5174 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5175 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5176 Register the various architecture variants defined in this file.
5177
ad2f7632
DJ
51782002-06-14 Daniel Jacobowitz <drow@mvista.com>
5179
5180 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5181 (struct main_type): Remove arg_types member. Update comments for
5182 struct field.
5183 (TYPE_ARG_TYPES): Remove.
5184 (TYPE_FN_FIELD_ARGS): Update.
5185 (smash_to_method_type): Update prototype.
5186
5187 * c-typeprint.c (cp_type_print_method_args): Take method type
5188 instead of argument list. Use new argument layout. Simplify.
5189 (c_type_print_args): Use new argument layout. Simplify.
5190 (c_type_print_base): Update call to cp_type_print_method_args.
5191 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5192 argument; use die->type instead. Update call to
5193 smash_to_method_type.
5194 (read_structure_scope): Update call to dwarf2_add_member_fn.
5195 * gdbtypes.c (allocate_stub_method): Update comment.
5196 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5197 Use new argument layout.
5198 (check_stub_method): Use new argument layout. Don't count
5199 void as an argument.
5200 (print_arg_types): Update comments. Use new argument layout.
5201 (recursive_dump_type): Don't print arg_types member.
5202 * hpread.c (hpread_read_struct_type): Use new argument layout.
5203 (fixup_class_method_type): Likewise.
5204 (hpread_type_lookup): Likewise.
5205 * stabsread.c (read_type): Update calls to read_args and
5206 smash_to_method_type.
5207 (read_args): Use new argument layout. Simplify.
5208 * valops.c (typecmp): Use new argument layout. Update parameters
5209 and comments. Simplify.
5210 (hand_function_call): Use new argument layout.
5211 (search_struct_method): Update call to typecmp.
5212 (find_overload_match): Use new argument layout.
5213
6da02953
DJ
52142002-06-13 Daniel Jacobowitz <drow@mvista.com>
5215
5216 * NEWS: Mention multithreaded debug support for gdbserver.
5217
519b2366
DJ
52182002-06-13 Daniel Jacobowitz <drow@mvista.com>
5219
5220 * MAINTAINERS: Mention NEWS.
5221
6c0d6680
DJ
52222002-06-13 Daniel Jacobowitz <drow@mvista.com>
5223
5224 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5225 (struct mips_objfile_private, compare_pdr_entries): New.
5226 (non_heuristic_proc_desc): Read the ".pdr" section if it
5227 is present.
5228
6529d2dd
AC
52292002-06-12 Andrew Cagney <ac131313@redhat.com>
5230
5231 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5232 (arm_debug): New static variable.
5233 (_initialize_arm_tdep): Add ``set debug arm'' command.
5234
26216b98
AC
52352002-06-12 Andrew Cagney <ac131313@redhat.com>
5236
5237 * Makefile.in (sim_arm_h): Define.
5238 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5239 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5240 (arm_register_sim_regno): New function, map an internal REGNUM
5241 onto a simulator register number.
5242 (arm_gdbarch_init): Set register_sim_regno.
5243
814b3ba0
AH
52442002-06-09 Aldy Hernandez <aldyh@redhat.com>
5245
5246 * MAINTAINERS: Add self.
5247
475b0867
JB
52482002-06-11 Jim Blandy <jimb@redhat.com>
5249
919d772c
JB
5250 * source.c (source_info): Mention whether the symtab has
5251 information about preprocessor macros.
5252
475b0867
JB
5253 Call the command `info macro', not `show macro'.
5254 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5255 Fix error message.
5256 (_initialize_macrocmd): Register `info_macro_command' in
5257 `infolist', not `showlist'.
5258
9e364162
DJ
52592002-06-11 Daniel Jacobowitz <drow@mvista.com>
5260
5261 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5262 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5263 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5264 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5265 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5266 unconditionally.
5267 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5268 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5269 (_initialize_mips_tdep): Remove dead code.
5270 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5271 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5272 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5273 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5274 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5275 MIPS_LAST_FP_ARG_REGNUM): Remove.
5276
23aa4c72
ML
52772002-06-11 Michal Ludvig <mludvig@suse.cz>
5278
5279 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5280 (unwind_tmp_obstack_free, parse_frame_info)
5281 (update_context, cfi_read_fp, cfi_write_fp)
5282 (cfi_frame_chain, cfi_init_extra_frame_info)
5283 (cfi_virtual_frame_pointer): Use the above function.
264d1763 5284 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 5285
70eb15a4
CV
52862002-06-11 Corinna Vinschen <vinschen@redhat.com>
5287
5288 * v850-tdep.c (v850_type_is_scalar): New function.
5289 (v850_use_struct_convention): Match current gcc implementation
5290 as close as possible.
5291 (v850_push_arguments): Fix stack_offset handling. Don't write
5292 struct_addr into register. This is done by v850_store_struct_return.
5293 (v850_extract_return_value): Care for structs.
5294 (v850_store_return_value): Ditto.
5295 (v850_store_struct_return): Actually write address.
5296
482a4d06
ML
52972002-06-11 Michal Ludvig <mludvig@suse.cz>
5298
5299 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5300 without debug information too.
5301
d855c300
AC
53022002-06-10 Andrew Cagney <ac131313@redhat.com>
5303
5304 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5305 Make multi-arch pure.
5306 * gdbarch.h, gdbarch.c: Re-generate.
5307 * arm-tdep.c (arm_print_float_info): Update.
5308 * arch-utils.h (default_print_float_info): Update.
5309 * arch-utils.c (default_print_float_info): Update.
5310 * infcmd.c (float_info): Update call.
5311
dd12a101
AC
53122002-06-10 Andrew Cagney <ac131313@redhat.com>
5313
5314 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5315 the front of the initialize list.
5316
101dcfbe
AC
53172002-06-10 Andrew Cagney <ac131313@redhat.com>
5318
5319 * infrun.c (struct inferior_status): Replace fields
5320 selected_frame_address and selected_level with field
5321 selected_frame_id.
5322 (save_inferior_status): Update. Use get_frame_id.
5323 (struct restore_selected_frame_args): Delete.
5324 (restore_selected_frame): Update. Use frame_find_by_id.
5325 (restore_inferior_status): Update.
5326
5327 * breakpoint.h (struct breakpoint): Change type of
5328 watchpoint_frame to frame_id.
5329 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5330 call to get_current_frame.
5331 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5332 get_current_frame.
5333 (watchpoint_check): Use frame_find_by_id.
5334
5335 * frame.h (record_selected_frame): Delete declaration.
5336 * stack.c (record_selected_frame): Delete function.
5337
5338 * frame.h (struct frame_id): Define.
5339 (get_frame_id): Declare.
5340 (frame_find_by_id): Declare.
5341 * frame.c (frame_find_by_id): New function.
5342 (get_frame_id): New function.
5343
304270b6
AV
53442002-06-10 Andrey Volkov <avolkov@transas.com>
5345
5346 * ser-e7kpc.c: Fix duplicated define and call of
5347 _initialize_ser_e7000pc
5348
2f2cf184
DJ
53492002-06-09 Daniel Jacobowitz <drow@mvista.com>
5350
5351 * signals/signals.c (target_signal_from_host): Fix #ifdef
5352 SIGRTMIN case.
5353 (do_target_signal_to_host): Likewise.
5354
caaa3122
DJ
53552002-06-09 Daniel Jacobowitz <drow@mvista.com>
5356
5357 * mips-tdep.c (mips_find_abi_section): New function.
5358 (mips_gdbarch_init): Call it.
5359
6ac5df3a
MK
53602002-06-09 Mark Kettenis <kettenis@gnu.org>
5361
5362 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5363 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5364 after Andrew's 2002-06-08 gdbarch change.
5365
82ea117a
MK
53662002-06-09 Mark Kettenis <kettenis@gnu.org>
5367
5368 * i386-linux-nat.c (suppy_gregset): Don't supply
5369 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5370 register cache.
5371 (fill_gregset): Don't fetch it under the same circumstances.
5372
3c25f8c7
AC
53732002-06-09 Andrew Cagney <cagney@redhat.com>
5374
5375 * Makefile.in (callback_h): Define.
5376 (remote_sim_h): Update path to remote-sim.h.
5377 (remote-rdp.o): Add $(callback_h).
5378 (remote-sim.o): Use $(callback_h).
5379 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5380 * remote-rdp.c: Include "gdb/callback.h".
5381
1029b7fa
MK
53822002-06-09 Mark Kettenis <kettenis@gnu.org>
5383
5384 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5385 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5386
616675d3
AC
53872002-06-08 Andrew Cagney <ac131313@redhat.com>
5388
a3efda28
AC
5389 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5390 * rdi-share/serpardr.c: Ditto.
5391 * rdi-share/unixcomm.c: Ditto.
5392 * rdi-share/serdrv.c: Ditto.
5393 * rdi-share/hostchan.h: Ditto.
5394 * rdi-share/hostchan.c: Ditto.
5395 * rdi-share/host.h: Ditto.
5396 * rdi-share/devsw.c: Ditto.
5397
c5f10366
AC
5398 * objfiles.h: Change type of obj_private to void pointer.
5399 * pa64solib.c: Update copyright. Don't include "assert.h", use
5400 strcmp instead of STREQ, use LONGEST, do not use PTR
5401 * somsolib.c: Ditto.
5402
616675d3
AC
5403 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5404 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5405 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5406
e4b415d9
AC
54072002-06-08 Andrew Cagney <ac131313@redhat.com>
5408
5409 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5410 (default_get_saved_register): Delete function.
5411 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5412 generic_unwind_get_saved_register.
5413 * gdbarch.h, gdbarch.c: Re-generate.
5414
ca0d0b52
AC
54152002-06-08 Andrew Cagney <ac131313@redhat.com>
5416
5417 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5418 generic_func_frame_chain_valid.
5419 * gdbarch.h, gdbarch.c: Re-generate.
5420 * blockframe.c (generic_func_frame_chain_valid): Only check
5421 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5422 passing FP to PC_IN_CALL_DUMMY.
5423 Fix PR gdb/360.
5424
76860b5f
AC
54252002-06-08 Andrew Cagney <ac131313@redhat.com>
5426
5427 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5428 (register_gdbarch_data): Initialize init_p.
5429 (gdbarch_data): Initialize data pointer using the init function.
5430 (init_gdbarch_data): Delete function.
5431 (gdbarch_update_p): Update.
5432 (initialize_non_multiarch): Update.
5433 (struct gdbarch): Add field initialized_p.
5434 * gdbarch.h, gdbarch.c: Re-generate.
5435
8dda9770
ML
54362002-06-07 Michal Ludvig <mludvig@suse.cz>
5437
5438 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5439 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5440 better do the things actually here.
5441 * x86-64-tdep.c (x86_64_register_name2nr): New.
5442 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5443 (x86_64_gdbarch_init): Respect the above change.
5444 * x86-64-tdep.h (x86_64_register_name2nr)
5445 (x86_64_register_nr2name): Add prototypes.
5446 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5447
3d79a47c
MS
54482002-06-06 Michael Snyder <msnyder@redhat.com>
5449
7bd91a28
MS
5450 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5451 Delete extra braces and re-indent.
5452 (d10v_store_return_value): Char return values
3d79a47c
MS
5453 must be shifted over by one byte in R0.
5454 (d10v_extract_return_value): Delete extra braces, re-indent.
5455
095a4c96
EZ
54562002-06-06 Elena Zannoni <ezannoni@redhat.com>
5457
5458 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5459 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5460 (d10v_integer_to_address): Rewrite.
5461 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5462 the d10v specific functions which take care of converting to the
5463 correct space.
5464
e8a77ca4
EZ
54652002-06-06 Elena Zannoni <ezannoni@redhat.com>
5466
5467 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5468 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5469
4f2e4a4f
AC
54702002-06-02 Andrew Cagney <ac131313@redhat.com>
5471
5472 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5473 includes.
5474 * config/tm-linux.h: Ditto.
5475 * config/alpha/tm-alphalinux.h: Ditto.
5476 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5477 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5478 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5479 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5480 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5481 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5482 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5483 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5484 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5485 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5486 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5487 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5488 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5489 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5490 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5491 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5492 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5493 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5494 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5495 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5496 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5497 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5498 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5499 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5500 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5501 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5502 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5503 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5504 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5505 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5506 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5507 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5508 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5509 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5510 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5511 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5512 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5513
ae2ab2ce
AS
55142002-05-04 Aidan Skinner <aidan@velvet.net>
5515
5516 * ada-exp.tab.c: New file
5517 * ada-exp.y: New file
5518 * ada-lang.c: New file
5519 * ada-lang.h: New file
5520 * ada-lex.c: New file
5521 * ada-lex.l: New file
5522 * ada-tasks.c: New file
5523 * ada-typeprint.c: New file
5524 * ada-valprint.c: New file
5525
0ddd0135
JT
55262002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5527
5528 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5529 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5530
750fbacc
JT
55312002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5532
5533 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5534 insetead of ppc-linux-tdep.o.
5535 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5536 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5537
df94e18a
AC
55382002-06-02 Andrew Cagney <ac131313@redhat.com>
5539
5540 2002-05-07 Christian Groessler <chris@groessler.org>
5541 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5542 bit register contents for little endian hosts.
5543
1a38ab75
AC
55442002-06-01 Andrew Cagney <ac131313@redhat.com>
5545
5546 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5547 any maintainer.
5548
8b1632ac
AC
55492002-06-01 Andrew Cagney <ac131313@redhat.com>
5550
5551 * gdbarch.h: Regenerate.
5552
627054c8
AC
55532002-06-01 Andrew Cagney <ac131313@redhat.com>
5554
5555 * MAINTAINERS: Add everyone to write-after-approval list.
5556
4f460812
AC
55572002-06-01 Andrew Cagney <ac131313@redhat.com>
5558
5559 * stack.c (frame_info): Use frame_register_unwind instead of
5560 saved_regs. Mention when the SP is on the stack or in a register.
5561
5562 * frame.h (frame_register_unwind_ftype): Define. Document.
5563 (struct frame_info): Add field register_unwind and
5564 register_unwind_cache.
5565 (frame_register_unwind): Declare.
5566 (generic_unwind_get_saved_register): Declare.
5567
5568 * frame.c (frame_register_unwind): New function.
5569 (generic_unwind_get_saved_register): New function.
5570
5571 * blockframe.c (generic_call_dummy_register_unwind): New function.
5572 (frame_saved_regs_register_unwind): New function.
5573 (set_unwind_by_pc): New function.
5574 (create_new_frame): New function.
5575 (get_prev_frame): New function.
5576
de888f76
AC
55772002-05-30 Andrew Cagney <ac131313@redhat.com>
5578
5579 * a29k-share/: Delete directory.
5580 * remote-vx29k.c: Delete file.
5581
2f2c3626
JT
55822002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5583
5584 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5585 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5586
9ce5c36a
JT
55872002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5588
5589 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5590 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5591 (sparc64nbsd-nat.o)
5592 (sparcnbsd-nat.o)
5593 (sparcnbsd-tdep.o): New dependency lists.
5594 * NEWS: Note new UltraSPARC NetBSD native configuration.
5595 * configure.host (sparc64-*-netbsd*): New host.
5596 * configure.tgt (sparc-*-netbsdelf*)
5597 (sparc-*-netbsd*): Set gdb_target to nbsd.
5598 (sparc64-*-netbsd*): New target.
5599 * sparc64nbsd-nat.c: New file.
5600 * sparcnbsd-nat.c: New file.
5601 * sparcnbsd-tdep.c: New file.
5602 * sparcnbsd-tdep.h: New file.
5603 * config/sparc/nbsd.mt: New file.
5604 * config/sparc/nbsd64.mh: New file.
5605 * config/sparc/nbsd64.mt: New file.
5606 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5607 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5608 (HOST_IPC): Remove.
5609 * config/sparc/nbsdaout.mt: Remove.
5610 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5611 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5612 (HOST_IPC): Remove.
5613 * config/sparc/nbsdelf.mt: Remove.
5614 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5615 sparc-nat.c compatiblity defines.
5616 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5617 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5618 * config/sparc/tm-nbsd64.h: New file.
5619 * config/sparc/tm-nbsdaout.h: Remove.
5620 * config/sparc/xm-nbsd.h: Remove.
5621
ef3cf062
JT
56222002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5623
5624 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5625 * sparc-tdep.c: Include osabi.h.
5626 (gdbarch_tdep): Add osabi member.
5627 (_initialize_sparc_tdep): Use gdbarch_register.
5628 (sparc_gdbarch_init): Use generic OS ABI framework.
5629 (sparc_dump_tdep): New function.
5630
ee8ff470
KB
56312002-05-30 Kevin Buettner <kevinb@redhat.com>
5632
5633 * corefile.c (do_captured_read_memory_integer): Return non-zero
5634 result.
5635 (safe_read_memory_integer): Copy result of memory read when
5636 status is non-zero. Also, add comments.
5637
7b112f9c
JT
56382002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5639
5640 * Makefile.in (ppc_tdep_h): Define.
5641 (ppc-linux-nat.o)
5642 (ppc-linux-tdep.o)
5643 (rs6000-tdep.o): Use $(ppc_tdep_h).
5644 (ppc-sysv-tdep.o)
5645 (ppcnbsd-nat.o)
5646 (ppcnbsd-tdep.o): New dependency lists.
5647 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5648 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5649 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5650 (ppc_sysv_abi_broken_use_struct_convention)
5651 (ppc_sysv_abi_use_struct_convention)
5652 (ppc_sysv_abi_push_arguments): Move to...
5653 * ppc-sysv-tdep.c: ...here.
5654 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5655 * rs6000-tdep.c (process_note_abi_tag_sections)
5656 (get_elfosabi): Remove.
5657 (rs6000_gdbarch_init): Use generic OS ABI framework.
5658 (rs6000_dump_tdep): New function.
5659 (_initialize_rs6000_tdep): Use gdbarch_register.
5660 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5661 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5662 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5663 of ppc-linux-tdep.o.
5664 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5665 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5666 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5667 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5668 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5669 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5670
480dd42a
JB
56712002-05-29 Jim Blandy <jimb@redhat.com>
5672
5673 * macroscope.c (default_macro_scope): Put `void' in empty argument
5674 list.
5675
4182591f
AC
56762002-05-29 Andrew Cagney <ac131313@redhat.com>
5677
5678 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5679 * arch-utils.c: Include "sim-regno.h".
5680 * gdbarch.sh: Don't include "sim-regno.h".
5681 * gdbarch.h, gdbarch.c: Regenerate.
5682 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5683 here.
5684 * arch-utils.h (legacy_register_sim_regno): To here.
5685 * remote-sim.c (legacy_register_sim_regno): Move function from
5686 here.
5687 * arch-utils.c (legacy_register_sim_regno): To here.
5688
8238d0bf
AC
56892002-05-28 Andrew Cagney <ac131313@redhat.com>
5690
5691 * sim-regno.h: New file.
5692 * Makefile.in (sim_regno_h): Define.
5693 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5694 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5695 (legacy_register_sim_regno): New function.
5696 (one2one_register_sim_regno): New function.
5697 (gdbsim_fetch_register): Rewrite.
5698 (gdbsim_store_register): Only store a register when
5699 REGISTER_SIM_REGNO is valid.
5700 * d10v-tdep.c: Include "sim-regno.h".
5701 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5702 (d10v_ts3_register_sim_regno): Ditto.
5703 * gdbarch.sh: Include "sim-regno.h".
5704 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5705 * gdbarch.h, gdbarch.c: Regenerate.
5706 * arch-utils.h (default_register_sim_regno): Delete declaration.
5707 * arch-utils.c (default_register_sim_regno): Delete function.
5708
485721b1
JT
57092002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5710
5711 * ppcnbsd-nat.c: Rewrite.
5712 * ppcnbsd-tdep.c: New file.
5713 * ppcnbsd-tdep.h: New file.
5714 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5715 solib.o, and solib-svr4.o.
5716 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5717 nbsd-tdep.o, and corelow.o.
5718
697f244d
AC
57192002-05-28 Andrew Cagney <ac131313@redhat.com>
5720
5721 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5722 `tr' and `sed'. Mention that `broken' targets are not expected to
5723 build.
5724
f08caad1 57252002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5726
5727 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5728 Let PC point right after the prologue before looking up symbols.
5729
3139facc
MH
57302002-05-27 Martin M. Hunt <hunt@redhat.com>
5731
5732 * i386-tdep.c (i386_register_virtual_type): Return
5733 builtin_type_vec128i for SSE registers.
5734
5735 * gdbtypes.h (builtin_type_vec128i): Declare.
5736
5737 * gdbtypes.c (build_builtin_type_vec128i): New function.
5738 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5739 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5740 (build_gdbtypes): Initialize new builtin vector types.
5741 (_initialize_gdbtypes): Register new vector types with gdbarch.
5742
6e3ba3b8
JT
57432002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5744
5745 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5746 since it has been multi-arch'd.
5747 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5748 Move Alpha and VAX multi-arch news entries to same section
5749 as other multi-arch news.
5750
93d5585d
JT
57512002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5752
5753 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5754 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5755 static. Rename some register numbers to put them in ns32k-tdep
5756 private namespace.
5757 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5758 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5759 functions.
5760 (_initialize_ns32k_tdep): Use gdbarch_register.
5761 * ns32k-tdep.h: New file.
5762 * ns32knbsd-tdep.c: New file.
5763 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5764 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5765 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5766 REGISTER_BYTES, REGISTER_BYTE): Remove.
5767 * config/ns32k/tm-ns32k.h: New file.
5768 * config/ns32k/tm-umax.h: Remove.
5769
efb2c70e
JT
57702002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5771
5772 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5773 ns32k_store_struct_return, ns32k_extract_return_value,
5774 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5775 functions.
5776 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5777 ns32k_saved_pc_after_call.
5778 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5779 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5780 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5781 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5782 ns32k_extract_struct_value_address.
5783
7bcc927b
JT
57842002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5785
5786 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5787 ns32k_fix_call_dummy): New.
5788 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5789 ns32k_call_dummy_words.
5790 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5791 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5792 CALL_DUMMY_NARGS): Remove.
5793 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5794
78f9d765
JT
57952002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5796
5797 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5798 ns32k_frame_saved_pc, ns32k_frame_args_address,
5799 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5800 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5801 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5802 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5803 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5804 (BREAKPOINT): Remove..
5805 (FRAME_CHAIN): Define as ns32k_frame_chain.
5806 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5807 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5808 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5809 (FRAME_FIND_SAVED_REGS): Remove.
5810 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5811 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5812 (POP_FRAME): Define as ns32k_pop_frame.
5813
f2c762e0
JT
58142002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5815
5816 * ns32k-tdep.c (ns32k_register_byte_32082,
5817 ns32k_register_byte_32382, ns32k_register_raw_size,
5818 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5819 functions.
5820 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5821 ns32k_register_byte_32382.
5822 * config/ns32k/tm-umax.h: Update copyright years.
5823 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5824 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5825 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5826 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5827 (ns32k_get_enter_addr): Fix prototype.
5828
af137673
JT
58292002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5830
5831 * ns32k-tdep.c: Update copyright years.
5832 (ns32k_register_name_32082): New function.
5833 (ns32k_register_name_32382): Ditto.
5834 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5835 (REGISTER_NAME): Define as ns32k_register_name_32382.
5836 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5837 (REGISTER_NAME): Define as ns32k_register_name_32082.
5838
a8bc7b56
JB
58392002-05-24 Jim Blandy <jimb@redhat.com>
5840
5841 * dwarf2read.c (free_line_header): Use xfree, not free.
5842
83a45910
JT
58432002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5844
5845 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5846 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5847
0db71247
AC
58482002-05-23 Andrew Cagney <ac131313@redhat.com>
5849
5850 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5851
b9e5e4dd
AC
58522002-05-23 Andrew Cagney <ac131313@redhat.com>
5853
5854 From Ross Alexander at NEC Europe:
5855 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5856
de530e84
MS
58572002-05-23 Michael Snyder <msnyder@redhat.com>
5858
5859 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5860 for input, rather than parse_and_eval_address.
5861
b91b96f4
AC
58622002-05-23 Andrew Cagney <ac131313@redhat.com>
5863
5864 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5865 * Makefile.in (sim_d10v_h): Update definition.
5866
8b279e7a
AC
58672002-05-24 Andrew Cagney <cagney@redhat.com>
5868
5869 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5870 change `2002-05-22 Michael Snyder' below.
5871 (d10v_push_arguments): Ditto.
5872 (d10v_extract_return_value): Ditto.
5873
0a3d0425
JB
58742002-05-23 Jim Blandy <jimb@redhat.com>
5875
5876 * macrotab.c (check_for_redefinition): Don't complain if the new
5877 definition is the same as the previous one. Take more arguments
5878 to allow the comparison.
5879 (macro_define_object, macro_define_function): Pass more arguments
5880 to check_for_redefinition.
5881
78eac43e
MS
58822002-05-22 Michael Snyder <msnyder@redhat.com>
5883
5884 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5885 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5886 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5887 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5888 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5889 Add a temp variable to save a call (and a memory read).
5890 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5891 if possible (so that PC_IN_CALL_DUMMY will work).
5892
9bc1edb8
CV
58932002-05-22 Corinna Vinschen <vinschen@redhat.com>
5894
5895 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5896
005ef3d2
ML
58972002-05-22 Michal Ludvig <mludvig@suse.cz>
5898
5899 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5900 fde->cie_ptr.
5901 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5902 (dwarf2_build_frame_info): Add offset to fde->initial_location
5903 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
5904 (execute_stack_op): Change type of 'result' from ULONGEST to
5905 CORE_ADDR.
005ef3d2 5906
fcf4f891
JT
59072002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5908
5909 * config/alpha/tm-nbsd.h: Include solib.h.
5910
cfef91e4
JT
59112002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5912
5913 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5914 assumptions about the host's byte order.
5915
9964235a
JT
59162002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5917
5918 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5919 to dependency list.
5920 * alphanbsd-tdep.c: Include solib-svr4.h.
5921 * shnbsd-tdep.c: Ditto.
5922
9eeef8ef
JT
59232002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5924
5925 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5926 nbsd-tdep.h to dependency list.
5927 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5928 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5929 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5930 nbsdaout.mh and nbsdelf.mh consistently.
5931 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5932 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5933 nbsdaout.mt and nbsdelf.mh consistently.
5934 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5935 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5936 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5937 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5938 a.out shared library stuff from here...
5939 * config/nm-nbsdaout.h: ...to here.
5940 * config/tm-nbsd.h: Remove.
5941 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5942 * config/arm/nbsd.mh: Remove.
5943 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5944 nbsd-tdep.o.
5945 * config/arm/nbsdaout.mh: New file.
5946 * config/arm/nbsdelf.mh: New file.
5947 * config/arm/nm-nbsdaout.h: New file.
5948 * config/i386/nbsd.mh: Remove.
5949 * config/i386/nbsd.mt: Remove.
5950 * config/i386/nbsdaout.mh: New file.
5951 * config/i386/nbsdaout.mt: New file.
5952 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5953 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5954 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5955 i386_register_u_addr): Remove.
5956 * config/i386/nm-nbsdaout.h: New file.
5957 * config/i386/nm-nbsdelf.h: Remove.
5958 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5959 (USE_STRUCT_CONVENTION): Remove.
5960 * config/i386/tm-nbsdaout.h: New file.
5961 * config/i386/tm-nbsdelf.h: Remove.
5962 * config/m68k/nbsd.mh: Remove.
5963 * config/m68k/nbsd.mt: Remove.
5964 * config/m68k/nbsdaout.mh: New file.
5965 * config/m68k/nbsdaout.mt: New file.
5966 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5967 * config/m68k/nm-nbsdaout.h: New file.
5968 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5969 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5970 * config/ns32k/nbsd.mh: Remove.
5971 * config/ns32k/nbsd.mt: Remove.
5972 * config/ns32k/nbsdaout.mh: New file.
5973 * config/ns32k/nbsdaout.mt: New file.
5974 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5975 * config/ns32k/nm-nbsdaout.h: New file.
5976 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5977 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5978 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5979 (SVR4_SHARED_LIBS): Remove.
5980 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5981 * config/sparc/nbsd.mh: Remove.
5982 * config/sparc/nbsd.mt: Remove.
5983 * config/sparc/nbsdaout.mh: New file.
5984 * config/sparc/nbsdaout.mt: New file.
5985 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5986 * config/sparc/nbsdelf.mt: New file.
5987 * config/sparc/nm-nbsdaout.h: New file.
5988 * config/sparc/nm-nbsdelf.h: Remove.
5989 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5990 * config/sparc/tm-nbsdaout.h: New file.
5991
257ce470
JT
59922002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5993
5994 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5995 mipsnbsd-tdep.c
5996 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5997
76a6d5fe
JT
59982002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5999
6000 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6001 shnbsd-nat.c.
6002 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6003
45888261
JT
60042002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6005
6006 * NEWS: Note new MIPS NetBSD native configuration.
6007 * configure.host (mips*-*-netbsd*): New host.
6008 * configure.tgt (mips*-*-netbsd*): New target.
6009 * mipsnbsd-nat.c: New file.
6010 * mipsnbsd-tdep.c: New file.
6011 * mipsnbsd-tdep.h: New file.
6012 * config/mips/nbsd.mh: New file.
6013 * config/mips/nbsd.mt: New file.
6014 * config/mips/nm-nbsd.h: New file.
6015 * config/mips/tm-nbsd.h: New file.
6016
70f80edf
JT
60172002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6018
6019 * Makefile.in (SFILES): Add osabi.c.
6020 (COMMON_OBS): Add osabi.o.
6021 (osabi.o): New dependency list.
6022 * osabi.c: New file.
6023 * osabi.h: New file.
6024 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6025
6026 * Makefile.in (alpha_tdep_h): Define and use instead of
6027 alpha-tdep.h.
6028 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6029 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6030 Remove.
6031 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6032 * alpha-tdep.h: Include osabi.h.
6033 (alpha_abi): Remove.
6034 (gdbarch_tdep): Use generic OS ABI framework.
6035 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6036 gdbarch_register_osabi.
6037 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6038 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6039 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6040
6041 * Makefile.in (sh_tdep_h): Add osabi.h.
6042 * sh-tdep.h (sh_osabi): Remove.
6043 (gdbarch_tdep): Use generic OS ABI framework.
6044 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6045 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6046 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6047 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6048
6049 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6050 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6051 gdbarch_register_osabi.
6052 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6053 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6054 (get_elfosabi): Rename to...
6055 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6056 ABI framework support routines.
6057 (arm_gdbarch_init): Use generic OS ABI framework.
6058 (arm_dump_tdep): Likewise.
6059 (_initialize_arm_tdep): Likewise.
6060 * arm-tdep.h: Include osabi.h.
6061 (arm_abi): Remove.
6062 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6063 osabi member.
6064 (arm_gdbarch_register_os_abi): Remove prototype.
6065 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6066 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6067
6068 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6069 * mips-tdep.c: Include osabi.h.
6070 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6071 OS ABI framework.
6072
d194345b
KH
60732002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6074
6075 * h8300-tdep.c: Fix formatting.
6076
70c6b0d1
EZ
60772002-05-20 Elena Zannoni <ezannoni@redhat.com>
6078
6079 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6080 printing vector registers.
6081
165b8e33
AC
60822002-05-19 Andrew Cagney <ac131313@redhat.com>
6083
6084 From Fernando Nasser:
6085 * remote.c (remote_async_open_1): Re-throw the exception when the
6086 connection fails.
6087 (remote_cisco_open): Ditto.
6088 (remote_open_1): Ditto.
6089
36918e70
AC
60902002-05-19 Andrew Cagney <ac131313@redhat.com>
6091
6092 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6093 (remote_start_remote): Add uiout parameter. Pass through to
6094 remote_start_remote_dummy.
6095 (remote_open_1): Use catch_exception instead of catch_errors.
6096 (remote_async_open_1): Ditto.
6097 (remote_cisco_open): Ditto.
6098
ae44c0c4
AC
60992002-05-19 Andrew Cagney <ac131313@redhat.com>
6100
6101 * remote.c (remote_start_remote): Replace PTR with void pointer.
6102 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6103 static.
6104
8efe637d
AC
61052002-05-18 Andrew Cagney <ac131313@redhat.com>
6106
6107 * gdb_indent.sh: Allow the script to be run in the sim directory.
6108
2f1b5984
MK
61092002-05-18 Mark Kettenis <kettenis@gnu.org>
6110
f0f625e2
MK
6111 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6112 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6113
2f1b5984
MK
6114 * corelow.c (core_open): Only call set_gdbarch_from_file if
6115 exec_bfd is NULL.
6116
fc974602
AV
61172002-05-17 Andrey Volkov <avolkov@transas.com>
6118
6119 * h8300-tdep.c: Add support of EXR register
6120 * config/h8300/tm-h8300.h: Ditto.
6121
906709f4
AV
61222002-05-17 Andrey Volkov <avolkov@transas.com>
6123
6124 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6125
6e591d68
AV
61262002-05-17 Andrey Volkov <avolkov@transas.com>
6127
6128 * h8300-tdep.c: Change literal regnums to REGNO.
6129
84f0252a
JB
61302002-05-17 Jim Blandy <jimb@redhat.com>
6131
e0e9281e
JB
6132 * NEWS: Note addition of macro support.
6133
84f0252a
JB
6134 Expand preprocessor macros in C expressions.
6135 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6136 (scan_macro_expansion, scanning_macro_expansion,
6137 finished_macro_expansion): New function declarations.
6138 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6139 variable declarations.
6140 * parser-defs.h (expression_context_pc): New declaration.
6141 * parse.c (expression_context_pc): New variable.
6142 (parse_exp_1): Set expression_context_pc, as well as
6143 expression_context_block.
6144 * c-exp.y (yylex): If we're not already reading the result of a
6145 macro expansion, try to macro-expand the next token. When we're
6146 done scanning a macro expansion, switch back to the mainline text.
6147 Commas and `if's in a macro's expansion don't terminate the input.
6148 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6149 (macro_original_text, macro_expanded_text,
6150 expression_macro_lookup_func, expression_macro_lookup_baton): New
6151 variables.
6152 (scan_macro_expansion, scanning_macro_expansion,
6153 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6154 c_preprocess_and_parse): New functions.
6155 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6156 c_preprocess_and_parse, instead of c_parse.
6157 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6158 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6159
1c509ca8
JR
6160Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6161
6162 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6163 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6164 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6165
2250ee0c
CV
61662002-05-17 Corinna Vinschen <vinschen@redhat.com>
6167
6168 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6169
ab3b8126
JT
61702002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6171
6172 * Makefile.in (sh_tdep_h): Define and use.
6173 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6174 register enum): Move to...
6175 * * sh-tdep.h: ...here.
6176 * sh-tdep.c: Include sh-tdep.h.
6177 * sh3-rom.c: Likewise.
6178 * shnbsd-tdep.c: Likewise.
6179
ed9d4749
MS
61802002-05-16 Michael Snyder <msnyder@redhat.com>
6181
6182 * arm-tdep.c: Spelling fix in comment.
6183
2e276125
JB
61842002-05-16 Jim Blandy <jimb@redhat.com>
6185
6821892e
JB
6186 Add commands for manually expanding macros and showing their
6187 definitions.
6188 * macrocmd.c, macroscope.c, macroscope.h: New files.
6189 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6190 (macroscope_h): New variable.
6191 (HFILES_NO_SRCDIR): Add macroscope.h.
6192 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6193 (macroscope.o, macrocmd.o): New rules.
6194
2e276125
JB
6195 Teach the Dwarf 2 reader to read macro information.
6196 * dwarf2read.c: #include "macrotab.h".
6197 (dwarf_macinfo_buffer): New variable.
6198 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6199 dwarf_macinfo_size.
6200 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6201 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6202 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6203 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6204 dwarf2_macro_spaces_in_definition): New complaints.
6205 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6206 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6207 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6208 the partial symbol table.
6209 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6210 from what's recorded in the partial symbol table.
6211 (read_file_scope): If the compilation unit has a
6212 `DW_AT_macro_info' attribute, read its macro information.
6213 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6214
2f53fe6c
DJ
62152002-05-16 Daniel Jacobowitz <drow@mvista.com>
6216
6217 Fix PR gdb/546
6218 * ser-tcp.c: Don't include <netinet/udp.h>.
6219
2be99286
SC
62202002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6221
6222 * MAINTAINERS: Update my email address.
6223
c9af212b 62242002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
6225
6226 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6227 include file of the same name.
6228
bf5f1a52
CV
62292002-05-16 Corinna Vinschen <vinschen@redhat.com>
6230
6231 * configure.tgt: Mark v850 as multi-arched.
6232 * config/v850/tm-v850.h: Remove file.
6233 * config/v850/v850.mt: Eliminate TM_FILE.
6234
435e042a
CV
62352002-05-16 Corinna Vinschen <vinschen@redhat.com>
6236
6237 * v850-tdep.c: Full multi-arch.
6238 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6239 Define GDB_MULTI_ARCH to 2.
6240
9819c6c8
PM
62412002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6242
6243 * p-exp.y (current_type): New static variable.
6244 Carries the type of the expression at the position that is parsed.
6245 (push_current_type, pop_current_type): Two new functions. Used
6246 to store/restore current_type in expression on specific tokens.
c9af212b
RE
6247 (search_field): New static variable. Set to one after parsing a point
6248 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
6249 (FIELDNAME): New token. After a point only a token belonging to
6250 current_type type definition is allowed.
6251 (all over token rules): reset and change current_type according
6252 to rules.
6253 (exp '[' rule): insert implicit array index field if
6254 exp is a pascal string type.
6255
3a06899a
CV
62562002-05-16 Corinna Vinschen <vinschen@redhat.com>
6257
6258 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6259 frame info. Use frame_info's saved_regs instead of matching member
6260 in extra_frame_info throughout.
6261 (v850_frame_init_saved_regs): New function.
6262 (v850_init_extra_frame_info): Move most functionality into
6263 v850_frame_init_saved_regs().
6264 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6265 (v850_frame_find_saved_regs): Remove declaration.
6266 (FRAME_FIND_SAVED_REGS): Remove definition.
6267 (v850_frame_init_saved_regs): Add declaration.
6268 (FRAME_INIT_SAVED_REGS): Add definition.
6269
6ed14b0e
CV
62702002-05-16 Corinna Vinschen <vinschen@redhat.com>
6271
6272 * v850-tdep.c: Begin multi-arch'ing v850.
6273 (v850_target_architecture_hook): Remove function.
6274 (v850_gdbarch_init): New function. Add code previously in
6275 v850_target_architecture_hook().
6276 (_initialize_v850_tdep): Don't set target_architecture_hook.
6277 Call register_gdbarch_init() instead.
6278
42725910
DJ
62792002-05-16 Daniel Jacobowitz <drow@mvista.com>
6280
6281 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6282 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6283 (fixup_class_method_type): Likewise.
6284
99d9066e
JB
62852002-05-15 Jim Blandy <jimb@redhat.com>
6286
6287 Add macro structures to GDB's symbol tables. Nobody puts anything
6288 in them yet.
6289 * symtab.h (struct symtab): New member: `macro_table'.
6290 * buildsym.h (pending_macros): New global variable.
6291 * buildsym.c: #include "macrotab.h".
6292 (buildsym_init): Initialize `pending_macros'.
6293 (end_symtab): If we found macro information while reading a CU's
6294 debugging info, do build a symtab structure for it. Make the
6295 symtab point to the macro information, and clear the
6296 `pending_macros' pointer which held it while we were reading the
6297 debug info.
6298 (really_free_pendings): Free any pending macro table.
6299 * objfiles.h (struct objfile): New member: `macro_cache'.
6300 * objfiles.c (allocate_objfile): Set allocate and free functions
6301 for the macro cache's objstack.
6302 (free_objfile): Empty the macro cache's obstack.
6303 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6304 set new allocate and free functions for it.
6305 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6306 free functions for the macro cache's objstack. (Why is this
6307 function building its own objfile?)
6308 * symmisc.c (print_objfile_statistics): Print statistics on the
6309 macro bcache.
6310 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6311
c899585b
RE
63122002-05-15 Richard Earnshaw <rearnsha@arm.com>
6313
6314 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6315 (REGISTER_U_ADDR): Delete definition.
6316 (arm_register_u_addr): Delete declaration.
6317
a6cdd8c5
RE
63182002-05-15 Richard Earnshaw <rearnsha@arm.com>
6319
6320 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6321 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6322
c97dcfc7
AC
63232002-05-14 Andrew Cagney <ac131313@redhat.com>
6324
6325 * regcache.c (register_valid): Revise comments refering to "Not
6326 available" and "unavailable".
6327 * frame.c (frame_register_read): Ditto.
6328 * findvar.c (value_of_register): Ditto.
6329
93021b7d
AC
63302002-05-15 Andrew Cagney <cagney@redhat.com>
6331
6332 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6333 (remote-sim.o): Update dependencies.
6334 (d10v-tdep.o): Specify dependencies.
6335 (sim_d10v_h): Define.
6336
a86bc61c
JB
63372002-05-14 Jim Blandy <jimb@redhat.com>
6338
6339 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6340 * macrotab.c (macro_lookup_inclusion, find_definition,
6341 new_macro_table): Same.
6342
6343 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6344 not `! strcmp ()'. This is a dubious improvement.
6345 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6346
6347 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6348 although it's not necessary, to avoid a warning.
6349
2fdde8f8
DJ
63502002-05-14 Daniel Jacobowitz <drow@mvista.com>
6351
6352 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6353 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6354 TYPE_INSTANCE_FLAGS.
6355 (struct main_type): New.
6356 (struct type): Move most members to struct main_type. Change
6357 cv_type and as_type to new type_chain member. Add instance_flags.
6358 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6359 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6360 (finish_cv_type): Remove prototype.
6361 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6362 Set TYPE_CHAIN.
6363 (alloc_type_instance): New function.
6364 (smash_type): New function.
6365 (make_pointer_type, make_reference_type, make_function_type)
6366 (smash_to_member_type, smash_to_method_type): Call smash_type.
6367 (make_qualified_type): New function.
6368 (make_type_with_address_space): Call make_qualified_type.
6369 (make_cv_type): Likewise.
6370 (finish_cv_type): Remove unnecessary function.
6371 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6372 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6373 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6374 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6375 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6376 * hpread.c (hpread_read_struct_type): Likewise.
6377 * stabsread.c (read_struct_type): Likewise.
6378
843fedf4
EZ
63792002-05-14 Elena Zannoni <ezannoni@redhat.com>
6380
6381 * configure.tgt: Add a catch all sh* target, for cases like
6382 sh[2,3,4]-elf and sh-hms.
6383
05a6c72c
KS
63842002-05-14 Keith Seitz <keiths@redhat.com>
6385
6386 * event-loop.c (create_file_handler): Don't do anything but
6387 update data when we are given a fd which we are already
6388 monitoring.
6389
5d085aaf
ML
63902002-05-14 Michal Ludvig <mludvig@suse.cz>
6391
6392 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6393 (update_context): Use __func__ in warnings.
6394
9db8d71f
DJ
63952002-05-14 Daniel Jacobowitz <drow@mvista.com>
6396
6397 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6398 and tcp_close to net_open and net_close.
6399 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6400 using UDP if requested. Don't try to disable Nagle on UDP
6401 sockets.
6402 * remote.c (remote_serial_open): New function. Warn about UDP.
6403 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6404
5dbc6baa
EZ
64052002-05-13 Elena Zannoni <ezannoni@redhat.com>
6406
6407 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6408
cc3023f7
EZ
64092002-05-13 Elena Zannoni <ezannoni@redhat.com>
6410
6411 * configure.tgt: Remove sh-hms target.
6412 * MAINTAINERS: Don't list sh-hms as a separate target.
6413
ec2bcbe7
JB
64142002-05-13 Jim Blandy <jimb@redhat.com>
6415
6416 Add first preprocessor macro-expansion files.
6417 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6418 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6419 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6420 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6421 (COMMON_OBS): Add macrotab.o, macroexp.o.
6422 (macroexp.o, macrotab.o): New rules.
6423
6d531722
AC
64242002-05-13 Andrew Cagney <ac131313@redhat.com>
6425
6426 * config/m88k/tm-m88k.h: Update copyright.
6427 (m88k_target_write_pc): Declare
6428 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6429 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6430 (SHIFT_INST_REGS): Update definition.
6431 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6432 using old definition of TARGET_WRITE_PC.
6433 * regcache.c (generic_target_write_pc): Delete code handling
6434 NNPC_REGNUM.
6435 * gdbarch.sh (NNPC_REGNUM): Delete.
6436 * gdbarch.h, gdbarch.c: Regenerate.
6437
3e3f2739
RE
64382002-05-13 Richard Earnshaw <rearnsha@arm.com>
6439
6440 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6441 builtin reg number.
6442
0004e5a2
DJ
64432002-05-13 Daniel Jacobowitz <drow@mvista.com>
6444
6445 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6446 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6447 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6448 access macros.
6449 * c-typeprint.c (cp_type_print_method_args): Likewise.
6450 (c_type_print_args): Likewise.
6451 * d10v-tdep.c (d10v_push_arguments): Likewise.
6452 (d10v_extract_return_value): Likewise.
6453 * expprint.c (print_subexp): Likewise.
6454 * gdbtypes.c (lookup_primitive_typename): Likewise.
6455 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6456 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6457 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6458 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6459 (TYPE_VECTOR): Likewise.
6460 * hpread.c (hpread_read_struct_type)
6461 (fix_static_member_physnames, fixup_class_method_type)
6462 (hpread_type_lookup): Likewise.
6463 * mdebugread.c (parse_symbol, parse_type): Likewise.
6464 * p-lang.c (is_pascal_string_type): Likewise.
6465 * valops.c (hand_function_call): Likewise.
6466 * x86-64-tdep.c (classify_argument): Likewise.
6467
6468 * hpread.c (hpread_read_function_type)
6469 (hpread_read_doc_function_type): Call replace_type.
6470 * dstread.c (create_new_type): Delete.
6471 (decode_dst_structure, process_dst_function): Call alloc_type.
6472 Use type access macros.
6473
dff95cc7
MK
64742002-05-12 Mark Kettenis <kettenis@gnu.org>
6475
6476 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6477 the're not supported by the current architecture.
6478 (i387_fill_fxsave): Likewise.
6479
bbcd32ad
FF
64802002-05-12 Fred Fish <fnf@redhat.com>
6481
6482 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6483 sect_index_xxx members to index the first slot in section_offsets
6484 if all of the section_offsets are zero.
6485
89cf4787
MK
64862002-05-12 Mark Kettenis <kettenis@gnu.org>
6487
6488 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6489 checked in with last change.
6490
1f77ffc5
MK
64912002-05-12 Mark Kettenis <kettenis@gnu.org>
6492
6493 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6494 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6495 config.sub.
6496
89b8b4a9
DJ
64972002-05-12 Daniel Jacobowitz <drow@mvista.com>
6498
6499 * Makefile.in: Update dependencies.
6500
14a5e767
AC
65012002-05-11 Andrew Cagney <ac131313@redhat.com>
6502
6503 * language.c (local_hex_string_custom): Simplify. Do not depend
6504 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6505
6506 * memattr.c (mem_info_command): Replace calls to
6507 longest_local_hex_string and longest_local_hex_string_custom.
6508 * buildsym.c (make_blockvector): Ditto.
6509 * solib.c (info_sharedlibrary_command): Ditto.
6510 * tracepoint.c (tracepoints_info): Ditto.
6511 * symtab.c (print_msymbol_info): Ditto.
6512
6513 * language.c (local_hex_string): Delete.
6514 (local_hex_string_custom): Delete.
6515 (longest_local_hex_string): Rename to local_hex_string.
6516 (longest_local_hex_string_custom): Rename to
6517 local_hex_string_custom.
6518 * language.h (local_hex_string): Change parameter type to LONGEST.
6519 (local_hex_string_custom): Ditto.
6520 (longest_local_hex_string): Delete declaration.
6521 (longest_local_hex_string_custom): Ditto.
6522
6523 * solib.c: Update copyright.
6524 * memattr.c: Update copyright.
6525
13d01224
AC
65262002-05-11 Andrew Cagney <ac131313@redhat.com>
6527
6528 * arch-utils.h (legacy_register_to_value): Declare.
6529 (legacy_value_to_register): Declare.
6530 (legacy_convert_register_p): Declare.
6531 * arch-utils.c (legacy_register_to_value): New function.
6532 (legacy_value_to_register): New function.
6533 (legacy_convert_register_p): New function.
6534
6535 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6536 (VALUE_TO_REGISTER): Define.
6537 (CONVERT_REGISTER_P): Define.
6538 * gdbarch.h, gdbarch.c: Regenerate.
6539
6540 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6541 VALUE_TO_REGISTER.
6542 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6543 CONVERT_REGISTER_P.
6544
4a1970e4
DJ
65452005-05-11 Daniel Jacobowitz <drow@mvista.com>
6546 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6547
6548 * Makefile.in: Update dependencies for valops.c.
6549 * valops.c: Include "gdb_assert.h".
6550 (typecmp): Skip THIS parameter to methods.
6551 (find_method_list): Remove static_memfuncp argument,
6552 update callers. Check for stub methods.
6553 (find_value_oload_method_list): Don't set *static_memfuncp.
6554 (find_overload_match): Don't check for stub methods. Assert
6555 that methods are not stubbed. Handle static methods.
6556 (value_find_oload_method_list): Remove static_memfuncp argument.
6557 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6558 to the argument list for static stub methods.
6559 * value.h (value_find_oload_method_list): Update prototype.
6560
b2e75d78
AC
65612002-05-11 Andrew Cagney <ac131313@redhat.com>
6562
6563 * arch-utils.h (generic_register_size): Declare.
6564 (generic_register_raw_size, generic_register_virtual_size): Delete
6565 declarations.
6566 * arch-utils.c (generic_register_raw_size): Delete.
6567 (generic_register_size): New function.
6568 (generic_register_virtual_size): Delete.
6569
6570 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6571 default generic_register_size.
6572 * gdbarch.h, gdbarch.c: Re-generate.
6573
6574 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6575 register_virtual_size.
6576 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6577 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6578
451fbdda
AC
65792002-05-11 Andrew Cagney <ac131313@redhat.com>
6580
6581 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6582 * gdbarch.h, gdbarch.c: Regenerate.
6583 * gnu-v3-abi.c: Update copyright.
6584 (vtable_address_point_offset): Update.
6585 (gnuv3_rtti_type): Update.
6586 (gnuv3_baseclass_offset): Update.
6587 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6588 (init_fetch_link_map_offsets): Update.
6589 * remote.c (get_remote_state): Update.
6590
6d2f5cea
DJ
65912002-05-11 Daniel Jacobowitz <drow@mvista.com>
6592
6593 * TODO: Remove value_headof/value_from_vtable_info comment.
6594 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6595 * values.c (value_headof, value_from_vtable_info): Delete.
6596 * value.h (value_from_vtable_info): Delete prototype.
6597
d2324da4
AC
65982002-05-11 Andrew Cagney <ac131313@redhat.com>
6599
6600 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6601 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6602 $(gdb_regex_h).
6603 (gdb_assert_h): Define.
6604 (gdb_wait_h): Define.
6605 (gdb_regex_h): Define.
6606
5c717440
DJ
66072002-05-11 Daniel Jacobowitz <drow@mvista.com>
6608
6609 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6610 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6611
6c7861b3
JT
66122002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6613
6614 * nbsd-tdep.c: Fix comment.
6615
ea5bc2a6
JT
66162002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6617
6618 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6619 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6620 (nbsd-tdep.o): New dependency list.
6621 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6622 nbsd-tdep.h.
6623 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6624 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6625 * nbsd-tdep.c: New file.
6626 * nbsd-tdep.h: New file.
6627 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6628 nbsd-tdep.h.
6629 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6630 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6631 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6632 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6633
b28da865
JT
66342002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6635
6636 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6637 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6638 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6639 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6640 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6641 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6642
4b8ff1fa
JT
66432002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6644
6645 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6646 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6647 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6648 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6649 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6650 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6651 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6652
dfe6eb1f
JT
66532002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6654
6655 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6656 fetch_elfcore_registers to...
6657 * i386nbsd-tdep.c: ...here.
6658 (i386nbsd_use_struct_convention): Rename to...
6659 (i386nbsd_aout_use_struct_convention): ...this.
6660 (i386nbsd_supply_reg): New function.
6661 (i386nbsd_fill_reg): New function.
6662 (fetch_core_registers): Use i386nbsd_supply_reg.
6663 (fetch_elfcore_registers): Likewise.
6664 (_initialize_i386nbsd_tdep): New function.
6665 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6666 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6667 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6668 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6669 (i386nbsd_aout_use_struct_convention): ...this.
6670
20cb8cda
JT
66712002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6672
6673 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6674 (store_inferior_registers): Use shnbsd_fill_reg.
6675 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6676 sh_nbsd_supply_register): Collapse into...
6677 (shnbsd_supply_reg): ...this.
6678 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6679 (shnbsd_fill_reg): ...this.
6680 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6681 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6682 (fetch_core_registers): Use shnbsd_supply_reg.
6683 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6684 (sh_nbsd_core_fns): Rename to...
6685 (shnbsd_core_fns): ...this.
6686 (sh_nbsd_elfcore_fns): Rename to...
6687 (shnbsd_elfcore_fns): ...this.
6688 (sh_nbsd_init_abi): Rename to...
6689 (shnbsd_init_abi): ...this.
6690 (_initialize_sh_nbsd_tdep): Rename to...
6691 (_initialize_shnbsd_tdep): ...this.
6692 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6693 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6694 sh_nbsd_fill_register): Remove prototypes.
6695 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6696
e750d25e
JT
66972002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6698
6699 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6700 (i387-nat.o): Delete dependency list.
6701 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6702 (x86-64-linux-nat.o): Likewise.
6703 * i387-nat.c: Delete file, moving contents to...
6704 * i387-tdep.c: ...here.
6705 * i387-nat.h: Rename...
6706 * i387-tdep.h: ...to this.
6707 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6708 * i386-linux-nat.c: Likewise.
6709 * i386bsd-nat.c: Likewise.
6710 * i386gnu-nat.c: Likewise.
6711 * i386nbsd-nat.c: Likewise.
6712 * i386v4-nat.c: Likewise.
6713 * x86-64-linux-nat.c: Likewise.
6714 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6715 * config/i386/go32.mh (NATDEPFILES): Likewise.
6716 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6717 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6718 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6719 * config/i386/linux.mh (NATDEPFILES): Likewise.
6720 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6721 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6722 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6723 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6724
1aee598a
JT
67252002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6726
6727 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6728 (alphanbsd-nat.o): Remove dependency list.
6729 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6730 * alphanbsd-nat.c: Delete. Contents moved to...
6731 * alphanbsd-tdep.c: ...here.
6732 (_initialize_alphanbsd_tdep): Register core functions.
6733 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6734
12bcb0fe
JT
67352002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6736
6737 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6738 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6739 (alphanbsd-nat.o): Likewise.
6740 (alphabsd-tdep.o): New dependency list.
6741 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6742 (fill_gregset): Use alphabsd_fill_reg.
6743 (supply_fpregset): Use alphabsd_supply_fpreg.
6744 (fill_fpregset): Use alphabsd_fill_fpreg.
6745 (fetch_inferior_registers): Use struct reg and struct fpreg
6746 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6747 and alphabsd_supply_fpreg.
6748 (store_inferior_registers): Use struct reg and struct fpreg
6749 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6750 and alphabsd_fill_fpreg.
6751 * alphabsd-tdep.c: New file.
6752 * alphabsd-tdep.h: New file.
6753 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6754 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6755 alphabsd_supply_fpreg.
6756 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6757 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6758
361d1df0
EC
67592002-05-11 Eric Christopher <echristo@redhat.com>
6760
6761 * mips-tdep.c (mips_double_register_type): Fix thinko.
6762 (mips_single_register_type): Ditto.
6763 * MAINTAINERS: Add self.
6764
92dd7cee
MK
67652002-05-11 Mark Kettenis <kettenis@gnu.org>
6766
6767 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6768 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6769 right thing on architectures with different endianness and/or
6770 integer sizes.
6771
e27da16d
JT
67722002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6773
6774 From Christian Limpach <chris@Pin.LU>
6775 * configure.in: Change sed expression which comments out
6776 NATDEPFILES to also comment out continuation lines.
6777 * configure: Regenerate.
6778
ddde02bd
EZ
67792002-05-10 Elena Zannoni <ezannoni@redhat.com>
6780
6781 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6782 big patch.
6783
1c922164
EZ
67842002-05-10 Elena Zannoni <ezannoni@redhat.com>
6785
6786 * sh-tdep.c: Include correct file.
6787
283150cd
EZ
67882002-05-10 Elena Zannoni <ezannoni@redhat.com>
6789
6790 New support for sh64-elf (sh5) target.
6791
6792 * configure.tgt: For sh64-elf target, default to sh-elf.
6793
6794 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6795 (struct gdbarch_tdep): Add new fields for new registers and ABI
6796 info.
361d1df0 6797
283150cd
EZ
6798 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6799 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6800 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6801 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6802 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6803 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6804 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6805 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6806 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6807 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6808 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6809 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6810 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6811 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6812 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6813 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6814 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6815 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6816 sign_extend, sh64_nofp_frame_init_saved_regs,
6817 sh64_init_extra_frame_info, sh64_get_saved_register,
6818 sh64_extract_struct_value_address, sh64_pop_frame,
6819 sh64_push_arguments, sh64_extract_return_value,
6820 sh64_store_return_value, sh64_show_media_regs,
6821 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6822 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6823 sh_sh64_register_virtual_type,
6824 sh_sh64_register_convert_to_virtual,
6825 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6826 sh64_register_read, sh64_pseudo_register_write,
6827 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6828 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6829 sh64_do_pseudo_register, sh_compact_do_registers_info,
6830 sh64_do_registers_info, sh_gdbarch_init): New functions.
6831
3117ed25
EZ
68322002-05-10 Elena Zannoni <ezannoni@redhat.com>
6833
6834 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6835
2654e6d4
DJ
68362002-05-10 Daniel Jacobowitz <drow@mvista.com>
6837
6838 * linespec.c (decode_line_1): Check for a double quote after
6839 a filename correctly.
6840
9ab3e532
JB
68412002-05-10 Jim Blandy <jimb@redhat.com>
6842
6843 Properly track the size of the current objfile's .debug_line section.
6844 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6845 (DWARF_LINE_SIZE): New macro.
6846 (dwarf2_build_psymtabs_hard): Record the line section's size in
6847 the partial symbol table.
6848 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6849 symbol table.
6850
126fa72d
PS
68512002-05-10 Petr Sorfa <petrs@caldera.com>
6852
6853 * ia64-tdep.c: Handle breakpoints on L instruction type
6854 in MLX instruction bundle by moving the breakpoint to
6855 the third slot (X instruction type) as L holds only data.
6856
1f077a3e
KB
68572002-05-10 Kevin Buettner <kevinb@redhat.com>
6858
6859 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6860 (process_one_symbol): Complain about discarding local symbols
6861 due to a misplaced N_LBRAC entry.
6862
8120c9d5 68632002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
6864
6865 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
6866 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6867 decrease the depth we are at, in the case of templates.
361d1df0 6868
67b2c998
DJ
68692002-05-09 Daniel Jacobowitz <drow@mvista.com>
6870
6871 * mips-tdep.c (mips_float_register_type): New function.
6872 (mips_double_register_type): New function.
6873 (mips_print_register): Use them.
6874 (do_fp_register_row): Likewise.
6875
fd326606
DJ
68762002-05-09 Daniel Jacobowitz <drow@mvista.com>
6877
6609d9af 6878 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6879 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6880 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6881
bef35864
MS
68822002-05-09 Michael Snyder <msnyder@redhat.com>
6883
6884 * remote-rdp.c (remote_rdp_can_run): Remove.
6885
c55a3f73
TT
68862002-05-09 Tom Tromey <tromey@redhat.com>
6887
6888 * jv-valprint.c (java_val_print): Handle `char' as a special case
6889 of TYPE_CODE_INT.
6890
b8d5e71d
MS
68912002-05-09 Michael Snyder <msnyder@redhat.com>
6892
6893 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6894 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6895 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6896 str r(0123),[sp,#nn].
361d1df0 6897 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6898 order-independent by placing it in a loop.
6899
e2cd42dd
MS
69002002-05-06 Michael Snyder <msnyder@redhat.com>
6901
6902 * stabsread.c (read_type): Add recognition for new attribute:
6903 "@V;" means that an array type is actually a vector.
6904 This is analogous to the vector flag that's been added to dwarf2.
6905
3ce1502b
MK
69062002-05-09 Mark Kettenis <kettenis@gnu.org>
6907
6908 * i386-tdep.h (i386_abi): New enum.
6909 (struct gdbarch_tdep): Replace os_ident member with abi.
6910 (i386_gdbarch_register_os_abi): New prototype.
6911 * i386-tdep.c (i386_abi_names): New array.
6912 (process_note_abi_tag_sections): Removed.
6913 (process_note_sections): New function.
6914 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6915 (struct i386_abi_handler): New struct.
6916 (i386_abi_handler_list): New variable.
6917 (i386_gdbarch_register_os_abi): New function.
6918 (i386_gdbarch_init): Adapt for the changes given above.
6919
084c156a
DJ
69202002-05-08 Daniel Jacobowitz <drow@mvista.com>
6921
6922 * gregset.h: Say "GNU/Linux".
6923
6599f021
EZ
69242002-05-08 Elena Zannoni <ezannoni@redhat.com>
6925
6926 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6927 (build_gdbtypes): Build builtin_type_v2_float.
6928 (_initialize_gdbtypes): Register new builtin type.
6929
40af4b0c
AC
69302002-05-08 Andrew Cagney <ac131313@redhat.com>
6931
6932 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6933 (clear_gdbarch_swap): New function.
6934 (initialize_non_multiarch): Call.
6935 (gdbarch_update_p): Before calling init(), swap out and clear the
6936 existing architecture.
6937 * gdbarch.c: Regenerate.
6938
4fe84f46
JT
69392002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6940
6941 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6942 alphanbsd-tdep.c.
6943
4015edd1
JT
69442002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6945
6946 * sh-nbsd-nat.c: Rename to...
6947 * shnbsd-nat.c: ...this.
6948 * sh-nbsd-tdep.c: Rename to...
6949 * shnbsd-tdep.c: ...this.
6950 * sh-nbsd-tdep.h: Rename to...
6951 * shnbsd-tdep.h: ...this.
6952 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6953 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6954
0e2bd219
RE
69552002-05-08 Richard Earnshaw <rearnsha@arm.com>
6956
6957 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6958 concatenation for command help messages.
6959
13a38d45
JT
69602002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6961
6962 * NEWS: Note new sh*-*-netbsdelf* configuration.
6963 * configure.host: Set gdb_host_cpu to sh for all sh*.
6964 (sh*-*-netbsdelf*): New host.
6965 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6966 (sh*-*-netbsdelf*): New target.
6967 * sh-nbsd-nat.c: New file.
6968 * sh-nbsd-tdep.c: New file.
6969 * sh-nbsd-tdep.h: New file.
6970 * config/sh/nbsd.mh: New file.
6971 * config/sh/nbsd.mt: New file.
6972 * config/sh/nm-nbsd.h: New file.
6973 * config/sh/tm-nbsd.h: New file.
6974
d658f924
JT
69752002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6976
6977 * sh-tdep.c (sh_osabi_names): Declare.
6978 (process_note_abi_tag_sections): New function.
6979 (get_elfosabi): Ditto.
6980 (sh_gdbarch_register_os_abi): Ditto.
6981 (sh_dump_tdep): Ditto.
6982 _initialize_sh_tdep): Use gdbarch_register to register
6983 sh_gdbarch_init and sh_dump_tdep.
6984 * config/sh/tm-sh.h (sh_osabi): Declare.
6985 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6986
848cfffb
AC
69872002-05-07 Andrew Cagney <ac131313@redhat.com>
6988
6989 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6990 (thumb_scan_prologue): Ditto.
6991 (arm_find_callers_reg): Ditto.
6992 (arm_frame_chain): Ditto.
6993 (arm_init_extra_frame_info): Ditto.
6994 (arm_frame_saved_pc): Ditto.
6995 (arm_pop_frame): Ditto.
6996 (arm_push_return_address): New function.
6997 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6998 call_dummy_location, call_dummy_breakpoint_offset_p,
6999 call_dummy_breakpoint_offset, call_dummy_p,
7000 call_dummy_stack_adjust_p, call_dummy_words,
7001 sizeof_call_dummy_words, call_dummy_start_offset,
7002 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7003 call_dummy_address, push_return_address and push_dummy_frame for
7004 generic dummy frames.
7005
e7d717c0
JT
70062002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7007
7008 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7009 size computation for alloca.
7010 (sh_fp_frame_init_saved_regs): Likewise.
7011
7bbcf283
RE
70122002-05-07 Richard Earnshaw <rearnsha@arm.com>
7013
7014 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7015 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 7016 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
7017 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7018 * remote-rdp.c (remote_rdp_fetch_register): Use
7019 ARM_MAX_REGISTER_RAW_SIZE.
7020 (remote_rdp_store_register): Likewise.
7021
4657573b
ML
70222002-05-07 Michal Ludvig <mludvig@suse.cz>
7023
361d1df0 7024 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
7025 added default labels to switch {} statements.
7026 * x86-64-tdep.c: Ditto.
7027 * x86-64-linux-nat.c: Ditto.
7028
010f3b2f
JT
70292002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7030
7031 * solib.h: Protect against multiple inclusion.
7032
debd256d
JB
70332002-05-06 Jim Blandy <jimb@redhat.com>
7034
9ab3e532
JB
7035 Add first preprocessor macro-expansion files.
7036 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7037 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7038 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7039 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7040 (COMMON_OBS): Add macrotab.o, macroexp.o.
7041 (macroexp.o, macrotab.o): New rules.
7042
debd256d
JB
7043 Separate the job of reading the line number info statement program
7044 header (...expialidocious) out into its own function.
7045 * dwarf2read.c (struct line_head, struct filenames, struct
7046 directories): Replace with...
7047 (struct line_header): New structure, containing the full
7048 contents of the statement program header, including the
7049 include directory and file name tables.
7050 (read_file_scope): If we have line number info, instead of just
7051 calling dwarf_decode_lines to do all the work, call
7052 dwarf_decode_line_header first to get a `struct line_header'
7053 containing the data in the statement program header, and then
7054 pass that to dwarf_decode_lines, which will pick up where that
7055 left off. Be sure to clean up the `struct line_header' object.
7056 (dwarf_decode_line_header, free_line_header, add_include_dir,
7057 add_file_name): New functions.
7058 (dwarf_decode_lines): Move all the code to read the statement
7059 program header into dwarf_decode_line_header. Take the line
7060 header it built as the first argument, instead of the offset to
7061 the compilation unit's line number info. Use the new `struct
7062 line_header' type instead of the old structures. No need to do
7063 cleanups here now, since we don't allocate anything.
7064 (dwarf2_statement_list_fits_in_line_number_section,
7065 dwarf2_line_header_too_long): New complaints.
7066
ac3aafc7
EZ
70672002-05-06 Elena Zannoni <ezannoni@redhat.com>
7068
7069 * gdbtypes.c (init_vector_type): New function.
7070 (build_builtin_type_vec128): Simplify the representation of SIMD
7071 registers.
7072 (build_gdbtypes): Initialize new builtin vector types.
7073 (_initialize_gdbtypes): Register new vector types with gdbarch.
7074 (builtin_type_v4_float, builtin_type_v4_int32,
7075 builtin_type_v8_int16, builtin_type_v16_int8,
7076 builtin_type_v2_int32, builtin_type_v4_int16,
7077 builtin_type_v8_int8): New (renamed) SIMD types.
7078
13e49980
MK
70792002-05-06 Mark Kettenis <kettenis@gnu.org>
7080
7081 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7082 (i387_fill_fxsave): Likewise.
7083
997b20b8
AO
70842002-05-05 Alexandre Oliva <aoliva@redhat.com>
7085
7086 * alpha-tdep.c (alpha_extract_return_value): Don't use
7087 non-constant array size in prototype.
7088
535c96ce
AC
70892002-05-04 Andrew Cagney <ac131313@redhat.com>
7090
7091 From Brian Taylor <briant at model dot com>:
7092 * ui-out.c (ui_out_field_core_addr): Use the function
7093 longest_local_hex_string_custom'to format addresses > 32 bits
7094 wide.
7095
7096 * ui-out.c (ui_out_field_core_addr): Update comment.
7097
bedfa57b
AC
70982002-05-04 Andrew Cagney <ac131313@redhat.com>
7099
7100 * stack.c (select_and_print_frame): Make static. Delete the
7101 parameter `level'.
7102 (func_command): Update call.
7103 (select_frame_command): Delete code computing the frame level.
7104 * frame.h (select_and_print_frame): Delete declaration.
7105
f621c63e
AC
71062002-05-04 Andrew Cagney <ac131313@redhat.com>
7107
7108 * sparc-tdep.c (sparc_get_saved_register): Comment why
7109 get_prev_frame call is safe.
7110
0f7d239c
AC
71112002-05-04 Andrew Cagney <ac131313@redhat.com>
7112
7113 * frame.h (select_frame): Delete level parameter.
7114 * stack.c (select_frame): Update. Use frame_relative_level to
7115 obtain the frame's level.
7116 (select_and_print_frame): Update call.
7117 (select_frame_command): Ditto.
7118 (up_silently_base): Ditto.
7119 (down_silently_base): Ditto.
7120 * ocd.c (ocd_start_remote): Ditto.
7121 * remote-rdp.c (remote_rdp_open): Ditto.
7122 * remote-mips.c (mips_initialize): Ditto.
7123 (common_open): Ditto.
7124 * remote-e7000.c (e7000_start_remote): Ditto.
7125 * m3-nat.c (select_thread): Ditto.
7126 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7127 (child_get_current_exception_event): Ditto.
7128 * varobj.c (varobj_create): Ditto.
7129 (varobj_update): Ditto.
7130 (c_value_of_root): Ditto.
7131 * tracepoint.c (finish_tfind_command): Ditto.
7132 * corelow.c (core_open): Ditto.
7133 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7134 * thread.c (info_threads_command): Ditto.
7135 (switch_to_thread): Ditto.
7136 * infrun.c (normal_stop): Ditto.
7137 (restore_selected_frame): Ditto.
7138 (restore_inferior_status): Ditto.
7139 * breakpoint.c (insert_breakpoints): Ditto.
7140 (watchpoint_check): Ditto.
7141 (bpstat_stop_status): Ditto.
7142 (do_enable_breakpoint): Ditto.
7143 * blockframe.c (flush_cached_frames): Ditto.
7144 (reinit_frame_cache): Ditto.
7145
71d6c7b1
AC
71462002-05-04 Andrew Cagney <ac131313@redhat.com>
7147
7148 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7149 maintainer.
7150
cda6c68a
JB
71512002-05-04 Jim Blandy <jimb@redhat.com>
7152
7153 * gdbtypes.c (replace_type): Doc fix.
7154
5c1c87f0
AC
71552002-05-04 Andrew Cagney <ac131313@redhat.com>
7156
7157 * valprint.c (strcat_longest): Delete commented out function.
7158 Update copyright.
7159
cd9bfe15
AC
71602002-05-04 Andrew Cagney <ac131313@redhat.com>
7161
7162 * MAINTAINERS: Mark a29k as deleted.
7163 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7164 Move new configurations to the top.
7165 * configure.tgt: Remove a29k.
7166 * config/a29k/tm-vx29k.h: Delete.
7167 * config/a29k/vx29k.mt: Delete.
7168 * config/a29k/tm-a29k.h: Delete.
7169 * config/a29k/a29k-udi.mt: Delete.
7170 * config/a29k/a29k.mt: Delete.
7171 * a29k-tdep.c: Delete.
7172 * remote-udi.c: Delete.
7173 * remote-mm.c: Delete.
7174 * remote-eb.c: Delete.
7175 * remote-adapt.c: Delete.
7176 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
7177 * config/s390/s390x.mt: Ditto.
7178 * config/s390/s390.mt: Ditto.
7179 * config/sparc/sparclynx.mh: Ditto.
7180 * config/sparc/linux.mh: Ditto.
7181 * config/pa/hppaosf.mh: Ditto.
7182 * config/pa/hppabsd.mh: Ditto.
7183 * config/ns32k/nbsd.mt: Ditto.
7184 * config/mips/vr5000.mt: Ditto.
7185 * config/m68k/sun3os4.mh: Ditto.
7186 * config/m68k/nbsd.mt: Ditto.
7187 * config/m68k/m68klynx.mh: Ditto.
7188 * config/m32r/m32r.mt: Ditto.
7189 * config/i386/x86-64linux.mt: Ditto.
7190 * config/i386/nbsdelf.mt: Ditto.
7191 * config/i386/nbsd.mt: Ditto.
7192 * config/i386/i386lynx.mh: Ditto.
7193
bf0c5130
AC
71942002-05-04 Andrew Cagney <ac131313@redhat.com>
7195
7196 * target.c (debug_print_register): New function. Handle oversize
7197 registers.
7198 (debug_to_fetch_registers): Call.
7199 (debug_to_store_registers): Call.
7200
2ae1c2d2
JB
72012002-05-03 Jim Blandy <jimb@redhat.com>
7202
13a393b0
JB
7203 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7204 (read_type): Doc fix.
7205 * gdbtypes.c (replace_type): Doc fix.
7206
2ae1c2d2
JB
7207 * stabsread.c (multiply_defined_struct): New complaint.
7208 (read_struct_type): If the type we were passed isn't empty, or
7209 incomplete, don't read the new struct type into it; complain,
7210 and return the original type unchanged. Take a new `type_code'
7211 argument, which is the type code for the new type.
7212 (read_type): Rather than storing the type's type code here, pass
7213 it as an argument to read_struct_type, and let that take care of
7214 storing it. That way, we don't overwrite the original type code,
7215 so read_struct_type can use it to decide whether we're overwriting
7216 something we shouldn't.
7217 (complain_about_struct_wipeout): New function.
7218
8de9bdc4
AC
72192002-05-03 Andrew Cagney <ac131313@redhat.com>
7220
7221 * gdbarch.sh: Assert that gdbarch is non-NULL.
7222 * gdbarch.c: Regenerate.
7223
f773fdbb
JM
72242002-05-03 Jason Merrill <jason@redhat.com>
7225
7226 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7227 and return NULL.
7228
0e04a514
ML
72292002-05-03 Michal Ludvig <mludvig@suse.cz>
7230
7231 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7232 (x86_64_dwarf2gdb_regno_map_length),
7233 (x86_64_dwarf2_reg_to_regnum): Added.
7234 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7235 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7236 (_initialize_x86_64_tdep): Synced with the change above.
7237 (x86_64_skip_prologue): Reformulated message.
7238
065432a8
PM
72392002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7240
7241 * f-exp.y: Also use new prev_lexptr variable
7242 to improve error reporting. Based on Michael Snyder
7243 2002-04-24 dated patch to c-exp.y.
7244 * jv-exp.y: Likewise.
7245 * m2-exp.y: Likewise.
7246
a3162708
EZ
72472002-05-02 Elena Zannoni <ezannoni@redhat.com>
7248
7249 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7250 we are dealing with vectors.
7251
03620c38
PM
72522002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7253
7254 * config/m68k/tm-nbsd.h: Obvious fix,
7255 correct machine name.
7256
6604db2e
PM
72572002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7258
7259 * p-typeprint.c (pascal_type_print_base): Add support
7260 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7261
0906b739
PM
72622002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7263
7264 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7265 for fondamental pascal 'char' type.
7266
e2625b33
PM
72672002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7268
7269 * p-lang.h (is_pascal_string_type): Declaration changed,
7270 new sixth argument of type char ** added.
361d1df0 7271 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
7272 changed. Args length_pos, length_size, string_pos, char_size
7273 can now be NULL. New argument arrayname set to the field
7274 name of the char array. Return value set to char array
7275 field index plus one.
361d1df0 7276 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
7277 is_pascal_string_type function.
7278
cf17c188
AC
72792002-05-02 Andrew Cagney <cagney@redhat.com>
7280
7281 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7282 <cagney@redhat.com> change.
7283 * gdbarch.c: Regenerate.
7284
52bca491
AC
72852002-05-02 Andrew Cagney <cagney@redhat.com>
7286
7287 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7288 before probing for a new one. Detect errorenous gdbarch_init
7289 functions.
7290 * gdbarch.c: Regenerate.
7291
d5e72505
AC
72922002-05-01 Andrew Cagney <cagney@redhat.com>
7293
7294 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7295 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7296 * config/v850/tm-v850.h: Ditto. Update copyright.
7297
af566d9f
AC
72982002-04-30 Andrew Cagney <ac131313@redhat.com>
7299
7300 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7301 current_gdbarch.
7302
880d85fa
MS
73032002-04-30 Michael Snyder <msnyder@redhat.com>
7304
94c30b78
MS
7305 * arm-tdep.c: Whitespace clean-ups.
7306 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7307 should have been removed as part of 4/24 change.
7308
6f5987a6
KB
73092002-04-30 Kevin Buettner <kevinb@redhat.com>
7310
7311 * rs6000-tdep.c: Added comment describing how fpscr register
7312 numbers were chosen.
7313
1a113c93
MS
73142002-04-30 Michael Snyder <msnyder@redhat.com>
7315
7316 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7317
9a6f53fe
EZ
73182002-04-29 Elena Zannoni <ezannoni@redhat.com>
7319
7320 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7321 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7322 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7323
11ed25ac
KB
73242002-04-29 Kevin Buettner <kevinb@redhat.com>
7325
7326 From Louis Hamilton <hamilton@redhat.com>:
7327 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7328 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7329 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7330 not bfd-private xcoff data, to determine wordsize.
7331 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7332
ae232405
AC
73332002-04-29 Andrew Cagney <ac131313@redhat.com>
7334
7335 GDB 5.2 released from 5.2 branch.
7336
91fd20f7
ML
73372002-04-29 Michal Ludvig <mludvig@suse.cz>
7338
7339 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7340 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7341 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7342
2dc5091b
EZ
73432002-04-29 Elena Zannoni <ezannoni@redhat.com>
7344
7345 * rs6000-tdep.c (rs6000_extract_return_value,
7346 rs6000_store_return_value): Handle returning vectors.
7347 (rs6000_gdbarch_init): Use
7348 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7349 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7350 New function.
7351 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7352 vectors.
7353 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7354 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7355
2b9848d8
PM
73562002-04-24 Pierre Muller <ics.u-strasbg.fr>
7357
7358 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7359 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7360 with fprintf_unfiltered (gdb_stderr,...).
7361
f8d17dc5
PM
73622002-04-24 Pierre Muller <ics.u-strasbg.fr>
7363
7364 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7365 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7366 Replace fprintf (stderr,...
7367 with fprintf_unfiltered (gdb_stderr,....
7368 * remote-es.c: Likewise.
7369 * remote-os9k.c: Likewise.
7370 * remote-st.c: Likewise.
7371
2f2f1ad1
AS
73722002-04-28 Andreas Schwab <schwab@suse.de>
7373
7374 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7375 linux-proc.o and gcore.o.
7376
b6779aa2
AC
73772002-04-26 Michal Ludvig <mludvig@suse.cz>
7378
7379 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7380 code without frame pointers.
7381
7e57f5f4
AC
73822002-04-26 Andrew Cagney <ac131313@redhat.com>
7383
7384 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7385 ON_STACK is needed.
7386
2ceb85d0
BE
73872002-04-26 Ben Elliston <bje@redhat.com>
7388
7389 * target.c (do_xfer_memory): Correct reference to the new option
7390 "trust-readonly-sections".
7391
f5f8a009
EZ
73922002-04-26 Elena Zannoni <ezannoni@redhat.com>
7393
7394 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7395 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7396 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7397 vectors.
7398 (read_array_type): Record the fact that this array type is really a
7399 vector (i.e. are passed in by value).
7400
5868c862
JT
74012002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7402
7403 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7404 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7405 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7406 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7407 * alpha-linux-tdep.c: Include frame.h.
7408 (alpha_linux_sigcontext_addr): New function.
7409 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7410 alpha_linux_sigcontext_addr.
7411 * alpha-osf1-tdep.c: Include gdbcore.h.
7412 (alpha_osf1_sigcontext_addr): New function.
7413 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7414 alpha_osf1_sigcontext_addr.
7415 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7416 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7417
bfb01f37
AC
74182002-04-26 Andrew Cagney <ac131313@redhat.com>
7419
361d1df0 7420 * stack.c (selected_frame_level):
bfb01f37
AC
7421 (select_frame): Do not set selected_frame_level.
7422 * frame.h (selected_frame_level): Delete declaration.
7423
15813d3f
AC
74242002-04-26 Andrew Cagney <ac131313@redhat.com>
7425
7426 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7427 convert_from_func_ptr-addr when AIX / PowerOpen.
7428
6096c27a
AC
74292002-04-25 Andrew Cagney <ac131313@redhat.com>
7430
7431 * valops.c (hand_function_call): Call
7432 generic_save_call_dummy_addr.
7433 * frame.h (generic_save_call_dummy_addr): Declare.
7434 * blockframe.c (struct dummy_frame): Add fields call_lo and
7435 call_hi.
7436 (generic_find_dummy_frame): Check for PC in range call_lo to
7437 call_hi instead of entry_point_address.
7438 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7439 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7440 (generic_save_call_dummy_addr): New function.
7441
f510d44e
DM
74422002-04-24 David S. Miller <davem@redhat.com>
7443
7444 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7445 sparc_skip_prologue.
7446 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7447 information to find prologue when possible.
7448 (sparc_prologue_frameless_p): Call examine_prologue directly.
7449 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7450 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7451 second argument.
7452 (SKIP_PROLOGUE): Likewise.
7453
15d72a92
JT
74542002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7455
7456 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7457 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7458 indicate that the condition it was testing is always true.
7459 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7460 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7461 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7462
accc6d1f
JT
74632002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7464
7465 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7466 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7467 tdep->jb_pc and tdep->jb_elt_size.
7468 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7469 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7470 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7471 * alpha-nat.c (get_longjmp_target): Remove.
7472 (JB_ELEMENT_SIZE): Ditto.
7473 (JB_PC): Ditto.
7474 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7475 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7476 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7477 to alpha_get_longjmp_target.
7478 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7479 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7480 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7481
1bfdc549
AC
74822002-04-25 Andrew Cagney <ac131313@redhat.com>
7483
7484 * README: Update to GDB 5.2.
7485
1bd316f0
AC
74862002-04-25 Andrew Cagney <ac131313@redhat.com>
7487
7488 * gdbarch.sh (LC_ALL): Set to `c'.
7489
2e5ff58c
TR
74902002-04-25 Theodore A. Roth <troth@verinet.com>
7491
7492 * avr-tdep.c: Ran through gdb_indent.sh.
7493
e33ce519
TR
74942002-04-25 Theodore A. Roth <troth@verinet.com>
7495
7496 * MAINTAINERS: Add myself as AVR maintainer.
7497 * NEWS: Note new target avr.
7498
8818c391
TR
74992002-04-25 Theodore A. Roth <troth@verinet.com>
7500
7501 * Makefile.in: Add support for AVR target.
7502 * configure.tgt: Add support for AVR target.
7503 * avr-tdep.c: New file
7504 * config/avr/avr.mt: New file.
7505
79509c2d
TR
75062002-04-25 Theodore A. Roth <troth@verinet.com>
7507
7508 * MAINTAINERS: Add myself to write-after-approval.
7509
dac8068e
PM
75102002-04-24 Pierre Muller <ics.u-strasbg.fr>
7511
7512 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7513 with fprintf_unfiltered (gdb_stderr,....
7514
25bf3106
PM
75152002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7516
7517 Fix PR gdb/508.
7518 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7519
24467a86
PM
75202002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7521
7522 * p-exp.y: Also use new prev_lexptr variable
7523 to improve error reporting. Based on Michael Snyder
7524 2002-04-24 dated patch to c-exp.y.
7525
95b80706
JT
75262002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7527
7528 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7529 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7530 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7531 to 0.
7532 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7533 and struct value.
7534 (FUNCTION_START_OFFSET): Remove.
7535 (BREAKPOINT): Ditto.
7536
e90cc612
JT
75372002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7538
7539 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7540 * NEWS: Ditto.
7541
6c72f9f9
JT
75422002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7543
7544 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7545 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7546 alpha_linux_pc_in_sigtramp.
7547 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7548 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7549 alpha_osf1_pc_in_sigtramp.
7550 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7551 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7552 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7553 alphafbsd_pc_in_sigtramp.
7554 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7555 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7556 alphanbsd_pc_in_sigtramp.
7557 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7558 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7559
5e4f3379
JT
75602002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7561
7562 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7563
da8ca43d
JT
75642002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7565
7566 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7567 alphanbsd-tdep.c.
7568 (alphanbsd-nat.o): New dependency list.
7569 (alphanbsd-tdep.o): Ditto.
7570 * NEWS: Note new native NetBSD/alpha configuration.
7571 * alphanbsd-nat.c: New file.
7572 * alphanbsd-tdep.c: Ditto.
7573 * configure.host (alpha*-*-netbsd*): New host.
7574 * configure.tgt (alpha*-*-netbsd*): New target.
7575 * config/alpha/nbsd.mh: New file.
7576 * config/alpha/nbsd.mt: Ditto.
7577 * config/alpha/nm-nbsd.h: Ditto.
7578 * config/alpha/tm-nbsd.h: Ditto.
7579
36a6271d
JT
75802002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7581
7582 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7583 (alpha-osf1-tdep.o): New dependency list.
7584 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7585 and skip_sigtramp_frame members.
7586 * alpha-linux-tdep.c: Include gdbcore.h.
7587 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7588 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7589 * alpha-osf1-tdep.c: New file.
7590 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7591 alpha-osf1-dep.c.
7592 (alpha_frame_past_sigtramp_frame): New function.
7593 (alpha_dynamic_sigtramp_offset): Ditto.
7594 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7595 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7596 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7597 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7598 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7599 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7600 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7601 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7602 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7603 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7604 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7605 to find_solib_trampoline_target.
7606 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7607 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7608 (SKIP_TRAMPOLINE_CODE): Remove.
7609 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7610 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7611 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7612 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7613 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7614 (PROC_SIGTRAMP_MAGIC): Ditto.
7615 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7616 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7617 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7618 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7619 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7620
2f4bc57b
JT
76212002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7622
7623 * NEWS: Note that Alpha targets are now multi-arch.
7624
665132f9
MS
76252002-04-24 Michael Snyder <msnyder@redhat.com>
7626
7627 * parser-defs.h (prev_lexptr): New external variable.
7628 * parse.c (parse_exp_1): Set prev_lexptr to null before
7629 calling the language-specific parser.
7630 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7631 (yyerror): Use prev_lexptr in error reporting.
7632
32872fa7
DJ
76332002-04-24 Daniel Jacobowitz <drow@mvista.com>
7634
7635 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7636 * gregset.h: If FILL_FPXREGSET is defined, provide
7637 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7638 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7639 is defined, call fill_fpxregset.
7640
57e76fac
MS
76412002-04-24 Roland McGrath <roland@frob.com>
7642
7643 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7644 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7645 (supply_gregset, supply_fpregset): New functions.
7646
7647 * gnu-nat.c (gnu_find_memory_regions): New function.
7648 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7649 (gnu_xfer_memory): Add a cast.
7650
f43845b3
MS
76512002-04-24 Michael Snyder <msnyder@redhat.com>
7652
361d1df0 7653 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7654 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7655 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7656 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7657 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7658 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7659
a0abec03
AC
7660Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7661
7662 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7663 NUM_PSEUDO_REGS can be used.
7664
d7bd68ca
AC
76652002-04-24 Andrew Cagney <ac131313@redhat.com>
7666
7667 * arch-utils.h: Update copyright.
7668
7669 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7670 * gdbarch.h, gdbarch.c: Re-generate.
7671
7672 * inferior.h (IN_SIGTRAMP): Delete definition.
7673 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7674 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7675
7676 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7677 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7678 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7679 (find_proc_framesize): Ditto.
7680 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7681 (alpha_init_extra_frame_info): Ditto.
7682 * infrun.c (handle_inferior_event): Ditto.
7683 (handle_inferior_event): Ditto.
7684 (check_sigtramp2): Ditto.
7685 * blockframe.c (create_new_frame): Ditto.
7686 (get_prev_frame): Ditto.
7687 * ppc-linux-tdep.c: Update comments.
7688 * i386-linux-tdep.c: Update comments.
7689 * breakpoint.c (bpstat_what): Update comment.
7690
4867e41e
DM
76912002-04-24 David S. Miller <davem@redhat.com>
7692
21d83aa5
DM
7693 * i960-tdep.c (register_in_window_p): New function.
7694 (i960_find_saved_register): Use it instead of
7695 REGISTER_IN_WINDOW_P.
7696 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7697
4867e41e
DM
7698 * symtab.h (find_stab_function_addr): Kill extern.
7699 * minsyms.c (find_stab_function_addr): Remove from here...
7700 * dbxread.c: ... to here, and mark it static.
7701
69cdf6a2
DM
77022002-04-20 David S. Miller <davem@redhat.com>
7703
7704 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7705 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7706
5a595886
DM
77072002-04-21 David S. Miller <davem@redhat.com>
7708
7709 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7710 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7711 (vx_write_register): Likewise.
7712
1da1a192
JB
77132002-04-23 J. Brobecker <brobecker@gnat.com>
7714
7715 * source.c (is_regular_file): New function.
7716 (openp): Check wether file to open is a regular file
7717 to avoid opening directories.
7718
baa6f10b
JT
77192002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7720
7721 * findvar.c (extract_signed_integer): Cast printf argument
7722 to suppress format warning.
7723 (extract_unsigned_integer): Likewise.
7724 * infcmd.c (registers_info): Likewise.
7725 * top.c (get_prompt_1): Likewise.
7726 * valops.c (value_assign): Likewise.
7727 * valprint.c (print_decimal): Likewise.
7728
b2c4da81
L
77292002-04-22 H.J. Lu (hjl@gnu.org)
7730
7731 * c-exp.y (typebase): Support
361d1df0 7732
b2c4da81
L
7733 [long|long long|short] [signed|unsigned] [int|]
7734
7735 and
7736
7737 signed [long|long long|short] int
7738
f267bd6a
JT
77392002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7740
7741 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7742 and vax-tdep.h.
7743 * vax-tdep.h: New file.
7744 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7745 Make several routines static.
7746 (vax_get_saved_register): New function.
7747 (vax_gdbarch_init): New function.
7748 (_initialize_vax_tdep): Register vax_gdbarch_init.
7749 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7750 Remove macros now under the control of gdbarch.
7751
da3c6d4a
MS
77522002-04-22 Michael Snyder <msnyder@redhat.com>
7753
11d3b27d
MS
7754 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7755 Some whitespace and coding standards tweaks.
da3c6d4a 7756
a33f7558
JT
77572002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7758
7759 * vax-tdep.c: Include regcache.h.
7760 (vax_call_dummy_words): New.
7761 (sizeof_vax_call_dummy_words): New.
7762 (vax_fix_call_dummy): New function.
7763 (vax_saved_pc_after_call): Ditto.
7764 * config/vax/tm-vax.h: Don't include regcache.h.
7765 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7766 (CALL_DUMMY): Remove.
7767 (CALL_DUMMY_WORDS): Define.
7768 (SIZEOF_CALL_DUMMY_WORDS): Define.
7769 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7770
47a73475
MS
77712002-04-18 Michael Snyder <msnyder@redhat.com>
7772
7773 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7774
52efde73
JT
77752002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7776
7777 * vax-tdep.c (vax_frame_chain): New function.
7778 (vax_push_dummy_frame): Ditto.
7779 (vax_pop_frame): Ditto.
7780 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7781 (FRAMELESS_FUNCTION_INVOCATION): Use
7782 generic_frameless_function_invocation_not.
7783 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7784 (POP_FRAME): Use vax_pop_frame.
7785
ea74468c
JT
77862002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7787
7788 * vax-tdep.c (vax_store_struct_return): New function.
7789 (vax_extract_return_value): Ditto.
7790 (vax_store_return_value): Ditto.
7791 (vax_extract_struct_value_address): Ditto.
7792 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7793 vax_store_struct_return.
7794 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7795 (STORE_RETURN_VALUE): Use vax_store_return_value.
7796 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7797
5516aa92
JT
77982002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7799
7800 * vax-tdep.c (vax_frame_saved_pc): New function.
7801 (vax_frame_args_address_correct): Ditto.
7802 (vax_frame_args_address): Ditto.
7803 (vax_frame_locals_address): Ditto.
7804 (vax_frame_num_args): Move code to be in proximity to
7805 other frame-related functions.
7806 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7807 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7808 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7809 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7810 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7811
36af0b35
L
78122002-04-22 H.J. Lu (hjl@gnu.org)
7813
7814 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7815 includedir.
7816
ab62c900
JT
78172002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7818
7819 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7820 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7821 (FRAME_INIT_SAVED_REGS): New macro.
7822
7232b100
JT
78232002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7824
7825 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7826
b70d2aee
JT
78272002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7828
7829 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7830 where needed.
7831 (fetch_osf_core_registers): Likewise.
7832 (supply_gregset): Likewise.
7833
a0e8a2d1 78342002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 7835
a0e8a2d1
JB
7836 * symfile.h (get_section_index): Define.
7837 * symfile.c (get_section_index): New function.
7838 * mdebugread.c (SC_IS_SBSS): New macro.
7839 (SC_IS_BSS): Return true for the scBss storage class only, as
7840 the scSBss storage class refers to the .sbss section.
7841 (parse_partial_symbols): Discard the symbols which associated
7842 section does not exist.
7843 Make sure to use the .sbss section index for symbols which
7844 storage class is scBss, rather than using the .bss section index.
7845
51eb8b08
JT
78462002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7847
7848 * vax-tdep.c: Update copyright years.
7849 (vax_register_name): New function.
7850 (vax_register_byte): Ditto.
7851 (vax_register_raw_size): Ditto.
7852 (vax_register_virtual_size): Ditto.
7853 (vax_register_virtual_type): Ditto.
7854 * config/vax/tm-vax.h: Update copyright years.
7855 (REGISTER_NAMES): Remove.
7856 (REGISTER_NAME): Define.
7857 (REGISTER_BYTE): Use vax_register_byte.
7858 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7859 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7860 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7861
6cc1c0a8
AC
78622002-04-21 Andrew Cagney <ac131313@redhat.com>
7863
7864 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7865 declaration
7866 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7867
9319a2fe
DM
78682002-04-21 David S. Miller <davem@redhat.com>
7869
7870 * arch-utils.c (generic_prologue_frameless_p): Kill
7871 SKIP_PROLOGUE_FRAMELESS_P code.
7872 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7873 references.
7874 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7875 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7876 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7877 references.
7878 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7879 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7880 (sparc_gdbarch_init): Pass it to
7881 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7882
e9ed6d01
JT
78832002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7884
7885 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7886 (alphabsd-nat.o): New dependency list.
7887
36012033
JT
78882002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7889
7890 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7891 alphafbsd-tdep.c.
7892 (alpha-linux-tdep.o): New dependency list.
7893 (alphafbsd-tdep.o): Likewise.
7894
3379287a
JT
78952002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7896
7897 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7898 to here...
7899 * alpha-tdep.c: ...from here.
7900 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7901
4bcbd6cb
JT
79022002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7903
7904 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7905 prototype from here...
7906 * alpha-tdep.h: ...to here.
7907
b31da25e
AC
79082002-04-21 Andrew Cagney <ac131313@redhat.com>
7909
7910 * frame.h (selected_frame_level): Document as deprecated.
7911 (frame_relative_level): Declare.
7912 * stack.c (frame_relative_level): New function.
7913 (selected_frame_level): Document as deprecated.
7914 (select_frame): Do not set the selected_frame_level.
7915
7916 * stack.c (frame_info, record_selected_frame): Update.
7917 (frame_command, current_frame_command): Update.
7918 (up_silently_base, up_command, down_silently_base): Update.
7919 (down_command): Update.
7920 * inflow.c (kill_command): Update.
7921 * tracepoint.c (finish_tfind_command): Update.
7922 * corelow.c (core_open): Update.
7923 * thread.c (info_threads_command): Update.
7924 (do_captured_thread_select): Update.
7925 * infcmd.c (finish_command): Update.
7926 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7927
9c1d6fe5
JT
79282002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7929
7930 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7931
ab89facf
AC
79322002-04-21 Andrew Cagney <ac131313@redhat.com>
7933
7934 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7935 type const.
7936
82a4efa1
JT
79372002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7938
7939 * alphafbsd-tdep.c: Update copyright years. Include
7940 alpha-tdep.h.
7941 (alphafbsd_use_struct_convention): Make static.
7942 (alphafbsd_init_abi): New function.
7943 (_initialize_alphafbsd_tdep): New function.
7944 * config/alpha/tm-fbsd.h: Update copyright years.
7945 (USE_STRUCT_CONVENTION): Remove.
7946
44dffaac
JT
79472002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7948
7949 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7950 an Alpha ABI variant.
7951 (alpha_abi_handler_list): Declare.
7952 (alpha_gdbarch_register_os_abi): New function.
7953 (alpha_gdbarch_init): Give registered ABI variant handlers a
7954 chance to tweak the gdbarch once we have set up defaults.
7955 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7956
65585be4
JT
79572002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7958
7959 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7960 to standard_coerce_float_to_double.
7961 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7962
d9b023cc
JT
79632002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7964
7965 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7966 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7967 from gdbarch_tdep rather than a constant.
7968 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7969 the default text address for all Alpha Unix ABIs.
7970 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7971 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7972
dc129d82
JT
79732002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7974
7975 * alpha-tdep.h: New file. Includes several Alpha target constants
7976 taken from...
7977 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7978 let gdbarch deal with.
7979 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7980 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7981 to dependency list.
7982 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7983 Alpha target register names.
7984 * alphabsd-nat.c: Likewise.
7985 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7986 Alpha target register names. Make serveral routines static.
7987 (alpha_get_saved_register): New function.
7988 (alpha_abi_names): New.
7989 (process_note_abi_tag_sections): New function.
7990 (get_elfosabi): New function.
7991 (alpha_gdbarch_init): New function.
7992 (alpha_dump_tdep): New function.
7993 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7994
d49d1e0a
AC
79952002-04-21 Andrew Cagney <ac131313@redhat.com>
7996
7997 * frame.c (find_saved_register): Delete #ifdef
7998 HAVE_REGISTER_WINDOWS code.
7999 * config/sparc/tm-sparc.h: Update comments.
8000 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8001
92e8c9ed
AC
80022002-04-21 Andrew Cagney <ac131313@redhat.com>
8003
8004 * i960-tdep.c (i960_find_saved_register): New function.
8005 (i960_get_saved_register): New function.
8006 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8007 (i960_get_saved_register): Declare.
8008 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8009
e1925118
DM
80102002-04-20 David S. Miller <davem@redhat.com>
8011
8012 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8013
29673b29
AC
80142002-04-20 Andrew Cagney <ac131313@redhat.com>
8015
8016 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8017 instead of NUM_PSEUDO_REGS.
8018
6c86dcd5
DM
80192002-04-20 David S. Miller <davem@redhat.com>
8020
8021 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8022 GDB_MULTI_ARCH_PARTIAL
8023 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8024 define, let tm-sp64.h do it.
8025
aa40ec90
JT
80262002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8027
8028 * frame.c (find_saved_register): Avoid a NULL pointer
8029 dereference and actually walk the frame list.
8030
0f79675b
AC
80312002-04-20 Andrew Cagney <ac131313@redhat.com>
8032
8033 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8034 sorted in most most-recent-used order. Document.
8035 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8036
f91305dd 80372002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
8038
8039 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8040 instead of ->prev.
8041 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8042 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8043 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8044 instead of ->prev.
8045
73d322b1
EZ
80462002-04-19 Elena Zannoni <ezannoni@redhat.com>
8047
8048 Fix PR gdb/471.
8049 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8050 (build_builtin_type_vec128): Ditto.
8051 (append_composite_type_field): Fix calculation of type length in
8052 union case.
8053
ccd9a834
EZ
80542002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8055
8056 * config/djgpp/README: Update.
8057
8058 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8059 compiler warnings.
8060
a57f9e49
JT
80612002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8062
8063 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8064 (alpha_setup_arbitrary_frame): ...to this.
8065 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8066 for alpha_setup_arbitrary_frame.
8067
f4f9705a
AC
80682002-04-18 Andrew Cagney <cagney@redhat.com>
8069
8070 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8071 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8072
f4f9705a
AC
8073 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8074 * target.h (memory_breakpoint_from_pc): Update declaration.
8075 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8076
8077 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8078 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8079 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8080 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8081 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8082 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8083 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8084 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8085 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8086 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8087 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8088 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8089
8090 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8091 const pointer.
8092 * monitor.c (monitor_insert_breakpoint): Ditto.
8093 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8094
8095 * config/mcore/tm-mcore.h: Update copyright.
8096 * mem-break.c: Ditto.
8097 * xstormy16-tdep.c: Ditto.
8098
29f319b8
PM
80992002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8100
8101 * p-exp.y: Add precedence rule for '^' token.
8102 This removes the shift/reduce conflicts.
8103 Remove the comment concerning these shift/reduce conflicts.
8104
ebeac11a
EZ
81052002-04-18 Elena Zannoni <ezannoni@redhat.com>
8106
8107 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8108 (registers_powerpc_nofp): New register set for processors
8109 without floating point unit.
8110
27c31547
DM
81112002-04-18 David S. Miller <davem@redhat.com>
8112
8113 * MAINTAINERS: Add myself to write-after-approval.
8114
47a73475
MS
81152002-04-17 Michael Snyder <msnyder@redhat.com>
8116
8117 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8118
953836b2
AC
81192002-04-17 Andrew Cagney <ac131313@redhat.com>
8120
8121 * rs6000-tdep.c (frame_initial_stack_address): Use
8122 frame_register_read to read the alloca_reg.
8123
8b0d4340
AC
81242002-04-17 Andrew Cagney <ac131313@redhat.com>
8125
8126 * frame.c (find_saved_register): Find saved registers in the next
8127 not prev frame.
8128 Fix PR gdb/365.
8129
d8864532
AC
81302002-04-17 Andrew Cagney <ac131313@redhat.com>
8131
8132 * gdbarch.sh (LANG): Set to ``c''.
8133
36cc83a3 81342002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 8135
36cc83a3 8136 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 8137
2f4150cc 81382002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
8139
8140 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8141 Update copyright.
8142
628703c6 8143 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 8144 Also fix PR gdb/391.
361d1df0 8145
56157b4a
AC
81462002-04-14 Andrew Cagney <ac131313@redhat.com>
8147
8148 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8149 * aclocal.m4, configure: Re-generate.
8150 Fix PR gdb/391.
361d1df0 8151
6d1e3329
EZ
81522002-04-14 Elena Zannoni <ezannoni@redhat.com>
8153
8154 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8155 instead of tm_print_insn.
8156
cb06fa07
EZ
81572002-04-14 Elena Zannoni <ezannoni@redhat.com>
8158
8159 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8160
f208ba17
AC
81612002-04-14 Andrew Cagney <ac131313@redhat.com>
8162
8163 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8164 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8165 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8166
20f01a46
DH
81672002-04-12 Don Howard <dhoward@redhat.com>
8168
8169 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8170 max_user_call_depth.
8171 (init_cmd_lists): Initialize the new value;
8172 * cli/cli-script.c (execute_user_command): Limit the call depth of
8173 user defined commands. This avoids a core-dump when user commands
8174 are infinitly recursive.
8175
a88376a3
KB
81762002-04-12 Kevin Buettner <kevinb@redhat.com>
8177
8178 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8179 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8180 from tdep struct instead of DEFAULT_LR_SAVE.
8181 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8182 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8183 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8184
f2172603
MS
81852002-04-12 Michael Snyder <msnyder@redhat.com>
8186
694f61fb 8187 * Remote.c: Spelling fix.
20fe79c8
MS
8188 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8189 If no symbol found for "sbrk", try "_sbrk".
8190 (make_output_phdrs): Use bfd_section_name.
8191 (gcore_copy_callback): Use bfd_section_name.
62995fc4 8192 * eval.c: Indentation fix-ups.
169a7369
MS
8193 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8194 in case it gets applied to an address that is already
8195 in the instruction space.
de74f71f
MS
8196 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8197 * symfile.c: Fix indentation, long lines.
f2172603
MS
8198 * source.c: White space fix-up.
8199
cda5a58a
AC
82002002-04-12 Andrew Cagney <cagney@redhat.com>
8201
8202 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8203 * frame.c (frame_register_read): New function. Return non-zero on
8204 success.
8205 (read_relative_register_raw_bytes_for_frame): Delete.
8206 (read_relative_register_raw_bytes): Delete.
8207 * frame.h (frame_register_read): Declare.
8208 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8209 * sh-tdep.c: Ditto.
8210 * infcmd.c (do_registers_info): Ditto.
8211 * hppa-tdep.c: Ditto.
8212 * rs6000-tdep.c: Ditto.
8213 * h8500-tdep.c: Ditto.
8214 * mips-tdep.c: Ditto.
8215 * h8300-tdep.c: Ditto.
8216 * z8k-tdep.c: Ditto.
8217
2ea5f656
KB
82182002-04-12 Kevin Buettner <kevinb@redhat.com>
8219
8220 From Jimi X <jimix@watson.ibm.com>:
8221 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8222 64-bit SysV ABI.
8223
27b15785
KB
82242002-04-12 Kevin Buettner <kevinb@redhat.com>
8225
8226 From Jimi X <jimix@watson.ibm.com>:
8227 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8228 bfd info.
8229
5d57ee30
KB
82302002-04-12 Kevin Buettner <kevinb@redhat.com>
8231
8232 From Jimi X <jimix@watson.ibm.com>:
8233 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8234 register sets for these processor variants.
8235
bc1e36ca
DJ
82362002-04-11 Daniel Jacobowitz <drow@mvista.com>
8237
bc1e36ca
DJ
8238 * regformats/reg-ppc.dat: Support FPSCR.
8239
e3f36dbd
KB
82402002-04-11 Kevin Buettner <kevinb@redhat.com>
8241
8242 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8243 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8244 Add fpscr as an invalid/unfetchable register.
8245 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8246 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8247 (fill_fpregset): Add support for register fpscr.
8248 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8249 (fill_gregset): Account for the fact that register ``mq'' might
8250 not exist.
8251 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8252 (registers_power): Add fpscr to register set at slot 71.
8253 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8254 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8255
943c9c25
MS
82562002-04-11 Michael Snyder <msnyder@redhat.com>
8257
8258 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8259 * configure: Regenerate.
8260 * config.in: Regenerate.
8261 * acconfig.h: Add define for _SYSCALL32.
8262 * core-sol2.c: Remove #define _SYSCALL32.
8263 * solib-legacy.c: Remove #define _SYSCALL32.
8264
d8c0a2e7
AC
82652002-04-10 Andrew Cagney <ac131313@redhat.com>
8266
8267 * stack.c (select_frame): Cleanup internal error message, do not
8268 use %p.
8269
7cc19214
AC
82702002-04-10 Andrew Cagney <ac131313@redhat.com>
8271
8272 * stack.c (select_frame): Check that selected_frame and the
8273 specified level are as expected.
8274 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8275 Update copyright.
8276 * frame.h (struct frame_info): Add field `level'. Update
8277 copyright.
8278 Work-in-progress PR gdb/464.
8279
67a2b77e
AC
82802002-04-10 Andrew Cagney <ac131313@redhat.com>
8281
8282 * maint.c (maint_print_section_info): Rename print_section_info.
8283 (print_bfd_section_info, print_objfile_section_info): Update.
8284 * inferior.h (struct gdbarch): Add opaque declaration.
8285 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8286 * gdbarch.h: Regenerate.
8287
8cfda98c
ML
82882002-04-10 Michal Ludvig <mludvig@suse.cz>
8289
8290 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8291 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8292 (kernel_u_size): Added.
8293 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8294 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8295
ca439ad2 82962002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 8297
ca439ad2
JI
8298 * valarith.c (find_size_for_pointer_math): New function, either returns
8299 the size for a pointer's target, returns 1 for void *, or errors for
8300 incomplete types.
8301 (value_add, value_sub): use find_size_for_pointer_math.
8302
2f2893d9
DJ
83032002-04-09 Daniel Jacobowitz <drow@mvista.com>
8304
8305 * linux-low.c (linux_look_up_symbols): New hook.
8306 (linux_target_ops): Add linux_look_up_symbols.
8307 * remote-utils.c (decode_address): New function.
8308 (look_up_one_symbol): New function.
8309 * server.c (handle_query): Call target look_up_symbols hook.
8310 * server.h (look_up_one_symbol): Add prototype.
8311 * target.h (struct target_ops): Add look_up_symbols hook.
8312
96cb11df
AC
83132002-04-09 Andrew Cagney <ac131313@redhat.com>
8314
8315 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8316 override FP_REGNUM with frame->fp. Update copyright.
8317 * parse.c (num_std_regs, std_regs): Delete.
8318 (target_map_name_to_register): Do not search std_regs. Update
8319 function description.
8320 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8321 declarations. Update copyright.
8322 Fix PR gdb/251.
361d1df0 8323
97658e92
DJ
83242002-04-09 Daniel Jacobowitz <drow@mvista.com>
8325
8326 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8327 after the last symbol in a block.
8328
6044e3eb
PM
83292002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8330
8331 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8332 is non zero as a found symbol.
8333
0406ec40
AC
83342002-04-08 Andrew Cagney <ac131313@redhat.com>
8335
8336 * findvar.c: Include "builtin-regs.h".
8337 (value_of_register): Call value_of_builtin_reg when applicable.
8338 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8339 (target_map_name_to_register): Call
8340 builtin_reg_map_name_to_regnum.
8341 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8342 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8343 (builtin_regs_h): Define.
8344 (builtin-regs.o): New target.
8345 (findvar.o): Add $(builtin_regs_h).
8346 * builtin-regs.c, builtin-regs.h: New files.
8347 * std-regs.c: New file.
8348 Partial fix for PR gdb/251.
8349
56a6dfb9
KB
83502002-04-08 Kevin Buettner <kevinb@redhat.com>
8351
8352 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8353 it's no longer required.
8354
3a808432
AC
83552002-04-08 Andrew Cagney <ac131313@redhat.com>
8356
8357 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8358
7c40d541
KB
83592002-04-08 Kevin Buettner <kevinb@redhat.com>
8360
8361 From Jimi X <jimix@watson.ibm.com>:
8362 * rs6000-tdep.c (rs6000_software_single_step): Use
8363 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8364 and size. Use target_insert_breakpoint() and
8365 target_remove_breakpoint() to insert and remove breakpoints
8366 instead of explicit memory reads and writes.
8367
cc9836a8
KB
83682002-04-08 Kevin Buettner <kevinb@redhat.com>
8369
8370 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8371 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8372 ELF_OBJECT_FORMAT ifdef.
8373
7495d1dc
KB
83742002-04-08 Kevin Buettner <kevinb@redhat.com>
8375
8376 From Jimi X <jimix@watson.ibm.com>:
8377 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8378
4288e836
KB
83792002-04-08 Kevin Buettner <kevinb@redhat.com>
8380
8381 From Jimi X <jimix@watson.ibm.com>:
8382 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8383 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8384
a4e4e501
MK
83852002-04-07 Mark Kettenis <kettenis@gnu.org>
8386
8387 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8388 s/asprintf/xasprintf/.
8389 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8390
006defba
AC
83912002-04-07 Andrew Cagney <ac131313@redhat.com>
8392
8393 I believe Jeff Law denies responsability for this one:
8394 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8395 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8396 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8397 Work-around for PR gdb/366.
8398
7aa83cac
EZ
83992002-04-07 Elena Zannoni <ezannoni@redhat.com>
8400
8401 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8402 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8403 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8404
cf1fcca1
EZ
84052002-04-07 Elena Zannoni <ezannoni@redhat.com>
8406
8407 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8408 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8409 information.
8410
3f289e6f
AC
84112002-04-07 Andrew Cagney <ac131313@redhat.com>
8412
8413 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8414 maintainer.
8415
129188f6
AC
84162002-04-07 Andrew Cagney <ac131313@redhat.com>
8417
8418 * README (Reporting Bugs in GDB): Document the bug web page as the
8419 prefered way of submitting bugs.
8420 Fix PR gdb/402.
8421
1200cd6e
AC
84222002-04-06 Andrew Cagney <ac131313@redhat.com>
8423
8424 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8425 -1. Update comment.
8426 * gdbarch.h, gdbarch.c: Re-generate.
8427
2853c33c
AS
84282002-04-07 Andreas Schwab <schwab@suse.de>
8429
8430 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8431 buffer to regcache_collect.
8432
c2169756
AC
84332002-04-06 Andrew Cagney <ac131313@redhat.com>
8434
8435 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8436 * gdbarch.c, gdbarch.h: Re-generate.
8437
25f1b008
AC
84382002-04-06 Andrew Cagney <ac131313@redhat.com>
8439
8440 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8441 declaration. Fix -Werror.
8442
59263426
DJ
84432002-04-05 Daniel Jacobowitz <drow@mvista.com>
8444
8445 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8446 * gdbarch.c: Regenerate.
8447
f5db4da3
MS
84482002-04-05 Michael Snyder <msnyder@redhat.com>
8449
80f8a6eb
MS
8450 * breakpoint.c (clear_command): Rewrite middle section to
8451 combine two loops with identical control conditions.
8452 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8453 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8454
ad3dcc5c
L
84552002-04-05 H.J. Lu (hjl@gnu.org)
8456
8457 * solib-svr4.c (bkpt_names): Add "__start".
8458
f32e7a74
AC
84592002-04-04 Andrew Cagney <ac131313@redhat.com>
8460
8461 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8462 as test for 64 bit target.
8463
8227c0ff
AC
84642002-04-05 Andrew Cagney <ac131313@redhat.com>
8465
8466 * h8500-tdep.c (h8500_write_fp): Delete function.
8467 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8468 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8469 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8470 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8471 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8472 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8473 (s390_write_fp):
8474 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8475 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8476 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8477 (d10v_write_fp): Delete function.
8478 * inferior.h (write_fp, generic_target_write_fp): Delete
8479 declarations.
8480 * regcache.c (generic_target_write_fp): Delete function.
8481 (write_fp): Delete function.
8482 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8483 * gdbarch.h, gdbarch.c: Regenerate.
8484 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8485 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8486 (sparc64_write_fp): Delete declaration.
8487 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8488 (h8500_write_fp): Delete declaration.
8489
2757dd86
AC
84902002-04-04 Andrew Cagney <ac131313@redhat.com>
8491
8492 * sparc-tdep.c (sparc64_write_fp): Delete.
8493 (sparc_push_dummy_frame): Replace write_fp call with code to store
8494 the FP directly.
8495 (sparc_gdbarch_init): Do not initialize write_fp.
8496
c69255e1
KB
84972002-04-05 Kevin Buettner <kevinb@redhat.com>
8498
8499 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8500 clause.
8501
ae767bfb
JB
85022002-03-29 Jim Blandy <jimb@redhat.com>
8503
8504 * stack.c (get_selected_block): Add new argument `addr_in_block',
8505 used to return the exact code address we used to select the block,
8506 not just the block.
8507 * blockframe.c (get_frame_block, get_current_block): Same.
8508 * frame.h (get_frame_block, get_current_block,
8509 get_selected_block): Update declarations.
8510 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8511 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8512
84d2ac95
MS
85132002-04-05 Michael Snyder <msnyder@redhat.com>
8514
8515 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8516 warning message.
8517
596aa3bf
JB
85182002-04-05 J. Brobecker <brobecker@gnat.com>
8519
8520 * utils.c (xfullpath): New function.
8521 * defs.h (xfullpath): Add declaration.
8522 * source.c (openp): Use xfullpath in place of gdb_realpath to
8523 avoid resolving the basename part of filenames when the
8524 associated file is a symbolic link. This fixes a potential
8525 inconsistency between the filenames known to GDB and the
8526 filenames it prints in the annotations.
8527 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8528 to be able to match a filename with either the real filename, or
8529 the name of any symbolic link to this file.
8530 (lookup_partial_symtab): Ditto.
8531
c02f5703
MS
85322002-04-04 Michael Snyder <msnyder@redhat.com>
8533
8534 * breakpoint.c: Add support for hardware breakpoints in overlays.
8535 (overlay_events_enabled): New state variable.
8536 (insert_breakpoints): Use overlay_events_enabled to decide
8537 whether to attempt to set a breakpoint at the overlay load addr.
8538 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8539 (remove_breakpoint): Use overlay_events_enabled to decide
8540 whether breakpoints need to be removed from overlay load addr.
8541 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8542 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8543 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8544 disable_overlay_breakpoints): Update overlay_events_enabled.
8545
5fb290d7
DJ
85462002-04-04 Daniel Jacobowitz <drow@mvista.com>
8547
8548 * dwarf2read.c (struct function_range): New.
8549 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8550 (check_cu_functions): New.
8551 (read_file_scope): Initialize global function lists.
8552 Call dwarf_decode_line after processing children.
8553 (read_func_scope): Add to global function list.
8554 (dwarf_decode_lines): Call check_cu_functions everywhere
8555 record_line is called. Call record_line with a linenumber
8556 of 0 to mark sequence ends.
8557
7b3fabf0
ML
85582002-04-04 Michal Ludvig <mludvig@suse.cz>
8559
361d1df0 8560 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8561 change sync with glibc.
8562
bce58c09
JB
85632002-04-03 Jim Blandy <jimb@redhat.com>
8564
8565 * configure.in: Call AC_C_INLINE.
8566 * configure: Regenerated.
361d1df0 8567
2fccf04a
DJ
85682002-04-01 Daniel Jacobowitz <drow@mvista.com>
8569
8570 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8571 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8572
2d1bfe2e
MK
85732002-03-31 Mark Kettenis <kettenis@gnu.org>
8574
a5941fbf
MK
8575 * NEWS: Mention gcore support on FreeBSD/i386.
8576
a90cd31d
MK
8577 * fbsd-proc.c: New file.
8578 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8579 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8580
2d1bfe2e
MK
8581 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8582 while statement.
8583
9eb6e5a1
JB
85842002-03-29 Jim Blandy <jimb@redhat.com>
8585
8586 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8587 unescaped newlines in string literals, but newer ones don't. So
8588 escape them.
8589
f02df580
MS
85902002-03-26 Michael Snyder <msnyder@redhat.com>
8591 Andrew Cagney <cagney@redhat.com>
8592
361d1df0 8593 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8594 restore file to memory.
8595 * cli/cli-dump.h: New file.
8596 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8597 * NEWS: Mention new commands.
f02df580 8598
109f874e
MS
85992002-03-28 Michael Snyder <msnyder@redhat.com>
8600
8601 * symfile.c (symbol_file_add): Move test for null symbols to later.
8602
520f6ade
AC
86032002-03-27 Andrew Cagney <ac131313@redhat.com>
8604
8605 From veksler at il.ibm.com:
8606 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8607 the xstrduped original path.
8608 Fix PR gdb/417.
8609
d4654627
MS
86102002-03-27 Michael Snyder <msnyder@redhat.com>
8611
8612 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8613 * infcmd.c (_initialize_infcmd): Ditto.
8614 * language.c (_initialize_language): Ditto.
8615 * symfile.c (_initialize_symfile): Ditto.
8616 * top.c (_init_main): Ditto.
8617 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8618
6be8bc0c
EZ
86192002-03-27 Elena Zannoni <ezannoni@redhat.com>
8620
8621 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8622 vector registers handling.
8623 (skip_prologue): Handle new AltiVec instructions. Fill in new
8624 fields of frame data.
8625 (frame_get_saved_regs): Fill in information for AltiVec registers.
8626
12af6855
JB
86272002-03-27 Jim Blandy <jimb@redhat.com>
8628
8629 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8630 a function; leave this macro here to invoke that function.
8631 (symbol_init_mangled_name): Declaration for that function.
8632 * symtab.c (symbol_init_mangled_name): New function.
8633
dc672865
AC
86342002-03-27 Andrew Cagney <ac131313@redhat.com>
8635
8636 * valarith.c: Replace strerror with safe_strerror.
8637 * tracepoint.c: Ditto.
8638 * lin-lwp.c: Ditto.
8639 * go32-nat.c: Ditto.
8640 * inflow.c: Ditto.
8641 * gnu-nat.c: Ditto.
8642
d96429cd
AS
86432002-03-27 Andreas Schwab <schwab@suse.de>
8644
8645 * event-top.c (command_line_handler): Remove useless if.
8646
7e336ba1
AJ
86472002-03-27 Andreas Jaeger <aj@suse.de>
8648
8649 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8650 comment.
8651
de220d0f
ML
86522002-03-27 Michal Ludvig <mludvig@suse.cz>
8653
8654 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8655 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8656 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8657 (x86_64_linux_dr_get_status, supply_gregset),
8658 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8659 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8660 (x86_64_register_info_table): Add.
8661 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8662 (x86_64_register_raw_size, x86_64_register_virtual_type),
8663 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8664 general x86_64_register_info_table.
8665 (i386_gdbarch_init): gdbarch_register_bytes is now set
8666 dynamicaly during initialization.
8667 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8668 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8669
0e98d0a7
DJ
86702002-03-27 Daniel Jacobowitz <drow@mvista.com>
8671
8672 * gdbserver/server.c (main): Call target_signal_to_host_p
8673 and target_signal_to_host on signals received from the remote.
8674 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8675 target_signal_from_host on signals sent to the remote.
8676 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8677 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8678
3130066b
DJ
86792002-03-27 Daniel Jacobowitz <drow@mvista.com>
8680
8681 * signals/signals.c: Include "server.h" in gdbserver build.
8682 (target_signal_from_name): Don't use STREQ.
8683 (_initialize_signals): Likewise. Don't include function in
8684 gdbserver build.
8685
9aedf4f4
DJ
86862002-03-27 Daniel Jacobowitz <drow@mvista.com>
8687
8688 * signals.c: Moved to...
8689 * signals/signals.c: Here.
7e336ba1 8690 * Makefile (signals.o): Update.
9aedf4f4 8691
3fa41cdb
JL
86922002-03-26 Jeff Law (law@redhat.com)
8693
8694 * somread.c (som_symtab_read): Remove some commented out code and
8695 updated related comments. Do not set the minimal symbol table to
8696 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8697 in a dynamic executable.
8698 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8699 where we are unable to find the minimal symbol for the given
8700 PC value.
8701
ee677e8d
MS
87022002-03-25 Jeff Law (law@redhat.com)
8703
8704 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8705
e76e1718
ML
87062002-03-25 Michal Ludvig <mludvig@suse.cz>
8707
8708 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8709
18a642a1
AC
87102002-03-23 Andrew Cagney <ac131313@redhat.com>
8711
8712 * command.h: Update copyright.
8713 (struct cmd_list_element): Replace definition with opaque
8714 declaration.
8715 (enum cmd_types): Document that it will eventually be moved to
8716 cli/cli-decode.h
8717 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8718 (MALLOCED_REPLACEMENT): Delete macro.
8719 * Makefile.in (cli_decode_h): Add $(command_h).
8720 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8721 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8722 * completer.c: Include "cli/cli-decode.h".
8723 * maint.c: Include "cli/cli-decode.h".
8724 * cli/cli-decode.h: Include "command.h".
8725 (enum command_class): Delete.
8726 (enum cmd_types): Comment out.
8727 (enum cmd_auto_boolean): Delete.
8728 (enum var_types): Delete.
8729
b2875cc0
AC
87302002-03-23 Andrew Cagney <ac131313@redhat.com>
8731
8732 * cli/cli-decode.c: Include "gdb_assert.h".
8733 (add_set_or_show_cmd): New static function.
8734 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8735 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8736 all fields, such as func, from the set command.
8737
3b45974e
AC
87382002-03-23 Andrew Cagney <ac131313@redhat.com>
8739
8740 * MAINTAINERS (sh-elf): Change warning flag to -w.
8741
823ca731
AC
87422002-03-23 Andrew Cagney <cagney@redhat.com>
8743
8744 * defs.h (error): Add printf format attribute.
8745 * thread-db.c (thread_from_lwp): Fix error format string.
8746 * stack.c (parse_frame_specification): Ditto.
8747 * cli/cli-decode.c (undef_cmd_error): Ditto.
8748 * scm-lang.c (scm_lookup_name): Ditto.
8749 * tracepoint.c (trace_error): Ditto.
8750 * remote-utils.c (usage): Ditto.
8751 * remote.c (compare_sections_command): Ditto.
8752 Fix PR gdb/328.
8753
0e101458
AC
87542002-03-22 Andrew Cagney <ac131313@redhat.com>
8755
8756 * gdbtypes.c (append_composite_type_field): New function.
8757 (init_composite_type): New function.
8758 * gdbtypes.h (append_composite_type_field): Declare.
8759 (init_composite_type): Ditto.
8760
8e0662df
EZ
87612002-03-22 Elena Zannoni <ezannoni@redhat.com>
8762
8763 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8764 function.
8e0662df
EZ
8765 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8766 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8767 structure returning convention for SYSV ABI case, but not
8768 for GNU/Linux, FreeBSD, or NetBSD.
8769
3121eff0
DJ
87702002-03-22 Daniel Jacobowitz <drow@mvista.com>
8771
8772 * symtab.h (lookup_block_symbol): Add mangled_name argument
8773 to prototype.
8774
8775 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8776 with new mangled_name argument.
8777 * linespec.c (decode_line_1): Likewise.
8778 * valops (value_of_this): Likewise.
8779 * symtab.c (lookup_transparent_type): Likewise.
8780 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8781 (lookup_symbol): If we are given a mangled name, pass it down
8782 to lookup_symbol_aux.
8783 (lookup_block_symbol): If we are given a mangled name to check
8784 against, only return symbols which match it.
8785
349b409f
CF
87862002-03-22 Christopher Faylor <cgf@redhat.com>
8787
8788 * win32-nat.c (child_create_inferior): Check for proper shell to use
8789 here, in case the user changes it on the fly.
8790 (_initialize_inftarg): Remove shell path considerations.
8791
2a873819
EZ
87922002-03-21 Elena Zannoni <ezannoni@redhat.com>
8793
8794 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8795 for gdbarch_max_register_raw_size and max_register_virtual_size.
8796 Adjust copyright year.
8797
a1b9830c
DJ
87982002-03-21 Daniel Jacobowitz <drow@mvista.com>
8799
8800 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8801 in a function to cover the entire beginning of the function
8802 as well if it does not already.
8803
8b5790f2
TR
88042002-03-21 Tom Rix <trix@redhat.com>
8805
8806 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8807 (rs6000_ptrace64): Renamed from ptrace64.
8808
bdbe5747
MH
88092002-03-20 Martin M. Hunt <hunt@redhat.com>
8810
8811 * gdbserver/remote-utils.c (remote_open): Don't call
8812 getprotobyname, we're all using TCP here so just use
8813 IPPROTO_TCP.
7e336ba1 8814 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
8815
88162002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 8817
bdbe5747
MH
8818 * regcache.c (_initialize_regcache): No need to call
8819 build_regcache() at this time; it gets called whenever
8820 the gdbarch changes.
8821
7781cd62
DB
88222002-03-20 David O'Brien <obrien@FreeBSD.org>
8823
8824 * sparc-nat.c: Include sys/param.h where possible.
8825
f65ca430
DJ
88262002-03-20 Daniel Jacobowitz <drow@mvista.com>
8827
8828 Fix PR gdb/422.
8829 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8830 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8831 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8832 complex types.
8833 * stabsread.c (rs6000_builtin_type): Likewise.
8834 (read_sun_floating_type): Likewise.
8835
0c867556
PS
88362002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8837
8838 * stabsread.c (read_member_functions): Remove skip code for duplicate
8839 constructor/destructor methods. Use standard parsing for these
8840 methods and just do not chain them to the list of methods after
8841 parsing.
8842
12b9c64f
AO
88432002-03-19 Alexandre Oliva <aoliva@redhat.com>
8844
8845 * coffread.c: Remove redundant static declarations. Replace
8846 occurrences of `PTR' with `void *'.
8847 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8848 * top.h (quit_cover): Likewise.
8849 * defs.h (catch_errors): Likewise.
8850
349c5d5f
AC
88512002-03-18 Andrew Cagney <ac131313@redhat.com>
8852
8853 * defs.h (XMALLOC): Define.
8854 * gdb-events.sh (XMALLOC): Delete macro.
8855 * gdb-events.c, gdb-events.h: Regenerate.
8856 * gdbarch.sh (XMALLOC): Delete macro.
8857 * gdbarch.c: Regenerate.
8858 * serial.c (XMALLOC): Delete macro.
8859 * ui-file.c (XMALLOC): Ditto.
8860 * ser-unix.h (XMALLOC): Ditto.
8861 * sh-tdep.c (XMALLOC): Ditto.
8862 * ui-out.c (XMALLOC): Ditto.
8863 * utils.c (XMALLOC): Ditto.
8864 * i386-tdep.c (XMALLOC): Ditto.
8865 * gdb-events.c (XMALLOC): Ditto.
8866 * d10v-tdep.c (XMALLOC): Ditto.
8867 * cli-out.c (XMALLOC): Ditto.
8868
8869 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8870 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8871 * ui-file.c, ui-out.c: Ditto.
8872
7d0766f3
AC
88732002-03-18 Andrew Cagney <ac131313@redhat.com>
8874
8875 * command.h (struct cmd_list_element): Add field context.
8876 (set_cmd_context, get_cmd_context): Declare.
8877 * cli/cli-decode.h: Ditto.
8878 * cli/cli-decode.c (get_cmd_context): New function.
8879 (set_cmd_context): New function.
8880 (add_cmd): Initialize context.
8881 Part of fixing PR gdb/145 and PR gdb/146.
8882
5913bcb0
AC
88832002-03-17 Andrew Cagney <ac131313@redhat.com>
8884
1868c04e
AC
8885 * cli/cli-decode.c (cmd_type): New function.
8886 * command.h (cmd_type): Declare.
8887 * infrun.c (set_schedlock_func): Call function cmd_type.
8888 * kod.c (kod_set_os): Call cmd_type.
8889 * cris-tdep.c (cris_version_update): Use function cmd_type.
8890 (cris_mode_update, cris_abi_update): Ditto.
8891
5913bcb0
AC
8892 * command.h: (execute_cmd_post_hook): Declare.
8893 (execute_cmd_pre_hook): Declare.
8894 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8895 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8896 functions. Execute pre/post hook while ensuring that afterwords
8897 hook_in is cleared.
8898 * top.c (execute_command): Use execute_cmd_post_hook, and
8899 execute_cmd_pre_hook to execute pre/post commands.
8900 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8901 hook_stop_stub.
8902 (hook_stop_stub): Call execute_cmd_pre_hook.
8903
b51450c9
AC
89042002-03-17 Andrew Cagney <ac131313@redhat.com>
8905
8906 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8907 set'' and this leads to a core dump. Move xstrdup of
8908 operating_system to after check that it is not NULL.
8909
f66c9f11
AC
89102002-03-17 Andrew Cagney <ac131313@redhat.com>
8911
8e694ecf
AC
8912 * kod.c (kod_set_os): Remove unnecessary check that
8913 ``command->type'' is set_cmd.
8914
f66c9f11
AC
8915 * valprint.c (set_input_radix): Use input_radix.
8916 (set_output_radix): Use output_radix.
8917 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8918 isn't reverted.
8919
9d01611c
AC
89202002-03-16 Andrew Cagney <ac131313@redhat.com>
8921
8922 * value.h (struct value): Delete field ``substring_addr''. Change
8923 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
8924 force_core_addr_align and force_pointer_aligh.
8925
8926 * value.h (struct value): Fix typo in above change.
9d01611c 8927
4156bb53
PS
89282002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8929
8930 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8931 to fix internal_error from ``maintenance print architecture''.
8932
0e5e3ea6
PS
89332002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8934
8935 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8936 for gcc versions after gcc-2.8.1.
8937
9b013045
PS
89382002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8939
8940 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8941 for method resolution. Restore adjustment of ``this'' pointer after
8942 calling value_struct_elt, which was accidentally removed during the
8943 HP merge.
8944
376c9600
AC
89452002-03-15 Andrew Cagney <ac131313@redhat.com>
8946
8947 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8948 value_of_register.
8949 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8950 get_saved_register.
8951 * value.h (value_of_register): Update.
8952
a4db0f07
RH
89532002-03-14 Richard Henderson <rth@redhat.com>
8954
8955 * configure.in: Detect declaration for canonicalize_file_name.
8956 * utils.c (canonicalize_file_name): Declare, if needed.
8957 (gdb_realpath): Prefer realpath if available and usable.
8958 * config.in, configure: Rebuild.
8959
96383835
RH
89602002-03-14 Richard Henderson <rth@redhat.com>
8961
8962 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8963 a constant array bound.
8964
8965 * MAINTAINERS: Add myself to write-after-approval.
8966
75245b24
MS
89672002-03-14 Michael Snyder <msnyder@redhat.com>
8968
8969 * symfile.c (syms_from_objfile): Return immediately if no syms.
8970 (symbol_file_add): Return immediately if no syms.
8971 (find_sym_fns): Return immediately if no syms.
8972
e641a1ca
ML
89732002-03-13 Michal Ludvig <mludvig@suse.cz>
8974
8975 * gdbserver/remote-util.c (remote_open): Print remote-side's
8976 IP address when remote debugging over the network.
7e336ba1 8977
df08bfec
DB
89782002-03-12 David O'Brien <obrien@FreeBSD.org>
8979
8980 * config/sparc/fbsd.mh: Fix copyright.
8981 * config/sparc/fbsd.mt: Likewise.
8982
9a57864f
RE
89832002-03-11 Richard Earnshaw <rearnsha@arm.com>
8984
8985 * MAINTAINERS: Fix typo in name of gdb warnings option.
8986 (x86-64): Fix formating so that this can be parsed by awk.
8987
dd7bf85e
DJ
89882002-03-10 Daniel Jacobowitz <drow@mvista.com>
8989
8990 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8991 * defs.h: Include "gdb/signals.h".
8992 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8993
33a0a2ac
ML
89942002-03-10 Michal Ludvig <mludvig@suse.cz>
8995
8996 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 8997 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
8998 from x86-64-tdep.h
8999
dd824b04
DJ
90002002-03-10 Daniel Jacobowitz <drow@mvista.com>
9001 Don Howard <dhoward@redhat.com>
9002
9003 * mips-tdep.c (ST0_FR): Define.
9004 (mips2_fp_compat): New function, temporarily disabled.
9005 (mips_read_fp_register_single): New function.
9006 (mips_read_fp_register_double): New function.
9007 (mips_print_register): Use them.
9008 (do_fp_register_row): Likewise.
9009
6a41ff59
AC
90102002-03-09 Andrew Cagney <ac131313@redhat.com>
9011
9012 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9013 approval''.
9014
4ea09c10
PS
90152002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9016
9017 * stabsread.c (read_member_functions): Fix is_stub test for
9018 static member functions, improve comment.
9019
6ccc741d
RE
90202002-03-07 Richard Earnshaw <rearnsha@arm.com>
9021
9022 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9023 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9024 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9025 commands that set boolean values.
9026 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9027 (arm_rdi_resume): Always initialize PC.
9028 (arm_rdi_open): Don't use rslt as a boolean.
9029 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9030 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9031 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9032 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9033
438013df
AO
90342002-03-06 Alexandre Oliva <aoliva@redhat.com>
9035
9036 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9037 * configure: Rebuilt.
9038
70ed8774
SC
90392002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9040
9041 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9042 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9043
5ba2abeb
AC
90442002-03-06 Andrew Cagney <ac131313@redhat.com>
9045
9046 * cli/cli-decode.c (set_cmd_completer): New function.
9047 * command.h (set_cmd_completer): Declare.
9048 * cli/cli-decode.h (set_cmd_completer): Ditto.
9049
9050 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9051 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9052 * win32-nat.c (_initialize_inftarg): Ditto.
9053 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9054 * proc-api.c (_initialize_proc_api): Ditto.
9055 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9056 * source.c (_initialize_source): Ditto.
9057 * exec.c (_initialize_exec): Ditto.
9058 * solib.c (_initialize_solib): Ditto.
9059 * top.c (init_main): Ditto.
9060 * tracepoint.c (_initialize_tracepoint): Ditto.
9061 * symfile.c (_initialize_symfile): Ditto.
9062 * printcmd.c (_initialize_printcmd): Ditto.
9063 * infcmd.c (_initialize_infcmd): Ditto.
9064 * corefile.c (_initialize_core): Ditto.
9065
f779ca99
AC
90662002-03-05 Andrew Cagney <ac131313@redhat.com>
9067
9068 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9069
01a3934b
AC
90702002-03-05 Andrew Cagney <ac131313@redhat.com>
9071
9072 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9073
37057839
AC
90742002-03-05 Andrew Cagney <ac131313@redhat.com>
9075
9076 * NEWS: Update headings, 5.2 has branched.
9077
c6ecbae5
DJ
90782002-03-04 Daniel Jacobowitz <drow@mvista.com>
9079
9080 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9081 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9082 (register_addr, REGISTER_RAW_SIZE): Likewise.
9083 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9084 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9085
e9f30c21
ML
90862002-03-03 Michal Ludvig <mludvig@suse.cz>
9087
9088 * MAINTAINERS (x86-64): Add myself.
9089 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9090 changed value_ptr -> struct value *
9091
54394ac3
DB
90922002-03-01 David O'Brien <obrien@FreeBSD.org>
9093
9094 * configure.host (sparc64-*-freebsd): Add.
9095 * configure.tgt: Likewise.
9096 * config/sparc/fbsd.mh: New file.
9097 * config/sparc/fbsd.mt: Likewise.
9098 * config/sparc/nm-fbsd.h: Likewise.
9099 * config/sparc/tm-fbsd.h: Likewise.
9100
bfe95955
DJ
91012002-03-01 Daniel Jacobowitz <drow@mvista.com>
9102
9103 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9104 regformats/reg-s390x.dat.
9105
f33c6cbf
AC
91062002-03-01 Andrew Cagney <ac131313@redhat.com>
9107
9108 * utils.c: Add FIXME explaining true/false problem.
9109
5ecaa7dd
AC
91102002-02-28 Andrew Cagney <ac131313@redhat.com>
9111
9112 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9113
2a251cc2
MC
91142002-02-28 Michael Chastain <mec@shout.net>
9115
9116 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9117
6a8031a3 91182002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
9119
9120 * gdbserver/linux-s390-low.c: New file.
9121 * regformats/reg-s390.dat: New file.
9122 * regformats/reg-s390x.dat: New file.
9123 * gdbserver/configure.srv: Add S/390.
9124 * gdbserver/Makefile.in: Add S/390.
9125 * configure.tgt: Enable gdbserver for S/390.
9126
ac469903
EZ
91272002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9128
9129 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9130 first line of the doc string for "info dos", except at the end of
9131 the sentence, since the short help stops at the first period.
9132
985cb1a3
JM
91332002-02-28 Jason Merrill <jason@redhat.com>
9134
9135 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9136
c570663e
FF
91372002-02-27 Fred Fish <fnf@redhat.com>
9138
9139 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9140 comment (dumy -> dummy).
9141
43630227
PS
91422002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9143
9144 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9145
b84911e8
RB
91462002-02-27 Rodney Brown <rbrown64@csc.com.au>
9147
9148 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9149
58caa3dc
DJ
91502002-02-27 Daniel Jacobowitz <drow@mvista.com>
9151
9152 * gdbserver/acconfig.h: New file.
9153 * gdbserver/i387-fp.c: New file.
9154 * gdbserver/i387-fp.h: New file.
9155 * gdbserver/linux-x86-64.c: New file.
9156 * regformats/reg-x86-64.dat: New file.
9157 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9158 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9159 * gdbserver/configure.in: Add support for regsets.
9160 * gdbserver/config.in: Regenerate.
9161 * gdbserver/configure: Regenerate.
9162 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9163 * gdbserver/linux-low.h: New file.
9164 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9165 for regsets.
9166 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9167 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9168 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9169 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9170 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9171 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9172 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9173 "i387-fp.h". Add PTRACE_GETREGS and friends.
9174 * gdbserver/regcache.c (supply_register): New function.
9175 (supply_register_by_name): New function.
9176 (collect_register): New function.
9177 (collect_register_by_name): New function.
9178
93652174
DJ
91792002-02-27 Daniel Jacobowitz <drow@mvista.com>
9180
9181 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9182 (config.status): Add configure.srv dependency.
9183 (server_h): Add config.h dependency.
9184
a02e4a61
DJ
91852002-02-27 Daniel Jacobowitz <drow@mvista.com>
9186
9187 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9188 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9189 * gdbserver/configure.srv: Change i386-*-linux* to use
9190 reg-i386-linux.o.
9191
ce0eebec
AC
91922002-02-26 Andrew Cagney <ac131313@redhat.com>
9193
9194 * x86-64-tdep.c: Re-indent. Update copyright date.
9195
82dbc5f7
AC
91962002-02-26 Andrew Cagney <ac131313@redhat.com>
9197
9198 From Michal Ludvig <mludvig@suse.cz>:
9199 * x86-64-tdep.c (value.h): Delete.
9200 (gdb_assert.h): Include.
9201 (x86_64_register_convert_to_virtual,
9202 x86_64_register_convert_to_raw ): Add check which lets only
9203 floating-point values to be converted.
9204 (value_push): Delete.
9205 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9206 (i386_gdbarch_init): Number of register_bytes fixed.
9207
e4621584
AC
92082002-02-26 Andrew Cagney <ac131313@redhat.com>
9209
9210 * MAINTAINERS: Add x86-64 target.
9211
81a9a963
AC
92122002-02-26 Andrew Cagney <ac131313@redhat.com>
9213
9214 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9215 * osfsolib.c (solib_map_sections): Ditto.
9216 * irix5-nat.c (solib_map_sections): Ditto.
9217 * corelow.c (gdb_check_format): Ditto.
9218 * symfile.c (symfile_bfd_open): Ditto.
9219 * solib.c (solib_map_sections): Ditto.
9220 Fix PR gdb/354.
7e336ba1 9221
0f017ab9
AC
92222002-02-26 Andrew Cagney <ac131313@redhat.com>
9223
9224 * remote.c (_initialize_remote): By default, disable ``e'' and
9225 ``E'' step out-of-range packets.
9226
75738c29
AS
92272002-02-26 Andreas Schwab <schwab@suse.de>
9228
9229 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9230 m68k_linux_frame_saved_pc.
9231 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9232 in_sigtramp.
9233 (SIGCONTEXT_PC_OFFSET): Remove.
9234 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9235 m68k_linux_sigtramp_saved_pc): New functions.
9236 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9237 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9238 (UCONTEXT_PC_OFFSET): Define.
9239 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9240 non-RT and RT signal trampolines.
9241
7e8ed687
RE
92422002-02-26 Richard Earnshaw <rearnsha@arm.com>
9243
9244 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9245 (TARGET_NBPG, STACK_END_ADDR): Delete
9246 (VARIABLES_INSIDE_BLOCK): Delete.
9247
6972bc8b
AC
92482002-02-25 Andrew Cagney <ac131313@redhat.com>
9249
9250 * utils.c (perror_with_name): Make string parameter constant.
9251 (print_sys_errmsg): Ditto.
9252 (query): Ditto.
9253 * defs.h (perror_with_name): Update.
9254 (print_sys_errmsg): Update.
9255 (query): Update.
9256
aa32f823
DJ
92572002-02-25 Daniel Jacobowitz <drow@mvista.com>
9258
9259 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9260 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9261
19caaa45
PS
92622002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9263
9264 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9265 if it already matches the current architecture from the exec file.
9266 Include arch-utils.h for gdbarch_info_init prototype.
9267 * Makefile.in (rs6000-nat.o): Update dependencies.
9268
d951901f
EZ
92692002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9270
9271 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9272 list of exported variables.
9273
7ea81414
DJ
92742002-02-24 Daniel Jacobowitz <drow@mvista.com>
9275
9276 * gdbserver/configure.srv: New file.
9277 * gdbserver/configure.in: Use configure.srv instead
9278 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9279 from it.
9280 * gdbserver/configure: Regenerated.
9281 * gdbserver/terminal.h: New file.
9282 * gdbserver/Makefile.in: Update for configure changes. Remove
9283 more unneeded include paths.
9284
080fe24b
AC
92852002-02-24 Andrew Cagney <ac131313@redhat.com>
9286
9287 From wiz at danbala:
9288 * config/sparc/tm-sp64.h: Fix grammar and typos.
9289 Fix PR gdb/287.
9290
8605d56e
AC
92912002-02-24 Andrew Cagney <ac131313@redhat.com>
9292
9293 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9294 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9295 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9296 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9297 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9298 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9299 * s390-tdep.c: Ditto.
92362027
AC
9300 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9301 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9302 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9303 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9304 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9305 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9306 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9307 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9308 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9309 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9310 Fix PR gdb/378.
7e336ba1 9311
8ed32cc0
AC
93122002-02-23 Andrew Cagney <ac131313@redhat.com>
9313
a3007b6f
AC
9314 * lin-thread.c: Delete file.
9315 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9316 to gdb_proc_service.h.
9317 * configure: Re-generate.
9318
50a9e2f1
AC
9319 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9320 * serial.c (serial_open): Delete check for "ocd".
9321 Fix PR gdb/349.
9322
8b6e7932
AC
9323 * Makefile.in (linux-thread.o): Delete target.
9324 * linux-thread.c: Delete file.
9325
d155c46b
AC
9326 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9327 renamed SH files to be consistent.
9328
8ed32cc0
AC
9329 * symtab.c (sort_search_symbols): Use xfree.
9330
0e18d038
RE
93312002-02-23 Richard Earnshaw <rearnsha@arm.com>
9332
9333 * arm-linux-tdep.c (arm_linux_init_abi): Register
9334 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9335 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9336 definition with undef, since we don't want the sysvr4 definition.
9337 (SKIP_TRAMPOLINE_CODE): Likewise.
9338
27aac7ff
AC
93392002-02-23 Andrew Cagney <ac131313@redhat.com>
9340
9341 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9342
9343 * configure.in: (AC_CHECK_FUNCS) Added test for
9344 canonicalize_file_name Regenerated.
9345 * config.in, configure: Regenerated.
9346 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9347 defined use canonicalize_file_name.
7e336ba1 9348
65a6e0ee
MC
93492002-02-23 Michael Chastain <mec@shout.net>
9350
9351 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9352
47b95330
AC
93532002-02-23 Andrew Cagney <ac131313@redhat.com>
9354
9355 * README: Remove references to cygnus.com.
9356 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9357 dot com'' form. Remove references to cygnus.com and sourceware.
9358
696f451b
AC
93592002-02-23 Andrew Cagney <ac131313@redhat.com>
9360
9361 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9362 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9363 1003.1-2001 no longer allows "head -1".
9364 * gdb/Makefile.in (version.c): Likewise.
9365 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9366 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9367 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9368
bbaca940
AC
93692002-02-23 Andrew Cagney <ac131313@redhat.com>
9370
9371 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9372 * command.h (cmd_cfunc_eq): Declare.
9373 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9374
9375 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9376 ``struct cmd_list_element *''.
9377 * cli/cli-cmds.c (is_complete_command): Update. Use
9378 cmd_cfunc_eq.
9379 * top.c (execute_command): Pass the command to
9380 is_complete_command.
9381 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9382
b8b8b047
AC
93832002-02-23 Andrew Cagney <ac131313@redhat.com>
9384
9385 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9386 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9387 architecture defines.
9388 * s390-tdep.c (s390_gdbarch_init): Likewise.
9389
19d3fc80
RE
93902002-02-23 Richard Earnshaw <rearnsha@arm.com>
9391
9392 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9393 (arm_linux_push_arguments): Likewise.
9394 (arm_linux_init_abi): Register them. Also register linux-specific
9395 call_dummy_words.
9396 (find_minsym_and_objfile): Use strcmp, not STREQ.
9397 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9398 (arm_linux_call_dummy_words): Delete declaration.
9399 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9400 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9401 declarations.
9402 (LOWEST_PC): Delete.
9403
3ab13650
PS
94042002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9405
9406 * maint.c (print_section_info): Do not prepend `0x' to filepos
9407 output, it will be handled by local_hex_string_custom.
9408
19d3fc80 94092002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9410
9411 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9412 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9413 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9414
d85a5daf
JB
94152002-02-22 Jim Blandy <jimb@redhat.com>
9416
9417 Indicate that the bcache functions don't change the strings
9418 they're passed.
9419 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9420 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9421
eeb25b8a
PM
94222002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9423
9424 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9425
6badb179
CF
94262002-02-21 Christopher Faylor <cgf@redhat.com>
9427
9428 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9429 find the complete path to a loaded DLL.
9430
e8717518
FF
94312002-02-21 Fred Fish <fnf@redhat.com>
9432
9433 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9434 that marks the end of the range of a function, enter a line number
9435 entry that has a line number of zero and a PC offset that matches
9436 the end of the function. This starts a range of PC's for which no
9437 line number information is known.
9438 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9439 PC's for which no line number info is found (line number is zero)
9440 then we didn't find any valid line information.
9441 * symtab.h: Document use of zero line number entry.
9442
9abe5450
EZ
94432002-02-21 Elena Zannoni <ezannoni@redhat.com>
9444
9445 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9446 (have_ptrace_getvrregs): Define for run time checks.
9447 (gdb_vrregset_t): New type for Altivec register handling.
9448 (fetch_register, store_register): Fetch/store altivec register
9449 when needed.
9450 (fetch_altivec_register, store_altivec_register): New functions.
9451 (supply_vrregset, fill_vrregset): New functions.
9452 (fetch_altivec_registers, store_altivec_registers): New functions.
9453 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9454 registers as well.
9455
aaa38bb5
AJ
94562002-02-21 Jiri Smid <smid@suse.cz>
9457
9458 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9459
b34db576
RE
94602002-02-21 Richard Earnshaw <rearnsha@arm.com>
9461
9462 * Makefile.in (armnbsd-nat.o): Update dependencies.
9463 * armnbsd-nat.c (supply_gregset): New function. Common code to
9464 supply the integer register set.
9465 (supply_fparegset): New function. Similar for FPA registers.
9466 (fetch_regs, fetch_fp_regs): Use them.
9467 (fetch_core_registers): Likewise.
9468 (fetch_elfcore_registers): New function.
9469 (arm_netbsd_elfcore_fns): New core-file type specification.
9470 (_initialize_arm_netbsd_nat): Register it.
9471
3e56fc4b
RE
94722002-02-21 Richard Earnshaw <rearnsha@arm.com>
9473
9474 * armnbsd-nat.c: Include gdbcore.h.
9475 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9476 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9477 'void' to declaration, to shut up ARI.
9478 (fetch_core_registers): Make static. Rewrite using supply_register.
9479 (arm_netbsd_core_fns): New core-file type specification.
9480 (_initialize_arm_netbsd_nat): New function.
9481
097f6b0b
CF
94822002-02-21 Christopher Faylor <cgf@redhat.com>
9483
9484 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9485 value.
9486
c914e0cc
CF
94872002-02-20 Christopher Faylor <cgf@redhat.com>
9488
9489 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9490 fails.
9491
385fa495
DJ
94922002-02-20 Daniel Jacobowitz <drow@mvista.com>
9493
9494 * jv-exp.y (parse_number): Change type of implicit longs
9495 to builtin_type_uint64.
9496
e5f1222d
DJ
94972002-02-20 Daniel Jacobowitz <drow@mvista.com>
9498
9499 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9500 to be an integer instead of a `union wait'.
9501
75c9abc6
DJ
95022002-02-20 Daniel Jacobowitz <drow@mvista.com>
9503
9504 * mips-linux-nat.c: Call the operating system GNU/Linux.
9505 * mips-linux-tdep.c: Likewise.
9506 * mips-tdep.c: Likewise.
9507
551792a5
DJ
95082002-02-20 Daniel Jacobowitz <drow@mvista.com>
9509
9510 Fix PR gdb/265.
9511 * jv-exp.y (parse_number): Handle 64-bit integers.
9512
ee6e2b82
DJ
95132002-02-20 Daniel Jacobowitz <drow@mvista.com>
9514
9515 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9516 AC_STDC_HEADERS to AC_HEADER_STDC.
9517 * gdbserver/configure: Regenerated.
9518
a48442a0
RE
95192002-02-20 Richard Earnshaw <rearnsha@arm.com>
9520
9521 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9522 is defined.
9523 * sparc-tdep.c (get_longjmp_target): Likewise.
9524
fe419ffc
RE
95252002-02-20 Richard Earnshaw <rearnsha@arm.com>
9526
9527 * News: Add news about ARM and Multi-arch. Mention the new target
9528 arm*-*-netbsd*.
9529
5832ed7e
JB
95302002-02-19 Jim Blandy <jimb@redhat.com>
9531
9532 * stabsread.c (error_type_complaint): Improve error message.
9533
84563040
DJ
95342002-02-19 Daniel Jacobowitz <drow@mvista.com>
9535
9536 * gdbserver/README: Update documentation.
9537 * gdbserver/configure.in: Update configury to match documentation.
9538 * gdbserver/Makefile.in: Likewise.
9539 * gdbserver/configure: Regenerated.
9540 * gdbserver/aclocal.m4: New file, generated by aclocal.
9541 * gdbserver/config.in: New file, generated by autoheader.
9542
375fd65b
RE
95432002-02-19 Richard Earnshaw <rearnsha@arm.com>
9544
9545 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9546 armnbsd-nat.c.
9547
08216dd7
RE
95482002-02-19 Richard Earnshaw <rearnsha@arm.com>
9549
9550 * arm-tdep.h (enum arm_float_model): New enum.
9551 (struct gdbarch_tdep): Add fp_model.
9552 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9553 up floating-point conversions until we know the floating-point model
9554 in use by the inferior. Don't complain about being unable to
9555 determine the ABI of the inferior when we don't have one.
9556 (arm_extract_return_value): Support different floating-point models.
9557 (arm_store_return_value): Likewise.
aaa38bb5 9558 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9559 ARM_FLOAT_SOFT.
9560 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9561
65d6d66a
PS
95622002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9563
9564 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9565 of ``current_gdbarch''.
9566
47221191
RE
95672002-02-19 Richard Earnshaw <rearnsha@arm.com>
9568
9569 * armnbsd-nat.c : ANSIfy all function declarations.
9570 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9571 (fetch_inferior_registers): Re-implement in terms of above.
9572 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9573 (store_inferior_registers): Re-implement in terms of above.
9574
fdf39c9a
RE
95752002-02-19 Richard Earnshaw <rearnsha@arm.com>
9576
aaa38bb5 9577 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9578 kernel.
9579 * arm-linux-tdep.c: Likewise.
9580 * config/arm/tm-linux.h: Likewise.
9581
93247f88
RE
95822002-02-19 Richard Earnshaw <rearnsha@arm.com>
9583
9584 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9585 * config/arm/nbsd.mt (TM_FILE): Delete.
9586 * config/arm/tm-nbsd.h: Delete.
9587
d7b486e7
RE
95882002-02-19 Richard Earnshaw <rearnsha@arm.com>
9589
9590 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9591 Initialize CALL_DUMMY_LENGTH.
9592
41d39a95
RE
95932002-02-19 Richard Earnshaw <rearnsha@arm.com>
9594
9595 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9596 function.
9597 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9598 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9599 defines one thing and that is incorrect for this port.
9600 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9601
e1195560
PM
96022002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9603
9604 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9605
c1748f97
PM
96062002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9607
9608 * win32-nat.c (display_selector): New function. Displays information
9609 about the information returned by GetThreadSelectorEntry API function.
9610 (display_selectors): New function. Displays the infomation of
9611 the selector given as argument, or of CS, DS ans FS selectors
9612 if no argument is given.
9613 ( _initialize_inftarg): Add "w32" as info prefix command.
9614 Add "info w32 selector" as command calling display_selectors.
9615
e41e6bbf
PM
96162002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9617
9618 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9619 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9620 if not defined.
9621
0d3a9f48
RE
96222002-02-18 Richard Earnshaw <rearnsha@arm.com>
9623
9624 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9625
3fb4b924
RE
96262002-02-18 Richard Earnshaw <rearnsha@arm.com>
9627
9628 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9629 (arm_fix_call_dummy): Call it.
9630 (arm_call_dummy_breakpoint_offset): Delete.
9631 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9632 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9633
7f55af32
AC
96342002-02-18 Andrew Cagney <ac131313@redhat.com>
9635
9636 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9637 Default to func_frame_chain_valid.
9638 * gdbarch.h, gdbarch.c: Re-generate.
9639 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9640
05f13b9c
EZ
96412002-02-18 Elena Zannoni <ezannoni@redhat.com>
9642
9643 * ppc-linux-nat.c: Update copyright.
9644 (fetch_register, store_register): Add tid parameter, don't compute
9645 tid here.
9646 (fetch_ppc_registers, store_ppc_registers): Add tid
9647 parameter. Pass it along to callees.
9648 (fetch_inferior_registers, store_inferior_registers): Compute tid
9649 here, and pass it to calleed functions.
9650 (fill_gregset, supply_fpregset): Clean up formatting.
9651
d7afb4c9
RE
96522002-02-18 Richard Earnshaw <rearnsha@arm.com>
9653
9654 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9655 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9656
9df628e0
RE
96572002-02-18 Richard Earnshaw <rearnsha@arm.com>
9658
9659 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9660 * gdbarch.c gdbarch.h: Regenerate.
9661 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9662 function.
9663 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9664 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9665 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9666
9667 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9668 * arm-tdep.c (arm_get_longjmp_target): New function.
9669 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9670 this to a positive value register arm_get_longjmp_target as the
9671 longjmp handler.
9672 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9673 (arm_linux_init_abi): Set up longjmp description in tdep.
9674 * armnbsd-nat.c (get_longjmp_target): Delete.
9675 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9676 description in tdep.
9677 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9678 (get_longjmp_target): Delete declaration.
9679 (GET_LONGJMP_TARGET): Delete.
9680 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9681 (GET_LONGJMP_TARGET): Delete.
9682
57bc8964
KB
96832002-02-17 Kevin Buettner <kevinb@redhat.com>
9684
9685 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9686 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9687 of ``current_gdbarch''.
9688
83d31a92
TT
96892002-02-17 Tom Tromey <tromey@redhat.com>
9690
9691 * cli/cli-cmds.c (compare_strings): New function.
9692 (complete_command): Only print each unique item once.
9693 * completer.h (complete_line): Declare.
9694 * completer.c (complete_line): New function.
9695 (line_completion_function): Use it.
9696
17ef5d92
AC
96972002-02-16 Andrew Cagney <ac131313@redhat.com>
9698
9699 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9700 * gdbarch.h, gdbarch.c: Re-generate.
9701
491b8946
DJ
97022002-02-16 Daniel Jacobowitz <drow@mvista.com>
9703
9704 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9705
97062002-02-16 Daniel Jacobowitz <drow@mvista.com>
9707
9708 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9709 * valops.c (value_arg_coerce): Don't take the address of a reference
9710 to convert an argument to a reference.
9711
dfe7f3ac
CF
97122002-02-15 Christopher Faylor <cgf@redhat.com>
9713
9714 * win32-nat.c (get_image_name): New function.
9715 (handle_load_dll): Use get_image_name function.
9716 (get_child_debug_event): Avoid registering debug events until possibly
9717 execed process is started.
9718 (child_create_inferior): Allow invocation via shell so that command
9719 line redirection, etc. works ok.
9720 (_initialize_inftarg): Add new command: "set shell" to control whether
9721 a shell is used to start a process.
9722
1d33e73a
DJ
97232002-02-15 Daniel Jacobowitz <drow@mvista.com>
9724
9725 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9726 instead of find_register_by_number.
9727 (cannot_store_register): Likewise.
9728
48cd0caa
PM
97292002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9730
aaa38bb5 9731 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9732 fprintf_unfiltered (gdb_stderr, ...).
9733
8656e7d8
DJ
97342002-02-15 Daniel Jacobowitz <drow@mvista.com>
9735
9736 * gdbserver/gdbserver.1: Document --attach.
9737
66e810cd
RE
97382002-02-15 Richard Earnshaw <rearnsha@arm.com>
9739
9740 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9741 descriptions.
9742 * arm-tdep.c (arm_default_arm_le_breakpoint)
9743 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9744 (arm_default_thumb_be_breakpoint): New. Initialize them from
9745 traditional breakpoint defines.
9746 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9747 (arm_gdbarch_init): Initialize new breakpoint variables.
9748 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9749 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9750 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9751 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9752 code out to ...
9753 (arm_netbsd_init_abi_common): ... here; new function.
9754 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9755 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9756 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9757 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9758
97e03143
RE
97592002-02-15 Richard Earnshaw <rearnsha@arm.com>
9760
9761 * arm-tdep.h (enum arm_abi): New enum.
9762 (struct gdbarch_tdep): New structure.
9763 (LOWEST_PC): Provide a default.
9764 (arm_gdbarch_register_os_abi): Declare new function.
9765 * arm-tdep.c (arm_abi_names): New array.
9766 (process_note_abi_tag_sections): New function.
9767 (get_elfosabi): New function.
9768 (arm_gdbarch_register_os_abi): New function.
9769 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9770 support for that ABI has been built in, then call the appropriate
9771 configuration routine. Use gdbarch_num_regs() to get the number
9772 of registers.
9773 (arm_dump_tdep): New function.
9774 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9775 place-holder functions.
9776 (_initialize_arm_tdep): Register them.
9777 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9778
9779 * armnbsd-tdep.c: New file.
9780 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9781 * config/arm/nbsd.mt (TDEPFILES): Add it.
9782 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9783
9784 * armnbsd-nat.c: Include regcache.h.
9785 * Makefile.in (armnbsd-nat.o): Update dependency list.
9786
9787 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9788
ad68be46
DJ
97892002-02-14 Daniel Jacobowitz <drow@mvista.com>
9790
9791 * gdbserver/Makefile.in: Fix typos in target rules.
9792
003d6d1d
DJ
97932002-02-14 Daniel Jacobowitz <drow@mvista.com>
9794
aaa38bb5 9795 Fix part of PR gdb/267.
003d6d1d
DJ
9796 * linespec.c (find_methods): Handle constructors specially for now.
9797
6b230f1b
CV
97982002-02-14 Corinna Vinschen <vinschen@redhat.com>
9799
9800 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9801 handling.
9802 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9803 standard_coerce_float_to_double().
9804
1ea98d12
CF
98052002-02-14 Christopher Faylor <cgf@redhat.com>
9806
9807 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9808 GDBINIT_FILENAME.
9809
dd47e6fd
EZ
98102002-02-14 Elena Zannoni <ezannoni@redhat.com>
9811
9812 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9813 find_variant_by_name, because it confuses the multiarch
9814 framework. Return NULL if there isn't an architecture with the
9815 user supplied name, instead of forcing a different one without
9816 recording the change with the multiarch machinery.
9817 (find_variant_by_name): Delete.
9818
d7e39b9e
PS
98192002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9820
9821 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9822 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9823
76e42a4f
MH
98242002-02-13 Martin M. Hunt <hunt@redhat.com>
9825
aaa38bb5 9826 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9827 print_frame_info_listing_hook, set current_source_symtab.
9828
0a30fbc4
DJ
98292002-02-14 Daniel Jacobowitz <drow@mvista.com>
9830
9831 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9832 and remove unused $(INCLUDE_DIR).
9833 Add regcache.c to OBS.
9834 Add generated register protocol files to clean target.
9835 Update dependencies for new objects, obsolete old target code.
9836
9837 * gdbserver/linux-low.c: Remove all platform-specific code to
9838 new files. Remove various dead code. Update to use regcache
9839 functionality.
9840 * gdbserver/remote-utils.c (fromhex): Add return statement
9841 to quiet warning.
9842 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9843 constant.
9844 (input_interrupt): Add integer parameter to match prototype
9845 of a signal handler.
9846 (outreg): Use register_data ().
9847 (prepare_resume_reply): Use gdbserver_expedite_regs.
9848 * gdbserver/server.c (main): Dynamically allocate own_buf because
9849 PBUFSIZ is no longer constant. Use registers_to_string () and
9850 registers_from_string ().
9851 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9852 for error (), fatal (), and warning (). Update definition of
9853 PBUFSIZ to use regcache functionality. Add include guard.
9854 * gdbserver/utils.c (fatal): Add missing ``const''.
9855 (warning): New function.
9856
9857 * regformats/regdat.sh: Include "regcache.h" in generated files.
9858 Provide init_registers () function.
9859 * regformats/regdef.h: Add prototype for set_register_cache ().
9860 Add include guard.
9861
9862 * gdbserver/linux-arm-low.c: New file.
9863 * gdbserver/linux-i386-low.c: New file.
9864 * gdbserver/linux-ia64-low.c: New file.
9865 * gdbserver/linux-m68k-low.c: New file.
9866 * gdbserver/linux-mips-low.c: New file.
9867 * gdbserver/linux-ppc-low.c: New file.
9868 * gdbserver/linux-sh-low.c: New file.
9869
9870 * gdbserver/regcache.c: New file.
9871 * gdbserver/regcache.h: New file.
9872
9873 * gdbserver/low-linux.c: Removed obsolete file.
9874
4cc841d0
DJ
98752002-02-14 Daniel Jacobowitz <drow@mvista.com>
9876
9877 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9878 * config/i386/linux.mt: Likewise.
9879 * config/ia64/linux.mt: Likewise.
9880 * config/m68k/linux.mh: Likewise.
9881 * config/powerpc/linux.mh: Likewise.
9882 * config/mips/linux.mt: Likewise.
9883
9884 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9885
9886 * config/i386/i386lynx.mh: Mark gdbserver variables
9887 as (currently) obsolete for this target.
9888 * config/i386/nbsd.mt: Likewise.
9889 * config/i386/nbsdelf.mt: Likewise.
9890 * config/m32r/m32r.mt: Likewise.
9891 * config/m68k/m68klynx.mh: Likewise.
9892 * config/m68k/nbsd.mt: Likewise.
9893 * config/m68k/sun3os4.mh: Likewise.
9894 * config/mips/vr5000.mt: Likewise.
9895 * config/ns32k/nbsd.mt: Likewise.
9896 * config/pa/hppabsd.mh: Likewise.
9897 * config/pa/hppaosf.mh: Likewise.
9898 * config/powerpc/nbsd.mt: Likewise.
9899 * config/rs6000/rs6000lynx.mh: Likewise.
9900 * config/s390/s390.mt: Likewise.
9901 * config/s390/s390x.mt: Likewise.
9902 * config/sparc/sparclynx.mh: Likewise.
9903 * config/sparc/sun4os4.mh: Likewise.
9904 * config/i386/x86-64linux.mt: Likewise.
9905 * config/sparc/linux.mh: Likewise.
9906
a85f51e7
DJ
99072002-02-14 Daniel Jacobowitz <drow@mvista.com>
9908
9909 * configure.tgt: Configure gdbserver only for known working
9910 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9911 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9912 SUBDIRS if it is configured. Update comment for ${nativefile}.
9913 * configure: Regenerated.
9914
65554fef
MS
99152002-02-13 Michael Snyder <msnyder@redhat.com>
9916
670a52db
MS
9917 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9918
6dbdc4a3
MS
9919 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9920 (default_gcore_mach): Just return 0, work around a problem in bfd.
9921 (default_gcore_target): OK to return NULL if exec_bfd is null.
9922 (make_mem_sec): Use a cast, avoid a warning.
9923
9924 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 9925 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
9926 sizeof (host pointer) != sizeof (target pointer)).
9927 (procfs_make_note_section): Avoid overflow in psargs string.
9928
aaa38bb5 9929 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
9930 implementation return an error.
9931
99322002-02-13 Rodney Brown <rbrown64@csc.com.au>
9933
9934 * procfs.c (procfs_make_note_section): Provide a default definition
9935 (for alpha-dec-osf4.0f). Fix typos.
9936
1e4d76e7
EZ
99372002-02-13 Elena Zannoni <ezannoni@redhat.com>
9938
9939 * linux-proc.c: Add include of regcache.h.
9940 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9941
b6d1a1d5
AC
99422002-02-13 Andrew Cagney <ac131313@redhat.com>
9943
9944 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
9945 * memattr.c (create_mem_region): Disallow useless empty region.
9946 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 9947 non-overlapping.
b6d1a1d5 9948
6c6ea35e
MC
99492002-02-13 Michael Chastain <mec@shout.net>
9950
9951 * defs.h: Kill CONST_PTR.
9952 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9953 * c-lang.c (c_builtin_types): Likewise.
9954 * ch-lang.c (ch_builtin_types): Likewise.
9955 * f-lang.c (f_builtin_types): Likewise.
9956 * language.c (unknown_builtin_types): Likewise.
9957 * m2-lang.c (m2_builtin_types): Likewise.
9958 * p-lang.c (pascal_builtin_types): Likewise.
9959 * scm-lang.c (c_builtin_types): Likewise.
9960
3e0b0f48
KS
99612002-02-13 Keith Seitz <keiths@redhat.com>
9962
9963 * arm-tdep.h (arm_get_next_pc): Add declaration.
9964
67255d04
RE
99652002-02-13 Richard Earnshaw <rearnsha@arm.com>
9966
9967 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9968 with other related struct-returning functions.
9969 (arm_extract_struct_value_address): New function.
9970 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9971 initialize float_format, double_format and long_double_format as
9972 appropriate to the endianness of the target.
9973 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9974 (arm_use_struct_convention): Delete declaration.
9975 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9976
079777f6
KS
99772002-02-13 Keith Seitz <keiths@redhat.com>
9978
9979 * defs.h (core_addr_to_string_nz): New function.
9980
34588f23
MK
99812002-02-13 Mark Kettenis <kettenis@gnu.org>
9982
9983 Apply missing bits of 2002-01-15 patch.
9984 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9985 (fill_fpregset): Use i387_fill_fsave.
9986
49b563f9
KS
99872002-02-12 Keith Seitz <keiths@redhat.com>
9988
49b563f9
KS
9989 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9990 (core_addr_to_string_nz): New function.
9991
aeb98c60
RE
99922002-02-11 Richard Earnshaw <rearnsha@arm.com>
9993
9994 * arm-linux-nat.c: Really include arm-tdep.h.
9995 * config/arm/tm-linux.h (struct type, struct value): Declare.
9996
65554fef
MS
99972002-02-11 Michael Snyder <msnyder@redhat.com>
9998
9999 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10000 (gcore section): Ifdef for Solaris and Unixware only.
10001 (procfs_do_thread_registers): Unixware needs one lwpstatus
10002 per thread (not one prstatus or pstatus).
10003 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10004 not over all gdb threads. For unixware, call elfcore_write_pstatus
10005 once before iterating over threads.
10006
34e8f22d
RE
100072002-02-11 Richard Earnshaw <rearnsha@arm.com>
10008
10009 * arm-tdep.h: New file.
10010 * arm-tdep.c: Include arm-tdep.h.
10011 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10012 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10013 (arm_print_float_info, arm_register_type, convert_to_extended)
10014 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10015 (arm_extract_return_value, arm_register_name): Make static.
10016 (arm_software_single_step): Similarly. Fix types in declaration.
10017 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10018 (arm_store_return_value, arm_store_struct_return): New functions.
10019 (arm_gdbarch_init): Register the above functions. Also register
10020 call_dummy_start_offset, sizeof_call_dummy_words,
10021 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10022 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 10023 max_register_virtual_size, register_size. Set up
34e8f22d
RE
10024 prologue_cache.saved_regs here, rather than ...
10025 (_initialize_arm_tdep): ... here.
10026 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10027 declarations.
10028 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10029 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10030 (arm_print_float_info, arm_register_type, convert_to_extended)
10031 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10032 (arm_extract_return_value, arm_register_name): Delete declarations.
10033 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10034 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10035 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10036 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10037 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10038 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10039 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10040 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10041 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10042 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10043 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10044 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10045 interface.
10046 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10047 * remote-rdi.c remote-rdp.c: Likewise.
10048 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10049 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10050 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10051 definition.
10052
10053 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10054 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10055 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10056 from non-ARM_ prefixed definitions.
10057 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10058 all uses of above.
10059 * remote-rdi.c remote-rdp.c: Likewise.
10060 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10061
148754e5
RE
100622002-02-11 Richard Earnshaw <rearnsha@arm.com>
10063
10064 * arm-tdep.c (arm_frameless_function_invocation)
10065 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10066 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10067 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10068 (arm_pop_frame, arm_get_next_pc): Make static.
10069 (arm_gdbarch_init): Register above in gdbarch structure.
10070 (arm_read_fp): Renamed from arm_target_read_fp.
10071 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10072 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10073 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10074 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10075 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10076 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10077 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
10078 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10079 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10080 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10081 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 10082
434d2d4f
DJ
100832002-02-10 Daniel Jacobowitz <drow@mvista.com>
10084
10085 * symtab.c (compare_search_syms): New function.
10086 (sort_search_symbols): New function.
10087 (search_symbols): Sort symbols after searching rather than
10088 before.
10089
55241689
AC
100902002-02-10 Andrew Cagney <ac131313@redhat.com>
10091
10092 * NEWS: Linux -> GNU/Linux.
10093
028c194b
AC
100942002-02-10 Andrew Cagney <ac131313@redhat.com>
10095
10096 * gdbarch.sh: For for level one methods, disallow a definition
10097 when partially multi-arched. Add comments explaining rationale.
10098 * gdbarch.h: Re-generate.
10099
6acf50cd
AC
101002002-02-10 Andrew Cagney <ac131313@redhat.com>
10101
10102 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10103 multi-arch partial.
aaa38bb5 10104
50248794
AC
101052002-02-10 Andrew Cagney <ac131313@redhat.com>
10106
10107 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10108 field. Use diff -u.
10109 * gdbarch.c: Re-generate.
10110
c30e0066
AC
101112002-02-10 Andrew Cagney <ac131313@redhat.com>
10112
9b56c5f3 10113 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
10114 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10115 partial.
10116
6e6d6484
AC
101172002-02-10 Andrew Cagney <ac131313@redhat.com>
10118
10119 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10120 multi-arch partial.
10121 (PUSH_ARGUMENTS): Switch to using predefault.
10122 * gdbarch.c: Regenerate.
10123
c203844d
AC
101242002-02-10 Andrew Cagney <ac131313@redhat.com>
10125
10126 * valops.c (PUSH_ARGUMENTS): Delete definition.
10127 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10128 partial. Default to default_push_arguments.
10129 * gdbarch.h, gdbarch.c: Regenerate.
10130
b5a2688f
AC
101312002-02-09 Andrew Cagney <ac131313@redhat.com>
10132
10133 * defs.h (throw_exception): Rename return_to_top_level. Update
10134 comments.
10135 * utils.c (error_stream, internal_verror, quit): Ditto.
10136 * top.c (throw_exception, catcher): Ditto.
10137 * sparclet-rom.c (sparclet_load): Ditto.
10138 * remote.c (interrupt_query, minitelnet): Ditto.
10139 * remote-sds.c (interrupt_query): Ditto.
10140 * remote-mips.c (mips_error, mips_kill): Ditto.
10141 * ocd.c (interrupt_query): Ditto.
10142 * monitor.c (monitor_interrupt_query): Ditto.
10143 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10144 * target.h: Update comment.
aaa38bb5 10145
b5a2688f 10146 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 10147
2fa5c1e0
AC
101482002-02-09 Andrew Cagney <ac131313@redhat.com>
10149
10150 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10151 default_double_format.
10152 * gdbarch.h, gdbarch.c: Re-generate.
10153 * findvar.c (floatformat_unknown): Delete variable definition.
10154 * doublest.h (floatformat_unknown): Delete variable declaration.
10155
da966255
JB
101562002-02-09 Jim Blandy <jimb@redhat.com>
10157
10158 * stabsread.c (read_type): Add code to parse Sun's syntax for
10159 prototyped function types.
10160
123a4891
AC
101612002-02-09 Andrew Cagney <ac131313@redhat.com>
10162
10163 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10164 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10165
fb39c8f3
PS
101662002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10167
10168 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10169 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10170 now _initialize_xcoffsolib gets called again and overrides the
10171 commands from solib.c in a native configuration.
10172
0b87a11d
MK
101732002-02-09 Mark Kettenis <kettenis@gnu.org>
10174
10175 * doublest.c (store_typed_floating): Don't try to return a value.
10176 Fixes PR gdb/290.
10177
bdc2fc72
JB
101782002-02-08 Jim Blandy <jimb@redhat.com>
10179
10180 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10181 is prototyped and has no arguments, print its argument list as
10182 `(void)'.
10183
da69bbcf
CD
101842002-02-08 Chris Demetriou <cgd@broadcom.com>
10185
10186 * MAINTAINERS (write-after-approval): Add myself.
10187 (paper-trail): I've escaped!
aaa38bb5 10188
b69571f5
CF
101892002-02-08 Christopher Faylor <cgf@redhat.com>
10190
10191 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10192 changes.
10193 (_initialize_check_for_gdb_ini): Ditto.
10194
f6871398
MH
101952002-02-08 Martin M. Hunt <hunt@redhat.com>
10196
10197 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10198 xaprintf -> xasprintf.
10199
4e52d31c
PM
102002002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10201
10202 * win32-nat.c: Remove use of printf and sprintf functions.
10203
39bbf761
RE
102042002-02-08 Richard Earnshaw <rearnsha@arm.com>
10205
10206 * arm-tdep.c (arm_frame_chain_valid): Make static.
10207 (arm_push_arguments): Likewise.
10208 (arm_gdbarch_init): New function.
10209 (_initialize_arm_tdep): Call it.
10210 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10211 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10212 (FRAME_CHAIN_VALID): Delete.
10213 (arm_frame_chain_valid): Delete declaration.
10214 (PUSH_ARGUMENTS): Delete.
10215 (arm_push_arguments): Delete declaration.
10216 (CALL_DUMMY_P): Delete.
10217
9c9532c9
CV
102182002-02-08 Andrew Cagney <ac131313@redhat.com>
10219 Corinna Vinschen <vinschen@redhat.com>
10220
10221 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10222 on builtin float types.
10223
4e8f7a8b
DJ
102242002-02-08 Daniel Jacobowitz <drow@mvista.com>
10225
10226 * utils.c: Include <curses.h> before "bfd.h".
10227 * tui/tui-hooks.c: Likewise.
10228 * tui/tui.c: Likewise.
10229 * tui/tuiCommand.c: Likewise.
10230 * tui/tuiData.c: Likewise.
10231 * tui/tuiDataWin.c: Likewise.
10232 * tui/tuiDisassem.c: Likewise.
10233 * tui/tuiGeneralWin.c: Likewise.
10234 * tui/tuiIO.c: Likewise.
10235 * tui/tuiLayout.c: Likewise.
10236 * tui/tuiRegs.c: Likewise.
10237 * tui/tuiSource.c: Likewise.
10238 * tui/tuiSourceWin.c: Likewise.
10239 * tui/tuiStack.c: Likewise.
10240 * tui/tuiWin.c: Likewise.
10241
cd4bffcf
EZ
102422002-02-07 Elena Zannoni <ezannoni@redhat.com>
10243
10244 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10245 to include space for pseudoregs as well. Update loops accordingly.
10246 (sh_fp_frame_init_saved_regs): Ditto.
10247 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10248
26806ce2
AC
102492002-02-07 Andrew Cagney <ac131313@redhat.com>
10250
10251 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10252 Add Richard Earnshaw to Arm maintainers.
10253
97fdab62
AC
102542002-02-07 Andrew Cagney <ac131313@redhat.com>
10255
a6b98203
AC
10256 * defs.h (warning_begin): Delete declaration.
10257
97fdab62
AC
10258 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10259 Delete macro.
10260
78b29b40
MS
102612002-02-07 Michael Snyder <msnyder@redhat.com>
10262
aaa38bb5 10263 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
10264 Logic bug, remove misplaced else.
10265
d8849953
KD
102662002-02-07 Klee Dienes <klee@apple.com>
10267
10268 * fork-inferior.c (fork_inferior): Add '!' to the list of
10269 characters that need to be quoted when building a string for the
10270 shell. Quote '!' specifically with a backslash, since CSH chokes
10271 when trying to evaluate "str!str".
aaa38bb5 10272
095778a0
NC
102732002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10274
10275 * rdi-share/host.h: Only provide a typedef for bool if it is not
10276 defined.
10277
1900040c
MS
102782002-02-04 Michael Snyder <msnyder@redhat.com>
10279
10280 * breakpoint.h (enum bptype): Add new overlay event bp type.
10281 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 10282
1900040c
MS
10283 * breakpoint.c (create_internal_breakpoint): New function.
10284 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10285 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10286 (create_thread_event_breakpoint): Ditto.
10287 (create_solib_event_breakpoint): Ditto.
10288 (create_overlay_event_breakpoint): New function.
10289 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10290 (update_breakpoints_after_exec): Delete and re-initialize
10291 overlay event breakpoints after an exec. Add FIXME comment
10292 about longjmp breakpoint.
10293 (print_it_typical): Ignore overlay event breakpoints.
10294 (print_one_breakpoint): Ditto.
10295 (mention): Ditto.
10296 (bpstat_what): Do not stop for overlay event breakpoints.
10297 (delete_breakpoint): Don't delete overlay event breakpoints.
10298 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10299 (breakpoint_re_set): Re-create overlay event breakpoint.
10300
10301 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10302 (overlay_manual_command): Disable overlay breakpoints.
10303 (overlay_off_command): Disable overlay breakpoints.
10304
082fc60d
RE
103052002-02-06 Richard Earnshaw <rearnsha@arm.com>
10306
10307 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10308 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10309 to here from config/tm-arm.h.
10310 (coff_sym_is_thumb): Make static.
10311 (arm_elf_make_msymbol_special): New function.
10312 (arm_coff_make_msymbol_special): New function.
10313 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10314 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10315 (coff_sym_is_thumb): Delete declaration.
10316 (arm_elf_make_msymbol_special): Declare.
10317 (arm_coff_make_msymbol_special): Declare.
10318 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10319 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10320
039c5766
RE
103212002-02-06 Richard Earnshaw <rearnsha@arm.com>
10322
10323 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10324
103252002-02-06 Richard Earnshaw <rearnsha@arm.com>
10326
10327 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10328 * gdbarch.c gdbarch.h: Regenerate.
10329 * arch-utils.c (default_print_float_info): New function.
10330 * arch-utils.h (default_print_float_info): Prototype it.
10331 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10332 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10333 (PRINT_FLOAT_INFO): Document it.
10334
10335 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10336 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10337 (PRINT_FLOAT_INFO): Define.
10338
58fa08f0
PM
103392002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10340
aaa38bb5 10341 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10342 Add typecast to sprintf argument to suppress a warning.
10343
7393af7c
PM
103442002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10345
58fa08f0 10346 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10347 to allow easier handling of pass state.
10348 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10349 that gives exception name and address.
10350 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10351 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10352 exceptions added.
aaa38bb5
AJ
10353 (child_continue): Correctly report continue_status.
10354 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10355 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10356 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10357 the exception should be passed to debuggee or not.
10358
6af4589c
MS
103592002-02-05 Michael Snyder <msnyder@redhat.com>
10360
10361 * regcache.c (fetch_register): Call target_fetch_register
10362 only if we don't call FETCH_PSEUDO_REGISTER.
10363 (store_register): Call target_store_register only if we
10364 don't call STORE_PSEUDO_REGISTER.
10365
a2cf933a
EZ
103662002-02-05 Elena Zannoni <ezannoni@redhat.com>
10367
10368 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10369 ELF_MAKE_MSYMBOL_SPECIAL.
10370 * gdbarch.c, gdbarch.h: Regenerate.
10371 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10372 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10373 * elfread.c (elf_symtab_read): Compile use of
10374 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10375 multiarched.
10376 * coffread.c (coff_symtab_read): Ditto, for
10377 COFF_MAKE_MSYMBOL_SPECIAL.
10378
6bb7be43
JB
103792002-02-05 Jim Blandy <jimb@redhat.com>
10380
10381 * solib-svr4.c (svr4_truncate_ptr): New function.
10382 (svr4_relocate_section_addresses): Do the address arithmetic with
10383 the appropriate truncation for target addresses, even when
10384 CORE_ADDR is larger than a target address.
10385
e18651ec
DJ
103862002-02-05 Daniel Jacobowitz <drow@mvista.com>
10387
10388 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10389 to (int *).
10390
6b2725be
DJ
103912002-02-05 Daniel Jacobowitz <drow@mvista.com>
10392
10393 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10394 code.
10395
fca9e603
DJ
103962002-02-05 Daniel Jacobowitz <drow@mvista.com>
10397
10398 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10399
6c537a52
DJ
104002002-02-05 Daniel Jacobowitz <drow@mvista.com>
10401
10402 * gdbserver/linux-low.c: Remove unused include files.
10403
d844cde6
DJ
104042002-02-05 Daniel Jacobowitz <drow@mvista.com>
10405
10406 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10407 (read_inferior_memory): Use it.
10408 (write_inferior_memory): Likewise.
10409
d07c63e7
DJ
104102002-02-05 Daniel Jacobowitz <drow@mvista.com>
10411
10412 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10413 grubbing through sys_errlist.
10414
da6d8c04
DJ
104152002-02-05 Daniel Jacobowitz <drow@mvista.com>
10416
10417 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10418
5b421780
PM
104192002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10420 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10421
9f60d481
AC
104222002-02-04 Andrew Cagney <ac131313@redhat.com>
10423
10424 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10425 (do_sfunc, set_cmd_sfunc): New functions.
10426
10427 * command.h (struct cmd_list_element): Add field func.
10428 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10429 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10430 * cli/cli-decode.h: Ditto.
10431
10432 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10433 (help_all, help_cmd_list): Ditto.
10434 (find_cmd, complete_on_cmdlist): Ditto.
10435 * top.c (execute_command): Ditto.
10436
10437 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10438 function.sfunc.
10439
10440 * infcmd.c (notice_args_read): Fix function signature.
10441
10442 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10443 * cli/cli-decode.c (add_set_cmd): Ditto.
10444 * utils.c (initialize_utils): Ditto.
10445 * maint.c (_initialize_maint_cmds): Ditto.
10446 * infrun.c (_initialize_infrun): Ditto.
10447 * demangle.c (_initialize_demangler): Ditto.
10448 * remote.c (add_packet_config_cmd): Ditto.
10449 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10450 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10451 * proc-api.c (_initialize_proc_api): Ditto.
10452 * kod.c (_initialize_kod): Ditto.
10453 * valprint.c (_initialize_valprint): Ditto.
10454 * top.c (init_main): Ditto.
10455 * infcmd.c (_initialize_infcmd): Ditto.
10456 * corefile.c (_initialize_core): Ditto.
10457 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10458 * arch-utils.c (initialize_current_architecture): Ditto.
10459 (_initialize_gdbarch_utils): Ditto.
10460 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10461
10462 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10463 * wince.c (_initialize_inftarg): Ditto.
10464 * symfile.c (_initialize_symfile): Ditto.
10465 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10466 * language.c (_initialize_language): Ditto.
10467 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10468
f9ba0717
MS
104692002-02-04 Michael Snyder <msnyder@redhat.com>
10470
10471 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10472
0c74b2a7
DJ
104732002-02-04 Daniel Jacobowitz <drow@mvista.com>
10474
10475 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10476 Add rules for building the register data files.
10477
c638789f
DJ
104782002-02-04 Daniel Jacobowitz <drow@mvista.com>
10479
10480 * regformats/regdat.sh: Add braces to the definition of
10481 expedite_regs_${arch}.
10482
db253027
DJ
104832002-02-04 Daniel Jacobowitz <drow@mvista.com>
10484
10485 * regformats/regdef.h (struct reg): Add comment describing the
10486 requirements for offset and size fields.
10487
206be19c
AS
104882002-02-04 Andreas Schwab <schwab@suse.de>
10489
10490 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10491 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10492
181c1381
RE
104932002-02-04 Richard Earnshaw <rearnsha@arm.com>
10494
10495 * gdbarch.sh (copyright): Update years in generated header.
10496 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10497 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10498 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10499 * dbxread.c: Likewise.
10500 * dwarfread.c: Likewise.
10501 * elfread.c: Likewise.
10502 * somread.c: Likewise.
10503
10504 * arm-tdep.c (arm_smash_text_address): New function.
10505 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10506
fa4ba8da
PM
105072002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10508
10509 Add support for hardware watchpoints on win32 native.
aaa38bb5 10510 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10511 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10512 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10513 of debug registers.
10514 (debug_registers_changed): New variable. Reflects when debug registers
10515 are changed and need to be written to inferior.
aaa38bb5 10516 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10517 was set, used when new threads are created.
10518 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10519 i386-nat code.
10520 (thread_rec): Set dr array if id is the thread of current_event .
10521 (child_continue, child_resume): Change the debug registers for all
10522 threads if debug_registers_changed.
10523 (child_add_thread): Change the debug registers if debug_registers_used.
10524 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10525 Link nm.h to new nm-cygwin.h file.
10526 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10527 of hardware registers.
10528
a73c86fb
AC
105292002-02-03 Andrew Cagney <ac131313@redhat.com>
10530
10531 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10532 Restore behavour broken by 2002-01-20 Andrew Cagney
10533 <ac131313@redhat.com> IEEE_FLOAT removal.
10534
acf5ed49
DJ
105352002-02-03 Daniel Jacobowitz <drow@mvista.com>
10536
10537 * c-valprint.c (c_val_print): Pass a proper valaddr to
10538 cp_print_class_method.
10539 * valops.c (search_struct_method): If there is only one method
10540 and args is NULL, return that method.
10541
493d28d5
DJ
105422002-02-03 Daniel Jacobowitz <drow@mvista.com>
10543
10544 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10545 accessing tag_name directly.
10546
7495dfdb
DJ
105472002-02-03 Daniel Jacobowitz <drow@mvista.com>
10548
10549 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10550 of accessing tag_name directly.
10551
dd6bda65
DJ
105522002-02-03 Daniel Jacobowitz <drow@mvista.com>
10553
10554 PR gdb/280
10555 * gdbtypes.c (replace_type): New function.
10556 * gdbtypes.h (replace_type): Add prototype.
10557 * stabsread.c (read_type): Use replace_type.
10558
88fe217c
RE
105592002-02-03 Richard Earnshaw <rearnsha@arm.com>
10560
10561 * Makefile.in (memattr.o): Add missing dependencies rule.
10562
e5d66720
PS
105632002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10564
10565 * breakpoint.c (break_at_finish_command): Really export.
10566 (break_at_finish_at_depth_command): Ditto.
10567 (tbreak_at_finish_command): Ditto.
10568 * hppa-tdep.c: Include completer.h.
10569 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10570 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10571
fffee0be
AC
105722002-02-01 Andrew Cagney <ac131313@redhat.com>
10573
10574 * utils.c (do_write): New function.
10575 (error_stream): Rewrite combining the code from error_begin and
10576 verror.
10577 (verror): Rewrite using error_stream.
10578 (error_begin): Delete function.
10579
255e7dbf
AC
105802002-02-01 Andrew Cagney <ac131313@redhat.com>
10581
10582 * utils.c (error_begin): Make static.
10583 * defs.h (error_begin): Delete declaration.
10584
10585 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10586 (decode_line_1): Use cplusplus_error instead of error_begin,
10587 cplusplus_hint and return_to_top_level.
10588 * coffread.c (coff_symfile_read): Use error instead of error_begin
10589 and return_to_top_level.
10590 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10591
ddfe3c15
AC
105922002-02-01 Andrew Cagney <ac131313@redhat.com>
10593
10594 * language.h (type_error, range_error): Make string parameter
10595 constant.
10596 * language.c (warning_pre_print): Delete extern declaration.
10597 * dwarfread.c (warning_pre_print): Ditto.
10598 * language.c (type_error, range_error): Rewrite to use verror and
10599 vwarning instead of warning_begin.
10600
03ac34d5
MS
106012002-02-01 Michael Snyder <msnyder@redhat.com>
10602
261c4ca2
MS
10603 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10604 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10605
e00d1dc8
AC
106062002-02-01 Andrew Cagney <ac131313@redhat.com>
10607
10608 * command.h (NO_FUNCTION): Delete macro.
10609 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10610 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10611 * tracepoint.c (_initialize_tracepoint): Ditto.
10612 * cli/cli-decode.c (add_set_cmd): Ditto.
10613 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10614
76b79d6e
DJ
106152002-02-01 Daniel Jacobowitz <drow@mvista.com>
10616
10617 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10618 Update ``this'' pointer when calling virtual functions.
10619
799f9e91
MS
106202002-02-01 Michael Snyder <msnyder@redhat.com>
10621
c7bd442c 10622 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10623 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10624
3cf384d4
DJ
106252002-02-01 Daniel Jacobowitz <drow@mvista.com>
10626
10627 * regformats/reg-arm.dat: New file.
10628 * regformats/reg-i386.dat: New file.
10629 * regformats/reg-ia64.dat: New file.
10630 * regformats/reg-m68k.dat: New file.
10631 * regformats/reg-mips.dat: New file.
10632 * regformats/reg-ppc.dat: New file.
10633 * regformats/reg-sh.dat: New file.
10634 * regformats/regdef.h: New file.
10635 * regformats/regdat.sh: New file.
10636
0defa245
RE
106372002-02-01 Richard Earnshaw <reanrsha@arm.com>
10638
10639 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10640 (arm_frame_args_address, arm_frame_locals_address): New functions.
10641 (arm_frame_num_args): New function.
10642 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10643 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10644 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10645
405f26e6
MS
106462002-01-31 Michael Snyder <msnyder@redhat.com>
10647
502fd408
MS
10648 * breakpoint.c (break_at_finish_command): Export.
10649 (break_at_finish_at_depth_command): Export.
10650 (tbreak_at_finish_command): Export.
d6020d45 10651 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 10652 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 10653 "txbreak" commands, which are HPPA specific.
502fd408 10654
7d35e135
MS
10655 * printcmd.c (disassemble_command): Remove an ancient
10656 artifact of an old merge.
10657
aaa38bb5 10658 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10659 Define enum constant values for overlay mode.
10660 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10661 (overlay_is_mapped, overlay_auto_command,
10662 overlay_manual_command): Ditto.
d874f1e2 10663
aaa38bb5
AJ
10664 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10665 breakpoint_here_p, breakpoint_inserted_here_p,
10666 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10667 describe_other_breakpoints, check_duplicates, clear_command):
10668 Coding standard fixes.
10669
8add0441 10670 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10671 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10672 code: check bfd SEC_READONLY flag for section.
10673
e351066e
AC
106742002-01-31 Andrew Cagney <ac131313@redhat.com>
10675
7d35e135 10676 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10677
8a48e967
DJ
106782002-01-30 Daniel Jacobowitz <drow@mvista.com>
10679
10680 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10681 data symbols, since we search based on textlow and texthigh.
10682 (find_pc_sect_symtab): Likewise.
10683
f5a96129
AC
106842002-01-30 Andrew Cagney <ac131313@redhat.com>
10685
10686 * defs.h (vwarning): Declare.
f5a96129
AC
10687 * utils.c (vwarning): New function.
10688 (warning): Call vwarning.
10689 (warning_begin): Delete function.
10690
10691 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10692 the warning message.
10693 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10694 warning_begin.
10695
cefd4ef5
MS
106962002-01-30 Michael Snyder <msnyder@redhat.com>
10697
1a703748
MS
10698 * NEWS: Mention "set trust-readonly-sections" command.
10699 Mention generate-core-file command.
cefd4ef5 10700
3a11626d
MS
107012002-01-15 Michael Snyder <msnyder@redhat.com>
10702
10703 * target.c: New command, "set trust-readonly-sections on".
10704 (do_xfer_memory): Honor the suggestion to trust readonly sections
10705 by reading them from the object file instead of from the target.
10706 (initialize_targets): Register command "set trust-readonly-sections".
10707
d1c7e53b
AC
107082002-01-29 Andrew Cagney <ac131313@redhat.com>
10709
10710 * parse.c (target_map_name_to_register): Simplify, search regs and
10711 pseudo-regs using a single loop.
10712
e2c9a72c
AC
107132002-01-30 Andrew Cagney <ac131313@redhat.com>
10714
10715 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10716
69824b4e
MK
107172002-01-15 Rodney Brown <rbrown64@csc.com.au>
10718
10719 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10720 * config/i386/i386v42mp.mh: Add i387-nat.o .
10721 * i386v4-nat.c: Include i387-nat.h.
10722 (supply_fpregset): Use i387_supply_fsave.
10723 (fill_fpregset): Use i387_fill_fsave.
10724
6eb69eab
RE
107252002-01-30 Richard Earnshaw <rearnsha@arm.com>
10726
10727 * arm-tdep.c (arm_call_dummy_words): Define.
10728 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10729 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10730 (CALL_DUMMY_WORDS): Define.
10731 (arm_call_dummy_words): Declare.
10732 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10733 (arm_linux_call_dummy_words): Declare.
10734
9852326a
AS
107352002-01-30 Andreas Schwab <schwab@suse.de>
10736
10737 * m68klinux-nat.c: Fix last change to use regcache_collect
10738 instead of referencing registers[] directly.
10739
977a3030
AC
107402002-01-29 Andrew Cagney <ac131313@redhat.com>
10741
10742 * parse.c (target_map_name_to_register): Delete code wrapped in
10743 #ifdef REGISTER_NAME_ALIAS_HOOK.
10744
2076c72b
MS
107452002-01-28 Michael Snyder <msnyder@redhat.com>
10746
10747 * regcache.c (legacy_read_register_gen): Need to be able to
10748 read pseudo-register as well as real register.
10749 (legacy_write_register_gen): Ditto.
10750
8fcc723b
AC
107512002-01-28 Andrew Cagney <ac131313@redhat.com>
10752
10753 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10754 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10755 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10756 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10757 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10758 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10759 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10760 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10761 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10762 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10763 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10764 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10765 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10766 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10767 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10768 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10769 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10770 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10771 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10772 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10773
afe64c1a
AC
107742002-01-28 Andrew Cagney <ac131313@redhat.com>
10775
10776 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10777 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10778 (initialize_current_architecture): Update target_byte_order using
10779 information from BFD.
aaa38bb5 10780 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10781 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10782
75bc7ddf
AC
107832002-01-28 Andrew Cagney <ac131313@redhat.com>
10784
10785 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10786 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10787
10788 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10789 #ifdef INVALID_FLOAT.
10790 * infcmd.c (do_registers_info): Ditto.
10791 * values.c (unpack_double): Ditto. Add comment.
10792
10793 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10794 already commented out.
10795
0280a90a
AS
107962002-01-26 Andreas Schwab <schwab@suse.de>
10797
10798 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10799 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10800 registers and add support for PTRACE_GETREGS.
10801
7072a954
AC
108022002-01-24 Andrew Cagney <ac131313@redhat.com>
10803
10804 GDB 5.1.1 released from 5.1 branch.
10805 * NEWS: Add 5.1.1 news.
10806 * README: Sync with 5.1 branch.
10807
86f902e0
FF
108082002-01-23 Fred Fish <fnf@redhat.com>
10809
10810 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10811 stabstring on initial malloc. Reallocing will copy it for us,
10812 if necessary.
10813
8af51c36
EZ
108142002-01-23 Elena Zannoni <ezannoni@redhat.com>
10815
aaa38bb5 10816 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
10817 (HFILES_NO_SRCDIR): Remove hpread.h.
10818 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10819 (hpread.o): Update dependencies.
10820 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10821
10822 * hp-psymtab-read.c: Remove file.
10823 * hp-symtab-read.c: Remove file.
10824 * hpread.h: Remove file.
10825
10826 * hpread.c: Merge all contents of hp-psymtab-read.c,
10827 hp-symtab-read.c and hpread.h into this file, as it was prior to
10828 January 1999.
10829
10830 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10831 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10832 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10833 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10834
dc5cfeb6
EZ
108352002-01-23 Elena Zannoni <ezannoni@redhat.com>
10836
10837 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10838 fill_gregset): Call gdbarch_tdep() just once, assign result to
10839 variable and use that, instead of calling the function several
10840 times.
10841
ea87b71b
AO
108422002-01-24 Alexandre Oliva <aoliva@redhat.com>
10843
10844 * configure.host: Accept sparcv9 as alias for sparc64.
10845 * configure.tgt: Likewise.
10846
13fc0c2f
KB
108472002-01-22 Kevin Buettner <kevinb@redhat.com>
10848
10849 * solib-aix5.c (build_so_list_from_mapfile)
10850 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10851 arguments is not reversed.
10852 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10853 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10854
7bd872fe
EZ
108552002-01-22 Elena Zannoni <ezannoni@redhat.com>
10856
10857 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10858 modified version of obsolete sh_fetch_pseudo_register.
10859 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10860 (sh4_register_read): New function.
10861 (sh_pseudo_register_write): New function. Renamed and modified
10862 version of obsolete sh_store_pseudo_register.
10863 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10864 (sh4_register_write): New function.
10865 (sh_gdbarch_init): Remove setting of gdbarch function
10866 fetch_pseudo_register and store_pseudo_register. Remove setting of
10867 register_convert_to_raw, register_convert_to_virtual,
10868 register_convertible.
10869 (sh_sh4_register_convertible): Delete. No longer needed. All is
10870 taken care by architecture specific functions
10871 register_read/register_write.
10872 (sh_sh4_register_convert_to_virtual): Make static.
10873 (sh_sh4_register_convert_to_raw): Ditto.
10874
069e84fd
AC
108752002-01-22 Andrew Cagney <ac131313@redhat.com>
10876
10877 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10878 (floatformat_is_nan, floatformat_mantissa): Ditto.
10879
10880 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10881 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10882 builtin_type_ieee_double_little,
10883 builtin_type_ieee_double_littlebyte_bigword,
10884 builtin_type_m68881_ext, builtin_type_i960_ext,
10885 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10886 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10887 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10888 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10889
211a4f69
CV
108902002-01-22 Corinna Vinschen <vinschen@redhat.com>
10891
10892 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10893 parameter. Set frameless flag if it exists and depended of
10894 whether the scanned function is frameless or not.
10895 (xstormy16_skip_prologue): If function is frameless, return
10896 result of xstormy16_scan_prologue().
10897 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10898 call.
10899
f81353e4
EZ
109002002-01-21 Elena Zannoni <ezannoni@redhat.com>
10901
10902 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10903 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10904 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10905 sh_sh4_register_byte, sh_sh4_register_raw_size,
10906 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10907 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10908 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10909 sh_store_pseudo_register, sh_do_pseudo_register): Call
10910 gdbarch_tdep() just once, assign result to variable and use that,
10911 instead of calling the function several times.
10912
63c73a17
MK
109132002-01-20 Mark Kettenis <kettenis@gnu.org>
10914
10915 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10916 macros instead of LAST_FPU_CTRL_REGNUM.
10917 (store_register): Likewise.
10918
39ad761d
JB
109192002-01-21 Jim Blandy <jimb@redhat.com>
10920
10921 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10922 is up-to-date before running the program, not just when a program
10923 exits.
10924
3d74b771
FF
109252002-01-21 Fred Fish <fnf@redhat.com>
10926
10927 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10928 when we have found all instructions we are looking for.
10929
966fbf70
RE
109302002-01-21 Richard Earnshaw <rearnsha@arm.com>
10931
10932 * arm-tdep.c (arm_register_name): New function.
10933 (arm_registers_names): Make static.
10934 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10935 (arm_register_name): Declare.
10936 (REGISTER_NAME): Use it.
10937
c3b4394c
RE
109382002-01-21 Richard Earnshaw <rearnsha@arm.com>
10939 Kevin Buettner <kevinb@redhat.com>
10940
10941 Convert arm targets to new FRAME interface.
10942 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10943 (arm_frame_find_save_regs): Delete.
10944 (arm_frame_init_saved_regs): New.
10945 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10946 Allocate extra_info as required. Convert all uses of fsr.regs
10947 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10948 to use extra_info.
10949 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10950 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10951 (check_prologue_cache, save_prologue_cache): Likewise.
10952 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10953 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10954 (FRAME_FIND_SAVED_REGS): Delete.
10955 (arm_frame_find_saved_regs): Delete prototype.
10956 (arm_frame_init_saved_regs): New prototype.
10957 (FRAME_INIT_SAVED_REGS): Define.
10958
61d99182
AC
109592002-01-20 Andrew Cagney <ac131313@redhat.com>
10960
10961 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10962
6aaea291
AC
109632002-01-20 Andrew Cagney <ac131313@redhat.com>
10964
10965 From Jeff Law <law@redhat.com>:
10966 * infttrace.c: Include <sys/pstat.h>.
10967 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10968 exec file if the ttrace equivalent fails.
10969
15f698d2
AC
109702002-01-20 Andrew Cagney <ac131313@redhat.com>
10971
10972 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10973 (closeLogFile): Ditto.
10974
f86ddd7c
MC
109752002-01-20 Michael Chastain <mec@shout.net>
10976
10977 * top.c (print_gdb_version): Bump copyright year to 2002.
10978
904507ce
AC
109792002-01-20 Andrew Cagney <ac131313@redhat.com>
10980
10981 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10982 Zannoni and Eli Zaretskii.
10983
d7f0b9ce
DJ
109842002-01-20 Daniel Jacobowitz <drow@mvista.com>
10985
10986 * buildsym.c: Update copyright years.
10987 * c-typeprint.c: Likewise.
10988 * dwarf2read.c: Likewise.
10989 * f-typeprint.c: Likewise.
10990 * gdbtypes.c: Likewise.
10991 * gdbtypes.h: Likewise.
10992 * hp-symtab-read.c: Likewise.
10993 * hpread.c: Likewise.
10994 * mdebugread.c: Likewise.
10995 * p-typeprint.c: Likewise.
10996
3fd3d7d2
AC
109972002-01-20 Andrew Cagney <ac131313@redhat.com>
10998
10999 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11000 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11001 byte-order selectable.
11002 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11003 * arch-utils.c: Ditto.
11004 (set_endian): Ditto.
11005 (set_endian_from_file): Ditto.
11006 * gdbserver/low-sim.c (create_inferior): Ditto.
11007 * gdbarch.sh: Ditto.
11008 * gdbarch.h: Re-generate.
aaa38bb5
AJ
11009 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11010 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11011 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11012 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11013 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11014 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11015 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
11016 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11017 macro definition.
11018 * config/mips/tm-wince.h: Remove #undef of macro
11019 TARGET_BYTE_ORDER_SELECTABLE.
11020 * config/sh/tm-wince.h: Ditto.
11021
b02dede2
DJ
110222002-01-20 Daniel Jacobowitz <drow@mvista.com>
11023
11024 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11025 member function fields. Add accessor macro
11026 TYPE_FN_FIELD_ARTIFICIAL.
11027 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11028 * c-typeprint.c (c_type_print_base): Skip artificial member
11029 functions.
11030
c3643761
DJ
110312002-01-20 Daniel Jacobowitz <drow@mvista.com>
11032
11033 * f-typeprint.c: Delete unused function f_type_print_args.
11034 * p-typeprint.c: Delete unused function pascal_type_print_args.
11035
8176bb6d
DJ
110362002-01-20 Daniel Jacobowitz <drow@mvista.com>
11037
11038 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11039 comment. Add ``artificial'' to ``union field_location''.
11040
11041 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11042
11043 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11044 * mdebugread.c (parse_symbol): Likewise.
11045 * stabsread.c (define_symbol): Likewise.
11046 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11047 initializing TYPE_FIELD_BITPOS to n (obsolete).
11048 (hpread_doc_function_type): Likewise.
11049 * hpread.c (hpread_function_type): Likewise.
11050
7fd60527
AC
110512002-01-20 Andrew Cagney <ac131313@redhat.com>
11052
11053 * configure.in (host_makefile_frag): Only require a host makefile
11054 fragment when a native build.
11055 * configure: Re-generate.
11056
c2f05ac9
AC
110572002-01-20 Andrew Cagney <ac131313@redhat.com>
11058
11059 * doublest.h (floatformat_from_type): Declare.
11060 * doublest.c (floatformat_from_type): New function.
11061 (convert_typed_floating): Use.
11062
11063 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11064 call to function floatformat_from_type.
11065
11066 * gdbarch.sh (IEEE_FLOAT): Delete.
11067 * gdbarch.h, gdbarch.c: Re-generate.
11068 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11069 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11070 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11071 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11072 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11073 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11074 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11075 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11076 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11077 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11078 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
11079 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11080
11081 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11082 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11083 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11084 * sh-tdep.c (sh_gdbarch_init): Ditto.
11085 * mips-tdep.c (mips_gdbarch_init): Ditto.
11086 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11087 * cris-tdep.c (cris_gdbarch_init): Ditto.
11088
abf22e64
AJ
110892002-01-20 Jiri Smid <smid@suse.cz>
11090
11091 * configure.host, configure.tgt: Support x86-64.
11092 * NEWS: Note new target x86-64.
11093
b7c4cbf8
AJ
11094 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11095 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11096 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11097 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11098 x86-64-linux-nat.o): Fix dependencies.
11099
82600034
AC
111002002-01-19 Andrew Cagney <ac131313@redhat.com>
11101
11102 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11103 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11104 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11105 * config/sparc/xm-sun4os4.h: Delete file.
11106 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 11107
bbe5c628
AC
111082002-01-19 Andrew Cagney <ac131313@redhat.com>
11109
11110 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11111 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11112 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11113 * config/i386/i386lynx.mh (XM_FILE): Delete.
11114 * config/rs6000/xm-rs6000ly.h: Delete file.
11115 * config/sparc/xm-sparclynx.h: Delete file.
11116 * config/m68k/xm-m68klynx.h: Delete file.
11117 * config/i386/xm-i386lynx.h: Delete file.
11118 * config/xm-lynx.h: Delete file.
11119 * config/djgpp/fnchange.lst: Update.
11120
f8453e34
JT
111212002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11122
11123 * alpha-tdep.c (alpha_register_byte): New function.
11124 (alpha_register_raw_size): Ditto.
11125 (alpha_register_virtual_size): Ditto.
11126 (alpha_skip_prologue_internal): Renamed from
11127 alpha_skip_prologue.
11128 (alpha_skip_prologue): New version that calls
11129 alpha_skip_prologue_internal.
11130 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11131 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11132 second argument from alpha_skip_prologue.
11133 (REGISTER_BYTE): Use alpha_register_byte.
11134 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11135 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11136 (FRAMELESS_FUNCTION_INVOCATION): Use
11137 generic_frameless_function_invocation_not.
11138 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11139 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11140
52d9e613
AC
111412002-01-19 Andrew Cagney <ac131313@redhat.com>
11142
11143 * config/mips/xm-news-mips.h: Delete file.
11144 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11145
11146 * config/m88k/xm-m88k.h: Delete file.
11147 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11148 * config/m88k/xm-delta88v4.h: Ditto.
11149 * config/m88k/xm-delta88.h: Ditto.
11150
11151 * config/alpha/xm-fbsd.h: Delete file.
11152 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11153
11154 * config/sparc/xm-sparc.h: Delete file.
11155 * Makefile.in (xm-sun4os4.h): Delete dependency.
11156 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11157 * config/sparc/xm-sun4os4.h: Ditto.
11158 * config/sparc/xm-linux.h: Ditto.
11159
11160 * config/i386/xm-windows.h: Delete file.
11161
2d1b2124
AC
111622002-01-19 Andrew Cagney <ac131313@redhat.com>
11163
11164 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11165 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11166
ee1f65f0
JT
111672002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11168
11169 * alpha-tdep.c (alpha_call_dummy_words): New.
11170 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11171 (CALL_DUMMY_P): Define.
11172 (CALL_DUMMY_WORDS): Define.
11173 (SIZEOF_CALL_DUMMY_WORDS): Define.
11174
98081e55
PB
111752002-01-19 Per Bothner <per@bothner.com>
11176
11177 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11178 isn't NULL, which can happen with some gcj-3.x-produced code.
11179
0d056799
JT
111802002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11181
11182 * alpha-tdep.c (alpha_register_virtual_type): New function.
11183 (alpha_init_frame_pc_first): Ditto.
11184 (alpha_fix_call_dummy): Ditto.
11185 (alpha_store_struct_return): Ditto.
11186 (alpha_extract_struct_value_address): Ditto.
11187 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11188 alpha_register_virtual_type.
11189 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11190 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11191 alpha_extract_struct_value_address.
11192 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11193 (INIT_FRAME_PC): Use init_frame_pc_noop.
11194 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11195
4604bcad
MK
111962002-01-19 Mark Kettenis <kettenis@gnu.org>
11197
11198 * i386gnu-nat.c: Include "i386-tdep.h".
11199 (fetch_fpregs): Simplify code dealing with uninitialized floating
11200 point states such that it doesn't require FP7_REGNUM.
11201
140f9984
JT
112022002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11203
abf22e64
AJ
11204 * alpha-tdep.c (frame_extra_info): New.
11205 (alpha_find_saved_regs): Make static. Use
140f9984
JT
11206 frame->extra_info.
11207 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
11208 (alpha_frame_saved_pc): Use frame->extra_info.
11209 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11210 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
11211 (init_extra_frame_info): Rename to...
11212 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 11213 (alpha_print_extra_frame_info): New function.
140f9984
JT
11214 (alpha_frame_locals_address): Ditto.
11215 (alpha_frame_args_address): Ditto.
abf22e64 11216 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
11217 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11218 alpha_frame_args_address.
abf22e64 11219 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 11220 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
11221 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11222 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
11223 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11224 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11225
d734c450
JT
112262002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11227
11228 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11229 (alpha_cannot_fetch_register): Ditto.
11230 (alpha_cannot_store_register): Ditto.
11231 (alpha_register_convertible): Ditto.
11232 (alpha_use_struct_convention): Ditto.
11233 * config/alpha/tm-alpha.h: Update copyright years.
11234 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11235 (INNER_THAN): Use core_addr_lessthan.
11236 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11237 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11238 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11239 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11240 (FRAME_CHAIN): Remove unnecessary cast.
11241
b4ceaee6
AC
112422002-01-18 Andrew Cagney <ac131313@redhat.com>
11243
11244 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11245 obsolete.
11246
0a65a603
AC
112472002-01-18 Andrew Cagney <ac131313@redhat.com>
11248
11249 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11250 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11251 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11252 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11253 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11254 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11255 * x86-64-linux-nat.c: Ditto.
11256
636a6dfc
JT
112572002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11258
abf22e64 11259 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
11260 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11261 (REGISTER_NAME): Define.
11262
acceddb6
JT
112632002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11264
11265 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11266
ec32e4be
JT
112672002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11268
11269 * alpha-tdep.c: Update copyright years.
11270 (alpha_next_pc): New function.
11271 (alpha_software_single_step): Ditto.
11272 * config/alpha/tm-alpha.h: Add prototype for
11273 alpha_software_single_step.
11274
e771a871
JT
112752002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11276
11277 * alphabsd-nat.c: Update copyright years.
11278 (fill_gregset): Use regcache_collect.
11279 (fill_fpregset): Likewise.
11280 (fetch_inferior_registers): Only fetch integer registers
11281 if requested to do so.
11282 (store_inferior_registers): Only store integer registers
11283 if requested to do so.
11284
7708fa01
AC
112852002-01-17 Andrew Cagney <ac131313@redhat.com>
11286
11287 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11288 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11289 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11290 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11291 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11292 * config/arm/linux.mh (XDEPFILES): Delete.
11293 * config/arm/nbsd.mh (XDEPFILES): Delete.
11294 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11295 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11296 * config/i386/i386m3.mh (XDEPFILES): Delete.
11297 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11298 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11299 * config/i386/fbsd.mh (XDEPFILES): Delete.
11300 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11301 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11302 * config/i386/i386v4.mh (XDEPFILES): Delete.
11303 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11304 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11305 * config/i386/i386aix.mh (XDEPFILES): Delete.
11306 * config/i386/go32.mh (XDEPFILES): Delete.
11307 * config/i386/cygwin.mh (XDEPFILES): Delete.
11308 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11309 * config/i386/i386mach.mh (XDEPFILES): Delete.
11310 * config/i386/i386v32.mh (XDEPFILES): Delete.
11311 * config/i386/linux.mh (XDEPFILES): Delete.
11312 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11313 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11314 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11315 * config/i386/i386sco.mh (XDEPFILES): Delete.
11316 * config/i386/i386v.mh (XDEPFILES): Delete.
11317 * config/i386/nbsd.mh (XDEPFILES): Delete.
11318 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11319 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11320 * config/i386/symmetry.mh (XDEPFILES): Delete.
11321 * config/i386/obsd.mh (XDEPFILES): Delete.
11322 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11323 * config/ia64/linux.mh (XDEPFILES): Delete.
11324 * config/ia64/aix.mh (XDEPFILES): Delete.
11325 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11326 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11327 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11328 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11329 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11330 * config/m68k/linux.mh (XDEPFILES): Delete.
11331 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11332 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11333 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11334 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11335 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11336 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11337 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11338 * config/m88k/delta88.mh (XDEPFILES): Delete.
11339 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11340 * config/m88k/m88k.mh (XDEPFILES): Delete.
11341 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11342 * config/mips/linux.mh (XDEPFILES): Delete.
11343 * config/mips/irix6.mh (XDEPFILES): Delete.
11344 * config/mips/irix5.mh (XDEPFILES): Delete.
11345 * config/mips/irix4.mh (XDEPFILES): Delete.
11346 * config/mips/irix3.mh (XDEPFILES): Delete.
11347 * config/mips/decstation.mh (XDEPFILES): Delete.
11348 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11349 (NATDEPFILES): Move core-aout.o to here.
11350 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11351 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11352 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11353 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11354 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11355 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11356 * config/pa/hpux11.mh (XDEPFILES): Delete.
11357 * config/powerpc/aix.mh (XDEPFILES): Delete.
11358 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11359 * config/powerpc/linux.mh (XDEPFILES): Delete.
11360 * config/romp/rtbsd.mh: Rename XDEPFILES.
11361 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11362 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11363 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11364 * config/s390/s390.mh (XDEPFILES): Delete.
11365 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11366 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11367 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11368 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11369 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11370 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11371 * config/sparc/linux.mh (XDEPFILES): Delete.
11372 * config/vax/vaxult.mh (XDEPFILES): Delete.
11373 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11374 * Makefile.in (DEPFILES): Remove XDEPFILES.
11375
375fc983
AC
113762002-01-17 Andrew Cagney <ac131313@redhat.com>
11377
11378 * utils.c (internal_verror): Fix comments, default is yes not no.
11379 Update queries to match. Default to quit and dump core.
11380
8926118c
AC
113812002-01-17 Andrew Cagney <ac131313@redhat.com>
11382
11383 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11384 copyright.
11385 * defs.h, event-top.c, gdbcmd.h: Ditto.
11386 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11387 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11388 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11389 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11390 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11391 * mi/mi-main.c:Ditto.
11392
11393 * stack.c, symfile.c: Update copyright.
11394
45b7b345
DJ
113952002-01-17 Daniel Jacobowitz <drow@mvista.com>
11396
db728ff7
DJ
11397 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11398 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11399 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11400 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11401
db728ff7
DJ
114022002-01-17 Daniel Jacobowitz <drow@mvista.com>
11403
11404 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11405 * gdbserver/low-lynx.c (myattach): Likewise.
11406 * gdbserver/low-nbsd.c (myattach): Likewise.
11407 * gdbserver/low-sim.c (myattach): Likewise.
11408 * gdbserver/low-sparc.c (myattach): Likewise.
11409 * gdbserver/low-sun3.c (myattach): Likewise.
11410
11411 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11412
db728ff7 11413 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11414 (main): Handle "--attach".
11415
8de3c354
AC
114162002-01-16 Andrew Cagney <ac131313@redhat.com>
11417
11418 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11419 maintainer.
11420
b0129042
DJ
114212002-01-15 Daniel Jacobowitz <drow@mvista.com>
11422
11423 * c-typeprint.c (is_type_conversion_operator): Add additional
11424 check for non-conversion operators.
11425
ba8679fb 114262002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11427
11428 * linux-proc.c: Add "info proc" command, a la procfs.c.
11429 (read_mapping): New function, abstract and re-use code.
11430 (linux_find_memory_regions): Use new func read_mapping.
11431 (linux_info_proc_cmd): New function, implement "info proc".
11432 (_initialize_linux_proc): Add new command "info proc".
11433
e4f9b4d5
MS
114342002-01-15 Michael Snyder <msnyder@redhat.com>
11435
11436 * symfile.c (generic_load): Use bfd_map_over_sections method
11437 instead of manipulating bfd structure members directly.
11438 (add_section_size_callback): New function, bfd sections callback
11439 used by generic_load.
11440 (load_sections_callback): New function, bfd sections callback
11441 used by generic_load.
11442
08cf96df
EZ
114432002-01-15 Elena Zannoni <ezannoni@redhat.com>
11444
abf22e64 11445 [Based on work by Jim Blandy]
08cf96df
EZ
11446 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11447 (builtin_type_vec128): Export.
11448 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11449 types.
11450 (builtin_type_vec128): New builtin type for 128 bit vector
11451 registers.
11452 (build_gdbtypes): Initialize builtin_type_v16qi and
11453 builtin_type_v8hi. Create the vec128 register builtin type
11454 structure.
11455 (build_builtin_type_vec128): New function.
abf22e64 11456 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11457 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11458 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11459 AltiVec register to new builtin type.
11460
d7242108
DJ
114612001-01-15 Daniel Jacobowitz <drow@mvista.com>
11462
11463 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11464 to make_cv_type.
11465
4ee3352d
AC
114662002-01-14 Andrew Cagney <ac131313@redhat.com>
11467
11468 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11469 CLEAN_UP_REGISTER_VALUE.
11470 * regcache.c (supply_register): Update only call.
11471
f015b2e7
AC
114722002-01-14 Andrew Cagney <ac131313@redhat.com>
11473
11474 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11475 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11476 a29k-*-vxworks* targets as obsolete.
11477
356ae49d
MS
114782002-01-14 Michael Snyder <msnyder@redhat.com>
11479
11480 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11481 until we can resolve portability issues.
11482 * gregset.h: Remove references to fpxregs.
11483 * gcore.c (gcore_command): Initialize note_sec to NULL.
11484
ade8f45e
AC
114852002-01-13 Andrew Cagney <ac131313@redhat.com>
11486
11487 * signals.c (target_signal_to_name): Rewrite. Only use
11488 signals[].name when in bounds and non-NULL.
abf22e64 11489
89c49e7a
AC
114902002-01-13 Andrew Cagney <ac131313@redhat.com>
11491
11492 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11493 * signals.c (target_signal_to_name): Verify that SIG is within the
11494 bounds of the signals array.
11495
4daa9f9f
AC
114962002-01-13 Andrew Cagney <ac131313@redhat.com>
11497
11498 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11499
ba4bbdcb
KS
115002002-01-13 Keith Seitz <keiths@redhat.com>
11501
11502 * stack.c (print_frame_info_base): Print the frame's pc
11503 only if when print_frame_info_listing_hook is not defined.
11504
575bbeb6
KS
115052002-01-13 Keith Seitz <keiths@redhat.com>
11506
11507 * varobj.c (varobj_set_value): Make sure that there were no
11508 errors evaluating the object before attempting to set its
11509 value.
11510 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11511 so this offset adjustment is no longer necessary.
11512 (create_child): Don't set the error flag if the child is
11513 a CPLUS_FAKE_CHILD.
11514 (value_of_child): If value_fetch_lazy fails, return NULL
11515 so that callers will be notified that an error occurred.
11516 (c_value_of_variable): Delay check of variable's validity
11517 until later. We actually want all structs and unions to have
11518 the value "{...}".
11519 Do not return "???" for variables which could not be evaluated.
11520 This error condition must be returned to the caller so that it
11521 can get the error condition from gdb.
11522 (cplus_name_of_child): Adjust index for vptr before figuring
11523 out the name of the child.
11524 (cplus_value_of_child): If a child's (real) parent is not valid,
11525 don't even bother trying to give a value for it. Just return
11526 an error. Change all instances in this function.
11527 (cplus_type_of_child): If our parent is one of the "fake"
11528 parents, we need to get at the type of the real parent, and
11529 derive the child's true type using this information.
11530
b76898ab
AC
115312002-01-13 Andrew Cagney <ac131313@redhat.com>
11532
11533 From 2002-01-09 John Marshall <johnm@falch.net>:
11534 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11535 sources.redhat.com, and tweak some related URLs which had
11536 suffered from linkrot.
11537
b6649e88
AC
115382002-01-13 Andrew Cagney <ac131313@redhat.com>
11539
11540 From Jeff law:
11541 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11542 structures passed in registers.
11543
82cc5033
EZ
115442002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11545
11546 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11547 white space which prevented compilation. Reported by DSK
11548 <dsk@student.unsw.edu.au>.
11549
ba5f2f8a
MS
115502002-01-11 Michael Snyder <msnyder@redhat.com>
11551
fbd35540
MS
11552 * symfile.c (build_section_addr_info_from_section_tab):
11553 Use bfd access method instead of manipulating bfd directly.
11554 (syms_from_objfile): Ditto.
11555 (simple_overlay_update_1): Ditto.
11556 (simple_overlay_update): Ditto.
11557 (generic_load): Ditto.
11558 (overlay_unmapped_address): FIXME comment, bfd access methods.
11559 (sections_overlap): FIXME comment, bfd access methods.
11560 (pc_in_mapped_range): FIXME comment, bfd access methods.
11561 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11562 (section_is_mapped): FIXME comment, bfd access methods.
11563 (section_is_overlay): FIXME comment, bfd access methods.
11564
ba5f2f8a
MS
11565 * symfile.c (generic_load): Whitespace and long line cleanups.
11566 Remove duplicate variable, change several local variables to
11567 more appropriate data types.
11568 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11569
17df2af6
AC
115702002-01-12 Andrew Cagney <ac131313@redhat.com>
11571
11572 From Peter Schauer:
11573 * language.c (longest_local_hex_string_custom): Use phex_nz to
11574 convert NUM to a hex string.
11575
ec920329
EZ
115762002-01-12 Elena Zannoni <ezannoni@redhat.com>
11577
11578 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11579 the function.
538a76d6 11580 Update Copyright year.
ec920329 11581
3abd2e01
AC
115822002-01-12 Andrew Cagney <ac131313@redhat.com>
11583
11584 * language.c (longest_raw_hex_string): Delete unused function.
11585
b21b22e0
PS
115862002-01-11 Petr Sorfa <petrs@caldera.com>
11587
11588 * MAINTAINERS (write-after-approval): Add myself.
11589 * dwarf2read.c (read_tag_string_type): Handling of
11590 DW_AT_byte_size.
11591 (read_tag_string_type): FORTRAN fix to prevent propagation of
11592 first string size.
11593 (set_cu_language): Handling of DW_LANG_Fortran95
11594
747fe712
RE
115952002-01-11 Richard Earnshaw <rearnsha@arm.com>
11596
11597 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11598 GETPID(inferior_ptid).
11599 (store_inferior_registers): Likewise.
11600
f1bea926
JM
116012002-01-10 Jason Merrill <jason@redhat.com>
11602
11603 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11604 Fix DW_OP_minus.
11605
ae940673
AC
116062002-01-10 Andrew Cagney <ac131313@redhat.com>
11607
11608 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11609 and bfd/elf32-sh-nbsd.c.
11610
00546b04
MS
116112002-01-10 Michael Snyder <msnyder@redhat.com>
11612
352ed7b4
MS
11613 * NEWS: Mention --pid and corefile/proc-id behavior change.
11614
c18be923
MS
11615 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11616 * gcore.c: Include cli/cli-decode.h instead of command.h.
11617
00546b04
MS
11618 * main.c (captured_main): Add new command line option "--pid".
11619 If the second command line argument (following the symbol-file)
11620 begins with a digit, try to attach to it before trying to open
11621 it as a corefile.
11622 (print_gdb_help): Document the "--pid" argument.
11623
db60ec62
EZ
116242002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11625
11626 * completer.c (command_completer): New function.
11627
11628 * completer.h <command_completer>: Add prototype.
11629
11630 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11631 completer for the "help" command.
11632
39c22d1a
JM
116332002-01-09 Jason Merrill <jason@redhat.com>
11634
11635 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11636
c564377f
MS
116372002-01-09 Michael Snyder <msnyder@redhat.com>
11638
975aec09
MS
11639 * i386-linux-nat.c (fill_fpxregset): Make global.
11640 (store_fpxregset): Ditto.
11641
db4a10fa
MS
11642 * gregset.h (gdb_fpxregset_t): Define.
11643 (supply_fpxregset): Prototype.
11644 (fill_fpxregset): Prototype.
11645
c564377f
MS
11646 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11647
c3d45d70
RE
116482002-01-09 Richard Earnshaw <rearnsha@arm.com>
11649
11650 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11651 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11652 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11653
fcc87af1
AC
116542002-01-09 Andrew Cagney <ac131313@redhat.com>
11655
11656 * MAINTAINERS: Update target maintainer rules so that any
11657 Maintainer can approve a tested patch for a maintenance-only
11658 target.
11659
dd96c05b
RE
116602002-01-09 Richard Earnshaw <rearnsha@arm.com>
11661
d4297db9 11662 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11663
d4297db9 11664 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11665 IN_SIGTRAMP.
11666
145fdc6e
MS
116672002-01-08 Michael Snyder <msnyder@redhat.com>
11668
11669 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11670 real name of the executable, rather than the /proc name.
11671
be4d1333
MS
116722002-01-03 Michael Snyder <msnyder@redhat.com>
11673
11674 Implement a "generate-core-file" command in gdb, save target state.
11675 * gcore.c: New file. Implement new command 'generate-core-file'.
11676 Save a corefile image of the current state of the inferior.
11677 * linux-proc.c: Add linux-specific code for saving corefiles.
11678 * target.h (struct target_ops): Add new target vectors for saving
11679 corefiles; to_find_memory_regions and to_make_corefile_notes.
11680 (target_find_memory_regions): New macro.
11681 (target_make_corefile_notes): New macro.
11682 * target.c (update_current_target): Inherit new target methods.
11683 (dummy_find_memory_regions): New place-holder method.
11684 (dummy_make_corefile_notes): New place-holder method.
11685 (init_dummy_target): Initialize new dummy target vectors.
11686 * exec.c (exec_set_find_memory_regions): New function.
11687 Allow the exec_ops vector for memory regions to be taken over.
11688 (exec_make_note_section): New function, target vector method.
11689 * defs.h (exec_set_find_memory_regions): Export prototype.
11690 * procfs.c (proc_find_memory_regions): New function, corefile method.
11691 (procfs_make_note_section): New function, corefile method.
11692 (init_procfs_ops): Set new target vector pointers.
11693 (find_memory_regions_callback): New function.
11694 (procfs_do_thread_registers): New function.
11695 (procfs_corefile_thread_callback): New function.
11696 * sol-thread.c (sol_find_memory_regions): New function.
11697 (sol_make_note_section): New function.
11698 (init_sol_thread_ops): Initialize new target vectors.
11699 * inftarg.c (inftarg_set_find_memory_regions): New function.
11700 Allow to_find_memory_regions vector to be taken over.
11701 (inftarg_set_make_corefile_notes): New function.
11702 Allow to_make_corefile_notes vector to be taken over.
11703 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11704 interface layer if not target_has_execution (may be a corefile).
11705 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11706 * config/sparc/sun4sol2.mh: Ditto.
11707 * config/alpha/alpha-linux.mh: Ditto.
11708 * config/arm/linux.mh: Ditto.
11709 * config/i386/x86-64linux.mh: Ditto.
11710 * config/ia64/linux.mh: Ditto.
11711 * config/m68k/linux.mh: Ditto.
11712 * config/mips/linux.mh: Ditto.
11713 * config/powerpc/linux.mh: Ditto.
11714 * config/sparc/linux.mh: Ditto.
11715
c6b92abd
MS
117162002-01-07 Michael Snyder <msnyder@redhat.com>
11717
11718 * arm-linux-nat.c: Remove references to regcache.c internal data
11719 (registers[] and register_valid[]).
11720
4b09dc8c
MS
117212002-01-07 Michael Snyder <msnyder@redhat.com>
11722
abf22e64
AJ
11723 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11724 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11725 symbol file and shlibs.
11726 * Makefile.in: Add rule for linux-proc.o.
11727 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11728 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11729 * config/arm/linux.mh: Ditto.
11730 * config/i386/linux.mh: Ditto.
11731 * config/i386/x86-64linux.mh: Ditto.
11732 * config/ia64/linux.mh: Ditto.
11733 * config/m68k/linux.mh: Ditto.
11734 * config/mips/linux.mh: Ditto.
11735 * config/powerpc/linux.mh: Ditto.
11736 * config/sparc/linux.mh: Ditto.
11737
c25b74ac
PM
117382002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11739
11740 * win32-nat.c: Add i386-tdep.h dependency.
11741
94cd915f
MS
117422002-01-07 Michael Snyder <msnyder@redhat.com>
11743
c7cccb76
MS
11744 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11745 instead of bfd_get_arch_size. Don't bail out just because
11746 there's no exec_bfd.
abf22e64 11747
34c0bd93
MS
11748 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11749 * p-valprint.c (pascal_object_print_value): Ditto.
11750 * somread.c (som_symtab_read): Ditto.
11751 * symfile.c (simple_free_overlay_region_table): Ditto.
11752 * valops.c (value_assign): Ditto.
11753
21c1c920
MS
11754 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11755 use tilde_expand and strerror for opening save-tracepoints file.
11756
5bbd998e
MS
11757 * thread-db.c (thread_db_new_objfile): Indendation fix.
11758
94cd915f
MS
11759 * infptrace.c (GDB_MAX_ALLOCA): New define.
11760 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11761 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11762 can be overridden with whatever value is appropriate to the host).
11763 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11764 alloca to allocate potentially large buffer.
11765 * rs6000-nat.c (child_xfer_memory): Ditto.
11766 * symm-nat.c (child_xfer_memory): Ditto.
11767 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11768
494e8a93
JSC
117692002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11770
11771 From Nick Clifton <nickc@redhat.com>
11772 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11773
d0e1d48e
MS
117742002-01-07 Michael Snyder <msnyder@redhat.com>
11775
abf22e64 11776 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11777 Don't use exec_bfd if it's NULL.
11778
290b2c7a
MK
117792002-01-06 Mark Kettenis <kettenis@gnu.org>
11780
abf22e64 11781 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11782
aef21287
AC
117832002-01-06 Andrew Cagney <ac131313@redhat.com>
11784
11785 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11786 * gnu-nat.c: Ditto.
11787
30efa627
AC
117882002-01-06 Andrew Cagney <ac131313@redhat.com>
11789
11790 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11791 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11792 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11793 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11794 z8k-coff have not been multi-arched. Update z8k-coff build
11795 status.
11796
9b4ff276
AC
117972002-01-06 Andrew Cagney <ac131313@redhat.com>
11798
11799 * MAINTAINERS: Mark a29k target as obsolete.
11800 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11801 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11802 comments.
11803 * NEWS: Note that a29k targets are obsolete.
11804 * a29k-tdep.c: Mark as obsolete.
11805 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11806 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11807 a29k-*-vxworks* targets as obsolete.
11808 * remote-adapt.c: Obsolete.
11809 * remote-eb.c: Obsolete.
11810 * remote-mm.c: Obsolete.
11811 * remote-udi.c: Obsolete.
11812 * config/a29k/a29k-udi.mt: Obsolete.
11813 * config/a29k/a29k.mt: Obsolete.
11814 * config/a29k/tm-a29k.h: Obsolete.
11815 * config/a29k/tm-vx29k.h: Obsolete.
11816 * config/a29k/vx29k.mt: Obsolete.
11817
a9011d31
AC
118182002-01-05 Andrew Cagney <ac131313@redhat.com>
11819
11820 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11821 with BFD_ENDIAN_BIG.
11822
9299404e
AC
118232002-01-05 Andrew Cagney <ac131313@redhat.com>
11824
11825 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11826 * configure, config.in: Re-generate.
11827 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11828 * defs.h: Do not include <endian.h>.
11829
7e89e357
JT
118302002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11831
11832 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11833 * config.in: Regenerate.
11834 * configure.in: Update copyright years.
11835 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11836 * configure: Regenerate.
11837 * i386bsd-nat.c: Update copyright years.
11838 (fill_gregset): Use regcache_collect.
11839 (fetch_inferior_registers): Only fetch integer registers
11840 if requested to do so. Add support for XMM registers
11841 using PT_GETXMMREGS.
11842 (store_inferior_registers): Only store integer registers
11843 if requested to do so. Add support for XMM registers
11844 using PT_SETXMMREGS.
11845 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11846 (store_inferior_registers): Remove.
11847 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11848 (fetch_elfcore_registers): New function.
11849 (i386nbsd_elfcore_fns): New.
11850 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11851 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11852 i386bsd-nat.o.
11853 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11854 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11855 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11856 * config/i386/tm-nbsd.h: Update copyright years.
11857 (HAVE_SSE_REGS): Define.
11858 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11859 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11860 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11861 (SIGCONTEXT_PC_OFFSET): Remove.
11862 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11863
a752853e
AC
118642002-01-05 Andrew Cagney <ac131313@redhat.com>
11865
11866 * configure.tgt: Remove powerpc-*-macos* target.
11867 * config/m68k/xm-mpw.h: Delete file.
11868 * config/xm-mpw.h: Delete file.
11869 * ser-mac.c: Delete file.
11870 * mpw-make.sed: Delete file.
11871 * mpw-config.in: Delete file.
11872 * mac-xdep.c: Delete file.
11873 * mac-gdb.r: Delete file.
11874 * mac-defs.h: Delete file.
11875 * mac-nat.c: Delete file.
11876 * config/powerpc/macos.mh: Delete file.
11877 * config/powerpc/macos.mt: Delete file.
11878 * config/powerpc/nm-macos.h: Delete file.
11879 * config/powerpc/tm-macos.h: Delete file.
11880 * source.c (openp, open_source_file): Remove obsolete code.
11881 * top.c (gdb_readline): Ditto.
11882 * utils.c (query): Ditto.
11883 * event-top.c (display_gdb_prompt): Ditto.
11884 * Makefile.in (ser-mac.o): Delete obsolete target.
11885 * NEWS: Update.
11886
d7449b42
AC
118872002-01-04 Andrew Cagney <ac131313@redhat.com>
11888
11889 * defs.h (BIG_ENDIAN): Delete macro definition.
11890 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11891 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11892 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11893 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11894 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11895 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11896 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11897 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11898 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11899 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11900 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11901 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11902 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11903 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11904 * gdbarch.c: Re-generate.
11905
356374e8
DJ
119062002-01-04 Daniel Jacobowitz <drow@mvista.com>
11907
11908 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11909 for core files.
11910
a2b8f8f8
JT
119112002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11912
11913 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11914
12466af9
AC
119152002-01-04 Andrew Cagney <ac131313@redhat.com>
11916
11917 * value.h (value_ptr): Delete typedef.
11918
3549ab40
JT
119192002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11920
11921 * i386nbsd-nat.c: Update copyright years.
11922 Include i386-tdep.h.
11923
fedbd091
EZ
119242002-01-04 Elena Zannoni <ezannoni@redhat.com>
11925
11926 * stabsread.c: Update copyright years.
11927
11928 From Debashis Mahata <debashis.mahata@wipro.com>:
11929 (read_struct_fields): Deal with Sun C compiler erroneous stab
11930 output for structs and unions.
fec8b34f 11931 Fix PR gdb/269.
fedbd091 11932
eb43544b
DJ
119332002-01-04 Daniel Jacobowitz <drow@mvista.com>
11934
11935 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11936 prototype.
11937
1514d34e
DJ
119382002-01-04 Daniel Jacobowitz <drow@mvista.com>
11939
11940 * cp-abi.c: Fix whitespace.
11941 (baseclass_offset): New wrapper function.
11942 * cp-abi.h (baseclass_offset): Add prototype.
11943 (struct cp_abi_ops): Add baseclass_offset pointer.
11944
11945 * valops.c (vb_match): Move to...
11946 * gnu-v2-abi.c (vb_match): here.
11947 * valops.c (baseclass_offset): Move to...
11948 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11949
11950 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11951
11952 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11953 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11954 * hpacc-abi.c (init_hpacc_ops): Likewise.
11955
7f8c9282
DJ
119562002-01-04 Daniel Jacobowitz <drow@mvista.com>
11957
11958 * valops.c (find_overload_match): Accept obj as a
11959 reference parameter. Update it before returning.
11960 * value.h (find_overload_match): Update prototype.
11961 * eval.c (evaluate_subexp_standard): Pass object to
11962 find_overload_match by reference.
11963
f23631e4
AC
119642002-01-03 Andrew Cagney <ac131313@redhat.com>
11965
11966 * valarith.c: Replace value_ptr with struct value pointer. Remove
11967 register attribute from value declarations.
11968 * valops.c: Ditto.
11969 * value.h: Ditto.
11970 * scm-lang.c (scm_lookup_name): Ditto.
11971
79e10fab 119722002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 11973
79e10fab
AC
11974 Abstract the functionality of iterating over mapped memory
11975 regions into a general purpose iterator function.
abf22e64 11976 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
11977 iterator for memory sections.
11978 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11979 (solib_mappings_callback): New function, callback for above.
11980 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11981 (info_mappings_callback): New function, callback for above.
11982
11983 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11984
c5ad026a
MK
119852002-01-01 Mark Kettenis <kettenis@gnu.org>
11986
d2a7c97a
MK
11987 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11988 * i386-tdep.c: Include "elf-bfd.h".
11989 (process_note_abi_tag_sections): New function.
11990 (i386_gdbarch_init): Add code to recognize various OS/ABI
11991 combinations.
11992
c5ad026a
MK
11993 * maint.c (_initialize_maint_cmds): Add missing \ in
11994 string-literal.
11995
a1a5b71e 11996For older changes see ChangeLog-2001
c906108c
SS
11997\f
11998Local Variables:
11999mode: change-log
12000left-margin: 8
12001fill-column: 74
12002version-control: never
12003End:
This page took 0.873998 seconds and 4 git commands to generate.