]> Git Repo - binutils.git/blame - gdb/ChangeLog
2002-10-21 Elena Zannoni <[email protected]>
[binutils.git] / gdb / ChangeLog
CommitLineData
bc4a16ae
EZ
12002-10-21 Elena Zannoni <[email protected]>
2
3 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
4 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
5
407caf07
EZ
62002-10-21 Elena Zannoni <[email protected]>
7
8 * symtab.h (address_class): Rename
9 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
10 * hpread.c (hpread_process_one_debug_symbol): Ditto.
11 * printcmd.c (address_info): Ditto.
12 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
13
005328e3
MK
142002-10-20 Mark Kettenis <[email protected]>
15
afdb036a
MK
16 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
17 DBREG_DRX macro to acces debug registers.
18
ca02e098
MK
19 * Makefile.in (i386obsd-tdep.o): New target.
20
03cc47f7
MK
21 * solib-sunos.c: Include "bcache.h" and "regcache.h".
22 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
23
005328e3
MK
24 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
25 * config/i386/obsd.mt: New file.
26 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
27 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
28 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
29 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
30 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
31 * i386obsd-tdep.c: New file.
32
9c96f9f2
AF
332002-10-19 Adam Fedor <[email protected]>
34
35 * objc-exp.y (name_not_typename): Fix invalid comment.
36
ce1ed485
MK
372002-10-20 Mark Kettenis <[email protected]>
38
39 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
40 to allocate partial syms and macro byte caches.
41
1efc7aaa
DC
422002-10-18 David Carlton <[email protected]>
43
44 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
45
7e1d63ec
AF
462002-10-18 Adam Fedor <[email protected]>
47
48 * stabsread.c (find_name_end): New function.
49 (define_symbol): Use it.
50
6e8d29a9
DJ
512002-10-18 Daniel Jacobowitz <[email protected]>
52
53 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
54 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
55 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
56 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
57
1efc7aaa 582002-10-17 David Carlton <[email protected]>
63ca651f
DC
59
60 * symfile.h: Add opaque declaration for struct obstack.
61 Declare obsavestring to take a const char *.
62 * symfile.c (obsavestring): Make first argument a const char *.
63
1aeae86e
AF
642002-10-16 Adam Fedor <[email protected]>
65
66 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
67 names when matching breakpoints in current file.
68
8b2dbe47
KB
692002-10-16 Kevin Buettner <[email protected]>
70
71 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
72 (read_tag_pointer_type): Add address class support.
73 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
74 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
75 New methods.
76 * gdbarch.h, gdbarch.c: Regenerate.
77 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
78 (make_type_with_address_space, recursive_type_dump): Add address
79 class support.
80 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
81 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
82 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
83
74451869
KD
842002-10-16 Klee Dienes <[email protected]>
85
86 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
87 to get the last character of a char[] buffer, not
88 name[sizeof(vptr_name)-1].
89
ff4cb3e8
AF
902002-10-14 Adam Fedor <[email protected]>
91
92 * symtab.h: New objc_specific struct.
93 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
94 (SYMBOL_DEMANGLED_NAME): Likewise.
95
da2cf7e0
AF
962002-10-14 Adam Fedor <[email protected]>
97
98 * symfile.c (init_filename_language_table): Add ObjC file extension.
99
4a351cef
AF
1002002-10-14 Adam Fedor <[email protected]>
101
102 * utils.c (puts_filtered_tabular): New function.
103 (fprintf_symbol_filtered): Get ObjC demangled name.
104 * defs.h (puts_filtered_tabular): Declared.
105
9750e763
KB
1062002-10-14 Kevin Buettner <[email protected]>
107
108 * c-lang.h (c_type_print_varspec_prefix): Delete.
109 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
110 ``need_post_space'' parameter. Adjust all callers.
111
eee771c1
DJ
1122002-10-14 Daniel Jacobowitz <[email protected]>
113
114 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
115 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
116 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
117 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
118
46c82446
AF
1192002-10-13 Adam Fedor <[email protected]>
120
121 * source.c (print_source_lines): Update comments.
122
d069f99d
AF
1232002-10-13 Adam Fedor <[email protected]>
124
125 * valops.c (value_of_local): New function.
126 (value_of_this): Use it.
127 * value.h (value_of_local): Declared.
128
53c551b7
AF
1292002-10-13 Adam Fedor <[email protected]>
130
131 * parse.c: (length_of_subexp, prefixify_subexp): Handle
132 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
133
eb392fbf
AF
1342002-10-12 Adam Fedor <[email protected]>
135
136 * language.c (binop_result_type): Add language_objc to case.
137 (integral_type): Likewise.
138 (character_type): Likewise.
139 (string_type): Likewise.
140 (boolean_type): Likewise.
141 (structured_type): Likewise.
142 (binop_type_check): Likewise.
143
e2b23ee9
AF
1442002-10-11 Adam Fedor <[email protected]>
145
146 * printcmd.c (address_info): Print 'self' for ObjC.
147
b01ab485
AF
1482002-10-11 Adam Fedor <[email protected]>
149
150 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
151 OP_SELF.
152
806e6073
AF
1532002-10-11 Adam Fedor <[email protected]>
154
155 * language.h (CAST_IS_CONVERSION): Add language_objc.
156
50f85cdf
AF
1572002-10-11 Adam Fedor <[email protected]>
158
159 * defs.h (enum language): Add language_objc.
160
0d540cdf
KD
1612002-10-11 Klee Dienes <[email protected]>
162
163 * findvar.c (read_memory_typed_address): New function.
164 * gdbcore.h (read_memory_typed_address): Add prototype.
165 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
166 to read a value destined for a CORE_ADDR, not read_memory_integer.
167 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
168 (f77_get_dynamic_lowerbound): Ditto.
169
d5dc7960
MH
1702002-10-11 Martin M. Hunt <[email protected]>
171
172 * utils.c (string_to_core_addr): After turning string into
173 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
174 which will do necessary sign-extension, etc.
175
8343f86c
DJ
1762002-10-11 Daniel Jacobowitz <[email protected]>
177
178 * c-exp.y (THIS): Delete token and grammar rule.
179 (yylex): Don't return THIS.
180 * cp-valprint.c (vtbl_ptr_name_old): Delete.
181 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
182 * demangle.c (cplus_markers): Update comment. Put '$'
183 first. Remove CPLUS_MARKER.
184 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
185 * jv-exp.y (THIS): Delete token and grammar rule.
186 (yylex): Don't return THIS.
187 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
188 * objc-exp.y (THIS): Delete token and grammar rule.
189 (yylex): Don't return THIS.
190 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
191 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
192 (read_member_functions): Likewise for opname.
193 (read_tilde_fields): Use is_cplus_marker.
194
195 * defs.h (CPLUS_MARKER): Don't define.
196 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
197 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
198 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
199 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
200 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
201
202 * config/i386/tm-i386v4.h: Delete file.
203 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
204 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
205 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
206 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
207 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
208 * config/i386/i386sco5.mt (TM_FILE): Likewise.
209 * config/i386/i386v4.mt (TM_FILE): Likewise.
210 * config/i386/ncr3000.mt (TM_FILE): Likewise.
211
967c0d83
MM
2122002-10-10 Marko Mlinar <[email protected]>
213
214 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
215 accidentially not commited 2002-10-09
216 * gdbarch.h, gdbarch.c: Re-generate.
217
f74fa174
MM
2182002-10-09 Marko Mlinar <[email protected]>
219
220 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
221 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
222 * gdbarch.h, gdbarch.c: Re-generate.
223
57349743
JB
2242002-10-08 Petr Sorfa <[email protected]>
225
226 Revised and re-submitted by John Wolfe <[email protected]>
227
228 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
229 so we can work on more than one compilation unit at a time. This
230 helps prepare GDB to handle inter-CU die references.
231 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
232 the code to be defined before struct comp_unit_head.
233 (comp_unit_head): Added new members - offset, cu_head,
234 begin_die, next and dwarf2_abbrevs.
235 (dwarf2_abbrevs): Removed single static var; now member of
236 struct comp_unit_head.
237 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
238 members.
239 (psymtab_to_symtab_1): Changed to work with the new
240 struct comp_unit_head.
241 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
242 constructs the dwarf2_abbrevs[] inside the cu_header.
243 (dwarf2_empty_abbrev_table): Now expects a ptr to a
244 dwarf2_abbrev table to clean up.
245 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
246 handling of dwarf2_abbrevs inside the cu_header.
247 (read_partial_die): Now supports the call to the new
248 dwarf2_lookup_abbrev.
249 (read_full_die): Now supports the call to the new
250 dwarf2_lookup_abbrev.
251
4092aadb
CF
2522002-10-06 Christopher Faylor <[email protected]>
253
254 * Makefile.in (install-gdbtk): Add missing continuation backslash to
255 insure that shell variables, such as "transformed_name" are propagated
256 to later shell statements in rule.
257
af0b2512
MK
2582002-10-06 Mark Kettenis <[email protected]>
259
260 * config/i386/nm-i386sco.h: Add protection against
261 multiple-inclusion. Include "i386/nm-i386v.h".
262 (REGISTER_U_ADDR): Remove define.
263 (i386_register_u_addr): Remove prototype.
264
d6020d45
MS
2652002-10-04 Michael Snyder <[email protected]>
266
267 * m32r-stub.c (handle_exception): Make sure exception is "trap"
268 before treating it as a single-step event.
269
7248f48e
AF
2702002-10-03 Adam Fedor <[email protected]>
271
272 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
273 (objc_demangle): Remove assignment in if statements, Replace
274 free with xfree.
275 (add_msglist): Likewise.
276 (end_msglist): Likewise.
277 (complare_selectors): Likewise.
278 (selectors_info): Likewise.
279 (compare_classes): Likewise.
280 (classes_info): Likewise.
281 (print_object_command): Likewise.
282 (find_objc_msgcall_submethod): Replace PTR with void *.
283 * objc-lang.h: Remove check for __STDC__.
284
52c6a6ac
JJ
2852002-10-03 Jeff Johnston <[email protected]>
286
287 * ui-out.h (ui_out_field_fmt_int): New prototype.
288 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
289 of field width and alignment.
290 * stack.c (print_frame_info_base): When printing frame level, use
291 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
292 PR gdb/192
293
7e3cec17
JJ
2942002-10-03 Jeff Johnston <[email protected]>
295
296 * MAINTAINERS: Add self to Write After Approval list.
297
a58dd373
EZ
2982002-10-02 Elena Zannoni <[email protected]>
299
300 * infcmd.c (interrupt_target_command_wrapper): Delete.
301 (interrupt_target_command): Make non static.
302 (nofp_registers_info): Make static.
303 * stack.c (return_command_wrapper): Delete.
304 (return_command): Make non static.
305
cee6ddeb
EZ
3062002-10-02 Elena Zannoni <[email protected]>
307
308 * event-top.c (gdb_setup_readline): New function. Code moved from
309 _initialize_event_loop().
310 (_initialize_event_loop): Call gdb_setup_readline().
311
c4ed33b9
AC
3122002-10-02 Andrew Cagney <[email protected]>
313
314 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
315 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
316 * gdbarch.h, gdbarch.c: Re-generate.
317
cef4f5dd
DJ
3182002-10-02 Daniel Jacobowitz <[email protected]>
319
320 Fix PR gdb/778
321 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
322 before recursing.
323 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
324 of fill_in_vptr_fieldno.
325
36dc181b 3262002-10-02 Elena Zannoni <[email protected]>
cee6ddeb 327
36dc181b
EZ
328 * inferior.h (registers_info, stepi_command, nexti_command,
329 continue_command, interrupt_target_command): Export from infcmd.c.
330 * frame.h (args_info, selected_frame_level_changed_hook,
331 return_command): Export from stack.c.
332 * v850ice.c (stepi_command, nexti_command, continue_command): use
333 prototypes from inferior.h.
334 * tracepoint.c (registers_info, args_info, locals_info): Use
335 prototypes from frame.h and inferior.h.
336 * Makefile.in (mi-main.o): Add dependency on frame.h.
337
6f99cb26
AC
3382002-10-02 Andrew Cagney <[email protected]>
339
da3eff49
AC
340 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
341 value in register 3 adjusted by ppc_gp0_regnum.
342
6f99cb26
AC
343 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
344
da615bee
MM
3452002-10-02 Marko Mlinar <[email protected]>
346
347 * MAINTAINERS: Add myself to the Write After Approval list.
348
d154bee2
AO
3492002-10-01 Alexandre Oliva <[email protected]>
350
62a49b2c
AO
351 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
352 of the section for the N64 ABI, fixed.
353
d154bee2
AO
354 * config/mips/tm-irix6.h: Include solib.h.
355
ed348acc
EZ
3562002-10-01 Elena Zannoni <[email protected]>
357
358 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
359 GNU operators.
360
da0f9dcd
AC
3612002-10-01 Andrew Cagney <[email protected]>
362
363 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
364 and that "mi0" syntax has been removed.
365
bdf64bac
DC
3662002-09-30 David Carlton <[email protected]>
367
368 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
369 * ppc-sysv-tdep.c: #include "gdb_string.h".
370 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
371 pacify GCC.
372
54c2a1e6
AC
3732002-10-01 Andrew Cagney <[email protected]>
374
375 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
376 "vrsave"'s register number.
377
cedea778
AC
3782002-09-30 Andrew Cagney <[email protected]>
379
380 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
381 use frame_unwind_signed_register to obtain the PC.
382 (mips_frame_chain): Handle a generic dummy frame.
383 (mips_init_extra_frame_info): When a generic dummy frame, don't
384 re-compute the frame base.
385 (mips_pop_frame): Handle generic dummy frames.
386 (mips_gdbarch_init): When generic dummy frames, set
387 use_generic_dummy_frames, push_dummy_frame to
388 generic_push_dummy_frame, pc_in_call_dummy to
389 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
390 generic_save_dummy_frame_tos.
391
68315eb8
AC
3922002-09-30 Andrew Cagney <[email protected]>
393
394 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
395 against TOP when TOP was explictly set.
396 (generic_push_dummy_frame): Set TOP to zero.
397
3b8630c3
EZ
3982002-09-30 Elena Zannoni <[email protected]>
399
400 * event-loop.c (start_event_loop): Rename variable 'result' to
401 'gdb_result', to avoid conflicts with upcoming intepreters changes.
402
28ee05e9
KS
4032002-09-30 Keith Seitz <[email protected]>
404
405 * gdb-events.sh (selected_thread_changed): New event.
406 * gdb-events.c: Regenerated.
407 * gdb-events.h: Regenerated.
408
6eecb1c8
HPN
4092002-09-30 Hans-Peter Nilsson <[email protected]>
410
411 * MAINTAINERS: Add self to Write After Approval list.
412
92df71f0
FN
4132002-09-30 Fernando Nasser <[email protected]>
414
3b8630c3
EZ
415 * disasm.c: New file.
416 * disasm.h: New file.
92df71f0
FN
417 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
418 (compare_lines): Ditto.
419 (dump_insns): Ditto.
3b8630c3
EZ
420 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
421 argument.
92df71f0 422 (do_assembly_only): Ditto.
3b8630c3
EZ
423 (do_disassembly): Renamed to gdb_disassembly and moved to
424 disasm.c. Sdded uiout argument.
425 * Makefile.in: Add new files. Reorder SFILES list. Update
426 dependencies. Include libgdb.a later in the insight executable.
92df71f0 427
0c22854d
AC
4282002-09-29 Andrew Cagney <[email protected]>
429
430 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
431 bfd/elf64-alpha-fbsd.c.
432
e67f2023
AC
4332002-09-29 Andrew Cagney <[email protected]>
434
435 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
436 i386gnu-tdep.c.
437
89396210
AC
4382002-09-29 Andrew Cagney <[email protected]>
439
440 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
441 __FUNCTION__.
442 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
443 function name.
444 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
445 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
446 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
447 (S_msg_sig_post_reply): Ditto.
448
7079c36c
CV
4492002-09-28 Corinna Vinschen <[email protected]>
450
89396210
AC
451 * sh-tdep.c (sh_use_struct_convention): Use definition according
452 to ABI.
7079c36c
CV
453 (sh_push_arguments): Store in register with correct endianess.
454 (sh_default_store_return_value): Ditto.
455 (sh_gdbarch_init): Set sizeof long double to 8.
456
975ac915
MK
4572002-09-27 Mark Kettenis <[email protected]>
458
459 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
460 Fix some whitespace problems.
461
9bbe19fb
DC
4622002-09-27 David Carlton <[email protected]>
463
464 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
465 (mcore-tdep.o): Ditto.
466 (ns32k-tdep.o): Ditto.
467 (ns32knbsd-tdep.o): Ditto.
468 (sh3-rom.o): Ditto.
469 (vax-tdep.o): Ditto.
470 * cris-tdep.c: #include "gdb_string.h"
471 * mcore-tdep.c: Ditto.
472 * ns32k-tdep.c: Ditto.
473 * ns32knbsd-tdep.c: Ditto.
474 * sh3-rom.c: Ditto.
475 * vax-tdep.c: Ditto.
476
43b2fdc7
DC
4772002-09-27 David Carlton <[email protected]>
478
479 * config/djgpp/fnchange.lst: Add entries for
480 gdb/testsuite/gdb.c++/m-static files.
481
e8cfbbd9
JW
4822002-09-27 Jim Wilson <[email protected]>
483
484 * MAINTAINERS: Add myself to the Write After Approval list.
485
43b2fdc7 4862002-09-26 Martin M. Hunt <[email protected]>
4e0df2df
MH
487
488 * mips-tdep.c (find_proc_desc): Initialize startaddr.
489
490
9f3b7f07
AC
4912002-09-26 Andrew Cagney <[email protected]>
492
493 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
494 frame.
495
11269d7e
AC
4962002-09-26 Andrew Cagney <[email protected]>
497
498 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
499 (rs6000_struct_return_address): Delete variable.
500 (rs6000_store_struct_return): Update.
501 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
502 deprecated_extract_struct_value_address.
503 (rs6000_frame_align): New function.
504 (rs6000_gdbarch_init): Set frame_align.
505
f15ab4a7
AC
5062002-09-26 Andrew Cagney <[email protected]>
507
508 From Grace Sainsbury <[email protected]>:
509 * Makefile.in (gdbtk-main.o): New target.
510 (gdb.o): New target.
511 (main_h): Define.
512 (main.o): Update dependencies.
513 (gdb$(EXEEXT)): Add gdb.o.
514 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
515 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
516 (SUBDIR_GDBTK_CLEAN): Set.
517 (install-gdbtk): Install the insight binary.
518 (uninstall-gdbtk): New target.
519 (all-gdbtk, clean-gdbtk): New rule.
520 * top.c (use_windows): Default to zero.
521 * main.c: Include "main.h".
522 (main): Delete.
523 (struct captured_main_args): Delete.
524 (gdb_main): New function.
525 * main.h: New file.
526 * gdb.c: New File.
527
e36180d7
AC
5282002-09-25 Andrew Cagney <[email protected]>
529
530 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
531 (frame_map_regnum_to_name): New function.
532 (frame_map_name_to_regnum): New function.
533 * frame.h (frame_map_name_to_regnum): Declare.
534 (frame_map_regnum_to_name): Declare.
535 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
536 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
537 * parse.c: Do not include "builtin-regs.h".
538 (target_map_name_to_register): Delete function.
539 (write_dollar_variable): Use frame_map_name_to_regnum.
540 * parser-defs.h (target_map_name_to_register): Delete declaration.
541 * expprint.c: Include "frame.h".
542 (print_subexp): Use frame_map_regnum_to_name.
543 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
544 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
545
8b69000d
AC
5462002-09-25 Andrew Cagney <[email protected]>
547
548 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
549 wasn't saved, and the next innermost frame is a dummy, return the
550 dummy frame's link register.
551
046ca86a
JB
5522002-09-24 Jim Blandy <[email protected]>
553
554 Fix from Paul Breed:
555 * main.c (captured_main): Add a `break' after the case for 'b'.
556
94b66fa7
KS
5572002-09-24 Keith Seitz <[email protected]>
558
559 * varobj.c (c_type_of_child): Use get_target_type instead
560 of TYPE_TARGET_TYPE.
561
c214a6fd
FN
5622002-09-22 Fernando Nasser <[email protected]>
563
53cb0458
FN
564 * source.c (get_current_or_default_source_symtab_and_line): Remove
565 function.
566 (set_default_source_symtab_and_line): New function. Attempts to
567 determine a source file to list lines from if one is not currently
568 defined.
569 (get_current_source_symtab_and_line): Initialize sal.pc and
570 sal.end fields.
571 (set_current_source_symtab_and_line): Mark argument as const.
572 * source.h: Update declarations and comments.
573 * linespec.c (decode_line_1): Replace call to removed routine above.
574 * stack.c (print_frame_info_base): Ditto.
575 * cli/cli-cmds.c (edit_command): Ditto.
576 (list_command): Ditto.
577
5782002-09-22 Fernando Nasser <[email protected]>
579
d6020d45 580 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 581 sal.pc and sal.end fields.
c214a6fd
FN
582 (get_current_or_default_source_symtab_and_line): Ditto.
583 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
584 so we do not cause a new source symtab to be searched for (reverting an
585 unintentional change from the 2002-09-20 patch).
586 * scm-lang.c (scm_unpac): Ditto.
587
cc3b68a5
AC
5882002-09-21 Andrew Cagney <[email protected]>
589
590 * complaints.c (symfile_explanations): Remove new-line from
591 ``isolated_message''.
592 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
593 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
594
5835abe7
NC
5952002-09-20 Nick Clifton <[email protected]>
596
597 * NEWS: Announce that V850EA ISA is no longer supported.
598 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
599
a15ef5f5
DC
6002002-09-20 David Carlton <[email protected]>
601
06ba1b39
DC
602 * Makefile.in (c-lang.o): Correct dependencies.
603 (utils.o): Gather dependencies.
604 (charset.o): Move.
a15ef5f5
DC
605 * c-lang.c: #include "gdb_string.h"
606
87885426
FN
6072002-09-20 Fernando Nasser <[email protected]>
608
609 From 2002-07-02 George Helffrich <[email protected]>
610 * cli/cli-cmds.c (list_command): New function. Implements the new
611 cli edit command.
612 (_init_cli_cmds): Add new command definition.
613 * gdb.1: Document edit command.
614 * doc/gdb.texinfo: Document edit command.
615
6162002-09-20 Fernando Nasser <[email protected]>
0378c332
FN
617
618 * source.c: Make global variables current_source_symtab and
619 current_source_line static.
620 (list_command): Moved to cli/cli-cmds.c.
621 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
622 (get_first_line_listed): New accessor function.
623 (get_lines_to_list): New accessor function.
624 (get_current_source_symtab_and_line): New function. Retrieves the
625 position in the source code that we consider current.
626 (get_current_or_default_source_symtab_and_line): New function.
627 Like the above but attempts to determine a default position if one
628 is not currently defined.
629 (set_current_source_symtab_and_line): New function. Sets the source
630 code position considered current and returns the previously set one.
631 (clear_current_source_symtab_and_line): Reset stored information about
632 a current source line.
633 (_initialize_source): Remove registration for the "list" command and
634 its alias.
635 * source.h: Add declarations for the new functions above.
636 * symtab.h: Remove declarations for the global variables mentioned
637 above.
638 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
639 obtain current source line.
640 * linespec.c (decode_line_1): Ditto.
641 * macroscope.c (default_macro_scope): Ditto.
642 * scm-lang.c (scm_unpac): Ditto.
643 * stack.c (print_frame_info_base): Ditto.
644 * symfile.c (clear_symtab_users): Ditto.
645 * symtab.c (decode_line_spec): Ditto.
646 * cli/cli-cmds.c (list_command): Moved here from source.c.
647 (ambiguous_line_spec): Moved here from source.c.
648 (_init_cli_cmds): Add definition for "list" and its alias.
649 * Makefile.in: Update dependencies.
650
ddd216ea
CV
6512002-09-20 Corinna Vinschen <[email protected]>
652
653 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
654 with what gcc thinks is correct.
655
6d305052
CV
6562002-09-20 Corinna Vinschen <[email protected]>
657
658 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
659 multiple register push instruction.
660
234b45d4
KB
6612002-09-19 Jim Blandy <[email protected]>
662
663 Add support for distinct host and target character sets.
664 * charset.c, charset.h: New files.
665 * c-exp.y: #include "charset.h".
666 (yylex): Convert character and string literals to the target
667 character set, before returning them as the semantic value of the
668 token.
669 * c-lang.c: #include "charset.h".
670 (c_emit_char): Use charset-specific methods to recognize
671 characters with backslash escape forms, to decide which characters
672 to print literally and which to print using numeric escape
673 sequences, and to convert target characters to host characters
674 before printing.
675 * utils.c: #include "charset.h".
676 (no_control_char_error): New function.
677 (parse_escape): Use charset-specific methods to recognize
678 backslash escapes, parse `control character' notation, and convert
679 characters from the host character set to the target character set.
680 * configure.in: Set the default host character set.
681 Check where to find iconv, and what its argument types might be.
682 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
683 * Makefile.in (SFILES): List charset.c.
684 (COMMON_OBS): List charset.o.
685 (charset.o): New rule.
686 (charset_h): New header dependency variable.
687 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
688 (LIBICONV): New variable, set by configure.
689 (CLIBS): Include $(LIBICONV) here.
690 * aclocal.m4, config.in, configure: Regenerated.
691
525d6a61
JB
6922002-09-19 Joel Brobecker <[email protected]>
693
694 * ada-exp.y: Add missing semicolons to end rules. Fixes a
695 bison 1.35 warning.
696
3ed93867
RE
6972002-09-19 Richard Earnshaw <[email protected]>
698
699 * gdb_mbuild.sh: New file.
700
437666f8
AC
7012002-09-19 Andrew Cagney <[email protected]>
702
703 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
704
389e51db
AC
7052002-09-18 Andrew Cagney <[email protected]>
706
707 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
708 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
709 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
710 valops.c, value.h: Revert previous change.
711
3b4efeaa
MS
7122002-09-18 Michael Snyder <[email protected]>
713
714 Preliminary support for Objective-C:
715 * defs.h (language_objc): New enum value.
716 (puts_filtered_tabular): Declaration only, exported from utils.c.
717 (skip_quoted): Delete, declared in completer.h.
718 * c-exp.y: Include completer.h.
719 * p-exp.y: Ditto.
720 * jv-exp.y: Ditto.
721 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
722 New operator enum values.
723 * language.h (CAST_IS_CONVERSION): Test for language_objc.
724 * language.c (binop_result_type): Handle language_objc case.
725 (integral_type, character_type, string_type, boolean_type,
726 structured_type, binop_type_check): Ditto.
727 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
728 (struct objc_specific): Add to general_symbol_info.
729 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
730 (SYMBOL_DEMANGLED_NAME): Handle objc case.
731 * parser-defs.h (struct objc_class_str): New struct type.
732 (start_msglist, end_msglist, add_msglist): Declaration only,
733 exported from objc-lang.c.
734 * value.h (value_of_local, value_nsstring,
735 call_function_by_hand_expecting_type): Exported from valops.c.
736 * valops.c (find_function_addr): Export.
737 (call_function_by_hand_expecting_type): New function.
738 (value_of_local): New function.
739 * symfile.c (init_filename_language_table): Add ".m" extension
740 for Objective-C.
741 * utils.c (puts_filtered_tabular): New function.
742 (fprintf_symbol_filtered): Add objc demangling support (disabled).
743 (set/show demangle): Extend help-string to refer to ObjC.
744 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
745 * stabsread.c (symbol_reference_defined): Objective-C symbols
746 may contain colons: make allowances when scanning stabs strings
747 for colons.
748 (objc_find_colon): New function.
749 * printcmd.c (address_info): If language == objc then print
750 "self" instead of "this".
751 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
752 OP_NSSTRING, and OP_SELF.
753 (prefixify_subexp): Ditto.
754 * source.c (print_source_lines): Mention objc in comment.
755 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
756 method names.
757
b9caf505
AC
7582002-09-18 Andrew Cagney <[email protected]>
759
760 * complaints.h: Update copyright.
761 (struct complaints): Declare.
762 (struct complaint): Make `message' constant.
763 (internal_complaint): Declare.
764 (complaint): Declare.
765 (complaint_root): Delete declaration.
766 (symfile_complaints): Delete declaration.
767 (struct complaints): Add opaque declaration.
768 (clear_complaints): Add a complaints parameter.
769 * complaints.c: Update copyright.
770 (enum complaint_series): Define.
771 (complaint_root): Delete.
772 (struct complaints): Define.
773 (complaint_sentinel, symfile_complaint_book): New variables.
774 (symfile_explanations, symfile_complaints): New variables.
775 New variables.
776 (get_complaints): New function.
777 (vcomplaint): New function.
778 (complaint): New function.
779 (internal_complaint): New function.
780 (complain): Call vcomplain with symfile_complaint.
781 (clear_complaints): Rewrite.
782 (_initialize_complaints): Use add_setshow_command.
783 * Makefile.in (complaints.o): Update dependencies.
784 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
785 to call to clear_complaints.
786 (new_symfile_objfile, reread_symbols): Ditto.
787 (oldsyms_complaint): Delete.
788 (empty_symtab_complaint, unknown_option_complaint): Delete.
789 (free_named_symtabs): Use complaint instead of complain.
790
d2e6263c
MS
7912002-09-18 Michael Snyder <[email protected]>
792
5fb2031a
AC
793 Contributed by Apple Computer, Inc. Merged with current sources
794 by Adam Fedor <[email protected]> [cagney].
795
d2e6263c
MS
796 * objc-lang.c: First clean-up round: comments, indentation.
797 * objc-lang.h: Ditto.
798 * objc-lang.y: Ditto.
799
dec43320
AC
8002002-09-18 Andrew Cagney <[email protected]>
801
802 * maint.c (maintenance_internal_error): Print the parameter as the
803 error message.
804 (maintenance_internal_warning): New function.
805 (_initialize_maint_cmds): Add command `maint internal-warning'.
806
807 * defs.h (internal_warning, internal_vwarning): Declare.
808 * utils.c (struct internal_problem): Define.
809 (internal_vproblem): New function.
810 (internal_warning): New function.
811 (internal_vwarning): New function.
812 (internal_warning_problem, internal_error_problem): New variables.
813 (internal_verror): Just call internal_vproblem.
814
b81654f1
MS
8152002-09-18 Michael Snyder <[email protected]>
816
817 * objc-lang.c: New file, support for Objective-C.
818 Preliminary check-in, not yet integrated into gdb.
819 * objc-lang.h: New file.
820 * objc-exp.y: New file.
821
0542c381
AC
8222002-09-18 Andrew Cagney <[email protected]>
823
7bda5e4a
AC
824 * infrun.c (signal_stop_update): Convert definition to ISO C.
825 (signal_print_update): Ditto.
826 (signal_pass_update): Ditto.
827 * inflow.c (terminal_save_ours): Ditto.
828
5247b418
AC
829 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
830 comments.
831
fc60962c
AC
832 * config/djgpp/fnchange.lst: Handle name clashes between
833 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
834 bfd/coff-tic80.c.
835
0542c381
AC
836 * i386-linux-tdep.h: Fix tipo.
837
5b924b9b
AF
8382002-09-18 Adam Fedor <[email protected]>
839
840 * MAINTAINERS: Add myself to the Write After Approval list.
841
5afc051b
JB
8422002-09-18 Jim Blandy <[email protected]>
843
844 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
845 texthigh and textlow to reader-specific structs caused
846 objfile_relocate to miss them. This is fixable, but the work that
847 the change was supposed to prepare GDB for never got done anyway.
848
eb944380
DC
8492002-09-18 David Carlton <[email protected]>
850
851 * MAINTAINERS: Alphabetize Write After Approval list.
852
948e66d9
DJ
8532002-09-18 Daniel Jacobowitz <[email protected]>
854
855 Fix PR gdb/709
856 * values.c (value_static_field): Call read_var_value.
857
dc604539
AC
8582002-09-18 Andrew Cagney <[email protected]>
859
860 * valops.c (hand_function_call): Align the initial stack pointer
861 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
862 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
863 return value.
864 * mips-tdep.c (mips_frame_align): New function.
865 (mips_gdbarch_init): Set frame_align.
866 * gdbarch.sh (FRAME_ALIGN): New method.
867 * gdbarch.h, gdbarch.c: Re-generate.
868
cb7e422f
ML
8692002-09-18 Michal Ludvig <[email protected]>
870
871 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
872 registers.
873
a094c6fb
AC
8742002-09-17 Andrew Cagney <[email protected]>
875
876 * NEWS: Mention that MIPS $fp behavior changed.
877 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
878 reference to FP_REGNUM.
879 (mipsnbsd_cannot_store_register): Ditto.
880 * mips-linux-nat.c: Update copyright.
881 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
882 (mips_linux_cannot_store_register): Ditto.
883 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
884 * config/mips/tm-mips.h: Update copyright.
885 (FP_REGNUM): Delete macro.
886 (MIPS_REGISTER_NAMES): Replace "fp" with "".
887 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
888 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
889 (mips_r3041_reg_names, mips_r3051_reg_names)
890 (mips_r3081_reg_names): Replace "fp" with "".
891 Fix PR gdb/480.
892
45cf40d1
TR
8932002-09-17 Theodore A. Roth <[email protected]>
894
895 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
896 generic_read_register_dummy() (PR gdb/703).
897 (avr_push_return_address): #if 0 out unused vars.
898 (avr_gdbarch_init): Enable use of avr_push_return_address().
899
c7e701b5
MS
9002002-09-17 Michael Snyder <[email protected]>
901
d76ba2a5 902 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
903 RTE will take care of it.
904
20bcf01c
AC
9052002-09-17 Andrew Cagney <[email protected]>
906
907 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
908 invalid, return SP_REGNUM.
909
009a9971 9102002-09-17 Michael Snyder <[email protected]>
21f87145
MS
911
912 * mips-tdep.c (mips_pop_frame): Read saved values of floating
913 point registers without sign extension.
914
135c175f
AC
9152002-09-17 Andrew Cagney <[email protected]>
916
917 * blockframe.c (deprecated_read_register_dummy): Rename
918 generic_read_register_dummy.
919 * frame.c (frame_unwind_signed_register): New function.
920 (frame_unwind_unsigned_register): New function.
921 * frame.h (frame_unwind_signed_register): Declare.
922 (frame_unwind_unsigned_register): Declare.
923 (deprecated_read_register_dummy): Rename
924 generic_read_register_dummy.
925
926 * h8300-tdep.c (h8300_frame_chain): Update.
927 (h8300_frame_saved_pc): Update.
928 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
929 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
930 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
931 (s390_frame_chain): Update.
932 * v850-tdep.c (v850_find_callers_reg): Update.
933 (v850_frame_saved_pc): Update.
934 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
935 (m32r_find_callers_reg): Update.
936 (m32r_frame_saved_pc): Update.
937 * sh-tdep.c (sh_find_callers_reg): Update.
938 (sh64_get_saved_pr): Update.
939 (sh_init_extra_frame_info): Update.
940 (sh_init_extra_frame_info): Update.
941 (sh64_init_extra_frame_info): Update.
942 (sh64_init_extra_frame_info): Update.
943 * mcore-tdep.c (mcore_find_callers_reg): Update.
944 (mcore_frame_saved_pc): Update.
945 (mcore_init_extra_frame_info): Update.
946 * i386-tdep.c (i386_frame_saved_pc): Update.
947 * ia64-tdep.c (ia64_frame_saved_pc): Update.
948 (ia64_init_extra_frame_info): Update.
949 (ia64_init_extra_frame_info): Update.
950 * d10v-tdep.c (d10v_frame_saved_pc): Update.
951 * cris-tdep.c (cris_init_extra_frame_info): Update.
952 * avr-tdep.c (avr_frame_chain): Update.
953 (avr_init_extra_frame_info): Update.
954 (avr_frame_saved_pc): Update.
955 * arm-tdep.c (arm_find_callers_reg): Update.
956 (arm_init_extra_frame_info): Update.
957 (arm_frame_saved_pc): Update.
958
a741e514
TT
9592002-09-17 Tom Tromey <[email protected]>
960
961 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
962 is "'".
963
d1a8e808
CV
9642002-09-17 Corinna Vinschen <[email protected]>
965
966 * MAINTAINERS: Remove "non multi-arched" text from h8300.
967 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
968 NEXT_PROLOGUE_INSN.
969 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
970 NEXT_PROLOGUE_INSN.
971
d9025a18
JB
9722002-09-16 Joel Brobecker <[email protected]>
973
974 * osfsolib.c: Remove file, replaced by solib-osf.c.
975 * Makefile.in: Remove compilation rules for osfsolib.c.
976
1b2ef1b6
DC
9772002-09-16 David Carlton <[email protected]>
978
979 * cp-valprint.c (cp_print_class_method): Correct args to
980 check_stub_method_group.
981
928e48af
CV
9822002-09-16 Corinna Vinschen <[email protected]>
983
984 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
985 `set architecture'. Unify naming convention of functions.
986 (h8300_skip_prologue): Improve prologue analysis.
987 (h8300_push_arguments): Rewritten to more closely match GCC's
988 bizarre argument-passing behavior, along with the comment describing
989 said behavior.
990 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
991 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
992 sim, remote-e7000.c, remote-hms.c and remote.c
993
5e3397bb
MK
9942002-09-15 Mark Kettenis <[email protected]>
995
996 * i386-tdep.c (gdb_print_insn_i386): Removed.
997 (i386_print_insn): New function.
998 (i386_gdbarch_init): Set print_insn to i386_print_insns.
999 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1000 tm_print_insn_info.
1001
f710f4fc
MK
10022002-09-14 Mark Kettenis <[email protected]>
1003
1004 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1005 zero.
1006
db54fef4
CV
10072002-09-14 Corinna Vinschen <[email protected]>
1008
1009 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1010 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1011 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1012
2becadee
CF
10132002-09-13 Christopher Faylor <[email protected]>
1014
1015 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1016
de17c821
DJ
10172002-09-13 Daniel Jacobowitz <[email protected]>
1018
1019 * gdbtypes.c (check_stub_method): Make static.
1020 (check_stub_method_group): New function.
1021 * gdbtypes.h: Update prototypes.
1022 * cp-support.c: New file.
1023 * cp-support.h: New file.
1024
1025 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1026 (update_method_name_from_physname): New function.
1027 (read_member_functions): Correct method names for operators
1028 and v3 constructors/destructors. Separate v2 constructors and
1029 destructors.
1030 * Makefile.in (stabsread.o): Update dependencies.
1031 (SFILES): Add cp-support.c.
1032 (COMMON_OBS): Add cp-support.o.
1033 (cp_support_h, cp-support.o): Add.
1034
1035 * cp-valprint.c (cp_print_class_method): Call
1036 check_stub_method_group instead of check_stub_method. Remove
1037 extraneous QUITs.
1038 * p-valprint.c (pascal_object_print_class_method): Likewise.
1039 * valops.c (search_struct_method): Likewise.
1040 (find_method_list, value_struct_elt_for_reference): Likewise.
1041
e76cff22
AC
10422002-09-13 Andrew Cagney <[email protected]>
1043
1044 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1045 * gdbarch.h, gdbarch.c: Regenerate.
1046
905abb3f
AC
10472002-09-13 Andrew Cagney <[email protected]>
1048
1049 * frame.c (find_saved_register): Delete function.
1050 * frame.h (find_saved_register): Delete declaration.
1051 Fix PR gdb/631.
1052
64159455
AC
1053Fri Sep 13 14:59:55 2002 Andrew Cagney <[email protected]>
1054
1055 * mips-tdep.c (read_next_frame_reg): Re-hack using
1056 frame_register_unwind.
1057
795e1e11
AC
1058Fri Sep 13 07:42:09 2002 Andrew Cagney <[email protected]>
1059
1060 * mips-tdep.c (mips_get_saved_register): Re-hack using
1061 frame_register_unwind.
1062
5720643c
JB
10632002-09-12 Joel Brobecker <[email protected]>
1064
1065 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1066 vector. Will be useful for Interix.
1067 * gdbarch.h, gdbarch.c: Regenerate.
1068
1069 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1070 name of the malloc function by NAME_OF_MALLOC.
1071
3bada2a2
JB
10722002-09-12 Joel Brobecker <[email protected]>
1073
1074 * value.h (find_function_in_inferior): Add const keyword to
1075 one of the parameters. Allows us to invoke this function with
1076 a const char *.
1077 * valops.c (find_function_in_inferior): Likewise.
1078
3db26b01
JB
10792002-09-12 Joel Brobecker <[email protected]>
1080
1081 * exec.c (xfer_memory): Fix compilation warning with old versions
1082 of GCC.
1083 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1084
17c5ed2c
DC
10852002-09-12 David Carlton <[email protected]>
1086
1087 * symtab.h: Run through gdb_indent.h.
1088 Add 2002 to Copyright year list.
1089
ecd1107e
AM
10902002-09-12 Alan Modra <[email protected]>
1091
1092 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1093 mach constants.
1094 * MAINTAINERS: Add myself to write after approval list.
1095
e64f66d1
JB
10962002-09-11 J. Brobecker <[email protected]>
1097
1098 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1099
f9395794
JB
11002002-09-11 J. Brobecker <[email protected]>
1101
1102 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1103 Interix.
1104
1a303dec
MS
11052002-06-05 Paul N. Hilfinger <[email protected]>
1106
1107 * procfs.c (do_detach): Clear current signal, not just fault.
1108 Corrects problem with breakpoint trap signal leaking to detached
1109 process on Tru64.
1110
c0219d42
MS
11112002-09-10 Michael Snyder <[email protected]>
1112
1113 * buildsym.c (finish_block): Protect against null pointer.
1114
9d84ac84
AC
11152002-09-10 Andrew Cagney <[email protected]>
1116
1117 * infcmd.c (default_print_registers_info): Send all output to
1118 ``file'' instead of ``gdb_stdout''.
1119
77d8f2b4
MS
11202002-09-10 Michael Snyder <[email protected]>
1121
1122 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1123 LONGEST, and use signed register read (addresses are sign-
1124 extended for mips).
1125
99656a61
SC
11262002-09-10 Stephane Carrez <[email protected]>
1127
1128 * event-loop.c (gdb_do_one_event): Make public.
1129 * event-loop.h (gdb_do_one_event): Declare.
1130
da12f4d8
JL
11312002-09-10 Jeff Law <[email protected]>
1132
1133 * infttrace.c (child_resume): Simplify and rework to avoid
1134 TT_PROC_CONTINUE.
1135
d0aee0c4
FF
11362002-09-09 Fred Fish <[email protected]>
1137
1138 * printcmd.c (print_scalar_formatted): "len" is the number of
1139 target bytes, NOT the number of target bits.
1140
7cb3ec5e
EZ
11412002-09-09 Elena Zannoni <[email protected]>
1142
1143 From: Emmanuel Thome' <[email protected]>
1144 * top.c (init_main): Set rl_terminal_name.
1145
4dc81987
AS
11462002-09-08 Aidan Skinner <[email protected]>
1147
1148 * ada-lang.c (ada_array_bound, ada_type_match,
1149 _initialize_ada_language): Fix K&R definitions.
1150 * ada-tasks.c (get_current_task): Fix K&R definitions.
1151 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1152
842330b4
CF
11532002-09-07 Christopher Faylor <[email protected]>
1154
1155 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1156 Add XP.
1157
43156d82
MK
11582002-09-06 Mark Kettenis <[email protected]>
1159
66da5fd8
MK
1160 * i386-tdep.c (i386_register_virtual_type,
1161 i386_register_convertible, i386_register_convert_to_virtual,
1162 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1163 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1164 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1165 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1166 Don't set push_arguments twice.
1167
4b218c18
MK
1168 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1169 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1170 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1171 sigtramp_end to NULL.
1172 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1173 defines.
1174 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1175
4cc314d5
MK
1176 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1177 whitespace.
1178
43156d82
MK
1179 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1180 * gdbarch.h, gdbarch.c: Re-generate.
1181 * blockframe.c (find_pc_sect_partial_function): Convert to use
1182 SIGTRAMP_START_P predicate.
1183
6672060b
MS
11842002-09-05 Michael Snyder <[email protected]>
1185
a90c3637
MS
1186 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1187 generic_dummy_frame method and old method. Also distinguish
1188 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 1189 (arm_extract_return_value): Use new regcache method.
a90c3637 1190
6672060b
MS
1191 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1192 adjustment that doesn't conform to the ABI.
1193 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1194 saved regcache, not from current regcache.
1195
299ffc64
AC
11962002-09-05 Andrew Cagney <[email protected]>
1197
1198 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1199 * README: Update.
1200
a3a2ee65
JT
12012002-09-04 Jason Thorpe <[email protected]>
1202
1203 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1204 if arm_apcs_32 is false.
1205
2bc7eea9
AC
12062002-09-04 Andrew Cagney <[email protected]>
1207
1208 GDB 5.3 branch created.
1209
8a55a7c5
TR
12102002-09-03 Theodore A. Roth <[email protected]>
1211
1212 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1213 generic_unwind_get_saved_register.
1214
e26fb1d7
DC
12152002-09-03 David Carlton <[email protected]>
1216
1217 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1218 argument (PR gdb/653). Update call to smash_to_method_type.
1219 (read_structure_scope): Update call to dwarf2_add_member_fn.
1220
30d52491
ML
12212002-09-03 Michal Ludvig <[email protected]>
1222
1223 * x86-64-linux-tdep.c: Include gdb_string.h
1224 * x86-64-linux-nat.c: Ditto.
1225
06891d83
JT
12262002-09-02 Jason Thorpe <[email protected]>
1227
1228 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1229 when YYDEBUG is set to 1.
1230 * c-exp.y: Likewise.
1231 * f-exp.y: Likewise.
1232 * jv-exp.y: Likewise.
1233 * m2-exp.y: Likewise.
1234 * p-exp.y: Likewise.
1235
7d400e77
JT
12362002-09-02 Jason Thorpe <[email protected]>
1237
1238 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1239 dependency list.
1240 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1241 solib_svr4_fetch_link_map_offsets to
1242 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1243 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1244 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1245 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1246 solib-svr4.o, and solib-legacy.o.
1247 * config/i386/tm-nbsd.h: Include solib.h.
1248
704a27c4
JT
12492002-09-02 Jason Thorpe <[email protected]>
1250
1251 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1252 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1253 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1254 comment noting that this needs its own target configuration.
1255 * config/i386/nbsd.mt: New file.
1256 * config/i386/nbsdaout.mt: Remove.
1257 * config/i386/nbsdelf.mt: Ditto.
1258 * config/i386/tm-nbsdaout.h: Ditto.
1259
d66198e1
JT
12602002-09-02 Jason Thorpe <[email protected]>
1261
1262 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1263 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1264 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1265 tdep->sigtramp_end.
1266 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1267 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1268 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1269
3cac699e
JT
12702002-09-02 Jason Thorpe <[email protected]>
1271
1272 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1273 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1274 * i386-tdep.h (i386bsd_init_abi): New prototype.
1275 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1276 function declaration.
1277 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1278 for NetBSD-a.out or NetBSD-ELF.
1279 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1280 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1281 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1282 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1283 and nbsd-tdep.h.
1284 (i386nbsd_pc_in_sigtramp): New function.
1285 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1286 i386nbsd_pc_in_sigtramp.
1287 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1288 and i386nbsdelf_init_abi OS ABI handlers.
1289 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1290 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1291
7010ca0a
MK
12922002-09-02 Mark Kettenis <[email protected]>
1293
1294 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1295 registers if the target really has them.
1296
6dd93b72
JT
12972002-08-31 Jason Thorpe <[email protected]>
1298
1299 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1300 than nbsd-tdep.h.
1301
2ca8ae21
JT
13022002-08-31 Jason Thorpe <[email protected]>
1303
1304 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1305 list.
1306 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1307 (alphanbsd_skip_sigtramp_frame): New functions.
1308 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1309 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1310 to alphanbsd_sigcontext_addr.
1311
3d9b49b0
JT
13122002-08-31 Jason Thorpe <[email protected]>
1313
1314 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1315 list.
1316 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1317 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1318 nbsd_pc_in_sigtramp.
1319 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1320 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1321 * nbsd-tdep.c: Include gdb_string.h.
1322 (nbsd_pc_in_sigtramp): New function.
1323 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1324 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1325 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1326 ppcnbsd_pc_in_sigtramp.
1327 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1328 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1329 shnbsd_pc_in_sigtramp.
1330 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1331 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1332 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1333
c860120c
PM
13342002-08-30 Pierre Muller <[email protected]>
1335
1336 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1337 watchpoints to NULL.
1338 (insert_breakpoints): set val field of watchpoints if NULL.
1339
1340
c7612d53
JB
13412002-08-29 Jim Blandy <[email protected]>
1342
1343 * symtab.c (lookup_symbol_aux): In the cases where we find a
1344 minimal symbol of an appropriate name and use its address to
1345 select a symtab to read and search, use `name' (as passed to us)
1346 as the demangled name when searching the symtab's global and
1347 static blocks, not the minsym's name.
1348
66609862
KS
13492002-08-29 Keith Seitz <[email protected]>
1350
1351 * stack.c (print_frame_info_base): Always set current_source_symtab
1352 and current_source_line.
1353
151fefe2
JB
13542002-08-29 Donn Terry <[email protected]>
1355
1356 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1357
bfb3754e
KS
13582002-08-28 Keith Seitz <[email protected]>
1359
1360 * stack.c (select_frame): Add FIXME concerning selected-frame
1361 events.
1362 (select_frame_command): Send selected-frame-level-changed
1363 event notification, but only if the level actually changed.
1364 (up_silently_base): Add selected-frame-level-changed event
1365 notification.
1366 (down_silently_base): Likewise.
1367
e822a2a0
AC
13682002-08-28 Andrew Cagney <[email protected]>
1369
1370 * Makefile.in: Update dependencies for all gdb/*.c files.
1371
309367d4
TT
13722002-08-27 Tom Tromey <[email protected]>
1373
1374 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1375 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1376 Update dependencies.
1377 * i387-tdep.c: Include gdb_string.h.
1378 * osabi.c: Likewise.
1379 * i386-linux-nat.c: Likewise.
1380 * lin-lwp.c: Likewise.
1381 * ax-gdb.c: Likewise.
1382 * signals/signals.c: Likewise.
1383 * jv-valprint.c: Likewise.
1384 * p-lang.c: Likewise.
1385 * c-valprint.c: Likewise.
1386 * cp-abi.c: Likewise.
1387
e1507482
EZ
13882002-08-27 Elena Zannoni <[email protected]>
1389
1390 * cli/cli-script.h (copy_command_lines): Export.
1391 * breakpoint.c: Include cli/cli-script.h.
1392 * Makefile.in (breakpoint.o): Update dependencies.
1393
c6510018
MS
13942002-08-26 Michael Snyder <[email protected]>
1395
1396 * breakpoint.c (insert_breakpoints): Protect all references
1397 to 'process_warning'. Shorten long lines.
1398
c2b8ed2c
MS
13992002-08-26 Joel Brobecker <[email protected]>
1400
1401 * cli/cli-script.c (copy_command_lines): New function.
1402 * defs.h (copy_command_lines): Export.
1403 * testsuite/gdb.base/commands.exp: New tests for commands
1404 attached to a temporary breakpoint, and for commands that
1405 delete the breakpoint they are attached to.
1406
14072002-08-26 Michael Snyder <[email protected]>
1408
1409 * breakpoint.c (bpstat_stop_status): Instead of copying the
1410 pointer to the breakpoint commands struct, make a new copy
1411 of the struct and point to that.
1412 (bpstat_clear): Free the commands struct.
1413 (bpstat_clear_actions): Free the commands struct.
1414 (bpstat_do_actions): Free the command actions. Also execute
1415 the local cleanups, instead of deleting them.
1416 (delete_breakpoint): Leave the commands field of the bpstat
1417 chain alone -- it will be freed later.
1418
64b84175
KB
14192002-08-26 Kevin Buettner <[email protected]>
1420
1421 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1422 deleted in 2002-08-20 commit. This function is still used by
1423 ppc-linux-nat.c.
1424
55970da6
KS
14252002-08-26 Keith Seitz <[email protected]>
1426
1427 * gdb-events.sh: Add selected-frame-level-changed event.
1428 * gdb-events.c: Regenerated.
1429 * gdb-events.h: Regenerated.
1430
a790ad35
SC
14312002-08-26 Stephane Carrez <[email protected]>
1432
1433 Fix PR gdb/393:
1434 * inflow.c (terminal_save_ours): New function to save terminal
1435 settings.
1436 * inferior.h (terminal_save_ours): Declare.
1437 * target.c (debug_to_terminal_save_ours): New function.
1438 (cleanup_target): Defaults to_terminal_save_ours.
1439 (update_current_target): Inherit to_terminal_save_ours.
1440 (setup_target_debug): Set to_terminal_save_ours.
1441 * target.h (target_terminal_save_ours): New to save terminal settings.
1442 (target_ops): New member to_terminal_save_ours.
1443 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1444 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1445 * inftarg.c (init_child_ops): Likewise.
1446 * m3-nat.c (init_m3_ops): Likewise.
1447 * procfs.c (init_procfs_ops): Likewise.
1448 * wince.c (init_child_ops): Likewise.
1449 * win32-nat.c (init_child_ops): Likewise.
1450 * sol-thread.c (init_sol_thread_ops): Likewise.
1451
c00dcbe9
MK
14522002-08-26 Mark Kettenis <[email protected]>
1453
3d7f4f49
MK
1454 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1455 use regcache_* functions.
1456 (i386_gdbarch_init): Set store_return_value instead of
1457 deprecated_store_return_value.
1458
c00dcbe9
MK
1459 * regcache.c (regcache_raw_write_signed,
1460 regcache_raw_write_unsigned): New functions.
1461 * regcache.h (regcache_raw_write_signed,
1462 regcache_raw_write_unsigned): New prototypes.
1463
0e0d15ca
AC
14642002-08-25 Andrew Cagney <[email protected]>
1465
1466 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1467 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1468 source file dependencies. Cleanup corresponding generator rules.
1469
d3b22ed5
AC
14702002-08-25 Andrew Cagney <[email protected]>
1471
1472 * regcache.h (register_offset_hack): Declare.
1473 (regcache_cooked_read_using_offset_hack): Declare.
1474 (regcache_cooked_write_using_offset_hack): Declare.
1475
1476 * regcache.c (register_offset_hack): New function.
1477 (regcache_cooked_read_using_offset_hack): New function.
1478 (regcache_cooked_write_using_offset_hack): New function.
1479 (regcache_dump): Check that the registers, according to their
1480 offset, are packed hard against each other.
1481 (cooked_xfer_using_offset_hack): New function.
1482
bb425013
AC
14832002-08-25 Andrew Cagney <[email protected]>
1484
1485 * regcache.c (struct regcache_descr): Add field register_type.
1486 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1487 in as a parameter
1488 (init_regcache_descr): Initialize register_type. Pass the descr
1489 to init_legacy_regcache_descr. Use register_type instead of
1490 REGISTER_VIRTUAL_TYPE.
1491 (register_type): New function.
1492 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1493 * regcache.h (register_type): Declare.
1494
d0403e00
AC
14952002-08-25 Andrew Cagney <[email protected]>
1496
1497 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1498 instead of deprecated_store_return_value. Fix fallout from
1499 2002-08-23 Andrew Cagney <[email protected]>.
1500
0ed04cce
AC
15012002-08-25 Andrew Cagney <[email protected]>
1502
1503 * regcache.c (max_register_size): New function.
1504 (init_legacy_regcache_descr): Ensure that max_register_size is
1505 large enough for REGISTER_VIRTUAL_SIZE.
1506 * regcache.h (max_register_size): Declare.
1507
46d79c04
AC
15082002-08-24 Andrew Cagney <[email protected]>
1509
1510 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1511 store_return_value.
1512 (e500_extract_return_value): Change type of valbuf pointer to
1513 void.
1514
853c7bd0
MK
15152002-08-24 Mark Kettenis <[email protected]>
1516
cd87e769
MK
1517 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1518 workaround.
1519
853c7bd0
MK
1520 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1521 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1522 long long) to prevent compiler warning on 64-bit systems.
1523
ebba8386
AC
15242002-08-23 Andrew Cagney <[email protected]>
1525
1526 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1527 (DEPRECATED_STORE_RETURN_VALUE): New method.
1528 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1529 * gdbarch.h, gdbarch.c: Re-generate.
1530
1531 * values.c (set_return_value): Pass current_regcache to
1532 STORE_RETURN_VALUE.
1533 * arch-utils.h (legacy_store_return_value): Declare.
1534 * arch-utils.c (legacy_store_return_value): New function.
1535 (legacy_extract_return_value): Update parameters.
1536
1537 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1538 STORE_RETURN_VALUE.
1539 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1540 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1541 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1542 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1543 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1544 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1545 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1546 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1547 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1548 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1549
1550 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1551 * i386-tdep.c (i386_extract_return_value): Update.
1552 * arch-utils.c (legacy_extract_return_value): Update.
1553 * frv-tdep.c (frv_gdbarch_init): Update.
1554 * cris-tdep.c (cris_gdbarch_init): Update.
1555 * d10v-tdep.c (d10v_gdbarch_init): Update.
1556 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1557 * m68k-tdep.c (m68k_gdbarch_init): Update.
1558 * mcore-tdep.c (mcore_gdbarch_init): Update.
1559 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1560 * s390-tdep.c (s390_gdbarch_init): Update.
1561 * sparc-tdep.c (sparc_gdbarch_init): Update.
1562 * sh-tdep.c (sh_gdbarch_init): Update.
1563 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1564 * v850-tdep.c (v850_gdbarch_init): Update.
1565 * avr-tdep.c (avr_gdbarch_init): Update.
1566 * ia64-tdep.c (ia64_gdbarch_init): Update.
1567 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1568 * vax-tdep.c (vax_gdbarch_init): Update.
1569 * alpha-tdep.c (alpha_gdbarch_init): Update.
1570 * arm-tdep.c (arm_gdbarch_init): Update.
1571 * mips-tdep.c (mips_gdbarch_init): Update.
1572 * i386-tdep.c (i386_gdbarch_init): Update.
1573
5bd8c6d0
AC
15742002-08-23 Andrew Cagney <[email protected]>
1575
1576 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1577 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1578
e73e1724
MK
15792002-08-24 Mark Kettenis <[email protected]>
1580
1581 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1582 problems.
1583
3e6564e1
JB
15842002-08-23 Joel Brobecker <[email protected]>
1585
1586 * infrun.c (handle_inferior_event): Move a comment outside of a
1587 function call, in order to avoid indent reformatting this part
1588 of the code in an unreadable way.
1589
81d0cc19
GS
15902002-08-23 Grace Sainsbury <[email protected]>
1591
1592 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1593 when breakpoints fail. Move general breakpoint error messages to
1594 insert_breakpoints.
1595 * breakpoint.c (insert_breakpoints): Change warnings when
1596 breakpoints are nto inserted to specify the type. Remove call to
1597 memory_error when hardware breakpoints can't be inserted. Remove
1598 multiple calls to warning so all messages are sent to the user at
1599 once.
1600 (delete_breakpoints): Make insert error messsages more explicit.
1601
17574093
DJ
16022002-08-23 Daniel Jacobowitz <[email protected]>
1603
1604 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1605 gdbserver/ChangeLog.
1606
8acc2935
MK
16072002-08-23 Mark Kettenis <[email protected]>
1608
dfe01d39
MK
1609 * i386-tdep.c: Include "objfiles.h".
1610 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1611 skip_trampoline_code.
1612 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1613 (CPLUS_MARKER): Define to '.'.
1614
8acc2935
MK
1615 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1616 member.
1617 (linux_corefile_thread_callback): Increase args->num_notes.
1618 (linux_make_note_section): Initialize thread_args.num_notes, and
1619 use it to determine whether notes for any threads were created.
1620
151fefe2 16212002-08-23 Donn Terry <[email protected]>
640b227f
JB
1622
1623 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1624 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1625 and PCUNKILL.
1626 (write_with_trace): Conditionalize out the switch branch handling
1627 PCSHOLD if the corresponding macro is not defined. Likewise for
1628 PRSABORT and PRSTOP.
1629 This change will be needed by the Interix port.
1630
e1507482
EZ
16312002-08-22 Elena Zannoni <[email protected]>
1632
1633 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1634 write_register wherever possible instead of manipulating the
1635 register bytes directly.
1636 Assign VALUE_CONTENTS to a variable and use that.
1637 The GPR numbers are now dependent on the architecture.
1638
96ff0de4
EZ
16392002-08-22 Elena Zannoni <[email protected]>
1640
1641 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1642 ev_offset fields.
1643 (skip_prologue): Add support for BookE/e500 instructions.
1644 (e500_extract_return_value): New function.
1645 (frame_get_saved_regs): Add support for saving ev registers and
1646 pseudo gpr's.
1647 (e500_store_return_value): New function.
1648 (rs6000_gdbarch_init): Move up default intializations of
1649 deprecated_extract_return_value and store_return_value. Overwrite
1650 init of store_return_value with e500 specific version.
1651 Set extract_return_value for e500.
1652
fbefca5b
EZ
16532002-08-22 Elena Zannoni <[email protected]>
1654
1655 * blockframe.c (generic_call_dummy_register_unwind): Use
1656 regcache_cooked_read to catch cases in which the variable is
1657 stored in a pseudo register.
1658
4d210288
AC
16592002-08-22 Andrew Cagney <[email protected]>
1660
1661 * NEWS: Mention that the i960 has been made obsolete.
1662 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1663 i960-tdep.c
1664 (remote-nrom.o): Obsolete target.
1665 (remote-nindy.o, i960-tdep.o): Ditto.
1666 * remote-nrom.c: Make file obsolete.
1667 * remote-nindy.c, remote-vx960.c: Ditto.
1668 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1669 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1670 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1671 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1672 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1673 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1674 i960-*-vxworks* obsolete.
1675 * MAINTAINERS: Note that the i960 is obsolete.
1676
6c0c456d
CV
16772002-08-21 Corinna Vinschen <[email protected]
1678
1679 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1680 detach to allow reinitialization.
1681
9f9d12b3
AC
16822002-08-22 Andrew Cagney <[email protected]>
1683
1684 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1685 attempt).
1686
ebeb39fe
JB
16872002-08-22 Jim Blandy <[email protected]>
1688
1689 * coffread.c (coff_symfile_read): Don't try to read the line
1690 number table from disk if the image file doesn't have a symbol
1691 table; we'll never actually look at the info anyway, and Windows
1692 ships DLL's with bogus file offsets for the line number data.
1693
5bf1c677
EZ
16942002-08-21 Elena Zannoni <[email protected]>
1695
1696 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1697 an e500 executable.
1698
71b8ef93
MS
16992002-08-21 Michael Snyder <[email protected]>
1700
1701 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1702 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1703 (DEFAULT_MIPS_TYPE): Delete unused macro.
1704 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1705 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1706
d174216d
JB
17072002-08-21 Jim Blandy <[email protected]>
1708
1709 * valops.c (value_cast): Simplify and correct logic for doing a
1710 static cast from a pointer to a base class to a pointer to a
1711 derived class.
1712
0ab7a791
AC
17132002-08-21 Andrew Cagney <[email protected]>
1714
1715 * infcmd.c (default_print_registers_info): Replace
1716 do_registers_info.
1717 (registers_info): Use gdbarch_print_registers_info instead of
1718 DO_REGISTERS_INFO.
1719 * inferior.h (default_print_registers_info): Replace
1720 do_registers_info.
1721 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1722 (DO_REGISTERS_INFO): Change to a predicate function.
1723 * gdbarch.h, gdbarch.c: Regenerate.
1724
e23792cc
KS
17252002-08-21 Keith Seitz <[email protected]>
1726
1727 * gdb-events.sh: Add target-changed event.
1728 * gdb-events.c: Regenerated.
1729 * gdb-events.c: Regenerated.
1730 * valops.c (value_assign): Add target-changed event notification
1731 to inlval_register, lval_memory, and lval_reg_frame_relative.
1732
9fb14e79
JB
17332002-08-21 Joel Brobecker <[email protected]>
1734
1735 * NEWS: Add an entry regarding the improvement of the next/step
1736 operation on Alpha Tru64 multi-processor machines.
1737
6d39a69f
AC
17382002-08-21 Andrew Cagney <[email protected]>
1739
72acd513
AC
1740 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1741 directores.
342af04b 1742 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1743 * Makefile.in (install-gdbtk): Move to install section.
1744 (rdi-share/libangsd.a): Move to end of file.
1745
fa5f27c7
AC
17462002-08-19 Andrew Cagney <[email protected]>
1747
1748 * frame.c (frame_register_unwind): When a register, set addrp to
1749 the register's byte.
1750
5a89d8aa
MS
17512002-08-20 Michael Snyder <[email protected]>
1752
1753 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1754 used locally, so move them from the target machine header to here.
1755 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1756 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1757 Make static.
1758 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1759
822e978b
AC
17602002-08-20 Andrew Cagney <[email protected]>
1761
1762 * NEWS: Mention that the Apollo line was made obsolete.
1763 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1764 m68*-hp-hpux* obsolete.
1765 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1766 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1767 * buildsym.c (make_blockvector): Make static.
1768 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1769 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1770 (ALLDEPFILES): Remove dstread.c.
1771 (dstread.o): Obsolete make rule.
1772 * dstread.c: Makefile obsolete.
1773 * dst.h: Ditto.
1774 * config/m68k/hp300hpux.mt: Ditto.
1775 * config/m68k/hp300hpux.mh: Ditto.
1776 * config/m68k/hp300bsd.mt: Ditto.
1777 * config/m68k/hp300bsd.mh: Ditto.
1778 * config/m68k/apollo68b.mt: Ditto.
1779 * config/m68k/apollo68v.mh: Ditto.
1780 * config/m68k/apollo68b.mh: Ditto.
1781
e41b17f0
MS
17822002-08-20 Michael Snyder <[email protected]>
1783
1784 * mips-tdep.c (mips_in_return_stub): Make static.
1785 (mips_gdbarch_init): Set in_solib_return_trampoline.
1786 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1787
d50355b6
MS
17882002-08-20 Michael Snyder <[email protected]>
1789
1790 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1791 * gdbarch.c, gdbarch.h: Regenerate.
1792 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1793 Add.
1794 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1795
757a7cc6
MS
17962002-08-20 Michael Snyder <[email protected]>
1797
1798 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1799 (mips_gdbarch_init): Set skip_trampoline_code,
1800 in_solib_call_trampoline.
1801 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1802 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1803
c8001721
EZ
18042002-08-20 Elena Zannoni <[email protected]>
1805
1806 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1807
1808 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1809 vector type for ev registers.
1810 (e500_pseudo_register_read): New function.
1811 (e500_pseudo_register_write): New function.
1812 (e500_dwarf2_reg_to_regnum): New function.
1813 (PPC_UISA_NOFP_SPRS): New macro.
1814 (PPC_EV_REGS): New macro.
1815 (PPC_GPRS_PSEUDO_REGS): New macro.
1816 (registers_e500): New register set for e500.
1817 (variants): Add e500 variant.
1818 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1819 before setting architectural dependent variations. Initialize ev
1820 registers numbers. Add case for e500 architecture. Set the
1821 number of pseudo registers.
1822
64366f1c
EZ
18232002-08-20 Elena Zannoni <[email protected]>
1824
1825 * rs6000-tdep.c: Clean up comments.
1826
7e78f0ca
AC
18272002-08-20 Andrew Cagney <[email protected]>
1828
1829 * h8300-tdep.c: Re-indent file.
1830
697f7479
JB
18312002-08-20 Jim Blandy <[email protected]>
1832
1833 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1834 default for this.
697f7479 1835
e86ae29f
KS
18362002-08-20 Keith Seitz <[email protected]>
1837
1838 * breakpoints.c (watch_command_1): Use internal breakpoint
1839 when setting a watchpoint_scope breakpoint.
1840
216b504f
EZ
18412002-08-20 Elena Zannoni <[email protected]>
1842
1843 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1844 (build_builtin_type_vec64i): Ditto.
1845 (build_builtin_type_vec128): Ditto.
1846 (build_builtin_type_vec128i): Ditto.
1847
f7ab6ec6
MS
18482002-08-19 Michael Snyder <[email protected]>
1849
1850 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1851 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1852 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1853 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1854 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1855 CALL_DUMMY_ADDRESS): Delete.
1856 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1857 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1858 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1859 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1860 push_return_address.
1861 (mips_register_raw_size, mips_eabi_use_struct_convention,
1862 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1863 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1864 mips_init_extra_frame_info, mips_eabi_push_arguments,
1865 mips_n32n64_push_arguments, mips_push_return_address,
1866 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1867 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1868
b5d1566e
MS
18692002-08-19 Michael Snyder <[email protected]>
1870
1871 * mips-tdep.c (mips_frame_num_args): New function.
1872 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1873 frame_saved_pc, frame_args_address, frame_locals_address,
1874 frame_num_args, and frame_args_skip.
1875 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1876 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1877 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1878 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1879
2f1488ce
MS
18802002-08-20 Michael Snyder <[email protected]>
1881
1882 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1883 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1884 * mips-tdep.c (mips_store_struct_return): New function.
1885 (mips_extract_struct_value_address): New function.
1886 (mips_gdbarch_init): Set store_struct_return and
1887 extract_struct_value_address.
1888
41ff2da1
DC
18892002-08-20 David Carlton <[email protected]>
1890
1891 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1892 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1893 (read_file_scope): Check that line_header is nonzero before
1894 decoding macro information.
1895
e5451d58
MK
18962002-08-20 Mark Kettenis <[email protected]>
1897
1898 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1899 flag the general-purpose registers as floating-point on targets
1900 that don't support the floating-point registers.
1901
4a6daafa
EZ
19022002-08-20 Elena Zannoni <[email protected]>
1903
1904 * rs6000-tdep.c (altivec_register_p): Delete.
1905 (rs6000_do_altivec_registers): Delete.
1906 (rs6000_altivec_registers_info): Delete.
1907 (rs6000_do_registers_info): Delete.
1908 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1909 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1910
ab4327e0
EZ
19112002-08-20 Elena Zannoni <[email protected]>
1912
1913 * infcmd.c (do_registers_info): Print vector registers in hex
1914 format only.
1915 (print_vector_info): Check that printing registers
1916 makes sense.
1917 (print_float_info): Ditto.
1918
cb1d2653
AC
19192002-08-20 Andrew Cagney <[email protected]>
1920
1921 * mips-tdep.c (mips_gdbarch_init): Update.
1922 (mips_o32_extract_return_value): Rewrite.
1923 (mips_o32_store_return_value): Rewrite.
1924 (mips_o32_xfer_return_value): New function.
1925 (mips_xfer_register): Tweak debug print message. Allow for
1926 buf_offset when dumping the value transfered.
1927
dfc3d9b2
AC
19282002-08-20 Andrew Cagney <[email protected]>
1929
1930 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1931 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1932 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1933 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1934 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1935
7807aa61
MS
19362002-08-14 Michael Snyder <[email protected]>
1937
1938 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1939
489461e2
EZ
19402002-08-19 Elena Zannoni <[email protected]>
1941
1942 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1943 register.
1944 (P): New macro to define a register as a pseudo register.
1945 (R, R4, R8, R16, FR32, R64, R0): Updated.
1946 (struct variant): Add new fields for number of pseudo registers
1947 and number of total registers.
1948 (tot_num_registers): New macro replacing....
1949 (num_registers): ...deleted macro.
1950 (num_registers): New function.
1951 (num_pseudo_registers): New function.
1952 (variants): Update all variants to intialize new fields correctly.
1953 Postpone initialization of number of pseudo regs and real regs.
1954 (init_variants): New function.
1955 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1956 registers offsets.
1957
fcaffe4c
DC
19582002-08-19 David Carlton <[email protected]>
1959
2c2738a0
DC
1960 * valops.c (search_struct_field): Change error message to treat
1961 return value of 0 from value_static_field as meaning that field is
1962 optimized out.
1963 (value_struct_elt_for_reference): Ditto.
1964 * values.c (value_static_field): Treat an unresolved location the
1965 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
1966 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1967 enclosed. Fix PR gdb/574.
fcaffe4c
DC
1968 * MAINTAINERS: Add self to Write After Approval list.
1969
88658117
AC
19702002-08-19 Andrew Cagney <[email protected]>
1971
1972 * mips-tdep.c (mips_xfer_register): New function.
1973 (mips_n32n64_extract_return_value): Rewrite.
1974 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1975 instead of deprecated_extract_return_value.
1976
21283beb
EZ
19772002-08-19 Elena Zannoni <[email protected]>
1978
1979 * rs6000-tdep.c (TDEP): Delete macro.
1980 (branch_dest): Replace use of TDEP macro with its body.
1981 (rs6000_pop_frame): Ditto.
1982 (rs6000_push_arguments): Ditto.
1983 (rs6000_skip_trampoline_code): Ditto.
1984 (rs6000_frame_saved_pc): Ditto.
1985 (rs6000_frame_chain): Ditto.
1986 (rs6000_register_name): Ditto.
1987 (rs6000_register_byte): Ditto.
1988 (rs6000_register_raw_size): Ditto.
1989 (rs6000_register_virtual_type): Ditto.
1990 (rs6000_register_convertible): Ditto.
1991 (rs6000_convert_from_func_ptr_addr): Ditto.
1992
bf072999
DJ
19932002-08-19 Daniel Jacobowitz <[email protected]>
1994
1995 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1996 conditionally.
1997 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1998 MIPS_LINUX_JB_ELEMENT_SIZE.
1999 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2000 for MAX_REGISTER_RAW_SIZE arrays.
2001 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2002 MIPS_LINUX_JB_ELEMENT_SIZE.
2003
9b949a49
PM
20042002-08-19 Pierre Muller <[email protected]>
2005
2006 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2007
6d3e79c6
AS
20082002-08-19 Aidan Skinner <[email protected]>
2009
2010 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2011 ada-valprint.c ada-tasks.c.
2012 (YYFILES): Add ada-exp.y.
2013 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2014 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2015 (ada-exp.tab.o): New target.
2016
06c0b04e
AC
20172002-08-18 Andrew Cagney <[email protected]>
2018
2019 * regcache.c (regcache_xfer_part): New function.
2020 (regcache_raw_read_part): New function.
2021 (regcache_raw_write_part): New function.
2022 (regcache_cooked_read_part): New function.
2023 (regcache_cooked_write_part): New function.
2024 * regcache.h (regcache_raw_read_part): Declare.
2025 (regcache_raw_write_part): Declare.
2026 (regcache_cooked_read_part): Declare.
2027 (regcache_cooked_write_part): Declare.
2028
92d1e331
DJ
20292002-08-18 Daniel Jacobowitz <[email protected]>
2030
2031 * remote.c (remote_open_1): Add async_p.
2032 (remote_async_open_1): Delete.
2033 (open_remote_target): Delete.
2034 (remote_open, extended_remote_open): Update calls to remote_open_1.
2035 (remote_async_open, extended_remote_async_open): Call
2036 remote_open_1 instead of remote_async_open_1.
2037
247055de
MK
20382002-08-19 Mark Kettenis <[email protected]>
2039
2040 * blockframe.c: Fix a few coding standard violations.
2041
641eda39
MK
20422002-08-19 Mark Kettenis <[email protected]>
2043
0b717710
MK
2044 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2045 here from ...
2046 * config/i386/tm-i386sco5.h: ... here. File removed.
2047 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2048
26d28e12 2049 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
2050 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2051 (TM_FILE): Set to tm-i386.h.
2052 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2053 * config/i386/tm-i386v.h: Remove file.
2054 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2055 instead of "i386/tm-i386v.h".
2056 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2057 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2058 "i386/tm-i386v.h".
2059 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2060 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2061 "i386/tm-i386.h".
2062
d4e0bab4
MK
20632002-08-18 Mark Kettenis <[email protected]>
2064
2065 * config/i386/nm-i386v.h: Add protection against
2066 multiple-inclusion.
2067 (i386_register_u_addr): Remove prototype.
2068 (register_u_addr): New prototype.
2069 (REGISTER_U_ADDR): Redefine accordingly.
2070 * i386v-nat.c: Improve several comments.
2071 (i386_register_u_addr): Change signature and rename to
2072 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2073 ubase variable.
2074
46cac009
AC
20752002-08-18 Andrew Cagney <[email protected]>
2076
2077 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2078 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2079 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2080 deprecated_extract_return_value.
2081 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2082 rename mips_o32o64_push_arguments.
2083 (mips_gdbarch_init): Update.
2084 (mips_extract_return_value): Delete.
2085 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2086 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2087 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2088 (mips_n32n64_extract_return_value): Clone
2089 mips_extract_return_value.
2090 (mips_store_return_value): Delete.
2091 (mips_o32_store_return_value): Clone mips_store_return_value.
2092 (mips_o64_store_return_value): Clone mips_store_return_value.
2093 (mips_eabi_store_return_value): Clone mips_store_return_value.
2094 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2095
d2e4a39e
AS
20962002-08-18 Aidan Skinner <[email protected]>
2097
0c30c098
AS
2098 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2099 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2100
21012002-08-18 Aidan Skinner <[email protected]>
2102
2103 * ada-lang.c: Run through gdb_indent.sh.
2104 * ada-lang.h: Run through gdb_indent.sh.
2105 * ada-tasks.c: Run through gdb_indent.sh.
2106 * ada-typeprint.c: Run through gdb_indent.sh.
2107 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 2108
01fc4e33
AC
21092002-08-18 Andrew Cagney <[email protected]>
2110
2111 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2112 ABI.
2113
d8ee244c
MK
21142002-08-18 Mark Kettenis <[email protected]>
2115
c38d8261
MK
2116 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2117
222db64c
MK
2118 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2119 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2120
c2848c82
MK
2121 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2122 write_register_gen instead of write_register_bytes.
2123
d8ee244c
MK
2124 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2125 i[3456]-*-osf1mk* configurations have been made obsolete.
2126 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2127 i[3456]86-*-osf1mk* hosts obsolete.
2128 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2129 targets obsolete.
2130 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2131 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2132 config/i386/i386m3.mt, config/i386/nm-m3.h,
2133 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2134 config/i386/i386mk.mh, config/i386/i386mk.mt,
2135 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2136 obsolete.
2137 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2138 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2139 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2140
61d8d407
AC
21412002-08-18 Andrew Cagney <[email protected]>
2142
2143 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2144 (hppa_value_returned_from_stack): Declare.
2145 (hppa_extract_return_value): Declare.
2146 * config/pa/hppa.mt: New file.
2147 * configure.tgt: Recognize hppa*-*-*.
2148 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2149
0c52bd59
MK
21502002-08-18 Mark Kettenis <[email protected]>
2151
2152 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2153 comment.
2154
b5686e99
MK
21552002-08-17 Mark Kettenis <[email protected]>
2156
2157 * top.c (gdb_rl_operate_and_get_next): Make sure
2158 operate-and-get-next functions correctly even when the history
2159 list is completely filled.
2160
c1bab85b
AC
21612002-08-18 Andrew Cagney <[email protected]>
2162
2163 * MAINTAINERS (Target Instruction Set Architectures): Rename
2164 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2165 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2166 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2167 already listed under Host/Native.
2168
2169 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2170 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2171 mips*-*-*.
2172
32089c7c
AC
21732002-08-17 Andrew Cagney <[email protected]>
2174
2175 * config/ia64/ia64.mt: New file.
2176 * config/alpha/alpha.mt: New file.
2177 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2178 ia64-linux-gnu. Mention that ia64-elf is broken.
2179 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2180
b4671f85
MK
21812002-08-17 Mark Kettenis <[email protected]>
2182
2183 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2184 generic_func_frame_valid instead of func_frame_valid.
2185
c8edd8b4
JB
21862002-08-16 Joel Brobecker <[email protected]>
2187
2188 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2189 procfs appears to be broken when debugging on multi-processor
2190 machines. So enable software single stepping in order to avoid
2191 using the procfs interface to do next/step operations, using
2192 internal breakpoints instead.
2193
2194 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2195 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2196 make this pc address equal to the value it would have if the
2197 system stepping capability was used. Also set a new flag used
2198 to ensure that we don't readjust the PC one more time later.
2199
2200 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2201 address by DECR_PC_AFTER_BREAK when software single step is
2202 in use for this architecture, as this has already been taken
2203 care of in handle_inferior_event().
2204
238617f6
JB
22052002-08-16 Joel Brobecker <[email protected]>
2206
2207 * infrun.c (handle_inferior_event): Minor reformatting, to make
2208 a rather long condition expression easier to read.
2209
541a7aac
AC
22102002-08-16 Andrew Cagney <[email protected]>
2211
2212 * Makefile.in (gdbtk.o): Move to end of file.
2213 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2214 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2215 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2216 (gdbtk-wrapper.o, gdbres.o): Ditto.
2217
f92d4a7b
AC
22182002-08-16 Andrew Cagney <[email protected]>
2219
2220 * Makefile.in (copying.o): Separate out compile rule.
2221 (hpux-thread.o, procfs.o, signals.o): Ditto.
2222 (v850ice.o, z8k-tdep.o): Ditto.
2223 (tui-file.o): Move to TUI section.
2224 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2225 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2226
1cce71eb
JB
22272002-08-16 Joel Brobecker <[email protected]>
2228
2229 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2230 skip_trampoline_code, for better namespace-proofing.
2231
2232 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2233
0851f23d
JB
22342002-08-16 Joel Brobecker <[email protected]>
2235
2236 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2237
f8d40ec8
JB
22382002-08-16 Joel Brobecker <[email protected]>
2239
2240 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2241 signal, check whether we hit a breakpoint before checking for a
2242 single step breakpoint. Otherwise, GDB fails to notice that a
2243 breakpoint has been hit when stepping onto a breakpoint.
2244
63d022e0
KS
22452002-08-16 Keith Seitz <[email protected]>
2246
2247 * gdb-events.sh (clear_gdb_event_hooks): New function.
2248 * gdb-events.c: Regenerate.
2249 * gdb-events.h: Regenerate.
2250
6e31adb3
AC
22512002-08-16 Andrew Cagney <[email protected]>
2252
2253 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2254 not_a_sw_breakpoint.
2255 * breakpoint.h (bpstat_stop_status): Add parameter names.
2256
c8189ed1
GS
22572002-08-16 Grace Sainsbury <[email protected]>
2258
2259 * remote.c (remote_insert_hw_breakpoint)
2260 (remote_remove_hw_breakpoint): Fix calculation of length field
2261 for Z-packet.
2262
d05285fa
MS
22632002-08-15 Michael Snyder <[email protected]>
2264
466d7106
MS
2265 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2266 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2267 (supply_fpregset): Ditto.
2268
d05285fa
MS
2269 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2270 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2271 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 2272 (TARGET_READ_SP): Delete.
bf1f5b4c 2273 (DO_REGISTERS_INFO): Delete.
102182a9
MS
2274 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2275 Delete.
2276 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2277 from macros to functions.
bf1f5b4c 2278
d05285fa
MS
2279 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2280 (mips_register_convertible, mips_register_convert_to_virtual,
2281 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
2282 (mips_read_sp): New function.
2283 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
2284 (mips_do_registers_info): Make static.
2285 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
2286 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2287 (mips_register_convert_from_type, mips_register_convert_to_type):
2288 New functions.
2289 (mips_gdbarch_init): Set up function_start_offset,
2290 register_virtual_size, pc_in_sigtramp.
d05285fa 2291
e76f1f2e
AC
22922002-08-15 Andrew Cagney <[email protected]>
2293
2294 * infcmd.c (vector_info): New function.
2295 (_initialize_infcmd): Add command "info vector".
2296 (print_vector_info): New function.
2297
2298 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2299 * gdbarch.h, gdbarch.c: Regenerate.
2300
4782dc19
AC
23012002-08-15 Andrew Cagney <[email protected]>
2302
2303 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2304 ``print_all''. Only print vector registers when ``print_all''.
2305
23e3a7ac
AC
23062002-08-15 Andrew Cagney <[email protected]>
2307
8e186fd6
AC
2308 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2309 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2310
23e3a7ac
AC
2311 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2312 Add `args' parameter.
2313 * gdbarch.h, gdbarch.c: Regenerate.
2314
2315 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2316
2317 * infcmd.c (float_info): Call print_float_info.
2318 (print_float_info): New function. By default, print the
2319 floating-point registers.
2320
2321 * arch-utils.h (default_print_float_info): Delete declaration.
2322 * arch-utils.c (default_print_float_info): Delete function.
2323
e0ca2bb9
MK
23242002-08-16 Mark Kettenis <[email protected]>
2325
3f733acc
MK
2326 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2327 out define.
2328
7d8d2918
MK
2329 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2330 FRAME.
2331
1c7cc583
MK
2332 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2333 * configure.host: Make i[3456]86-*-aix host obsolete.
2334 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2335 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2336 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2337 config/i386/xm-i386aix.h: Make files obsolete.
2338 * i386aix-nat.c: Make file obsolete.
2339 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2340 (i386aix-nat.o): Make target obsolete.
2341
e0ca2bb9
MK
2342 * config/i386/nm-gnu.h: Removed.
2343 * config/i386/nm-i386gnu.h: New file.
2344 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2345 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2346 Moved here from ...
2347 * config/i386/tm-i386gnu.h: ... here. Removed.
2348 * config/i386/xm-i386gnu.h: Removed.
2349 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2350 (NAT_FILE): Set to nm-i386gnu.h.
2351 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2352 * i386-tdep.c: New file.
2353 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2354 (i386gnu-tdep.o): Specify dependencies.
2355
16057ec7 23562002-08-15 Mark Kettenis <[email protected]>
61113f8b 2357
6b99ee2e
MK
2358 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2359 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2360 Adjust a few comments to reflect reality a bit closer.
2361 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2362 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2363 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2364 target_insert_watchpoint, target_remove_watchpoint):
2365 Move defines to ...
2366 * config/i386/nm-i386sco5.h: ... here.
2367 (kernel_u_size): Add prototype. Improve a few comments and add
2368 protection against multiple inclusion.
2369
d9a6f65c
MK
2370 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2371 out define.
2372
047eff6a
MK
2373 * uw-thread.c (SP_ARG0): Define if not already defined.
2374 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2375
dcdb1290
MK
2376 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2377
5d2d0b2a
MK
2378 * config/i386/tm-i386.h: Don't include "regcache.h".
2379
61113f8b
MK
2380 * i387-tdep.h (i387_print_float_info): New prototype.
2381 * i387-tdep.c (print_i387_value, print_i387_ext,
2382 print_i387_status_word, print_i387_control_word): Add `struct
2383 ui_file *' argument and use it for output.
2384 (i387_print_float_info): Renamed from i387_float_info. Add
2385 `struct gdbarch *' and `struct ui_file *' arguments and use the
2386 latter for output.
2387 * i386-tdep.c: Include "i387-tdep.h".
2388 (i386_gdbarch_init): Set print_float_info.
2389 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2390 (FLOAT_INFO): Remove define.
2391
46e0f506
MS
23922002-08-13 Michael Snyder <[email protected]>
2393
2394 * mips-tdep.c (mips_push_arguments): Rename to
2395 mips_eabi_push_arguments, and tune for EABI.
2396 (MIPS_REGS_HAVE_HOME_P): Delete.
2397 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2398 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2399 Delete references to mips_regs_have_home_p.
2400
409268de
KS
24012002-08-14 Keith Seitz <[email protected]>
2402
2403 * Makefile.in (install-gdbtk): Create insight plugin directory.
2404 Install plugins.tcl file.
2405
ffc6a242
KS
24062002-08-14 Keith Seitz <[email protected]>
2407
2408 * configure.in: Move SUBDIRS to near top of the file so that
2409 --enable options may add things to it.
2410 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2411 * configure: Regenerate.
2412
ebafbe83
MS
24132002-08-13 Michael Snyder <[email protected]>
2414
2415 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2416 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2417 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2418
32f6f25d
AC
24192002-08-13 Andrew Cagney <[email protected]>
2420
2421 * vax-tdep.c (vax_get_saved_register): Delete function.
2422 (vax_gdbarch_init): Update.
2423 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2424 (ns32k_gdbarch_init): Update.
2425 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2426 (alpha_gdbarch_init): Update.
2427
53826de9
AC
24282002-08-13 Andrew Cagney <[email protected]>
2429
2430 * regcache.c (init_regcache_descr): Overallocate the
2431 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2432 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2433 nr_raw_registers.
2434 (set_register_cached): Add range checking assertions. Use
2435 current_regcache.
2436
16057ec7 24372002-08-13 Mark Kettenis <[email protected]>
7d12f766
MK
2438
2439 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2440 numbers for MMX registers.
2441
7b4c2dce
AC
24422002-08-13 Andrew Cagney <[email protected]>
2443
2444 * i386-tdep.c (i386_gdbarch_init): Use
2445 generic_unwind_get_saved_register.
2446
1e03ad20
KB
24472002-08-13 Kevin Buettner <[email protected]>
2448
2449 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2450 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2451 target vector.
2452 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2453 Delete. Add comment regarding this now-deleted target method.
2454
548bcbec
SC
24552002-08-13 Stephane Carrez <[email protected]>
2456
2457 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2458 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2459 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2460 real PC and the page number (if it's within the memory bank window).
2461 (m68hc11_pseudo_register_write): Likewise when saving.
2462 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2463 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2464 (m68hc11_register_raw_size): And use 32-bit for it.
2465 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2466 16K memory bank is used by the prog; also use the virtual pc.
2467
7df11f59
SC
24682002-08-13 Stephane Carrez <[email protected]>
2469
2470 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2471 (m68hc11_gdbarch_init): Install it in gdbarch.
2472 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2473 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2474 (MSYMBOL_SIZE): New for documentation.
2475 (insn_return_kind): Enum to specify how a function returns.
2476 (frame_extra_info): Cleanup and record the return mode.
2477 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2478 register in address computation.
2479 (m68hc11_get_return_insn): New to obtain the return instruction used
2480 by the function.
2481 (m68hc11_frame_init_saved_regs): Take into account the return
2482 instruction used by the function for far and interrupt functions.
2483 (m68hc11_init_extra_frame_info): Take into account page register.
2484 (m68hc11_frame_args_address): Adjust according to the return mode.
2485 (show_regs): Print page register only when it's used.
2486
5706502a
SC
24872002-08-13 Stephane Carrez <[email protected]>
2488
2489 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2490 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2491 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2492 registers.
2493 (m68hc11_register_raw_size): Likewise.
2494
28fc6740
AC
24952002-08-13 Andrew Cagney <[email protected]>
2496
2497 * i386-tdep.c (i386_register_name): Handle mmx registers.
2498 (mmx_regnum_p): New function.
2499 (i386_mmx_names): New array.
2500 (mmx_num_regs): New variable.
2501 (i386_pseudo_register_read): New function.
2502 (i386_pseudo_register_write): New function.
2503 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2504
2505 * regcache.c (regcache_raw_read_unsigned): New function.
2506 (regcache_raw_read_signed): New function.
2507 * regcache.h (regcache_raw_read_unsigned): Declare.
2508 (regcache_raw_read_signed): Declare.
2509
a378f419
AC
25102002-08-13 Andrew Cagney <[email protected]>
2511
2512 * regcache.c (regcache_raw_read_as_address): Delete function.
2513 (regcache_cooked_read_signed): New function.
2514 (regcache_cooked_read_unsigned): New function.
2515 * regcache.h (regcache_cooked_read_signed): Declare.
2516 (regcache_cooked_read_unsigned): Declare.
2517 (regcache_raw_read_as_address): Delete declaration.
2518
2519 * blockframe.c (generic_read_register_dummy): Use
2520 regcache_cooked_read_unsigned.
2521 * i386-tdep.c (i386_extract_struct_value_address): Use
2522 regcache_cooked_read_unsigned.
2523
81967506
SC
25242002-08-13 Stephane Carrez <[email protected]>
2525
2526 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2527 double sizes according to ELF ABI flags.
2528 (gdbarch_tdep): Record elf_flags.
2529
ffe1f3ee
SC
25302002-08-13 Stephane Carrez <[email protected]>
2531
2532 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2533 (m6812_prolog): They can appear in 68HC12 function prologue.
2534 (m68hc11_frame_chain): Cleanup.
2535
98216c5d
AC
25362002-08-12 Andrew Cagney <[email protected]>
2537
2538 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2539 declarations.
2540 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2541 (i386_linux_register_raw_size): Delete function.
2542 (i386_linux_init_abi): Update.
2543 * i386-tdep.c (i386_register_raw_size): Delete function.
2544 (i386_register_byte): Delete function.
2545 (i386_gdbarch_init): Update.
2546 (i386_register_size): Delete array.
2547 (i386_register_offset): Delete array.
2548
2549 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2550 (REGISTER_RAW_SIZE): Delete macro.
2551 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2552 (REGISTER_BYTE): Delete macro.
2553
3b19021e
AS
25542002-08-11 Aidan Skinner <[email protected]>
2555
2556 * ada-lang.c (ada_lookup_partial_symbol)
2557 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2558 prototype names so that grep ^func works properly.
2559
2560 * ada-lang.c (ada_array_element_type)
2561 (ada_lookup_partial_symbol): Fix typos in parameter list.
2562
2563 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2564 Fix prototype names so that grep ^func works properly.
2565
b063e7a2
AC
25662002-08-10 Andrew Cagney <[email protected]>
2567 Elena Zannoni <[email protected]>
2568 Martin M. Hunt <[email protected]>
2569
2570 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2571 (build_builtin_type_vec128i): Set the vector bit.
2572 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2573 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2574 (build_builtin_type_vec64): New function.
2575 (build_builtin_type_vec64i): New function.
2576 (build_gdbtypes): Initialize builtin_type_vec64 and
2577 builtin_type_vec64i.
2578
a7e3c2ad
AC
25792002-08-09 Andrew Cagney <[email protected]>
2580
2581 * regcache.c (regcache_dump): Compare the register offset
2582 with REGISTER_BYTE.
2583 * arch-utils.c (generic_register_byte): New function.
2584 * arch-utils.h (generic_register_byte): Declare.
2585 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2586 * gdbarch.h, gdbarch.c: Regenerate.
2587
af030b9a
AC
25882002-08-09 Andrew Cagney <[email protected]>
2589
2590 * regcache.c: Include "gdbcmd.h"
2591 (_initialize_regcache): Add commands "maintenance print
2592 registers", "maintenance print raw-registers" and "maintenance
2593 print cooked-registers".
2594 (enum regcache_dump_what): Define.
2595 (dump_endian_bytes): New function.
2596 (regcache_dump): New function.
2597 (regcache_print): New function.
2598 (maintenance_print_registers): New function.
2599 (maintenance_print_raw_registers): New function.
2600 (maintenance_print_cooked_registers): New function.
2601 * Makefile.in (regcache.o): Update dependencies.
2602
cb3d25d1
MS
26032002-08-09 Michael Snyder <[email protected]>
2604
2605 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2606 (mips_push_arguments): Correct some comments. Use paddr_nz
2607 for printing addresses in debug output. Replace static
2608 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2609 (mips_n32n64_push_arguments): New function, cloned from
2610 mips_push_arguments and tuned for the n32/n64 ABI.
2611 (mips_push_register): Buffer needs dynamic allocation.
2612 (mips_print_register): Ditto.
2613 (do_gp_register_row): Ditto.
2614 (mips_store_return_value): Ditto.
2615 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2616
2163ab9d
DH
26172002-08-09 Don Howard <[email protected]>
2618
2619 * memattr.c (mem_info_command): Print special case of upper bound
2620 as max CORE_ADDR + 1.
2621
b78bcb18
MS
26222002-08-08 Michael Snyder <[email protected]>
2623
2624 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2625 returns structs by ref if they're too big to fit in two registers.
2626
ffabd70d
KB
26272002-08-09 Kevin Buettner <[email protected]>
2628
2629 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2630 saved regs value.
2631 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2632 mips_find_saved_regs().
2633 (mips_pop_frame): Likewise.
2634
fbcdb4a3
KB
26352002-08-09 Kevin Buettner <[email protected]>
2636
2637 * blockframe.c (frame_saved_regs_register_unwind): Revise
2638 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2639 frames are in use.
2640
3c3bea1c
GS
26412002-08-09 Grace Sainsbury <[email protected]>
2642
2643 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2644 T-packets; the 'a' is not taken as a register number.
2645 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2646 (remote_stopped_data_address): New functions; add to target
2647 vector.
2648 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2649 prototypes to match other implementations of this
2650 function. replace integer argument with pointer -- the length
2651 field in the Z-packet is the length of what is pointed to or 1 if
2652 pointer is null. Add to target vector.
2653 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2654 target vector.
2655
2656 From Mark Salter:
2657 * remote.c (remote_wait): Add support to extract optional
2658 watchpoint information from T-packet. Ignore unrecognized
2659 optional info in T-packet.
2660 (remote_async_wait): Ditto.
2661
5d1d95de
CV
26622002-08-09 Corinna Vinschen <[email protected]>
2663
2664 * cli/cli-dump.c: Change fopen modes to use binary open modes
2665 as defined in include/fopen-bin.h throughout.
2666
c86b5b38
MS
26672002-08-08 Michael Snyder <[email protected]>
2668
2669 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2670
b30590dc
KB
26712002-08-08 Kevin Buettner <[email protected]>
2672
2673 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2674 assertion failure by returning early after a warning.
2675
498868ed
KB
26762002-08-08 Kevin Buettner <[email protected]>
2677
2678 * mips-tdep.c (mips_find_saved_regs): Make static.
2679 (mips_frame_init_saved_regs): New function.
2680 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2681 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2682 (mips_find_saved_regs): Delete declaration.
2683
b2dd6311
GS
26842002-08-08 Grace Sainsbury <[email protected]>
2685
3c3bea1c
GS
2686 * remote.c (remote_wait, remote_async_wait): Change
2687 thread_num from int to ULONGEST.
2688 (unpack_varlen_hex): Change result parameter from
2689 int * to ULONGEST *.
b2dd6311 2690
ea47855f
AC
26912002-08-08 Andrew Cagney <[email protected]>
2692
2693 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2694 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2695 powerpc*-*-*.
2696 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2697
69db8bae
AC
26982002-08-08 Andrew Cagney <[email protected]>
2699
2700 * gcore.c (override_derive_stack_segment): Delete variable.
2701 (preempt_derive_stack_segment): Delete function.
2702 (derive_stack_segment): Delete function.
2703 (default_derive_stack_segment): Renamed to derive_stack_segment.
2704 (override_derive_heap_segment): Delete variable.
2705 (preempt_derive_heap_segment): Delete function.
2706 (derive_heap_segment): Delete function.
2707 (default_derive_heap_segment): Rename to derive_heap_segment.
2708
cb811fe7
MS
27092002-08-06 Michael Snyder <[email protected]>
2710
2711 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2712 * mips-tdep.c (mips_EABI_use_struct_convention,
2713 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2714 New functions. (mips_use_struct_convention): Delete.
2715 (mips_gdbarch_init): set use_gdbarch_convention.
2716
8b389c40
MS
27172002-08-06 Michael Snyder <[email protected]>
2718
2719 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2720 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2721 mips_o32_reg_struct_has_addr): New functions.
2722 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2723
5c27f28a
AC
27242002-08-07 Andrew Cagney <[email protected]>
2725
2726 * regcache.c (pseudo_register): Delete function.
2727 (fetch_register): Delete function.
2728 (store_register): Delete function.
2729 (regcache_raw_read, legacy_read_register_gen): Use
2730 target_fetch_registers instead of fetch_register.
2731 (legacy_write_register_gen, regcache_raw_write): Use
2732 target_store_register instead of store_register.
2733 (write_register_bytes): Ditto.
2734
2735 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2736 (STORE_PSEUDO_REGISTER): Delete.
2737 * gdbarch.h, gdbarch.c: Regenerate.
2738
5b331675
CV
27392002-08-06 Corinna Vinschen <[email protected]>
2740
2741 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2742 write dump file binary.
2743
6acdf5c7
MS
27442002-08-05 Michael Snyder <[email protected]>
2745
2746 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2747 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2748 (mips_gdbarch_init): Set N32 target to be mips64.
2749
b2f01c35
KB
27502002-08-06 Kevin Buettner <[email protected]>
2751
2752 * frame.c (find_saved_register): Break out of loop once saved
2753 register address is found. Don't mention sparc in loop comment
2754 anymore.
2755
63db5580
KB
27562002-08-06 Kevin Buettner <[email protected]>
2757
2758 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2759 mips_default_saved_regsize to 8.
2760
5e34e75e
AC
27612002-08-06 Andrew Cagney <[email protected]>
2762
2763 * gcore.c: Do not include <sys/procfs.h>.
2764 * Makefile.in (gcore.o): Update dependencies.
2765
eb4c54a2
AC
27662002-08-06 Andrew Cagney <[email protected]>
2767
2768 * configure.tgt: Make arc-*-* obsolete.
2769 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2770 * MAINTAINERS: Make arc-elf obsolete.
2771 * arc-tdep.c: Make file obsolete.
2772 * config/arc/arc.mt: Ditto.
2773 * config/arc/tm-arc.h: Ditto.
2774
ced15480
TR
27752002-08-05 Theodore A. Roth <[email protected]>
2776
c1bab85b 2777 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2778
b4743822
AC
27792002-08-05 Andrew Cagney <[email protected]>
2780
2781 * mcore-tdep.c (mcore_gdbarch_init): Use
2782 generic_unwind_get_saved_register instead of
2783 generic_get_saved_register.
2784 * v850-tdep.c (v850_gdbarch_init): Ditto.
2785 * frv-tdep.c (frv_gdbarch_init): Ditto.
2786 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2787 * s390-tdep.c (s390_gdbarch_init): Ditto.
2788 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2789 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2790 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2791
3956d554
JB
27922002-08-05 Joel Brobecker <[email protected]>
2793
2794 * objfiles.h: Add missing #include "symfile.h"
2795
2796 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2797
8249c0d6
AC
27982002-08-04 Andrew Cagney <[email protected]>
2799
2800 From 2002-08-01 david carlton <[email protected]>:
2801 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2802 of FIELD_BITSIZE.
2803
b9d14705
DJ
28042002-08-04 Daniel Jacobowitz <[email protected]>
2805
2806 * NEWS: Cleanup and nitpick.
2807
dd73b9bb
AC
28082002-08-03 Andrew Cagney <[email protected]>
2809
2810 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2811
043a27f8
AC
28122002-08-03 Andrew Cagney <[email protected]>
2813
2814 * Makefile.in (gdbtk-bp.o): Update dependencies.
2815 (gdbtk-register.o): Ditto.
2816 (gdbtk-varobj.o): Ditto.
2817
46ce284d
AC
28182002-08-03 Andrew Cagney <[email protected]>
2819
2820 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2821 m68hc11_fetch_pseudo_register.
2822 (m68hc11_pseudo_register_write): Replace
2823 m68hc11_store_pseudo_register.
2824 (m68hc11_gdbarch_init): Update.
2825
b66d6d2e
AC
2826Fri Aug 2 15:53:50 2002 Andrew Cagney <[email protected]>
2827
2828 * gdbarch.sh: Include "gdb_string.h".
2829 * gdbarch.c: Regenerate.
2830
2831 * regcache.c: Include "gdb_string.h".
2832 * ax-general.c: Ditto.
2833 * varobj.c: Ditto.
2834 * std-regs.c: Ditto.
2835 * fbsd-proc.c: Ditto.
2836 * thread.c: Ditto.
2837
2838 * Makefile.in (regcache.o): Update dependencies.
2839 (thread.o, gdbarch.o): Ditto.
2840 (ax-general.o, gdbarch.o): Ditto.
2841 (varobj.o, std-regs.o): Ditto.
2842 (fbsd-proc.o): Specify dependencies.
2843
29e1842b
AC
28442002-08-02 Andrew Cagney <[email protected]>
2845
2846 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2847 regnum.
2848 (regcache_cooked_write): Ditto.
2849
68365089
AC
28502002-08-02 Andrew Cagney <[email protected]>
2851
2852 * regcache.c (regcache_cooked_read): New function.
2853 (regcache_cooked_write): New function.
2854 (read_register_gen): Rewrite using regcache_cooked_read.
2855 (write_register_gen): Rewrite using regcache_cooked_write.
2856
2857 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2858 Declare.
2859
d8124050
AC
28602002-08-02 Andrew Cagney <[email protected]>
2861
2862 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2863 Replace the architecture methods register_read and register_write.
2864 * gdbarch.h, gdbarch.c: Regenerate.
2865 * regcache.c (init_regcache_descr): Update.
2866 (read_register_gen): Update.
2867 (write_register_gen): Update.
2868 (supply_register): Update comment.
2869
2870 * sh-tdep.c (sh_gdbarch_init): Update.
2871 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2872 `regcache' and `gdbarch' parameters. Make `buffer' a void
2873 pointer. Update code.
2874 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2875 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2876 void pointer. Update code.
2877 (sh64_register_write): Delete.
2878 (sh4_register_read): Delete.
2879 (sh64_register_read): Delete.
2880 (sh4_register_write): Delete.
2881 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2882 void pointer, `to' parameter a void pointer.
2883 (sh_sh64_register_convert_to_raw): Ditto.
2884
a6425924
KB
28852002-08-01 Kevin Buettner <[email protected]>
2886
2887 * mips-tdep.c (mips_register_virtual_type): Use architecture
2888 invariant return values.
2889
ff5922b5
AC
28902002-08-01 Andrew Cagney <[email protected]>
2891
2892 * linux-proc.c: Include "gdb_string.h".
2893 * Makefile.in (linux-proc.o): Update dependency list.
2894
32a6503c
KB
28952002-08-01 Kevin Buettner <[email protected]>
2896
2897 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2898 comment.
2899
ccaa32c7
GS
29002002-08-01 Grace Sainsbury <[email protected]>
2901
2902 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2903 to_insert_watchpoint, to_remove_watchpoint,
2904 to_stopped_by_watchpoint, to_stopped_data_address,
2905 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2906 target vecctor. Define their corresponding macros so they call
2907 them.
2908
2909 * target.c: Add default and debug versions of for
2910 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2911 to_insert_watchpoint, to_remove_watchpoint,
2912 to_stopped_by_watchpoint, to_stopped_data_address,
2913 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2914
78fde5f8
KB
29152002-08-01 Kevin Buettner <[email protected]>
2916
2917 * mips-tdep.c (mips_register_virtual_type): New function.
2918 (mips_gdbarch_init): Register mips_register_virtual_type()
2919 with gdbarch machinery.
2920 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2921 this file instead of tm-bigmips.h.
2922 (MIPS_REGSIZE): Delete this macro.
2923 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2924 multiarch version in mips-tdep.c will be found.
2925
db034ac5
AC
29262002-08-01 Andrew Cagney <[email protected]>
2927
2928 * NEWS: Menion that CHILL has been made obsolete.
2929
2930 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
2931 * stabsread.c (read_range_type): Ditto.
2932 * gdbtypes.h: Ditto.
2933 * language.c (binop_type_check): Ditto.
2934 (binop_result_type): Ditto.
2935 (integral_type): Ditto.
2936 (character_type): Ditto.
2937 (string_type): Ditto.
2938 (boolean_type): Ditto.
2939 (structured_type): Ditto.
2940 (lang_bool_type): Ditto.
2941 (binop_type_check): Ditto.
2942 * language.h (_LANG_chill): Ditto.
2943 * dwarfread.c (set_cu_language): Ditto.
2944 * dwarfread.c (CHILL_PRODUCER): Ditto.
2945 * dwarfread.c (handle_producer): Ditto.
2946 * expression.h (enum exp_opcode): Ditto.
2947 * eval.c: Ditto for comments.
2948 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2949 * expprint.c (print_subexp): Ditto.
2950 (print_subexp): Ditto.
2951 * valops.c (value_cast): Ditto.
2952 (search_struct_field): Ditto.
2953 * value.h (COERCE_VARYING_ARRAY): Ditto.
2954 * symfile.c (init_filename_language_table): Ditto.
2955 (add_psymbol_with_dem_name_to_list): Ditto.
2956 * valarith.c (value_binop): Ditto.
2957 (value_neg): Ditto.
2958 * valops.c (value_slice): Ditto.
2959 * symtab.h (union language_specific): Ditto.
2960 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2961 (SYMBOL_DEMANGLED_NAME): Ditto.
2962 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2963 * defs.h (enum language): Ditto.
2964 * symtab.c (got_symtab): Ditto.
2965 * utils.c (fprintf_symbol_filtered): Ditto.
2966
2967 * ch-typeprint.c: Make file obsolete.
2968 * ch-valprint.c: Make file obsolete.
2969 * ch-lang.h: Make file obsolete.
2970 * ch-exp.c: Make file obsolete.
2971 * ch-lang.c: Make file obsolete.
2972
2973 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2974 CHILL_LIB.
2975 (TARGET_FLAGS_TO_PASS): Ditto.
2976 (CHILLFLAGS): Obsolete.
2977 (CHILL): Obsolete.
2978 (CHILL_FOR_TARGET): Obsolete.
2979 (CHILL_LIB): Obsolete.
2980 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2981 ch-valprint.c.
2982 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2983 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2984 ch-lang.o.
2985 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2986 targets.
2987
8aaf0b47
JB
29882002-07-31 Joel Brobecker <[email protected]>
2989
2990 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2991 This does not change anything at the moment, but will be helpful
2992 later when full Ada support is integrated.
2993
f3a7b3a5
KB
29942002-07-31 Kevin Buettner <[email protected]>
2995
2996 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2997 help message.
2998
fb850278
KB
29992002-07-31 Kevin Buettner <[email protected]>
3000
3001 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3002 and save it in a local variable. Use variable in later test.
3003
e3bddbfa
KB
30042002-07-31 Kevin Buettner <[email protected]>
3005
3006 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3007 test. (Thanks to Daniel Jacobowitz.)
3008
28d169de
KB
30092002-07-31 Kevin Buettner <[email protected]>
3010
3011 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3012 (mips_abi_strings): Add "n64".
3013 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3014
7fe7e44e
KB
30152002-07-31 Kevin Buettner <[email protected]>
3016
3017 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3018 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3019
c6caf090
KB
30202002-07-31 Kevin Buettner <[email protected]>
3021
3022 * utils.c (host_pointer_to_address, address_to_host_pointer):
3023 Use gdb_assert() instead of explicit call to internal_error().
3024
c41669e0
KB
30252002-07-30 Kevin Buettner <[email protected]>
3026
3027 * Makefile.in (rs6000-nat.o): Update dependencies.
3028
3029 From Nicholas Duffek:
3030 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3031 (aix-thread.o): New rule.
3032 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3033 * config/powerpc/aix432.mh: New file.
3034
2fda4977
DJ
30352002-07-30 Daniel Jacobowitz <[email protected]>
3036
3037 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3038 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3039 (fetch_core_registers, ppc_linux_supply_gregset)
3040 (ppc_linux_supply_fpregset): New functions.
3041 (ppc_linux_regset_core_fns): New.
3042 (_initialize_ppc_linux_tdep): Call add_core_fns.
3043 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3044 and ppc_linux_supply_gregset.
3045 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3046 (supply_fpregset): Call ppc_linux_supply_fpregset.
3047 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3048 corelow.o.
3049 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3050
729051e6
DJ
30512002-07-30 Daniel Jacobowitz <[email protected]>
3052
3053 * symtab.c (lookup_symbol): Demangle before lowercasing.
3054
5f8a3188
AC
30552002-07-30 Andrew Cagney <[email protected]>
3056
3057 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3058 declaration.
3059 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3060 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3061 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3062 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3063 "gdb_string.h".
3064 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3065 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3066 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3067 (avr-tdep.o, mon960-rom.o): Ditto.
3068 (aout_stabs_gnu_h): Define.
3069 (symtab_h): Remove $(gdb_obstack_h).
3070
67f07146
JB
30712002-07-30 Jim Blandy <[email protected]>
3072
3073 Patch from David Carlton <[email protected]>:
3074 * gdbinit.in: Move the `dir' commands that add GDB's own source
3075 directory to the search path to the end, so that the `gdb' source
3076 directory will be searched first.
3077
04ea0df1
AC
30782002-07-29 Andrew Cagney <[email protected]>
3079
3080 * gdb_obstack.h: New file.
3081 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3082 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3083 * objfiles.h: Include "gdb_obstack.h".
3084 * Makefile.in (gdb_obstack_h): Define.
3085 (symtab_h): Add $(gdb_obstack_h).
3086 (objfiles_h): Add $(gdb_obstack_h).
3087
3088 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3089 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3090 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3091 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3092 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3093 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3094 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3095 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3096
3097 * Makefile.in (bcache.o): Update dependencies.
3098 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3099 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3100 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3101 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3102 (stabsread.o, symfile.o, symmisc.o): Ditto.
3103 (symtab.o, typeprint.o, macroexp.o): Ditto.
3104 (macrotab.o, mdebugread.o): Ditto.
3105 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3106 (coff_ecoff_h, aout_aout64_h): Define.
3107 (aout_stabs_gnu_h, libaout_h): Define.
3108
d138e37a
AC
31092002-07-29 Andrew Cagney <[email protected]>
3110
3111 * regcache.c (struct regcache_descr): Rename nr_registers to
3112 nr_cooked_registers. Revise comments describing the structure
3113 member fields.
3114 (init_regcache_descr): Update.
3115 (init_legacy_regcache_descr): Update.
3116 (read_register_gen, write_register_gen): When a cooked register in
3117 the raw register range, directly access the value from the raw
3118 register cache.
3119
460e6ec3
AC
31202002-07-29 Andrew Cagney <[email protected]>
3121
3122 * z8k-tdep.c: Do not include "obstack.h".
3123 * h8300-tdep.c, h8500-tdep.c: Ditto.
3124 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3125 * valprint.c, v850-tdep.c: Ditto.
3126 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3127 * mn10200-tdep.c: Ditto.
3128
3129 * Makefile.in (z8k-tdep.o): Update dependencies.
3130 (m68hc11-tdep.o, valprint.o): Ditto.
3131 (v850-tdep.o, d10v-tdep.o): Ditto.
3132 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3133 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3134 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3135 (sh_opc_h, gdb_sim_sh_h): Define.
3136 (elf_sh_h, elf_bfd_h): Define.
3137 (opcode_m68hc11_h): Define.
3138 (OPCODES_SRC, OPCODES_DIR): define.
3139 (OPCODES): Use $(OPCODES_DIR).
3140 (gdb_sim_d10v_h): Rename sim_d10v_h.
3141 (gdb_sim_arm_h): Rename sim_arm_h.
3142
790c9cf0
KB
31432002-07-26 Kevin Buettner <[email protected]>
3144
3145 * utils.c (host_pointer_to_address, address_to_host_pointer):
3146 Change internal_error() message to indicate function responsible
3147 for the error.
3148
9647fa49
KB
31492002-07-26 Kevin Buettner <[email protected]>
3150
3151 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3152 calls to local_hex_string_custom().
3153
dabbe2c0
KB
31542002-07-26 Kevin Buettner <[email protected]>
3155
3156 * irix5-nat.c: Move IRIX shared library support from here...
3157 * solib-irix.c: ...to here. Revised substantially to work with
3158 generic solib framework.
3159
b96d0a4e
KB
3160 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3161 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3162 * mips-irix-tdep.c: New file.
3163
313fb2f6
KB
3164 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3165 (mips-irix-tdep.o, solib-irix.o): New rules.
3166 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3167 solib-irix.o.
3168 * config/mips/irix6.mt (TDEPFILES): Likewise.
3169 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3170
ab2eaf26
KB
31712002-07-26 Kevin Buettner <[email protected]>
3172
177e4768 3173 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
3174 disabled (via ``#if 0'') includes.
3175
7244546a
KB
31762002-07-26 Kevin Buettner <[email protected]>
3177
3178 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3179 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3180 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3181 Add support for the fpscr register.
3182 * rs6000-nat.c (regmap, fetch_inferior_registers)
3183 (store_inferior_registers, fetch_core_registers): Likewise.
3184
dd7be90a
KB
31852002-07-26 Kevin Buettner <[email protected]>
3186
3187 * rs6000-nat.c (language.h): Include.
3188 (special_regs): Delete this array.
3189 (regmap): New function.
3190 (fetch_register, store_register): Use regmap() to map gdb
3191 register numbers to ptrace register numbers. Also, use
3192 outputs from regmap() to make decisions regarding type of
3193 ptrace() call to make. In particular, don't compare against
3194 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3195 (fetch_inferior_registers, store_inferior_registers): Where
3196 possible, obtain register numbers from tdep struct. Don't
3197 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3198 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3199 (LAST_UISA_SP_REGNUM): Delete.
3200
11bf77db
KB
32012002-07-25 Kevin Buettner <[email protected]>
3202
3203 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
3204 (fetch_registers, store_register, fetch_core_registers): Don't
3205 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
3206 regcache_collect() as appropriate.
3207 (find_toc_address): Format hex address with local_hex_string().
3208
06afebeb
AC
32092002-07-25 Andrew Cagney <[email protected]>
3210
3211 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3212 bfd/elf32-frv.c.
3213
8c554d79
TT
32142002-07-24 Tom Tromey <[email protected]>
3215
3216 * jv-exp.y: Marked all strings with _().
3217 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3218 internal_error.
3219 (MethodInvocation, CastExpression, parse_number, yyerror,
3220 java_type_from_name, push_expression_name, yylex): Typo fixes.
3221
e4c242d9
DJ
32222002-07-24 Daniel Jacobowitz <[email protected]>
3223
3224 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3225 (tee_file_flush, tee_file_write, tee_file_fputs)
3226 (tee_file_isatty): New.
3227 * ui-file.h (tee_file_new): Add prototype.
3228
ebf56fd3
AS
32292002-07-24 Aidan Skinner <[email protected]>
3230
3231 * ada-lang.c: Change k&r style function definitions to prototyped
3232 form.
3233 * ada-typeprint.c: Change k&r style function definitions to prototyped
3234 form.
3235 * ada-valprint.c: Change k&r style function definitions to prototyped
3236 form.
3237
7fb623f7
AC
32382002-07-24 Andrew Cagney <[email protected]>
3239
3240 * README: Remove reference to remote-bug.
3241 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3242 remote-bug.c.
3243 (m88k-nat.o): Delete rule.
3244 (m88k-tdep.o): Delete rule.
3245 (remote-bug.o): Delete rule.
3246 * MAINTAINERS: Mark as obsolete.
3247 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3248 * m88k-tdep.c: Make file obsolete.
3249 * config/m88k/m88k.mh: Ditto.
3250 * config/m88k/delta88v4.mh: Ditto.
3251 * config/m88k/delta88v4.mt: Ditto.
3252 * config/m88k/delta88.mt: Ditto.
3253 * config/m88k/delta88.mh: Ditto.
3254 * remote-bug.c: Ditto.
3255 * config/m88k/tm-delta88.h: Ditto.
3256 * config/m88k/nm-delta88v4.h: Ditto.
3257 * config/m88k/xm-delta88.h: Ditto.
3258 * config/m88k/xm-dgux.h: Ditto.
3259 * config/m88k/tm-m88k.h: Ditto.
3260 * config/m88k/nm-m88k.h: Ditto.
3261 * config/m88k/tm-delta88v4.h: Ditto.
3262 * m88k-nat.c: Ditto.
3263 * cxux-nat.c: Ditto.
3264 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3265 and m88*-*-* obsolete.
3266 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3267 m88*-*-* obsolete.
3268
37611a2b
AC
32692002-07-24 Andrew Cagney <[email protected]>
3270
3271 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3272 constant. Same for local pointer variables.
3273 (extract_signed_integer): Ditto.
3274 * defs.h (extract_unsigned_integer): Update.
3275 (extract_signed_integer): Update.
3276
1aaa5f99
AC
32772002-07-24 Andrew Cagney <[email protected]>
3278
3279 * regcache.c (regcache_raw_write): Change buf parameter to a
3280 constant void pointer.
3281 (regcache_raw_read): Change buf parameter to a void pointer.
3282 (legacy_write_register_gen): Change myaddr parameter a constant
3283 void pointer.
3284 (supply_register): Change val parameter to a const void pointer.
3285 * regcache.h (regcache_raw_write): Update declaration.
3286 (regcache_raw_read): Update declaration.
3287 (supply_register): Update declaration.
3288
b4f5539f
TT
32892002-07-24 Tom Tromey <[email protected]>
3290
3291 * defs.h (gdb_readline_wrapper): Declare.
3292 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3293 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3294 * top.c (gdb_readline_wrapper): New function.
3295 (command_line_input): Use it.
3296
0818c12a
AC
32972002-07-24 Andrew Cagney <[email protected]>
3298
3299 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3300 regcache_read and regcache_write.
3301 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3302 * regcache.c: Update.
3303 * sh-tdep.c (sh64_push_arguments): Update comment.
3304 (sh_pseudo_register_read): Update.
3305 (sh_pseudo_register_write): Update.
3306 (sh4_register_read): Update.
3307 (sh4_register_write): Update.
3308 (sh64_pseudo_register_read): Update.
3309 (sh64_pseudo_register_write): Update.
3310 (sh64_register_read): Update.
3311 (sh64_register_write): Update.
3312 * i386-tdep.c (i386_extract_return_value): Update.
3313 (i386_extract_struct_value_address): Update.
3314 (i386_extract_return_value): Update.
3315 * blockframe.c (generic_read_register_dummy): Update.
3316 (generic_call_dummy_register_unwind): Update
3317 * infrun.c (write_inferior_status_register): Update.
3318
f7321c06
JB
33192002-07-23 Jim Blandy <[email protected]>
3320
3321 * parser-defs.h (expression_context_pc): Make this extern.
3322 (Thanks to Michael Snyder.)
3323
2037aebb
AC
33242002-07-23 Andrew Cagney <[email protected]>
3325
3326 GDB 5.2.1 released from 5.2 branch.
3327 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3328 * README: Update to mention 5.2.1.
3329
66504d44
MS
33302002-07-23 Mark Salter <[email protected]>
3331
3332 * remote.c (remote_read_bytes): Fix check for error.
3333
27bae383
KB
33342002-07-22 Kevin Buettner <[email protected]>
3335
3336 * aix-thread.c (language.h): Include.
3337 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3338 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3339 Print newlines at end of debug messages.
3340 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3341 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3342
33432002-07-22 Kevin Buettner <[email protected]>
3344
3345 * aix-thread.c (ppc-tdep.h): Include.
3346 (special_register_p): New function.
3347 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3348 (store_regs_user_thread): Use register number information from
3349 gdbarch_tdep struct instead of hardcoded offsets relative to
3350 FIRST_UISA_SP_REGNUM.
3351 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3352 special_register_p() instead of using FPLAST_REGNUM and
3353 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3354 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3355 will be MQ's register number.
3356
33572002-07-22 Michael Snyder <[email protected]>
206d3d3c
KB
3358
3359 * aix-thread.c (ops): Rename to aix_thread_ops.
3360 (base_ops): Rename to base_target.
3361 (ops_attach): Rename to aix_thread_attach.
3362 (ops_detach): Rename to aix_thread_detach.
3363 (ops_resume): Rename to aix_thread_detach.
3364 (ops_wait): Rename to aix_thread_wait.
3365 (ops_kill): Rename to aix_thread_kill.
3366 (init_ops): Rename to init_aix_thread_ops.
3367 (ops_fetch_register): Rename to aix_thread_fetch_register.
3368 (ops_store_register): Rename to aix_thread_store_register.
3369 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3370 (ops_thread_alive): Rename to aix_thread_thread_alive.
3371 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3372 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3373 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3374 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3375 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3376 (store_regs_lib): Rename to store_regs_user_thread.
3377 (store_regs_kern): Rename to store_regs_kernel_thread.
3378
27bae383 33792002-07-22 Michael Snyder <[email protected]>
cbe92db4
KB
3380
3381 * aix-thread.c (ops_prepare_to_store): Eliminate.
3382 (init_ops): Don't initialize ops.prepare_to_store.
3383 (store_regs_kern): Pre-fetch register buffers from child,
3384 because some registers may not be in the cache. Copy
3385 regs from register cache only if they are cached.
3386 (store_regs_lib): Copy regs from register cache only
3387 if they are cached.
3388 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3389 fill_gprs64): Ditto.
3390
61c5da0b
KB
33912002-07-22 Kevin Buettner <[email protected]>
3392
3393 * aix-thread.c (gdb_assert.h): Include.
3394 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3395 register sizes (from register cache) match size of buffer holding
3396 register data.
3397 (fill_sprs32): Change parameter types to match those in the ptrace()
3398 buffer.
3399 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3400 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3401
34022002-07-22 Michael Snyder <[email protected]>
3403
3404 * aix-thread.c (supply_sprs64): Cosmetic change.
3405 (supply_sprs32): Cosmetic change.
3406 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3407 (fill_sprs64): Use regcache_collect instead of read_register.
3408 (store_regs_lib): Use regcache_collect instead of
3409 read_register. Use fill_sprs32 instead of fill_sprs64,
3410 if debugging a 32-bit architecture.
3411 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3412 out of the register cache, instead of passing a pointer into
3413 the register cache directly to ptrace. Use regcache_collect
3414 insteaad of read_register.
3415 (ops_prepare_to_store): Use target_read_registers instead
3416 of read_register_bytes.
3417
36479eb1
AS
34182002-07-20 Aidan Skinner <[email protected]>
3419
3420 * MAINTAINERS: Add self under write after approval.
3421
80ae6ee2
AS
34222002-07-20 Aidan Skinner <[email protected]>
3423
3424 * ada-tasks.c: Change k&r style function definitions to prototyped
3425 form.
3426
8a8ab2b9
AC
34272002-07-19 Andrew Cagney <[email protected]>
3428
3429 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3430 * x86-64-tdep.c: Include "objfiles.h".
3431 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3432 in_plt_section. From 2002-07-18 Michal Ludvig <[email protected]>.
3433
fb16b900
ML
34342002-07-17 Michal Ludvig <[email protected]>
3435
3436 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3437 (update_context): Initialise cfa variable.
3438
0fe7bf7b
MS
34392002-07-17 Michael Snyder <[email protected]>
3440
3441 * aix-thread.c: Shorten some long lines.
3442 Bring comments into line with code spec.
3443
488f131b
JB
34442002-07-18 Joel Brobecker <[email protected]>
3445
3446 * infrun.c: Re-indent using gdb_indent.sh.
3447
46c415d2
JB
34482002-07-18 Joel Brobecker <[email protected]>
3449
3450 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3451 Leave the indentation temporarily untouched, to minimize the diffs.
3452
cdecafbe
EZ
34532002-07-18 Elena Zannoni <[email protected]>
3454
3455 * stabsread.c: Make os9k sections of the code obsolete,
3456 for real this time.
3457 * stabsread.h: Make os9k sections of the code obsolete.
3458
7b6aa020
ML
34592002-07-18 Michal Ludvig <[email protected]>
3460
09ec9b38
ML
3461 * linux-low.c (regsets_store_inferior_registers): Add free()
3462 at the end of a loop to prevent memory leak.
3463 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3464 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3465 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3466 line a comment.
4894ac5d 3467 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3468
233282cd
JB
34692002-07-17 Jim Blandy <[email protected]>
3470
3471 * macrocmd.c (info_macro_command): Remove newline from error
3472 message.
3473
7b6aa020 34742002-07-17 J"orn Rennecke <[email protected]>
2f14585c
JR
3475
3476 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3477 (sh_gdbarch_init): Use it for sh-dsp.
3478
f7ef9339
KB
34792002-07-16 Kevin Buettner <[email protected]>
3480
3481 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3482 64-bit DWARF2 format.
3483
8dd72958
JB
34842002-07-16 Joel Brobecker <[email protected]>
3485
3486 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3487 <sys/proc.h> when not available.
3488
a99a9e1b
AC
34892002-07-16 Andrew Cagney <[email protected]>
3490
3491 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3492 * stabsread.c: Make os9k sections of the code obsolete.
3493 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3494 * config/i386/i386os9k.mt: Make file obsolete.
3495 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3496 (COMMON_OBS): Remove os9kread.o
3497 (SFILES): Remove os9kread.c.
3498 (os9kread.o, remote-os9k.o): Make target obsolete.
3499 * remote-os9k.c: Make file obsolete.
3500 * os9kread.c: Make file obsolete.
3501 * Makefile.in
3502
7a3085c1
AC
35032002-07-16 Andrew Cagney <[email protected]>
3504
3505 * NEWS: Mention that the FR30 has been made obsolete.
3506 * fr30-tdep.c: Make file obsolete.
3507 * config/fr30/tm-fr30.h: Ditto.
3508 * config/fr30/fr30.mt: Ditto.
3509 * configure.tgt: Make fr30-*-elf obsolete.
3510 * MAINTAINERS: Make fr30-elf obsolete.
3511
28a93f5a
PM
35122002-07-16 Pierre Muller <[email protected]>
3513
3514 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3515 found is not inside a section.
3516
be006b8b
KB
35172002-07-15 Kevin Buettner <[email protected]>
3518
3519 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3520 strerror().
3521 (pdc_realloc): Use xrealloc() instead of realloc().
3522
14fa3751
KB
35232002-07-15 Kevin Buettner <[email protected]>
3524
3525 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3526 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3527 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3528 macros.
3529
42cc437f
KB
35302002-07-15 Kevin Buettner <[email protected]>
3531
3532 * aix-thread.c (ptrace_check): Eliminate goto.
3533 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3534 problem.
3535
8e2c28d4
KB
35362002-07-15 Kevin Buettner <[email protected]>
3537
3538 * aix-thread.c (gdbcmd.h): Include.
3539 (DEBUG, DBG, DBG2, dbg): Eliminate.
3540 (debug_aix_thread): New static global.
3541 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3542 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3543 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3544 invocations to DBG and DBG2 macros to test against
3545 ``debug_aix_thread'' and call fprintf_unfiltered().
3546 (_initialize_aix_thread): Add new command "set debug aix-thread".
3547
30413464
AC
35482002-07-15 Andrew Cagney <[email protected]>
3549
3550 From Gerhard Tonn <[email protected]>:
3551 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3552 instead of supply_register.
3553
7c43edc1
AC
35542002-07-15 Andrew Cagney <[email protected]>
3555
3556 * dwarf2cfi.c: Include "gdb_assert.h".
3557 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3558 non-NULL.
3559 (update_context): Do not use __func__. Add missing ``break''.
3560 (update_context): Do not use __func__.
3561
9364a0ef
EZ
35622002-07-15 Elena Zannoni <[email protected]>
3563
3564 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3565 and its setting. Set gdbarch instruction printing functions
3566 directly. For non-rs6000 case use new function
3567 gdb_print_insn_powerpc.
3568 (gdb_print_insn_powerpc): New function.
3569
3fbeef0b
AC
35702002-07-13 Andrew Cagney <[email protected]>
3571
92eb23c5 3572 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3573 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3574 * configure.tgt: Mark d30v-*-* as obsolete.
3575 * d30v-tdep.c: Mark file as obsolete.
3576 * config/d30v/d30v.mt: Ditto.
3577 * config/d30v/tm-d30v.h: Ditto.
3578
aacb1f0a
AS
35792002-07-13 Aidan Skinner <[email protected]>
3580
3581 * ada-tasks.c (add_task_entry): replace calls to
3582 malloc() with xmalloc
3583 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3584
3585 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3586 ada_finish_decode_line_1, all_sals_for_line
3587 ada_breakpoint_rewrite): replace calls to free() with xfree()
3588
c11d79f2
KB
35892002-07-12 Kevin Buettner <[email protected]>
3590
3591 From Nicholas Duffek (with minor changes by Martin Hunt,
3592 Louis Hamilton, and Kevin Buettner):
3593 * aix-thread.c: New file.
3594
8e19ed76
PS
35952002-07-12 Petr Sorfa <[email protected]>
3596
3597 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3598 complaint for invalid attribute class or form.
3599 (read_func_scope): DW_AT_frame_base
3600 better handling of DW_AT_block*.
3601 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3602 better handling of DW_AT_block*.
3603 (read_common_block): DW_AT_location
3604 better handling of DW_AT_block*.
3605 (read_partial_die): DW_AT_location better handling
3606 of DW_AT_block*.
3607 (new_symbol): DW_AT_external better handling of
3608 DW_AT_block*. Proper initialization of variable
3609 "addr".
3610 (attr_form_is_block): New function that returns true
3611 if the attribute's form is of DW_FORM_block*.
3612
295401f7
DJ
36132002-07-12 Peter Schauer <[email protected]>
3614
3615 * valops.c (find_method_list): Remove comment about
3616 removed STATIC_MEMFUNCP argument.
3617 (value_find_oload_method_list): Likewise.
3618
e42dc924
KB
36192002-07-12 Kevin Buettner <[email protected]>
3620
3621 From Nicholas Duffek:
3622 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3623 target_new_objfile_hook.
3624
6904b546
KB
36252002-07-12 Kevin Buettner <[email protected]>
3626
3627 From Nicholas Duffek:
3628 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3629 csect.
3630
53fe9346
AC
36312002-07-12 Andrew Cagney <[email protected]>
3632
3633 * MAINTAINERS: Mention --enable-sim-build-warnings.
3634 (m68hc11-elf): Disable sim build warnings.
3635 (m32r-elf): Mark as broken obsolete candidate.
3636 (x86_64-linux-gnu): Mark as buildable with -Werror.
3637 (arm-elf): Change -w to ``,'' which enables warnings but not
3638 -Werror.
3639
af5f3db6
AC
36402002-07-12 Andrew Cagney <[email protected]>
3641
3642 * bcache.h: Update copyright.
3643 (struct bstring, struct bcache): Move definition to "bcache.c".
3644 Replaced by opaque declaration.
3645 (bcache_xfree): Replace free_bcache.
3646 (bcache_xmalloc, bcache_memory_used): Declare.
3647
3648 * bcache.c: Update copyright.
3649 (struct bstring, struct bcache): Moved to here from "bcache.h".
3650 Update comments.
3651 (bcache_xmalloc, bcache_memory_used): New functions.
3652 (bcache_xfree): Replace function free_bcache.
3653
3654 * Makefile.in (objfiles.o): Add $(bcache_h).
3655 (objfiles_h): Remove $(bcache_h).
3656 (symfile.o): Add $(bcache_h).
3657
3658 * symmisc.c: Update copyright.
3659 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3660 (print_objfile_statistics): Use bcache_memory_used.
3661
3662 * symfile.c: Include "bcache.h".
3663 (reread_symbols): Use bcache_xfree.
3664 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3665 (add_psymbol_to_list): Pass psymbol_cache by value.
3666 (add_psymbol_with_dem_name_to_list): Ditto.
3667
3668 * objfiles.h: Update copyright.
3669 (struct bcache): Declare opaque. Do not include "bcache.h".
3670 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3671 bcache'' pointers.
3672 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3673
3674 * objfiles.c: Include "bcache.h". Update copyright.
3675 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3676 macro_cache.
3677 (free_objfile): Use bcache_xfree.
3678
444199e7
GS
36792002-07-11 Grace Sainsbury <[email protected]>
3680
3681 * monitor.c (monitor_fetch_register): Make name a constant.
3682 (monitor_store_register): Same.
3683
261397f8
DJ
36842002-07-11 Daniel Jacobowitz <[email protected]>
3685
3686 Based on patch from Daniel Berlin <[email protected]>.
3687 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3688 (finish_block) For non-function blocks, hash the symbol table. For
3689 function blocks, mark the symbol table as unhashed.
3690 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3691 (msymbol_hash_iw): Likewise.
3692 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3693 value.
3694 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3695 (lookup_minimal_symbol): Likewise for both.
3696 * symtab.h (struct block): Add `hashtable' flag. Comment the
3697 hashtable.
3698 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3699 (ALL_BLOCK_SYMBOLS): Update.
3700 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3701 (struct symbol): Add `hash_next' pointer.
3702 * symtab.c (lookup_block_symbol): Search using the hash table when
3703 possible.
3704 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3705 (search_symbols, find_addr_symbol): Likewise.
3706
3707 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3708 (read_dst_symtab): Likewise.
3709 * jv-lang.c (get_java_class_symtab): Likewise.
3710 * mdebugread.c: Include "gdb_assert.h".
3711 (shrink_block): Assert that the block being modified is not hashed.
3712 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3713 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3714 symbols.
3715 (dump_symtab): Recognize hashed blocks.
3716 * printcmd.c (print_frame_args): Assert that function blocks do not
3717 have hashed symbol tables.
3718 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3719 (fill_in_ada_prototype, debug_print_block): Likewise.
3720 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3721
6f0eaa01
CV
37222002-07-11 Corinna Vinschen <[email protected]>
3723
3724 * stack.c (print_frame): Use result of frame_address_in_block()
3725 instead of fi->pc when evaluating symbols.
3726 (backtrace_command_1): Ditto.
3727
a208b0cb
AC
37282002-07-11 Andrew Cagney <[email protected]>
3729
3730 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3731 Make static.
3732
3733 * arm-tdep.c (arm_register_name): Make return type constant.
3734
a6b6b089
AC
37352002-07-10 Andrew Cagney <[email protected]>
3736
5ae5f592
AC
3737 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3738 prototype.
3739 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3740 * s390-tdep.c (s390_fp_regnum): Ditto.
3741 (s390_read_fp): Ditto.
3742 (s390_pop_frame): Ditto.
3743 (_initialize_s390_tdep): Ditto.
3744 * remote.c (get_remote_state): Ditto.
3745 * procfs.c (mappingflags): Ditto.
3746 * memattr.c (_initialize_mem): Ditto.
3747 * mcore-tdep.c (mcore_pop_frame): Ditto.
3748 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3749 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3750 * language.c (set_case_str): Ditto.
3751 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3752 * frv-tdep.c (new_variant): Ditto.
3753 (frv_stopped_data_address): Ditto.
3754 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3755 (context_alloc): Ditto.
3756 (frame_state_alloc): Ditto.
3757 (unwind_tmp_obstack_init): Ditto.
3758 (unwind_tmp_obstack_free): Ditto.
3759 (cfi_read_fp): Ditto.
3760 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3761 (cris_pop_frame): Ditto.
3762 * c-lang.c (scanning_macro_expansion): Ditto.
3763 (finished_macro_expansion): Ditto.
3764 (c_preprocess_and_parse): Ditto.
3765 * gdbarch.sh: Ditto.
3766 * gdbarch.h, gdbarch.c: Regenerate.
3767 * config/mn10200/tm-mn10200.h: Adjust indentation.
3768 * target.c: Adjust indentation.
3769 * symtab.h: Adjust indentation.
3770 * stabsread.h: Adjust indentation.
3771 * remote-es.c: Adjust indentation.
3772 * os9kread.c: Adjust indentation.
3773
37742002-07-10 Andrew Cagney <[email protected]>
3775
a6b6b089
AC
3776 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3777 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3778
a1789893
GS
37792002-07-10 Grace Sainsbury <[email protected]>
3780
3781 * NEWS: Mention m68k, mcore multi-arching.
3782 * MAINTAINERS: Change status of m68k, mcore to reflect
3783 multi-arching.
3784
02f0d45d
DJ
37852002-07-10 Daniel Jacobowitz <[email protected]>
3786
3787 * valops.c (find_overload_match): Free oload_syms.
3788
f15f768e
JB
37892002-07-09 Joel Brobecker <[email protected]>
3790
3791 Define HAVE_SYS_PROC_H if sys/proc.h exists
3792 * configure.in: Add check for sys/proc.h
3793 * config.in: Regenerate.
3794 * configure: Regenerate.
3795
902a7139
GS
37962002-07-09 Grace Sainsbury <[email protected]>
3797
3798 * config/m68k/tm-m68k.h: Remove macros wrapped in
3799 #if !GDB_MULTI_ARCH.
3800
a534e424
AC
38012002-07-08 Andrew Cagney <[email protected]>
3802
3803 * config.in, configure: Regenerate.
3804
9b94f7bf
MK
38052002-07-08 Mark Kettenis <[email protected]>
3806
3807 * dwarf2cfi.c: Include "gcore.h".
3808 (execute_stack_op): Fix implementation of the
3809 DW_OP_deref and DW_OP_deref_size operators by letting do their
3810 lookup in the target.
3811
1d34db41
MK
38122002-07-07 Mark Kettenis <[email protected]>
3813
3814 From Peter Schauer <[email protected]>:
3815 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3816 tdep->sc_sp_offset.
3817
79d5b63a
DJ
38182002-07-05 Daniel Jacobowitz <[email protected]>
3819
3820 Fix PR gdb/595, gdb/602
3821 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3822 Don't call value_cast, just read the vtable pointer; update comments
3823 to match.
3824
3bb912e8
GS
38252002-07-05 Grace Sainsbury <[email protected]>
3826
3827 * config/mcore/tm-mcore.h: Remove file.
3828 * config/mcore/mcore.mt: Remove definition of TM_FILE
3829 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3830
ca39387d
MK
38312002-07-05 Mark Kettenis <[email protected]>
3832
3833 * i386bsd-tdep.c: Include "gdb_string.h".
3834
efdc1108
GS
38352002-07-04 Grace Sainsbury <[email protected]>
3836
3837 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3838 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3839 mcore-tdep.
3840 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3841 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3842 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3843 (RETVAL_REGNUM): Move macros from tm-mcore.h
3844 (mcore_reg_struct_has_addr): New function.
3845 (mcore_gdbarch_init): Added initializations for the macros removed
3846 from tm-mcore.h.
3847
bb21884d
MK
38482002-07-04 Mark Kettenis <[email protected]>
3849
3850 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3851 traditonal string branding within the ELF header.
3852
228c6d41
DJ
38532002-07-04 Daniel Jacobowitz <[email protected]>
3854
3855 * symtab.c (remove_params): New function.
3856 (make_symbol_overload_list): Use it instead of cplus_demangle.
3857 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3858
2404952e
MK
38592002-07-04 Mark Kettenis <[email protected]>
3860
e5e4acad
MK
3861 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3862
baadce09
MK
3863 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3864 New variables.
3865 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3866 and tdep->sigtramp_end.
3867 * i386obsd-nat.c: New file.
3868 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3869
2404952e
MK
3870 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3871 Don't call get_current_frame().
3872
9b4f1ba7
PM
38732002-07-04 Pierre Muller <[email protected]>
3874
3875 * i386-nat.c (child_post_startup_inferior): New function
3876 calling i386_cleanup_dregs if
3877 I386_USE_GENERIC_WATCHPOINTS is defined.
3878 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3879 conditional to acknowledge that i386-nat.c has its
3880 own child_post_startup_inferior function.
3881
c0d1d883
MK
38822002-07-04 Mark Kettenis <[email protected]>
3883
00f8375e
MK
3884 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3885 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3886 instead of MAX_REGISTER_RAW_SIZE.
3887 (i386_extract_return_value, i386_extract_struct_value_address):
3888 Convert to use regcache.
3889 (i386_gdbarch_init): Set max_register_raw_size and
3890 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3891 Set extract_return_value and extract_struct_value_address instead
3892 of their deprecated variants.
3893
c0d1d883
MK
3894 Convert i386 target to generic dummy frames.
3895 * i386-tdep.c: Include "symfile.h".
3896 (i386_frameless_signal_p): Consider a function to be frameless if
3897 the pc points at the first instruction of the function.
3898 (i386_frame_chain): Handle (generic) call dummies.
3899 (i386_frame_saved_pc): Likewise.
3900 (i386_frame_init_saved_regs): Remove code dealing with call
3901 dummies on the stack.
3902 (i386_push_dummy_frame): Removed.
3903 (i386_call_dummy_words): Removed.
3904 (i386_fix_call_dummy): Removed.
3905 (i386_push_return_address): New function.
3906 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3907 parameter, and don't call get_current_frame.
3908 (i386_pop_frame): New function.
3909 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3910 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3911 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3912 call_dummy_length to 0, set call_dummy_words to NULL, set
3913 sizeof_call_dummy_words to 0, set fix_call_dummy to
3914 generic_fix_call_dummy, set pc_in_call_dummy to
3915 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3916 generic_push_dummy_frame, set push_return_address to
3917 i386_push_return_address and set frame_chain_valid to
3918 generic_file_frame_chain_valid.
3919
049ee0e4
AC
39202002-07-03 Andrew Cagney <[email protected]>
3921
3922 * gdbarch.sh (struct regcache): Add opaque declaration.
3923 (EXTRACT_RETURN_VALUE): New architecture method.
3924 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3925 * gdbarch.h, gdbarch.c: Regenerate.
3926 * arch-utils.c (legacy_extract_return_value): New function.
3927 * arch-utils.h (legacy_extract_return_value): Declare.
3928 * values.c (value_being_returned): Re-enable code handling
3929 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3930 deprecated_grub_regcache_for_registers call to block handling
3931 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3932 (EXTRACT_RETURN_VALUE): Do not define.
3933
4e0d9804
GS
39342002-07-03 Grace Sainsbury <[email protected]>
3935
3936 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3937 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3938 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3939 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3940 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3941 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3942 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3943 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3944 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3945 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3946 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3947 argument so the function fits the prototype in the architecture
3948 vector.
3949 (mcore_pop_frame): Remove argument so the function fits the
3950 prototype. Use get_current_frame instead of the argument.
3951 (mcore_push_arguments): Change type of struct_return so the
3952 function can be used in the architecture vector.
3953 (mcore_store_struct_return): Add.
3954 (mcore_frame_init_saved_regs): Add.
3955 (mcore_gdbarch_init): Add function calls to replace the macros
3956 removed from tm-mcore.h
3957
36160dc4
AC
39582002-07-03 Andrew Cagney <[email protected]>
3959
3960 * infcmd.c (print_return_value): Remove compatibility code calling
3961 deprecated_grub_regcache_for_registers.
3962
3963 * values.c: Include "regcache.h".
3964 (value_being_returned): Update. Use
3965 deprecated_grub_regcache_for_registers to extract the register
3966 buffer address.
3967 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3968 ``struct regcache''.
3969 * Makefile.in (values.o): Add dependency on $(regcache_h).
3970
3971 * inferior.h (run_stack_dummy): Change type of second parameter to
3972 a ``struct regcache''.
3973 * valops.c (hand_function_call): Change type of retbuf to ``struct
3974 regcache''. Allocate using regcache_xmalloc, clean using
3975 make_cleanup_regcache_xfree.
3976 * infcmd.c (run_stack_dummy): Update. Use
3977 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3978
3979 * regcache.c (do_regcache_xfree): New function.
3980 (make_cleanup_regcache_xfree): New function.
3981 * regcache.h (make_cleanup_regcache_xfree): Declare.
3982
e64d9b3d
MH
39832002-07-03 Martin M. Hunt <[email protected]>
3984
4dd79c29
MH
3985 * event-top.c (command_line_handler): Don't read past
3986 beginning of buffer.
e64d9b3d 3987
4dd79c29
MH
39882002-07-03 Martin M. Hunt <[email protected]>
3989
e64d9b3d
MH
3990 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3991 struct frame_id.
3992 (varobj_create): Store frame_id for root.
3993 (varobj_gen_name): Use xasprintf.
3994 (varobj_update): Save and restore frame using get_frame_id() and
3995 frame_find_by_id().
3996 (create_child): Use xasprintf.
3997 (new_root_variable): Initialize frame_id.
3998 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3999 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4000 to prevent memory leak.
4001
26e6c56a
AC
40022002-07-03 Andrew Cagney <[email protected]>
4003
4004 * valops.c (hand_function_call): Move declaration of retbuf to
4005 start of function, allocate using malloc, add a cleanup but before
4006 the inf_status cleanup, cleanup the buffer. Rename local variable
4007 old_chain to inf_status_cleanup.
4008
f436dd25
MH
40092002-07-03 Martin M. Hunt <[email protected]>
4010
4011 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4012
4013 * cli/cli-decode.c (cmd_func_p): New function.
4014 (cmd_func): New function.
4015
4016 * command.h: Add cmd_func() and cmd_func_p().
4017
4cfe2084
GS
40182002-07-03 Grace Sainsbury <[email protected]>
4019
4020 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4021 (REGISTER_SIZE): Remove.
4022 (MAX_REGISTER_RAW_SIZE): Remove.
4023 (REGISTER_VIRTUAL_TYPE): Remove.
4024 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4025 (REGISTER_NAME): Remove.
4026 (USE_GENERIC_DUMMY_FRAMES): Remove.
4027 (CALL_DUMMY): Remove.
4028 (CALL_DUMMY_START_OFFSET): Remove.
4029 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4030 (CALL_DUMMY_LOCATION): Remove.
4031 (FIX_CALL_DUMMY): Remove.
4032 (CALL_DUMMY_ADDRESS): Remove.
4033 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4034 (SAVE_DUMMY_FRAME_TOS): Remove.
4035 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4036 (mcore_register_virtual_type): New function.
4037 (mcore_register_byte): New function.
4038 (mcore_register_size): New function.
4039 (mcore_register_name): New function.
4040 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4041 macros removed from tm-mcore.h.
4042 (mcore_dump_tdep): Add.
4043 (_initialize_mcore_tdep): Add gdbarch_register call.
4044
4fd667e9
MK
40452002-07-03 Mark Kettenis <[email protected]>
4046
4047 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4048 frameless_look_for_prologue, such that we actually call this
4049 function.
4050
42f99ac2
JB
40512002-07-02 Joel Brobecker <[email protected]>
4052
4053 * frame.h (frame_address_in_block): New function.
4054
4055 * blockframe.c (frame_address_in_block): New function extracted
4056 from get_frame_block().
4057 (get_frame_block): Use frame_address_in_block().
4058 (block_innermost_frame): Use frame_address_in_block() to match
4059 the frame pc address against the block boundaries rather than
4060 the frame pc directly. This prevents a failure when a frame pc
4061 is actually a return-address pointing immediately after the end
4062 of the given block.
4063
103a1597 40642002-07-02 Grace Sainsbury <[email protected]>
83b4a0fe
GS
4065
4066 * MAINTAINERS: Add self under write after approval.
4067
40682002-07-02 Grace Sainsbury <[email protected]>
4069
103a1597
GS
4070 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4071 used in architecture vector. The default is
4072 m68k_local_breakpoint_from_pc.
4073 (m68k_local_breakpoint_from_pc): Add.
4074 (enum): Add register numbers from tm-m68k.h.
4075 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4076 vector.
4077 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4078 GDB_MULTI_ARCH_PARTIAL.
4079 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4080 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4081 m68k-tdep.c.
4082 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4083 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4084 to enum in m68k-tdep.c
4085
7a5a0534
JB
40862002-07-02 Joel Brobecker <[email protected]>
4087
4088 * solib-osf.c (open_map): Compute the list of shared libraries
4089 loaded by the inferior, rather than the list of libraries loaded
4090 by GDB itself. Otherwise, GDB ends up reading the symbols from
4091 the wrong shared libraries...
4092
6f558d74
MK
40932002-07-02 Mark Kettenis <[email protected]>
4094
b7d15bf7
MK
4095 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4096 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4097 macros.
4098 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4099 Remove functions.
4100 (FRAMELESS_SIGNAL): Remove function.
4101 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4102 i386_linux_saved_pc_after_call): Removed.
4103 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4104 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4105 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4106
6bff26de
MK
4107 * i386-tdep.c (i386_frameless_signal_p): New function.
4108 (i386_frame_chain): Deal with frameless signals.
4109 (i386_sigtramp_saved_sp): New function.
4110 (i386_frame_saved_pc): Deal with frameless signals.
4111 (i386_saved_pc_after_call): Make sure the correct value is
4112 returned just after entry into a sigtramp.
4113 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4114 i386fbsd4_sc_sp_offset): New variables.
4115 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4116 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4117 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4118 similiar to what we already did for sc_pc_offset.
4119 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4120 tdep->sc_sp_offset.
4121
6f558d74
MK
4122 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4123
145564b7
ML
41242002-07-02 Michal Ludvig <[email protected]>
4125
4126 * config/i386/tm-x86-64linux.h: New.
4127 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4128 definitions.
4129 * config/i386/nm-x86-64.h: Rename to ...
4130 * config/i386/nm-x86-64linux.h: ... this one.
4131 * config/i386/x86-64linux.mh: Reflect the above change.
4132
3a1e71e3
MK
41332002-07-01 Mark Kettenis <[email protected]>
4134
21d0e8a4
MK
4135 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4136 with sigcontext_addr. Add sc_sp_offset.
4137 (i386bsd_sigtramp_saved_pc): Remove prototype.
4138 (i386bsd_sicontext_addr): Add prototype.
4139 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4140 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4141 (i386_svr4_sigtramp_saved_pc): Removed.
4142 (i386_svr4_sigcontext_addr): New function.
4143 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4144 Initialize tdep->sigcontext_addr instead. Initialize
4145 tdep->sc_pc_offset and tdep->sc_sp_offset.
4146 (i386_gdbarch_init): Likewise.
4147 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4148 any more.
4149 (i386bsd_sigtramp_saved_pc): Remove function.
4150 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4151 Initialize tdep->sigcontext_addr instead. Initialize
4152 tdep->sc_pc_offset.
4153 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4154 of tdep->sigtramp_saved_pc.
4155 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4156 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4157 instead.
4158
3a1e71e3
MK
4159 * i386-tdep.c (i386_frameless_function_invocation,
4160 i386_frame_num_args, i386_frame_init_saved_regs,
4161 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4162 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4163 i386_extract_return_value, i386_store_return_value,
4164 i386_extract_struct_value_address, i386_register_virtual_type,
4165 i386_register_convertible, i386_register_convert_to_virtual,
4166 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4167 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4168 static.
4169
52e9098c
MK
41702002-07-01 Mark Kettenis <[email protected]>
4171
77b13a25
MK
4172 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4173
52e9098c
MK
4174 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4175 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4176 this macro. Include "value.h".
4177
1b372fff
AS
41782002-06-30 Aidan Skinner <[email protected]>
4179
4180 * ada-exp.tab.c: remove as it's a generated file
4181 * ada-lex.c: remove as it's a generated file
4182
9c5045b5
MK
41832002-06-30 Mark Kettenis <[email protected]>
4184
4a93c5bb
MK
4185 * config/i386/tm-i386.h (struct frame_info, struct
4186 frame_saved_regs, struct value, struct type): Remove forward
4187 declarations.
4188
322d4fe0
MK
4189 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4190 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4191 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4192 (FILL_FPXREGSET): Define.
4193
fdd8263d
MK
4194 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4195
482e577b
MK
4196 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4197 i[3456]86-*-netbsd* case.
4198 * config/i386/tm-obsd.h: Removed.
4199 * config/i386/obsd.mt: Removed.
4200 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4201 core-aout.o.
4202 (MH_CFLAGS): Add -DYYDEBUG=0.
4203
6916549a
MK
4204 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4205 i386nbsd_sc_pc_offset on OpenBSD too.
4206
9c5045b5
MK
4207 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4208 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4209 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4210 define.
4211 * i386bsd-tdep.c: Include "arch-utils.h".
4212 (i386bsd_aout_in_solib_call_trampoline): New function.
4213 (i386bsd_init_abi): Set in_solib_call_trampoline to
4214 i386bsd_aout_in_solib_call_trampoline.
4215 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4216 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4217
aa84d1bb
AC
42182002-06-28 Andrew Cagney <[email protected]>
4219
4220 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4221 (struct obstack, struct bcache): Add opaque declarations.
4222 * Makefile.in (macrotab_h): Update
4223
b4d83933
AC
42242002-06-28 Andrew Cagney <[email protected]>
4225
4226 * blockframe.c (generic_find_dummy_frame): Change return type to
4227 ``struct regcache''.
4228 (struct dummy_frame): Replace field ``registers'' with regcache, a
4229 struct regcache object.
4230 (generic_find_dummy_frame): Update.
4231 (generic_push_dummy_frame): Update. Use regcache_xfree,
4232 regcache_xmalloc and regcache_cpy.
4233 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4234 regcache_xfree.
4235 (deprecated_generic_find_dummy_frame): Update.
4236 (generic_read_register_dummy): Update. Use
4237 regcache_read_as_address.
4238 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4239 (generic_get_saved_register): Update. Use regcache_read.
4240
08c0b5bc
AC
42412002-06-28 Andrew Cagney <[email protected]>
4242
4243 * Makefile.in (objfiles_h): Add $(bcache_h).
4244 * objfiles.h: Include "bcache.h".
4245
4246 * Makefile.in (symtab_h): Remove $(bcache_h).
4247 * symtab.h: Do not include "bcache.h".
4248
1f89801a
AC
42492002-06-28 Andrew Cagney <[email protected]>
4250
4251 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4252 generic_func_frame_chain_valid.
4253
b9644b58
DB
42542002-06-28 David O'Brien <[email protected]>
4255
4256 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4257 * config/i386/tm-fbsd.h: Likewise.
4258
dd486634
AC
42592002-06-28 Andrew Cagney <[email protected]>
4260
4261 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4262 generic_unwind_get_saved_register.
4263
0b434a00
AC
42642002-06-27 Andrew Cagney <[email protected]>
4265
4266 From 2002-06-27 John David Anglin <[email protected]>:
4267 * regcache.c (supply_register): Add missing argument to
4268 register_buffer call.
4269
f30e5a77
AC
42702002-06-27 Andrew Cagney <[email protected]>
4271
4272 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4273 Solaris /bin/grep does not not like it. From Peter Schauer.
4274
9f064c95
TT
42752002-06-26 Tom Tromey <[email protected]>
4276
4277 * command.h (add_setshow_cmd): Declare.
4278 (add_setshow_cmd_full): Declare.
4279 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4280 returns void. Use add_setshow_cmd_full.
4281 (add_setshow_cmd_full): New function.
4282 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4283 (add_setshow_boolean_cmd): Likewise.
4284
099c7589
JT
42852002-06-26 Jason Thorpe <[email protected]>
4286
4287 * config/vax/tm-vax.h: Protect from multiple inclusion.
4288 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4289 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4290 * config/vax/tm-vaxbsd.h: ...here. New file.
4291 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4292
1d049c5e
JT
42932002-06-26 Jason Thorpe <[email protected]>
4294
4295 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4296 (BELIEVE_PCC_PROMOTION): Remove.
4297 (AP_REGNUM): Move to...
4298 * config/vax/nm-vax.h: ...here.
4299 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4300 (vax_breakpoint_from_pc): New function.
4301 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4302 and gdbarch_believe_pcc_promotion.
4303
4791e091
JT
43042002-06-26 Jason Thorpe <[email protected]>
4305
4306 * Makefile.in (vax_tdep_h): Define.
4307 (vax-tdep.o): Use $(vax_tdep_h).
4308 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4309 (vax_dump_tdep): New function.
4310 (_initialize_vax_tdep): Register vax_dump_tdep.
4311 * vax-tdep.h: Include osabi.h.
4312 (struct gdbarch_tdep): New.
4313
da130f98
AC
43142002-06-26 Andrew Cagney <[email protected]>
4315
4316 * frame.h (deprecated_generic_find_dummy_frame): Rename
4317 generic_find_dummy_frame.
4318 * blockframe.c (generic_find_dummy_frame): Make static.
4319 (deprecated_generic_find_dummy_frame): New function.
4320 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4321 generic_find_dummy_frame with deprecated_find_dummy_frame.
4322 (sh64_nofp_frame_init_saved_regs): Ditto.
4323 (sh_fp_frame_init_saved_regs): Ditto.
4324 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4325 (s390_frame_chain): Ditto.
4326 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4327
6300c360
GS
43282002-06-26 Grace Sainsbury <[email protected]>
4329
4330 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4331 gdbarch vector are at the top.
4332 (NUM_REGS): Remove.
4333 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4334 (FRAME_ARGS_ADDRESS): Remove.
4335 (FRAME_LOCALS_ADDRESS): Remove.
4336 (FRAME_NUM_ARGS): Remove.
4337 (FRAME_ARGS_SKIP): Remove.
4338 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4339 (m68k_gdbarch_init): Add gdbarch initializations for macros
4340 undefined in tm-m68k.h
4341
1c617db8
GS
43422002-06-26 Grace Sainsbury <[email protected]>
4343
4344 * monitor.h: Add the function regname to monitor_ops
4345 structure. This way NUM_REGS does not have to be a constant.
4346 * monitor.c (monitor_fetch_register): Added support for regname
4347 function. The function is called if the array regnames is NULL.
4348 (monitor_store_register): Same.
da130f98
AC
4349 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4350 regnames array.
1c617db8
GS
4351 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4352 cpu32bug_cmds.regname to point to new function.
4353 * abug-rom.c (abug_regname): Same as above.
4354 (init_abug_cmds): Same.
4355 * dbug-rom.c (dbug_regname): Same as above.
4356 (init_dbug_cmds): Same.
4357 * remote-est.c (est_regname): Same.
4358 (init_est_cmds): Same.
4359 * rom68k-rom.c (rom68k_regname): Same.
4360 (init_rom68k_cmds): Same.
4361
ea9365bb
TT
43622002-06-25 Tom Tromey <[email protected]>
4363
4364 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4365
72cec141
AC
43662002-06-25 Andrew Cagney <[email protected]>
4367
4368 * infrun.c (stop_registers): Change variable's type to ``struct
4369 regcache'''.
4370 (xmalloc_inferior_status): Delete function.
4371 (free_inferior_status): Delete function.
4372 (normal_stop): Use regcache_cpy.
4373 (struct inferior_status): Change type of fields ``stop_registers''
4374 and ``registers'' to ``struct regcache''.
4375 (write_inferior_status_register): Use regcache_write.
4376 (save_inferior_status): Instead of calling
4377 xmalloc_inferior_status, allocate the inf_status buffer directly.
4378 Use regcache_dup_no_passthrough and regcache_dup to save the
4379 buffers.
4380 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4381 Replace the stop_registers regcache instead of overriding it. Use
4382 regcache_xfree. Instead of calling free_inferior_status, xfree
4383 the buffer directly.
4384 (discard_inferior_status): Use regcache_xfree. Instead of calling
4385 free_inferior_status, xfree the buffer directly.
4386 (build_infrun): Use regcache_xmalloc.
4387 (_initialize_infrun): Delete redundant call to build_infrun.
4388
4389 * Makefile.in (infcmd.o): Add $(regcache_h).
4390
4391 * infcmd.c: Include "regcache.h".
4392 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4393 obtain the address of `stop_registers' register buffer.
4394 (print_return_value): Ditto.
4395
4396 * inferior.h (struct regcache): Add opaque declaration.
4397 (stop_registers): Change variable's declared type to ``struct
4398 regcache''.
4399
defc6f8c
TT
44002002-06-24 Tom Tromey <[email protected]>
4401
c0e624e7
TT
4402 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4403 * target.c (initialize_targets): Fixed typo in
4404 trust-readonly-sections `show' documentation.
4405
defc6f8c
TT
4406 * main.c: Marked all strings with _().
4407
2b236d82
DH
44082002-06-24 Don Howard <[email protected]>
4409
4410 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4411 that means max CORE_ADDR+1.
4412 (lookup_mem_region): Ditto.
4413 (mem_info_command): Ditto.
4414
942dc0e9
GS
44152002-06-24 Grace Sainsbury <[email protected]>
4416
4417 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4418 (REGISTER_BYTES_OK): Remove.
4419 (REGISTER_BYTES): Remove.
4420 (STORE_STRUCT_RETURN): Remove.
4421 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4422 (STORE_RETURN_VALUE): Remove.
4423 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4424 (FRAME_CHAIN): Remove.
4425 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4426 (FRAME_SAVED_PC): Remove.
4427 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4428 (m68k_store_struct_return): Add.
4429 (m68k_deprecated_extract_return_value): Add.
4430 (m68k_deprecated_extract_struct_value_address): Add.
4431 (m68k_store_return_value): Add.
4432 (m68k_frame_chain): Add.
4433 (m68k_frameless_function_invocation): Add.
4434 (m68k_frame_saved_pc): Add.
4435 (m68k_gdbarch_init): added set_gdbarch calls for new
4436 functions and deleted macros.
4437
03c30d4d
TT
44382002-06-23 Tom Tromey <[email protected]>
4439
4440 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4441 (ALLDEPFILES): Likewise.
4442 (udiheaders): Removed.
4443 (udip2soc.o): Likewise.
4444 (udi2go32.o): Likewise.
4445 (udr.o): Likewise.
4446 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4447
37e71372
AC
44482002-06-22 Andrew Cagney <[email protected]>
4449
06a6ac57
AC
4450 * infrun.c (_initialize_infrun): Delete unnecessary call to
4451 build_infrun.
4452
37e71372
AC
4453 * regcache.h: Update comments describing the regcache_cpy family
4454 of functions.
4455 (regcache_save, regcache_restore): Delete declaration.
4456 (regcache_save_no_passthrough): Delete declaration.
4457 (regcache_restore_no_passthrough): Delete declaration.
4458 * regcache.c (regcache_save): Delete function.
4459 (regcache_save_no_passthrough): Delete function.
4460 (regcache_restore): Delete function.
4461 (regcache_restore_no_passthrough): Delete function.
4462
78f6d055
AC
44632002-06-21 Andrew Cagney <[email protected]>
4464
4465 * config/m68k/tm-m68k.h: Fix typo.
4466 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4467 (m68k_frame_init_saved_regs): Declare.
4468
78b119cb
JB
44692002-06-21 Jim Blandy <[email protected]>
4470
4471 Remove some vestiges of Harris 88k support.
4472 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4473 register numbering quirk.
4474 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4475 odd symbols occurring in Harris 88k ELF targets.
4476
0fbb3da7
TT
44772002-06-21 Tom Tromey <[email protected]>
4478
4479 * gdb_locale.h: New file.
4480 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4481 (defs_h): Added gdb_locale.h.
4482 * configure, config.in: Rebuilt.
4483 * configure.in (PACKAGE): Define.
4484 * defs.h: Include gdb_locale.h.
4485 * main.c (captured_main): Call setlocale, bindtextdomain,
4486 textdomain.
4487
456f8b9d
DB
44882002-06-21 Dave Brolley <[email protected]>
4489
4490 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4491 * config/frv/frv.mt: New file.
4492 * config/frv/tm-frv.h: New file.
4493 * configure.tgt: Support frv-*-*.
4494 * Makefile.in (frv-tdep.o): New target.
4495 * frv-tdep.c: New file.
4496 * NEWS: Mention frv.
4497
cdd463f9
DB
44982002-06-21 Dave Brolley <[email protected]>
4499
4500 * MAINTAINERS: Add self to "Write After Approval" list.
4501
5d3ed2e3
GS
45022002-06-21 Grace Sainsbury <[email protected]>
4503
4504 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4505 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4506 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4507 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4508 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4509
4510 * m68k-tdep.c: Include arch-utils.h
4511 (m68k_register_raw_size): Add.
4512 (m68k_register_virtual_size): Add.
4513 (m68k_register_virtual_type): Add.
4514 (m68k_register_name): Add.
4515 (m68k_stack_align): Add.
4516 (m68k_register_byte): Add.
4517 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4518 tm-m68k.h.
4519
7f8e7424
GS
45202002-06-21 Grace Sainsbury <[email protected]>
4521
a2c6a6d5 4522 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4523 m68k_find_saved_regs.
4524 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4525 references to it with frame->saved_regs.
7f8e7424
GS
4526 (m68k_gdbarch_init): Added function calls to initialize the
4527 gdbarch structure.
a2c6a6d5
GS
4528 (m68k_fix_call_dummy): Add.
4529 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4530 (CALL_DUMMY): Remove.
4531 (CALL_DUMMY_LENGTH): Remove.
4532 (CALL_DUMMY_START_OFFSET): Remove.
4533 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4534 (FIX_CALL_DUMMY): Remove.
4535 (PUSH_DUMMY_FRAME): Remove.
4536 (POP_FRAME): Remove.
7f8e7424 4537
f461f5cf
PM
45382002-06-19 Pierre Muller <[email protected]>
4539
4540 * parse.c (parse_fprintf): New function used to avoid calls to
4541 fprintf in bison parser generated debug code.
4542 * parser-defs.h: Declaration of new parse_fprintf function.
4543 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4544 Set YYDEBUG to 1 by default.
4545 Set YYFPRINTF as parse_fprintf.
4546
7f0c12ed
ML
45472002-06-21 Michal Ludvig <[email protected]>
4548
4549 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4550 encoding anymore.
4551 (pointer_encoding, enum ptr_encoding): New.
4552 (execute_cfa_program): Take care about pointer encoding.
4553 (dwarf2_build_frame_info): Only call parse_frame_info for
4554 .debug_frame and .eh_frame.
4555 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4556 fixed augmentation handling, added relative addressing,
4557 ignore duplicate FDEs. Added comments.
19d833a2 4558 * dwarf2cfi.c: Reindented.
7f0c12ed 4559
87c4a039
EZ
45602002-06-20 Elena Zannoni <[email protected]>
4561
4562 * event-top.c (command_handler): Don't use space_at_cmd_start
4563 unless there is sbrk() on the host. Assign time and space data
4564 to union fields of the appropriate length.
4565
1cf877ad
ML
45662002-06-20 Michal Ludvig <[email protected]>
4567
4568 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4569 x86_64_register_name. Return type changed to 'const char *'.
4570 (x86_64_register_name2nr): Rename to x86_64_register_number.
4571 (x86_64_gdbarch_init): Update to reflect the change.
4572 * x86-64-tdep.h: Ditto.
4573 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4574 (supply_fpregset): Ditto.
4575
3fadccb3
AC
45762002-06-19 Andrew Cagney <[email protected]>
4577
4578 * regcache.h: Update copyright.
4579 (struct regcache, struct gdbarch): Add opaque declarations.
4580 (current_regcache): Declare global variable.
4581 (regcache_read, regcache_write): Add gdbarch parameter.
4582 (regcache_save, regcache_save_no_passthrough)
4583 (regcache_restore, regcache_restore_no_passthrough)
4584 (regcache_dup, regcache_dup_no_passthrough)
4585 (regcache_cpy, regcache_cpy_no_passthrough)
4586 (deprecated_grub_regcache_for_registers)
4587 (deprecated_grub_regcache_for_register_valid)
4588 (regcache_valid_p): Add function declarations.
4589
4590 * regcache.c: Update copyright.
4591 (regcache_descr_handle): New global variable.
4592 (struct regcache_descr): Define.
4593 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4594 (regcache_descr, xfree_regcache_descr): New functions.
4595 (struct regcache): Define.
4596 (regcache_xmalloc, regcache_xfree): New functions.
4597 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4598 (regcache_dup, regcache_dup_no_passthrough): New functions.
4599 (regcache_valid_p, regcache_read_as_address): New functions.
4600 (deprecated_grub_regcache_for_registers): New function.
4601 (deprecated_grub_regcache_for_register_valid): New function.
4602 (current_regcache): New global variable.
4603 (register_buffer): Add regcache parameter. Update calls.
4604 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4605 (read_register_gen, write_register_gen): Update register_buffer
4606 call. Test for legacy_p instead of gdbarch_register_read_p or
4607 gdbarch_register_write_p.
4608 (regcache_collect): Update register_buffer call.
4609 (build_regcache): Rewrite. Use deprecated grub functions.
4610 (regcache_save, regcache_save_no_passthrough): New functions.
4611 (regcache_restore, regcache_restore_no_passthrough): New
4612 functions.
4613 (_initialize_regcache): Create the regcache_data_handle. Swap
4614 current_regcache global variable.
4615
4616 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4617 parameter to regcache_read and regcache_write calls.
4618 (sh4_register_read): Ditto.
4619 (sh64_pseudo_register_read): Ditto.
4620 (sh64_register_read): Ditto.
4621 (sh_pseudo_register_write): Ditto.
4622 (sh4_register_write): Ditto.
4623 (sh64_pseudo_register_write): Ditto.
4624 (sh64_register_write): Ditto.
4625
4626 * defs.h (XCALLOC): Define.
4627
152d9db6
GS
46282002-06-19 Grace Sainsbury <[email protected]>
4629
4630 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4631 * m68k-tdep.c (m68k_gdbarch_init): Added.
4632 (m68k_dump_tdep): Added.
4633
170911c7
DJ
46342002-06-19 Daniel Jacobowitz <[email protected]>
4635
4636 * ada-lang.c (fill_in_ada_prototype): Update comment.
4637
2e4ebe70
DJ
46382002-06-19 Daniel Jacobowitz <[email protected]>
4639
4640 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4641 MIPS_ABI_LAST.
4642 (mips_abi_string, mips_abi_strings): New.
4643 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4644 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4645 tdep->mips_abi_string. Honor mips_abi_string. Default to
4646 O32 if no ABI is found.
4647 (mips_dump_tdep): Use mips_abi_strings.
4648 (mips_abi_update): New function.
4649 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4650 ``set mips abi'' and ``show mips abi''. Check the size of
4651 mips_abi_strings.
4652
16775908
AC
46532002-06-19 Andrew Cagney <[email protected]>
4654
4655 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4656 constant.
4657
5051bfa4 46582002-06-18 Joel Brobecker <[email protected]>
16775908 4659
5051bfa4
JB
4660 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4661 current frame using only the first stack size adjustment. All
4662 subsequent size adjustments are not considered to be part of
4663 the "static" part of the current frame.
4664 Compute the address of the saved registers relative to the
4665 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4666 in use in this frame.
4667
56468235
DH
46682002-06-18 Don Howard <[email protected]>
4669
4670 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4671 type int expressions. Thanks to Jim Blandy <[email protected]> for
4672 suggesting this solution.
4673
0b624158
AC
46742002-06-18 Andrew Cagney <[email protected]>
4675
4676 * config/romp/xm-rtbsd.h: Delete file.
4677 * config/romp/rtbsd.mh: Delete file.
4678
221ea385
KS
46792002-06-18 Keith Seitz <[email protected]>
4680
4681 * breakpoint.c (condition_command): Post breakpoint_modify
4682 when a condition is added to an existing breakpoint.
4683 (commands_command): Likewise for commands.
4684 (set_ignore_count): Likewise for ignore counts.
4685 If no tty, do not simply return, still need to send event
4686 notification.
4687 (ignore_command): Only print a newline if the command came
4688 from a tty.
4689 Don't call breakpoints_changed, since this is now properly
4690 handled by set_ignore_count.
4691
5402eed1
AC
46922002-06-18 Andrew Cagney <[email protected]>
4693
4694 * MAINTAINERS: Note that cris-elf target can be compiled with
4695 -Werror.
4696 * cris-tdep.c (cris_register_name): Make return type constant.
4697 (cris_breakpoint_from_pc): Ditto.
4698
cc22880b
ML
46992002-06-18 Michal Ludvig <[email protected]>
4700
4701 * frame.h (struct frame_info): Change type of context to
4702 'struct context'.
4703
fa88f677
AC
47042002-06-17 Andrew Cagney <[email protected]>
4705
4706 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4707 pointer.
4708 * gdbarch.h, gdbarch.c: Regenerate.
4709 * config/mips/tm-mips.h (mips_register_name): Update.
4710 * i386-tdep.h (i386_register_name): Update.
4711 * mips-tdep.c (mips_register_name): Update
4712 * alpha-tdep.c (alpha_register_name): Update.
4713 * arch-utils.c (legacy_register_name): Update.
4714 * arch-utils.h (legacy_register_name): Update.
4715 * avr-tdep.c (avr_register_name): Update.
4716 * ia64-tdep.c (ia64_register_name): Update.
4717 * i386-tdep.c (i386_register_name): Update.
4718 * sparc-tdep.c (sparc32_register_name): Update.
4719 (sparc64_register_name): Update.
4720 (sparclite_register_name): Update.
4721 (sparclet_register_name): Update.
4722 * sh-tdep.c (sh_generic_register_name): Update.
4723 (sh_sh_register_name): Update.
4724 (sh_sh3_register_name): Update.
4725 (sh_sh3e_register_name): Update.
4726 (sh_sh_dsp_register_name): Update.
4727 (sh_sh3_dsp_register_name): Update.
4728 (sh_sh4_register_name): Update.
4729 (sh_sh64_register_name): Update.
4730 * s390-tdep.c (s390_register_name): Update.
4731 * rs6000-tdep.c (rs6000_register_name): Update.
4732 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4733 (ns32k_register_name_32382): Update.
4734 * d10v-tdep.c (d10v_ts2_register_name): Update.
4735 (d10v_ts3_register_name): Update.
4736 * xstormy16-tdep.c (xstormy16_register_name): Update.
4737 * vax-tdep.c (vax_register_name): Update.
4738 * v850-tdep.c (v850_register_name): Update.
4739 * m68hc11-tdep.c (m68hc11_register_name): Update.
4740 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4741 (am33_register_name): Update.
4742
ea1e7ef6
GS
47432002-06-17 Grace Sainsbury <[email protected]>
4744
4745 * m68k-tdep.c: Reindented.
4746
9b02dd1b
AC
47472002-06-17 Andrew Cagney <[email protected]>
4748
4749 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4750 list of predefined types.
4751
8758dec1
MK
47522002-06-16 Mark Kettenis <[email protected]>
4753
b6197528
MK
4754 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4755 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4756 REGISTER_CONVERT_TO_RAW): Remove defines.
4757 (i386_register_virtual_type, i386_register_convertible,
4758 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4759 Remove prototypes.
4760 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4761 macros mentioned above.
4762
82b47e62
MK
4763 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4764 (i386lynx_saved_pc_after_call): Remove prototype.
4765 * i386ly-tdep.c: Include "i386-tdep.h".
4766 (i386lynx_saved_pc_after_call): Make static. Use
4767 read_memory_nobpt instead of read_memory. Use
4768 read_memory_unsigned_integer instead of read_memory_integer.
4769 (i386lynx_init_abi): New function.
4770 (i386lynx_coff_osabi_sniffer): New function.
4771 (_initialize_i386bsd_tdep): New function.
4772
8758dec1
MK
4773 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4774 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4775 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4776 (i386_fix_call_dummy): Remove prototype.
4777 * i386-tdep.c (i386_call_dummy_words): New variable.
4778 (i386_gdbarch_init): Adjust for removal of the
4779 macros mentioned above.
4780
e9e68a56
AC
47812002-06-15 Andrew Cagney <[email protected]>
4782
4783 * command.h (add_setshow_auto_boolean_cmd): Replace
4784 add_set_auto_boolean_cmd.
4785 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4786 add_set_auto_boolean_cmd.
4787 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4788 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4789 mask-address'' command.
4790 (show_mask_address): Add cmd parameter.
4791 * remote.c (add_packet_config_cmd): Update. Change type of
4792 set_func and show_func to cmd_sfunc_ftype.
4793 (_initialize_remote): Update `set remote Z-packet'
4794 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4795 (show_remote_protocol_e_packet_cmd): Ditto.
4796 (show_remote_protocol_E_packet_cmd): Ditto.
4797 (show_remote_protocol_P_packet_cmd): Ditto.
4798 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4799 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4800 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4801 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4802 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4803 (show_remote_protocol_Z_packet_cmd): Ditto.
4804 (show_remote_protocol_binary_download_cmd): Ditto.
4805 (show_remote_cmd): Pass NULL to all of above.
4806
fc08ec52
MK
48072002-06-15 Mark Kettenis <[email protected]>
4808
4809 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4810 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4811 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4812 POP_FRAME): Remove defines.
4813 (i386_push_arguments, i386_store_struct_return,
4814 i386_extract_return_value, i386_store_return_value,
4815 i386_extract_struct_value_address, i386_push_dummy_frame,
4816 i386_pop_frame): Renove prototypes.
4817 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4818 macros mentioned above.
4819
e707bbc2
AC
48202002-06-15 Andrew Cagney <[email protected]>
4821
4822 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4823 add_set_boolean_cmd.
4824 (add_setshow_cmd): New function.
4825 * command.h (add_setshow_boolean_cmd): Replace
4826 add_set_boolean_cmd.
4827 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4828 and ``set rdiromatzero''.
4829 * maint.c (_initialize_maint_cmds): Update commented out code.
4830 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4831 * target.c (initialize_targets): Update `set
4832 trust-readonly-sections'.
4833 * remote.c (_initialize_remote): Update `set remotebreak'.
4834
42fdc8df
MK
48352002-06-15 Mark Kettenis <[email protected]>
4836
93924b6b
MK
4837 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4838 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4839 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4840 fit into multi-arch framework.
4841 (i386_breakpoint_from_pc): New function.
4842 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4843 above.
4844
42fdc8df
MK
4845 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4846 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4847 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4848 (i386_frameless_function_invocation, i386_frame_num_args,
4849 i386_frame_init_saved_regs): Remove prototypes.
4850 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4851 macros mentioned above.
4852
9773a94b
AC
48532002-06-15 Andrew Cagney <[email protected]>
4854
4855 * cli/cli-decode.c (set_cmd_cfunc): Update.
4856 (set_cmd_sfunc): Update.
4857 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4858 (set_cmd_sfunc, set_cmd_cfunc): Update.
4859 * cli/cli-decode.h: Update.
4860
6e157172
MK
48612002-06-15 Mark Kettenis <[email protected]>
4862
4863 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4864 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4865
7f19b9a2
AC
48662002-06-15 Andrew Cagney <[email protected]>
4867
4868 * defs.h (auto_boolean): Declare enum.
4869 * command.h (cmd_auto_boolean): Delete enum.
4870 * mips-tdep.c (mask_address_var): Update.
4871 (mips_mask_address_p): Update.
4872 (show_mask_address): Update.
4873 * remote.c (struct packet_config): Update.
4874 (update_packet_config): Update.
4875 (show_packet_config_cmd): Update.
4876 (packet_ok): Update.
4877 (add_packet_config_cmd): Update.
4878 (_initialize_remote):
4879 * command.h: Update.
4880 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4881 (do_setshow_command): Update.
4882 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4883 * cli/cli-decode.h: Update.
4884
1cf88de5
MK
48852002-06-15 Mark Kettenis <[email protected]>
4886
22ba8cf2
MK
4887 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4888 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4889 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4890 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4891 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4892 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4893
762c5349
MK
4894 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4895 list of DJGPP COFF targets.
4896
091198bb
MK
4897 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4898 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4899 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4900 (FP0_REGNUM): Remove define.
4901 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4902 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4903 (i386_register_virtual_size): Remove protoype.
4904 * i386-tdep.c (i386_register_virtual_size): Removed.
4905 (i386_extract_return_value, i386_store_return_value): Use
4906 FP0_REGNUM instead of NUM_FREGS to determine whether the
4907 floating-point registers are available.
4908 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4909 Adjust for removal of macros mentioned above.
4910
49112002-06-15 Mark Kettenis <[email protected]>
4912
fcc9bf01
MK
4913 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4914 comments.
4915 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4916 Remove prototypes.
4917 (supply_gregset, fill_gregset): Remove use of register keyword and
4918 remove declaration for regmap. Use I386_NUM_GREGS instead of
4919 NUM_REGS and NUM_FREGS.
4920 (FPREGSET_FSAVE_OFFSET): Remove.
4921 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4922 NUM_FREGS to determine whether the floating-point registers are
4923 available.
4924
65e78234
MK
4925 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4926 gnu_store_registers): Replace usage of NUM_GREGS with
4927 I386_NUM_GREGS.
4928
98df6387
MK
4929 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4930 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4931 usage of NUM_GREGS with I386_NUM_GREGS.
4932
099a9414
MK
4933 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4934
57976e88
MK
4935 * i386bsd-nat.c: Include "i386-tdep.h".
4936 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4937 I386_NUM_GREGS.
4938
b335f4a6
MK
4939 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4940 and associated comment. They no longer make any sense, since we
4941 don't use this file anymore on Linux.
4942
1cf88de5
MK
4943 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4944 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4945 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4946 elements in these arrays.
4947 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4948 MAX_NUM_REGS.
4949
daa66587
MK
49502002-06-15 Mark Kettenis <[email protected]>
4951
4952 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4953 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4954
26e9b323
AC
49552002-06-14 Andrew Cagney <[email protected]>
4956
4957 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4958 EXTRACT_RETURN_VALUE.
4959 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4960 EXTRACT_STRUCT_VALUE_ADDRESS.
4961 * gdbarch.h, gdbarch.c: Regenerate.
4962
4963 * values.c (value_being_returned): Handle
4964 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4965 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4966
4967 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4968 * arm-tdep.c (arm_gdbarch_init): Update.
4969 * avr-tdep.c (avr_gdbarch_init): Update.
4970 * cris-tdep.c (cris_gdbarch_init): Update.
4971 * d10v-tdep.c (d10v_gdbarch_init): Update.
4972 * ia64-tdep.c (ia64_gdbarch_init): Update.
4973 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4974 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4975 * s390-tdep.c (s390_gdbarch_init): Update.
4976 * sh-tdep.c (sh_gdbarch_init): Update.
4977 * s390-tdep.c (s390_gdbarch_init): Update.
4978 * sparc-tdep.c (sparc_gdbarch_init): Update.
4979 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4980 * v850-tdep.c (v850_gdbarch_init): Update.
4981 * vax-tdep.c (vax_gdbarch_init): Update.
4982 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4983 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4984
4985 * config/arc/tm-arc.h: Update.
4986 * config/d30v/tm-d30v.h: Update.
4987 * config/fr30/tm-fr30.h: Update.
4988 * config/h8300/tm-h8300.h: Update.
4989 * config/h8500/tm-h8500.h: Update.
4990 * config/i386/tm-i386.h: Update.
4991 * config/i386/tm-ptx.h: Update.
4992 * config/i386/tm-symmetry.h: Update.
4993 * config/i960/tm-i960.h: Update.
4994 * config/m32r/tm-m32r.h: Update.
4995 * config/m68k/tm-delta68.h: Update.
4996 * config/m68k/tm-linux.h: Update.
4997 * config/m68k/tm-m68k.h: Update.
4998 * config/m88k/tm-m88k.h: Update.
4999 * config/mcore/tm-mcore.h: Update.
5000 * config/mips/tm-mips.h: Update.
5001 * config/mn10200/tm-mn10200.h: Update.
5002 * config/pa/tm-hppa.h: Update.
5003 * config/pa/tm-hppa64.h: Update.
5004 * config/sparc/tm-sp64.h: Update.
5005 * config/sparc/tm-sparc.h: Update.
5006 * config/sparc/tm-sparclet.h: Update.
5007 * config/z8k/tm-z8k.h: Update.
5008
5179e78f
AC
50092002-06-14 Andrew Cagney <[email protected]>
5010
5011 * Makefile.in (i386_linux_tdep_h): Define.
5012 (i386_tdep_h, i387_tdep_h): Define.
5013 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5014 $(i386_tdep_h) and $(i387_tdep_h).
5015 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5016
8201327c
MK
50172002-06-14 Mark Kettenis <[email protected]>
5018
edf393ac
MK
5019 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5020 Already covered by the default.
5021
896fb97d
MK
5022 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5023 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5024 (i386_gdbarch_init): Initialize long_double_format and long_double
5025 bit.
5026
8201327c
MK
5027 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5028 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5029 Move these to ...
5030 * config/i386/i386sol2.mh: ... here.
5031 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5032 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5033 (SIGCONTEXT_PC_OFFSET): Remove define.
5034 (IN_SIGTRAMP): Remove define.
5035 * i386-sol2-tdep.c: New file.
5036
5037 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5038 * config/i386/tm-i386nw.h: Removed.
5039
5040 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5041 USE_STRUCT_CONVENTION): Remove defines.
5042 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5043 (get_longjmp_target): Remove prototype.
5044 (IN_SIGTRAMP): Remove define.
5045 (i386bsd_in_sigtramp): Remove prototype.
5046 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5047 function. Update comment accordingly
5048 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5049 (FRAME_SAVED_PC): Remove define.
5050 (i386bsd_frame_saved_pc): Remove prototype.
5051 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5052 GET_LONGJMP_TARGET): Remove defines.
5053 (get_longjmp_target): Remove prototype.
5054 (IN_SIGTRAMP): Remove define.
5055 (i386bsd_in_sigtramp): Remove prototype.
5056 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5057 function. Update comment accordingly
5058 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5059 (FRAME_SAVED_PC): Remove define.
5060 (i386bsd_frame_saved_pc): Remove prototype.
5061 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5062 Remove prototype.
5063 (USE_STRUCT_CONVENTION): Remove prototype.
5064 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5065 declaration.
5066 (_initialize_i386bsd_nat): Revise logic to determine some
5067 constants at compile time when compiling a native GDB. Warn if
5068 things don't match up with what we expect.
5069 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5070 Remove variables.
5071 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5072 to use date stored in `struct gdbarch_tdep'.
5073 (i386bsd_sigcontext_offset): Remove varaible.
5074 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5075 stored in `struct gdbarch_tdep'.
5076 (i386bsd_frame_saved_pc): Make static.
5077 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5078 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5079 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5080 i386fbsd4_sc_pc_offset): New variables.
5081 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5082 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5083 functions.
5084 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5085 functions.
5086 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5087 Modify the value of i386fbsd_sigtramp_start and
5088 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5089 i386fbsd_sigtramp_end.
5090 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5091 function.
5092
5093 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5094 define to i386-linux-tdep.h.
5095 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5096 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5097 defines.
5098 (i386_linux_register_name, i386_linux_register_byte,
5099 i386_linux_register_raw_size): Remove prototypes.
5100 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5101 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5102 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5103 TARGET_WRITE_PC): Remove defines.
5104 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5105 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5106 i386_linux_write_pc): Remove prototypes.
5107 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5108 (get_longjmp_target): Remove prototype.
5109 * i386-linux-tdep.h: New file.
5110 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5111 * i386-linux-tdep.c: Include "i386-tdep.h" and
5112 "i386-linux-tdep.h".
5113 (i386_linux_register_name, i386_linux_register_byte,
5114 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5115 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5116 Make static.
5117 (i386_linux_init_abi): New function.
5118 (_initialize_i386_linux_tdep): New function.
5119
5120 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5121 (i386_saved_pc_after_call): Remove prototype.
5122 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5123 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5124 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5125 (i386_register_name, i386_stab_reg_to_regnum,
5126 i386_dwarf_reg_to_regnum): Remove prototypes.
5127 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5128 SIZEOF_SSE_REGS): Remove defines.
5129 (REGISTER_BYTES): Remove define.
5130 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5131 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5132 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5133 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5134 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5135 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5136 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5137 (get_longjmp_target): Remove prototype.
5138 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5139 (sigtramp_saved_pc): Remove define.
5140 (i386v4_sigtramp_saved_pc): Remove prototype.
5141 * config/i386/tm-go32.h (FRAME_CHAIN,
5142 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5143 (i386go32_frame_saved_pc): Remove prototype.
5144 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5145 (get_longjmp_target): Remove prototype.
5146 * i386-tdep.h: Include "osabi.h".
5147 (enum i386_abi): Removed.
5148 (enum struct_return): New enum.
5149 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5150 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5151 sc_pc_offset members.
5152 (i386_gdbarch_register_os_abi): Remove prototype.
5153 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5154 I386_SSE_NUM_REGS): New defines.
5155 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5156 I386_SSE_SIZEOF_REGS): New defines.
5157 (i386_register_name, i386_register_byte, i386_register_raw_size):
5158 New prototypes.
5159 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5160 (i386bsd_sigtramp_saved_pc): New prototype.
5161 * i386-tdep.c: Don't include "elf-bfd.h".
5162 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5163 i386_frame_chain, i386_saved_pc_after_call): Make static.
5164 (i386_frame_saved_pc): Rewrite to call architecture dependent
5165 function to deal with signal handlers. Make static.
5166 (i386go32_frame_saved_pc): Removed.
5167 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5168 Removed.
5169 (i386_get_longjmp_target): New function.
5170 (default_struct_convention, pcc_struct_convention,
5171 reg_struct_convention, valid_conventions, struct_convention): New
5172 variables.
5173 (i386_use_struct_convention): New function.
5174 (i386v4_sigtramp_saved_pc): Renamed to
5175 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5176 (i386_pc_in_sigtramp): New function.
5177 (i386_abi_names): Removed.
5178 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5179 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5180 Removed.
5181 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5182 i386_gdbarch_register_os_abi): Removed.
5183 (struct i386_abi_handler): Removed.
5184 (i386_abi_handler_list): Removed.
5185 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5186 functions.
5187 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5188 i386_nw_init_abi): New functions.
5189 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5190 Use set_gdbarch_xxx() calls instead of relying on macros for a
5191 number of calls.
5192 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5193 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5194 Register the various architecture variants defined in this file.
5195
ad2f7632
DJ
51962002-06-14 Daniel Jacobowitz <[email protected]>
5197
5198 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5199 (struct main_type): Remove arg_types member. Update comments for
5200 struct field.
5201 (TYPE_ARG_TYPES): Remove.
5202 (TYPE_FN_FIELD_ARGS): Update.
5203 (smash_to_method_type): Update prototype.
5204
5205 * c-typeprint.c (cp_type_print_method_args): Take method type
5206 instead of argument list. Use new argument layout. Simplify.
5207 (c_type_print_args): Use new argument layout. Simplify.
5208 (c_type_print_base): Update call to cp_type_print_method_args.
5209 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5210 argument; use die->type instead. Update call to
5211 smash_to_method_type.
5212 (read_structure_scope): Update call to dwarf2_add_member_fn.
5213 * gdbtypes.c (allocate_stub_method): Update comment.
5214 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5215 Use new argument layout.
5216 (check_stub_method): Use new argument layout. Don't count
5217 void as an argument.
5218 (print_arg_types): Update comments. Use new argument layout.
5219 (recursive_dump_type): Don't print arg_types member.
5220 * hpread.c (hpread_read_struct_type): Use new argument layout.
5221 (fixup_class_method_type): Likewise.
5222 (hpread_type_lookup): Likewise.
5223 * stabsread.c (read_type): Update calls to read_args and
5224 smash_to_method_type.
5225 (read_args): Use new argument layout. Simplify.
5226 * valops.c (typecmp): Use new argument layout. Update parameters
5227 and comments. Simplify.
5228 (hand_function_call): Use new argument layout.
5229 (search_struct_method): Update call to typecmp.
5230 (find_overload_match): Use new argument layout.
5231
6da02953
DJ
52322002-06-13 Daniel Jacobowitz <[email protected]>
5233
5234 * NEWS: Mention multithreaded debug support for gdbserver.
5235
519b2366
DJ
52362002-06-13 Daniel Jacobowitz <[email protected]>
5237
5238 * MAINTAINERS: Mention NEWS.
5239
6c0d6680
DJ
52402002-06-13 Daniel Jacobowitz <[email protected]>
5241
5242 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5243 (struct mips_objfile_private, compare_pdr_entries): New.
5244 (non_heuristic_proc_desc): Read the ".pdr" section if it
5245 is present.
5246
6529d2dd
AC
52472002-06-12 Andrew Cagney <[email protected]>
5248
5249 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5250 (arm_debug): New static variable.
5251 (_initialize_arm_tdep): Add ``set debug arm'' command.
5252
26216b98
AC
52532002-06-12 Andrew Cagney <[email protected]>
5254
5255 * Makefile.in (sim_arm_h): Define.
5256 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5257 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5258 (arm_register_sim_regno): New function, map an internal REGNUM
5259 onto a simulator register number.
5260 (arm_gdbarch_init): Set register_sim_regno.
5261
814b3ba0
AH
52622002-06-09 Aldy Hernandez <[email protected]>
5263
5264 * MAINTAINERS: Add self.
5265
475b0867
JB
52662002-06-11 Jim Blandy <[email protected]>
5267
919d772c
JB
5268 * source.c (source_info): Mention whether the symtab has
5269 information about preprocessor macros.
5270
475b0867
JB
5271 Call the command `info macro', not `show macro'.
5272 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5273 Fix error message.
5274 (_initialize_macrocmd): Register `info_macro_command' in
5275 `infolist', not `showlist'.
5276
9e364162
DJ
52772002-06-11 Daniel Jacobowitz <[email protected]>
5278
5279 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5280 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5281 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5282 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5283 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5284 unconditionally.
5285 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5286 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5287 (_initialize_mips_tdep): Remove dead code.
5288 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5289 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5290 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5291 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5292 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5293 MIPS_LAST_FP_ARG_REGNUM): Remove.
5294
23aa4c72
ML
52952002-06-11 Michal Ludvig <[email protected]>
5296
5297 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5298 (unwind_tmp_obstack_free, parse_frame_info)
5299 (update_context, cfi_read_fp, cfi_write_fp)
5300 (cfi_frame_chain, cfi_init_extra_frame_info)
5301 (cfi_virtual_frame_pointer): Use the above function.
264d1763 5302 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 5303
70eb15a4
CV
53042002-06-11 Corinna Vinschen <[email protected]>
5305
5306 * v850-tdep.c (v850_type_is_scalar): New function.
5307 (v850_use_struct_convention): Match current gcc implementation
5308 as close as possible.
5309 (v850_push_arguments): Fix stack_offset handling. Don't write
5310 struct_addr into register. This is done by v850_store_struct_return.
5311 (v850_extract_return_value): Care for structs.
5312 (v850_store_return_value): Ditto.
5313 (v850_store_struct_return): Actually write address.
5314
482a4d06
ML
53152002-06-11 Michal Ludvig <[email protected]>
5316
5317 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5318 without debug information too.
5319
d855c300
AC
53202002-06-10 Andrew Cagney <[email protected]>
5321
5322 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5323 Make multi-arch pure.
5324 * gdbarch.h, gdbarch.c: Re-generate.
5325 * arm-tdep.c (arm_print_float_info): Update.
5326 * arch-utils.h (default_print_float_info): Update.
5327 * arch-utils.c (default_print_float_info): Update.
5328 * infcmd.c (float_info): Update call.
5329
dd12a101
AC
53302002-06-10 Andrew Cagney <[email protected]>
5331
5332 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5333 the front of the initialize list.
5334
101dcfbe
AC
53352002-06-10 Andrew Cagney <[email protected]>
5336
5337 * infrun.c (struct inferior_status): Replace fields
5338 selected_frame_address and selected_level with field
5339 selected_frame_id.
5340 (save_inferior_status): Update. Use get_frame_id.
5341 (struct restore_selected_frame_args): Delete.
5342 (restore_selected_frame): Update. Use frame_find_by_id.
5343 (restore_inferior_status): Update.
5344
5345 * breakpoint.h (struct breakpoint): Change type of
5346 watchpoint_frame to frame_id.
5347 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5348 call to get_current_frame.
5349 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5350 get_current_frame.
5351 (watchpoint_check): Use frame_find_by_id.
5352
5353 * frame.h (record_selected_frame): Delete declaration.
5354 * stack.c (record_selected_frame): Delete function.
5355
5356 * frame.h (struct frame_id): Define.
5357 (get_frame_id): Declare.
5358 (frame_find_by_id): Declare.
5359 * frame.c (frame_find_by_id): New function.
5360 (get_frame_id): New function.
5361
304270b6
AV
53622002-06-10 Andrey Volkov <[email protected]>
5363
5364 * ser-e7kpc.c: Fix duplicated define and call of
5365 _initialize_ser_e7000pc
5366
2f2cf184
DJ
53672002-06-09 Daniel Jacobowitz <[email protected]>
5368
5369 * signals/signals.c (target_signal_from_host): Fix #ifdef
5370 SIGRTMIN case.
5371 (do_target_signal_to_host): Likewise.
5372
caaa3122
DJ
53732002-06-09 Daniel Jacobowitz <[email protected]>
5374
5375 * mips-tdep.c (mips_find_abi_section): New function.
5376 (mips_gdbarch_init): Call it.
5377
6ac5df3a
MK
53782002-06-09 Mark Kettenis <[email protected]>
5379
5380 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5381 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5382 after Andrew's 2002-06-08 gdbarch change.
5383
82ea117a
MK
53842002-06-09 Mark Kettenis <[email protected]>
5385
5386 * i386-linux-nat.c (suppy_gregset): Don't supply
5387 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5388 register cache.
5389 (fill_gregset): Don't fetch it under the same circumstances.
5390
3c25f8c7
AC
53912002-06-09 Andrew Cagney <[email protected]>
5392
5393 * Makefile.in (callback_h): Define.
5394 (remote_sim_h): Update path to remote-sim.h.
5395 (remote-rdp.o): Add $(callback_h).
5396 (remote-sim.o): Use $(callback_h).
5397 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5398 * remote-rdp.c: Include "gdb/callback.h".
5399
1029b7fa
MK
54002002-06-09 Mark Kettenis <[email protected]>
5401
5402 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5403 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5404
616675d3
AC
54052002-06-08 Andrew Cagney <[email protected]>
5406
a3efda28
AC
5407 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5408 * rdi-share/serpardr.c: Ditto.
5409 * rdi-share/unixcomm.c: Ditto.
5410 * rdi-share/serdrv.c: Ditto.
5411 * rdi-share/hostchan.h: Ditto.
5412 * rdi-share/hostchan.c: Ditto.
5413 * rdi-share/host.h: Ditto.
5414 * rdi-share/devsw.c: Ditto.
5415
c5f10366
AC
5416 * objfiles.h: Change type of obj_private to void pointer.
5417 * pa64solib.c: Update copyright. Don't include "assert.h", use
5418 strcmp instead of STREQ, use LONGEST, do not use PTR
5419 * somsolib.c: Ditto.
5420
616675d3
AC
5421 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5422 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5423 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5424
e4b415d9
AC
54252002-06-08 Andrew Cagney <[email protected]>
5426
5427 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5428 (default_get_saved_register): Delete function.
5429 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5430 generic_unwind_get_saved_register.
5431 * gdbarch.h, gdbarch.c: Re-generate.
5432
ca0d0b52
AC
54332002-06-08 Andrew Cagney <[email protected]>
5434
5435 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5436 generic_func_frame_chain_valid.
5437 * gdbarch.h, gdbarch.c: Re-generate.
5438 * blockframe.c (generic_func_frame_chain_valid): Only check
5439 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5440 passing FP to PC_IN_CALL_DUMMY.
5441 Fix PR gdb/360.
5442
76860b5f
AC
54432002-06-08 Andrew Cagney <[email protected]>
5444
5445 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5446 (register_gdbarch_data): Initialize init_p.
5447 (gdbarch_data): Initialize data pointer using the init function.
5448 (init_gdbarch_data): Delete function.
5449 (gdbarch_update_p): Update.
5450 (initialize_non_multiarch): Update.
5451 (struct gdbarch): Add field initialized_p.
5452 * gdbarch.h, gdbarch.c: Re-generate.
5453
8dda9770
ML
54542002-06-07 Michal Ludvig <[email protected]>
5455
5456 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5457 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5458 better do the things actually here.
5459 * x86-64-tdep.c (x86_64_register_name2nr): New.
5460 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5461 (x86_64_gdbarch_init): Respect the above change.
5462 * x86-64-tdep.h (x86_64_register_name2nr)
5463 (x86_64_register_nr2name): Add prototypes.
5464 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5465
3d79a47c
MS
54662002-06-06 Michael Snyder <[email protected]>
5467
7bd91a28
MS
5468 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5469 Delete extra braces and re-indent.
5470 (d10v_store_return_value): Char return values
3d79a47c
MS
5471 must be shifted over by one byte in R0.
5472 (d10v_extract_return_value): Delete extra braces, re-indent.
5473
095a4c96
EZ
54742002-06-06 Elena Zannoni <[email protected]>
5475
5476 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5477 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5478 (d10v_integer_to_address): Rewrite.
5479 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5480 the d10v specific functions which take care of converting to the
5481 correct space.
5482
e8a77ca4
EZ
54832002-06-06 Elena Zannoni <[email protected]>
5484
5485 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5486 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5487
4f2e4a4f
AC
54882002-06-02 Andrew Cagney <[email protected]>
5489
5490 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5491 includes.
5492 * config/tm-linux.h: Ditto.
5493 * config/alpha/tm-alphalinux.h: Ditto.
5494 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5495 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5496 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5497 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5498 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5499 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5500 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5501 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5502 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5503 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5504 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5505 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5506 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5507 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5508 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5509 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5510 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5511 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5512 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5513 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5514 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5515 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5516 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5517 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5518 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5519 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5520 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5521 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5522 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5523 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5524 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5525 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5526 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5527 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5528 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5529 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5530 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5531
ae2ab2ce
AS
55322002-05-04 Aidan Skinner <[email protected]>
5533
5534 * ada-exp.tab.c: New file
5535 * ada-exp.y: New file
5536 * ada-lang.c: New file
5537 * ada-lang.h: New file
5538 * ada-lex.c: New file
5539 * ada-lex.l: New file
5540 * ada-tasks.c: New file
5541 * ada-typeprint.c: New file
5542 * ada-valprint.c: New file
5543
0ddd0135
JT
55442002-06-02 Jason Thorpe <[email protected]>
5545
5546 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5547 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5548
750fbacc
JT
55492002-06-02 Jason Thorpe <[email protected]>
5550
5551 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5552 insetead of ppc-linux-tdep.o.
5553 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5554 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5555
df94e18a
AC
55562002-06-02 Andrew Cagney <[email protected]>
5557
5558 2002-05-07 Christian Groessler <[email protected]>
5559 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5560 bit register contents for little endian hosts.
5561
1a38ab75
AC
55622002-06-01 Andrew Cagney <[email protected]>
5563
5564 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5565 any maintainer.
5566
8b1632ac
AC
55672002-06-01 Andrew Cagney <[email protected]>
5568
5569 * gdbarch.h: Regenerate.
5570
627054c8
AC
55712002-06-01 Andrew Cagney <[email protected]>
5572
5573 * MAINTAINERS: Add everyone to write-after-approval list.
5574
4f460812
AC
55752002-06-01 Andrew Cagney <[email protected]>
5576
5577 * stack.c (frame_info): Use frame_register_unwind instead of
5578 saved_regs. Mention when the SP is on the stack or in a register.
5579
5580 * frame.h (frame_register_unwind_ftype): Define. Document.
5581 (struct frame_info): Add field register_unwind and
5582 register_unwind_cache.
5583 (frame_register_unwind): Declare.
5584 (generic_unwind_get_saved_register): Declare.
5585
5586 * frame.c (frame_register_unwind): New function.
5587 (generic_unwind_get_saved_register): New function.
5588
5589 * blockframe.c (generic_call_dummy_register_unwind): New function.
5590 (frame_saved_regs_register_unwind): New function.
5591 (set_unwind_by_pc): New function.
5592 (create_new_frame): New function.
5593 (get_prev_frame): New function.
5594
de888f76
AC
55952002-05-30 Andrew Cagney <[email protected]>
5596
5597 * a29k-share/: Delete directory.
5598 * remote-vx29k.c: Delete file.
5599
2f2c3626
JT
56002002-05-30 Jason Thorpe <[email protected]>
5601
5602 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5603 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5604
9ce5c36a
JT
56052002-05-30 Jason Thorpe <[email protected]>
5606
5607 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5608 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5609 (sparc64nbsd-nat.o)
5610 (sparcnbsd-nat.o)
5611 (sparcnbsd-tdep.o): New dependency lists.
5612 * NEWS: Note new UltraSPARC NetBSD native configuration.
5613 * configure.host (sparc64-*-netbsd*): New host.
5614 * configure.tgt (sparc-*-netbsdelf*)
5615 (sparc-*-netbsd*): Set gdb_target to nbsd.
5616 (sparc64-*-netbsd*): New target.
5617 * sparc64nbsd-nat.c: New file.
5618 * sparcnbsd-nat.c: New file.
5619 * sparcnbsd-tdep.c: New file.
5620 * sparcnbsd-tdep.h: New file.
5621 * config/sparc/nbsd.mt: New file.
5622 * config/sparc/nbsd64.mh: New file.
5623 * config/sparc/nbsd64.mt: New file.
5624 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5625 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5626 (HOST_IPC): Remove.
5627 * config/sparc/nbsdaout.mt: Remove.
5628 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5629 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5630 (HOST_IPC): Remove.
5631 * config/sparc/nbsdelf.mt: Remove.
5632 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5633 sparc-nat.c compatiblity defines.
5634 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5635 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5636 * config/sparc/tm-nbsd64.h: New file.
5637 * config/sparc/tm-nbsdaout.h: Remove.
5638 * config/sparc/xm-nbsd.h: Remove.
5639
ef3cf062
JT
56402002-05-30 Jason Thorpe <[email protected]>
5641
5642 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5643 * sparc-tdep.c: Include osabi.h.
5644 (gdbarch_tdep): Add osabi member.
5645 (_initialize_sparc_tdep): Use gdbarch_register.
5646 (sparc_gdbarch_init): Use generic OS ABI framework.
5647 (sparc_dump_tdep): New function.
5648
ee8ff470
KB
56492002-05-30 Kevin Buettner <[email protected]>
5650
5651 * corefile.c (do_captured_read_memory_integer): Return non-zero
5652 result.
5653 (safe_read_memory_integer): Copy result of memory read when
5654 status is non-zero. Also, add comments.
5655
7b112f9c
JT
56562002-05-20 Jason Thorpe <[email protected]>
5657
5658 * Makefile.in (ppc_tdep_h): Define.
5659 (ppc-linux-nat.o)
5660 (ppc-linux-tdep.o)
5661 (rs6000-tdep.o): Use $(ppc_tdep_h).
5662 (ppc-sysv-tdep.o)
5663 (ppcnbsd-nat.o)
5664 (ppcnbsd-tdep.o): New dependency lists.
5665 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5666 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5667 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5668 (ppc_sysv_abi_broken_use_struct_convention)
5669 (ppc_sysv_abi_use_struct_convention)
5670 (ppc_sysv_abi_push_arguments): Move to...
5671 * ppc-sysv-tdep.c: ...here.
5672 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5673 * rs6000-tdep.c (process_note_abi_tag_sections)
5674 (get_elfosabi): Remove.
5675 (rs6000_gdbarch_init): Use generic OS ABI framework.
5676 (rs6000_dump_tdep): New function.
5677 (_initialize_rs6000_tdep): Use gdbarch_register.
5678 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5679 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5680 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5681 of ppc-linux-tdep.o.
5682 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5683 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5684 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5685 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5686 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5687 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5688
480dd42a
JB
56892002-05-29 Jim Blandy <[email protected]>
5690
5691 * macroscope.c (default_macro_scope): Put `void' in empty argument
5692 list.
5693
4182591f
AC
56942002-05-29 Andrew Cagney <[email protected]>
5695
5696 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5697 * arch-utils.c: Include "sim-regno.h".
5698 * gdbarch.sh: Don't include "sim-regno.h".
5699 * gdbarch.h, gdbarch.c: Regenerate.
5700 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5701 here.
5702 * arch-utils.h (legacy_register_sim_regno): To here.
5703 * remote-sim.c (legacy_register_sim_regno): Move function from
5704 here.
5705 * arch-utils.c (legacy_register_sim_regno): To here.
5706
8238d0bf
AC
57072002-05-28 Andrew Cagney <[email protected]>
5708
5709 * sim-regno.h: New file.
5710 * Makefile.in (sim_regno_h): Define.
5711 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5712 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5713 (legacy_register_sim_regno): New function.
5714 (one2one_register_sim_regno): New function.
5715 (gdbsim_fetch_register): Rewrite.
5716 (gdbsim_store_register): Only store a register when
5717 REGISTER_SIM_REGNO is valid.
5718 * d10v-tdep.c: Include "sim-regno.h".
5719 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5720 (d10v_ts3_register_sim_regno): Ditto.
5721 * gdbarch.sh: Include "sim-regno.h".
5722 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5723 * gdbarch.h, gdbarch.c: Regenerate.
5724 * arch-utils.h (default_register_sim_regno): Delete declaration.
5725 * arch-utils.c (default_register_sim_regno): Delete function.
5726
485721b1
JT
57272002-05-28 Jason Thorpe <[email protected]>
5728
5729 * ppcnbsd-nat.c: Rewrite.
5730 * ppcnbsd-tdep.c: New file.
5731 * ppcnbsd-tdep.h: New file.
5732 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5733 solib.o, and solib-svr4.o.
5734 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5735 nbsd-tdep.o, and corelow.o.
5736
697f244d
AC
57372002-05-28 Andrew Cagney <[email protected]>
5738
5739 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5740 `tr' and `sed'. Mention that `broken' targets are not expected to
5741 build.
5742
f08caad1 57432002-05-27 Michal Ludvig <[email protected]>
b1ab997b
ML
5744
5745 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5746 Let PC point right after the prologue before looking up symbols.
5747
3139facc
MH
57482002-05-27 Martin M. Hunt <[email protected]>
5749
5750 * i386-tdep.c (i386_register_virtual_type): Return
5751 builtin_type_vec128i for SSE registers.
5752
5753 * gdbtypes.h (builtin_type_vec128i): Declare.
5754
5755 * gdbtypes.c (build_builtin_type_vec128i): New function.
5756 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5757 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5758 (build_gdbtypes): Initialize new builtin vector types.
5759 (_initialize_gdbtypes): Register new vector types with gdbarch.
5760
6e3ba3b8
JT
57612002-05-26 Jason Thorpe <[email protected]>
5762
5763 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5764 since it has been multi-arch'd.
5765 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5766 Move Alpha and VAX multi-arch news entries to same section
5767 as other multi-arch news.
5768
93d5585d
JT
57692002-05-26 Jason Thorpe <[email protected]>
5770
5771 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5772 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5773 static. Rename some register numbers to put them in ns32k-tdep
5774 private namespace.
5775 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5776 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5777 functions.
5778 (_initialize_ns32k_tdep): Use gdbarch_register.
5779 * ns32k-tdep.h: New file.
5780 * ns32knbsd-tdep.c: New file.
5781 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5782 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5783 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5784 REGISTER_BYTES, REGISTER_BYTE): Remove.
5785 * config/ns32k/tm-ns32k.h: New file.
5786 * config/ns32k/tm-umax.h: Remove.
5787
efb2c70e
JT
57882002-05-26 Jason Thorpe <[email protected]>
5789
5790 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5791 ns32k_store_struct_return, ns32k_extract_return_value,
5792 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5793 functions.
5794 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5795 ns32k_saved_pc_after_call.
5796 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5797 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5798 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5799 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5800 ns32k_extract_struct_value_address.
5801
7bcc927b
JT
58022002-05-26 Jason Thorpe <[email protected]>
5803
5804 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5805 ns32k_fix_call_dummy): New.
5806 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5807 ns32k_call_dummy_words.
5808 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5809 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5810 CALL_DUMMY_NARGS): Remove.
5811 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5812
78f9d765
JT
58132002-05-26 Jason Thorpe <[email protected]>
5814
5815 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5816 ns32k_frame_saved_pc, ns32k_frame_args_address,
5817 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5818 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5819 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5820 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5821 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5822 (BREAKPOINT): Remove..
5823 (FRAME_CHAIN): Define as ns32k_frame_chain.
5824 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5825 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5826 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5827 (FRAME_FIND_SAVED_REGS): Remove.
5828 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5829 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5830 (POP_FRAME): Define as ns32k_pop_frame.
5831
f2c762e0
JT
58322002-05-26 Jason Thorpe <[email protected]>
5833
5834 * ns32k-tdep.c (ns32k_register_byte_32082,
5835 ns32k_register_byte_32382, ns32k_register_raw_size,
5836 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5837 functions.
5838 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5839 ns32k_register_byte_32382.
5840 * config/ns32k/tm-umax.h: Update copyright years.
5841 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5842 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5843 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5844 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5845 (ns32k_get_enter_addr): Fix prototype.
5846
af137673
JT
58472002-05-26 Jason Thorpe <[email protected]>
5848
5849 * ns32k-tdep.c: Update copyright years.
5850 (ns32k_register_name_32082): New function.
5851 (ns32k_register_name_32382): Ditto.
5852 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5853 (REGISTER_NAME): Define as ns32k_register_name_32382.
5854 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5855 (REGISTER_NAME): Define as ns32k_register_name_32082.
5856
a8bc7b56
JB
58572002-05-24 Jim Blandy <[email protected]>
5858
5859 * dwarf2read.c (free_line_header): Use xfree, not free.
5860
83a45910
JT
58612002-05-24 Jason Thorpe <[email protected]>
5862
5863 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5864 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5865
0db71247
AC
58662002-05-23 Andrew Cagney <[email protected]>
5867
5868 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5869
b9e5e4dd
AC
58702002-05-23 Andrew Cagney <[email protected]>
5871
5872 From Ross Alexander at NEC Europe:
5873 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5874
de530e84
MS
58752002-05-23 Michael Snyder <[email protected]>
5876
5877 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5878 for input, rather than parse_and_eval_address.
5879
b91b96f4
AC
58802002-05-23 Andrew Cagney <[email protected]>
5881
5882 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5883 * Makefile.in (sim_d10v_h): Update definition.
5884
8b279e7a
AC
58852002-05-24 Andrew Cagney <[email protected]>
5886
5887 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5888 change `2002-05-22 Michael Snyder' below.
5889 (d10v_push_arguments): Ditto.
5890 (d10v_extract_return_value): Ditto.
5891
0a3d0425
JB
58922002-05-23 Jim Blandy <[email protected]>
5893
5894 * macrotab.c (check_for_redefinition): Don't complain if the new
5895 definition is the same as the previous one. Take more arguments
5896 to allow the comparison.
5897 (macro_define_object, macro_define_function): Pass more arguments
5898 to check_for_redefinition.
5899
78eac43e
MS
59002002-05-22 Michael Snyder <[email protected]>
5901
5902 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5903 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5904 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5905 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5906 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5907 Add a temp variable to save a call (and a memory read).
5908 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5909 if possible (so that PC_IN_CALL_DUMMY will work).
5910
9bc1edb8
CV
59112002-05-22 Corinna Vinschen <[email protected]>
5912
5913 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5914
005ef3d2
ML
59152002-05-22 Michal Ludvig <[email protected]>
5916
5917 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5918 fde->cie_ptr.
5919 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5920 (dwarf2_build_frame_info): Add offset to fde->initial_location
5921 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
5922 (execute_stack_op): Change type of 'result' from ULONGEST to
5923 CORE_ADDR.
005ef3d2 5924
fcf4f891
JT
59252002-05-22 Jason Thorpe <[email protected]>
5926
5927 * config/alpha/tm-nbsd.h: Include solib.h.
5928
cfef91e4
JT
59292002-05-22 Jason Thorpe <[email protected]>
5930
5931 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5932 assumptions about the host's byte order.
5933
9964235a
JT
59342002-05-22 Jason Thorpe <[email protected]>
5935
5936 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5937 to dependency list.
5938 * alphanbsd-tdep.c: Include solib-svr4.h.
5939 * shnbsd-tdep.c: Ditto.
5940
9eeef8ef
JT
59412002-05-22 Jason Thorpe <[email protected]>
5942
5943 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5944 nbsd-tdep.h to dependency list.
5945 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5946 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5947 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5948 nbsdaout.mh and nbsdelf.mh consistently.
5949 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5950 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5951 nbsdaout.mt and nbsdelf.mh consistently.
5952 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5953 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5954 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5955 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5956 a.out shared library stuff from here...
5957 * config/nm-nbsdaout.h: ...to here.
5958 * config/tm-nbsd.h: Remove.
5959 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5960 * config/arm/nbsd.mh: Remove.
5961 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5962 nbsd-tdep.o.
5963 * config/arm/nbsdaout.mh: New file.
5964 * config/arm/nbsdelf.mh: New file.
5965 * config/arm/nm-nbsdaout.h: New file.
5966 * config/i386/nbsd.mh: Remove.
5967 * config/i386/nbsd.mt: Remove.
5968 * config/i386/nbsdaout.mh: New file.
5969 * config/i386/nbsdaout.mt: New file.
5970 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5971 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5972 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5973 i386_register_u_addr): Remove.
5974 * config/i386/nm-nbsdaout.h: New file.
5975 * config/i386/nm-nbsdelf.h: Remove.
5976 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5977 (USE_STRUCT_CONVENTION): Remove.
5978 * config/i386/tm-nbsdaout.h: New file.
5979 * config/i386/tm-nbsdelf.h: Remove.
5980 * config/m68k/nbsd.mh: Remove.
5981 * config/m68k/nbsd.mt: Remove.
5982 * config/m68k/nbsdaout.mh: New file.
5983 * config/m68k/nbsdaout.mt: New file.
5984 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5985 * config/m68k/nm-nbsdaout.h: New file.
5986 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5987 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5988 * config/ns32k/nbsd.mh: Remove.
5989 * config/ns32k/nbsd.mt: Remove.
5990 * config/ns32k/nbsdaout.mh: New file.
5991 * config/ns32k/nbsdaout.mt: New file.
5992 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5993 * config/ns32k/nm-nbsdaout.h: New file.
5994 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5995 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5996 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5997 (SVR4_SHARED_LIBS): Remove.
5998 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5999 * config/sparc/nbsd.mh: Remove.
6000 * config/sparc/nbsd.mt: Remove.
6001 * config/sparc/nbsdaout.mh: New file.
6002 * config/sparc/nbsdaout.mt: New file.
6003 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6004 * config/sparc/nbsdelf.mt: New file.
6005 * config/sparc/nm-nbsdaout.h: New file.
6006 * config/sparc/nm-nbsdelf.h: Remove.
6007 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6008 * config/sparc/tm-nbsdaout.h: New file.
6009
257ce470
JT
60102002-05-21 Jason Thorpe <[email protected]>
6011
6012 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6013 mipsnbsd-tdep.c
6014 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6015
76a6d5fe
JT
60162002-05-21 Jason Thorpe <[email protected]>
6017
6018 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6019 shnbsd-nat.c.
6020 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6021
45888261
JT
60222002-05-21 Jason Thorpe <[email protected]>
6023
6024 * NEWS: Note new MIPS NetBSD native configuration.
6025 * configure.host (mips*-*-netbsd*): New host.
6026 * configure.tgt (mips*-*-netbsd*): New target.
6027 * mipsnbsd-nat.c: New file.
6028 * mipsnbsd-tdep.c: New file.
6029 * mipsnbsd-tdep.h: New file.
6030 * config/mips/nbsd.mh: New file.
6031 * config/mips/nbsd.mt: New file.
6032 * config/mips/nm-nbsd.h: New file.
6033 * config/mips/tm-nbsd.h: New file.
6034
70f80edf
JT
60352002-05-21 Jason Thorpe <[email protected]>
6036
6037 * Makefile.in (SFILES): Add osabi.c.
6038 (COMMON_OBS): Add osabi.o.
6039 (osabi.o): New dependency list.
6040 * osabi.c: New file.
6041 * osabi.h: New file.
6042 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6043
6044 * Makefile.in (alpha_tdep_h): Define and use instead of
6045 alpha-tdep.h.
6046 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6047 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6048 Remove.
6049 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6050 * alpha-tdep.h: Include osabi.h.
6051 (alpha_abi): Remove.
6052 (gdbarch_tdep): Use generic OS ABI framework.
6053 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6054 gdbarch_register_osabi.
6055 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6056 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6057 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6058
6059 * Makefile.in (sh_tdep_h): Add osabi.h.
6060 * sh-tdep.h (sh_osabi): Remove.
6061 (gdbarch_tdep): Use generic OS ABI framework.
6062 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6063 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6064 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6065 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6066
6067 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6068 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6069 gdbarch_register_osabi.
6070 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6071 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6072 (get_elfosabi): Rename to...
6073 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6074 ABI framework support routines.
6075 (arm_gdbarch_init): Use generic OS ABI framework.
6076 (arm_dump_tdep): Likewise.
6077 (_initialize_arm_tdep): Likewise.
6078 * arm-tdep.h: Include osabi.h.
6079 (arm_abi): Remove.
6080 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6081 osabi member.
6082 (arm_gdbarch_register_os_abi): Remove prototype.
6083 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6084 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6085
6086 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6087 * mips-tdep.c: Include osabi.h.
6088 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6089 OS ABI framework.
6090
d194345b
KH
60912002-05-20 Kazu Hirata <[email protected]>
6092
6093 * h8300-tdep.c: Fix formatting.
6094
70c6b0d1
EZ
60952002-05-20 Elena Zannoni <[email protected]>
6096
6097 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6098 printing vector registers.
6099
165b8e33
AC
61002002-05-19 Andrew Cagney <[email protected]>
6101
6102 From Fernando Nasser:
6103 * remote.c (remote_async_open_1): Re-throw the exception when the
6104 connection fails.
6105 (remote_cisco_open): Ditto.
6106 (remote_open_1): Ditto.
6107
36918e70
AC
61082002-05-19 Andrew Cagney <[email protected]>
6109
6110 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6111 (remote_start_remote): Add uiout parameter. Pass through to
6112 remote_start_remote_dummy.
6113 (remote_open_1): Use catch_exception instead of catch_errors.
6114 (remote_async_open_1): Ditto.
6115 (remote_cisco_open): Ditto.
6116
ae44c0c4
AC
61172002-05-19 Andrew Cagney <[email protected]>
6118
6119 * remote.c (remote_start_remote): Replace PTR with void pointer.
6120 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6121 static.
6122
8efe637d
AC
61232002-05-18 Andrew Cagney <[email protected]>
6124
6125 * gdb_indent.sh: Allow the script to be run in the sim directory.
6126
2f1b5984
MK
61272002-05-18 Mark Kettenis <[email protected]>
6128
f0f625e2
MK
6129 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6130 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6131
2f1b5984
MK
6132 * corelow.c (core_open): Only call set_gdbarch_from_file if
6133 exec_bfd is NULL.
6134
fc974602
AV
61352002-05-17 Andrey Volkov <[email protected]>
6136
6137 * h8300-tdep.c: Add support of EXR register
6138 * config/h8300/tm-h8300.h: Ditto.
6139
906709f4
AV
61402002-05-17 Andrey Volkov <[email protected]>
6141
6142 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6143
6e591d68
AV
61442002-05-17 Andrey Volkov <[email protected]>
6145
6146 * h8300-tdep.c: Change literal regnums to REGNO.
6147
84f0252a
JB
61482002-05-17 Jim Blandy <[email protected]>
6149
e0e9281e
JB
6150 * NEWS: Note addition of macro support.
6151
84f0252a
JB
6152 Expand preprocessor macros in C expressions.
6153 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6154 (scan_macro_expansion, scanning_macro_expansion,
6155 finished_macro_expansion): New function declarations.
6156 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6157 variable declarations.
6158 * parser-defs.h (expression_context_pc): New declaration.
6159 * parse.c (expression_context_pc): New variable.
6160 (parse_exp_1): Set expression_context_pc, as well as
6161 expression_context_block.
6162 * c-exp.y (yylex): If we're not already reading the result of a
6163 macro expansion, try to macro-expand the next token. When we're
6164 done scanning a macro expansion, switch back to the mainline text.
6165 Commas and `if's in a macro's expansion don't terminate the input.
6166 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6167 (macro_original_text, macro_expanded_text,
6168 expression_macro_lookup_func, expression_macro_lookup_baton): New
6169 variables.
6170 (scan_macro_expansion, scanning_macro_expansion,
6171 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6172 c_preprocess_and_parse): New functions.
6173 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6174 c_preprocess_and_parse, instead of c_parse.
6175 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6176 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6177
1c509ca8
JR
6178Fri May 17 14:26:19 2002 J"orn Rennecke <[email protected]>
6179
6180 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6181 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6182 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6183
2250ee0c
CV
61842002-05-17 Corinna Vinschen <[email protected]>
6185
6186 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6187
ab3b8126
JT
61882002-05-17 Jason Thorpe <[email protected]>
6189
6190 * Makefile.in (sh_tdep_h): Define and use.
6191 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6192 register enum): Move to...
6193 * * sh-tdep.h: ...here.
6194 * sh-tdep.c: Include sh-tdep.h.
6195 * sh3-rom.c: Likewise.
6196 * shnbsd-tdep.c: Likewise.
6197
ed9d4749
MS
61982002-05-16 Michael Snyder <[email protected]>
6199
6200 * arm-tdep.c: Spelling fix in comment.
6201
2e276125
JB
62022002-05-16 Jim Blandy <[email protected]>
6203
6821892e
JB
6204 Add commands for manually expanding macros and showing their
6205 definitions.
6206 * macrocmd.c, macroscope.c, macroscope.h: New files.
6207 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6208 (macroscope_h): New variable.
6209 (HFILES_NO_SRCDIR): Add macroscope.h.
6210 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6211 (macroscope.o, macrocmd.o): New rules.
6212
2e276125
JB
6213 Teach the Dwarf 2 reader to read macro information.
6214 * dwarf2read.c: #include "macrotab.h".
6215 (dwarf_macinfo_buffer): New variable.
6216 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6217 dwarf_macinfo_size.
6218 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6219 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6220 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6221 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6222 dwarf2_macro_spaces_in_definition): New complaints.
6223 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6224 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6225 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6226 the partial symbol table.
6227 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6228 from what's recorded in the partial symbol table.
6229 (read_file_scope): If the compilation unit has a
6230 `DW_AT_macro_info' attribute, read its macro information.
6231 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6232
2f53fe6c
DJ
62332002-05-16 Daniel Jacobowitz <[email protected]>
6234
6235 Fix PR gdb/546
6236 * ser-tcp.c: Don't include <netinet/udp.h>.
6237
2be99286
SC
62382002-05-16 Stephane Carrez <[email protected]>
6239
6240 * MAINTAINERS: Update my email address.
6241
c9af212b 62422002-05-16 Richard Earnshaw <[email protected]>
8501bbeb
RE
6243
6244 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6245 include file of the same name.
6246
bf5f1a52
CV
62472002-05-16 Corinna Vinschen <[email protected]>
6248
6249 * configure.tgt: Mark v850 as multi-arched.
6250 * config/v850/tm-v850.h: Remove file.
6251 * config/v850/v850.mt: Eliminate TM_FILE.
6252
435e042a
CV
62532002-05-16 Corinna Vinschen <[email protected]>
6254
6255 * v850-tdep.c: Full multi-arch.
6256 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6257 Define GDB_MULTI_ARCH to 2.
6258
9819c6c8
PM
62592002-05-16 Pierre Muller <[email protected]>
6260
6261 * p-exp.y (current_type): New static variable.
6262 Carries the type of the expression at the position that is parsed.
6263 (push_current_type, pop_current_type): Two new functions. Used
6264 to store/restore current_type in expression on specific tokens.
c9af212b
RE
6265 (search_field): New static variable. Set to one after parsing a point
6266 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
6267 (FIELDNAME): New token. After a point only a token belonging to
6268 current_type type definition is allowed.
6269 (all over token rules): reset and change current_type according
6270 to rules.
6271 (exp '[' rule): insert implicit array index field if
6272 exp is a pascal string type.
6273
3a06899a
CV
62742002-05-16 Corinna Vinschen <[email protected]>
6275
6276 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6277 frame info. Use frame_info's saved_regs instead of matching member
6278 in extra_frame_info throughout.
6279 (v850_frame_init_saved_regs): New function.
6280 (v850_init_extra_frame_info): Move most functionality into
6281 v850_frame_init_saved_regs().
6282 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6283 (v850_frame_find_saved_regs): Remove declaration.
6284 (FRAME_FIND_SAVED_REGS): Remove definition.
6285 (v850_frame_init_saved_regs): Add declaration.
6286 (FRAME_INIT_SAVED_REGS): Add definition.
6287
6ed14b0e
CV
62882002-05-16 Corinna Vinschen <[email protected]>
6289
6290 * v850-tdep.c: Begin multi-arch'ing v850.
6291 (v850_target_architecture_hook): Remove function.
6292 (v850_gdbarch_init): New function. Add code previously in
6293 v850_target_architecture_hook().
6294 (_initialize_v850_tdep): Don't set target_architecture_hook.
6295 Call register_gdbarch_init() instead.
6296
42725910
DJ
62972002-05-16 Daniel Jacobowitz <[email protected]>
6298
6299 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6300 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6301 (fixup_class_method_type): Likewise.
6302
99d9066e
JB
63032002-05-15 Jim Blandy <[email protected]>
6304
6305 Add macro structures to GDB's symbol tables. Nobody puts anything
6306 in them yet.
6307 * symtab.h (struct symtab): New member: `macro_table'.
6308 * buildsym.h (pending_macros): New global variable.
6309 * buildsym.c: #include "macrotab.h".
6310 (buildsym_init): Initialize `pending_macros'.
6311 (end_symtab): If we found macro information while reading a CU's
6312 debugging info, do build a symtab structure for it. Make the
6313 symtab point to the macro information, and clear the
6314 `pending_macros' pointer which held it while we were reading the
6315 debug info.
6316 (really_free_pendings): Free any pending macro table.
6317 * objfiles.h (struct objfile): New member: `macro_cache'.
6318 * objfiles.c (allocate_objfile): Set allocate and free functions
6319 for the macro cache's objstack.
6320 (free_objfile): Empty the macro cache's obstack.
6321 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6322 set new allocate and free functions for it.
6323 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6324 free functions for the macro cache's objstack. (Why is this
6325 function building its own objfile?)
6326 * symmisc.c (print_objfile_statistics): Print statistics on the
6327 macro bcache.
6328 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6329
c899585b
RE
63302002-05-15 Richard Earnshaw <[email protected]>
6331
6332 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6333 (REGISTER_U_ADDR): Delete definition.
6334 (arm_register_u_addr): Delete declaration.
6335
a6cdd8c5
RE
63362002-05-15 Richard Earnshaw <[email protected]>
6337
6338 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6339 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6340
c97dcfc7
AC
63412002-05-14 Andrew Cagney <[email protected]>
6342
6343 * regcache.c (register_valid): Revise comments refering to "Not
6344 available" and "unavailable".
6345 * frame.c (frame_register_read): Ditto.
6346 * findvar.c (value_of_register): Ditto.
6347
93021b7d
AC
63482002-05-15 Andrew Cagney <[email protected]>
6349
6350 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6351 (remote-sim.o): Update dependencies.
6352 (d10v-tdep.o): Specify dependencies.
6353 (sim_d10v_h): Define.
6354
a86bc61c
JB
63552002-05-14 Jim Blandy <[email protected]>
6356
6357 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6358 * macrotab.c (macro_lookup_inclusion, find_definition,
6359 new_macro_table): Same.
6360
6361 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6362 not `! strcmp ()'. This is a dubious improvement.
6363 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6364
6365 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6366 although it's not necessary, to avoid a warning.
6367
2fdde8f8
DJ
63682002-05-14 Daniel Jacobowitz <[email protected]>
6369
6370 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6371 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6372 TYPE_INSTANCE_FLAGS.
6373 (struct main_type): New.
6374 (struct type): Move most members to struct main_type. Change
6375 cv_type and as_type to new type_chain member. Add instance_flags.
6376 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6377 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6378 (finish_cv_type): Remove prototype.
6379 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6380 Set TYPE_CHAIN.
6381 (alloc_type_instance): New function.
6382 (smash_type): New function.
6383 (make_pointer_type, make_reference_type, make_function_type)
6384 (smash_to_member_type, smash_to_method_type): Call smash_type.
6385 (make_qualified_type): New function.
6386 (make_type_with_address_space): Call make_qualified_type.
6387 (make_cv_type): Likewise.
6388 (finish_cv_type): Remove unnecessary function.
6389 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6390 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6391 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6392 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6393 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6394 * hpread.c (hpread_read_struct_type): Likewise.
6395 * stabsread.c (read_struct_type): Likewise.
6396
843fedf4
EZ
63972002-05-14 Elena Zannoni <[email protected]>
6398
6399 * configure.tgt: Add a catch all sh* target, for cases like
6400 sh[2,3,4]-elf and sh-hms.
6401
05a6c72c
KS
64022002-05-14 Keith Seitz <[email protected]>
6403
6404 * event-loop.c (create_file_handler): Don't do anything but
6405 update data when we are given a fd which we are already
6406 monitoring.
6407
5d085aaf
ML
64082002-05-14 Michal Ludvig <[email protected]>
6409
6410 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6411 (update_context): Use __func__ in warnings.
6412
9db8d71f
DJ
64132002-05-14 Daniel Jacobowitz <[email protected]>
6414
6415 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6416 and tcp_close to net_open and net_close.
6417 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6418 using UDP if requested. Don't try to disable Nagle on UDP
6419 sockets.
6420 * remote.c (remote_serial_open): New function. Warn about UDP.
6421 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6422
5dbc6baa
EZ
64232002-05-13 Elena Zannoni <[email protected]>
6424
6425 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6426
cc3023f7
EZ
64272002-05-13 Elena Zannoni <[email protected]>
6428
6429 * configure.tgt: Remove sh-hms target.
6430 * MAINTAINERS: Don't list sh-hms as a separate target.
6431
ec2bcbe7
JB
64322002-05-13 Jim Blandy <[email protected]>
6433
6434 Add first preprocessor macro-expansion files.
6435 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6436 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6437 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6438 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6439 (COMMON_OBS): Add macrotab.o, macroexp.o.
6440 (macroexp.o, macrotab.o): New rules.
6441
6d531722
AC
64422002-05-13 Andrew Cagney <[email protected]>
6443
6444 * config/m88k/tm-m88k.h: Update copyright.
6445 (m88k_target_write_pc): Declare
6446 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6447 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6448 (SHIFT_INST_REGS): Update definition.
6449 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6450 using old definition of TARGET_WRITE_PC.
6451 * regcache.c (generic_target_write_pc): Delete code handling
6452 NNPC_REGNUM.
6453 * gdbarch.sh (NNPC_REGNUM): Delete.
6454 * gdbarch.h, gdbarch.c: Regenerate.
6455
3e3f2739
RE
64562002-05-13 Richard Earnshaw <[email protected]>
6457
6458 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6459 builtin reg number.
6460
0004e5a2
DJ
64612002-05-13 Daniel Jacobowitz <[email protected]>
6462
6463 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6464 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6465 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6466 access macros.
6467 * c-typeprint.c (cp_type_print_method_args): Likewise.
6468 (c_type_print_args): Likewise.
6469 * d10v-tdep.c (d10v_push_arguments): Likewise.
6470 (d10v_extract_return_value): Likewise.
6471 * expprint.c (print_subexp): Likewise.
6472 * gdbtypes.c (lookup_primitive_typename): Likewise.
6473 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6474 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6475 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6476 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6477 (TYPE_VECTOR): Likewise.
6478 * hpread.c (hpread_read_struct_type)
6479 (fix_static_member_physnames, fixup_class_method_type)
6480 (hpread_type_lookup): Likewise.
6481 * mdebugread.c (parse_symbol, parse_type): Likewise.
6482 * p-lang.c (is_pascal_string_type): Likewise.
6483 * valops.c (hand_function_call): Likewise.
6484 * x86-64-tdep.c (classify_argument): Likewise.
6485
6486 * hpread.c (hpread_read_function_type)
6487 (hpread_read_doc_function_type): Call replace_type.
6488 * dstread.c (create_new_type): Delete.
6489 (decode_dst_structure, process_dst_function): Call alloc_type.
6490 Use type access macros.
6491
dff95cc7
MK
64922002-05-12 Mark Kettenis <[email protected]>
6493
6494 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6495 the're not supported by the current architecture.
6496 (i387_fill_fxsave): Likewise.
6497
bbcd32ad
FF
64982002-05-12 Fred Fish <[email protected]>
6499
6500 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6501 sect_index_xxx members to index the first slot in section_offsets
6502 if all of the section_offsets are zero.
6503
89cf4787
MK
65042002-05-12 Mark Kettenis <[email protected]>
6505
6506 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6507 checked in with last change.
6508
1f77ffc5
MK
65092002-05-12 Mark Kettenis <[email protected]>
6510
6511 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6512 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6513 config.sub.
6514
89b8b4a9
DJ
65152002-05-12 Daniel Jacobowitz <[email protected]>
6516
6517 * Makefile.in: Update dependencies.
6518
14a5e767
AC
65192002-05-11 Andrew Cagney <[email protected]>
6520
6521 * language.c (local_hex_string_custom): Simplify. Do not depend
6522 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6523
6524 * memattr.c (mem_info_command): Replace calls to
6525 longest_local_hex_string and longest_local_hex_string_custom.
6526 * buildsym.c (make_blockvector): Ditto.
6527 * solib.c (info_sharedlibrary_command): Ditto.
6528 * tracepoint.c (tracepoints_info): Ditto.
6529 * symtab.c (print_msymbol_info): Ditto.
6530
6531 * language.c (local_hex_string): Delete.
6532 (local_hex_string_custom): Delete.
6533 (longest_local_hex_string): Rename to local_hex_string.
6534 (longest_local_hex_string_custom): Rename to
6535 local_hex_string_custom.
6536 * language.h (local_hex_string): Change parameter type to LONGEST.
6537 (local_hex_string_custom): Ditto.
6538 (longest_local_hex_string): Delete declaration.
6539 (longest_local_hex_string_custom): Ditto.
6540
6541 * solib.c: Update copyright.
6542 * memattr.c: Update copyright.
6543
13d01224
AC
65442002-05-11 Andrew Cagney <[email protected]>
6545
6546 * arch-utils.h (legacy_register_to_value): Declare.
6547 (legacy_value_to_register): Declare.
6548 (legacy_convert_register_p): Declare.
6549 * arch-utils.c (legacy_register_to_value): New function.
6550 (legacy_value_to_register): New function.
6551 (legacy_convert_register_p): New function.
6552
6553 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6554 (VALUE_TO_REGISTER): Define.
6555 (CONVERT_REGISTER_P): Define.
6556 * gdbarch.h, gdbarch.c: Regenerate.
6557
6558 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6559 VALUE_TO_REGISTER.
6560 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6561 CONVERT_REGISTER_P.
6562
4a1970e4
DJ
65632005-05-11 Daniel Jacobowitz <[email protected]>
6564 Peter Schauer <[email protected]>
6565
6566 * Makefile.in: Update dependencies for valops.c.
6567 * valops.c: Include "gdb_assert.h".
6568 (typecmp): Skip THIS parameter to methods.
6569 (find_method_list): Remove static_memfuncp argument,
6570 update callers. Check for stub methods.
6571 (find_value_oload_method_list): Don't set *static_memfuncp.
6572 (find_overload_match): Don't check for stub methods. Assert
6573 that methods are not stubbed. Handle static methods.
6574 (value_find_oload_method_list): Remove static_memfuncp argument.
6575 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6576 to the argument list for static stub methods.
6577 * value.h (value_find_oload_method_list): Update prototype.
6578
b2e75d78
AC
65792002-05-11 Andrew Cagney <[email protected]>
6580
6581 * arch-utils.h (generic_register_size): Declare.
6582 (generic_register_raw_size, generic_register_virtual_size): Delete
6583 declarations.
6584 * arch-utils.c (generic_register_raw_size): Delete.
6585 (generic_register_size): New function.
6586 (generic_register_virtual_size): Delete.
6587
6588 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6589 default generic_register_size.
6590 * gdbarch.h, gdbarch.c: Re-generate.
6591
6592 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6593 register_virtual_size.
6594 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6595 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6596
451fbdda
AC
65972002-05-11 Andrew Cagney <[email protected]>
6598
6599 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6600 * gdbarch.h, gdbarch.c: Regenerate.
6601 * gnu-v3-abi.c: Update copyright.
6602 (vtable_address_point_offset): Update.
6603 (gnuv3_rtti_type): Update.
6604 (gnuv3_baseclass_offset): Update.
6605 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6606 (init_fetch_link_map_offsets): Update.
6607 * remote.c (get_remote_state): Update.
6608
6d2f5cea
DJ
66092002-05-11 Daniel Jacobowitz <[email protected]>
6610
6611 * TODO: Remove value_headof/value_from_vtable_info comment.
6612 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6613 * values.c (value_headof, value_from_vtable_info): Delete.
6614 * value.h (value_from_vtable_info): Delete prototype.
6615
d2324da4
AC
66162002-05-11 Andrew Cagney <[email protected]>
6617
6618 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6619 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6620 $(gdb_regex_h).
6621 (gdb_assert_h): Define.
6622 (gdb_wait_h): Define.
6623 (gdb_regex_h): Define.
6624
5c717440
DJ
66252002-05-11 Daniel Jacobowitz <[email protected]>
6626
6627 From Peter Schauer <[email protected]>:
6628 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6629
6c7861b3
JT
66302002-05-11 Jason Thorpe <[email protected]>
6631
6632 * nbsd-tdep.c: Fix comment.
6633
ea5bc2a6
JT
66342002-05-11 Jason Thorpe <[email protected]>
6635
6636 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6637 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6638 (nbsd-tdep.o): New dependency list.
6639 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6640 nbsd-tdep.h.
6641 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6642 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6643 * nbsd-tdep.c: New file.
6644 * nbsd-tdep.h: New file.
6645 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6646 nbsd-tdep.h.
6647 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6648 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6649 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6650 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6651
b28da865
JT
66522002-05-11 Jason Thorpe <[email protected]>
6653
6654 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6655 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6656 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6657 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6658 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6659 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6660
4b8ff1fa
JT
66612002-05-11 Jason Thorpe <[email protected]>
6662
6663 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6664 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6665 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6666 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6667 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6668 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6669 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6670
dfe6eb1f
JT
66712002-05-11 Jason Thorpe <[email protected]>
6672
6673 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6674 fetch_elfcore_registers to...
6675 * i386nbsd-tdep.c: ...here.
6676 (i386nbsd_use_struct_convention): Rename to...
6677 (i386nbsd_aout_use_struct_convention): ...this.
6678 (i386nbsd_supply_reg): New function.
6679 (i386nbsd_fill_reg): New function.
6680 (fetch_core_registers): Use i386nbsd_supply_reg.
6681 (fetch_elfcore_registers): Likewise.
6682 (_initialize_i386nbsd_tdep): New function.
6683 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6684 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6685 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6686 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6687 (i386nbsd_aout_use_struct_convention): ...this.
6688
20cb8cda
JT
66892002-05-11 Jason Thorpe <[email protected]>
6690
6691 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6692 (store_inferior_registers): Use shnbsd_fill_reg.
6693 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6694 sh_nbsd_supply_register): Collapse into...
6695 (shnbsd_supply_reg): ...this.
6696 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6697 (shnbsd_fill_reg): ...this.
6698 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6699 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6700 (fetch_core_registers): Use shnbsd_supply_reg.
6701 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6702 (sh_nbsd_core_fns): Rename to...
6703 (shnbsd_core_fns): ...this.
6704 (sh_nbsd_elfcore_fns): Rename to...
6705 (shnbsd_elfcore_fns): ...this.
6706 (sh_nbsd_init_abi): Rename to...
6707 (shnbsd_init_abi): ...this.
6708 (_initialize_sh_nbsd_tdep): Rename to...
6709 (_initialize_shnbsd_tdep): ...this.
6710 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6711 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6712 sh_nbsd_fill_register): Remove prototypes.
6713 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6714
e750d25e
JT
67152002-05-11 Jason Thorpe <[email protected]>
6716
6717 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6718 (i387-nat.o): Delete dependency list.
6719 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6720 (x86-64-linux-nat.o): Likewise.
6721 * i387-nat.c: Delete file, moving contents to...
6722 * i387-tdep.c: ...here.
6723 * i387-nat.h: Rename...
6724 * i387-tdep.h: ...to this.
6725 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6726 * i386-linux-nat.c: Likewise.
6727 * i386bsd-nat.c: Likewise.
6728 * i386gnu-nat.c: Likewise.
6729 * i386nbsd-nat.c: Likewise.
6730 * i386v4-nat.c: Likewise.
6731 * x86-64-linux-nat.c: Likewise.
6732 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6733 * config/i386/go32.mh (NATDEPFILES): Likewise.
6734 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6735 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6736 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6737 * config/i386/linux.mh (NATDEPFILES): Likewise.
6738 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6739 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6740 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6741 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6742
1aee598a
JT
67432002-05-11 Jason Thorpe <[email protected]>
6744
6745 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6746 (alphanbsd-nat.o): Remove dependency list.
6747 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6748 * alphanbsd-nat.c: Delete. Contents moved to...
6749 * alphanbsd-tdep.c: ...here.
6750 (_initialize_alphanbsd_tdep): Register core functions.
6751 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6752
12bcb0fe
JT
67532002-05-11 Jason Thorpe <[email protected]>
6754
6755 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6756 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6757 (alphanbsd-nat.o): Likewise.
6758 (alphabsd-tdep.o): New dependency list.
6759 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6760 (fill_gregset): Use alphabsd_fill_reg.
6761 (supply_fpregset): Use alphabsd_supply_fpreg.
6762 (fill_fpregset): Use alphabsd_fill_fpreg.
6763 (fetch_inferior_registers): Use struct reg and struct fpreg
6764 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6765 and alphabsd_supply_fpreg.
6766 (store_inferior_registers): Use struct reg and struct fpreg
6767 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6768 and alphabsd_fill_fpreg.
6769 * alphabsd-tdep.c: New file.
6770 * alphabsd-tdep.h: New file.
6771 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6772 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6773 alphabsd_supply_fpreg.
6774 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6775 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6776
361d1df0
EC
67772002-05-11 Eric Christopher <[email protected]>
6778
6779 * mips-tdep.c (mips_double_register_type): Fix thinko.
6780 (mips_single_register_type): Ditto.
6781 * MAINTAINERS: Add self.
6782
92dd7cee
MK
67832002-05-11 Mark Kettenis <[email protected]>
6784
6785 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6786 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6787 right thing on architectures with different endianness and/or
6788 integer sizes.
6789
e27da16d
JT
67902002-05-10 Jason Thorpe <[email protected]>
6791
6792 From Christian Limpach <[email protected]>
6793 * configure.in: Change sed expression which comments out
6794 NATDEPFILES to also comment out continuation lines.
6795 * configure: Regenerate.
6796
ddde02bd
EZ
67972002-05-10 Elena Zannoni <[email protected]>
6798
6799 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6800 big patch.
6801
1c922164
EZ
68022002-05-10 Elena Zannoni <[email protected]>
6803
6804 * sh-tdep.c: Include correct file.
6805
283150cd
EZ
68062002-05-10 Elena Zannoni <[email protected]>
6807
6808 New support for sh64-elf (sh5) target.
6809
6810 * configure.tgt: For sh64-elf target, default to sh-elf.
6811
6812 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6813 (struct gdbarch_tdep): Add new fields for new registers and ABI
6814 info.
361d1df0 6815
283150cd
EZ
6816 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6817 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6818 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6819 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6820 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6821 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6822 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6823 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6824 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6825 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6826 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6827 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6828 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6829 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6830 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6831 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6832 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6833 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6834 sign_extend, sh64_nofp_frame_init_saved_regs,
6835 sh64_init_extra_frame_info, sh64_get_saved_register,
6836 sh64_extract_struct_value_address, sh64_pop_frame,
6837 sh64_push_arguments, sh64_extract_return_value,
6838 sh64_store_return_value, sh64_show_media_regs,
6839 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6840 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6841 sh_sh64_register_virtual_type,
6842 sh_sh64_register_convert_to_virtual,
6843 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6844 sh64_register_read, sh64_pseudo_register_write,
6845 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6846 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6847 sh64_do_pseudo_register, sh_compact_do_registers_info,
6848 sh64_do_registers_info, sh_gdbarch_init): New functions.
6849
3117ed25
EZ
68502002-05-10 Elena Zannoni <[email protected]>
6851
6852 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6853
2654e6d4
DJ
68542002-05-10 Daniel Jacobowitz <[email protected]>
6855
6856 * linespec.c (decode_line_1): Check for a double quote after
6857 a filename correctly.
6858
9ab3e532
JB
68592002-05-10 Jim Blandy <[email protected]>
6860
6861 Properly track the size of the current objfile's .debug_line section.
6862 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6863 (DWARF_LINE_SIZE): New macro.
6864 (dwarf2_build_psymtabs_hard): Record the line section's size in
6865 the partial symbol table.
6866 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6867 symbol table.
6868
126fa72d
PS
68692002-05-10 Petr Sorfa <[email protected]>
6870
6871 * ia64-tdep.c: Handle breakpoints on L instruction type
6872 in MLX instruction bundle by moving the breakpoint to
6873 the third slot (X instruction type) as L holds only data.
6874
1f077a3e
KB
68752002-05-10 Kevin Buettner <[email protected]>
6876
6877 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6878 (process_one_symbol): Complain about discarding local symbols
6879 due to a misplaced N_LBRAC entry.
6880
8120c9d5 68812002-05-09 Elena Zannoni <[email protected]>
361d1df0
EC
6882
6883 From Daniel Berlin <[email protected]>
8120c9d5
EZ
6884 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6885 decrease the depth we are at, in the case of templates.
361d1df0 6886
67b2c998
DJ
68872002-05-09 Daniel Jacobowitz <[email protected]>
6888
6889 * mips-tdep.c (mips_float_register_type): New function.
6890 (mips_double_register_type): New function.
6891 (mips_print_register): Use them.
6892 (do_fp_register_row): Likewise.
6893
fd326606
DJ
68942002-05-09 Daniel Jacobowitz <[email protected]>
6895
6609d9af 6896 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6897 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6898 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6899
bef35864
MS
69002002-05-09 Michael Snyder <[email protected]>
6901
6902 * remote-rdp.c (remote_rdp_can_run): Remove.
6903
c55a3f73
TT
69042002-05-09 Tom Tromey <[email protected]>
6905
6906 * jv-valprint.c (java_val_print): Handle `char' as a special case
6907 of TYPE_CODE_INT.
6908
b8d5e71d
MS
69092002-05-09 Michael Snyder <[email protected]>
6910
6911 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6912 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6913 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6914 str r(0123),[sp,#nn].
361d1df0 6915 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6916 order-independent by placing it in a loop.
6917
e2cd42dd
MS
69182002-05-06 Michael Snyder <[email protected]>
6919
6920 * stabsread.c (read_type): Add recognition for new attribute:
6921 "@V;" means that an array type is actually a vector.
6922 This is analogous to the vector flag that's been added to dwarf2.
6923
3ce1502b
MK
69242002-05-09 Mark Kettenis <[email protected]>
6925
6926 * i386-tdep.h (i386_abi): New enum.
6927 (struct gdbarch_tdep): Replace os_ident member with abi.
6928 (i386_gdbarch_register_os_abi): New prototype.
6929 * i386-tdep.c (i386_abi_names): New array.
6930 (process_note_abi_tag_sections): Removed.
6931 (process_note_sections): New function.
6932 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6933 (struct i386_abi_handler): New struct.
6934 (i386_abi_handler_list): New variable.
6935 (i386_gdbarch_register_os_abi): New function.
6936 (i386_gdbarch_init): Adapt for the changes given above.
6937
084c156a
DJ
69382002-05-08 Daniel Jacobowitz <[email protected]>
6939
6940 * gregset.h: Say "GNU/Linux".
6941
6599f021
EZ
69422002-05-08 Elena Zannoni <[email protected]>
6943
6944 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6945 (build_gdbtypes): Build builtin_type_v2_float.
6946 (_initialize_gdbtypes): Register new builtin type.
6947
40af4b0c
AC
69482002-05-08 Andrew Cagney <[email protected]>
6949
6950 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6951 (clear_gdbarch_swap): New function.
6952 (initialize_non_multiarch): Call.
6953 (gdbarch_update_p): Before calling init(), swap out and clear the
6954 existing architecture.
6955 * gdbarch.c: Regenerate.
6956
4fe84f46
JT
69572002-05-08 Jason Thorpe <[email protected]>
6958
6959 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6960 alphanbsd-tdep.c.
6961
4015edd1
JT
69622002-05-08 Jason Thorpe <[email protected]>
6963
6964 * sh-nbsd-nat.c: Rename to...
6965 * shnbsd-nat.c: ...this.
6966 * sh-nbsd-tdep.c: Rename to...
6967 * shnbsd-tdep.c: ...this.
6968 * sh-nbsd-tdep.h: Rename to...
6969 * shnbsd-tdep.h: ...this.
6970 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6971 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6972
0e2bd219
RE
69732002-05-08 Richard Earnshaw <[email protected]>
6974
6975 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6976 concatenation for command help messages.
6977
13a38d45
JT
69782002-05-08 Jason Thorpe <[email protected]>
6979
6980 * NEWS: Note new sh*-*-netbsdelf* configuration.
6981 * configure.host: Set gdb_host_cpu to sh for all sh*.
6982 (sh*-*-netbsdelf*): New host.
6983 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6984 (sh*-*-netbsdelf*): New target.
6985 * sh-nbsd-nat.c: New file.
6986 * sh-nbsd-tdep.c: New file.
6987 * sh-nbsd-tdep.h: New file.
6988 * config/sh/nbsd.mh: New file.
6989 * config/sh/nbsd.mt: New file.
6990 * config/sh/nm-nbsd.h: New file.
6991 * config/sh/tm-nbsd.h: New file.
6992
d658f924
JT
69932002-05-08 Jason Thorpe <[email protected]>
6994
6995 * sh-tdep.c (sh_osabi_names): Declare.
6996 (process_note_abi_tag_sections): New function.
6997 (get_elfosabi): Ditto.
6998 (sh_gdbarch_register_os_abi): Ditto.
6999 (sh_dump_tdep): Ditto.
7000 _initialize_sh_tdep): Use gdbarch_register to register
7001 sh_gdbarch_init and sh_dump_tdep.
7002 * config/sh/tm-sh.h (sh_osabi): Declare.
7003 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7004
848cfffb
AC
70052002-05-07 Andrew Cagney <[email protected]>
7006
7007 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7008 (thumb_scan_prologue): Ditto.
7009 (arm_find_callers_reg): Ditto.
7010 (arm_frame_chain): Ditto.
7011 (arm_init_extra_frame_info): Ditto.
7012 (arm_frame_saved_pc): Ditto.
7013 (arm_pop_frame): Ditto.
7014 (arm_push_return_address): New function.
7015 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7016 call_dummy_location, call_dummy_breakpoint_offset_p,
7017 call_dummy_breakpoint_offset, call_dummy_p,
7018 call_dummy_stack_adjust_p, call_dummy_words,
7019 sizeof_call_dummy_words, call_dummy_start_offset,
7020 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7021 call_dummy_address, push_return_address and push_dummy_frame for
7022 generic dummy frames.
7023
e7d717c0
JT
70242002-05-07 Jason Thorpe <[email protected]>
7025
7026 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7027 size computation for alloca.
7028 (sh_fp_frame_init_saved_regs): Likewise.
7029
7bbcf283
RE
70302002-05-07 Richard Earnshaw <[email protected]>
7031
7032 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7033 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 7034 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
7035 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7036 * remote-rdp.c (remote_rdp_fetch_register): Use
7037 ARM_MAX_REGISTER_RAW_SIZE.
7038 (remote_rdp_store_register): Likewise.
7039
4657573b
ML
70402002-05-07 Michal Ludvig <[email protected]>
7041
361d1df0 7042 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
7043 added default labels to switch {} statements.
7044 * x86-64-tdep.c: Ditto.
7045 * x86-64-linux-nat.c: Ditto.
7046
010f3b2f
JT
70472002-05-07 Jason Thorpe <[email protected]>
7048
7049 * solib.h: Protect against multiple inclusion.
7050
debd256d
JB
70512002-05-06 Jim Blandy <[email protected]>
7052
9ab3e532
JB
7053 Add first preprocessor macro-expansion files.
7054 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7055 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7056 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7057 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7058 (COMMON_OBS): Add macrotab.o, macroexp.o.
7059 (macroexp.o, macrotab.o): New rules.
7060
debd256d
JB
7061 Separate the job of reading the line number info statement program
7062 header (...expialidocious) out into its own function.
7063 * dwarf2read.c (struct line_head, struct filenames, struct
7064 directories): Replace with...
7065 (struct line_header): New structure, containing the full
7066 contents of the statement program header, including the
7067 include directory and file name tables.
7068 (read_file_scope): If we have line number info, instead of just
7069 calling dwarf_decode_lines to do all the work, call
7070 dwarf_decode_line_header first to get a `struct line_header'
7071 containing the data in the statement program header, and then
7072 pass that to dwarf_decode_lines, which will pick up where that
7073 left off. Be sure to clean up the `struct line_header' object.
7074 (dwarf_decode_line_header, free_line_header, add_include_dir,
7075 add_file_name): New functions.
7076 (dwarf_decode_lines): Move all the code to read the statement
7077 program header into dwarf_decode_line_header. Take the line
7078 header it built as the first argument, instead of the offset to
7079 the compilation unit's line number info. Use the new `struct
7080 line_header' type instead of the old structures. No need to do
7081 cleanups here now, since we don't allocate anything.
7082 (dwarf2_statement_list_fits_in_line_number_section,
7083 dwarf2_line_header_too_long): New complaints.
7084
ac3aafc7
EZ
70852002-05-06 Elena Zannoni <[email protected]>
7086
7087 * gdbtypes.c (init_vector_type): New function.
7088 (build_builtin_type_vec128): Simplify the representation of SIMD
7089 registers.
7090 (build_gdbtypes): Initialize new builtin vector types.
7091 (_initialize_gdbtypes): Register new vector types with gdbarch.
7092 (builtin_type_v4_float, builtin_type_v4_int32,
7093 builtin_type_v8_int16, builtin_type_v16_int8,
7094 builtin_type_v2_int32, builtin_type_v4_int16,
7095 builtin_type_v8_int8): New (renamed) SIMD types.
7096
13e49980
MK
70972002-05-06 Mark Kettenis <[email protected]>
7098
7099 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7100 (i387_fill_fxsave): Likewise.
7101
997b20b8
AO
71022002-05-05 Alexandre Oliva <[email protected]>
7103
7104 * alpha-tdep.c (alpha_extract_return_value): Don't use
7105 non-constant array size in prototype.
7106
535c96ce
AC
71072002-05-04 Andrew Cagney <[email protected]>
7108
7109 From Brian Taylor <briant at model dot com>:
7110 * ui-out.c (ui_out_field_core_addr): Use the function
7111 longest_local_hex_string_custom'to format addresses > 32 bits
7112 wide.
7113
7114 * ui-out.c (ui_out_field_core_addr): Update comment.
7115
bedfa57b
AC
71162002-05-04 Andrew Cagney <[email protected]>
7117
7118 * stack.c (select_and_print_frame): Make static. Delete the
7119 parameter `level'.
7120 (func_command): Update call.
7121 (select_frame_command): Delete code computing the frame level.
7122 * frame.h (select_and_print_frame): Delete declaration.
7123
f621c63e
AC
71242002-05-04 Andrew Cagney <[email protected]>
7125
7126 * sparc-tdep.c (sparc_get_saved_register): Comment why
7127 get_prev_frame call is safe.
7128
0f7d239c
AC
71292002-05-04 Andrew Cagney <[email protected]>
7130
7131 * frame.h (select_frame): Delete level parameter.
7132 * stack.c (select_frame): Update. Use frame_relative_level to
7133 obtain the frame's level.
7134 (select_and_print_frame): Update call.
7135 (select_frame_command): Ditto.
7136 (up_silently_base): Ditto.
7137 (down_silently_base): Ditto.
7138 * ocd.c (ocd_start_remote): Ditto.
7139 * remote-rdp.c (remote_rdp_open): Ditto.
7140 * remote-mips.c (mips_initialize): Ditto.
7141 (common_open): Ditto.
7142 * remote-e7000.c (e7000_start_remote): Ditto.
7143 * m3-nat.c (select_thread): Ditto.
7144 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7145 (child_get_current_exception_event): Ditto.
7146 * varobj.c (varobj_create): Ditto.
7147 (varobj_update): Ditto.
7148 (c_value_of_root): Ditto.
7149 * tracepoint.c (finish_tfind_command): Ditto.
7150 * corelow.c (core_open): Ditto.
7151 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7152 * thread.c (info_threads_command): Ditto.
7153 (switch_to_thread): Ditto.
7154 * infrun.c (normal_stop): Ditto.
7155 (restore_selected_frame): Ditto.
7156 (restore_inferior_status): Ditto.
7157 * breakpoint.c (insert_breakpoints): Ditto.
7158 (watchpoint_check): Ditto.
7159 (bpstat_stop_status): Ditto.
7160 (do_enable_breakpoint): Ditto.
7161 * blockframe.c (flush_cached_frames): Ditto.
7162 (reinit_frame_cache): Ditto.
7163
71d6c7b1
AC
71642002-05-04 Andrew Cagney <[email protected]>
7165
7166 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7167 maintainer.
7168
cda6c68a
JB
71692002-05-04 Jim Blandy <[email protected]>
7170
7171 * gdbtypes.c (replace_type): Doc fix.
7172
5c1c87f0
AC
71732002-05-04 Andrew Cagney <[email protected]>
7174
7175 * valprint.c (strcat_longest): Delete commented out function.
7176 Update copyright.
7177
cd9bfe15
AC
71782002-05-04 Andrew Cagney <[email protected]>
7179
7180 * MAINTAINERS: Mark a29k as deleted.
7181 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7182 Move new configurations to the top.
7183 * configure.tgt: Remove a29k.
7184 * config/a29k/tm-vx29k.h: Delete.
7185 * config/a29k/vx29k.mt: Delete.
7186 * config/a29k/tm-a29k.h: Delete.
7187 * config/a29k/a29k-udi.mt: Delete.
7188 * config/a29k/a29k.mt: Delete.
7189 * a29k-tdep.c: Delete.
7190 * remote-udi.c: Delete.
7191 * remote-mm.c: Delete.
7192 * remote-eb.c: Delete.
7193 * remote-adapt.c: Delete.
7194 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
7195 * config/s390/s390x.mt: Ditto.
7196 * config/s390/s390.mt: Ditto.
7197 * config/sparc/sparclynx.mh: Ditto.
7198 * config/sparc/linux.mh: Ditto.
7199 * config/pa/hppaosf.mh: Ditto.
7200 * config/pa/hppabsd.mh: Ditto.
7201 * config/ns32k/nbsd.mt: Ditto.
7202 * config/mips/vr5000.mt: Ditto.
7203 * config/m68k/sun3os4.mh: Ditto.
7204 * config/m68k/nbsd.mt: Ditto.
7205 * config/m68k/m68klynx.mh: Ditto.
7206 * config/m32r/m32r.mt: Ditto.
7207 * config/i386/x86-64linux.mt: Ditto.
7208 * config/i386/nbsdelf.mt: Ditto.
7209 * config/i386/nbsd.mt: Ditto.
7210 * config/i386/i386lynx.mh: Ditto.
7211
bf0c5130
AC
72122002-05-04 Andrew Cagney <[email protected]>
7213
7214 * target.c (debug_print_register): New function. Handle oversize
7215 registers.
7216 (debug_to_fetch_registers): Call.
7217 (debug_to_store_registers): Call.
7218
2ae1c2d2
JB
72192002-05-03 Jim Blandy <[email protected]>
7220
13a393b0
JB
7221 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7222 (read_type): Doc fix.
7223 * gdbtypes.c (replace_type): Doc fix.
7224
2ae1c2d2
JB
7225 * stabsread.c (multiply_defined_struct): New complaint.
7226 (read_struct_type): If the type we were passed isn't empty, or
7227 incomplete, don't read the new struct type into it; complain,
7228 and return the original type unchanged. Take a new `type_code'
7229 argument, which is the type code for the new type.
7230 (read_type): Rather than storing the type's type code here, pass
7231 it as an argument to read_struct_type, and let that take care of
7232 storing it. That way, we don't overwrite the original type code,
7233 so read_struct_type can use it to decide whether we're overwriting
7234 something we shouldn't.
7235 (complain_about_struct_wipeout): New function.
7236
8de9bdc4
AC
72372002-05-03 Andrew Cagney <[email protected]>
7238
7239 * gdbarch.sh: Assert that gdbarch is non-NULL.
7240 * gdbarch.c: Regenerate.
7241
f773fdbb
JM
72422002-05-03 Jason Merrill <[email protected]>
7243
7244 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7245 and return NULL.
7246
0e04a514
ML
72472002-05-03 Michal Ludvig <[email protected]>
7248
7249 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7250 (x86_64_dwarf2gdb_regno_map_length),
7251 (x86_64_dwarf2_reg_to_regnum): Added.
7252 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7253 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7254 (_initialize_x86_64_tdep): Synced with the change above.
7255 (x86_64_skip_prologue): Reformulated message.
7256
065432a8
PM
72572002-05-03 Pierre Muller <[email protected]>
7258
7259 * f-exp.y: Also use new prev_lexptr variable
7260 to improve error reporting. Based on Michael Snyder
7261 2002-04-24 dated patch to c-exp.y.
7262 * jv-exp.y: Likewise.
7263 * m2-exp.y: Likewise.
7264
a3162708
EZ
72652002-05-02 Elena Zannoni <[email protected]>
7266
7267 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7268 we are dealing with vectors.
7269
03620c38
PM
72702002-05-02 Pierre Muller <[email protected]>
7271
7272 * config/m68k/tm-nbsd.h: Obvious fix,
7273 correct machine name.
7274
6604db2e
PM
72752002-05-02 Pierre Muller <[email protected]>
7276
7277 * p-typeprint.c (pascal_type_print_base): Add support
7278 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7279
0906b739
PM
72802002-05-02 Pierre Muller <[email protected]>
7281
7282 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7283 for fondamental pascal 'char' type.
7284
e2625b33
PM
72852002-05-02 Pierre Muller <[email protected]>
7286
7287 * p-lang.h (is_pascal_string_type): Declaration changed,
7288 new sixth argument of type char ** added.
361d1df0 7289 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
7290 changed. Args length_pos, length_size, string_pos, char_size
7291 can now be NULL. New argument arrayname set to the field
7292 name of the char array. Return value set to char array
7293 field index plus one.
361d1df0 7294 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
7295 is_pascal_string_type function.
7296
cf17c188
AC
72972002-05-02 Andrew Cagney <[email protected]>
7298
7299 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7300 <[email protected]> change.
7301 * gdbarch.c: Regenerate.
7302
52bca491
AC
73032002-05-02 Andrew Cagney <[email protected]>
7304
7305 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7306 before probing for a new one. Detect errorenous gdbarch_init
7307 functions.
7308 * gdbarch.c: Regenerate.
7309
d5e72505
AC
73102002-05-01 Andrew Cagney <[email protected]>
7311
7312 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7313 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7314 * config/v850/tm-v850.h: Ditto. Update copyright.
7315
af566d9f
AC
73162002-04-30 Andrew Cagney <[email protected]>
7317
7318 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7319 current_gdbarch.
7320
880d85fa
MS
73212002-04-30 Michael Snyder <[email protected]>
7322
94c30b78
MS
7323 * arm-tdep.c: Whitespace clean-ups.
7324 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7325 should have been removed as part of 4/24 change.
7326
6f5987a6
KB
73272002-04-30 Kevin Buettner <[email protected]>
7328
7329 * rs6000-tdep.c: Added comment describing how fpscr register
7330 numbers were chosen.
7331
1a113c93
MS
73322002-04-30 Michael Snyder <[email protected]>
7333
7334 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7335
9a6f53fe
EZ
73362002-04-29 Elena Zannoni <[email protected]>
7337
7338 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7339 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7340 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7341
11ed25ac
KB
73422002-04-29 Kevin Buettner <[email protected]>
7343
7344 From Louis Hamilton <[email protected]>:
7345 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7346 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7347 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7348 not bfd-private xcoff data, to determine wordsize.
7349 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7350
ae232405
AC
73512002-04-29 Andrew Cagney <[email protected]>
7352
7353 GDB 5.2 released from 5.2 branch.
7354
91fd20f7
ML
73552002-04-29 Michal Ludvig <[email protected]>
7356
7357 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7358 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7359 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7360
2dc5091b
EZ
73612002-04-29 Elena Zannoni <[email protected]>
7362
7363 * rs6000-tdep.c (rs6000_extract_return_value,
7364 rs6000_store_return_value): Handle returning vectors.
7365 (rs6000_gdbarch_init): Use
7366 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7367 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7368 New function.
7369 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7370 vectors.
7371 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7372 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7373
2b9848d8
PM
73742002-04-24 Pierre Muller <ics.u-strasbg.fr>
7375
7376 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7377 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7378 with fprintf_unfiltered (gdb_stderr,...).
7379
f8d17dc5
PM
73802002-04-24 Pierre Muller <ics.u-strasbg.fr>
7381
7382 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7383 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7384 Replace fprintf (stderr,...
7385 with fprintf_unfiltered (gdb_stderr,....
7386 * remote-es.c: Likewise.
7387 * remote-os9k.c: Likewise.
7388 * remote-st.c: Likewise.
7389
2f2f1ad1
AS
73902002-04-28 Andreas Schwab <[email protected]>
7391
7392 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7393 linux-proc.o and gcore.o.
7394
b6779aa2
AC
73952002-04-26 Michal Ludvig <[email protected]>
7396
7397 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7398 code without frame pointers.
7399
7e57f5f4
AC
74002002-04-26 Andrew Cagney <[email protected]>
7401
7402 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7403 ON_STACK is needed.
7404
2ceb85d0
BE
74052002-04-26 Ben Elliston <[email protected]>
7406
7407 * target.c (do_xfer_memory): Correct reference to the new option
7408 "trust-readonly-sections".
7409
f5f8a009
EZ
74102002-04-26 Elena Zannoni <[email protected]>
7411
7412 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7413 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7414 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7415 vectors.
7416 (read_array_type): Record the fact that this array type is really a
7417 vector (i.e. are passed in by value).
7418
5868c862
JT
74192002-04-26 Jason Thorpe <[email protected]>
7420
7421 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7422 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7423 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7424 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7425 * alpha-linux-tdep.c: Include frame.h.
7426 (alpha_linux_sigcontext_addr): New function.
7427 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7428 alpha_linux_sigcontext_addr.
7429 * alpha-osf1-tdep.c: Include gdbcore.h.
7430 (alpha_osf1_sigcontext_addr): New function.
7431 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7432 alpha_osf1_sigcontext_addr.
7433 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7434 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7435
bfb01f37
AC
74362002-04-26 Andrew Cagney <[email protected]>
7437
361d1df0 7438 * stack.c (selected_frame_level):
bfb01f37
AC
7439 (select_frame): Do not set selected_frame_level.
7440 * frame.h (selected_frame_level): Delete declaration.
7441
15813d3f
AC
74422002-04-26 Andrew Cagney <[email protected]>
7443
7444 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7445 convert_from_func_ptr-addr when AIX / PowerOpen.
7446
6096c27a
AC
74472002-04-25 Andrew Cagney <[email protected]>
7448
7449 * valops.c (hand_function_call): Call
7450 generic_save_call_dummy_addr.
7451 * frame.h (generic_save_call_dummy_addr): Declare.
7452 * blockframe.c (struct dummy_frame): Add fields call_lo and
7453 call_hi.
7454 (generic_find_dummy_frame): Check for PC in range call_lo to
7455 call_hi instead of entry_point_address.
7456 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7457 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7458 (generic_save_call_dummy_addr): New function.
7459
f510d44e
DM
74602002-04-24 David S. Miller <[email protected]>
7461
7462 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7463 sparc_skip_prologue.
7464 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7465 information to find prologue when possible.
7466 (sparc_prologue_frameless_p): Call examine_prologue directly.
7467 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7468 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7469 second argument.
7470 (SKIP_PROLOGUE): Likewise.
7471
15d72a92
JT
74722002-04-25 Jason Thorpe <[email protected]>
7473
7474 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7475 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7476 indicate that the condition it was testing is always true.
7477 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7478 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7479 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7480
accc6d1f
JT
74812002-04-25 Jason Thorpe <[email protected]>
7482
7483 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7484 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7485 tdep->jb_pc and tdep->jb_elt_size.
7486 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7487 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7488 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7489 * alpha-nat.c (get_longjmp_target): Remove.
7490 (JB_ELEMENT_SIZE): Ditto.
7491 (JB_PC): Ditto.
7492 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7493 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7494 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7495 to alpha_get_longjmp_target.
7496 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7497 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7498 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7499
1bfdc549
AC
75002002-04-25 Andrew Cagney <[email protected]>
7501
7502 * README: Update to GDB 5.2.
7503
1bd316f0
AC
75042002-04-25 Andrew Cagney <[email protected]>
7505
7506 * gdbarch.sh (LC_ALL): Set to `c'.
7507
2e5ff58c
TR
75082002-04-25 Theodore A. Roth <[email protected]>
7509
7510 * avr-tdep.c: Ran through gdb_indent.sh.
7511
e33ce519
TR
75122002-04-25 Theodore A. Roth <[email protected]>
7513
7514 * MAINTAINERS: Add myself as AVR maintainer.
7515 * NEWS: Note new target avr.
7516
8818c391
TR
75172002-04-25 Theodore A. Roth <[email protected]>
7518
7519 * Makefile.in: Add support for AVR target.
7520 * configure.tgt: Add support for AVR target.
7521 * avr-tdep.c: New file
7522 * config/avr/avr.mt: New file.
7523
79509c2d
TR
75242002-04-25 Theodore A. Roth <[email protected]>
7525
7526 * MAINTAINERS: Add myself to write-after-approval.
7527
dac8068e
PM
75282002-04-24 Pierre Muller <ics.u-strasbg.fr>
7529
7530 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7531 with fprintf_unfiltered (gdb_stderr,....
7532
25bf3106
PM
75332002-04-25 Pierre Muller <[email protected]>
7534
7535 Fix PR gdb/508.
7536 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7537
24467a86
PM
75382002-04-25 Pierre Muller <[email protected]>
7539
7540 * p-exp.y: Also use new prev_lexptr variable
7541 to improve error reporting. Based on Michael Snyder
7542 2002-04-24 dated patch to c-exp.y.
7543
95b80706
JT
75442002-04-25 Jason Thorpe <[email protected]>
7545
7546 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7547 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7548 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7549 to 0.
7550 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7551 and struct value.
7552 (FUNCTION_START_OFFSET): Remove.
7553 (BREAKPOINT): Ditto.
7554
e90cc612
JT
75552002-04-25 Jason Thorpe <[email protected]>
7556
7557 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7558 * NEWS: Ditto.
7559
6c72f9f9
JT
75602002-04-24 Jason Thorpe <[email protected]>
7561
7562 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7563 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7564 alpha_linux_pc_in_sigtramp.
7565 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7566 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7567 alpha_osf1_pc_in_sigtramp.
7568 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7569 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7570 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7571 alphafbsd_pc_in_sigtramp.
7572 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7573 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7574 alphanbsd_pc_in_sigtramp.
7575 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7576 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7577
5e4f3379
JT
75782002-04-24 Jason Thorpe <[email protected]>
7579
7580 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7581
da8ca43d
JT
75822002-04-24 Jason Thorpe <[email protected]>
7583
7584 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7585 alphanbsd-tdep.c.
7586 (alphanbsd-nat.o): New dependency list.
7587 (alphanbsd-tdep.o): Ditto.
7588 * NEWS: Note new native NetBSD/alpha configuration.
7589 * alphanbsd-nat.c: New file.
7590 * alphanbsd-tdep.c: Ditto.
7591 * configure.host (alpha*-*-netbsd*): New host.
7592 * configure.tgt (alpha*-*-netbsd*): New target.
7593 * config/alpha/nbsd.mh: New file.
7594 * config/alpha/nbsd.mt: Ditto.
7595 * config/alpha/nm-nbsd.h: Ditto.
7596 * config/alpha/tm-nbsd.h: Ditto.
7597
36a6271d
JT
75982002-04-24 Jason Thorpe <[email protected]>
7599
7600 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7601 (alpha-osf1-tdep.o): New dependency list.
7602 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7603 and skip_sigtramp_frame members.
7604 * alpha-linux-tdep.c: Include gdbcore.h.
7605 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7606 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7607 * alpha-osf1-tdep.c: New file.
7608 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7609 alpha-osf1-dep.c.
7610 (alpha_frame_past_sigtramp_frame): New function.
7611 (alpha_dynamic_sigtramp_offset): Ditto.
7612 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7613 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7614 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7615 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7616 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7617 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7618 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7619 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7620 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7621 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7622 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7623 to find_solib_trampoline_target.
7624 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7625 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7626 (SKIP_TRAMPOLINE_CODE): Remove.
7627 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7628 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7629 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7630 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7631 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7632 (PROC_SIGTRAMP_MAGIC): Ditto.
7633 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7634 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7635 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7636 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7637 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7638
2f4bc57b
JT
76392002-04-24 Jason Thorpe <[email protected]>
7640
7641 * NEWS: Note that Alpha targets are now multi-arch.
7642
665132f9
MS
76432002-04-24 Michael Snyder <[email protected]>
7644
7645 * parser-defs.h (prev_lexptr): New external variable.
7646 * parse.c (parse_exp_1): Set prev_lexptr to null before
7647 calling the language-specific parser.
7648 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7649 (yyerror): Use prev_lexptr in error reporting.
7650
32872fa7
DJ
76512002-04-24 Daniel Jacobowitz <[email protected]>
7652
7653 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7654 * gregset.h: If FILL_FPXREGSET is defined, provide
7655 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7656 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7657 is defined, call fill_fpxregset.
7658
57e76fac
MS
76592002-04-24 Roland McGrath <[email protected]>
7660
7661 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7662 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7663 (supply_gregset, supply_fpregset): New functions.
7664
7665 * gnu-nat.c (gnu_find_memory_regions): New function.
7666 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7667 (gnu_xfer_memory): Add a cast.
7668
f43845b3
MS
76692002-04-24 Michael Snyder <[email protected]>
7670
361d1df0 7671 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7672 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7673 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7674 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7675 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7676 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7677
a0abec03
AC
7678Wed Apr 24 14:22:21 2002 Andrew Cagney <[email protected]>
7679
7680 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7681 NUM_PSEUDO_REGS can be used.
7682
d7bd68ca
AC
76832002-04-24 Andrew Cagney <[email protected]>
7684
7685 * arch-utils.h: Update copyright.
7686
7687 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7688 * gdbarch.h, gdbarch.c: Re-generate.
7689
7690 * inferior.h (IN_SIGTRAMP): Delete definition.
7691 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7692 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7693
7694 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7695 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7696 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7697 (find_proc_framesize): Ditto.
7698 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7699 (alpha_init_extra_frame_info): Ditto.
7700 * infrun.c (handle_inferior_event): Ditto.
7701 (handle_inferior_event): Ditto.
7702 (check_sigtramp2): Ditto.
7703 * blockframe.c (create_new_frame): Ditto.
7704 (get_prev_frame): Ditto.
7705 * ppc-linux-tdep.c: Update comments.
7706 * i386-linux-tdep.c: Update comments.
7707 * breakpoint.c (bpstat_what): Update comment.
7708
4867e41e
DM
77092002-04-24 David S. Miller <[email protected]>
7710
21d83aa5
DM
7711 * i960-tdep.c (register_in_window_p): New function.
7712 (i960_find_saved_register): Use it instead of
7713 REGISTER_IN_WINDOW_P.
7714 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7715
4867e41e
DM
7716 * symtab.h (find_stab_function_addr): Kill extern.
7717 * minsyms.c (find_stab_function_addr): Remove from here...
7718 * dbxread.c: ... to here, and mark it static.
7719
69cdf6a2
DM
77202002-04-20 David S. Miller <[email protected]>
7721
7722 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7723 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7724
5a595886
DM
77252002-04-21 David S. Miller <[email protected]>
7726
7727 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7728 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7729 (vx_write_register): Likewise.
7730
1da1a192
JB
77312002-04-23 J. Brobecker <[email protected]>
7732
7733 * source.c (is_regular_file): New function.
7734 (openp): Check wether file to open is a regular file
7735 to avoid opening directories.
7736
baa6f10b
JT
77372002-04-22 Jason Thorpe <[email protected]>
7738
7739 * findvar.c (extract_signed_integer): Cast printf argument
7740 to suppress format warning.
7741 (extract_unsigned_integer): Likewise.
7742 * infcmd.c (registers_info): Likewise.
7743 * top.c (get_prompt_1): Likewise.
7744 * valops.c (value_assign): Likewise.
7745 * valprint.c (print_decimal): Likewise.
7746
b2c4da81
L
77472002-04-22 H.J. Lu ([email protected])
7748
7749 * c-exp.y (typebase): Support
361d1df0 7750
b2c4da81
L
7751 [long|long long|short] [signed|unsigned] [int|]
7752
7753 and
7754
7755 signed [long|long long|short] int
7756
f267bd6a
JT
77572002-04-22 Jason Thorpe <[email protected]>
7758
7759 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7760 and vax-tdep.h.
7761 * vax-tdep.h: New file.
7762 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7763 Make several routines static.
7764 (vax_get_saved_register): New function.
7765 (vax_gdbarch_init): New function.
7766 (_initialize_vax_tdep): Register vax_gdbarch_init.
7767 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7768 Remove macros now under the control of gdbarch.
7769
da3c6d4a
MS
77702002-04-22 Michael Snyder <[email protected]>
7771
11d3b27d
MS
7772 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7773 Some whitespace and coding standards tweaks.
da3c6d4a 7774
a33f7558
JT
77752002-04-22 Jason Thorpe <[email protected]>
7776
7777 * vax-tdep.c: Include regcache.h.
7778 (vax_call_dummy_words): New.
7779 (sizeof_vax_call_dummy_words): New.
7780 (vax_fix_call_dummy): New function.
7781 (vax_saved_pc_after_call): Ditto.
7782 * config/vax/tm-vax.h: Don't include regcache.h.
7783 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7784 (CALL_DUMMY): Remove.
7785 (CALL_DUMMY_WORDS): Define.
7786 (SIZEOF_CALL_DUMMY_WORDS): Define.
7787 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7788
47a73475
MS
77892002-04-18 Michael Snyder <[email protected]>
7790
7791 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7792
52efde73
JT
77932002-04-22 Jason Thorpe <[email protected]>
7794
7795 * vax-tdep.c (vax_frame_chain): New function.
7796 (vax_push_dummy_frame): Ditto.
7797 (vax_pop_frame): Ditto.
7798 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7799 (FRAMELESS_FUNCTION_INVOCATION): Use
7800 generic_frameless_function_invocation_not.
7801 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7802 (POP_FRAME): Use vax_pop_frame.
7803
ea74468c
JT
78042002-04-22 Jason Thorpe <[email protected]>
7805
7806 * vax-tdep.c (vax_store_struct_return): New function.
7807 (vax_extract_return_value): Ditto.
7808 (vax_store_return_value): Ditto.
7809 (vax_extract_struct_value_address): Ditto.
7810 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7811 vax_store_struct_return.
7812 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7813 (STORE_RETURN_VALUE): Use vax_store_return_value.
7814 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7815
5516aa92
JT
78162002-04-22 Jason Thorpe <[email protected]>
7817
7818 * vax-tdep.c (vax_frame_saved_pc): New function.
7819 (vax_frame_args_address_correct): Ditto.
7820 (vax_frame_args_address): Ditto.
7821 (vax_frame_locals_address): Ditto.
7822 (vax_frame_num_args): Move code to be in proximity to
7823 other frame-related functions.
7824 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7825 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7826 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7827 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7828 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7829
36af0b35
L
78302002-04-22 H.J. Lu ([email protected])
7831
7832 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7833 includedir.
7834
ab62c900
JT
78352002-04-22 Jason Thorpe <[email protected]>
7836
7837 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7838 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7839 (FRAME_INIT_SAVED_REGS): New macro.
7840
7232b100
JT
78412002-04-22 Jason Thorpe <[email protected]>
7842
7843 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7844
b70d2aee
JT
78452002-04-22 Jason Thorpe <[email protected]>
7846
7847 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7848 where needed.
7849 (fetch_osf_core_registers): Likewise.
7850 (supply_gregset): Likewise.
7851
a0e8a2d1 78522002-04-22 J. Brobecker <[email protected]>
361d1df0 7853
a0e8a2d1
JB
7854 * symfile.h (get_section_index): Define.
7855 * symfile.c (get_section_index): New function.
7856 * mdebugread.c (SC_IS_SBSS): New macro.
7857 (SC_IS_BSS): Return true for the scBss storage class only, as
7858 the scSBss storage class refers to the .sbss section.
7859 (parse_partial_symbols): Discard the symbols which associated
7860 section does not exist.
7861 Make sure to use the .sbss section index for symbols which
7862 storage class is scBss, rather than using the .bss section index.
7863
51eb8b08
JT
78642002-04-22 Jason Thorpe <[email protected]>
7865
7866 * vax-tdep.c: Update copyright years.
7867 (vax_register_name): New function.
7868 (vax_register_byte): Ditto.
7869 (vax_register_raw_size): Ditto.
7870 (vax_register_virtual_size): Ditto.
7871 (vax_register_virtual_type): Ditto.
7872 * config/vax/tm-vax.h: Update copyright years.
7873 (REGISTER_NAMES): Remove.
7874 (REGISTER_NAME): Define.
7875 (REGISTER_BYTE): Use vax_register_byte.
7876 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7877 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7878 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7879
6cc1c0a8
AC
78802002-04-21 Andrew Cagney <[email protected]>
7881
7882 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7883 declaration
7884 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7885
9319a2fe
DM
78862002-04-21 David S. Miller <[email protected]>
7887
7888 * arch-utils.c (generic_prologue_frameless_p): Kill
7889 SKIP_PROLOGUE_FRAMELESS_P code.
7890 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7891 references.
7892 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7893 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7894 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7895 references.
7896 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7897 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7898 (sparc_gdbarch_init): Pass it to
7899 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7900
e9ed6d01
JT
79012002-04-21 Jason Thorpe <[email protected]>
7902
7903 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7904 (alphabsd-nat.o): New dependency list.
7905
36012033
JT
79062002-04-21 Jason Thorpe <[email protected]>
7907
7908 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7909 alphafbsd-tdep.c.
7910 (alpha-linux-tdep.o): New dependency list.
7911 (alphafbsd-tdep.o): Likewise.
7912
3379287a
JT
79132002-04-21 Jason Thorpe <[email protected]>
7914
7915 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7916 to here...
7917 * alpha-tdep.c: ...from here.
7918 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7919
4bcbd6cb
JT
79202002-04-21 Jason Thorpe <[email protected]>
7921
7922 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7923 prototype from here...
7924 * alpha-tdep.h: ...to here.
7925
b31da25e
AC
79262002-04-21 Andrew Cagney <[email protected]>
7927
7928 * frame.h (selected_frame_level): Document as deprecated.
7929 (frame_relative_level): Declare.
7930 * stack.c (frame_relative_level): New function.
7931 (selected_frame_level): Document as deprecated.
7932 (select_frame): Do not set the selected_frame_level.
7933
7934 * stack.c (frame_info, record_selected_frame): Update.
7935 (frame_command, current_frame_command): Update.
7936 (up_silently_base, up_command, down_silently_base): Update.
7937 (down_command): Update.
7938 * inflow.c (kill_command): Update.
7939 * tracepoint.c (finish_tfind_command): Update.
7940 * corelow.c (core_open): Update.
7941 * thread.c (info_threads_command): Update.
7942 (do_captured_thread_select): Update.
7943 * infcmd.c (finish_command): Update.
7944 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7945
9c1d6fe5
JT
79462002-04-21 Jason Thorpe <[email protected]>
7947
7948 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7949
ab89facf
AC
79502002-04-21 Andrew Cagney <[email protected]>
7951
7952 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7953 type const.
7954
82a4efa1
JT
79552002-04-21 Jason Thorpe <[email protected]>
7956
7957 * alphafbsd-tdep.c: Update copyright years. Include
7958 alpha-tdep.h.
7959 (alphafbsd_use_struct_convention): Make static.
7960 (alphafbsd_init_abi): New function.
7961 (_initialize_alphafbsd_tdep): New function.
7962 * config/alpha/tm-fbsd.h: Update copyright years.
7963 (USE_STRUCT_CONVENTION): Remove.
7964
44dffaac
JT
79652002-04-21 Jason Thorpe <[email protected]>
7966
7967 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7968 an Alpha ABI variant.
7969 (alpha_abi_handler_list): Declare.
7970 (alpha_gdbarch_register_os_abi): New function.
7971 (alpha_gdbarch_init): Give registered ABI variant handlers a
7972 chance to tweak the gdbarch once we have set up defaults.
7973 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7974
65585be4
JT
79752002-04-21 Jason Thorpe <[email protected]>
7976
7977 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7978 to standard_coerce_float_to_double.
7979 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7980
d9b023cc
JT
79812002-04-21 Jason Thorpe <[email protected]>
7982
7983 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7984 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7985 from gdbarch_tdep rather than a constant.
7986 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7987 the default text address for all Alpha Unix ABIs.
7988 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7989 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7990
dc129d82
JT
79912002-04-21 Jason Thorpe <[email protected]>
7992
7993 * alpha-tdep.h: New file. Includes several Alpha target constants
7994 taken from...
7995 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7996 let gdbarch deal with.
7997 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7998 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7999 to dependency list.
8000 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8001 Alpha target register names.
8002 * alphabsd-nat.c: Likewise.
8003 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8004 Alpha target register names. Make serveral routines static.
8005 (alpha_get_saved_register): New function.
8006 (alpha_abi_names): New.
8007 (process_note_abi_tag_sections): New function.
8008 (get_elfosabi): New function.
8009 (alpha_gdbarch_init): New function.
8010 (alpha_dump_tdep): New function.
8011 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8012
d49d1e0a
AC
80132002-04-21 Andrew Cagney <[email protected]>
8014
8015 * frame.c (find_saved_register): Delete #ifdef
8016 HAVE_REGISTER_WINDOWS code.
8017 * config/sparc/tm-sparc.h: Update comments.
8018 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8019
92e8c9ed
AC
80202002-04-21 Andrew Cagney <[email protected]>
8021
8022 * i960-tdep.c (i960_find_saved_register): New function.
8023 (i960_get_saved_register): New function.
8024 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8025 (i960_get_saved_register): Declare.
8026 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8027
e1925118
DM
80282002-04-20 David S. Miller <[email protected]>
8029
8030 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8031
29673b29
AC
80322002-04-20 Andrew Cagney <[email protected]>
8033
8034 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8035 instead of NUM_PSEUDO_REGS.
8036
6c86dcd5
DM
80372002-04-20 David S. Miller <[email protected]>
8038
8039 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8040 GDB_MULTI_ARCH_PARTIAL
8041 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8042 define, let tm-sp64.h do it.
8043
aa40ec90
JT
80442002-04-20 Jason Thorpe <[email protected]>
8045
8046 * frame.c (find_saved_register): Avoid a NULL pointer
8047 dereference and actually walk the frame list.
8048
0f79675b
AC
80492002-04-20 Andrew Cagney <[email protected]>
8050
8051 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8052 sorted in most most-recent-used order. Document.
8053 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8054
f91305dd 80552002-04-19 Andrew Cagney <[email protected]>
bf75c8c1
AC
8056
8057 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8058 instead of ->prev.
8059 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8060 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8061 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8062 instead of ->prev.
8063
73d322b1
EZ
80642002-04-19 Elena Zannoni <[email protected]>
8065
8066 Fix PR gdb/471.
8067 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8068 (build_builtin_type_vec128): Ditto.
8069 (append_composite_type_field): Fix calculation of type length in
8070 union case.
8071
ccd9a834
EZ
80722002-04-19 Eli Zaretskii <[email protected]>
8073
8074 * config/djgpp/README: Update.
8075
8076 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8077 compiler warnings.
8078
a57f9e49
JT
80792002-04-19 Jason Thorpe <[email protected]>
8080
8081 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8082 (alpha_setup_arbitrary_frame): ...to this.
8083 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8084 for alpha_setup_arbitrary_frame.
8085
f4f9705a
AC
80862002-04-18 Andrew Cagney <[email protected]>
8087
8088 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8089 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8090
f4f9705a
AC
8091 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8092 * target.h (memory_breakpoint_from_pc): Update declaration.
8093 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8094
8095 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8096 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8097 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8098 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8099 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8100 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8101 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8102 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8103 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8104 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8105 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8106 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8107
8108 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8109 const pointer.
8110 * monitor.c (monitor_insert_breakpoint): Ditto.
8111 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8112
8113 * config/mcore/tm-mcore.h: Update copyright.
8114 * mem-break.c: Ditto.
8115 * xstormy16-tdep.c: Ditto.
8116
29f319b8
PM
81172002-04-18 Pierre Muller <[email protected]>
8118
8119 * p-exp.y: Add precedence rule for '^' token.
8120 This removes the shift/reduce conflicts.
8121 Remove the comment concerning these shift/reduce conflicts.
8122
ebeac11a
EZ
81232002-04-18 Elena Zannoni <[email protected]>
8124
8125 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8126 (registers_powerpc_nofp): New register set for processors
8127 without floating point unit.
8128
27c31547
DM
81292002-04-18 David S. Miller <[email protected]>
8130
8131 * MAINTAINERS: Add myself to write-after-approval.
8132
47a73475
MS
81332002-04-17 Michael Snyder <[email protected]>
8134
8135 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8136
953836b2
AC
81372002-04-17 Andrew Cagney <[email protected]>
8138
8139 * rs6000-tdep.c (frame_initial_stack_address): Use
8140 frame_register_read to read the alloca_reg.
8141
8b0d4340
AC
81422002-04-17 Andrew Cagney <[email protected]>
8143
8144 * frame.c (find_saved_register): Find saved registers in the next
8145 not prev frame.
8146 Fix PR gdb/365.
8147
d8864532
AC
81482002-04-17 Andrew Cagney <[email protected]>
8149
8150 * gdbarch.sh (LANG): Set to ``c''.
8151
36cc83a3 81522002-04-15 Andrew Cagney <[email protected]>
361d1df0 8153
36cc83a3 8154 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 8155
2f4150cc 81562002-04-15 Andrew Cagney <[email protected]>
2c7ef074
AC
8157
8158 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8159 Update copyright.
8160
628703c6 8161 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 8162 Also fix PR gdb/391.
361d1df0 8163
56157b4a
AC
81642002-04-14 Andrew Cagney <[email protected]>
8165
8166 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8167 * aclocal.m4, configure: Re-generate.
8168 Fix PR gdb/391.
361d1df0 8169
6d1e3329
EZ
81702002-04-14 Elena Zannoni <[email protected]>
8171
8172 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8173 instead of tm_print_insn.
8174
cb06fa07
EZ
81752002-04-14 Elena Zannoni <[email protected]>
8176
8177 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8178
f208ba17
AC
81792002-04-14 Andrew Cagney <[email protected]>
8180
8181 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8182 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8183 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8184
20f01a46
DH
81852002-04-12 Don Howard <[email protected]>
8186
8187 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8188 max_user_call_depth.
8189 (init_cmd_lists): Initialize the new value;
8190 * cli/cli-script.c (execute_user_command): Limit the call depth of
8191 user defined commands. This avoids a core-dump when user commands
8192 are infinitly recursive.
8193
a88376a3
KB
81942002-04-12 Kevin Buettner <[email protected]>
8195
8196 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8197 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8198 from tdep struct instead of DEFAULT_LR_SAVE.
8199 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8200 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8201 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8202
f2172603
MS
82032002-04-12 Michael Snyder <[email protected]>
8204
694f61fb 8205 * Remote.c: Spelling fix.
20fe79c8
MS
8206 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8207 If no symbol found for "sbrk", try "_sbrk".
8208 (make_output_phdrs): Use bfd_section_name.
8209 (gcore_copy_callback): Use bfd_section_name.
62995fc4 8210 * eval.c: Indentation fix-ups.
169a7369
MS
8211 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8212 in case it gets applied to an address that is already
8213 in the instruction space.
de74f71f
MS
8214 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8215 * symfile.c: Fix indentation, long lines.
f2172603
MS
8216 * source.c: White space fix-up.
8217
cda5a58a
AC
82182002-04-12 Andrew Cagney <[email protected]>
8219
8220 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8221 * frame.c (frame_register_read): New function. Return non-zero on
8222 success.
8223 (read_relative_register_raw_bytes_for_frame): Delete.
8224 (read_relative_register_raw_bytes): Delete.
8225 * frame.h (frame_register_read): Declare.
8226 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8227 * sh-tdep.c: Ditto.
8228 * infcmd.c (do_registers_info): Ditto.
8229 * hppa-tdep.c: Ditto.
8230 * rs6000-tdep.c: Ditto.
8231 * h8500-tdep.c: Ditto.
8232 * mips-tdep.c: Ditto.
8233 * h8300-tdep.c: Ditto.
8234 * z8k-tdep.c: Ditto.
8235
2ea5f656
KB
82362002-04-12 Kevin Buettner <[email protected]>
8237
8238 From Jimi X <[email protected]>:
8239 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8240 64-bit SysV ABI.
8241
27b15785
KB
82422002-04-12 Kevin Buettner <[email protected]>
8243
8244 From Jimi X <[email protected]>:
8245 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8246 bfd info.
8247
5d57ee30
KB
82482002-04-12 Kevin Buettner <[email protected]>
8249
8250 From Jimi X <[email protected]>:
8251 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8252 register sets for these processor variants.
8253
bc1e36ca
DJ
82542002-04-11 Daniel Jacobowitz <[email protected]>
8255
bc1e36ca
DJ
8256 * regformats/reg-ppc.dat: Support FPSCR.
8257
e3f36dbd
KB
82582002-04-11 Kevin Buettner <[email protected]>
8259
8260 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8261 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8262 Add fpscr as an invalid/unfetchable register.
8263 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8264 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8265 (fill_fpregset): Add support for register fpscr.
8266 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8267 (fill_gregset): Account for the fact that register ``mq'' might
8268 not exist.
8269 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8270 (registers_power): Add fpscr to register set at slot 71.
8271 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8272 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8273
943c9c25
MS
82742002-04-11 Michael Snyder <[email protected]>
8275
8276 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8277 * configure: Regenerate.
8278 * config.in: Regenerate.
8279 * acconfig.h: Add define for _SYSCALL32.
8280 * core-sol2.c: Remove #define _SYSCALL32.
8281 * solib-legacy.c: Remove #define _SYSCALL32.
8282
d8c0a2e7
AC
82832002-04-10 Andrew Cagney <[email protected]>
8284
8285 * stack.c (select_frame): Cleanup internal error message, do not
8286 use %p.
8287
7cc19214
AC
82882002-04-10 Andrew Cagney <[email protected]>
8289
8290 * stack.c (select_frame): Check that selected_frame and the
8291 specified level are as expected.
8292 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8293 Update copyright.
8294 * frame.h (struct frame_info): Add field `level'. Update
8295 copyright.
8296 Work-in-progress PR gdb/464.
8297
67a2b77e
AC
82982002-04-10 Andrew Cagney <[email protected]>
8299
8300 * maint.c (maint_print_section_info): Rename print_section_info.
8301 (print_bfd_section_info, print_objfile_section_info): Update.
8302 * inferior.h (struct gdbarch): Add opaque declaration.
8303 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8304 * gdbarch.h: Regenerate.
8305
8cfda98c
ML
83062002-04-10 Michal Ludvig <[email protected]>
8307
8308 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8309 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8310 (kernel_u_size): Added.
8311 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8312 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8313
ca439ad2 83142002-04-04 Jim Ingham <[email protected]>
361d1df0 8315
ca439ad2
JI
8316 * valarith.c (find_size_for_pointer_math): New function, either returns
8317 the size for a pointer's target, returns 1 for void *, or errors for
8318 incomplete types.
8319 (value_add, value_sub): use find_size_for_pointer_math.
8320
2f2893d9
DJ
83212002-04-09 Daniel Jacobowitz <[email protected]>
8322
8323 * linux-low.c (linux_look_up_symbols): New hook.
8324 (linux_target_ops): Add linux_look_up_symbols.
8325 * remote-utils.c (decode_address): New function.
8326 (look_up_one_symbol): New function.
8327 * server.c (handle_query): Call target look_up_symbols hook.
8328 * server.h (look_up_one_symbol): Add prototype.
8329 * target.h (struct target_ops): Add look_up_symbols hook.
8330
96cb11df
AC
83312002-04-09 Andrew Cagney <[email protected]>
8332
8333 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8334 override FP_REGNUM with frame->fp. Update copyright.
8335 * parse.c (num_std_regs, std_regs): Delete.
8336 (target_map_name_to_register): Do not search std_regs. Update
8337 function description.
8338 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8339 declarations. Update copyright.
8340 Fix PR gdb/251.
361d1df0 8341
97658e92
DJ
83422002-04-09 Daniel Jacobowitz <[email protected]>
8343
8344 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8345 after the last symbol in a block.
8346
6044e3eb
PM
83472002-04-09 Pierre Muller <[email protected]>
8348
8349 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8350 is non zero as a found symbol.
8351
0406ec40
AC
83522002-04-08 Andrew Cagney <[email protected]>
8353
8354 * findvar.c: Include "builtin-regs.h".
8355 (value_of_register): Call value_of_builtin_reg when applicable.
8356 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8357 (target_map_name_to_register): Call
8358 builtin_reg_map_name_to_regnum.
8359 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8360 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8361 (builtin_regs_h): Define.
8362 (builtin-regs.o): New target.
8363 (findvar.o): Add $(builtin_regs_h).
8364 * builtin-regs.c, builtin-regs.h: New files.
8365 * std-regs.c: New file.
8366 Partial fix for PR gdb/251.
8367
56a6dfb9
KB
83682002-04-08 Kevin Buettner <[email protected]>
8369
8370 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8371 it's no longer required.
8372
3a808432
AC
83732002-04-08 Andrew Cagney <[email protected]>
8374
8375 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8376
7c40d541
KB
83772002-04-08 Kevin Buettner <[email protected]>
8378
8379 From Jimi X <[email protected]>:
8380 * rs6000-tdep.c (rs6000_software_single_step): Use
8381 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8382 and size. Use target_insert_breakpoint() and
8383 target_remove_breakpoint() to insert and remove breakpoints
8384 instead of explicit memory reads and writes.
8385
cc9836a8
KB
83862002-04-08 Kevin Buettner <[email protected]>
8387
8388 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8389 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8390 ELF_OBJECT_FORMAT ifdef.
8391
7495d1dc
KB
83922002-04-08 Kevin Buettner <[email protected]>
8393
8394 From Jimi X <[email protected]>:
8395 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8396
4288e836
KB
83972002-04-08 Kevin Buettner <[email protected]>
8398
8399 From Jimi X <[email protected]>:
8400 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8401 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8402
a4e4e501
MK
84032002-04-07 Mark Kettenis <[email protected]>
8404
8405 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8406 s/asprintf/xasprintf/.
8407 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8408
006defba
AC
84092002-04-07 Andrew Cagney <[email protected]>
8410
8411 I believe Jeff Law denies responsability for this one:
8412 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8413 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8414 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8415 Work-around for PR gdb/366.
8416
7aa83cac
EZ
84172002-04-07 Elena Zannoni <[email protected]>
8418
8419 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8420 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8421 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8422
cf1fcca1
EZ
84232002-04-07 Elena Zannoni <[email protected]>
8424
8425 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8426 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8427 information.
8428
3f289e6f
AC
84292002-04-07 Andrew Cagney <[email protected]>
8430
8431 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8432 maintainer.
8433
129188f6
AC
84342002-04-07 Andrew Cagney <[email protected]>
8435
8436 * README (Reporting Bugs in GDB): Document the bug web page as the
8437 prefered way of submitting bugs.
8438 Fix PR gdb/402.
8439
1200cd6e
AC
84402002-04-06 Andrew Cagney <[email protected]>
8441
8442 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8443 -1. Update comment.
8444 * gdbarch.h, gdbarch.c: Re-generate.
8445
2853c33c
AS
84462002-04-07 Andreas Schwab <[email protected]>
8447
8448 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8449 buffer to regcache_collect.
8450
c2169756
AC
84512002-04-06 Andrew Cagney <[email protected]>
8452
8453 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8454 * gdbarch.c, gdbarch.h: Re-generate.
8455
25f1b008
AC
84562002-04-06 Andrew Cagney <[email protected]>
8457
8458 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8459 declaration. Fix -Werror.
8460
59263426
DJ
84612002-04-05 Daniel Jacobowitz <[email protected]>
8462
8463 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8464 * gdbarch.c: Regenerate.
8465
f5db4da3
MS
84662002-04-05 Michael Snyder <[email protected]>
8467
80f8a6eb
MS
8468 * breakpoint.c (clear_command): Rewrite middle section to
8469 combine two loops with identical control conditions.
8470 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8471 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8472
ad3dcc5c
L
84732002-04-05 H.J. Lu ([email protected])
8474
8475 * solib-svr4.c (bkpt_names): Add "__start".
8476
f32e7a74
AC
84772002-04-04 Andrew Cagney <[email protected]>
8478
8479 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8480 as test for 64 bit target.
8481
8227c0ff
AC
84822002-04-05 Andrew Cagney <[email protected]>
8483
8484 * h8500-tdep.c (h8500_write_fp): Delete function.
8485 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8486 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8487 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8488 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8489 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8490 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8491 (s390_write_fp):
8492 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8493 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8494 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8495 (d10v_write_fp): Delete function.
8496 * inferior.h (write_fp, generic_target_write_fp): Delete
8497 declarations.
8498 * regcache.c (generic_target_write_fp): Delete function.
8499 (write_fp): Delete function.
8500 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8501 * gdbarch.h, gdbarch.c: Regenerate.
8502 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8503 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8504 (sparc64_write_fp): Delete declaration.
8505 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8506 (h8500_write_fp): Delete declaration.
8507
2757dd86
AC
85082002-04-04 Andrew Cagney <[email protected]>
8509
8510 * sparc-tdep.c (sparc64_write_fp): Delete.
8511 (sparc_push_dummy_frame): Replace write_fp call with code to store
8512 the FP directly.
8513 (sparc_gdbarch_init): Do not initialize write_fp.
8514
c69255e1
KB
85152002-04-05 Kevin Buettner <[email protected]>
8516
8517 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8518 clause.
8519
ae767bfb
JB
85202002-03-29 Jim Blandy <[email protected]>
8521
8522 * stack.c (get_selected_block): Add new argument `addr_in_block',
8523 used to return the exact code address we used to select the block,
8524 not just the block.
8525 * blockframe.c (get_frame_block, get_current_block): Same.
8526 * frame.h (get_frame_block, get_current_block,
8527 get_selected_block): Update declarations.
8528 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8529 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8530
84d2ac95
MS
85312002-04-05 Michael Snyder <[email protected]>
8532
8533 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8534 warning message.
8535
596aa3bf
JB
85362002-04-05 J. Brobecker <[email protected]>
8537
8538 * utils.c (xfullpath): New function.
8539 * defs.h (xfullpath): Add declaration.
8540 * source.c (openp): Use xfullpath in place of gdb_realpath to
8541 avoid resolving the basename part of filenames when the
8542 associated file is a symbolic link. This fixes a potential
8543 inconsistency between the filenames known to GDB and the
8544 filenames it prints in the annotations.
8545 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8546 to be able to match a filename with either the real filename, or
8547 the name of any symbolic link to this file.
8548 (lookup_partial_symtab): Ditto.
8549
c02f5703
MS
85502002-04-04 Michael Snyder <[email protected]>
8551
8552 * breakpoint.c: Add support for hardware breakpoints in overlays.
8553 (overlay_events_enabled): New state variable.
8554 (insert_breakpoints): Use overlay_events_enabled to decide
8555 whether to attempt to set a breakpoint at the overlay load addr.
8556 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8557 (remove_breakpoint): Use overlay_events_enabled to decide
8558 whether breakpoints need to be removed from overlay load addr.
8559 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8560 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8561 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8562 disable_overlay_breakpoints): Update overlay_events_enabled.
8563
5fb290d7
DJ
85642002-04-04 Daniel Jacobowitz <[email protected]>
8565
8566 * dwarf2read.c (struct function_range): New.
8567 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8568 (check_cu_functions): New.
8569 (read_file_scope): Initialize global function lists.
8570 Call dwarf_decode_line after processing children.
8571 (read_func_scope): Add to global function list.
8572 (dwarf_decode_lines): Call check_cu_functions everywhere
8573 record_line is called. Call record_line with a linenumber
8574 of 0 to mark sequence ends.
8575
7b3fabf0
ML
85762002-04-04 Michal Ludvig <[email protected]>
8577
361d1df0 8578 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8579 change sync with glibc.
8580
bce58c09
JB
85812002-04-03 Jim Blandy <[email protected]>
8582
8583 * configure.in: Call AC_C_INLINE.
8584 * configure: Regenerated.
361d1df0 8585
2fccf04a
DJ
85862002-04-01 Daniel Jacobowitz <[email protected]>
8587
8588 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8589 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8590
2d1bfe2e
MK
85912002-03-31 Mark Kettenis <[email protected]>
8592
a5941fbf
MK
8593 * NEWS: Mention gcore support on FreeBSD/i386.
8594
a90cd31d
MK
8595 * fbsd-proc.c: New file.
8596 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8597 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8598
2d1bfe2e
MK
8599 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8600 while statement.
8601
9eb6e5a1
JB
86022002-03-29 Jim Blandy <[email protected]>
8603
8604 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8605 unescaped newlines in string literals, but newer ones don't. So
8606 escape them.
8607
f02df580
MS
86082002-03-26 Michael Snyder <[email protected]>
8609 Andrew Cagney <[email protected]>
8610
361d1df0 8611 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8612 restore file to memory.
8613 * cli/cli-dump.h: New file.
8614 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8615 * NEWS: Mention new commands.
f02df580 8616
109f874e
MS
86172002-03-28 Michael Snyder <[email protected]>
8618
8619 * symfile.c (symbol_file_add): Move test for null symbols to later.
8620
520f6ade
AC
86212002-03-27 Andrew Cagney <[email protected]>
8622
8623 From veksler at il.ibm.com:
8624 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8625 the xstrduped original path.
8626 Fix PR gdb/417.
8627
d4654627
MS
86282002-03-27 Michael Snyder <[email protected]>
8629
8630 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8631 * infcmd.c (_initialize_infcmd): Ditto.
8632 * language.c (_initialize_language): Ditto.
8633 * symfile.c (_initialize_symfile): Ditto.
8634 * top.c (_init_main): Ditto.
8635 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8636
6be8bc0c
EZ
86372002-03-27 Elena Zannoni <[email protected]>
8638
8639 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8640 vector registers handling.
8641 (skip_prologue): Handle new AltiVec instructions. Fill in new
8642 fields of frame data.
8643 (frame_get_saved_regs): Fill in information for AltiVec registers.
8644
12af6855
JB
86452002-03-27 Jim Blandy <[email protected]>
8646
8647 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8648 a function; leave this macro here to invoke that function.
8649 (symbol_init_mangled_name): Declaration for that function.
8650 * symtab.c (symbol_init_mangled_name): New function.
8651
dc672865
AC
86522002-03-27 Andrew Cagney <[email protected]>
8653
8654 * valarith.c: Replace strerror with safe_strerror.
8655 * tracepoint.c: Ditto.
8656 * lin-lwp.c: Ditto.
8657 * go32-nat.c: Ditto.
8658 * inflow.c: Ditto.
8659 * gnu-nat.c: Ditto.
8660
d96429cd
AS
86612002-03-27 Andreas Schwab <[email protected]>
8662
8663 * event-top.c (command_line_handler): Remove useless if.
8664
7e336ba1
AJ
86652002-03-27 Andreas Jaeger <[email protected]>
8666
8667 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8668 comment.
8669
de220d0f
ML
86702002-03-27 Michal Ludvig <[email protected]>
8671
8672 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8673 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8674 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8675 (x86_64_linux_dr_get_status, supply_gregset),
8676 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8677 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8678 (x86_64_register_info_table): Add.
8679 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8680 (x86_64_register_raw_size, x86_64_register_virtual_type),
8681 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8682 general x86_64_register_info_table.
8683 (i386_gdbarch_init): gdbarch_register_bytes is now set
8684 dynamicaly during initialization.
8685 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8686 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8687
0e98d0a7
DJ
86882002-03-27 Daniel Jacobowitz <[email protected]>
8689
8690 * gdbserver/server.c (main): Call target_signal_to_host_p
8691 and target_signal_to_host on signals received from the remote.
8692 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8693 target_signal_from_host on signals sent to the remote.
8694 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8695 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8696
3130066b
DJ
86972002-03-27 Daniel Jacobowitz <[email protected]>
8698
8699 * signals/signals.c: Include "server.h" in gdbserver build.
8700 (target_signal_from_name): Don't use STREQ.
8701 (_initialize_signals): Likewise. Don't include function in
8702 gdbserver build.
8703
9aedf4f4
DJ
87042002-03-27 Daniel Jacobowitz <[email protected]>
8705
8706 * signals.c: Moved to...
8707 * signals/signals.c: Here.
7e336ba1 8708 * Makefile (signals.o): Update.
9aedf4f4 8709
3fa41cdb
JL
87102002-03-26 Jeff Law ([email protected])
8711
8712 * somread.c (som_symtab_read): Remove some commented out code and
8713 updated related comments. Do not set the minimal symbol table to
8714 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8715 in a dynamic executable.
8716 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8717 where we are unable to find the minimal symbol for the given
8718 PC value.
8719
ee677e8d
MS
87202002-03-25 Jeff Law ([email protected])
8721
8722 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8723
e76e1718
ML
87242002-03-25 Michal Ludvig <[email protected]>
8725
8726 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8727
18a642a1
AC
87282002-03-23 Andrew Cagney <[email protected]>
8729
8730 * command.h: Update copyright.
8731 (struct cmd_list_element): Replace definition with opaque
8732 declaration.
8733 (enum cmd_types): Document that it will eventually be moved to
8734 cli/cli-decode.h
8735 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8736 (MALLOCED_REPLACEMENT): Delete macro.
8737 * Makefile.in (cli_decode_h): Add $(command_h).
8738 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8739 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8740 * completer.c: Include "cli/cli-decode.h".
8741 * maint.c: Include "cli/cli-decode.h".
8742 * cli/cli-decode.h: Include "command.h".
8743 (enum command_class): Delete.
8744 (enum cmd_types): Comment out.
8745 (enum cmd_auto_boolean): Delete.
8746 (enum var_types): Delete.
8747
b2875cc0
AC
87482002-03-23 Andrew Cagney <[email protected]>
8749
8750 * cli/cli-decode.c: Include "gdb_assert.h".
8751 (add_set_or_show_cmd): New static function.
8752 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8753 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8754 all fields, such as func, from the set command.
8755
3b45974e
AC
87562002-03-23 Andrew Cagney <[email protected]>
8757
8758 * MAINTAINERS (sh-elf): Change warning flag to -w.
8759
823ca731
AC
87602002-03-23 Andrew Cagney <[email protected]>
8761
8762 * defs.h (error): Add printf format attribute.
8763 * thread-db.c (thread_from_lwp): Fix error format string.
8764 * stack.c (parse_frame_specification): Ditto.
8765 * cli/cli-decode.c (undef_cmd_error): Ditto.
8766 * scm-lang.c (scm_lookup_name): Ditto.
8767 * tracepoint.c (trace_error): Ditto.
8768 * remote-utils.c (usage): Ditto.
8769 * remote.c (compare_sections_command): Ditto.
8770 Fix PR gdb/328.
8771
0e101458
AC
87722002-03-22 Andrew Cagney <[email protected]>
8773
8774 * gdbtypes.c (append_composite_type_field): New function.
8775 (init_composite_type): New function.
8776 * gdbtypes.h (append_composite_type_field): Declare.
8777 (init_composite_type): Ditto.
8778
8e0662df
EZ
87792002-03-22 Elena Zannoni <[email protected]>
8780
8781 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8782 function.
8e0662df
EZ
8783 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8784 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8785 structure returning convention for SYSV ABI case, but not
8786 for GNU/Linux, FreeBSD, or NetBSD.
8787
3121eff0
DJ
87882002-03-22 Daniel Jacobowitz <[email protected]>
8789
8790 * symtab.h (lookup_block_symbol): Add mangled_name argument
8791 to prototype.
8792
8793 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8794 with new mangled_name argument.
8795 * linespec.c (decode_line_1): Likewise.
8796 * valops (value_of_this): Likewise.
8797 * symtab.c (lookup_transparent_type): Likewise.
8798 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8799 (lookup_symbol): If we are given a mangled name, pass it down
8800 to lookup_symbol_aux.
8801 (lookup_block_symbol): If we are given a mangled name to check
8802 against, only return symbols which match it.
8803
349b409f
CF
88042002-03-22 Christopher Faylor <[email protected]>
8805
8806 * win32-nat.c (child_create_inferior): Check for proper shell to use
8807 here, in case the user changes it on the fly.
8808 (_initialize_inftarg): Remove shell path considerations.
8809
2a873819
EZ
88102002-03-21 Elena Zannoni <[email protected]>
8811
8812 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8813 for gdbarch_max_register_raw_size and max_register_virtual_size.
8814 Adjust copyright year.
8815
a1b9830c
DJ
88162002-03-21 Daniel Jacobowitz <[email protected]>
8817
8818 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8819 in a function to cover the entire beginning of the function
8820 as well if it does not already.
8821
8b5790f2
TR
88222002-03-21 Tom Rix <[email protected]>
8823
8824 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8825 (rs6000_ptrace64): Renamed from ptrace64.
8826
bdbe5747
MH
88272002-03-20 Martin M. Hunt <[email protected]>
8828
8829 * gdbserver/remote-utils.c (remote_open): Don't call
8830 getprotobyname, we're all using TCP here so just use
8831 IPPROTO_TCP.
7e336ba1 8832 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
8833
88342002-03-20 Martin M. Hunt <[email protected]>
7e336ba1 8835
bdbe5747
MH
8836 * regcache.c (_initialize_regcache): No need to call
8837 build_regcache() at this time; it gets called whenever
8838 the gdbarch changes.
8839
7781cd62
DB
88402002-03-20 David O'Brien <[email protected]>
8841
8842 * sparc-nat.c: Include sys/param.h where possible.
8843
f65ca430
DJ
88442002-03-20 Daniel Jacobowitz <[email protected]>
8845
8846 Fix PR gdb/422.
8847 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8848 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8849 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8850 complex types.
8851 * stabsread.c (rs6000_builtin_type): Likewise.
8852 (read_sun_floating_type): Likewise.
8853
0c867556
PS
88542002-03-19 Peter Schauer <[email protected]>
8855
8856 * stabsread.c (read_member_functions): Remove skip code for duplicate
8857 constructor/destructor methods. Use standard parsing for these
8858 methods and just do not chain them to the list of methods after
8859 parsing.
8860
12b9c64f
AO
88612002-03-19 Alexandre Oliva <[email protected]>
8862
8863 * coffread.c: Remove redundant static declarations. Replace
8864 occurrences of `PTR' with `void *'.
8865 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8866 * top.h (quit_cover): Likewise.
8867 * defs.h (catch_errors): Likewise.
8868
349c5d5f
AC
88692002-03-18 Andrew Cagney <[email protected]>
8870
8871 * defs.h (XMALLOC): Define.
8872 * gdb-events.sh (XMALLOC): Delete macro.
8873 * gdb-events.c, gdb-events.h: Regenerate.
8874 * gdbarch.sh (XMALLOC): Delete macro.
8875 * gdbarch.c: Regenerate.
8876 * serial.c (XMALLOC): Delete macro.
8877 * ui-file.c (XMALLOC): Ditto.
8878 * ser-unix.h (XMALLOC): Ditto.
8879 * sh-tdep.c (XMALLOC): Ditto.
8880 * ui-out.c (XMALLOC): Ditto.
8881 * utils.c (XMALLOC): Ditto.
8882 * i386-tdep.c (XMALLOC): Ditto.
8883 * gdb-events.c (XMALLOC): Ditto.
8884 * d10v-tdep.c (XMALLOC): Ditto.
8885 * cli-out.c (XMALLOC): Ditto.
8886
8887 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8888 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8889 * ui-file.c, ui-out.c: Ditto.
8890
7d0766f3
AC
88912002-03-18 Andrew Cagney <[email protected]>
8892
8893 * command.h (struct cmd_list_element): Add field context.
8894 (set_cmd_context, get_cmd_context): Declare.
8895 * cli/cli-decode.h: Ditto.
8896 * cli/cli-decode.c (get_cmd_context): New function.
8897 (set_cmd_context): New function.
8898 (add_cmd): Initialize context.
8899 Part of fixing PR gdb/145 and PR gdb/146.
8900
5913bcb0
AC
89012002-03-17 Andrew Cagney <[email protected]>
8902
1868c04e
AC
8903 * cli/cli-decode.c (cmd_type): New function.
8904 * command.h (cmd_type): Declare.
8905 * infrun.c (set_schedlock_func): Call function cmd_type.
8906 * kod.c (kod_set_os): Call cmd_type.
8907 * cris-tdep.c (cris_version_update): Use function cmd_type.
8908 (cris_mode_update, cris_abi_update): Ditto.
8909
5913bcb0
AC
8910 * command.h: (execute_cmd_post_hook): Declare.
8911 (execute_cmd_pre_hook): Declare.
8912 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8913 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8914 functions. Execute pre/post hook while ensuring that afterwords
8915 hook_in is cleared.
8916 * top.c (execute_command): Use execute_cmd_post_hook, and
8917 execute_cmd_pre_hook to execute pre/post commands.
8918 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8919 hook_stop_stub.
8920 (hook_stop_stub): Call execute_cmd_pre_hook.
8921
b51450c9
AC
89222002-03-17 Andrew Cagney <[email protected]>
8923
8924 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8925 set'' and this leads to a core dump. Move xstrdup of
8926 operating_system to after check that it is not NULL.
8927
f66c9f11
AC
89282002-03-17 Andrew Cagney <[email protected]>
8929
8e694ecf
AC
8930 * kod.c (kod_set_os): Remove unnecessary check that
8931 ``command->type'' is set_cmd.
8932
f66c9f11
AC
8933 * valprint.c (set_input_radix): Use input_radix.
8934 (set_output_radix): Use output_radix.
8935 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8936 isn't reverted.
8937
9d01611c
AC
89382002-03-16 Andrew Cagney <[email protected]>
8939
8940 * value.h (struct value): Delete field ``substring_addr''. Change
8941 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
8942 force_core_addr_align and force_pointer_aligh.
8943
8944 * value.h (struct value): Fix typo in above change.
9d01611c 8945
4156bb53
PS
89462002-03-16 Peter Schauer <[email protected]>
8947
8948 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8949 to fix internal_error from ``maintenance print architecture''.
8950
0e5e3ea6
PS
89512002-03-16 Peter Schauer <[email protected]>
8952
8953 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8954 for gcc versions after gcc-2.8.1.
8955
9b013045
PS
89562002-03-16 Peter Schauer <[email protected]>
8957
8958 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8959 for method resolution. Restore adjustment of ``this'' pointer after
8960 calling value_struct_elt, which was accidentally removed during the
8961 HP merge.
8962
376c9600
AC
89632002-03-15 Andrew Cagney <[email protected]>
8964
8965 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8966 value_of_register.
8967 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8968 get_saved_register.
8969 * value.h (value_of_register): Update.
8970
a4db0f07
RH
89712002-03-14 Richard Henderson <[email protected]>
8972
8973 * configure.in: Detect declaration for canonicalize_file_name.
8974 * utils.c (canonicalize_file_name): Declare, if needed.
8975 (gdb_realpath): Prefer realpath if available and usable.
8976 * config.in, configure: Rebuild.
8977
96383835
RH
89782002-03-14 Richard Henderson <[email protected]>
8979
8980 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8981 a constant array bound.
8982
8983 * MAINTAINERS: Add myself to write-after-approval.
8984
75245b24
MS
89852002-03-14 Michael Snyder <[email protected]>
8986
8987 * symfile.c (syms_from_objfile): Return immediately if no syms.
8988 (symbol_file_add): Return immediately if no syms.
8989 (find_sym_fns): Return immediately if no syms.
8990
e641a1ca
ML
89912002-03-13 Michal Ludvig <[email protected]>
8992
8993 * gdbserver/remote-util.c (remote_open): Print remote-side's
8994 IP address when remote debugging over the network.
7e336ba1 8995
df08bfec
DB
89962002-03-12 David O'Brien <[email protected]>
8997
8998 * config/sparc/fbsd.mh: Fix copyright.
8999 * config/sparc/fbsd.mt: Likewise.
9000
9a57864f
RE
90012002-03-11 Richard Earnshaw <[email protected]>
9002
9003 * MAINTAINERS: Fix typo in name of gdb warnings option.
9004 (x86-64): Fix formating so that this can be parsed by awk.
9005
dd7bf85e
DJ
90062002-03-10 Daniel Jacobowitz <[email protected]>
9007
9008 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9009 * defs.h: Include "gdb/signals.h".
9010 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9011
33a0a2ac
ML
90122002-03-10 Michal Ludvig <[email protected]>
9013
9014 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 9015 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
9016 from x86-64-tdep.h
9017
dd824b04
DJ
90182002-03-10 Daniel Jacobowitz <[email protected]>
9019 Don Howard <[email protected]>
9020
9021 * mips-tdep.c (ST0_FR): Define.
9022 (mips2_fp_compat): New function, temporarily disabled.
9023 (mips_read_fp_register_single): New function.
9024 (mips_read_fp_register_double): New function.
9025 (mips_print_register): Use them.
9026 (do_fp_register_row): Likewise.
9027
6a41ff59
AC
90282002-03-09 Andrew Cagney <[email protected]>
9029
9030 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9031 approval''.
9032
4ea09c10
PS
90332002-03-08 Peter Schauer <[email protected]>
9034
9035 * stabsread.c (read_member_functions): Fix is_stub test for
9036 static member functions, improve comment.
9037
6ccc741d
RE
90382002-03-07 Richard Earnshaw <[email protected]>
9039
9040 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9041 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9042 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9043 commands that set boolean values.
9044 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9045 (arm_rdi_resume): Always initialize PC.
9046 (arm_rdi_open): Don't use rslt as a boolean.
9047 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9048 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9049 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9050 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9051
438013df
AO
90522002-03-06 Alexandre Oliva <[email protected]>
9053
9054 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9055 * configure: Rebuilt.
9056
70ed8774
SC
90572002-03-06 Stephane Carrez <[email protected]>
9058
9059 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9060 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9061
5ba2abeb
AC
90622002-03-06 Andrew Cagney <[email protected]>
9063
9064 * cli/cli-decode.c (set_cmd_completer): New function.
9065 * command.h (set_cmd_completer): Declare.
9066 * cli/cli-decode.h (set_cmd_completer): Ditto.
9067
9068 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9069 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9070 * win32-nat.c (_initialize_inftarg): Ditto.
9071 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9072 * proc-api.c (_initialize_proc_api): Ditto.
9073 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9074 * source.c (_initialize_source): Ditto.
9075 * exec.c (_initialize_exec): Ditto.
9076 * solib.c (_initialize_solib): Ditto.
9077 * top.c (init_main): Ditto.
9078 * tracepoint.c (_initialize_tracepoint): Ditto.
9079 * symfile.c (_initialize_symfile): Ditto.
9080 * printcmd.c (_initialize_printcmd): Ditto.
9081 * infcmd.c (_initialize_infcmd): Ditto.
9082 * corefile.c (_initialize_core): Ditto.
9083
f779ca99
AC
90842002-03-05 Andrew Cagney <[email protected]>
9085
9086 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9087
01a3934b
AC
90882002-03-05 Andrew Cagney <[email protected]>
9089
9090 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9091
37057839
AC
90922002-03-05 Andrew Cagney <[email protected]>
9093
9094 * NEWS: Update headings, 5.2 has branched.
9095
c6ecbae5
DJ
90962002-03-04 Daniel Jacobowitz <[email protected]>
9097
9098 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9099 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9100 (register_addr, REGISTER_RAW_SIZE): Likewise.
9101 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9102 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9103
e9f30c21
ML
91042002-03-03 Michal Ludvig <[email protected]>
9105
9106 * MAINTAINERS (x86-64): Add myself.
9107 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9108 changed value_ptr -> struct value *
9109
54394ac3
DB
91102002-03-01 David O'Brien <[email protected]>
9111
9112 * configure.host (sparc64-*-freebsd): Add.
9113 * configure.tgt: Likewise.
9114 * config/sparc/fbsd.mh: New file.
9115 * config/sparc/fbsd.mt: Likewise.
9116 * config/sparc/nm-fbsd.h: Likewise.
9117 * config/sparc/tm-fbsd.h: Likewise.
9118
bfe95955
DJ
91192002-03-01 Daniel Jacobowitz <[email protected]>
9120
9121 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9122 regformats/reg-s390x.dat.
9123
f33c6cbf
AC
91242002-03-01 Andrew Cagney <[email protected]>
9125
9126 * utils.c: Add FIXME explaining true/false problem.
9127
5ecaa7dd
AC
91282002-02-28 Andrew Cagney <[email protected]>
9129
9130 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9131
2a251cc2
MC
91322002-02-28 Michael Chastain <[email protected]>
9133
9134 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9135
6a8031a3 91362002-02-28 Daniel Jacobowitz <[email protected]>
265f716b
DJ
9137
9138 * gdbserver/linux-s390-low.c: New file.
9139 * regformats/reg-s390.dat: New file.
9140 * regformats/reg-s390x.dat: New file.
9141 * gdbserver/configure.srv: Add S/390.
9142 * gdbserver/Makefile.in: Add S/390.
9143 * configure.tgt: Enable gdbserver for S/390.
9144
ac469903
EZ
91452002-02-28 Eli Zaretskii <[email protected]>
9146
9147 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9148 first line of the doc string for "info dos", except at the end of
9149 the sentence, since the short help stops at the first period.
9150
985cb1a3
JM
91512002-02-28 Jason Merrill <[email protected]>
9152
9153 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9154
c570663e
FF
91552002-02-27 Fred Fish <[email protected]>
9156
9157 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9158 comment (dumy -> dummy).
9159
43630227
PS
91602002-02-27 Peter Schauer <[email protected]>
9161
9162 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9163
b84911e8
RB
91642002-02-27 Rodney Brown <[email protected]>
9165
9166 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9167
58caa3dc
DJ
91682002-02-27 Daniel Jacobowitz <[email protected]>
9169
9170 * gdbserver/acconfig.h: New file.
9171 * gdbserver/i387-fp.c: New file.
9172 * gdbserver/i387-fp.h: New file.
9173 * gdbserver/linux-x86-64.c: New file.
9174 * regformats/reg-x86-64.dat: New file.
9175 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9176 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9177 * gdbserver/configure.in: Add support for regsets.
9178 * gdbserver/config.in: Regenerate.
9179 * gdbserver/configure: Regenerate.
9180 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9181 * gdbserver/linux-low.h: New file.
9182 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9183 for regsets.
9184 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9185 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9186 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9187 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9188 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9189 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9190 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9191 "i387-fp.h". Add PTRACE_GETREGS and friends.
9192 * gdbserver/regcache.c (supply_register): New function.
9193 (supply_register_by_name): New function.
9194 (collect_register): New function.
9195 (collect_register_by_name): New function.
9196
93652174
DJ
91972002-02-27 Daniel Jacobowitz <[email protected]>
9198
9199 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9200 (config.status): Add configure.srv dependency.
9201 (server_h): Add config.h dependency.
9202
a02e4a61
DJ
92032002-02-27 Daniel Jacobowitz <[email protected]>
9204
9205 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9206 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9207 * gdbserver/configure.srv: Change i386-*-linux* to use
9208 reg-i386-linux.o.
9209
ce0eebec
AC
92102002-02-26 Andrew Cagney <[email protected]>
9211
9212 * x86-64-tdep.c: Re-indent. Update copyright date.
9213
82dbc5f7
AC
92142002-02-26 Andrew Cagney <[email protected]>
9215
9216 From Michal Ludvig <[email protected]>:
9217 * x86-64-tdep.c (value.h): Delete.
9218 (gdb_assert.h): Include.
9219 (x86_64_register_convert_to_virtual,
9220 x86_64_register_convert_to_raw ): Add check which lets only
9221 floating-point values to be converted.
9222 (value_push): Delete.
9223 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9224 (i386_gdbarch_init): Number of register_bytes fixed.
9225
e4621584
AC
92262002-02-26 Andrew Cagney <[email protected]>
9227
9228 * MAINTAINERS: Add x86-64 target.
9229
81a9a963
AC
92302002-02-26 Andrew Cagney <[email protected]>
9231
9232 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9233 * osfsolib.c (solib_map_sections): Ditto.
9234 * irix5-nat.c (solib_map_sections): Ditto.
9235 * corelow.c (gdb_check_format): Ditto.
9236 * symfile.c (symfile_bfd_open): Ditto.
9237 * solib.c (solib_map_sections): Ditto.
9238 Fix PR gdb/354.
7e336ba1 9239
0f017ab9
AC
92402002-02-26 Andrew Cagney <[email protected]>
9241
9242 * remote.c (_initialize_remote): By default, disable ``e'' and
9243 ``E'' step out-of-range packets.
9244
75738c29
AS
92452002-02-26 Andreas Schwab <[email protected]>
9246
9247 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9248 m68k_linux_frame_saved_pc.
9249 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9250 in_sigtramp.
9251 (SIGCONTEXT_PC_OFFSET): Remove.
9252 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9253 m68k_linux_sigtramp_saved_pc): New functions.
9254 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9255 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9256 (UCONTEXT_PC_OFFSET): Define.
9257 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9258 non-RT and RT signal trampolines.
9259
7e8ed687
RE
92602002-02-26 Richard Earnshaw <[email protected]>
9261
9262 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9263 (TARGET_NBPG, STACK_END_ADDR): Delete
9264 (VARIABLES_INSIDE_BLOCK): Delete.
9265
6972bc8b
AC
92662002-02-25 Andrew Cagney <[email protected]>
9267
9268 * utils.c (perror_with_name): Make string parameter constant.
9269 (print_sys_errmsg): Ditto.
9270 (query): Ditto.
9271 * defs.h (perror_with_name): Update.
9272 (print_sys_errmsg): Update.
9273 (query): Update.
9274
aa32f823
DJ
92752002-02-25 Daniel Jacobowitz <[email protected]>
9276
9277 From Eliot Dresselhaus <[email protected]>:
9278 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9279
19caaa45
PS
92802002-02-25 Peter Schauer <[email protected]>
9281
9282 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9283 if it already matches the current architecture from the exec file.
9284 Include arch-utils.h for gdbarch_info_init prototype.
9285 * Makefile.in (rs6000-nat.o): Update dependencies.
9286
d951901f
EZ
92872002-02-25 Eli Zaretskii <[email protected]>
9288
9289 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9290 list of exported variables.
9291
7ea81414
DJ
92922002-02-24 Daniel Jacobowitz <[email protected]>
9293
9294 * gdbserver/configure.srv: New file.
9295 * gdbserver/configure.in: Use configure.srv instead
9296 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9297 from it.
9298 * gdbserver/configure: Regenerated.
9299 * gdbserver/terminal.h: New file.
9300 * gdbserver/Makefile.in: Update for configure changes. Remove
9301 more unneeded include paths.
9302
080fe24b
AC
93032002-02-24 Andrew Cagney <[email protected]>
9304
9305 From wiz at danbala:
9306 * config/sparc/tm-sp64.h: Fix grammar and typos.
9307 Fix PR gdb/287.
9308
8605d56e
AC
93092002-02-24 Andrew Cagney <[email protected]>
9310
9311 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9312 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9313 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9314 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9315 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9316 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9317 * s390-tdep.c: Ditto.
92362027
AC
9318 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9319 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9320 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9321 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9322 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9323 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9324 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9325 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9326 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9327 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9328 Fix PR gdb/378.
7e336ba1 9329
8ed32cc0
AC
93302002-02-23 Andrew Cagney <[email protected]>
9331
a3007b6f
AC
9332 * lin-thread.c: Delete file.
9333 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9334 to gdb_proc_service.h.
9335 * configure: Re-generate.
9336
50a9e2f1
AC
9337 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9338 * serial.c (serial_open): Delete check for "ocd".
9339 Fix PR gdb/349.
9340
8b6e7932
AC
9341 * Makefile.in (linux-thread.o): Delete target.
9342 * linux-thread.c: Delete file.
9343
d155c46b
AC
9344 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9345 renamed SH files to be consistent.
9346
8ed32cc0
AC
9347 * symtab.c (sort_search_symbols): Use xfree.
9348
0e18d038
RE
93492002-02-23 Richard Earnshaw <[email protected]>
9350
9351 * arm-linux-tdep.c (arm_linux_init_abi): Register
9352 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9353 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9354 definition with undef, since we don't want the sysvr4 definition.
9355 (SKIP_TRAMPOLINE_CODE): Likewise.
9356
27aac7ff
AC
93572002-02-23 Andrew Cagney <[email protected]>
9358
9359 From 2002-02-22 Alfred M. Szmidt <[email protected]>:
9360
9361 * configure.in: (AC_CHECK_FUNCS) Added test for
9362 canonicalize_file_name Regenerated.
9363 * config.in, configure: Regenerated.
9364 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9365 defined use canonicalize_file_name.
7e336ba1 9366
65a6e0ee
MC
93672002-02-23 Michael Chastain <[email protected]>
9368
9369 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9370
47b95330
AC
93712002-02-23 Andrew Cagney <[email protected]>
9372
9373 * README: Remove references to cygnus.com.
9374 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9375 dot com'' form. Remove references to cygnus.com and sourceware.
9376
696f451b
AC
93772002-02-23 Andrew Cagney <[email protected]>
9378
9379 From 2002-02-19 Paul Eggert <[email protected]>:
9380 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9381 1003.1-2001 no longer allows "head -1".
9382 * gdb/Makefile.in (version.c): Likewise.
9383 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9384 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9385 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9386
bbaca940
AC
93872002-02-23 Andrew Cagney <[email protected]>
9388
9389 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9390 * command.h (cmd_cfunc_eq): Declare.
9391 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9392
9393 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9394 ``struct cmd_list_element *''.
9395 * cli/cli-cmds.c (is_complete_command): Update. Use
9396 cmd_cfunc_eq.
9397 * top.c (execute_command): Pass the command to
9398 is_complete_command.
9399 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9400
b8b8b047
AC
94012002-02-23 Andrew Cagney <[email protected]>
9402
9403 From 2002-02-20 Martin Schwidefsky <[email protected]>:
9404 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9405 architecture defines.
9406 * s390-tdep.c (s390_gdbarch_init): Likewise.
9407
19d3fc80
RE
94082002-02-23 Richard Earnshaw <[email protected]>
9409
9410 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9411 (arm_linux_push_arguments): Likewise.
9412 (arm_linux_init_abi): Register them. Also register linux-specific
9413 call_dummy_words.
9414 (find_minsym_and_objfile): Use strcmp, not STREQ.
9415 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9416 (arm_linux_call_dummy_words): Delete declaration.
9417 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9418 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9419 declarations.
9420 (LOWEST_PC): Delete.
9421
3ab13650
PS
94222002-02-23 Peter Schauer <[email protected]>
9423
9424 * maint.c (print_section_info): Do not prepend `0x' to filepos
9425 output, it will be handled by local_hex_string_custom.
9426
19d3fc80 94272002-02-23 Richard Earnshaw <[email protected]>
85ae890c
RE
9428
9429 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9430 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9431 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9432
d85a5daf
JB
94332002-02-22 Jim Blandy <[email protected]>
9434
9435 Indicate that the bcache functions don't change the strings
9436 they're passed.
9437 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9438 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9439
eeb25b8a
PM
94402002-02-22 Pierre Muller <[email protected]>
9441
9442 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9443
6badb179
CF
94442002-02-21 Christopher Faylor <[email protected]>
9445
9446 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9447 find the complete path to a loaded DLL.
9448
e8717518
FF
94492002-02-21 Fred Fish <[email protected]>
9450
9451 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9452 that marks the end of the range of a function, enter a line number
9453 entry that has a line number of zero and a PC offset that matches
9454 the end of the function. This starts a range of PC's for which no
9455 line number information is known.
9456 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9457 PC's for which no line number info is found (line number is zero)
9458 then we didn't find any valid line information.
9459 * symtab.h: Document use of zero line number entry.
9460
9abe5450
EZ
94612002-02-21 Elena Zannoni <[email protected]>
9462
9463 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9464 (have_ptrace_getvrregs): Define for run time checks.
9465 (gdb_vrregset_t): New type for Altivec register handling.
9466 (fetch_register, store_register): Fetch/store altivec register
9467 when needed.
9468 (fetch_altivec_register, store_altivec_register): New functions.
9469 (supply_vrregset, fill_vrregset): New functions.
9470 (fetch_altivec_registers, store_altivec_registers): New functions.
9471 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9472 registers as well.
9473
aaa38bb5
AJ
94742002-02-21 Jiri Smid <[email protected]>
9475
9476 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9477
b34db576
RE
94782002-02-21 Richard Earnshaw <[email protected]>
9479
9480 * Makefile.in (armnbsd-nat.o): Update dependencies.
9481 * armnbsd-nat.c (supply_gregset): New function. Common code to
9482 supply the integer register set.
9483 (supply_fparegset): New function. Similar for FPA registers.
9484 (fetch_regs, fetch_fp_regs): Use them.
9485 (fetch_core_registers): Likewise.
9486 (fetch_elfcore_registers): New function.
9487 (arm_netbsd_elfcore_fns): New core-file type specification.
9488 (_initialize_arm_netbsd_nat): Register it.
9489
3e56fc4b
RE
94902002-02-21 Richard Earnshaw <[email protected]>
9491
9492 * armnbsd-nat.c: Include gdbcore.h.
9493 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9494 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9495 'void' to declaration, to shut up ARI.
9496 (fetch_core_registers): Make static. Rewrite using supply_register.
9497 (arm_netbsd_core_fns): New core-file type specification.
9498 (_initialize_arm_netbsd_nat): New function.
9499
097f6b0b
CF
95002002-02-21 Christopher Faylor <[email protected]>
9501
9502 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9503 value.
9504
c914e0cc
CF
95052002-02-20 Christopher Faylor <[email protected]>
9506
9507 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9508 fails.
9509
385fa495
DJ
95102002-02-20 Daniel Jacobowitz <[email protected]>
9511
9512 * jv-exp.y (parse_number): Change type of implicit longs
9513 to builtin_type_uint64.
9514
e5f1222d
DJ
95152002-02-20 Daniel Jacobowitz <[email protected]>
9516
9517 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9518 to be an integer instead of a `union wait'.
9519
75c9abc6
DJ
95202002-02-20 Daniel Jacobowitz <[email protected]>
9521
9522 * mips-linux-nat.c: Call the operating system GNU/Linux.
9523 * mips-linux-tdep.c: Likewise.
9524 * mips-tdep.c: Likewise.
9525
551792a5
DJ
95262002-02-20 Daniel Jacobowitz <[email protected]>
9527
9528 Fix PR gdb/265.
9529 * jv-exp.y (parse_number): Handle 64-bit integers.
9530
ee6e2b82
DJ
95312002-02-20 Daniel Jacobowitz <[email protected]>
9532
9533 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9534 AC_STDC_HEADERS to AC_HEADER_STDC.
9535 * gdbserver/configure: Regenerated.
9536
a48442a0
RE
95372002-02-20 Richard Earnshaw <[email protected]>
9538
9539 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9540 is defined.
9541 * sparc-tdep.c (get_longjmp_target): Likewise.
9542
fe419ffc
RE
95432002-02-20 Richard Earnshaw <[email protected]>
9544
9545 * News: Add news about ARM and Multi-arch. Mention the new target
9546 arm*-*-netbsd*.
9547
5832ed7e
JB
95482002-02-19 Jim Blandy <[email protected]>
9549
9550 * stabsread.c (error_type_complaint): Improve error message.
9551
84563040
DJ
95522002-02-19 Daniel Jacobowitz <[email protected]>
9553
9554 * gdbserver/README: Update documentation.
9555 * gdbserver/configure.in: Update configury to match documentation.
9556 * gdbserver/Makefile.in: Likewise.
9557 * gdbserver/configure: Regenerated.
9558 * gdbserver/aclocal.m4: New file, generated by aclocal.
9559 * gdbserver/config.in: New file, generated by autoheader.
9560
375fd65b
RE
95612002-02-19 Richard Earnshaw <[email protected]>
9562
9563 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9564 armnbsd-nat.c.
9565
08216dd7
RE
95662002-02-19 Richard Earnshaw <[email protected]>
9567
9568 * arm-tdep.h (enum arm_float_model): New enum.
9569 (struct gdbarch_tdep): Add fp_model.
9570 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9571 up floating-point conversions until we know the floating-point model
9572 in use by the inferior. Don't complain about being unable to
9573 determine the ABI of the inferior when we don't have one.
9574 (arm_extract_return_value): Support different floating-point models.
9575 (arm_store_return_value): Likewise.
aaa38bb5 9576 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9577 ARM_FLOAT_SOFT.
9578 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9579
65d6d66a
PS
95802002-02-19 Peter Schauer <[email protected]>
9581
9582 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9583 of ``current_gdbarch''.
9584
47221191
RE
95852002-02-19 Richard Earnshaw <[email protected]>
9586
9587 * armnbsd-nat.c : ANSIfy all function declarations.
9588 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9589 (fetch_inferior_registers): Re-implement in terms of above.
9590 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9591 (store_inferior_registers): Re-implement in terms of above.
9592
fdf39c9a
RE
95932002-02-19 Richard Earnshaw <[email protected]>
9594
aaa38bb5 9595 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9596 kernel.
9597 * arm-linux-tdep.c: Likewise.
9598 * config/arm/tm-linux.h: Likewise.
9599
93247f88
RE
96002002-02-19 Richard Earnshaw <[email protected]>
9601
9602 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9603 * config/arm/nbsd.mt (TM_FILE): Delete.
9604 * config/arm/tm-nbsd.h: Delete.
9605
d7b486e7
RE
96062002-02-19 Richard Earnshaw <[email protected]>
9607
9608 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9609 Initialize CALL_DUMMY_LENGTH.
9610
41d39a95
RE
96112002-02-19 Richard Earnshaw <[email protected]>
9612
9613 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9614 function.
9615 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9616 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9617 defines one thing and that is incorrect for this port.
9618 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9619
e1195560
PM
96202002-02-18 Pierre Muller <[email protected]>
9621
9622 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9623
c1748f97
PM
96242002-02-18 Pierre Muller <[email protected]>
9625
9626 * win32-nat.c (display_selector): New function. Displays information
9627 about the information returned by GetThreadSelectorEntry API function.
9628 (display_selectors): New function. Displays the infomation of
9629 the selector given as argument, or of CS, DS ans FS selectors
9630 if no argument is given.
9631 ( _initialize_inftarg): Add "w32" as info prefix command.
9632 Add "info w32 selector" as command calling display_selectors.
9633
e41e6bbf
PM
96342002-02-19 Pierre Muller <[email protected]>
9635
9636 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9637 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9638 if not defined.
9639
0d3a9f48
RE
96402002-02-18 Richard Earnshaw <[email protected]>
9641
9642 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9643
3fb4b924
RE
96442002-02-18 Richard Earnshaw <[email protected]>
9645
9646 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9647 (arm_fix_call_dummy): Call it.
9648 (arm_call_dummy_breakpoint_offset): Delete.
9649 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9650 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9651
7f55af32
AC
96522002-02-18 Andrew Cagney <[email protected]>
9653
9654 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9655 Default to func_frame_chain_valid.
9656 * gdbarch.h, gdbarch.c: Re-generate.
9657 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9658
05f13b9c
EZ
96592002-02-18 Elena Zannoni <[email protected]>
9660
9661 * ppc-linux-nat.c: Update copyright.
9662 (fetch_register, store_register): Add tid parameter, don't compute
9663 tid here.
9664 (fetch_ppc_registers, store_ppc_registers): Add tid
9665 parameter. Pass it along to callees.
9666 (fetch_inferior_registers, store_inferior_registers): Compute tid
9667 here, and pass it to calleed functions.
9668 (fill_gregset, supply_fpregset): Clean up formatting.
9669
d7afb4c9
RE
96702002-02-18 Richard Earnshaw <[email protected]>
9671
9672 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9673 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9674
9df628e0
RE
96752002-02-18 Richard Earnshaw <[email protected]>
9676
9677 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9678 * gdbarch.c gdbarch.h: Regenerate.
9679 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9680 function.
9681 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9682 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9683 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9684
9685 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9686 * arm-tdep.c (arm_get_longjmp_target): New function.
9687 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9688 this to a positive value register arm_get_longjmp_target as the
9689 longjmp handler.
9690 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9691 (arm_linux_init_abi): Set up longjmp description in tdep.
9692 * armnbsd-nat.c (get_longjmp_target): Delete.
9693 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9694 description in tdep.
9695 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9696 (get_longjmp_target): Delete declaration.
9697 (GET_LONGJMP_TARGET): Delete.
9698 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9699 (GET_LONGJMP_TARGET): Delete.
9700
57bc8964
KB
97012002-02-17 Kevin Buettner <[email protected]>
9702
9703 From Peter Schauer <[email protected]>:
9704 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9705 of ``current_gdbarch''.
9706
83d31a92
TT
97072002-02-17 Tom Tromey <[email protected]>
9708
9709 * cli/cli-cmds.c (compare_strings): New function.
9710 (complete_command): Only print each unique item once.
9711 * completer.h (complete_line): Declare.
9712 * completer.c (complete_line): New function.
9713 (line_completion_function): Use it.
9714
17ef5d92
AC
97152002-02-16 Andrew Cagney <[email protected]>
9716
9717 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9718 * gdbarch.h, gdbarch.c: Re-generate.
9719
491b8946
DJ
97202002-02-16 Daniel Jacobowitz <[email protected]>
9721
9722 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9723
97242002-02-16 Daniel Jacobowitz <[email protected]>
9725
9726 From Peter Schauer <[email protected]>:
9727 * valops.c (value_arg_coerce): Don't take the address of a reference
9728 to convert an argument to a reference.
9729
dfe7f3ac
CF
97302002-02-15 Christopher Faylor <[email protected]>
9731
9732 * win32-nat.c (get_image_name): New function.
9733 (handle_load_dll): Use get_image_name function.
9734 (get_child_debug_event): Avoid registering debug events until possibly
9735 execed process is started.
9736 (child_create_inferior): Allow invocation via shell so that command
9737 line redirection, etc. works ok.
9738 (_initialize_inftarg): Add new command: "set shell" to control whether
9739 a shell is used to start a process.
9740
1d33e73a
DJ
97412002-02-15 Daniel Jacobowitz <[email protected]>
9742
9743 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9744 instead of find_register_by_number.
9745 (cannot_store_register): Likewise.
9746
48cd0caa
PM
97472002-02-14 Pierre Muller <[email protected]>
9748
aaa38bb5 9749 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9750 fprintf_unfiltered (gdb_stderr, ...).
9751
8656e7d8
DJ
97522002-02-15 Daniel Jacobowitz <[email protected]>
9753
9754 * gdbserver/gdbserver.1: Document --attach.
9755
66e810cd
RE
97562002-02-15 Richard Earnshaw <[email protected]>
9757
9758 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9759 descriptions.
9760 * arm-tdep.c (arm_default_arm_le_breakpoint)
9761 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9762 (arm_default_thumb_be_breakpoint): New. Initialize them from
9763 traditional breakpoint defines.
9764 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9765 (arm_gdbarch_init): Initialize new breakpoint variables.
9766 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9767 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9768 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9769 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9770 code out to ...
9771 (arm_netbsd_init_abi_common): ... here; new function.
9772 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9773 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9774 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9775 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9776
97e03143
RE
97772002-02-15 Richard Earnshaw <[email protected]>
9778
9779 * arm-tdep.h (enum arm_abi): New enum.
9780 (struct gdbarch_tdep): New structure.
9781 (LOWEST_PC): Provide a default.
9782 (arm_gdbarch_register_os_abi): Declare new function.
9783 * arm-tdep.c (arm_abi_names): New array.
9784 (process_note_abi_tag_sections): New function.
9785 (get_elfosabi): New function.
9786 (arm_gdbarch_register_os_abi): New function.
9787 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9788 support for that ABI has been built in, then call the appropriate
9789 configuration routine. Use gdbarch_num_regs() to get the number
9790 of registers.
9791 (arm_dump_tdep): New function.
9792 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9793 place-holder functions.
9794 (_initialize_arm_tdep): Register them.
9795 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9796
9797 * armnbsd-tdep.c: New file.
9798 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9799 * config/arm/nbsd.mt (TDEPFILES): Add it.
9800 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9801
9802 * armnbsd-nat.c: Include regcache.h.
9803 * Makefile.in (armnbsd-nat.o): Update dependency list.
9804
9805 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9806
ad68be46
DJ
98072002-02-14 Daniel Jacobowitz <[email protected]>
9808
9809 * gdbserver/Makefile.in: Fix typos in target rules.
9810
003d6d1d
DJ
98112002-02-14 Daniel Jacobowitz <[email protected]>
9812
aaa38bb5 9813 Fix part of PR gdb/267.
003d6d1d
DJ
9814 * linespec.c (find_methods): Handle constructors specially for now.
9815
6b230f1b
CV
98162002-02-14 Corinna Vinschen <[email protected]>
9817
9818 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9819 handling.
9820 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9821 standard_coerce_float_to_double().
9822
1ea98d12
CF
98232002-02-14 Christopher Faylor <[email protected]>
9824
9825 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9826 GDBINIT_FILENAME.
9827
dd47e6fd
EZ
98282002-02-14 Elena Zannoni <[email protected]>
9829
9830 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9831 find_variant_by_name, because it confuses the multiarch
9832 framework. Return NULL if there isn't an architecture with the
9833 user supplied name, instead of forcing a different one without
9834 recording the change with the multiarch machinery.
9835 (find_variant_by_name): Delete.
9836
d7e39b9e
PS
98372002-02-14 Peter Schauer <[email protected]>
9838
9839 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9840 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9841
76e42a4f
MH
98422002-02-13 Martin M. Hunt <[email protected]>
9843
aaa38bb5 9844 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9845 print_frame_info_listing_hook, set current_source_symtab.
9846
0a30fbc4
DJ
98472002-02-14 Daniel Jacobowitz <[email protected]>
9848
9849 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9850 and remove unused $(INCLUDE_DIR).
9851 Add regcache.c to OBS.
9852 Add generated register protocol files to clean target.
9853 Update dependencies for new objects, obsolete old target code.
9854
9855 * gdbserver/linux-low.c: Remove all platform-specific code to
9856 new files. Remove various dead code. Update to use regcache
9857 functionality.
9858 * gdbserver/remote-utils.c (fromhex): Add return statement
9859 to quiet warning.
9860 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9861 constant.
9862 (input_interrupt): Add integer parameter to match prototype
9863 of a signal handler.
9864 (outreg): Use register_data ().
9865 (prepare_resume_reply): Use gdbserver_expedite_regs.
9866 * gdbserver/server.c (main): Dynamically allocate own_buf because
9867 PBUFSIZ is no longer constant. Use registers_to_string () and
9868 registers_from_string ().
9869 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9870 for error (), fatal (), and warning (). Update definition of
9871 PBUFSIZ to use regcache functionality. Add include guard.
9872 * gdbserver/utils.c (fatal): Add missing ``const''.
9873 (warning): New function.
9874
9875 * regformats/regdat.sh: Include "regcache.h" in generated files.
9876 Provide init_registers () function.
9877 * regformats/regdef.h: Add prototype for set_register_cache ().
9878 Add include guard.
9879
9880 * gdbserver/linux-arm-low.c: New file.
9881 * gdbserver/linux-i386-low.c: New file.
9882 * gdbserver/linux-ia64-low.c: New file.
9883 * gdbserver/linux-m68k-low.c: New file.
9884 * gdbserver/linux-mips-low.c: New file.
9885 * gdbserver/linux-ppc-low.c: New file.
9886 * gdbserver/linux-sh-low.c: New file.
9887
9888 * gdbserver/regcache.c: New file.
9889 * gdbserver/regcache.h: New file.
9890
9891 * gdbserver/low-linux.c: Removed obsolete file.
9892
4cc841d0
DJ
98932002-02-14 Daniel Jacobowitz <[email protected]>
9894
9895 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9896 * config/i386/linux.mt: Likewise.
9897 * config/ia64/linux.mt: Likewise.
9898 * config/m68k/linux.mh: Likewise.
9899 * config/powerpc/linux.mh: Likewise.
9900 * config/mips/linux.mt: Likewise.
9901
9902 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9903
9904 * config/i386/i386lynx.mh: Mark gdbserver variables
9905 as (currently) obsolete for this target.
9906 * config/i386/nbsd.mt: Likewise.
9907 * config/i386/nbsdelf.mt: Likewise.
9908 * config/m32r/m32r.mt: Likewise.
9909 * config/m68k/m68klynx.mh: Likewise.
9910 * config/m68k/nbsd.mt: Likewise.
9911 * config/m68k/sun3os4.mh: Likewise.
9912 * config/mips/vr5000.mt: Likewise.
9913 * config/ns32k/nbsd.mt: Likewise.
9914 * config/pa/hppabsd.mh: Likewise.
9915 * config/pa/hppaosf.mh: Likewise.
9916 * config/powerpc/nbsd.mt: Likewise.
9917 * config/rs6000/rs6000lynx.mh: Likewise.
9918 * config/s390/s390.mt: Likewise.
9919 * config/s390/s390x.mt: Likewise.
9920 * config/sparc/sparclynx.mh: Likewise.
9921 * config/sparc/sun4os4.mh: Likewise.
9922 * config/i386/x86-64linux.mt: Likewise.
9923 * config/sparc/linux.mh: Likewise.
9924
a85f51e7
DJ
99252002-02-14 Daniel Jacobowitz <[email protected]>
9926
9927 * configure.tgt: Configure gdbserver only for known working
9928 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9929 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9930 SUBDIRS if it is configured. Update comment for ${nativefile}.
9931 * configure: Regenerated.
9932
65554fef
MS
99332002-02-13 Michael Snyder <[email protected]>
9934
670a52db
MS
9935 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9936
6dbdc4a3
MS
9937 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9938 (default_gcore_mach): Just return 0, work around a problem in bfd.
9939 (default_gcore_target): OK to return NULL if exec_bfd is null.
9940 (make_mem_sec): Use a cast, avoid a warning.
9941
9942 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 9943 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
9944 sizeof (host pointer) != sizeof (target pointer)).
9945 (procfs_make_note_section): Avoid overflow in psargs string.
9946
aaa38bb5 9947 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
9948 implementation return an error.
9949
99502002-02-13 Rodney Brown <[email protected]>
9951
9952 * procfs.c (procfs_make_note_section): Provide a default definition
9953 (for alpha-dec-osf4.0f). Fix typos.
9954
1e4d76e7
EZ
99552002-02-13 Elena Zannoni <[email protected]>
9956
9957 * linux-proc.c: Add include of regcache.h.
9958 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9959
b6d1a1d5
AC
99602002-02-13 Andrew Cagney <[email protected]>
9961
9962 From 2002-01-18 Greg McGary <[email protected]>:
aaa38bb5
AJ
9963 * memattr.c (create_mem_region): Disallow useless empty region.
9964 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 9965 non-overlapping.
b6d1a1d5 9966
6c6ea35e
MC
99672002-02-13 Michael Chastain <[email protected]>
9968
9969 * defs.h: Kill CONST_PTR.
9970 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9971 * c-lang.c (c_builtin_types): Likewise.
9972 * ch-lang.c (ch_builtin_types): Likewise.
9973 * f-lang.c (f_builtin_types): Likewise.
9974 * language.c (unknown_builtin_types): Likewise.
9975 * m2-lang.c (m2_builtin_types): Likewise.
9976 * p-lang.c (pascal_builtin_types): Likewise.
9977 * scm-lang.c (c_builtin_types): Likewise.
9978
3e0b0f48
KS
99792002-02-13 Keith Seitz <[email protected]>
9980
9981 * arm-tdep.h (arm_get_next_pc): Add declaration.
9982
67255d04
RE
99832002-02-13 Richard Earnshaw <[email protected]>
9984
9985 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9986 with other related struct-returning functions.
9987 (arm_extract_struct_value_address): New function.
9988 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9989 initialize float_format, double_format and long_double_format as
9990 appropriate to the endianness of the target.
9991 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9992 (arm_use_struct_convention): Delete declaration.
9993 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9994
079777f6
KS
99952002-02-13 Keith Seitz <[email protected]>
9996
9997 * defs.h (core_addr_to_string_nz): New function.
9998
34588f23
MK
99992002-02-13 Mark Kettenis <[email protected]>
10000
10001 Apply missing bits of 2002-01-15 patch.
10002 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10003 (fill_fpregset): Use i387_fill_fsave.
10004
49b563f9
KS
100052002-02-12 Keith Seitz <[email protected]>
10006
49b563f9
KS
10007 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10008 (core_addr_to_string_nz): New function.
10009
aeb98c60
RE
100102002-02-11 Richard Earnshaw <[email protected]>
10011
10012 * arm-linux-nat.c: Really include arm-tdep.h.
10013 * config/arm/tm-linux.h (struct type, struct value): Declare.
10014
65554fef
MS
100152002-02-11 Michael Snyder <[email protected]>
10016
10017 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10018 (gcore section): Ifdef for Solaris and Unixware only.
10019 (procfs_do_thread_registers): Unixware needs one lwpstatus
10020 per thread (not one prstatus or pstatus).
10021 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10022 not over all gdb threads. For unixware, call elfcore_write_pstatus
10023 once before iterating over threads.
10024
34e8f22d
RE
100252002-02-11 Richard Earnshaw <[email protected]>
10026
10027 * arm-tdep.h: New file.
10028 * arm-tdep.c: Include arm-tdep.h.
10029 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10030 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10031 (arm_print_float_info, arm_register_type, convert_to_extended)
10032 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10033 (arm_extract_return_value, arm_register_name): Make static.
10034 (arm_software_single_step): Similarly. Fix types in declaration.
10035 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10036 (arm_store_return_value, arm_store_struct_return): New functions.
10037 (arm_gdbarch_init): Register the above functions. Also register
10038 call_dummy_start_offset, sizeof_call_dummy_words,
10039 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10040 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 10041 max_register_virtual_size, register_size. Set up
34e8f22d
RE
10042 prologue_cache.saved_regs here, rather than ...
10043 (_initialize_arm_tdep): ... here.
10044 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10045 declarations.
10046 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10047 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10048 (arm_print_float_info, arm_register_type, convert_to_extended)
10049 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10050 (arm_extract_return_value, arm_register_name): Delete declarations.
10051 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10052 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10053 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10054 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10055 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10056 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10057 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10058 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10059 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10060 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10061 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10062 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10063 interface.
10064 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10065 * remote-rdi.c remote-rdp.c: Likewise.
10066 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10067 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10068 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10069 definition.
10070
10071 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10072 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10073 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10074 from non-ARM_ prefixed definitions.
10075 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10076 all uses of above.
10077 * remote-rdi.c remote-rdp.c: Likewise.
10078 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10079
148754e5
RE
100802002-02-11 Richard Earnshaw <[email protected]>
10081
10082 * arm-tdep.c (arm_frameless_function_invocation)
10083 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10084 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10085 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10086 (arm_pop_frame, arm_get_next_pc): Make static.
10087 (arm_gdbarch_init): Register above in gdbarch structure.
10088 (arm_read_fp): Renamed from arm_target_read_fp.
10089 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10090 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10091 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10092 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10093 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10094 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10095 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
10096 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10097 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10098 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10099 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 10100
434d2d4f
DJ
101012002-02-10 Daniel Jacobowitz <[email protected]>
10102
10103 * symtab.c (compare_search_syms): New function.
10104 (sort_search_symbols): New function.
10105 (search_symbols): Sort symbols after searching rather than
10106 before.
10107
55241689
AC
101082002-02-10 Andrew Cagney <[email protected]>
10109
10110 * NEWS: Linux -> GNU/Linux.
10111
028c194b
AC
101122002-02-10 Andrew Cagney <[email protected]>
10113
10114 * gdbarch.sh: For for level one methods, disallow a definition
10115 when partially multi-arched. Add comments explaining rationale.
10116 * gdbarch.h: Re-generate.
10117
6acf50cd
AC
101182002-02-10 Andrew Cagney <[email protected]>
10119
10120 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10121 multi-arch partial.
aaa38bb5 10122
50248794
AC
101232002-02-10 Andrew Cagney <[email protected]>
10124
10125 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10126 field. Use diff -u.
10127 * gdbarch.c: Re-generate.
10128
c30e0066
AC
101292002-02-10 Andrew Cagney <[email protected]>
10130
9b56c5f3 10131 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
10132 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10133 partial.
10134
6e6d6484
AC
101352002-02-10 Andrew Cagney <[email protected]>
10136
10137 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10138 multi-arch partial.
10139 (PUSH_ARGUMENTS): Switch to using predefault.
10140 * gdbarch.c: Regenerate.
10141
c203844d
AC
101422002-02-10 Andrew Cagney <[email protected]>
10143
10144 * valops.c (PUSH_ARGUMENTS): Delete definition.
10145 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10146 partial. Default to default_push_arguments.
10147 * gdbarch.h, gdbarch.c: Regenerate.
10148
b5a2688f
AC
101492002-02-09 Andrew Cagney <[email protected]>
10150
10151 * defs.h (throw_exception): Rename return_to_top_level. Update
10152 comments.
10153 * utils.c (error_stream, internal_verror, quit): Ditto.
10154 * top.c (throw_exception, catcher): Ditto.
10155 * sparclet-rom.c (sparclet_load): Ditto.
10156 * remote.c (interrupt_query, minitelnet): Ditto.
10157 * remote-sds.c (interrupt_query): Ditto.
10158 * remote-mips.c (mips_error, mips_kill): Ditto.
10159 * ocd.c (interrupt_query): Ditto.
10160 * monitor.c (monitor_interrupt_query): Ditto.
10161 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10162 * target.h: Update comment.
aaa38bb5 10163
b5a2688f 10164 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 10165
2fa5c1e0
AC
101662002-02-09 Andrew Cagney <[email protected]>
10167
10168 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10169 default_double_format.
10170 * gdbarch.h, gdbarch.c: Re-generate.
10171 * findvar.c (floatformat_unknown): Delete variable definition.
10172 * doublest.h (floatformat_unknown): Delete variable declaration.
10173
da966255
JB
101742002-02-09 Jim Blandy <[email protected]>
10175
10176 * stabsread.c (read_type): Add code to parse Sun's syntax for
10177 prototyped function types.
10178
123a4891
AC
101792002-02-09 Andrew Cagney <[email protected]>
10180
10181 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10182 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10183
fb39c8f3
PS
101842002-02-09 Peter Schauer <[email protected]>
10185
10186 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10187 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10188 now _initialize_xcoffsolib gets called again and overrides the
10189 commands from solib.c in a native configuration.
10190
0b87a11d
MK
101912002-02-09 Mark Kettenis <[email protected]>
10192
10193 * doublest.c (store_typed_floating): Don't try to return a value.
10194 Fixes PR gdb/290.
10195
bdc2fc72
JB
101962002-02-08 Jim Blandy <[email protected]>
10197
10198 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10199 is prototyped and has no arguments, print its argument list as
10200 `(void)'.
10201
da69bbcf
CD
102022002-02-08 Chris Demetriou <[email protected]>
10203
10204 * MAINTAINERS (write-after-approval): Add myself.
10205 (paper-trail): I've escaped!
aaa38bb5 10206
b69571f5
CF
102072002-02-08 Christopher Faylor <[email protected]>
10208
10209 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10210 changes.
10211 (_initialize_check_for_gdb_ini): Ditto.
10212
f6871398
MH
102132002-02-08 Martin M. Hunt <[email protected]>
10214
10215 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10216 xaprintf -> xasprintf.
10217
4e52d31c
PM
102182002-02-08 Pierre Muller <[email protected]>
10219
10220 * win32-nat.c: Remove use of printf and sprintf functions.
10221
39bbf761
RE
102222002-02-08 Richard Earnshaw <[email protected]>
10223
10224 * arm-tdep.c (arm_frame_chain_valid): Make static.
10225 (arm_push_arguments): Likewise.
10226 (arm_gdbarch_init): New function.
10227 (_initialize_arm_tdep): Call it.
10228 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10229 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10230 (FRAME_CHAIN_VALID): Delete.
10231 (arm_frame_chain_valid): Delete declaration.
10232 (PUSH_ARGUMENTS): Delete.
10233 (arm_push_arguments): Delete declaration.
10234 (CALL_DUMMY_P): Delete.
10235
9c9532c9
CV
102362002-02-08 Andrew Cagney <[email protected]>
10237 Corinna Vinschen <[email protected]>
10238
10239 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10240 on builtin float types.
10241
4e8f7a8b
DJ
102422002-02-08 Daniel Jacobowitz <[email protected]>
10243
10244 * utils.c: Include <curses.h> before "bfd.h".
10245 * tui/tui-hooks.c: Likewise.
10246 * tui/tui.c: Likewise.
10247 * tui/tuiCommand.c: Likewise.
10248 * tui/tuiData.c: Likewise.
10249 * tui/tuiDataWin.c: Likewise.
10250 * tui/tuiDisassem.c: Likewise.
10251 * tui/tuiGeneralWin.c: Likewise.
10252 * tui/tuiIO.c: Likewise.
10253 * tui/tuiLayout.c: Likewise.
10254 * tui/tuiRegs.c: Likewise.
10255 * tui/tuiSource.c: Likewise.
10256 * tui/tuiSourceWin.c: Likewise.
10257 * tui/tuiStack.c: Likewise.
10258 * tui/tuiWin.c: Likewise.
10259
cd4bffcf
EZ
102602002-02-07 Elena Zannoni <[email protected]>
10261
10262 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10263 to include space for pseudoregs as well. Update loops accordingly.
10264 (sh_fp_frame_init_saved_regs): Ditto.
10265 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10266
26806ce2
AC
102672002-02-07 Andrew Cagney <[email protected]>
10268
10269 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10270 Add Richard Earnshaw to Arm maintainers.
10271
97fdab62
AC
102722002-02-07 Andrew Cagney <[email protected]>
10273
a6b98203
AC
10274 * defs.h (warning_begin): Delete declaration.
10275
97fdab62
AC
10276 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10277 Delete macro.
10278
78b29b40
MS
102792002-02-07 Michael Snyder <[email protected]>
10280
aaa38bb5 10281 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
10282 Logic bug, remove misplaced else.
10283
d8849953
KD
102842002-02-07 Klee Dienes <[email protected]>
10285
10286 * fork-inferior.c (fork_inferior): Add '!' to the list of
10287 characters that need to be quoted when building a string for the
10288 shell. Quote '!' specifically with a backslash, since CSH chokes
10289 when trying to evaluate "str!str".
aaa38bb5 10290
095778a0
NC
102912002-02-06 Nick Clifton <[email protected]>
10292
10293 * rdi-share/host.h: Only provide a typedef for bool if it is not
10294 defined.
10295
1900040c
MS
102962002-02-04 Michael Snyder <[email protected]>
10297
10298 * breakpoint.h (enum bptype): Add new overlay event bp type.
10299 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 10300
1900040c
MS
10301 * breakpoint.c (create_internal_breakpoint): New function.
10302 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10303 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10304 (create_thread_event_breakpoint): Ditto.
10305 (create_solib_event_breakpoint): Ditto.
10306 (create_overlay_event_breakpoint): New function.
10307 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10308 (update_breakpoints_after_exec): Delete and re-initialize
10309 overlay event breakpoints after an exec. Add FIXME comment
10310 about longjmp breakpoint.
10311 (print_it_typical): Ignore overlay event breakpoints.
10312 (print_one_breakpoint): Ditto.
10313 (mention): Ditto.
10314 (bpstat_what): Do not stop for overlay event breakpoints.
10315 (delete_breakpoint): Don't delete overlay event breakpoints.
10316 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10317 (breakpoint_re_set): Re-create overlay event breakpoint.
10318
10319 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10320 (overlay_manual_command): Disable overlay breakpoints.
10321 (overlay_off_command): Disable overlay breakpoints.
10322
082fc60d
RE
103232002-02-06 Richard Earnshaw <[email protected]>
10324
10325 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10326 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10327 to here from config/tm-arm.h.
10328 (coff_sym_is_thumb): Make static.
10329 (arm_elf_make_msymbol_special): New function.
10330 (arm_coff_make_msymbol_special): New function.
10331 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10332 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10333 (coff_sym_is_thumb): Delete declaration.
10334 (arm_elf_make_msymbol_special): Declare.
10335 (arm_coff_make_msymbol_special): Declare.
10336 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10337 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10338
039c5766
RE
103392002-02-06 Richard Earnshaw <[email protected]>
10340
10341 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10342
103432002-02-06 Richard Earnshaw <[email protected]>
10344
10345 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10346 * gdbarch.c gdbarch.h: Regenerate.
10347 * arch-utils.c (default_print_float_info): New function.
10348 * arch-utils.h (default_print_float_info): Prototype it.
10349 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10350 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10351 (PRINT_FLOAT_INFO): Document it.
10352
10353 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10354 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10355 (PRINT_FLOAT_INFO): Define.
10356
58fa08f0
PM
103572002-02-06 Pierre Muller <[email protected]>
10358
aaa38bb5 10359 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10360 Add typecast to sprintf argument to suppress a warning.
10361
7393af7c
PM
103622002-02-05 Pierre Muller <[email protected]>
10363
58fa08f0 10364 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10365 to allow easier handling of pass state.
10366 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10367 that gives exception name and address.
10368 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10369 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10370 exceptions added.
aaa38bb5
AJ
10371 (child_continue): Correctly report continue_status.
10372 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10373 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10374 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10375 the exception should be passed to debuggee or not.
10376
6af4589c
MS
103772002-02-05 Michael Snyder <[email protected]>
10378
10379 * regcache.c (fetch_register): Call target_fetch_register
10380 only if we don't call FETCH_PSEUDO_REGISTER.
10381 (store_register): Call target_store_register only if we
10382 don't call STORE_PSEUDO_REGISTER.
10383
a2cf933a
EZ
103842002-02-05 Elena Zannoni <[email protected]>
10385
10386 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10387 ELF_MAKE_MSYMBOL_SPECIAL.
10388 * gdbarch.c, gdbarch.h: Regenerate.
10389 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10390 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10391 * elfread.c (elf_symtab_read): Compile use of
10392 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10393 multiarched.
10394 * coffread.c (coff_symtab_read): Ditto, for
10395 COFF_MAKE_MSYMBOL_SPECIAL.
10396
6bb7be43
JB
103972002-02-05 Jim Blandy <[email protected]>
10398
10399 * solib-svr4.c (svr4_truncate_ptr): New function.
10400 (svr4_relocate_section_addresses): Do the address arithmetic with
10401 the appropriate truncation for target addresses, even when
10402 CORE_ADDR is larger than a target address.
10403
e18651ec
DJ
104042002-02-05 Daniel Jacobowitz <[email protected]>
10405
10406 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10407 to (int *).
10408
6b2725be
DJ
104092002-02-05 Daniel Jacobowitz <[email protected]>
10410
10411 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10412 code.
10413
fca9e603
DJ
104142002-02-05 Daniel Jacobowitz <[email protected]>
10415
10416 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10417
6c537a52
DJ
104182002-02-05 Daniel Jacobowitz <[email protected]>
10419
10420 * gdbserver/linux-low.c: Remove unused include files.
10421
d844cde6
DJ
104222002-02-05 Daniel Jacobowitz <[email protected]>
10423
10424 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10425 (read_inferior_memory): Use it.
10426 (write_inferior_memory): Likewise.
10427
d07c63e7
DJ
104282002-02-05 Daniel Jacobowitz <[email protected]>
10429
10430 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10431 grubbing through sys_errlist.
10432
da6d8c04
DJ
104332002-02-05 Daniel Jacobowitz <[email protected]>
10434
10435 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10436
5b421780
PM
104372002-02-04 Pierre Muller <[email protected]>
10438 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10439
9f60d481
AC
104402002-02-04 Andrew Cagney <[email protected]>
10441
10442 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10443 (do_sfunc, set_cmd_sfunc): New functions.
10444
10445 * command.h (struct cmd_list_element): Add field func.
10446 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10447 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10448 * cli/cli-decode.h: Ditto.
10449
10450 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10451 (help_all, help_cmd_list): Ditto.
10452 (find_cmd, complete_on_cmdlist): Ditto.
10453 * top.c (execute_command): Ditto.
10454
10455 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10456 function.sfunc.
10457
10458 * infcmd.c (notice_args_read): Fix function signature.
10459
10460 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10461 * cli/cli-decode.c (add_set_cmd): Ditto.
10462 * utils.c (initialize_utils): Ditto.
10463 * maint.c (_initialize_maint_cmds): Ditto.
10464 * infrun.c (_initialize_infrun): Ditto.
10465 * demangle.c (_initialize_demangler): Ditto.
10466 * remote.c (add_packet_config_cmd): Ditto.
10467 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10468 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10469 * proc-api.c (_initialize_proc_api): Ditto.
10470 * kod.c (_initialize_kod): Ditto.
10471 * valprint.c (_initialize_valprint): Ditto.
10472 * top.c (init_main): Ditto.
10473 * infcmd.c (_initialize_infcmd): Ditto.
10474 * corefile.c (_initialize_core): Ditto.
10475 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10476 * arch-utils.c (initialize_current_architecture): Ditto.
10477 (_initialize_gdbarch_utils): Ditto.
10478 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10479
10480 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10481 * wince.c (_initialize_inftarg): Ditto.
10482 * symfile.c (_initialize_symfile): Ditto.
10483 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10484 * language.c (_initialize_language): Ditto.
10485 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10486
f9ba0717
MS
104872002-02-04 Michael Snyder <[email protected]>
10488
10489 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10490
0c74b2a7
DJ
104912002-02-04 Daniel Jacobowitz <[email protected]>
10492
10493 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10494 Add rules for building the register data files.
10495
c638789f
DJ
104962002-02-04 Daniel Jacobowitz <[email protected]>
10497
10498 * regformats/regdat.sh: Add braces to the definition of
10499 expedite_regs_${arch}.
10500
db253027
DJ
105012002-02-04 Daniel Jacobowitz <[email protected]>
10502
10503 * regformats/regdef.h (struct reg): Add comment describing the
10504 requirements for offset and size fields.
10505
206be19c
AS
105062002-02-04 Andreas Schwab <[email protected]>
10507
10508 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10509 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10510
181c1381
RE
105112002-02-04 Richard Earnshaw <[email protected]>
10512
10513 * gdbarch.sh (copyright): Update years in generated header.
10514 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10515 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10516 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10517 * dbxread.c: Likewise.
10518 * dwarfread.c: Likewise.
10519 * elfread.c: Likewise.
10520 * somread.c: Likewise.
10521
10522 * arm-tdep.c (arm_smash_text_address): New function.
10523 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10524
fa4ba8da
PM
105252002-02-04 Pierre Muller <[email protected]>
10526
10527 Add support for hardware watchpoints on win32 native.
aaa38bb5 10528 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10529 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10530 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10531 of debug registers.
10532 (debug_registers_changed): New variable. Reflects when debug registers
10533 are changed and need to be written to inferior.
aaa38bb5 10534 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10535 was set, used when new threads are created.
10536 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10537 i386-nat code.
10538 (thread_rec): Set dr array if id is the thread of current_event .
10539 (child_continue, child_resume): Change the debug registers for all
10540 threads if debug_registers_changed.
10541 (child_add_thread): Change the debug registers if debug_registers_used.
10542 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10543 Link nm.h to new nm-cygwin.h file.
10544 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10545 of hardware registers.
10546
a73c86fb
AC
105472002-02-03 Andrew Cagney <[email protected]>
10548
10549 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10550 Restore behavour broken by 2002-01-20 Andrew Cagney
10551 <[email protected]> IEEE_FLOAT removal.
10552
acf5ed49
DJ
105532002-02-03 Daniel Jacobowitz <[email protected]>
10554
10555 * c-valprint.c (c_val_print): Pass a proper valaddr to
10556 cp_print_class_method.
10557 * valops.c (search_struct_method): If there is only one method
10558 and args is NULL, return that method.
10559
493d28d5
DJ
105602002-02-03 Daniel Jacobowitz <[email protected]>
10561
10562 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10563 accessing tag_name directly.
10564
7495dfdb
DJ
105652002-02-03 Daniel Jacobowitz <[email protected]>
10566
10567 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10568 of accessing tag_name directly.
10569
dd6bda65
DJ
105702002-02-03 Daniel Jacobowitz <[email protected]>
10571
10572 PR gdb/280
10573 * gdbtypes.c (replace_type): New function.
10574 * gdbtypes.h (replace_type): Add prototype.
10575 * stabsread.c (read_type): Use replace_type.
10576
88fe217c
RE
105772002-02-03 Richard Earnshaw <[email protected]>
10578
10579 * Makefile.in (memattr.o): Add missing dependencies rule.
10580
e5d66720
PS
105812002-02-03 Peter Schauer <[email protected]>
10582
10583 * breakpoint.c (break_at_finish_command): Really export.
10584 (break_at_finish_at_depth_command): Ditto.
10585 (tbreak_at_finish_command): Ditto.
10586 * hppa-tdep.c: Include completer.h.
10587 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10588 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10589
fffee0be
AC
105902002-02-01 Andrew Cagney <[email protected]>
10591
10592 * utils.c (do_write): New function.
10593 (error_stream): Rewrite combining the code from error_begin and
10594 verror.
10595 (verror): Rewrite using error_stream.
10596 (error_begin): Delete function.
10597
255e7dbf
AC
105982002-02-01 Andrew Cagney <[email protected]>
10599
10600 * utils.c (error_begin): Make static.
10601 * defs.h (error_begin): Delete declaration.
10602
10603 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10604 (decode_line_1): Use cplusplus_error instead of error_begin,
10605 cplusplus_hint and return_to_top_level.
10606 * coffread.c (coff_symfile_read): Use error instead of error_begin
10607 and return_to_top_level.
10608 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10609
ddfe3c15
AC
106102002-02-01 Andrew Cagney <[email protected]>
10611
10612 * language.h (type_error, range_error): Make string parameter
10613 constant.
10614 * language.c (warning_pre_print): Delete extern declaration.
10615 * dwarfread.c (warning_pre_print): Ditto.
10616 * language.c (type_error, range_error): Rewrite to use verror and
10617 vwarning instead of warning_begin.
10618
03ac34d5
MS
106192002-02-01 Michael Snyder <[email protected]>
10620
261c4ca2
MS
10621 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10622 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10623
e00d1dc8
AC
106242002-02-01 Andrew Cagney <[email protected]>
10625
10626 * command.h (NO_FUNCTION): Delete macro.
10627 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10628 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10629 * tracepoint.c (_initialize_tracepoint): Ditto.
10630 * cli/cli-decode.c (add_set_cmd): Ditto.
10631 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10632
76b79d6e
DJ
106332002-02-01 Daniel Jacobowitz <[email protected]>
10634
10635 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10636 Update ``this'' pointer when calling virtual functions.
10637
799f9e91
MS
106382002-02-01 Michael Snyder <[email protected]>
10639
c7bd442c 10640 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10641 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10642
3cf384d4
DJ
106432002-02-01 Daniel Jacobowitz <[email protected]>
10644
10645 * regformats/reg-arm.dat: New file.
10646 * regformats/reg-i386.dat: New file.
10647 * regformats/reg-ia64.dat: New file.
10648 * regformats/reg-m68k.dat: New file.
10649 * regformats/reg-mips.dat: New file.
10650 * regformats/reg-ppc.dat: New file.
10651 * regformats/reg-sh.dat: New file.
10652 * regformats/regdef.h: New file.
10653 * regformats/regdat.sh: New file.
10654
0defa245
RE
106552002-02-01 Richard Earnshaw <[email protected]>
10656
10657 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10658 (arm_frame_args_address, arm_frame_locals_address): New functions.
10659 (arm_frame_num_args): New function.
10660 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10661 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10662 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10663
405f26e6
MS
106642002-01-31 Michael Snyder <[email protected]>
10665
502fd408
MS
10666 * breakpoint.c (break_at_finish_command): Export.
10667 (break_at_finish_at_depth_command): Export.
10668 (tbreak_at_finish_command): Export.
d6020d45 10669 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 10670 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 10671 "txbreak" commands, which are HPPA specific.
502fd408 10672
7d35e135
MS
10673 * printcmd.c (disassemble_command): Remove an ancient
10674 artifact of an old merge.
10675
aaa38bb5 10676 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10677 Define enum constant values for overlay mode.
10678 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10679 (overlay_is_mapped, overlay_auto_command,
10680 overlay_manual_command): Ditto.
d874f1e2 10681
aaa38bb5
AJ
10682 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10683 breakpoint_here_p, breakpoint_inserted_here_p,
10684 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10685 describe_other_breakpoints, check_duplicates, clear_command):
10686 Coding standard fixes.
10687
8add0441 10688 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10689 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10690 code: check bfd SEC_READONLY flag for section.
10691
e351066e
AC
106922002-01-31 Andrew Cagney <[email protected]>
10693
7d35e135 10694 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10695
8a48e967
DJ
106962002-01-30 Daniel Jacobowitz <[email protected]>
10697
10698 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10699 data symbols, since we search based on textlow and texthigh.
10700 (find_pc_sect_symtab): Likewise.
10701
f5a96129
AC
107022002-01-30 Andrew Cagney <[email protected]>
10703
10704 * defs.h (vwarning): Declare.
f5a96129
AC
10705 * utils.c (vwarning): New function.
10706 (warning): Call vwarning.
10707 (warning_begin): Delete function.
10708
10709 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10710 the warning message.
10711 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10712 warning_begin.
10713
cefd4ef5
MS
107142002-01-30 Michael Snyder <[email protected]>
10715
1a703748
MS
10716 * NEWS: Mention "set trust-readonly-sections" command.
10717 Mention generate-core-file command.
cefd4ef5 10718
3a11626d
MS
107192002-01-15 Michael Snyder <[email protected]>
10720
10721 * target.c: New command, "set trust-readonly-sections on".
10722 (do_xfer_memory): Honor the suggestion to trust readonly sections
10723 by reading them from the object file instead of from the target.
10724 (initialize_targets): Register command "set trust-readonly-sections".
10725
d1c7e53b
AC
107262002-01-29 Andrew Cagney <[email protected]>
10727
10728 * parse.c (target_map_name_to_register): Simplify, search regs and
10729 pseudo-regs using a single loop.
10730
e2c9a72c
AC
107312002-01-30 Andrew Cagney <[email protected]>
10732
10733 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10734
69824b4e
MK
107352002-01-15 Rodney Brown <[email protected]>
10736
10737 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10738 * config/i386/i386v42mp.mh: Add i387-nat.o .
10739 * i386v4-nat.c: Include i387-nat.h.
10740 (supply_fpregset): Use i387_supply_fsave.
10741 (fill_fpregset): Use i387_fill_fsave.
10742
6eb69eab
RE
107432002-01-30 Richard Earnshaw <[email protected]>
10744
10745 * arm-tdep.c (arm_call_dummy_words): Define.
10746 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10747 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10748 (CALL_DUMMY_WORDS): Define.
10749 (arm_call_dummy_words): Declare.
10750 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10751 (arm_linux_call_dummy_words): Declare.
10752
9852326a
AS
107532002-01-30 Andreas Schwab <[email protected]>
10754
10755 * m68klinux-nat.c: Fix last change to use regcache_collect
10756 instead of referencing registers[] directly.
10757
977a3030
AC
107582002-01-29 Andrew Cagney <[email protected]>
10759
10760 * parse.c (target_map_name_to_register): Delete code wrapped in
10761 #ifdef REGISTER_NAME_ALIAS_HOOK.
10762
2076c72b
MS
107632002-01-28 Michael Snyder <[email protected]>
10764
10765 * regcache.c (legacy_read_register_gen): Need to be able to
10766 read pseudo-register as well as real register.
10767 (legacy_write_register_gen): Ditto.
10768
8fcc723b
AC
107692002-01-28 Andrew Cagney <[email protected]>
10770
10771 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10772 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10773 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10774 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10775 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10776 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10777 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10778 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10779 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10780 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10781 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10782 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10783 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10784 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10785 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10786 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10787 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10788 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10789 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10790 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10791
afe64c1a
AC
107922002-01-28 Andrew Cagney <[email protected]>
10793
10794 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10795 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10796 (initialize_current_architecture): Update target_byte_order using
10797 information from BFD.
aaa38bb5 10798 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10799 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10800
75bc7ddf
AC
108012002-01-28 Andrew Cagney <[email protected]>
10802
10803 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10804 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10805
10806 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10807 #ifdef INVALID_FLOAT.
10808 * infcmd.c (do_registers_info): Ditto.
10809 * values.c (unpack_double): Ditto. Add comment.
10810
10811 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10812 already commented out.
10813
0280a90a
AS
108142002-01-26 Andreas Schwab <[email protected]>
10815
10816 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10817 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10818 registers and add support for PTRACE_GETREGS.
10819
7072a954
AC
108202002-01-24 Andrew Cagney <[email protected]>
10821
10822 GDB 5.1.1 released from 5.1 branch.
10823 * NEWS: Add 5.1.1 news.
10824 * README: Sync with 5.1 branch.
10825
86f902e0
FF
108262002-01-23 Fred Fish <[email protected]>
10827
10828 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10829 stabstring on initial malloc. Reallocing will copy it for us,
10830 if necessary.
10831
8af51c36
EZ
108322002-01-23 Elena Zannoni <[email protected]>
10833
aaa38bb5 10834 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
10835 (HFILES_NO_SRCDIR): Remove hpread.h.
10836 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10837 (hpread.o): Update dependencies.
10838 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10839
10840 * hp-psymtab-read.c: Remove file.
10841 * hp-symtab-read.c: Remove file.
10842 * hpread.h: Remove file.
10843
10844 * hpread.c: Merge all contents of hp-psymtab-read.c,
10845 hp-symtab-read.c and hpread.h into this file, as it was prior to
10846 January 1999.
10847
10848 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10849 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10850 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10851 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10852
dc5cfeb6
EZ
108532002-01-23 Elena Zannoni <[email protected]>
10854
10855 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10856 fill_gregset): Call gdbarch_tdep() just once, assign result to
10857 variable and use that, instead of calling the function several
10858 times.
10859
ea87b71b
AO
108602002-01-24 Alexandre Oliva <[email protected]>
10861
10862 * configure.host: Accept sparcv9 as alias for sparc64.
10863 * configure.tgt: Likewise.
10864
13fc0c2f
KB
108652002-01-22 Kevin Buettner <[email protected]>
10866
10867 * solib-aix5.c (build_so_list_from_mapfile)
10868 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10869 arguments is not reversed.
10870 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10871 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10872
7bd872fe
EZ
108732002-01-22 Elena Zannoni <[email protected]>
10874
10875 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10876 modified version of obsolete sh_fetch_pseudo_register.
10877 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10878 (sh4_register_read): New function.
10879 (sh_pseudo_register_write): New function. Renamed and modified
10880 version of obsolete sh_store_pseudo_register.
10881 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10882 (sh4_register_write): New function.
10883 (sh_gdbarch_init): Remove setting of gdbarch function
10884 fetch_pseudo_register and store_pseudo_register. Remove setting of
10885 register_convert_to_raw, register_convert_to_virtual,
10886 register_convertible.
10887 (sh_sh4_register_convertible): Delete. No longer needed. All is
10888 taken care by architecture specific functions
10889 register_read/register_write.
10890 (sh_sh4_register_convert_to_virtual): Make static.
10891 (sh_sh4_register_convert_to_raw): Ditto.
10892
069e84fd
AC
108932002-01-22 Andrew Cagney <[email protected]>
10894
10895 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10896 (floatformat_is_nan, floatformat_mantissa): Ditto.
10897
10898 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10899 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10900 builtin_type_ieee_double_little,
10901 builtin_type_ieee_double_littlebyte_bigword,
10902 builtin_type_m68881_ext, builtin_type_i960_ext,
10903 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10904 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10905 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10906 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10907
211a4f69
CV
109082002-01-22 Corinna Vinschen <[email protected]>
10909
10910 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10911 parameter. Set frameless flag if it exists and depended of
10912 whether the scanned function is frameless or not.
10913 (xstormy16_skip_prologue): If function is frameless, return
10914 result of xstormy16_scan_prologue().
10915 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10916 call.
10917
f81353e4
EZ
109182002-01-21 Elena Zannoni <[email protected]>
10919
10920 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10921 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10922 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10923 sh_sh4_register_byte, sh_sh4_register_raw_size,
10924 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10925 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10926 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10927 sh_store_pseudo_register, sh_do_pseudo_register): Call
10928 gdbarch_tdep() just once, assign result to variable and use that,
10929 instead of calling the function several times.
10930
63c73a17
MK
109312002-01-20 Mark Kettenis <[email protected]>
10932
10933 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10934 macros instead of LAST_FPU_CTRL_REGNUM.
10935 (store_register): Likewise.
10936
39ad761d
JB
109372002-01-21 Jim Blandy <[email protected]>
10938
10939 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10940 is up-to-date before running the program, not just when a program
10941 exits.
10942
3d74b771
FF
109432002-01-21 Fred Fish <[email protected]>
10944
10945 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10946 when we have found all instructions we are looking for.
10947
966fbf70
RE
109482002-01-21 Richard Earnshaw <[email protected]>
10949
10950 * arm-tdep.c (arm_register_name): New function.
10951 (arm_registers_names): Make static.
10952 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10953 (arm_register_name): Declare.
10954 (REGISTER_NAME): Use it.
10955
c3b4394c
RE
109562002-01-21 Richard Earnshaw <[email protected]>
10957 Kevin Buettner <[email protected]>
10958
10959 Convert arm targets to new FRAME interface.
10960 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10961 (arm_frame_find_save_regs): Delete.
10962 (arm_frame_init_saved_regs): New.
10963 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10964 Allocate extra_info as required. Convert all uses of fsr.regs
10965 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10966 to use extra_info.
10967 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10968 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10969 (check_prologue_cache, save_prologue_cache): Likewise.
10970 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10971 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10972 (FRAME_FIND_SAVED_REGS): Delete.
10973 (arm_frame_find_saved_regs): Delete prototype.
10974 (arm_frame_init_saved_regs): New prototype.
10975 (FRAME_INIT_SAVED_REGS): Define.
10976
61d99182
AC
109772002-01-20 Andrew Cagney <[email protected]>
10978
10979 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10980
6aaea291
AC
109812002-01-20 Andrew Cagney <[email protected]>
10982
10983 From Jeff Law <[email protected]>:
10984 * infttrace.c: Include <sys/pstat.h>.
10985 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10986 exec file if the ttrace equivalent fails.
10987
15f698d2
AC
109882002-01-20 Andrew Cagney <[email protected]>
10989
10990 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10991 (closeLogFile): Ditto.
10992
f86ddd7c
MC
109932002-01-20 Michael Chastain <[email protected]>
10994
10995 * top.c (print_gdb_version): Bump copyright year to 2002.
10996
904507ce
AC
109972002-01-20 Andrew Cagney <[email protected]>
10998
10999 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11000 Zannoni and Eli Zaretskii.
11001
d7f0b9ce
DJ
110022002-01-20 Daniel Jacobowitz <[email protected]>
11003
11004 * buildsym.c: Update copyright years.
11005 * c-typeprint.c: Likewise.
11006 * dwarf2read.c: Likewise.
11007 * f-typeprint.c: Likewise.
11008 * gdbtypes.c: Likewise.
11009 * gdbtypes.h: Likewise.
11010 * hp-symtab-read.c: Likewise.
11011 * hpread.c: Likewise.
11012 * mdebugread.c: Likewise.
11013 * p-typeprint.c: Likewise.
11014
3fd3d7d2
AC
110152002-01-20 Andrew Cagney <[email protected]>
11016
11017 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11018 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11019 byte-order selectable.
11020 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11021 * arch-utils.c: Ditto.
11022 (set_endian): Ditto.
11023 (set_endian_from_file): Ditto.
11024 * gdbserver/low-sim.c (create_inferior): Ditto.
11025 * gdbarch.sh: Ditto.
11026 * gdbarch.h: Re-generate.
aaa38bb5
AJ
11027 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11028 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11029 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11030 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11031 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11032 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11033 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
11034 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11035 macro definition.
11036 * config/mips/tm-wince.h: Remove #undef of macro
11037 TARGET_BYTE_ORDER_SELECTABLE.
11038 * config/sh/tm-wince.h: Ditto.
11039
b02dede2
DJ
110402002-01-20 Daniel Jacobowitz <[email protected]>
11041
11042 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11043 member function fields. Add accessor macro
11044 TYPE_FN_FIELD_ARTIFICIAL.
11045 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11046 * c-typeprint.c (c_type_print_base): Skip artificial member
11047 functions.
11048
c3643761
DJ
110492002-01-20 Daniel Jacobowitz <[email protected]>
11050
11051 * f-typeprint.c: Delete unused function f_type_print_args.
11052 * p-typeprint.c: Delete unused function pascal_type_print_args.
11053
8176bb6d
DJ
110542002-01-20 Daniel Jacobowitz <[email protected]>
11055
11056 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11057 comment. Add ``artificial'' to ``union field_location''.
11058
11059 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11060
11061 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11062 * mdebugread.c (parse_symbol): Likewise.
11063 * stabsread.c (define_symbol): Likewise.
11064 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11065 initializing TYPE_FIELD_BITPOS to n (obsolete).
11066 (hpread_doc_function_type): Likewise.
11067 * hpread.c (hpread_function_type): Likewise.
11068
7fd60527
AC
110692002-01-20 Andrew Cagney <[email protected]>
11070
11071 * configure.in (host_makefile_frag): Only require a host makefile
11072 fragment when a native build.
11073 * configure: Re-generate.
11074
c2f05ac9
AC
110752002-01-20 Andrew Cagney <[email protected]>
11076
11077 * doublest.h (floatformat_from_type): Declare.
11078 * doublest.c (floatformat_from_type): New function.
11079 (convert_typed_floating): Use.
11080
11081 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11082 call to function floatformat_from_type.
11083
11084 * gdbarch.sh (IEEE_FLOAT): Delete.
11085 * gdbarch.h, gdbarch.c: Re-generate.
11086 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11087 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11088 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11089 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11090 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11091 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11092 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11093 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11094 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11095 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11096 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
11097 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11098
11099 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11100 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11101 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11102 * sh-tdep.c (sh_gdbarch_init): Ditto.
11103 * mips-tdep.c (mips_gdbarch_init): Ditto.
11104 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11105 * cris-tdep.c (cris_gdbarch_init): Ditto.
11106
abf22e64
AJ
111072002-01-20 Jiri Smid <[email protected]>
11108
11109 * configure.host, configure.tgt: Support x86-64.
11110 * NEWS: Note new target x86-64.
11111
b7c4cbf8
AJ
11112 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11113 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11114 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11115 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11116 x86-64-linux-nat.o): Fix dependencies.
11117
82600034
AC
111182002-01-19 Andrew Cagney <[email protected]>
11119
11120 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11121 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11122 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11123 * config/sparc/xm-sun4os4.h: Delete file.
11124 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 11125
bbe5c628
AC
111262002-01-19 Andrew Cagney <[email protected]>
11127
11128 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11129 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11130 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11131 * config/i386/i386lynx.mh (XM_FILE): Delete.
11132 * config/rs6000/xm-rs6000ly.h: Delete file.
11133 * config/sparc/xm-sparclynx.h: Delete file.
11134 * config/m68k/xm-m68klynx.h: Delete file.
11135 * config/i386/xm-i386lynx.h: Delete file.
11136 * config/xm-lynx.h: Delete file.
11137 * config/djgpp/fnchange.lst: Update.
11138
f8453e34
JT
111392002-01-19 Jason Thorpe <[email protected]>
11140
11141 * alpha-tdep.c (alpha_register_byte): New function.
11142 (alpha_register_raw_size): Ditto.
11143 (alpha_register_virtual_size): Ditto.
11144 (alpha_skip_prologue_internal): Renamed from
11145 alpha_skip_prologue.
11146 (alpha_skip_prologue): New version that calls
11147 alpha_skip_prologue_internal.
11148 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11149 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11150 second argument from alpha_skip_prologue.
11151 (REGISTER_BYTE): Use alpha_register_byte.
11152 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11153 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11154 (FRAMELESS_FUNCTION_INVOCATION): Use
11155 generic_frameless_function_invocation_not.
11156 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11157 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11158
52d9e613
AC
111592002-01-19 Andrew Cagney <[email protected]>
11160
11161 * config/mips/xm-news-mips.h: Delete file.
11162 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11163
11164 * config/m88k/xm-m88k.h: Delete file.
11165 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11166 * config/m88k/xm-delta88v4.h: Ditto.
11167 * config/m88k/xm-delta88.h: Ditto.
11168
11169 * config/alpha/xm-fbsd.h: Delete file.
11170 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11171
11172 * config/sparc/xm-sparc.h: Delete file.
11173 * Makefile.in (xm-sun4os4.h): Delete dependency.
11174 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11175 * config/sparc/xm-sun4os4.h: Ditto.
11176 * config/sparc/xm-linux.h: Ditto.
11177
11178 * config/i386/xm-windows.h: Delete file.
11179
2d1b2124
AC
111802002-01-19 Andrew Cagney <[email protected]>
11181
11182 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11183 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11184
ee1f65f0
JT
111852002-01-19 Jason Thorpe <[email protected]>
11186
11187 * alpha-tdep.c (alpha_call_dummy_words): New.
11188 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11189 (CALL_DUMMY_P): Define.
11190 (CALL_DUMMY_WORDS): Define.
11191 (SIZEOF_CALL_DUMMY_WORDS): Define.
11192
98081e55
PB
111932002-01-19 Per Bothner <[email protected]>
11194
11195 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11196 isn't NULL, which can happen with some gcj-3.x-produced code.
11197
0d056799
JT
111982002-01-19 Jason Thorpe <[email protected]>
11199
11200 * alpha-tdep.c (alpha_register_virtual_type): New function.
11201 (alpha_init_frame_pc_first): Ditto.
11202 (alpha_fix_call_dummy): Ditto.
11203 (alpha_store_struct_return): Ditto.
11204 (alpha_extract_struct_value_address): Ditto.
11205 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11206 alpha_register_virtual_type.
11207 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11208 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11209 alpha_extract_struct_value_address.
11210 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11211 (INIT_FRAME_PC): Use init_frame_pc_noop.
11212 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11213
4604bcad
MK
112142002-01-19 Mark Kettenis <[email protected]>
11215
11216 * i386gnu-nat.c: Include "i386-tdep.h".
11217 (fetch_fpregs): Simplify code dealing with uninitialized floating
11218 point states such that it doesn't require FP7_REGNUM.
11219
140f9984
JT
112202002-01-18 Jason Thorpe <[email protected]>
11221
abf22e64
AJ
11222 * alpha-tdep.c (frame_extra_info): New.
11223 (alpha_find_saved_regs): Make static. Use
140f9984
JT
11224 frame->extra_info.
11225 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
11226 (alpha_frame_saved_pc): Use frame->extra_info.
11227 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11228 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
11229 (init_extra_frame_info): Rename to...
11230 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 11231 (alpha_print_extra_frame_info): New function.
140f9984
JT
11232 (alpha_frame_locals_address): Ditto.
11233 (alpha_frame_args_address): Ditto.
abf22e64 11234 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
11235 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11236 alpha_frame_args_address.
abf22e64 11237 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 11238 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
11239 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11240 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
11241 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11242 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11243
d734c450
JT
112442002-01-18 Jason Thorpe <[email protected]>
11245
11246 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11247 (alpha_cannot_fetch_register): Ditto.
11248 (alpha_cannot_store_register): Ditto.
11249 (alpha_register_convertible): Ditto.
11250 (alpha_use_struct_convention): Ditto.
11251 * config/alpha/tm-alpha.h: Update copyright years.
11252 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11253 (INNER_THAN): Use core_addr_lessthan.
11254 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11255 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11256 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11257 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11258 (FRAME_CHAIN): Remove unnecessary cast.
11259
b4ceaee6
AC
112602002-01-18 Andrew Cagney <[email protected]>
11261
11262 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11263 obsolete.
11264
0a65a603
AC
112652002-01-18 Andrew Cagney <[email protected]>
11266
11267 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11268 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11269 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11270 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11271 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11272 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11273 * x86-64-linux-nat.c: Ditto.
11274
636a6dfc
JT
112752002-01-18 Jason Thorpe <[email protected]>
11276
abf22e64 11277 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
11278 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11279 (REGISTER_NAME): Define.
11280
acceddb6
JT
112812002-01-18 Jason Thorpe <[email protected]>
11282
11283 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11284
ec32e4be
JT
112852002-01-18 Jason Thorpe <[email protected]>
11286
11287 * alpha-tdep.c: Update copyright years.
11288 (alpha_next_pc): New function.
11289 (alpha_software_single_step): Ditto.
11290 * config/alpha/tm-alpha.h: Add prototype for
11291 alpha_software_single_step.
11292
e771a871
JT
112932002-01-18 Jason Thorpe <[email protected]>
11294
11295 * alphabsd-nat.c: Update copyright years.
11296 (fill_gregset): Use regcache_collect.
11297 (fill_fpregset): Likewise.
11298 (fetch_inferior_registers): Only fetch integer registers
11299 if requested to do so.
11300 (store_inferior_registers): Only store integer registers
11301 if requested to do so.
11302
7708fa01
AC
113032002-01-17 Andrew Cagney <[email protected]>
11304
11305 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11306 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11307 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11308 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11309 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11310 * config/arm/linux.mh (XDEPFILES): Delete.
11311 * config/arm/nbsd.mh (XDEPFILES): Delete.
11312 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11313 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11314 * config/i386/i386m3.mh (XDEPFILES): Delete.
11315 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11316 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11317 * config/i386/fbsd.mh (XDEPFILES): Delete.
11318 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11319 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11320 * config/i386/i386v4.mh (XDEPFILES): Delete.
11321 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11322 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11323 * config/i386/i386aix.mh (XDEPFILES): Delete.
11324 * config/i386/go32.mh (XDEPFILES): Delete.
11325 * config/i386/cygwin.mh (XDEPFILES): Delete.
11326 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11327 * config/i386/i386mach.mh (XDEPFILES): Delete.
11328 * config/i386/i386v32.mh (XDEPFILES): Delete.
11329 * config/i386/linux.mh (XDEPFILES): Delete.
11330 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11331 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11332 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11333 * config/i386/i386sco.mh (XDEPFILES): Delete.
11334 * config/i386/i386v.mh (XDEPFILES): Delete.
11335 * config/i386/nbsd.mh (XDEPFILES): Delete.
11336 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11337 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11338 * config/i386/symmetry.mh (XDEPFILES): Delete.
11339 * config/i386/obsd.mh (XDEPFILES): Delete.
11340 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11341 * config/ia64/linux.mh (XDEPFILES): Delete.
11342 * config/ia64/aix.mh (XDEPFILES): Delete.
11343 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11344 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11345 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11346 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11347 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11348 * config/m68k/linux.mh (XDEPFILES): Delete.
11349 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11350 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11351 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11352 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11353 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11354 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11355 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11356 * config/m88k/delta88.mh (XDEPFILES): Delete.
11357 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11358 * config/m88k/m88k.mh (XDEPFILES): Delete.
11359 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11360 * config/mips/linux.mh (XDEPFILES): Delete.
11361 * config/mips/irix6.mh (XDEPFILES): Delete.
11362 * config/mips/irix5.mh (XDEPFILES): Delete.
11363 * config/mips/irix4.mh (XDEPFILES): Delete.
11364 * config/mips/irix3.mh (XDEPFILES): Delete.
11365 * config/mips/decstation.mh (XDEPFILES): Delete.
11366 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11367 (NATDEPFILES): Move core-aout.o to here.
11368 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11369 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11370 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11371 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11372 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11373 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11374 * config/pa/hpux11.mh (XDEPFILES): Delete.
11375 * config/powerpc/aix.mh (XDEPFILES): Delete.
11376 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11377 * config/powerpc/linux.mh (XDEPFILES): Delete.
11378 * config/romp/rtbsd.mh: Rename XDEPFILES.
11379 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11380 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11381 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11382 * config/s390/s390.mh (XDEPFILES): Delete.
11383 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11384 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11385 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11386 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11387 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11388 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11389 * config/sparc/linux.mh (XDEPFILES): Delete.
11390 * config/vax/vaxult.mh (XDEPFILES): Delete.
11391 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11392 * Makefile.in (DEPFILES): Remove XDEPFILES.
11393
375fc983
AC
113942002-01-17 Andrew Cagney <[email protected]>
11395
11396 * utils.c (internal_verror): Fix comments, default is yes not no.
11397 Update queries to match. Default to quit and dump core.
11398
8926118c
AC
113992002-01-17 Andrew Cagney <[email protected]>
11400
11401 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11402 copyright.
11403 * defs.h, event-top.c, gdbcmd.h: Ditto.
11404 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11405 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11406 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11407 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11408 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11409 * mi/mi-main.c:Ditto.
11410
11411 * stack.c, symfile.c: Update copyright.
11412
45b7b345
DJ
114132002-01-17 Daniel Jacobowitz <[email protected]>
11414
db728ff7
DJ
11415 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11416 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11417 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11418 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11419
db728ff7
DJ
114202002-01-17 Daniel Jacobowitz <[email protected]>
11421
11422 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11423 * gdbserver/low-lynx.c (myattach): Likewise.
11424 * gdbserver/low-nbsd.c (myattach): Likewise.
11425 * gdbserver/low-sim.c (myattach): Likewise.
11426 * gdbserver/low-sparc.c (myattach): Likewise.
11427 * gdbserver/low-sun3.c (myattach): Likewise.
11428
11429 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11430
db728ff7 11431 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11432 (main): Handle "--attach".
11433
8de3c354
AC
114342002-01-16 Andrew Cagney <[email protected]>
11435
11436 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11437 maintainer.
11438
b0129042
DJ
114392002-01-15 Daniel Jacobowitz <[email protected]>
11440
11441 * c-typeprint.c (is_type_conversion_operator): Add additional
11442 check for non-conversion operators.
11443
ba8679fb 114442002-01-15 Michael Snyder <[email protected]>
2bf543a6
MS
11445
11446 * linux-proc.c: Add "info proc" command, a la procfs.c.
11447 (read_mapping): New function, abstract and re-use code.
11448 (linux_find_memory_regions): Use new func read_mapping.
11449 (linux_info_proc_cmd): New function, implement "info proc".
11450 (_initialize_linux_proc): Add new command "info proc".
11451
e4f9b4d5
MS
114522002-01-15 Michael Snyder <[email protected]>
11453
11454 * symfile.c (generic_load): Use bfd_map_over_sections method
11455 instead of manipulating bfd structure members directly.
11456 (add_section_size_callback): New function, bfd sections callback
11457 used by generic_load.
11458 (load_sections_callback): New function, bfd sections callback
11459 used by generic_load.
11460
08cf96df
EZ
114612002-01-15 Elena Zannoni <[email protected]>
11462
abf22e64 11463 [Based on work by Jim Blandy]
08cf96df
EZ
11464 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11465 (builtin_type_vec128): Export.
11466 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11467 types.
11468 (builtin_type_vec128): New builtin type for 128 bit vector
11469 registers.
11470 (build_gdbtypes): Initialize builtin_type_v16qi and
11471 builtin_type_v8hi. Create the vec128 register builtin type
11472 structure.
11473 (build_builtin_type_vec128): New function.
abf22e64 11474 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11475 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11476 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11477 AltiVec register to new builtin type.
11478
d7242108
DJ
114792001-01-15 Daniel Jacobowitz <[email protected]>
11480
11481 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11482 to make_cv_type.
11483
4ee3352d
AC
114842002-01-14 Andrew Cagney <[email protected]>
11485
11486 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11487 CLEAN_UP_REGISTER_VALUE.
11488 * regcache.c (supply_register): Update only call.
11489
f015b2e7
AC
114902002-01-14 Andrew Cagney <[email protected]>
11491
11492 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11493 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11494 a29k-*-vxworks* targets as obsolete.
11495
356ae49d
MS
114962002-01-14 Michael Snyder <[email protected]>
11497
11498 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11499 until we can resolve portability issues.
11500 * gregset.h: Remove references to fpxregs.
11501 * gcore.c (gcore_command): Initialize note_sec to NULL.
11502
ade8f45e
AC
115032002-01-13 Andrew Cagney <[email protected]>
11504
11505 * signals.c (target_signal_to_name): Rewrite. Only use
11506 signals[].name when in bounds and non-NULL.
abf22e64 11507
89c49e7a
AC
115082002-01-13 Andrew Cagney <[email protected]>
11509
11510 From Petr Ledvina <[email protected]>:
11511 * signals.c (target_signal_to_name): Verify that SIG is within the
11512 bounds of the signals array.
11513
4daa9f9f
AC
115142002-01-13 Andrew Cagney <[email protected]>
11515
11516 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11517
ba4bbdcb
KS
115182002-01-13 Keith Seitz <[email protected]>
11519
11520 * stack.c (print_frame_info_base): Print the frame's pc
11521 only if when print_frame_info_listing_hook is not defined.
11522
575bbeb6
KS
115232002-01-13 Keith Seitz <[email protected]>
11524
11525 * varobj.c (varobj_set_value): Make sure that there were no
11526 errors evaluating the object before attempting to set its
11527 value.
11528 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11529 so this offset adjustment is no longer necessary.
11530 (create_child): Don't set the error flag if the child is
11531 a CPLUS_FAKE_CHILD.
11532 (value_of_child): If value_fetch_lazy fails, return NULL
11533 so that callers will be notified that an error occurred.
11534 (c_value_of_variable): Delay check of variable's validity
11535 until later. We actually want all structs and unions to have
11536 the value "{...}".
11537 Do not return "???" for variables which could not be evaluated.
11538 This error condition must be returned to the caller so that it
11539 can get the error condition from gdb.
11540 (cplus_name_of_child): Adjust index for vptr before figuring
11541 out the name of the child.
11542 (cplus_value_of_child): If a child's (real) parent is not valid,
11543 don't even bother trying to give a value for it. Just return
11544 an error. Change all instances in this function.
11545 (cplus_type_of_child): If our parent is one of the "fake"
11546 parents, we need to get at the type of the real parent, and
11547 derive the child's true type using this information.
11548
b76898ab
AC
115492002-01-13 Andrew Cagney <[email protected]>
11550
11551 From 2002-01-09 John Marshall <[email protected]>:
11552 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11553 sources.redhat.com, and tweak some related URLs which had
11554 suffered from linkrot.
11555
b6649e88
AC
115562002-01-13 Andrew Cagney <[email protected]>
11557
11558 From Jeff law:
11559 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11560 structures passed in registers.
11561
82cc5033
EZ
115622002-01-13 Eli Zaretskii <[email protected]>
11563
11564 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11565 white space which prevented compilation. Reported by DSK
11566 <[email protected]>.
11567
ba5f2f8a
MS
115682002-01-11 Michael Snyder <[email protected]>
11569
fbd35540
MS
11570 * symfile.c (build_section_addr_info_from_section_tab):
11571 Use bfd access method instead of manipulating bfd directly.
11572 (syms_from_objfile): Ditto.
11573 (simple_overlay_update_1): Ditto.
11574 (simple_overlay_update): Ditto.
11575 (generic_load): Ditto.
11576 (overlay_unmapped_address): FIXME comment, bfd access methods.
11577 (sections_overlap): FIXME comment, bfd access methods.
11578 (pc_in_mapped_range): FIXME comment, bfd access methods.
11579 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11580 (section_is_mapped): FIXME comment, bfd access methods.
11581 (section_is_overlay): FIXME comment, bfd access methods.
11582
ba5f2f8a
MS
11583 * symfile.c (generic_load): Whitespace and long line cleanups.
11584 Remove duplicate variable, change several local variables to
11585 more appropriate data types.
11586 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11587
17df2af6
AC
115882002-01-12 Andrew Cagney <[email protected]>
11589
11590 From Peter Schauer:
11591 * language.c (longest_local_hex_string_custom): Use phex_nz to
11592 convert NUM to a hex string.
11593
ec920329
EZ
115942002-01-12 Elena Zannoni <[email protected]>
11595
11596 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11597 the function.
538a76d6 11598 Update Copyright year.
ec920329 11599
3abd2e01
AC
116002002-01-12 Andrew Cagney <[email protected]>
11601
11602 * language.c (longest_raw_hex_string): Delete unused function.
11603
b21b22e0
PS
116042002-01-11 Petr Sorfa <[email protected]>
11605
11606 * MAINTAINERS (write-after-approval): Add myself.
11607 * dwarf2read.c (read_tag_string_type): Handling of
11608 DW_AT_byte_size.
11609 (read_tag_string_type): FORTRAN fix to prevent propagation of
11610 first string size.
11611 (set_cu_language): Handling of DW_LANG_Fortran95
11612
747fe712
RE
116132002-01-11 Richard Earnshaw <[email protected]>
11614
11615 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11616 GETPID(inferior_ptid).
11617 (store_inferior_registers): Likewise.
11618
f1bea926
JM
116192002-01-10 Jason Merrill <[email protected]>
11620
11621 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11622 Fix DW_OP_minus.
11623
ae940673
AC
116242002-01-10 Andrew Cagney <[email protected]>
11625
11626 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11627 and bfd/elf32-sh-nbsd.c.
11628
00546b04
MS
116292002-01-10 Michael Snyder <[email protected]>
11630
352ed7b4
MS
11631 * NEWS: Mention --pid and corefile/proc-id behavior change.
11632
c18be923
MS
11633 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11634 * gcore.c: Include cli/cli-decode.h instead of command.h.
11635
00546b04
MS
11636 * main.c (captured_main): Add new command line option "--pid".
11637 If the second command line argument (following the symbol-file)
11638 begins with a digit, try to attach to it before trying to open
11639 it as a corefile.
11640 (print_gdb_help): Document the "--pid" argument.
11641
db60ec62
EZ
116422002-01-10 Eli Zaretskii <[email protected]>
11643
11644 * completer.c (command_completer): New function.
11645
11646 * completer.h <command_completer>: Add prototype.
11647
11648 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11649 completer for the "help" command.
11650
39c22d1a
JM
116512002-01-09 Jason Merrill <[email protected]>
11652
11653 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11654
c564377f
MS
116552002-01-09 Michael Snyder <[email protected]>
11656
975aec09
MS
11657 * i386-linux-nat.c (fill_fpxregset): Make global.
11658 (store_fpxregset): Ditto.
11659
db4a10fa
MS
11660 * gregset.h (gdb_fpxregset_t): Define.
11661 (supply_fpxregset): Prototype.
11662 (fill_fpxregset): Prototype.
11663
c564377f
MS
11664 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11665
c3d45d70
RE
116662002-01-09 Richard Earnshaw <[email protected]>
11667
11668 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11669 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11670 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11671
fcc87af1
AC
116722002-01-09 Andrew Cagney <[email protected]>
11673
11674 * MAINTAINERS: Update target maintainer rules so that any
11675 Maintainer can approve a tested patch for a maintenance-only
11676 target.
11677
dd96c05b
RE
116782002-01-09 Richard Earnshaw <[email protected]>
11679
d4297db9 11680 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11681
d4297db9 11682 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11683 IN_SIGTRAMP.
11684
145fdc6e
MS
116852002-01-08 Michael Snyder <[email protected]>
11686
11687 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11688 real name of the executable, rather than the /proc name.
11689
be4d1333
MS
116902002-01-03 Michael Snyder <[email protected]>
11691
11692 Implement a "generate-core-file" command in gdb, save target state.
11693 * gcore.c: New file. Implement new command 'generate-core-file'.
11694 Save a corefile image of the current state of the inferior.
11695 * linux-proc.c: Add linux-specific code for saving corefiles.
11696 * target.h (struct target_ops): Add new target vectors for saving
11697 corefiles; to_find_memory_regions and to_make_corefile_notes.
11698 (target_find_memory_regions): New macro.
11699 (target_make_corefile_notes): New macro.
11700 * target.c (update_current_target): Inherit new target methods.
11701 (dummy_find_memory_regions): New place-holder method.
11702 (dummy_make_corefile_notes): New place-holder method.
11703 (init_dummy_target): Initialize new dummy target vectors.
11704 * exec.c (exec_set_find_memory_regions): New function.
11705 Allow the exec_ops vector for memory regions to be taken over.
11706 (exec_make_note_section): New function, target vector method.
11707 * defs.h (exec_set_find_memory_regions): Export prototype.
11708 * procfs.c (proc_find_memory_regions): New function, corefile method.
11709 (procfs_make_note_section): New function, corefile method.
11710 (init_procfs_ops): Set new target vector pointers.
11711 (find_memory_regions_callback): New function.
11712 (procfs_do_thread_registers): New function.
11713 (procfs_corefile_thread_callback): New function.
11714 * sol-thread.c (sol_find_memory_regions): New function.
11715 (sol_make_note_section): New function.
11716 (init_sol_thread_ops): Initialize new target vectors.
11717 * inftarg.c (inftarg_set_find_memory_regions): New function.
11718 Allow to_find_memory_regions vector to be taken over.
11719 (inftarg_set_make_corefile_notes): New function.
11720 Allow to_make_corefile_notes vector to be taken over.
11721 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11722 interface layer if not target_has_execution (may be a corefile).
11723 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11724 * config/sparc/sun4sol2.mh: Ditto.
11725 * config/alpha/alpha-linux.mh: Ditto.
11726 * config/arm/linux.mh: Ditto.
11727 * config/i386/x86-64linux.mh: Ditto.
11728 * config/ia64/linux.mh: Ditto.
11729 * config/m68k/linux.mh: Ditto.
11730 * config/mips/linux.mh: Ditto.
11731 * config/powerpc/linux.mh: Ditto.
11732 * config/sparc/linux.mh: Ditto.
11733
c6b92abd
MS
117342002-01-07 Michael Snyder <[email protected]>
11735
11736 * arm-linux-nat.c: Remove references to regcache.c internal data
11737 (registers[] and register_valid[]).
11738
4b09dc8c
MS
117392002-01-07 Michael Snyder <[email protected]>
11740
abf22e64
AJ
11741 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11742 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11743 symbol file and shlibs.
11744 * Makefile.in: Add rule for linux-proc.o.
11745 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11746 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11747 * config/arm/linux.mh: Ditto.
11748 * config/i386/linux.mh: Ditto.
11749 * config/i386/x86-64linux.mh: Ditto.
11750 * config/ia64/linux.mh: Ditto.
11751 * config/m68k/linux.mh: Ditto.
11752 * config/mips/linux.mh: Ditto.
11753 * config/powerpc/linux.mh: Ditto.
11754 * config/sparc/linux.mh: Ditto.
11755
c25b74ac
PM
117562002-01-06 Pierre Muller <[email protected]>
11757
11758 * win32-nat.c: Add i386-tdep.h dependency.
11759
94cd915f
MS
117602002-01-07 Michael Snyder <[email protected]>
11761
c7cccb76
MS
11762 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11763 instead of bfd_get_arch_size. Don't bail out just because
11764 there's no exec_bfd.
abf22e64 11765
34c0bd93
MS
11766 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11767 * p-valprint.c (pascal_object_print_value): Ditto.
11768 * somread.c (som_symtab_read): Ditto.
11769 * symfile.c (simple_free_overlay_region_table): Ditto.
11770 * valops.c (value_assign): Ditto.
11771
21c1c920
MS
11772 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11773 use tilde_expand and strerror for opening save-tracepoints file.
11774
5bbd998e
MS
11775 * thread-db.c (thread_db_new_objfile): Indendation fix.
11776
94cd915f
MS
11777 * infptrace.c (GDB_MAX_ALLOCA): New define.
11778 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11779 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11780 can be overridden with whatever value is appropriate to the host).
11781 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11782 alloca to allocate potentially large buffer.
11783 * rs6000-nat.c (child_xfer_memory): Ditto.
11784 * symm-nat.c (child_xfer_memory): Ditto.
11785 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11786
494e8a93
JSC
117872002-01-07 Jackie Smith Cashion <[email protected]>
11788
11789 From Nick Clifton <[email protected]>
11790 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11791
d0e1d48e
MS
117922002-01-07 Michael Snyder <[email protected]>
11793
abf22e64 11794 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11795 Don't use exec_bfd if it's NULL.
11796
290b2c7a
MK
117972002-01-06 Mark Kettenis <[email protected]>
11798
abf22e64 11799 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11800
aef21287
AC
118012002-01-06 Andrew Cagney <[email protected]>
11802
11803 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11804 * gnu-nat.c: Ditto.
11805
30efa627
AC
118062002-01-06 Andrew Cagney <[email protected]>
11807
11808 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11809 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11810 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11811 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11812 z8k-coff have not been multi-arched. Update z8k-coff build
11813 status.
11814
9b4ff276
AC
118152002-01-06 Andrew Cagney <[email protected]>
11816
11817 * MAINTAINERS: Mark a29k target as obsolete.
11818 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11819 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11820 comments.
11821 * NEWS: Note that a29k targets are obsolete.
11822 * a29k-tdep.c: Mark as obsolete.
11823 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11824 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11825 a29k-*-vxworks* targets as obsolete.
11826 * remote-adapt.c: Obsolete.
11827 * remote-eb.c: Obsolete.
11828 * remote-mm.c: Obsolete.
11829 * remote-udi.c: Obsolete.
11830 * config/a29k/a29k-udi.mt: Obsolete.
11831 * config/a29k/a29k.mt: Obsolete.
11832 * config/a29k/tm-a29k.h: Obsolete.
11833 * config/a29k/tm-vx29k.h: Obsolete.
11834 * config/a29k/vx29k.mt: Obsolete.
11835
a9011d31
AC
118362002-01-05 Andrew Cagney <[email protected]>
11837
11838 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11839 with BFD_ENDIAN_BIG.
11840
9299404e
AC
118412002-01-05 Andrew Cagney <[email protected]>
11842
11843 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11844 * configure, config.in: Re-generate.
11845 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11846 * defs.h: Do not include <endian.h>.
11847
7e89e357
JT
118482002-01-05 Jason Thorpe <[email protected]>
11849
11850 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11851 * config.in: Regenerate.
11852 * configure.in: Update copyright years.
11853 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11854 * configure: Regenerate.
11855 * i386bsd-nat.c: Update copyright years.
11856 (fill_gregset): Use regcache_collect.
11857 (fetch_inferior_registers): Only fetch integer registers
11858 if requested to do so. Add support for XMM registers
11859 using PT_GETXMMREGS.
11860 (store_inferior_registers): Only store integer registers
11861 if requested to do so. Add support for XMM registers
11862 using PT_SETXMMREGS.
11863 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11864 (store_inferior_registers): Remove.
11865 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11866 (fetch_elfcore_registers): New function.
11867 (i386nbsd_elfcore_fns): New.
11868 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11869 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11870 i386bsd-nat.o.
11871 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11872 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11873 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11874 * config/i386/tm-nbsd.h: Update copyright years.
11875 (HAVE_SSE_REGS): Define.
11876 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11877 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11878 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11879 (SIGCONTEXT_PC_OFFSET): Remove.
11880 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11881
a752853e
AC
118822002-01-05 Andrew Cagney <[email protected]>
11883
11884 * configure.tgt: Remove powerpc-*-macos* target.
11885 * config/m68k/xm-mpw.h: Delete file.
11886 * config/xm-mpw.h: Delete file.
11887 * ser-mac.c: Delete file.
11888 * mpw-make.sed: Delete file.
11889 * mpw-config.in: Delete file.
11890 * mac-xdep.c: Delete file.
11891 * mac-gdb.r: Delete file.
11892 * mac-defs.h: Delete file.
11893 * mac-nat.c: Delete file.
11894 * config/powerpc/macos.mh: Delete file.
11895 * config/powerpc/macos.mt: Delete file.
11896 * config/powerpc/nm-macos.h: Delete file.
11897 * config/powerpc/tm-macos.h: Delete file.
11898 * source.c (openp, open_source_file): Remove obsolete code.
11899 * top.c (gdb_readline): Ditto.
11900 * utils.c (query): Ditto.
11901 * event-top.c (display_gdb_prompt): Ditto.
11902 * Makefile.in (ser-mac.o): Delete obsolete target.
11903 * NEWS: Update.
11904
d7449b42
AC
119052002-01-04 Andrew Cagney <[email protected]>
11906
11907 * defs.h (BIG_ENDIAN): Delete macro definition.
11908 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11909 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11910 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11911 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11912 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11913 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11914 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11915 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11916 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11917 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11918 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11919 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11920 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11921 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11922 * gdbarch.c: Re-generate.
11923
356374e8
DJ
119242002-01-04 Daniel Jacobowitz <[email protected]>
11925
11926 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11927 for core files.
11928
a2b8f8f8
JT
119292002-01-04 Jason Thorpe <[email protected]>
11930
11931 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11932
12466af9
AC
119332002-01-04 Andrew Cagney <[email protected]>
11934
11935 * value.h (value_ptr): Delete typedef.
11936
3549ab40
JT
119372002-01-04 Jason Thorpe <[email protected]>
11938
11939 * i386nbsd-nat.c: Update copyright years.
11940 Include i386-tdep.h.
11941
fedbd091
EZ
119422002-01-04 Elena Zannoni <[email protected]>
11943
11944 * stabsread.c: Update copyright years.
11945
11946 From Debashis Mahata <[email protected]>:
11947 (read_struct_fields): Deal with Sun C compiler erroneous stab
11948 output for structs and unions.
fec8b34f 11949 Fix PR gdb/269.
fedbd091 11950
eb43544b
DJ
119512002-01-04 Daniel Jacobowitz <[email protected]>
11952
11953 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11954 prototype.
11955
1514d34e
DJ
119562002-01-04 Daniel Jacobowitz <[email protected]>
11957
11958 * cp-abi.c: Fix whitespace.
11959 (baseclass_offset): New wrapper function.
11960 * cp-abi.h (baseclass_offset): Add prototype.
11961 (struct cp_abi_ops): Add baseclass_offset pointer.
11962
11963 * valops.c (vb_match): Move to...
11964 * gnu-v2-abi.c (vb_match): here.
11965 * valops.c (baseclass_offset): Move to...
11966 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11967
11968 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11969
11970 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11971 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11972 * hpacc-abi.c (init_hpacc_ops): Likewise.
11973
7f8c9282
DJ
119742002-01-04 Daniel Jacobowitz <[email protected]>
11975
11976 * valops.c (find_overload_match): Accept obj as a
11977 reference parameter. Update it before returning.
11978 * value.h (find_overload_match): Update prototype.
11979 * eval.c (evaluate_subexp_standard): Pass object to
11980 find_overload_match by reference.
11981
f23631e4
AC
119822002-01-03 Andrew Cagney <[email protected]>
11983
11984 * valarith.c: Replace value_ptr with struct value pointer. Remove
11985 register attribute from value declarations.
11986 * valops.c: Ditto.
11987 * value.h: Ditto.
11988 * scm-lang.c (scm_lookup_name): Ditto.
11989
79e10fab 119902002-01-03 Michael Snyder <[email protected]>
abf22e64 11991
79e10fab
AC
11992 Abstract the functionality of iterating over mapped memory
11993 regions into a general purpose iterator function.
abf22e64 11994 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
11995 iterator for memory sections.
11996 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11997 (solib_mappings_callback): New function, callback for above.
11998 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11999 (info_mappings_callback): New function, callback for above.
12000
12001 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12002
c5ad026a
MK
120032002-01-01 Mark Kettenis <[email protected]>
12004
d2a7c97a
MK
12005 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12006 * i386-tdep.c: Include "elf-bfd.h".
12007 (process_note_abi_tag_sections): New function.
12008 (i386_gdbarch_init): Add code to recognize various OS/ABI
12009 combinations.
12010
c5ad026a
MK
12011 * maint.c (_initialize_maint_cmds): Add missing \ in
12012 string-literal.
12013
a1a5b71e 12014For older changes see ChangeLog-2001
c906108c
SS
12015\f
12016Local Variables:
12017mode: change-log
12018left-margin: 8
12019fill-column: 74
12020version-control: never
12021End:
This page took 2.177414 seconds and 4 git commands to generate.