Use bfd_simple_get_relocated_section_contents() instead of bfd_get_section_contents().
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e6e68f1f
JB
12002-11-06 Joel Brobecker <brobecker@gnat.com>
2
3 Put in place the framework necessary for multiarching the hppa targets.
4 * hppa-tdep.c (hppa_gdbarch_init): New function.
5 (hppa_dump_tdep): New function.
6 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
7 tdep structure dumper.
8 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
9 until the multi-arching conversion has partially been completed.
10
492254e9
AC
112002-11-06 Andrew Cagney <ac131313@redhat.com>
12
13 * valops.c (value_assign): Merge lval_register case into
14 lval_reg_frame_relative. Use frame_register and
15 regcache_cooked_write instead of get_saved_register and
16 write_register_bytes. After flushing the register cache, try to
17 re-select the selected frame.
18
8262ee23
AC
192002-11-06 Andrew Cagney <ac131313@redhat.com>
20
21 * regcache.h (deprecated_register_valid): Rename register_valid.
22 * regcache.c: Update.
23 * ia64-aix-nat.c: Update.
24 * i386gnu-nat.c: Update.
25 * alpha-nat.c: Update.
26 * sparc-nat.c: Update.
27 * lynx-nat.c: Update.
28 * remote-mips.c: Update.
29
4facf7e8
JB
302002-11-06 Joel Brobecker <brobecker@gnat.com>
31
32 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
33 to end of file, to be more consistent with the pratice followed
34 by other targets.
35
f9418c0f
AC
362002-11-06 Andrew Cagney <ac131313@redhat.com>
37
38 * infcmd.c: Include "reggroups.h" and <ctype.h>.
39 (print_float_info): Print registers in float_reggroup.
40 (print_vector_info): Print registers in vector_reggroup.
41 (default_print_registers_info): When all, print registers in
42 all_reggroup. Otherwize, print registers in general_reggroup.
43 (registers_info): Rewrite. Add support for register groups.
44 Eliminate a goto.
45
3fe235a7
EZ
462002-11-06 Elena Zannoni <ezannoni@redhat.com>
47
48 * symtab.c (methods_info): Delete. It has been ifdeffed out for
49 ages.
50 (symtab_symbol_info): Remove eons old ifdeffed out code.
51 (_initialize_symtab): Remove prehistoric disabled 'info methods'
52 command.
53
ef944135
TR
542002-11-06 Theodore A. Roth <troth@openavr.org>
55
56 * c-exp.y: Add missing semi-colons.
57 * f-exp.y: Add missing semi-colons.
58 * m2-exp.y: Add missing semi-colons.
59 * p-exp.y: Add missing semi-colons.
60 Add empty action to start rule to avoid a type clash error when
61 building with bison >= 1.50.
62
f8302a57
JB
632002-11-06 Jim Blandy <jimb@redhat.com>
64
65 * macrotab.h (struct macro_source_file): Doc fix.
66
6e382aa3
JJ
672002-11-05 Jeff Johnston <jjohnstn@redhat.com>
68
69 * varobj.c (child_exists, cplus_number_of_children): Change
70 STREQ macro references to strcmp.
71 (cplus_name_of_child): Change code to handle the fact that
72 fields are not necessarily contiguous with regards to their
73 access control. This is a fix for PR gdb/792.
74
a216a322
AC
752002-11-05 Andrew Cagney <ac131313@redhat.com>
76
77 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
78 * gdbarch.h, gdbarch.c: Regnerate.
79 * frame.h (frame_register): Declare.
80 * frame.c (frame_register): New function.
81 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
82 GET_SAVED_REGISTER, otherwize call
83 generic_unwind_get_saved_register.
84 (frame_register_read): Use frame_register instead of
85 get_saved_register.
86
7d5b6fdd
EZ
872002-11-05 Elena Zannoni <ezannoni@redhat.com>
88
89 From Jim Ingham <jingham@apple.com>:
90 * event-top.c (gdb_disable_readline): New function.
91 (_initialize_event_loop): Move comment.
92
b7c64260
EZ
932002-11-05 Elena Zannoni <ezannoni@redhat.com>
94
95 * event-loop.c (start_event_loop): Add comment.
96 Update copyright.
97
c2e1b8f2
AC
982002-11-05 Andrew Cagney <ac131313@redhat.com>
99
100 * infcmd.c (default_print_registers_info): Do not call
101 PRINT_REGISTER_HOOK.
102
87647bb0
AC
1032002-11-05 Andrew Cagney <ac131313@redhat.com>
104
105 * sparc-tdep.c (sparc_print_register_hook): Make static.
106 (sparc_print_registers_info): New function.
107 (sparc_do_registers_info): New function.
108 (sparclet_print_registers_info): New function.
109 (sparclet_do_registers_info): New function.
110 (do_sparc_print_registers_info): New function.
111 (sparc_print_registers): New static function, clone of infcmd.c's
112 default_print_registers_info.
113 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
114 (sparclet_do_registers_info): Declare.
115 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
116 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
117 Re-define.
118 (sparc_do_registers_info): Declare.
119 (PRINT_REGISTER_HOOK): Delete macro.
120 (sparc_print_register_hook): Delete declaration.
121
8155455b
DC
1222002-11-05 David Carlton <carlton@math.stanford.edu>
123
124 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
125 functions.
126 (lookup_symbol_aux_local): New function.
127 (lookup_symbol_aux_symtabs): New function.
128 (lookup_symbol_aux_psymtabs): New function.
129
29924310
DC
1302002-11-05 David Carlton <carlton@math.stanford.edu>
131
132 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
133 previous values of 'objfile' and 'block'.
134
cc303028
PM
1352002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
136
137 * values.c (value_change_enclosing_type): Set
138 enclosing_type field correctly also for the case where
139 more memory needs to be allocated.
140
1d70089a
MK
1412002-11-03 Mark Kettenis <kettenis@gnu.org>
142
f16a25ae
MK
143 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
144 of puts_filtered.
145
1d70089a
MK
146 * i387-tdep.c (i387_print_float_info): Replace calls to
147 register_read and deprecated_read_register_gen with calls to
148 frame_register_read, and make the necessary adjustments to the
149 surrounding code.
150
7e20f3fb
AC
1512002-11-02 Andrew Cagney <ac131313@redhat.com>
152
153 * gdbarch.sh (register_reggroup_p): Allow default value.
154 * gdbarch.h, gdbarch.c: Regenerate.
155
192dbe33
AC
1562002-11-02 Andrew Cagney <ac131313@redhat.com>
157
158 * regcache.h: Add coment indicating replacements for deprecated
159 functions.
160
b59ff9d5
AC
1612002-11-02 Andrew Cagney <cagney@redhat.com>
162
163 * reggroups.h, reggroups.c: New files.
164 * regcache.c: Include "reggroups.h".
165 (enum regcache_dump_what): Add `regcache_dump_groups'.
166 (regcache_dump): Contract size of the "Type" column. When
167 specified, dump the register's groups.
168 (maintenance_print_register_groups): New function.
169 (_initialize_regcache): Add command `maint print register-groups'.
170 * Makefile.in (COMMON_OBS): Add reggroups.o
171 (SFILES): Add reggroups.c.
172 (reggroups_h): Define.
173 (regcache.o, gdbarch.o): Update dependencies.
174 (reggroups.o): Specify dependencies.
175 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
176 Add opaque declaration for `struct reggroup' in generated .h file.
177 Include "reggroups.h" in generated .c file.
178 gdbarch.h, gdbarch.c: Re-generate.
179
4caf0990
AC
1802002-11-02 Andrew Cagney <cagney@redhat.com>
181
182 * regcache.h (deprecated_read_register_gen): Rename
183 read_register_gen.
184 (deprecated_write_register_gen): Rename write_register_gen.
185 * i387-tdep.c: Update.
186 * x86-64-linux-nat.c: Update
187 * wince.c: Update.
188 * thread-db.c: Update.
189 * win32-nat.c: Update.
190 * mips-tdep.c: Update.
191 * d10v-tdep.c: Update.
192 * cris-tdep.c: Update.
193 * remote-sim.c: Update.
194 * remote-rdi.c: Update.
195 * remote-rdp.c: Update.
196 * frame.c: Update.
197 * target.c: Update.
198 * blockframe.c: Update.
199 * x86-64-tdep.c: Update.
200 * xstormy16-tdep.c: Update.
201 * sh-tdep.c: Update.
202 * s390-tdep.c: Update.
203 * rs6000-tdep.c: Update.
204 * sparc-tdep.c: Update.
205 * i386-tdep.c: Update.
206 * dwarf2cfi.c: Update.
207 * regcache.c: Update.
208
7a7adcdf
JB
2092002-11-01 Joel Brobecker <brobecker@gnat.com>
210
211 New interix-specific files:
212 * config/i386/nm-interix.h: New file.
213 * config/i386/interix.mh: New file.
214 * config/i386/interix.mt: New file.
215 * i386-interix-nat.c: New file.
216 * i386-interix-tdep.c: New file.
217
bdcdd535
AC
2182002-11-01 Andrew Cagney <cagney@redhat.com>
219
220 * frame.h (deprecated_generic_get_saved_register): Rename
221 generic_get_saved_register.
222 * blockframe.c (deprecated_generic_get_saved_register): Update.
223 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
224 (xstormy16_frame_saved_register): Update.
225 * sh-tdep.c (sh_gdbarch_init): Update.
226 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
227 * ia64-tdep.c (ia64_get_saved_register): Update.
228 * cris-tdep.c (cris_gdbarch_init): Update.
229 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
230 * arm-tdep.c (arm_gdbarch_init): Update.
231
2a4b7c45
DJ
2322002-10-31 Daniel Jacobowitz <drow@mvista.com>
233
234 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
235
ef17e74b
DJ
2362002-10-31 Daniel Jacobowitz <drow@mvista.com>
237
238 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
239 trampolines in sigaction.
240
4904ba5b
AC
2412002-10-31 Andrew Cagney <cagney@redhat.com>
242
243 * h8300-tdep.c: Include "gdb_assert.h".
244 (h8300_print_register): Add gdbarch, file and frame parameters.
245 Use frame_read_unsigned_register to read the register's value.
246 Use fprintf_filtered to display output.
247 (h8300_print_registers_info): Replace h8300_do_registers_info.
248 (h8300_gdbarch_init): Set print_registers_info.
249
f908a0eb
AC
2502002-10-31 Andrew Cagney <cagney@redhat.com>
251
252 * frame.c (frame_read_unsigned_register): New function.
253 (frame_read_signed_register): New function.
254 * frame.h (frame_read_unsigned_register): Declare.
255 (frame_read_signed_register): Declare.
256
c5646e11
AC
2572002-10-31 Andrew Cagney <cagney@redhat.com>
258
259 * h8500-tdep.c (h8500_print_registers_info): New static function,
260 clone of infcmd.c's default_print_registers_info.
261 (h8500_do_registers_info): New funtion.
262 (h8500_print_register_hook): Rename print_register_hook, make
263 static.
264
265 * config/h8500/tm-h8500.h: Update copyright.
266 (DEPRECATED_DO_REGISTERS_INFO): Define.
267 (h8500_do_registers_info: Declare.
268 (PRINT_REGISTER_HOOK): Delete macro.
269 (print_register_hook): Delete function.
270
0bdd672b
AC
2712002-10-31 Andrew Cagney <cagney@redhat.com>
272
273 * z8k-tdep.c (z8k_print_register_hook): Make static.
274 (z8k_print_registers_info): New static function, clone of
275 infcmd.c's default_print_registers_info.
276 (z8k_do_registers_info): New function. Wrap
277 z8k_print_registers_info.
278 * config/z8k/tm-z8k.h: Update copyright.
279 (PRINT_REGISTER_HOOK): Delete macro.
280 (z8k_print_register_hook): Delete declaration.
281 (DEPRECATED_DO_REGISTERS_INFO): Define.
282 (z8k_do_registers_info): Declare.
283
bf9c25dc
JB
2842002-10-30 Joel Brobecker <brobecker@gnat.com>
285
286 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
287 as this is already provided by value.h, and was actually causing
288 a compilation error because of a conflict in parameter type
289 declaration due to a missing const keyword.
290 (low_text_segment_addres): Fix a compilation warning.
291
2c665b51
DJ
2922002-10-29 Daniel Jacobowitz <drow@mvista.com>
293
294 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
295 registers without a name.
296 (mips_linux_cannot_store_register): Don't store registers without
297 a name.
298
e70ea697
DC
2992002-10-28 David Carlton <carlton@math.stanford.edu>
300
301 * symtab.c (find_addr_symbol): Delete. (It was already commented
302 out.)
303 * symtab.h: Delete prototype for find_addr_symbol.
304
903ad3a6
AC
3052002-10-26 Andrew Cagney <cagney@redhat.com>
306
307 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
308 DO_REGISTERS_INFO.
309 gdbarch.h, gdbarch.c: Re-generate.
310 * infcmd.c (default_print_registers_info): Update reference.
311 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
312 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
313 * sh-tdep.c (sh_gdbarch_init): Ditto.
314 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
315 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
316
ab91194c
MK
3172002-10-26 Mark Kettenis <kettenis@gnu.org>
318
e3033f15
MK
319 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
320 cfi_init_extra_frame_info.
321 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
322 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
323
b83b026c
MK
324 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
325 target where necessary. Add more comments and remove the ones
326 that don't provide any useful information.
327
267bf4bb
MK
328 * i386-tdep.c (i386_frame_saved_pc): Replace call to
329 deprecated_read_register_dummy with
330 frame_unwind_unsigned_register.
331
751f1375
MK
332 * i386-tdep.c (i386_extract_struct_value_address): Use
333 regcache_raw_read_unsigned instead of
334 regcache_cooked_read_unsigned since we know that the register
335 we're reading isn't a pseudo register. Rename variable 'val' into
336 the more descriptive 'addr'.
337
26abbdc4
MK
338 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
339 (x86_64_push_return_address): Add comment.
340 (x86_64_pop_frame): Make static.
341 (examine_argument): Clarify comment.
342 (x86_64_skip_prologue): Make prolog_expact variable static.
343
9f1549cc
MK
344 * dwarf2cfi.c: Fix some formatting problems.
345 (context_cpy, read_encoded_pointer): Clarify comments.
346
ab91194c
MK
347 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
348 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
349 i386 target back into x86_64_gdbarch_init. Add some comments and
350 remove meaningless ones.
351
72367fb4
AC
3522002-10-25 Andrew Cagney <cagney@redhat.com>
353
354 * complaints.h (struct deprecated_complaint): Rename `struct
355 complaint'.
356 * complaints.c (complain): Update.
357 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
358 incorrect comment indicating that "symfile.h" was being included
359 for the `struct complaint' definition.
360 * remote-vx.c: Update.
361 * objc-lang.c: Update.
362 * xcoffread.c: Update.
363 * hpread.c: Update.
364 * mdebugread.c: Update.
365 * stabsread.c: Update.
366 * dwarf2read.c: Update.
367 * dwarfread.c: Update.
368 * elfread.c: Update.
369 * coffread.c: Update.
370 * stabsread.h: Update.
371 * dbxread.c: Update.
372 * buildsym.c: Update.
373 * gdbtypes.c: Update.
374 * macrotab.c: Update.
375
1f2baacc
MK
3762002-10-25 Mark Kettenis <kettenis@gnu.org>
377
0c1a73d6
MK
378 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
379 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
380 (x86_64_init_abi): ...new function.
381
6aee4d54 382 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
383 * i386v-nat.c: Include "i386-tdep.h".
384
8f9cbe01
AC
3852002-10-25 Andrew Cagney <cagney@redhat.com>
386
5f11f355
AC
387 * gdbtypes.c (address_space_name_to_int): Update.
388 (address_space_int_to_name): Update.
389 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
390 multi-arch predicate.
391 (address_class_name_to_type_flags): Ditto.
392 * gdbarch.h, gdbarch.c: Re-generate.
393
8f9cbe01
AC
394 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
395
e8d96a5d
MH
3962002-10-24 Martin M. Hunt <hunt@redhat.com>
397
398 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
399
fe39c653
EZ
4002002-10-24 Elena Zannoni <ezannoni@redhat.com>
401
402 * symtab.h (INIT_SAL): Delete macro.
403 (init_sal): Export.
404 * symtab.c (init_sal): New function.
405
406 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
407 to init_sal function call.
408 (find_sal_from_funcs_and_line): Ditto.
409 (all_sals_for_line): Ditto.
410 * breakpoint.c (create_internal_breakpoint): Ditto.
411 (create_fork_vfork_event_catchpoint): Ditto.
412 (create_exec_event_catchpoint): Ditto.
413 (parse_breakpoint_sals): Ditto.
414 (watch_command_1): Ditto.
415 (handle_gnu_4_16_catch_command): Ditto.
416 (clear_command): Ditto.
417 * hppa-tdep.c (child_enable_exception_callback): Ditto.
418 * infcmd.c (run_stack_dummy): Ditto.
419 * infrun.c (process_event_stop_test): Ditto.
420 (check_sigtramp2): Ditto.
421 (step_over_function): Ditto.
422 * linespec.c (decode_line_2): Ditto.
423 (decode_line_1): Ditto.
424 * source.c (line_info): Ditto.
425 * symtab.c (find_pc_sect_line): Ditto.
426
baed091b
ML
4272002-10-24 Michal Ludvig <mludvig@suse.cz>
428
429 * dwarf2cfi.c (struct context)
430 (struct context_reg): Moved to dwarf2cfi.h
431 (context_alloc, frame_state_alloc, context_cpy):
432 Made extern instead of static, removed prototypes.
433 * dwarf2cfi.h (struct context)
434 (struct context_reg): New, moved from dwarf2cfi.c
435 (context_alloc, frame_state_alloc, context_cpy):
436 New prototypes.
437 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
438 Changed from static to extern.
439 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
440 (LINUX_SIGCONTEXT_FP_OFFSET)
441 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
442 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
443 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
444 * x86-64-tdep.c (x86_64_gdbarch_init): Several
445 set_gdbarch_*() calls now use x86-64 specific functions
446 instead of DWARF2 CFI ones.
447 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
448 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
449 (x86_64_init_extra_frame_info): New prototypes.
450
c38da1af
DC
4512002-10-23 David Carlton <carlton@math.stanford.edu>
452
453 * linespec.c: #include "parser-defs.h".
454 Delete prototype for find_template_name_end.
455 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
456
fb9b6b35
JJ
4572002-10-23 Jeff Johnston <jjohnstn@redhat.com>
458
459 * NEWS: add recent mi fixes.
460 * varobj.c (struct varobj): Add new "updated" flag.
461 (new_variable): Default "updated" flag to 0.
462 (varobj_set_value): Set "updated" flag to 1 if value
463 changes.
464 (varobj_update): Check varobj "updated" flag before
465 comparing old and refreshed values. Fix for
466 PR gdb/702.
467
8da065d5
DC
4682002-10-23 David Carlton <carlton@math.stanford.edu>
469
470 * parse.c (parse_exp_1): Use BLOCK_START.
471 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
472 SYMBOL_BLOCK_VALUE.
473 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
474
87f2f08c
DC
4752002-10-23 David Carlton <carlton@math.stanford.edu>
476
477 * symtab.c: Delete cplusplus_hint.
478 Delete prototype for find_template_name_end.
479
88cda038
EZ
4802002-10-23 Elena Zannoni <ezannoni@redhat.com>
481
482 * symtab.h: Update comment.
483
2625d86c
MS
4842002-10-23 Michael Snyder <msnyder@redhat.com>
485
486 * printcmd.c (address_info): Restore quotes in output.
487 * valops.c (value_of_local): Restore quotes in error message.
488
9cc0d196
EZ
4892002-10-23 Elena Zannoni <ezannoni@redhat.com>
490
491 * symtab.c (symbol_demangled_name): New function.
492 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
493 turning most of it into a function.
494 (symbol_demangled_name): Export.
495
19de93d0
MS
4962002-10-23 Michael Snyder <msnyder@redhat.com>
497
498 * valops.c (value_of_local): Restore quotes in error message.
499
89aad1f9
EZ
5002002-10-23 Elena Zannoni <ezannoni@redhat.com>
501
502 * symtab.c (symbol_init_language_specific): New function.
503 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
504 turning most of it into a function.
505 (symbol_init_language_specific): Export.
506
d9fa45fe
DC
5072002-10-23 David Carlton <carlton@math.stanford.edu>
508
509 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
510 (dwarf_attr_name): Ditto.
511 (dwarf_type_encoding_name): Ditto.
512 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
513 (process_die): Handle DW_TAG_namespace,
514 DW_TAG_imported_declaration, DW_TAG_imported_module.
515 (read_namespace): New function.
516
1045b512
JB
5172002-10-22 Joel Brobecker <brobecker@gnat.com>
518
519 * configure.in: Define NEW_PROC_API on Interix too.
520 * configure: Regenerate.
521
5222002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
523
524 * configure: Regenerate using the proper version of autoconf.
525
3987b9d4
EZ
5262002-10-21 Elena Zannoni <ezannoni@redhat.com>
527
528 * findvar.c (read_var_value): Temporarily disable TLS code, until
529 complete TLS support is added.
530
9d774e44
EZ
5312002-10-21 Jim Blandy <jimb@redhat.com>
532 Elena Zannoni <ezannoni@redhat.com>
533
534 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
535 for thread local storage locations.
536 (struct symbol): Add objfile field.
537 (SYMBOL_OBJFILE): Define.
538 * dwarf2read.c (is_thread_local): New static variable.
539 (new_symbol): If variable is in thread local fill in address class
540 and objfile appropriately.
541 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
542 stack operation.
543 * printcmd.c (address_info): Print the information for thread
544 local storage variable.
545 * findvar.c (read_var_value): In case of thread local variable,
546 defer to the target vector code to compute address.
547
bc4a16ae
EZ
5482002-10-21 Elena Zannoni <ezannoni@redhat.com>
549
550 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
551 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
552
407caf07
EZ
5532002-10-21 Elena Zannoni <ezannoni@redhat.com>
554
555 * symtab.h (address_class): Rename
556 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
557 * hpread.c (hpread_process_one_debug_symbol): Ditto.
558 * printcmd.c (address_info): Ditto.
559 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
560
005328e3
MK
5612002-10-20 Mark Kettenis <kettenis@gnu.org>
562
afdb036a
MK
563 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
564 DBREG_DRX macro to acces debug registers.
565
ca02e098
MK
566 * Makefile.in (i386obsd-tdep.o): New target.
567
03cc47f7
MK
568 * solib-sunos.c: Include "bcache.h" and "regcache.h".
569 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
570
005328e3
MK
571 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
572 * config/i386/obsd.mt: New file.
573 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
574 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
575 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
576 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
577 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
578 * i386obsd-tdep.c: New file.
579
9c96f9f2
AF
5802002-10-19 Adam Fedor <fedor@gnu.org>
581
582 * objc-exp.y (name_not_typename): Fix invalid comment.
583
ce1ed485
MK
5842002-10-20 Mark Kettenis <kettenis@gnu.org>
585
586 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
587 to allocate partial syms and macro byte caches.
588
1efc7aaa
DC
5892002-10-18 David Carlton <carlton@math.stanford.edu>
590
591 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
592
7e1d63ec
AF
5932002-10-18 Adam Fedor <fedor@gnu.org>
594
595 * stabsread.c (find_name_end): New function.
596 (define_symbol): Use it.
597
6e8d29a9
DJ
5982002-10-18 Daniel Jacobowitz <drow@mvista.com>
599
600 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
601 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
602 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
603 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
604
1efc7aaa 6052002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
606
607 * symfile.h: Add opaque declaration for struct obstack.
608 Declare obsavestring to take a const char *.
609 * symfile.c (obsavestring): Make first argument a const char *.
610
1aeae86e
AF
6112002-10-16 Adam Fedor <fedor@gnu.org>
612
613 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
614 names when matching breakpoints in current file.
615
8b2dbe47
KB
6162002-10-16 Kevin Buettner <kevinb@redhat.com>
617
618 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
619 (read_tag_pointer_type): Add address class support.
620 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
621 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
622 New methods.
623 * gdbarch.h, gdbarch.c: Regenerate.
624 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
625 (make_type_with_address_space, recursive_type_dump): Add address
626 class support.
627 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
628 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
629 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
630
74451869
KD
6312002-10-16 Klee Dienes <kdienes@apple.com>
632
633 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
634 to get the last character of a char[] buffer, not
635 name[sizeof(vptr_name)-1].
636
ff4cb3e8
AF
6372002-10-14 Adam Fedor <fedor@gnu.org>
638
639 * symtab.h: New objc_specific struct.
640 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
641 (SYMBOL_DEMANGLED_NAME): Likewise.
642
da2cf7e0
AF
6432002-10-14 Adam Fedor <fedor@gnu.org>
644
645 * symfile.c (init_filename_language_table): Add ObjC file extension.
646
4a351cef
AF
6472002-10-14 Adam Fedor <fedor@gnu.org>
648
649 * utils.c (puts_filtered_tabular): New function.
650 (fprintf_symbol_filtered): Get ObjC demangled name.
651 * defs.h (puts_filtered_tabular): Declared.
652
9750e763
KB
6532002-10-14 Kevin Buettner <kevinb@redhat.com>
654
655 * c-lang.h (c_type_print_varspec_prefix): Delete.
656 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
657 ``need_post_space'' parameter. Adjust all callers.
658
eee771c1
DJ
6592002-10-14 Daniel Jacobowitz <drow@mvista.com>
660
661 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
662 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
663 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
664 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
665
46c82446
AF
6662002-10-13 Adam Fedor <fedor@gnu.org>
667
668 * source.c (print_source_lines): Update comments.
669
d069f99d
AF
6702002-10-13 Adam Fedor <fedor@gnu.org>
671
672 * valops.c (value_of_local): New function.
673 (value_of_this): Use it.
674 * value.h (value_of_local): Declared.
675
53c551b7
AF
6762002-10-13 Adam Fedor <fedor@gnu.org>
677
678 * parse.c: (length_of_subexp, prefixify_subexp): Handle
679 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
680
eb392fbf
AF
6812002-10-12 Adam Fedor <fedor@gnu.org>
682
683 * language.c (binop_result_type): Add language_objc to case.
684 (integral_type): Likewise.
685 (character_type): Likewise.
686 (string_type): Likewise.
687 (boolean_type): Likewise.
688 (structured_type): Likewise.
689 (binop_type_check): Likewise.
690
e2b23ee9
AF
6912002-10-11 Adam Fedor <fedor@gnu.org>
692
693 * printcmd.c (address_info): Print 'self' for ObjC.
694
b01ab485
AF
6952002-10-11 Adam Fedor <fedor@gnu.org>
696
697 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
698 OP_SELF.
699
806e6073
AF
7002002-10-11 Adam Fedor <fedor@gnu.org>
701
702 * language.h (CAST_IS_CONVERSION): Add language_objc.
703
50f85cdf
AF
7042002-10-11 Adam Fedor <fedor@gnu.org>
705
706 * defs.h (enum language): Add language_objc.
707
0d540cdf
KD
7082002-10-11 Klee Dienes <kdienes@apple.com>
709
69266111 710 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
711 * gdbcore.h (read_memory_typed_address): Add prototype.
712 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
713 to read a value destined for a CORE_ADDR, not read_memory_integer.
714 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
715 (f77_get_dynamic_lowerbound): Ditto.
716
d5dc7960
MH
7172002-10-11 Martin M. Hunt <hunt@redhat.com>
718
719 * utils.c (string_to_core_addr): After turning string into
720 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
721 which will do necessary sign-extension, etc.
722
8343f86c
DJ
7232002-10-11 Daniel Jacobowitz <drow@mvista.com>
724
725 * c-exp.y (THIS): Delete token and grammar rule.
726 (yylex): Don't return THIS.
727 * cp-valprint.c (vtbl_ptr_name_old): Delete.
728 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
729 * demangle.c (cplus_markers): Update comment. Put '$'
730 first. Remove CPLUS_MARKER.
731 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
732 * jv-exp.y (THIS): Delete token and grammar rule.
733 (yylex): Don't return THIS.
734 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
735 * objc-exp.y (THIS): Delete token and grammar rule.
736 (yylex): Don't return THIS.
737 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
738 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
739 (read_member_functions): Likewise for opname.
740 (read_tilde_fields): Use is_cplus_marker.
741
742 * defs.h (CPLUS_MARKER): Don't define.
743 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
744 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
745 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
746 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
747 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
748
749 * config/i386/tm-i386v4.h: Delete file.
750 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
751 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
752 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
753 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
754 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
755 * config/i386/i386sco5.mt (TM_FILE): Likewise.
756 * config/i386/i386v4.mt (TM_FILE): Likewise.
757 * config/i386/ncr3000.mt (TM_FILE): Likewise.
758
967c0d83
MM
7592002-10-10 Marko Mlinar <markom@opencores.org>
760
761 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
762 accidentially not commited 2002-10-09
763 * gdbarch.h, gdbarch.c: Re-generate.
764
f74fa174
MM
7652002-10-09 Marko Mlinar <markom@opencores.org>
766
767 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
768 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
769 * gdbarch.h, gdbarch.c: Re-generate.
770
57349743
JB
7712002-10-08 Petr Sorfa <petrs@caldera.com>
772
773 Revised and re-submitted by John Wolfe <jlw@caldera.com>
774
775 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
776 so we can work on more than one compilation unit at a time. This
777 helps prepare GDB to handle inter-CU die references.
778 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
779 the code to be defined before struct comp_unit_head.
780 (comp_unit_head): Added new members - offset, cu_head,
781 begin_die, next and dwarf2_abbrevs.
782 (dwarf2_abbrevs): Removed single static var; now member of
783 struct comp_unit_head.
784 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
785 members.
786 (psymtab_to_symtab_1): Changed to work with the new
787 struct comp_unit_head.
788 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
789 constructs the dwarf2_abbrevs[] inside the cu_header.
790 (dwarf2_empty_abbrev_table): Now expects a ptr to a
791 dwarf2_abbrev table to clean up.
792 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
793 handling of dwarf2_abbrevs inside the cu_header.
794 (read_partial_die): Now supports the call to the new
795 dwarf2_lookup_abbrev.
796 (read_full_die): Now supports the call to the new
797 dwarf2_lookup_abbrev.
798
4092aadb
CF
7992002-10-06 Christopher Faylor <cgf@redhat.com>
800
801 * Makefile.in (install-gdbtk): Add missing continuation backslash to
802 insure that shell variables, such as "transformed_name" are propagated
803 to later shell statements in rule.
804
af0b2512
MK
8052002-10-06 Mark Kettenis <kettenis@gnu.org>
806
807 * config/i386/nm-i386sco.h: Add protection against
808 multiple-inclusion. Include "i386/nm-i386v.h".
809 (REGISTER_U_ADDR): Remove define.
810 (i386_register_u_addr): Remove prototype.
811
d6020d45
MS
8122002-10-04 Michael Snyder <msnyder@redhat.com>
813
814 * m32r-stub.c (handle_exception): Make sure exception is "trap"
815 before treating it as a single-step event.
816
7248f48e
AF
8172002-10-03 Adam Fedor <fedor@gnu.org>
818
819 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
820 (objc_demangle): Remove assignment in if statements, Replace
821 free with xfree.
822 (add_msglist): Likewise.
823 (end_msglist): Likewise.
824 (complare_selectors): Likewise.
825 (selectors_info): Likewise.
826 (compare_classes): Likewise.
827 (classes_info): Likewise.
828 (print_object_command): Likewise.
829 (find_objc_msgcall_submethod): Replace PTR with void *.
830 * objc-lang.h: Remove check for __STDC__.
831
52c6a6ac
JJ
8322002-10-03 Jeff Johnston <jjohnstn@redhat.com>
833
834 * ui-out.h (ui_out_field_fmt_int): New prototype.
835 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
836 of field width and alignment.
837 * stack.c (print_frame_info_base): When printing frame level, use
838 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
839 PR gdb/192
840
7e3cec17
JJ
8412002-10-03 Jeff Johnston <jjohnstn@redhat.com>
842
843 * MAINTAINERS: Add self to Write After Approval list.
844
a58dd373
EZ
8452002-10-02 Elena Zannoni <ezannoni@redhat.com>
846
847 * infcmd.c (interrupt_target_command_wrapper): Delete.
848 (interrupt_target_command): Make non static.
849 (nofp_registers_info): Make static.
850 * stack.c (return_command_wrapper): Delete.
851 (return_command): Make non static.
852
cee6ddeb
EZ
8532002-10-02 Elena Zannoni <ezannoni@redhat.com>
854
855 * event-top.c (gdb_setup_readline): New function. Code moved from
856 _initialize_event_loop().
857 (_initialize_event_loop): Call gdb_setup_readline().
858
c4ed33b9
AC
8592002-10-02 Andrew Cagney <ac131313@redhat.com>
860
861 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
862 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
863 * gdbarch.h, gdbarch.c: Re-generate.
864
cef4f5dd
DJ
8652002-10-02 Daniel Jacobowitz <drow@mvista.com>
866
867 Fix PR gdb/778
868 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
869 before recursing.
870 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
871 of fill_in_vptr_fieldno.
872
36dc181b 8732002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 874
36dc181b
EZ
875 * inferior.h (registers_info, stepi_command, nexti_command,
876 continue_command, interrupt_target_command): Export from infcmd.c.
877 * frame.h (args_info, selected_frame_level_changed_hook,
878 return_command): Export from stack.c.
879 * v850ice.c (stepi_command, nexti_command, continue_command): use
880 prototypes from inferior.h.
881 * tracepoint.c (registers_info, args_info, locals_info): Use
882 prototypes from frame.h and inferior.h.
883 * Makefile.in (mi-main.o): Add dependency on frame.h.
884
6f99cb26
AC
8852002-10-02 Andrew Cagney <ac131313@redhat.com>
886
da3eff49
AC
887 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
888 value in register 3 adjusted by ppc_gp0_regnum.
889
6f99cb26
AC
890 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
891
da615bee
MM
8922002-10-02 Marko Mlinar <markom@opencores.org>
893
894 * MAINTAINERS: Add myself to the Write After Approval list.
895
d154bee2
AO
8962002-10-01 Alexandre Oliva <aoliva@redhat.com>
897
62a49b2c
AO
898 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
899 of the section for the N64 ABI, fixed.
900
d154bee2
AO
901 * config/mips/tm-irix6.h: Include solib.h.
902
ed348acc
EZ
9032002-10-01 Elena Zannoni <ezannoni@redhat.com>
904
905 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
906 GNU operators.
907
da0f9dcd
AC
9082002-10-01 Andrew Cagney <ac131313@redhat.com>
909
910 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
911 and that "mi0" syntax has been removed.
912
bdf64bac
DC
9132002-09-30 David Carlton <carlton@math.stanford.edu>
914
915 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
916 * ppc-sysv-tdep.c: #include "gdb_string.h".
917 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
918 pacify GCC.
919
54c2a1e6
AC
9202002-10-01 Andrew Cagney <ac131313@redhat.com>
921
922 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
923 "vrsave"'s register number.
924
cedea778
AC
9252002-09-30 Andrew Cagney <ac131313@redhat.com>
926
927 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
928 use frame_unwind_signed_register to obtain the PC.
929 (mips_frame_chain): Handle a generic dummy frame.
930 (mips_init_extra_frame_info): When a generic dummy frame, don't
931 re-compute the frame base.
932 (mips_pop_frame): Handle generic dummy frames.
933 (mips_gdbarch_init): When generic dummy frames, set
934 use_generic_dummy_frames, push_dummy_frame to
935 generic_push_dummy_frame, pc_in_call_dummy to
936 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
937 generic_save_dummy_frame_tos.
938
68315eb8
AC
9392002-09-30 Andrew Cagney <ac131313@redhat.com>
940
941 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
942 against TOP when TOP was explictly set.
943 (generic_push_dummy_frame): Set TOP to zero.
944
3b8630c3
EZ
9452002-09-30 Elena Zannoni <ezannoni@redhat.com>
946
947 * event-loop.c (start_event_loop): Rename variable 'result' to
948 'gdb_result', to avoid conflicts with upcoming intepreters changes.
949
28ee05e9
KS
9502002-09-30 Keith Seitz <keiths@redhat.com>
951
952 * gdb-events.sh (selected_thread_changed): New event.
953 * gdb-events.c: Regenerated.
954 * gdb-events.h: Regenerated.
955
6eecb1c8
HPN
9562002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
957
958 * MAINTAINERS: Add self to Write After Approval list.
959
92df71f0
FN
9602002-09-30 Fernando Nasser <fnasser@redhat.com>
961
3b8630c3
EZ
962 * disasm.c: New file.
963 * disasm.h: New file.
92df71f0
FN
964 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
965 (compare_lines): Ditto.
966 (dump_insns): Ditto.
3b8630c3
EZ
967 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
968 argument.
92df71f0 969 (do_assembly_only): Ditto.
3b8630c3
EZ
970 (do_disassembly): Renamed to gdb_disassembly and moved to
971 disasm.c. Sdded uiout argument.
972 * Makefile.in: Add new files. Reorder SFILES list. Update
973 dependencies. Include libgdb.a later in the insight executable.
92df71f0 974
0c22854d
AC
9752002-09-29 Andrew Cagney <ac131313@redhat.com>
976
977 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
978 bfd/elf64-alpha-fbsd.c.
979
e67f2023
AC
9802002-09-29 Andrew Cagney <ac131313@redhat.com>
981
982 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
983 i386gnu-tdep.c.
984
89396210
AC
9852002-09-29 Andrew Cagney <ac131313@redhat.com>
986
987 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
988 __FUNCTION__.
989 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
990 function name.
991 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
992 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
993 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
994 (S_msg_sig_post_reply): Ditto.
995
7079c36c
CV
9962002-09-28 Corinna Vinschen <vinschen@redhat.com>
997
89396210
AC
998 * sh-tdep.c (sh_use_struct_convention): Use definition according
999 to ABI.
7079c36c
CV
1000 (sh_push_arguments): Store in register with correct endianess.
1001 (sh_default_store_return_value): Ditto.
1002 (sh_gdbarch_init): Set sizeof long double to 8.
1003
975ac915
MK
10042002-09-27 Mark Kettenis <kettenis@gnu.org>
1005
1006 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1007 Fix some whitespace problems.
1008
9bbe19fb
DC
10092002-09-27 David Carlton <carlton@math.stanford.edu>
1010
1011 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1012 (mcore-tdep.o): Ditto.
1013 (ns32k-tdep.o): Ditto.
1014 (ns32knbsd-tdep.o): Ditto.
1015 (sh3-rom.o): Ditto.
1016 (vax-tdep.o): Ditto.
1017 * cris-tdep.c: #include "gdb_string.h"
1018 * mcore-tdep.c: Ditto.
1019 * ns32k-tdep.c: Ditto.
1020 * ns32knbsd-tdep.c: Ditto.
1021 * sh3-rom.c: Ditto.
1022 * vax-tdep.c: Ditto.
1023
43b2fdc7
DC
10242002-09-27 David Carlton <carlton@math.stanford.edu>
1025
1026 * config/djgpp/fnchange.lst: Add entries for
1027 gdb/testsuite/gdb.c++/m-static files.
1028
e8cfbbd9
JW
10292002-09-27 Jim Wilson <wilson@redhat.com>
1030
1031 * MAINTAINERS: Add myself to the Write After Approval list.
1032
43b2fdc7 10332002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
1034
1035 * mips-tdep.c (find_proc_desc): Initialize startaddr.
1036
1037
9f3b7f07
AC
10382002-09-26 Andrew Cagney <ac131313@redhat.com>
1039
1040 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1041 frame.
1042
11269d7e
AC
10432002-09-26 Andrew Cagney <ac131313@redhat.com>
1044
1045 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1046 (rs6000_struct_return_address): Delete variable.
1047 (rs6000_store_struct_return): Update.
1048 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1049 deprecated_extract_struct_value_address.
1050 (rs6000_frame_align): New function.
1051 (rs6000_gdbarch_init): Set frame_align.
1052
f15ab4a7
AC
10532002-09-26 Andrew Cagney <ac131313@redhat.com>
1054
1055 From Grace Sainsbury <graces@redhat.com>:
1056 * Makefile.in (gdbtk-main.o): New target.
1057 (gdb.o): New target.
1058 (main_h): Define.
1059 (main.o): Update dependencies.
1060 (gdb$(EXEEXT)): Add gdb.o.
1061 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1062 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1063 (SUBDIR_GDBTK_CLEAN): Set.
1064 (install-gdbtk): Install the insight binary.
1065 (uninstall-gdbtk): New target.
1066 (all-gdbtk, clean-gdbtk): New rule.
1067 * top.c (use_windows): Default to zero.
1068 * main.c: Include "main.h".
1069 (main): Delete.
1070 (struct captured_main_args): Delete.
1071 (gdb_main): New function.
1072 * main.h: New file.
1073 * gdb.c: New File.
1074
e36180d7
AC
10752002-09-25 Andrew Cagney <cagney@redhat.com>
1076
1077 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1078 (frame_map_regnum_to_name): New function.
1079 (frame_map_name_to_regnum): New function.
1080 * frame.h (frame_map_name_to_regnum): Declare.
1081 (frame_map_regnum_to_name): Declare.
1082 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1083 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1084 * parse.c: Do not include "builtin-regs.h".
1085 (target_map_name_to_register): Delete function.
1086 (write_dollar_variable): Use frame_map_name_to_regnum.
1087 * parser-defs.h (target_map_name_to_register): Delete declaration.
1088 * expprint.c: Include "frame.h".
1089 (print_subexp): Use frame_map_regnum_to_name.
1090 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1091 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1092
8b69000d
AC
10932002-09-25 Andrew Cagney <ac131313@redhat.com>
1094
1095 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1096 wasn't saved, and the next innermost frame is a dummy, return the
1097 dummy frame's link register.
1098
046ca86a
JB
10992002-09-24 Jim Blandy <jimb@redhat.com>
1100
1101 Fix from Paul Breed:
1102 * main.c (captured_main): Add a `break' after the case for 'b'.
1103
94b66fa7
KS
11042002-09-24 Keith Seitz <keiths@redhat.com>
1105
1106 * varobj.c (c_type_of_child): Use get_target_type instead
1107 of TYPE_TARGET_TYPE.
1108
c214a6fd
FN
11092002-09-22 Fernando Nasser <fnasser@redhat.com>
1110
53cb0458
FN
1111 * source.c (get_current_or_default_source_symtab_and_line): Remove
1112 function.
1113 (set_default_source_symtab_and_line): New function. Attempts to
1114 determine a source file to list lines from if one is not currently
1115 defined.
1116 (get_current_source_symtab_and_line): Initialize sal.pc and
1117 sal.end fields.
1118 (set_current_source_symtab_and_line): Mark argument as const.
1119 * source.h: Update declarations and comments.
1120 * linespec.c (decode_line_1): Replace call to removed routine above.
1121 * stack.c (print_frame_info_base): Ditto.
1122 * cli/cli-cmds.c (edit_command): Ditto.
1123 (list_command): Ditto.
1124
11252002-09-22 Fernando Nasser <fnasser@redhat.com>
1126
d6020d45 1127 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 1128 sal.pc and sal.end fields.
c214a6fd
FN
1129 (get_current_or_default_source_symtab_and_line): Ditto.
1130 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1131 so we do not cause a new source symtab to be searched for (reverting an
1132 unintentional change from the 2002-09-20 patch).
1133 * scm-lang.c (scm_unpac): Ditto.
1134
cc3b68a5
AC
11352002-09-21 Andrew Cagney <cagney@redhat.com>
1136
1137 * complaints.c (symfile_explanations): Remove new-line from
1138 ``isolated_message''.
1139 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1140 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1141
5835abe7
NC
11422002-09-20 Nick Clifton <nickc@redhat.com>
1143
1144 * NEWS: Announce that V850EA ISA is no longer supported.
1145 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1146
a15ef5f5
DC
11472002-09-20 David Carlton <carlton@math.stanford.edu>
1148
06ba1b39
DC
1149 * Makefile.in (c-lang.o): Correct dependencies.
1150 (utils.o): Gather dependencies.
1151 (charset.o): Move.
a15ef5f5
DC
1152 * c-lang.c: #include "gdb_string.h"
1153
87885426
FN
11542002-09-20 Fernando Nasser <fnasser@redhat.com>
1155
1156 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1157 * cli/cli-cmds.c (list_command): New function. Implements the new
1158 cli edit command.
1159 (_init_cli_cmds): Add new command definition.
1160 * gdb.1: Document edit command.
1161 * doc/gdb.texinfo: Document edit command.
1162
11632002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
1164
1165 * source.c: Make global variables current_source_symtab and
1166 current_source_line static.
1167 (list_command): Moved to cli/cli-cmds.c.
1168 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1169 (get_first_line_listed): New accessor function.
1170 (get_lines_to_list): New accessor function.
1171 (get_current_source_symtab_and_line): New function. Retrieves the
1172 position in the source code that we consider current.
1173 (get_current_or_default_source_symtab_and_line): New function.
1174 Like the above but attempts to determine a default position if one
1175 is not currently defined.
1176 (set_current_source_symtab_and_line): New function. Sets the source
1177 code position considered current and returns the previously set one.
1178 (clear_current_source_symtab_and_line): Reset stored information about
1179 a current source line.
1180 (_initialize_source): Remove registration for the "list" command and
1181 its alias.
1182 * source.h: Add declarations for the new functions above.
1183 * symtab.h: Remove declarations for the global variables mentioned
1184 above.
1185 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1186 obtain current source line.
1187 * linespec.c (decode_line_1): Ditto.
1188 * macroscope.c (default_macro_scope): Ditto.
1189 * scm-lang.c (scm_unpac): Ditto.
1190 * stack.c (print_frame_info_base): Ditto.
1191 * symfile.c (clear_symtab_users): Ditto.
1192 * symtab.c (decode_line_spec): Ditto.
1193 * cli/cli-cmds.c (list_command): Moved here from source.c.
1194 (ambiguous_line_spec): Moved here from source.c.
1195 (_init_cli_cmds): Add definition for "list" and its alias.
1196 * Makefile.in: Update dependencies.
1197
ddd216ea
CV
11982002-09-20 Corinna Vinschen <vinschen@redhat.com>
1199
1200 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1201 with what gcc thinks is correct.
1202
6d305052
CV
12032002-09-20 Corinna Vinschen <vinschen@redhat.com>
1204
1205 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1206 multiple register push instruction.
1207
234b45d4
KB
12082002-09-19 Jim Blandy <jimb@redhat.com>
1209
1210 Add support for distinct host and target character sets.
1211 * charset.c, charset.h: New files.
1212 * c-exp.y: #include "charset.h".
1213 (yylex): Convert character and string literals to the target
1214 character set, before returning them as the semantic value of the
1215 token.
1216 * c-lang.c: #include "charset.h".
1217 (c_emit_char): Use charset-specific methods to recognize
1218 characters with backslash escape forms, to decide which characters
1219 to print literally and which to print using numeric escape
1220 sequences, and to convert target characters to host characters
1221 before printing.
1222 * utils.c: #include "charset.h".
1223 (no_control_char_error): New function.
1224 (parse_escape): Use charset-specific methods to recognize
1225 backslash escapes, parse `control character' notation, and convert
1226 characters from the host character set to the target character set.
1227 * configure.in: Set the default host character set.
1228 Check where to find iconv, and what its argument types might be.
1229 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1230 * Makefile.in (SFILES): List charset.c.
1231 (COMMON_OBS): List charset.o.
1232 (charset.o): New rule.
1233 (charset_h): New header dependency variable.
1234 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1235 (LIBICONV): New variable, set by configure.
1236 (CLIBS): Include $(LIBICONV) here.
1237 * aclocal.m4, config.in, configure: Regenerated.
1238
525d6a61
JB
12392002-09-19 Joel Brobecker <brobecker@gnat.com>
1240
1241 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1242 bison 1.35 warning.
1243
3ed93867
RE
12442002-09-19 Richard Earnshaw <rearnsha@arm.com>
1245
1246 * gdb_mbuild.sh: New file.
1247
437666f8
AC
12482002-09-19 Andrew Cagney <ac131313@redhat.com>
1249
1250 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1251
389e51db
AC
12522002-09-18 Andrew Cagney <ac131313@redhat.com>
1253
1254 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1255 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1256 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1257 valops.c, value.h: Revert previous change.
1258
3b4efeaa
MS
12592002-09-18 Michael Snyder <msnyder@redhat.com>
1260
1261 Preliminary support for Objective-C:
1262 * defs.h (language_objc): New enum value.
1263 (puts_filtered_tabular): Declaration only, exported from utils.c.
1264 (skip_quoted): Delete, declared in completer.h.
1265 * c-exp.y: Include completer.h.
1266 * p-exp.y: Ditto.
1267 * jv-exp.y: Ditto.
1268 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1269 New operator enum values.
1270 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1271 * language.c (binop_result_type): Handle language_objc case.
1272 (integral_type, character_type, string_type, boolean_type,
1273 structured_type, binop_type_check): Ditto.
1274 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1275 (struct objc_specific): Add to general_symbol_info.
1276 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1277 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1278 * parser-defs.h (struct objc_class_str): New struct type.
1279 (start_msglist, end_msglist, add_msglist): Declaration only,
1280 exported from objc-lang.c.
1281 * value.h (value_of_local, value_nsstring,
1282 call_function_by_hand_expecting_type): Exported from valops.c.
1283 * valops.c (find_function_addr): Export.
1284 (call_function_by_hand_expecting_type): New function.
1285 (value_of_local): New function.
1286 * symfile.c (init_filename_language_table): Add ".m" extension
1287 for Objective-C.
1288 * utils.c (puts_filtered_tabular): New function.
1289 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1290 (set/show demangle): Extend help-string to refer to ObjC.
1291 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1292 * stabsread.c (symbol_reference_defined): Objective-C symbols
1293 may contain colons: make allowances when scanning stabs strings
1294 for colons.
1295 (objc_find_colon): New function.
1296 * printcmd.c (address_info): If language == objc then print
1297 "self" instead of "this".
1298 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1299 OP_NSSTRING, and OP_SELF.
1300 (prefixify_subexp): Ditto.
1301 * source.c (print_source_lines): Mention objc in comment.
1302 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1303 method names.
1304
b9caf505
AC
13052002-09-18 Andrew Cagney <ac131313@redhat.com>
1306
1307 * complaints.h: Update copyright.
1308 (struct complaints): Declare.
1309 (struct complaint): Make `message' constant.
1310 (internal_complaint): Declare.
1311 (complaint): Declare.
1312 (complaint_root): Delete declaration.
1313 (symfile_complaints): Delete declaration.
1314 (struct complaints): Add opaque declaration.
1315 (clear_complaints): Add a complaints parameter.
1316 * complaints.c: Update copyright.
1317 (enum complaint_series): Define.
1318 (complaint_root): Delete.
1319 (struct complaints): Define.
1320 (complaint_sentinel, symfile_complaint_book): New variables.
1321 (symfile_explanations, symfile_complaints): New variables.
1322 New variables.
1323 (get_complaints): New function.
1324 (vcomplaint): New function.
1325 (complaint): New function.
1326 (internal_complaint): New function.
1327 (complain): Call vcomplain with symfile_complaint.
1328 (clear_complaints): Rewrite.
1329 (_initialize_complaints): Use add_setshow_command.
1330 * Makefile.in (complaints.o): Update dependencies.
1331 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1332 to call to clear_complaints.
1333 (new_symfile_objfile, reread_symbols): Ditto.
1334 (oldsyms_complaint): Delete.
1335 (empty_symtab_complaint, unknown_option_complaint): Delete.
1336 (free_named_symtabs): Use complaint instead of complain.
1337
d2e6263c
MS
13382002-09-18 Michael Snyder <msnyder@redhat.com>
1339
5fb2031a
AC
1340 Contributed by Apple Computer, Inc. Merged with current sources
1341 by Adam Fedor <fedor@doc.com> [cagney].
1342
d2e6263c
MS
1343 * objc-lang.c: First clean-up round: comments, indentation.
1344 * objc-lang.h: Ditto.
1345 * objc-lang.y: Ditto.
1346
dec43320
AC
13472002-09-18 Andrew Cagney <ac131313@redhat.com>
1348
1349 * maint.c (maintenance_internal_error): Print the parameter as the
1350 error message.
1351 (maintenance_internal_warning): New function.
1352 (_initialize_maint_cmds): Add command `maint internal-warning'.
1353
1354 * defs.h (internal_warning, internal_vwarning): Declare.
1355 * utils.c (struct internal_problem): Define.
1356 (internal_vproblem): New function.
1357 (internal_warning): New function.
1358 (internal_vwarning): New function.
1359 (internal_warning_problem, internal_error_problem): New variables.
1360 (internal_verror): Just call internal_vproblem.
1361
b81654f1
MS
13622002-09-18 Michael Snyder <msnyder@redhat.com>
1363
1364 * objc-lang.c: New file, support for Objective-C.
1365 Preliminary check-in, not yet integrated into gdb.
1366 * objc-lang.h: New file.
1367 * objc-exp.y: New file.
1368
0542c381
AC
13692002-09-18 Andrew Cagney <ac131313@redhat.com>
1370
7bda5e4a
AC
1371 * infrun.c (signal_stop_update): Convert definition to ISO C.
1372 (signal_print_update): Ditto.
1373 (signal_pass_update): Ditto.
1374 * inflow.c (terminal_save_ours): Ditto.
1375
5247b418
AC
1376 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1377 comments.
1378
fc60962c
AC
1379 * config/djgpp/fnchange.lst: Handle name clashes between
1380 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1381 bfd/coff-tic80.c.
1382
0542c381
AC
1383 * i386-linux-tdep.h: Fix tipo.
1384
5b924b9b
AF
13852002-09-18 Adam Fedor <fedor@gnu.org>
1386
1387 * MAINTAINERS: Add myself to the Write After Approval list.
1388
5afc051b
JB
13892002-09-18 Jim Blandy <jimb@redhat.com>
1390
1391 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1392 texthigh and textlow to reader-specific structs caused
1393 objfile_relocate to miss them. This is fixable, but the work that
1394 the change was supposed to prepare GDB for never got done anyway.
1395
eb944380
DC
13962002-09-18 David Carlton <carlton@math.stanford.edu>
1397
1398 * MAINTAINERS: Alphabetize Write After Approval list.
1399
948e66d9
DJ
14002002-09-18 Daniel Jacobowitz <drow@mvista.com>
1401
1402 Fix PR gdb/709
1403 * values.c (value_static_field): Call read_var_value.
1404
dc604539
AC
14052002-09-18 Andrew Cagney <ac131313@redhat.com>
1406
1407 * valops.c (hand_function_call): Align the initial stack pointer
1408 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1409 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1410 return value.
1411 * mips-tdep.c (mips_frame_align): New function.
1412 (mips_gdbarch_init): Set frame_align.
1413 * gdbarch.sh (FRAME_ALIGN): New method.
1414 * gdbarch.h, gdbarch.c: Re-generate.
1415
cb7e422f
ML
14162002-09-18 Michal Ludvig <mludvig@suse.cz>
1417
1418 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1419 registers.
1420
a094c6fb
AC
14212002-09-17 Andrew Cagney <ac131313@redhat.com>
1422
1423 * NEWS: Mention that MIPS $fp behavior changed.
1424 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1425 reference to FP_REGNUM.
1426 (mipsnbsd_cannot_store_register): Ditto.
1427 * mips-linux-nat.c: Update copyright.
1428 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1429 (mips_linux_cannot_store_register): Ditto.
1430 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1431 * config/mips/tm-mips.h: Update copyright.
1432 (FP_REGNUM): Delete macro.
1433 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1434 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1435 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1436 (mips_r3041_reg_names, mips_r3051_reg_names)
1437 (mips_r3081_reg_names): Replace "fp" with "".
1438 Fix PR gdb/480.
1439
45cf40d1
TR
14402002-09-17 Theodore A. Roth <troth@verinet.com>
1441
1442 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1443 generic_read_register_dummy() (PR gdb/703).
1444 (avr_push_return_address): #if 0 out unused vars.
1445 (avr_gdbarch_init): Enable use of avr_push_return_address().
1446
c7e701b5
MS
14472002-09-17 Michael Snyder <msnyder@redhat.com>
1448
d76ba2a5 1449 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
1450 RTE will take care of it.
1451
20bcf01c
AC
14522002-09-17 Andrew Cagney <ac131313@redhat.com>
1453
1454 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1455 invalid, return SP_REGNUM.
1456
009a9971 14572002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
1458
1459 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1460 point registers without sign extension.
1461
135c175f
AC
14622002-09-17 Andrew Cagney <cagney@redhat.com>
1463
1464 * blockframe.c (deprecated_read_register_dummy): Rename
1465 generic_read_register_dummy.
1466 * frame.c (frame_unwind_signed_register): New function.
1467 (frame_unwind_unsigned_register): New function.
1468 * frame.h (frame_unwind_signed_register): Declare.
1469 (frame_unwind_unsigned_register): Declare.
1470 (deprecated_read_register_dummy): Rename
1471 generic_read_register_dummy.
1472
1473 * h8300-tdep.c (h8300_frame_chain): Update.
1474 (h8300_frame_saved_pc): Update.
1475 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1476 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1477 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1478 (s390_frame_chain): Update.
1479 * v850-tdep.c (v850_find_callers_reg): Update.
1480 (v850_frame_saved_pc): Update.
1481 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1482 (m32r_find_callers_reg): Update.
1483 (m32r_frame_saved_pc): Update.
1484 * sh-tdep.c (sh_find_callers_reg): Update.
1485 (sh64_get_saved_pr): Update.
1486 (sh_init_extra_frame_info): Update.
1487 (sh_init_extra_frame_info): Update.
1488 (sh64_init_extra_frame_info): Update.
1489 (sh64_init_extra_frame_info): Update.
1490 * mcore-tdep.c (mcore_find_callers_reg): Update.
1491 (mcore_frame_saved_pc): Update.
1492 (mcore_init_extra_frame_info): Update.
1493 * i386-tdep.c (i386_frame_saved_pc): Update.
1494 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1495 (ia64_init_extra_frame_info): Update.
1496 (ia64_init_extra_frame_info): Update.
1497 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1498 * cris-tdep.c (cris_init_extra_frame_info): Update.
1499 * avr-tdep.c (avr_frame_chain): Update.
1500 (avr_init_extra_frame_info): Update.
1501 (avr_frame_saved_pc): Update.
1502 * arm-tdep.c (arm_find_callers_reg): Update.
1503 (arm_init_extra_frame_info): Update.
1504 (arm_frame_saved_pc): Update.
1505
a741e514
TT
15062002-09-17 Tom Tromey <tromey@redhat.com>
1507
1508 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1509 is "'".
1510
d1a8e808
CV
15112002-09-17 Corinna Vinschen <vinschen@redhat.com>
1512
1513 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1514 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1515 NEXT_PROLOGUE_INSN.
1516 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1517 NEXT_PROLOGUE_INSN.
1518
d9025a18
JB
15192002-09-16 Joel Brobecker <brobecker@gnat.com>
1520
1521 * osfsolib.c: Remove file, replaced by solib-osf.c.
1522 * Makefile.in: Remove compilation rules for osfsolib.c.
1523
1b2ef1b6
DC
15242002-09-16 David Carlton <carlton@math.stanford.edu>
1525
1526 * cp-valprint.c (cp_print_class_method): Correct args to
1527 check_stub_method_group.
1528
928e48af
CV
15292002-09-16 Corinna Vinschen <vinschen@redhat.com>
1530
1531 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1532 `set architecture'. Unify naming convention of functions.
1533 (h8300_skip_prologue): Improve prologue analysis.
1534 (h8300_push_arguments): Rewritten to more closely match GCC's
1535 bizarre argument-passing behavior, along with the comment describing
1536 said behavior.
1537 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1538 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1539 sim, remote-e7000.c, remote-hms.c and remote.c
1540
5e3397bb
MK
15412002-09-15 Mark Kettenis <kettenis@gnu.org>
1542
1543 * i386-tdep.c (gdb_print_insn_i386): Removed.
1544 (i386_print_insn): New function.
1545 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1546 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1547 tm_print_insn_info.
1548
f710f4fc
MK
15492002-09-14 Mark Kettenis <kettenis@gnu.org>
1550
1551 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1552 zero.
1553
db54fef4
CV
15542002-09-14 Corinna Vinschen <vinschen@redhat.com>
1555
1556 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1557 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1558 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1559
2becadee
CF
15602002-09-13 Christopher Faylor <cgf@redhat.com>
1561
1562 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1563
de17c821
DJ
15642002-09-13 Daniel Jacobowitz <drow@mvista.com>
1565
1566 * gdbtypes.c (check_stub_method): Make static.
1567 (check_stub_method_group): New function.
1568 * gdbtypes.h: Update prototypes.
1569 * cp-support.c: New file.
1570 * cp-support.h: New file.
1571
1572 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1573 (update_method_name_from_physname): New function.
1574 (read_member_functions): Correct method names for operators
1575 and v3 constructors/destructors. Separate v2 constructors and
1576 destructors.
1577 * Makefile.in (stabsread.o): Update dependencies.
1578 (SFILES): Add cp-support.c.
1579 (COMMON_OBS): Add cp-support.o.
1580 (cp_support_h, cp-support.o): Add.
1581
1582 * cp-valprint.c (cp_print_class_method): Call
1583 check_stub_method_group instead of check_stub_method. Remove
1584 extraneous QUITs.
1585 * p-valprint.c (pascal_object_print_class_method): Likewise.
1586 * valops.c (search_struct_method): Likewise.
1587 (find_method_list, value_struct_elt_for_reference): Likewise.
1588
e76cff22
AC
15892002-09-13 Andrew Cagney <cagney@redhat.com>
1590
1591 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1592 * gdbarch.h, gdbarch.c: Regenerate.
1593
905abb3f
AC
15942002-09-13 Andrew Cagney <ac131313@redhat.com>
1595
1596 * frame.c (find_saved_register): Delete function.
1597 * frame.h (find_saved_register): Delete declaration.
1598 Fix PR gdb/631.
1599
64159455
AC
1600Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1601
1602 * mips-tdep.c (read_next_frame_reg): Re-hack using
1603 frame_register_unwind.
1604
795e1e11
AC
1605Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1606
1607 * mips-tdep.c (mips_get_saved_register): Re-hack using
1608 frame_register_unwind.
1609
5720643c
JB
16102002-09-12 Joel Brobecker <brobecker@gnat.com>
1611
1612 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1613 vector. Will be useful for Interix.
1614 * gdbarch.h, gdbarch.c: Regenerate.
1615
1616 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1617 name of the malloc function by NAME_OF_MALLOC.
1618
3bada2a2
JB
16192002-09-12 Joel Brobecker <brobecker@gnat.com>
1620
1621 * value.h (find_function_in_inferior): Add const keyword to
1622 one of the parameters. Allows us to invoke this function with
1623 a const char *.
1624 * valops.c (find_function_in_inferior): Likewise.
1625
3db26b01
JB
16262002-09-12 Joel Brobecker <brobecker@gnat.com>
1627
1628 * exec.c (xfer_memory): Fix compilation warning with old versions
1629 of GCC.
1630 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1631
17c5ed2c
DC
16322002-09-12 David Carlton <carlton@math.stanford.edu>
1633
1634 * symtab.h: Run through gdb_indent.h.
1635 Add 2002 to Copyright year list.
1636
ecd1107e
AM
16372002-09-12 Alan Modra <amodra@bigpond.net.au>
1638
1639 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1640 mach constants.
1641 * MAINTAINERS: Add myself to write after approval list.
1642
e64f66d1
JB
16432002-09-11 J. Brobecker <brobecker@gnat.com>
1644
1645 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1646
f9395794
JB
16472002-09-11 J. Brobecker <brobecker@gnat.com>
1648
1649 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1650 Interix.
1651
1a303dec
MS
16522002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1653
1654 * procfs.c (do_detach): Clear current signal, not just fault.
1655 Corrects problem with breakpoint trap signal leaking to detached
1656 process on Tru64.
1657
c0219d42
MS
16582002-09-10 Michael Snyder <msnyder@redhat.com>
1659
1660 * buildsym.c (finish_block): Protect against null pointer.
1661
9d84ac84
AC
16622002-09-10 Andrew Cagney <cagney@redhat.com>
1663
1664 * infcmd.c (default_print_registers_info): Send all output to
1665 ``file'' instead of ``gdb_stdout''.
1666
77d8f2b4
MS
16672002-09-10 Michael Snyder <msnyder@redhat.com>
1668
1669 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1670 LONGEST, and use signed register read (addresses are sign-
1671 extended for mips).
1672
99656a61
SC
16732002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1674
1675 * event-loop.c (gdb_do_one_event): Make public.
1676 * event-loop.h (gdb_do_one_event): Declare.
1677
da12f4d8
JL
16782002-09-10 Jeff Law <law@redhat.com>
1679
1680 * infttrace.c (child_resume): Simplify and rework to avoid
1681 TT_PROC_CONTINUE.
1682
d0aee0c4
FF
16832002-09-09 Fred Fish <fnf@intrinsity.com>
1684
1685 * printcmd.c (print_scalar_formatted): "len" is the number of
1686 target bytes, NOT the number of target bits.
1687
7cb3ec5e
EZ
16882002-09-09 Elena Zannoni <ezannoni@redhat.com>
1689
1690 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1691 * top.c (init_main): Set rl_terminal_name.
1692
4dc81987
AS
16932002-09-08 Aidan Skinner <aidan@velvet.net>
1694
1695 * ada-lang.c (ada_array_bound, ada_type_match,
1696 _initialize_ada_language): Fix K&R definitions.
1697 * ada-tasks.c (get_current_task): Fix K&R definitions.
1698 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1699
842330b4
CF
17002002-09-07 Christopher Faylor <cgf@redhat.com>
1701
1702 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1703 Add XP.
1704
43156d82
MK
17052002-09-06 Mark Kettenis <kettenis@gnu.org>
1706
66da5fd8
MK
1707 * i386-tdep.c (i386_register_virtual_type,
1708 i386_register_convertible, i386_register_convert_to_virtual,
1709 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1710 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1711 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1712 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1713 Don't set push_arguments twice.
1714
4b218c18
MK
1715 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1716 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1717 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1718 sigtramp_end to NULL.
1719 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1720 defines.
1721 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1722
4cc314d5
MK
1723 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1724 whitespace.
1725
43156d82
MK
1726 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1727 * gdbarch.h, gdbarch.c: Re-generate.
1728 * blockframe.c (find_pc_sect_partial_function): Convert to use
1729 SIGTRAMP_START_P predicate.
1730
6672060b
MS
17312002-09-05 Michael Snyder <msnyder@redhat.com>
1732
a90c3637
MS
1733 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1734 generic_dummy_frame method and old method. Also distinguish
1735 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 1736 (arm_extract_return_value): Use new regcache method.
a90c3637 1737
6672060b
MS
1738 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1739 adjustment that doesn't conform to the ABI.
1740 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1741 saved regcache, not from current regcache.
1742
299ffc64
AC
17432002-09-05 Andrew Cagney <ac131313@redhat.com>
1744
1745 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1746 * README: Update.
1747
a3a2ee65
JT
17482002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1749
1750 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1751 if arm_apcs_32 is false.
1752
2bc7eea9
AC
17532002-09-04 Andrew Cagney <ac131313@redhat.com>
1754
1755 GDB 5.3 branch created.
1756
8a55a7c5
TR
17572002-09-03 Theodore A. Roth <troth@verinet.com>
1758
1759 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1760 generic_unwind_get_saved_register.
1761
e26fb1d7
DC
17622002-09-03 David Carlton <carlton@math.stanford.edu>
1763
1764 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1765 argument (PR gdb/653). Update call to smash_to_method_type.
1766 (read_structure_scope): Update call to dwarf2_add_member_fn.
1767
30d52491
ML
17682002-09-03 Michal Ludvig <mludvig@suse.cz>
1769
1770 * x86-64-linux-tdep.c: Include gdb_string.h
1771 * x86-64-linux-nat.c: Ditto.
1772
06891d83
JT
17732002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1774
1775 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1776 when YYDEBUG is set to 1.
1777 * c-exp.y: Likewise.
1778 * f-exp.y: Likewise.
1779 * jv-exp.y: Likewise.
1780 * m2-exp.y: Likewise.
1781 * p-exp.y: Likewise.
1782
7d400e77
JT
17832002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1784
1785 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1786 dependency list.
1787 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1788 solib_svr4_fetch_link_map_offsets to
1789 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1790 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1791 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1792 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1793 solib-svr4.o, and solib-legacy.o.
1794 * config/i386/tm-nbsd.h: Include solib.h.
1795
704a27c4
JT
17962002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1797
1798 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1799 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1800 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1801 comment noting that this needs its own target configuration.
1802 * config/i386/nbsd.mt: New file.
1803 * config/i386/nbsdaout.mt: Remove.
1804 * config/i386/nbsdelf.mt: Ditto.
1805 * config/i386/tm-nbsdaout.h: Ditto.
1806
d66198e1
JT
18072002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1808
1809 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1810 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1811 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1812 tdep->sigtramp_end.
1813 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1814 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1815 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1816
3cac699e
JT
18172002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1818
1819 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1820 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1821 * i386-tdep.h (i386bsd_init_abi): New prototype.
1822 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1823 function declaration.
1824 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1825 for NetBSD-a.out or NetBSD-ELF.
1826 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1827 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1828 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1829 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1830 and nbsd-tdep.h.
1831 (i386nbsd_pc_in_sigtramp): New function.
1832 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1833 i386nbsd_pc_in_sigtramp.
1834 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1835 and i386nbsdelf_init_abi OS ABI handlers.
1836 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1837 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1838
7010ca0a
MK
18392002-09-02 Mark Kettenis <kettenis@gnu.org>
1840
1841 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1842 registers if the target really has them.
1843
6dd93b72
JT
18442002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1845
1846 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1847 than nbsd-tdep.h.
1848
2ca8ae21
JT
18492002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1850
1851 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1852 list.
1853 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1854 (alphanbsd_skip_sigtramp_frame): New functions.
1855 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1856 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1857 to alphanbsd_sigcontext_addr.
1858
3d9b49b0
JT
18592002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1860
1861 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1862 list.
1863 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1864 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1865 nbsd_pc_in_sigtramp.
1866 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1867 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1868 * nbsd-tdep.c: Include gdb_string.h.
1869 (nbsd_pc_in_sigtramp): New function.
1870 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1871 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1872 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1873 ppcnbsd_pc_in_sigtramp.
1874 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1875 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1876 shnbsd_pc_in_sigtramp.
1877 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1878 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1879 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1880
c860120c
PM
18812002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1882
1883 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1884 watchpoints to NULL.
1885 (insert_breakpoints): set val field of watchpoints if NULL.
1886
1887
c7612d53
JB
18882002-08-29 Jim Blandy <jimb@redhat.com>
1889
1890 * symtab.c (lookup_symbol_aux): In the cases where we find a
1891 minimal symbol of an appropriate name and use its address to
1892 select a symtab to read and search, use `name' (as passed to us)
1893 as the demangled name when searching the symtab's global and
1894 static blocks, not the minsym's name.
1895
66609862
KS
18962002-08-29 Keith Seitz <keiths@redhat.com>
1897
1898 * stack.c (print_frame_info_base): Always set current_source_symtab
1899 and current_source_line.
1900
151fefe2
JB
19012002-08-29 Donn Terry <donnte@microsoft.com>
1902
1903 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1904
bfb3754e
KS
19052002-08-28 Keith Seitz <keiths@redhat.com>
1906
1907 * stack.c (select_frame): Add FIXME concerning selected-frame
1908 events.
1909 (select_frame_command): Send selected-frame-level-changed
1910 event notification, but only if the level actually changed.
1911 (up_silently_base): Add selected-frame-level-changed event
1912 notification.
1913 (down_silently_base): Likewise.
1914
e822a2a0
AC
19152002-08-28 Andrew Cagney <ac131313@redhat.com>
1916
1917 * Makefile.in: Update dependencies for all gdb/*.c files.
1918
309367d4
TT
19192002-08-27 Tom Tromey <tromey@redhat.com>
1920
1921 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1922 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1923 Update dependencies.
1924 * i387-tdep.c: Include gdb_string.h.
1925 * osabi.c: Likewise.
1926 * i386-linux-nat.c: Likewise.
1927 * lin-lwp.c: Likewise.
1928 * ax-gdb.c: Likewise.
1929 * signals/signals.c: Likewise.
1930 * jv-valprint.c: Likewise.
1931 * p-lang.c: Likewise.
1932 * c-valprint.c: Likewise.
1933 * cp-abi.c: Likewise.
1934
e1507482
EZ
19352002-08-27 Elena Zannoni <ezannoni@redhat.com>
1936
1937 * cli/cli-script.h (copy_command_lines): Export.
1938 * breakpoint.c: Include cli/cli-script.h.
1939 * Makefile.in (breakpoint.o): Update dependencies.
1940
c6510018
MS
19412002-08-26 Michael Snyder <msnyder@redhat.com>
1942
1943 * breakpoint.c (insert_breakpoints): Protect all references
1944 to 'process_warning'. Shorten long lines.
1945
c2b8ed2c
MS
19462002-08-26 Joel Brobecker <brobecker@gnat.com>
1947
1948 * cli/cli-script.c (copy_command_lines): New function.
1949 * defs.h (copy_command_lines): Export.
1950 * testsuite/gdb.base/commands.exp: New tests for commands
1951 attached to a temporary breakpoint, and for commands that
1952 delete the breakpoint they are attached to.
1953
19542002-08-26 Michael Snyder <msnyder@redhat.com>
1955
1956 * breakpoint.c (bpstat_stop_status): Instead of copying the
1957 pointer to the breakpoint commands struct, make a new copy
1958 of the struct and point to that.
1959 (bpstat_clear): Free the commands struct.
1960 (bpstat_clear_actions): Free the commands struct.
1961 (bpstat_do_actions): Free the command actions. Also execute
1962 the local cleanups, instead of deleting them.
1963 (delete_breakpoint): Leave the commands field of the bpstat
1964 chain alone -- it will be freed later.
1965
64b84175
KB
19662002-08-26 Kevin Buettner <kevinb@redhat.com>
1967
1968 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1969 deleted in 2002-08-20 commit. This function is still used by
1970 ppc-linux-nat.c.
1971
55970da6
KS
19722002-08-26 Keith Seitz <keiths@redhat.com>
1973
1974 * gdb-events.sh: Add selected-frame-level-changed event.
1975 * gdb-events.c: Regenerated.
1976 * gdb-events.h: Regenerated.
1977
a790ad35
SC
19782002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1979
1980 Fix PR gdb/393:
1981 * inflow.c (terminal_save_ours): New function to save terminal
1982 settings.
1983 * inferior.h (terminal_save_ours): Declare.
1984 * target.c (debug_to_terminal_save_ours): New function.
1985 (cleanup_target): Defaults to_terminal_save_ours.
1986 (update_current_target): Inherit to_terminal_save_ours.
1987 (setup_target_debug): Set to_terminal_save_ours.
1988 * target.h (target_terminal_save_ours): New to save terminal settings.
1989 (target_ops): New member to_terminal_save_ours.
1990 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1991 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1992 * inftarg.c (init_child_ops): Likewise.
1993 * m3-nat.c (init_m3_ops): Likewise.
1994 * procfs.c (init_procfs_ops): Likewise.
1995 * wince.c (init_child_ops): Likewise.
1996 * win32-nat.c (init_child_ops): Likewise.
1997 * sol-thread.c (init_sol_thread_ops): Likewise.
1998
c00dcbe9
MK
19992002-08-26 Mark Kettenis <kettenis@gnu.org>
2000
3d7f4f49
MK
2001 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2002 use regcache_* functions.
2003 (i386_gdbarch_init): Set store_return_value instead of
2004 deprecated_store_return_value.
2005
c00dcbe9
MK
2006 * regcache.c (regcache_raw_write_signed,
2007 regcache_raw_write_unsigned): New functions.
2008 * regcache.h (regcache_raw_write_signed,
2009 regcache_raw_write_unsigned): New prototypes.
2010
0e0d15ca
AC
20112002-08-25 Andrew Cagney <ac131313@redhat.com>
2012
2013 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2014 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2015 source file dependencies. Cleanup corresponding generator rules.
2016
d3b22ed5
AC
20172002-08-25 Andrew Cagney <ac131313@redhat.com>
2018
2019 * regcache.h (register_offset_hack): Declare.
2020 (regcache_cooked_read_using_offset_hack): Declare.
2021 (regcache_cooked_write_using_offset_hack): Declare.
2022
2023 * regcache.c (register_offset_hack): New function.
2024 (regcache_cooked_read_using_offset_hack): New function.
2025 (regcache_cooked_write_using_offset_hack): New function.
2026 (regcache_dump): Check that the registers, according to their
2027 offset, are packed hard against each other.
2028 (cooked_xfer_using_offset_hack): New function.
2029
bb425013
AC
20302002-08-25 Andrew Cagney <ac131313@redhat.com>
2031
2032 * regcache.c (struct regcache_descr): Add field register_type.
2033 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2034 in as a parameter
2035 (init_regcache_descr): Initialize register_type. Pass the descr
2036 to init_legacy_regcache_descr. Use register_type instead of
2037 REGISTER_VIRTUAL_TYPE.
2038 (register_type): New function.
2039 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2040 * regcache.h (register_type): Declare.
2041
d0403e00
AC
20422002-08-25 Andrew Cagney <ac131313@redhat.com>
2043
2044 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2045 instead of deprecated_store_return_value. Fix fallout from
2046 2002-08-23 Andrew Cagney <cagney@redhat.com>.
2047
0ed04cce
AC
20482002-08-25 Andrew Cagney <ac131313@redhat.com>
2049
2050 * regcache.c (max_register_size): New function.
2051 (init_legacy_regcache_descr): Ensure that max_register_size is
2052 large enough for REGISTER_VIRTUAL_SIZE.
2053 * regcache.h (max_register_size): Declare.
2054
46d79c04
AC
20552002-08-24 Andrew Cagney <ac131313@redhat.com>
2056
2057 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2058 store_return_value.
2059 (e500_extract_return_value): Change type of valbuf pointer to
2060 void.
2061
853c7bd0
MK
20622002-08-24 Mark Kettenis <kettenis@gnu.org>
2063
cd87e769
MK
2064 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2065 workaround.
2066
853c7bd0
MK
2067 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2068 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2069 long long) to prevent compiler warning on 64-bit systems.
2070
ebba8386
AC
20712002-08-23 Andrew Cagney <cagney@redhat.com>
2072
2073 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2074 (DEPRECATED_STORE_RETURN_VALUE): New method.
2075 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2076 * gdbarch.h, gdbarch.c: Re-generate.
2077
2078 * values.c (set_return_value): Pass current_regcache to
2079 STORE_RETURN_VALUE.
2080 * arch-utils.h (legacy_store_return_value): Declare.
2081 * arch-utils.c (legacy_store_return_value): New function.
2082 (legacy_extract_return_value): Update parameters.
2083
2084 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2085 STORE_RETURN_VALUE.
2086 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2087 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2088 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2089 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2090 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2091 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2092 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2093 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2094 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2095 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2096
2097 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2098 * i386-tdep.c (i386_extract_return_value): Update.
2099 * arch-utils.c (legacy_extract_return_value): Update.
2100 * frv-tdep.c (frv_gdbarch_init): Update.
2101 * cris-tdep.c (cris_gdbarch_init): Update.
2102 * d10v-tdep.c (d10v_gdbarch_init): Update.
2103 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2104 * m68k-tdep.c (m68k_gdbarch_init): Update.
2105 * mcore-tdep.c (mcore_gdbarch_init): Update.
2106 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2107 * s390-tdep.c (s390_gdbarch_init): Update.
2108 * sparc-tdep.c (sparc_gdbarch_init): Update.
2109 * sh-tdep.c (sh_gdbarch_init): Update.
2110 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2111 * v850-tdep.c (v850_gdbarch_init): Update.
2112 * avr-tdep.c (avr_gdbarch_init): Update.
2113 * ia64-tdep.c (ia64_gdbarch_init): Update.
2114 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2115 * vax-tdep.c (vax_gdbarch_init): Update.
2116 * alpha-tdep.c (alpha_gdbarch_init): Update.
2117 * arm-tdep.c (arm_gdbarch_init): Update.
2118 * mips-tdep.c (mips_gdbarch_init): Update.
2119 * i386-tdep.c (i386_gdbarch_init): Update.
2120
5bd8c6d0
AC
21212002-08-23 Andrew Cagney <ac131313@redhat.com>
2122
2123 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2124 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2125
e73e1724
MK
21262002-08-24 Mark Kettenis <kettenis@gnu.org>
2127
2128 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
2129 problems.
2130
3e6564e1
JB
21312002-08-23 Joel Brobecker <brobecker@gnat.com>
2132
2133 * infrun.c (handle_inferior_event): Move a comment outside of a
2134 function call, in order to avoid indent reformatting this part
2135 of the code in an unreadable way.
2136
81d0cc19
GS
21372002-08-23 Grace Sainsbury <graces@redhat.com>
2138
2139 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2140 when breakpoints fail. Move general breakpoint error messages to
2141 insert_breakpoints.
2142 * breakpoint.c (insert_breakpoints): Change warnings when
2143 breakpoints are nto inserted to specify the type. Remove call to
2144 memory_error when hardware breakpoints can't be inserted. Remove
2145 multiple calls to warning so all messages are sent to the user at
2146 once.
2147 (delete_breakpoints): Make insert error messsages more explicit.
2148
17574093
DJ
21492002-08-23 Daniel Jacobowitz <drow@mvista.com>
2150
2151 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2152 gdbserver/ChangeLog.
2153
8acc2935
MK
21542002-08-23 Mark Kettenis <kettenis@gnu.org>
2155
dfe01d39
MK
2156 * i386-tdep.c: Include "objfiles.h".
2157 (i386_svr4_init_abi): Set in_solib_call_trampoline and
2158 skip_trampoline_code.
2159 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2160 (CPLUS_MARKER): Define to '.'.
2161
8acc2935
MK
2162 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2163 member.
2164 (linux_corefile_thread_callback): Increase args->num_notes.
2165 (linux_make_note_section): Initialize thread_args.num_notes, and
2166 use it to determine whether notes for any threads were created.
2167
151fefe2 21682002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
2169
2170 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2171 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2172 and PCUNKILL.
2173 (write_with_trace): Conditionalize out the switch branch handling
2174 PCSHOLD if the corresponding macro is not defined. Likewise for
2175 PRSABORT and PRSTOP.
2176 This change will be needed by the Interix port.
2177
e1507482
EZ
21782002-08-22 Elena Zannoni <ezannoni@redhat.com>
2179
2180 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2181 write_register wherever possible instead of manipulating the
2182 register bytes directly.
2183 Assign VALUE_CONTENTS to a variable and use that.
2184 The GPR numbers are now dependent on the architecture.
2185
96ff0de4
EZ
21862002-08-22 Elena Zannoni <ezannoni@redhat.com>
2187
2188 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2189 ev_offset fields.
2190 (skip_prologue): Add support for BookE/e500 instructions.
2191 (e500_extract_return_value): New function.
2192 (frame_get_saved_regs): Add support for saving ev registers and
2193 pseudo gpr's.
2194 (e500_store_return_value): New function.
2195 (rs6000_gdbarch_init): Move up default intializations of
2196 deprecated_extract_return_value and store_return_value. Overwrite
2197 init of store_return_value with e500 specific version.
2198 Set extract_return_value for e500.
2199
fbefca5b
EZ
22002002-08-22 Elena Zannoni <ezannoni@redhat.com>
2201
2202 * blockframe.c (generic_call_dummy_register_unwind): Use
2203 regcache_cooked_read to catch cases in which the variable is
2204 stored in a pseudo register.
2205
4d210288
AC
22062002-08-22 Andrew Cagney <cagney@redhat.com>
2207
2208 * NEWS: Mention that the i960 has been made obsolete.
2209 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2210 i960-tdep.c
2211 (remote-nrom.o): Obsolete target.
2212 (remote-nindy.o, i960-tdep.o): Ditto.
2213 * remote-nrom.c: Make file obsolete.
2214 * remote-nindy.c, remote-vx960.c: Ditto.
2215 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2216 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2217 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2218 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2219 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2220 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2221 i960-*-vxworks* obsolete.
2222 * MAINTAINERS: Note that the i960 is obsolete.
2223
6c0c456d
CV
22242002-08-21 Corinna Vinschen <vinschen@redhat.com
2225
2226 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2227 detach to allow reinitialization.
2228
9f9d12b3
AC
22292002-08-22 Andrew Cagney <ac131313@redhat.com>
2230
2231 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2232 attempt).
2233
ebeb39fe
JB
22342002-08-22 Jim Blandy <jimb@redhat.com>
2235
2236 * coffread.c (coff_symfile_read): Don't try to read the line
2237 number table from disk if the image file doesn't have a symbol
2238 table; we'll never actually look at the info anyway, and Windows
2239 ships DLL's with bogus file offsets for the line number data.
2240
5bf1c677
EZ
22412002-08-21 Elena Zannoni <ezannoni@redhat.com>
2242
2243 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2244 an e500 executable.
2245
71b8ef93
MS
22462002-08-21 Michael Snyder <msnyder@redhat.com>
2247
2248 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2249 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
2250 (DEFAULT_MIPS_TYPE): Delete unused macro.
2251 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2252 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 2253
d174216d
JB
22542002-08-21 Jim Blandy <jimb@redhat.com>
2255
2256 * valops.c (value_cast): Simplify and correct logic for doing a
2257 static cast from a pointer to a base class to a pointer to a
2258 derived class.
2259
0ab7a791
AC
22602002-08-21 Andrew Cagney <ac131313@redhat.com>
2261
2262 * infcmd.c (default_print_registers_info): Replace
2263 do_registers_info.
2264 (registers_info): Use gdbarch_print_registers_info instead of
2265 DO_REGISTERS_INFO.
2266 * inferior.h (default_print_registers_info): Replace
2267 do_registers_info.
2268 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2269 (DO_REGISTERS_INFO): Change to a predicate function.
2270 * gdbarch.h, gdbarch.c: Regenerate.
2271
e23792cc
KS
22722002-08-21 Keith Seitz <keiths@redhat.com>
2273
2274 * gdb-events.sh: Add target-changed event.
2275 * gdb-events.c: Regenerated.
2276 * gdb-events.c: Regenerated.
2277 * valops.c (value_assign): Add target-changed event notification
2278 to inlval_register, lval_memory, and lval_reg_frame_relative.
2279
9fb14e79
JB
22802002-08-21 Joel Brobecker <brobecker@gnat.com>
2281
2282 * NEWS: Add an entry regarding the improvement of the next/step
2283 operation on Alpha Tru64 multi-processor machines.
2284
6d39a69f
AC
22852002-08-21 Andrew Cagney <ac131313@redhat.com>
2286
72acd513
AC
2287 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2288 directores.
342af04b 2289 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
2290 * Makefile.in (install-gdbtk): Move to install section.
2291 (rdi-share/libangsd.a): Move to end of file.
2292
fa5f27c7
AC
22932002-08-19 Andrew Cagney <ac131313@redhat.com>
2294
2295 * frame.c (frame_register_unwind): When a register, set addrp to
2296 the register's byte.
2297
5a89d8aa
MS
22982002-08-20 Michael Snyder <msnyder@redhat.com>
2299
2300 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2301 used locally, so move them from the target machine header to here.
2302 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2303 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2304 Make static.
2305 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2306
822e978b
AC
23072002-08-20 Andrew Cagney <cagney@redhat.com>
2308
2309 * NEWS: Mention that the Apollo line was made obsolete.
2310 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2311 m68*-hp-hpux* obsolete.
2312 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2313 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2314 * buildsym.c (make_blockvector): Make static.
2315 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2316 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2317 (ALLDEPFILES): Remove dstread.c.
2318 (dstread.o): Obsolete make rule.
2319 * dstread.c: Makefile obsolete.
2320 * dst.h: Ditto.
2321 * config/m68k/hp300hpux.mt: Ditto.
2322 * config/m68k/hp300hpux.mh: Ditto.
2323 * config/m68k/hp300bsd.mt: Ditto.
2324 * config/m68k/hp300bsd.mh: Ditto.
2325 * config/m68k/apollo68b.mt: Ditto.
2326 * config/m68k/apollo68v.mh: Ditto.
2327 * config/m68k/apollo68b.mh: Ditto.
2328
e41b17f0
MS
23292002-08-20 Michael Snyder <msnyder@redhat.com>
2330
2331 * mips-tdep.c (mips_in_return_stub): Make static.
2332 (mips_gdbarch_init): Set in_solib_return_trampoline.
2333 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2334
d50355b6
MS
23352002-08-20 Michael Snyder <msnyder@redhat.com>
2336
2337 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2338 * gdbarch.c, gdbarch.h: Regenerate.
2339 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2340 Add.
2341 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2342
757a7cc6
MS
23432002-08-20 Michael Snyder <msnyder@redhat.com>
2344
2345 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2346 (mips_gdbarch_init): Set skip_trampoline_code,
2347 in_solib_call_trampoline.
2348 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2349 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2350
c8001721
EZ
23512002-08-20 Elena Zannoni <ezannoni@redhat.com>
2352
2353 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2354
2355 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2356 vector type for ev registers.
2357 (e500_pseudo_register_read): New function.
2358 (e500_pseudo_register_write): New function.
2359 (e500_dwarf2_reg_to_regnum): New function.
2360 (PPC_UISA_NOFP_SPRS): New macro.
2361 (PPC_EV_REGS): New macro.
2362 (PPC_GPRS_PSEUDO_REGS): New macro.
2363 (registers_e500): New register set for e500.
2364 (variants): Add e500 variant.
2365 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2366 before setting architectural dependent variations. Initialize ev
2367 registers numbers. Add case for e500 architecture. Set the
2368 number of pseudo registers.
2369
64366f1c
EZ
23702002-08-20 Elena Zannoni <ezannoni@redhat.com>
2371
2372 * rs6000-tdep.c: Clean up comments.
2373
7e78f0ca
AC
23742002-08-20 Andrew Cagney <cagney@redhat.com>
2375
2376 * h8300-tdep.c: Re-indent file.
2377
697f7479
JB
23782002-08-20 Jim Blandy <jimb@redhat.com>
2379
2380 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2381 default for this.
697f7479 2382
e86ae29f
KS
23832002-08-20 Keith Seitz <keiths@redhat.com>
2384
2385 * breakpoints.c (watch_command_1): Use internal breakpoint
2386 when setting a watchpoint_scope breakpoint.
2387
216b504f
EZ
23882002-08-20 Elena Zannoni <ezannoni@redhat.com>
2389
2390 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2391 (build_builtin_type_vec64i): Ditto.
2392 (build_builtin_type_vec128): Ditto.
2393 (build_builtin_type_vec128i): Ditto.
2394
f7ab6ec6
MS
23952002-08-19 Michael Snyder <msnyder@redhat.com>
2396
2397 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2398 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2399 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2400 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2401 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2402 CALL_DUMMY_ADDRESS): Delete.
2403 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2404 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2405 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2406 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2407 push_return_address.
2408 (mips_register_raw_size, mips_eabi_use_struct_convention,
2409 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2410 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2411 mips_init_extra_frame_info, mips_eabi_push_arguments,
2412 mips_n32n64_push_arguments, mips_push_return_address,
2413 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2414 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2415
b5d1566e
MS
24162002-08-19 Michael Snyder <msnyder@redhat.com>
2417
2418 * mips-tdep.c (mips_frame_num_args): New function.
2419 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2420 frame_saved_pc, frame_args_address, frame_locals_address,
2421 frame_num_args, and frame_args_skip.
2422 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2423 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2424 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2425 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2426
2f1488ce
MS
24272002-08-20 Michael Snyder <msnyder@redhat.com>
2428
2429 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2430 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2431 * mips-tdep.c (mips_store_struct_return): New function.
2432 (mips_extract_struct_value_address): New function.
2433 (mips_gdbarch_init): Set store_struct_return and
2434 extract_struct_value_address.
2435
41ff2da1
DC
24362002-08-20 David Carlton <carlton@math.stanford.edu>
2437
2438 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2439 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2440 (read_file_scope): Check that line_header is nonzero before
2441 decoding macro information.
2442
e5451d58
MK
24432002-08-20 Mark Kettenis <kettenis@gnu.org>
2444
2445 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2446 flag the general-purpose registers as floating-point on targets
2447 that don't support the floating-point registers.
2448
4a6daafa
EZ
24492002-08-20 Elena Zannoni <ezannoni@redhat.com>
2450
2451 * rs6000-tdep.c (altivec_register_p): Delete.
2452 (rs6000_do_altivec_registers): Delete.
2453 (rs6000_altivec_registers_info): Delete.
2454 (rs6000_do_registers_info): Delete.
2455 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2456 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2457
ab4327e0
EZ
24582002-08-20 Elena Zannoni <ezannoni@redhat.com>
2459
2460 * infcmd.c (do_registers_info): Print vector registers in hex
2461 format only.
2462 (print_vector_info): Check that printing registers
2463 makes sense.
2464 (print_float_info): Ditto.
2465
cb1d2653
AC
24662002-08-20 Andrew Cagney <ac131313@redhat.com>
2467
2468 * mips-tdep.c (mips_gdbarch_init): Update.
2469 (mips_o32_extract_return_value): Rewrite.
2470 (mips_o32_store_return_value): Rewrite.
2471 (mips_o32_xfer_return_value): New function.
2472 (mips_xfer_register): Tweak debug print message. Allow for
2473 buf_offset when dumping the value transfered.
2474
dfc3d9b2
AC
24752002-08-20 Andrew Cagney <ac131313@redhat.com>
2476
2477 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2478 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2479 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2480 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2481 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2482
7807aa61
MS
24832002-08-14 Michael Snyder <msnyder@redhat.com>
2484
2485 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2486
489461e2
EZ
24872002-08-19 Elena Zannoni <ezannoni@redhat.com>
2488
2489 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2490 register.
2491 (P): New macro to define a register as a pseudo register.
2492 (R, R4, R8, R16, FR32, R64, R0): Updated.
2493 (struct variant): Add new fields for number of pseudo registers
2494 and number of total registers.
2495 (tot_num_registers): New macro replacing....
2496 (num_registers): ...deleted macro.
2497 (num_registers): New function.
2498 (num_pseudo_registers): New function.
2499 (variants): Update all variants to intialize new fields correctly.
2500 Postpone initialization of number of pseudo regs and real regs.
2501 (init_variants): New function.
2502 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2503 registers offsets.
2504
fcaffe4c
DC
25052002-08-19 David Carlton <carlton@math.stanford.edu>
2506
2c2738a0
DC
2507 * valops.c (search_struct_field): Change error message to treat
2508 return value of 0 from value_static_field as meaning that field is
2509 optimized out.
2510 (value_struct_elt_for_reference): Ditto.
2511 * values.c (value_static_field): Treat an unresolved location the
2512 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
2513 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2514 enclosed. Fix PR gdb/574.
fcaffe4c
DC
2515 * MAINTAINERS: Add self to Write After Approval list.
2516
88658117
AC
25172002-08-19 Andrew Cagney <ac131313@redhat.com>
2518
2519 * mips-tdep.c (mips_xfer_register): New function.
2520 (mips_n32n64_extract_return_value): Rewrite.
2521 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2522 instead of deprecated_extract_return_value.
2523
21283beb
EZ
25242002-08-19 Elena Zannoni <ezannoni@redhat.com>
2525
2526 * rs6000-tdep.c (TDEP): Delete macro.
2527 (branch_dest): Replace use of TDEP macro with its body.
2528 (rs6000_pop_frame): Ditto.
2529 (rs6000_push_arguments): Ditto.
2530 (rs6000_skip_trampoline_code): Ditto.
2531 (rs6000_frame_saved_pc): Ditto.
2532 (rs6000_frame_chain): Ditto.
2533 (rs6000_register_name): Ditto.
2534 (rs6000_register_byte): Ditto.
2535 (rs6000_register_raw_size): Ditto.
2536 (rs6000_register_virtual_type): Ditto.
2537 (rs6000_register_convertible): Ditto.
2538 (rs6000_convert_from_func_ptr_addr): Ditto.
2539
bf072999
DJ
25402002-08-19 Daniel Jacobowitz <drow@mvista.com>
2541
2542 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2543 conditionally.
2544 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2545 MIPS_LINUX_JB_ELEMENT_SIZE.
2546 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2547 for MAX_REGISTER_RAW_SIZE arrays.
2548 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2549 MIPS_LINUX_JB_ELEMENT_SIZE.
2550
9b949a49
PM
25512002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2552
2553 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2554
6d3e79c6
AS
25552002-08-19 Aidan Skinner <aidan@velvet.net>
2556
2557 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2558 ada-valprint.c ada-tasks.c.
2559 (YYFILES): Add ada-exp.y.
2560 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2561 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2562 (ada-exp.tab.o): New target.
2563
06c0b04e
AC
25642002-08-18 Andrew Cagney <ac131313@redhat.com>
2565
2566 * regcache.c (regcache_xfer_part): New function.
2567 (regcache_raw_read_part): New function.
2568 (regcache_raw_write_part): New function.
2569 (regcache_cooked_read_part): New function.
2570 (regcache_cooked_write_part): New function.
2571 * regcache.h (regcache_raw_read_part): Declare.
2572 (regcache_raw_write_part): Declare.
2573 (regcache_cooked_read_part): Declare.
2574 (regcache_cooked_write_part): Declare.
2575
92d1e331
DJ
25762002-08-18 Daniel Jacobowitz <drow@mvista.com>
2577
2578 * remote.c (remote_open_1): Add async_p.
2579 (remote_async_open_1): Delete.
2580 (open_remote_target): Delete.
2581 (remote_open, extended_remote_open): Update calls to remote_open_1.
2582 (remote_async_open, extended_remote_async_open): Call
2583 remote_open_1 instead of remote_async_open_1.
2584
247055de
MK
25852002-08-19 Mark Kettenis <kettenis@gnu.org>
2586
2587 * blockframe.c: Fix a few coding standard violations.
2588
641eda39
MK
25892002-08-19 Mark Kettenis <kettenis@gnu.org>
2590
0b717710
MK
2591 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2592 here from ...
2593 * config/i386/tm-i386sco5.h: ... here. File removed.
2594 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2595
26d28e12 2596 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
2597 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2598 (TM_FILE): Set to tm-i386.h.
2599 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2600 * config/i386/tm-i386v.h: Remove file.
2601 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2602 instead of "i386/tm-i386v.h".
2603 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2604 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2605 "i386/tm-i386v.h".
2606 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2607 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2608 "i386/tm-i386.h".
2609
d4e0bab4
MK
26102002-08-18 Mark Kettenis <kettenis@gnu.org>
2611
2612 * config/i386/nm-i386v.h: Add protection against
2613 multiple-inclusion.
2614 (i386_register_u_addr): Remove prototype.
2615 (register_u_addr): New prototype.
2616 (REGISTER_U_ADDR): Redefine accordingly.
2617 * i386v-nat.c: Improve several comments.
2618 (i386_register_u_addr): Change signature and rename to
2619 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2620 ubase variable.
2621
46cac009
AC
26222002-08-18 Andrew Cagney <ac131313@redhat.com>
2623
2624 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2625 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2626 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2627 deprecated_extract_return_value.
2628 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2629 rename mips_o32o64_push_arguments.
2630 (mips_gdbarch_init): Update.
2631 (mips_extract_return_value): Delete.
2632 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2633 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2634 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2635 (mips_n32n64_extract_return_value): Clone
2636 mips_extract_return_value.
2637 (mips_store_return_value): Delete.
2638 (mips_o32_store_return_value): Clone mips_store_return_value.
2639 (mips_o64_store_return_value): Clone mips_store_return_value.
2640 (mips_eabi_store_return_value): Clone mips_store_return_value.
2641 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2642
d2e4a39e
AS
26432002-08-18 Aidan Skinner <aidan@velvet.net>
2644
0c30c098
AS
2645 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2646 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2647
26482002-08-18 Aidan Skinner <aidan@velvet.net>
2649
2650 * ada-lang.c: Run through gdb_indent.sh.
2651 * ada-lang.h: Run through gdb_indent.sh.
2652 * ada-tasks.c: Run through gdb_indent.sh.
2653 * ada-typeprint.c: Run through gdb_indent.sh.
2654 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 2655
01fc4e33
AC
26562002-08-18 Andrew Cagney <ac131313@redhat.com>
2657
2658 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2659 ABI.
2660
d8ee244c
MK
26612002-08-18 Mark Kettenis <kettenis@gnu.org>
2662
c38d8261
MK
2663 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2664
222db64c
MK
2665 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2666 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2667
c2848c82
MK
2668 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2669 write_register_gen instead of write_register_bytes.
2670
d8ee244c
MK
2671 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2672 i[3456]-*-osf1mk* configurations have been made obsolete.
2673 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2674 i[3456]86-*-osf1mk* hosts obsolete.
2675 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2676 targets obsolete.
2677 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2678 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2679 config/i386/i386m3.mt, config/i386/nm-m3.h,
2680 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2681 config/i386/i386mk.mh, config/i386/i386mk.mt,
2682 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2683 obsolete.
2684 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2685 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2686 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2687
61d8d407
AC
26882002-08-18 Andrew Cagney <ac131313@redhat.com>
2689
2690 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2691 (hppa_value_returned_from_stack): Declare.
2692 (hppa_extract_return_value): Declare.
2693 * config/pa/hppa.mt: New file.
2694 * configure.tgt: Recognize hppa*-*-*.
2695 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2696
0c52bd59
MK
26972002-08-18 Mark Kettenis <kettenis@gnu.org>
2698
2699 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2700 comment.
2701
b5686e99
MK
27022002-08-17 Mark Kettenis <kettenis@gnu.org>
2703
2704 * top.c (gdb_rl_operate_and_get_next): Make sure
2705 operate-and-get-next functions correctly even when the history
2706 list is completely filled.
2707
c1bab85b
AC
27082002-08-18 Andrew Cagney <ac131313@redhat.com>
2709
2710 * MAINTAINERS (Target Instruction Set Architectures): Rename
2711 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2712 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2713 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2714 already listed under Host/Native.
2715
2716 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2717 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2718 mips*-*-*.
2719
32089c7c
AC
27202002-08-17 Andrew Cagney <ac131313@redhat.com>
2721
2722 * config/ia64/ia64.mt: New file.
2723 * config/alpha/alpha.mt: New file.
2724 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2725 ia64-linux-gnu. Mention that ia64-elf is broken.
2726 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2727
b4671f85
MK
27282002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2729
2730 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2731 generic_func_frame_valid instead of func_frame_valid.
2732
c8edd8b4
JB
27332002-08-16 Joel Brobecker <brobecker@gnat.com>
2734
2735 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2736 procfs appears to be broken when debugging on multi-processor
2737 machines. So enable software single stepping in order to avoid
2738 using the procfs interface to do next/step operations, using
2739 internal breakpoints instead.
2740
2741 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2742 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2743 make this pc address equal to the value it would have if the
2744 system stepping capability was used. Also set a new flag used
2745 to ensure that we don't readjust the PC one more time later.
2746
2747 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2748 address by DECR_PC_AFTER_BREAK when software single step is
2749 in use for this architecture, as this has already been taken
2750 care of in handle_inferior_event().
2751
238617f6
JB
27522002-08-16 Joel Brobecker <brobecker@gnat.com>
2753
2754 * infrun.c (handle_inferior_event): Minor reformatting, to make
2755 a rather long condition expression easier to read.
2756
541a7aac
AC
27572002-08-16 Andrew Cagney <ac131313@redhat.com>
2758
2759 * Makefile.in (gdbtk.o): Move to end of file.
2760 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2761 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2762 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2763 (gdbtk-wrapper.o, gdbres.o): Ditto.
2764
f92d4a7b
AC
27652002-08-16 Andrew Cagney <ac131313@redhat.com>
2766
2767 * Makefile.in (copying.o): Separate out compile rule.
2768 (hpux-thread.o, procfs.o, signals.o): Ditto.
2769 (v850ice.o, z8k-tdep.o): Ditto.
2770 (tui-file.o): Move to TUI section.
2771 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2772 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2773
1cce71eb
JB
27742002-08-16 Joel Brobecker <brobecker@gnat.com>
2775
2776 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2777 skip_trampoline_code, for better namespace-proofing.
2778
2779 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2780
0851f23d
JB
27812002-08-16 Joel Brobecker <brobecker@gnat.com>
2782
2783 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2784
f8d40ec8
JB
27852002-08-16 Joel Brobecker <brobecker@gnat.com>
2786
2787 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2788 signal, check whether we hit a breakpoint before checking for a
2789 single step breakpoint. Otherwise, GDB fails to notice that a
2790 breakpoint has been hit when stepping onto a breakpoint.
2791
63d022e0
KS
27922002-08-16 Keith Seitz <keiths@redhat.com>
2793
2794 * gdb-events.sh (clear_gdb_event_hooks): New function.
2795 * gdb-events.c: Regenerate.
2796 * gdb-events.h: Regenerate.
2797
6e31adb3
AC
27982002-08-16 Andrew Cagney <ac131313@redhat.com>
2799
2800 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2801 not_a_sw_breakpoint.
2802 * breakpoint.h (bpstat_stop_status): Add parameter names.
2803
c8189ed1
GS
28042002-08-16 Grace Sainsbury <graces@redhat.com>
2805
2806 * remote.c (remote_insert_hw_breakpoint)
2807 (remote_remove_hw_breakpoint): Fix calculation of length field
2808 for Z-packet.
2809
d05285fa
MS
28102002-08-15 Michael Snyder <msnyder@redhat.com>
2811
466d7106
MS
2812 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2813 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2814 (supply_fpregset): Ditto.
2815
d05285fa
MS
2816 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2817 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2818 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 2819 (TARGET_READ_SP): Delete.
bf1f5b4c 2820 (DO_REGISTERS_INFO): Delete.
102182a9
MS
2821 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2822 Delete.
2823 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2824 from macros to functions.
bf1f5b4c 2825
d05285fa
MS
2826 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2827 (mips_register_convertible, mips_register_convert_to_virtual,
2828 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
2829 (mips_read_sp): New function.
2830 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
2831 (mips_do_registers_info): Make static.
2832 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
2833 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2834 (mips_register_convert_from_type, mips_register_convert_to_type):
2835 New functions.
2836 (mips_gdbarch_init): Set up function_start_offset,
2837 register_virtual_size, pc_in_sigtramp.
d05285fa 2838
e76f1f2e
AC
28392002-08-15 Andrew Cagney <ac131313@redhat.com>
2840
2841 * infcmd.c (vector_info): New function.
2842 (_initialize_infcmd): Add command "info vector".
2843 (print_vector_info): New function.
2844
2845 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2846 * gdbarch.h, gdbarch.c: Regenerate.
2847
4782dc19
AC
28482002-08-15 Andrew Cagney <ac131313@redhat.com>
2849
2850 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2851 ``print_all''. Only print vector registers when ``print_all''.
2852
23e3a7ac
AC
28532002-08-15 Andrew Cagney <ac131313@redhat.com>
2854
8e186fd6
AC
2855 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2856 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2857
23e3a7ac
AC
2858 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2859 Add `args' parameter.
2860 * gdbarch.h, gdbarch.c: Regenerate.
2861
2862 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2863
2864 * infcmd.c (float_info): Call print_float_info.
2865 (print_float_info): New function. By default, print the
2866 floating-point registers.
2867
2868 * arch-utils.h (default_print_float_info): Delete declaration.
2869 * arch-utils.c (default_print_float_info): Delete function.
2870
e0ca2bb9
MK
28712002-08-16 Mark Kettenis <kettenis@gnu.org>
2872
3f733acc
MK
2873 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2874 out define.
2875
7d8d2918
MK
2876 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2877 FRAME.
2878
1c7cc583
MK
2879 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2880 * configure.host: Make i[3456]86-*-aix host obsolete.
2881 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2882 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2883 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2884 config/i386/xm-i386aix.h: Make files obsolete.
2885 * i386aix-nat.c: Make file obsolete.
2886 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2887 (i386aix-nat.o): Make target obsolete.
2888
e0ca2bb9
MK
2889 * config/i386/nm-gnu.h: Removed.
2890 * config/i386/nm-i386gnu.h: New file.
2891 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2892 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2893 Moved here from ...
2894 * config/i386/tm-i386gnu.h: ... here. Removed.
2895 * config/i386/xm-i386gnu.h: Removed.
2896 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2897 (NAT_FILE): Set to nm-i386gnu.h.
2898 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2899 * i386-tdep.c: New file.
2900 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2901 (i386gnu-tdep.o): Specify dependencies.
2902
16057ec7 29032002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2904
6b99ee2e
MK
2905 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2906 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2907 Adjust a few comments to reflect reality a bit closer.
2908 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2909 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2910 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2911 target_insert_watchpoint, target_remove_watchpoint):
2912 Move defines to ...
2913 * config/i386/nm-i386sco5.h: ... here.
2914 (kernel_u_size): Add prototype. Improve a few comments and add
2915 protection against multiple inclusion.
2916
d9a6f65c
MK
2917 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2918 out define.
2919
047eff6a
MK
2920 * uw-thread.c (SP_ARG0): Define if not already defined.
2921 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2922
dcdb1290
MK
2923 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2924
5d2d0b2a
MK
2925 * config/i386/tm-i386.h: Don't include "regcache.h".
2926
61113f8b
MK
2927 * i387-tdep.h (i387_print_float_info): New prototype.
2928 * i387-tdep.c (print_i387_value, print_i387_ext,
2929 print_i387_status_word, print_i387_control_word): Add `struct
2930 ui_file *' argument and use it for output.
2931 (i387_print_float_info): Renamed from i387_float_info. Add
2932 `struct gdbarch *' and `struct ui_file *' arguments and use the
2933 latter for output.
2934 * i386-tdep.c: Include "i387-tdep.h".
2935 (i386_gdbarch_init): Set print_float_info.
2936 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2937 (FLOAT_INFO): Remove define.
2938
46e0f506
MS
29392002-08-13 Michael Snyder <msnyder@redhat.com>
2940
2941 * mips-tdep.c (mips_push_arguments): Rename to
2942 mips_eabi_push_arguments, and tune for EABI.
2943 (MIPS_REGS_HAVE_HOME_P): Delete.
2944 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2945 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2946 Delete references to mips_regs_have_home_p.
2947
409268de
KS
29482002-08-14 Keith Seitz <keiths@redhat.com>
2949
2950 * Makefile.in (install-gdbtk): Create insight plugin directory.
2951 Install plugins.tcl file.
2952
ffc6a242
KS
29532002-08-14 Keith Seitz <keiths@redhat.com>
2954
2955 * configure.in: Move SUBDIRS to near top of the file so that
2956 --enable options may add things to it.
2957 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2958 * configure: Regenerate.
2959
ebafbe83
MS
29602002-08-13 Michael Snyder <msnyder@redhat.com>
2961
2962 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2963 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2964 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2965
32f6f25d
AC
29662002-08-13 Andrew Cagney <ac131313@redhat.com>
2967
2968 * vax-tdep.c (vax_get_saved_register): Delete function.
2969 (vax_gdbarch_init): Update.
2970 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2971 (ns32k_gdbarch_init): Update.
2972 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2973 (alpha_gdbarch_init): Update.
2974
53826de9
AC
29752002-08-13 Andrew Cagney <cagney@redhat.com>
2976
2977 * regcache.c (init_regcache_descr): Overallocate the
2978 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2979 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2980 nr_raw_registers.
2981 (set_register_cached): Add range checking assertions. Use
2982 current_regcache.
2983
16057ec7 29842002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2985
2986 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2987 numbers for MMX registers.
2988
7b4c2dce
AC
29892002-08-13 Andrew Cagney <cagney@redhat.com>
2990
2991 * i386-tdep.c (i386_gdbarch_init): Use
2992 generic_unwind_get_saved_register.
2993
1e03ad20
KB
29942002-08-13 Kevin Buettner <kevinb@redhat.com>
2995
2996 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2997 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2998 target vector.
2999 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3000 Delete. Add comment regarding this now-deleted target method.
3001
548bcbec
SC
30022002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3003
3004 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3005 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3006 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3007 real PC and the page number (if it's within the memory bank window).
3008 (m68hc11_pseudo_register_write): Likewise when saving.
3009 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3010 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3011 (m68hc11_register_raw_size): And use 32-bit for it.
3012 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3013 16K memory bank is used by the prog; also use the virtual pc.
3014
7df11f59
SC
30152002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3016
3017 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3018 (m68hc11_gdbarch_init): Install it in gdbarch.
3019 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3020 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3021 (MSYMBOL_SIZE): New for documentation.
3022 (insn_return_kind): Enum to specify how a function returns.
3023 (frame_extra_info): Cleanup and record the return mode.
3024 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
3025 register in address computation.
3026 (m68hc11_get_return_insn): New to obtain the return instruction used
3027 by the function.
3028 (m68hc11_frame_init_saved_regs): Take into account the return
3029 instruction used by the function for far and interrupt functions.
3030 (m68hc11_init_extra_frame_info): Take into account page register.
3031 (m68hc11_frame_args_address): Adjust according to the return mode.
3032 (show_regs): Print page register only when it's used.
3033
5706502a
SC
30342002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3035
3036 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3037 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3038 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3039 registers.
3040 (m68hc11_register_raw_size): Likewise.
3041
28fc6740
AC
30422002-08-13 Andrew Cagney <cagney@redhat.com>
3043
3044 * i386-tdep.c (i386_register_name): Handle mmx registers.
3045 (mmx_regnum_p): New function.
3046 (i386_mmx_names): New array.
3047 (mmx_num_regs): New variable.
3048 (i386_pseudo_register_read): New function.
3049 (i386_pseudo_register_write): New function.
3050 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3051
3052 * regcache.c (regcache_raw_read_unsigned): New function.
3053 (regcache_raw_read_signed): New function.
3054 * regcache.h (regcache_raw_read_unsigned): Declare.
3055 (regcache_raw_read_signed): Declare.
3056
a378f419
AC
30572002-08-13 Andrew Cagney <cagney@redhat.com>
3058
3059 * regcache.c (regcache_raw_read_as_address): Delete function.
3060 (regcache_cooked_read_signed): New function.
3061 (regcache_cooked_read_unsigned): New function.
3062 * regcache.h (regcache_cooked_read_signed): Declare.
3063 (regcache_cooked_read_unsigned): Declare.
3064 (regcache_raw_read_as_address): Delete declaration.
3065
3066 * blockframe.c (generic_read_register_dummy): Use
3067 regcache_cooked_read_unsigned.
3068 * i386-tdep.c (i386_extract_struct_value_address): Use
3069 regcache_cooked_read_unsigned.
3070
81967506
SC
30712002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3072
3073 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3074 double sizes according to ELF ABI flags.
3075 (gdbarch_tdep): Record elf_flags.
3076
ffe1f3ee
SC
30772002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3078
3079 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3080 (m6812_prolog): They can appear in 68HC12 function prologue.
3081 (m68hc11_frame_chain): Cleanup.
3082
98216c5d
AC
30832002-08-12 Andrew Cagney <cagney@redhat.com>
3084
3085 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3086 declarations.
3087 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3088 (i386_linux_register_raw_size): Delete function.
3089 (i386_linux_init_abi): Update.
3090 * i386-tdep.c (i386_register_raw_size): Delete function.
3091 (i386_register_byte): Delete function.
3092 (i386_gdbarch_init): Update.
3093 (i386_register_size): Delete array.
3094 (i386_register_offset): Delete array.
3095
3096 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3097 (REGISTER_RAW_SIZE): Delete macro.
3098 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3099 (REGISTER_BYTE): Delete macro.
3100
3b19021e
AS
31012002-08-11 Aidan Skinner <aidan@velvet.net>
3102
3103 * ada-lang.c (ada_lookup_partial_symbol)
3104 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3105 prototype names so that grep ^func works properly.
3106
3107 * ada-lang.c (ada_array_element_type)
3108 (ada_lookup_partial_symbol): Fix typos in parameter list.
3109
3110 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3111 Fix prototype names so that grep ^func works properly.
3112
b063e7a2
AC
31132002-08-10 Andrew Cagney <cagney@redhat.com>
3114 Elena Zannoni <ezannoni@redhat.com>
3115 Martin M. Hunt <hunt@redhat.com>
3116
3117 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3118 (build_builtin_type_vec128i): Set the vector bit.
3119 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3120 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3121 (build_builtin_type_vec64): New function.
3122 (build_builtin_type_vec64i): New function.
3123 (build_gdbtypes): Initialize builtin_type_vec64 and
3124 builtin_type_vec64i.
3125
a7e3c2ad
AC
31262002-08-09 Andrew Cagney <cagney@redhat.com>
3127
3128 * regcache.c (regcache_dump): Compare the register offset
3129 with REGISTER_BYTE.
3130 * arch-utils.c (generic_register_byte): New function.
3131 * arch-utils.h (generic_register_byte): Declare.
3132 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3133 * gdbarch.h, gdbarch.c: Regenerate.
3134
af030b9a
AC
31352002-08-09 Andrew Cagney <cagney@redhat.com>
3136
3137 * regcache.c: Include "gdbcmd.h"
3138 (_initialize_regcache): Add commands "maintenance print
3139 registers", "maintenance print raw-registers" and "maintenance
3140 print cooked-registers".
3141 (enum regcache_dump_what): Define.
3142 (dump_endian_bytes): New function.
3143 (regcache_dump): New function.
3144 (regcache_print): New function.
3145 (maintenance_print_registers): New function.
3146 (maintenance_print_raw_registers): New function.
3147 (maintenance_print_cooked_registers): New function.
3148 * Makefile.in (regcache.o): Update dependencies.
3149
cb3d25d1
MS
31502002-08-09 Michael Snyder <msnyder@redhat.com>
3151
3152 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3153 (mips_push_arguments): Correct some comments. Use paddr_nz
3154 for printing addresses in debug output. Replace static
3155 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3156 (mips_n32n64_push_arguments): New function, cloned from
3157 mips_push_arguments and tuned for the n32/n64 ABI.
3158 (mips_push_register): Buffer needs dynamic allocation.
3159 (mips_print_register): Ditto.
3160 (do_gp_register_row): Ditto.
3161 (mips_store_return_value): Ditto.
3162 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3163
2163ab9d
DH
31642002-08-09 Don Howard <dhoward@redhat.com>
3165
3166 * memattr.c (mem_info_command): Print special case of upper bound
3167 as max CORE_ADDR + 1.
3168
b78bcb18
MS
31692002-08-08 Michael Snyder <msnyder@redhat.com>
3170
3171 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3172 returns structs by ref if they're too big to fit in two registers.
3173
ffabd70d
KB
31742002-08-09 Kevin Buettner <kevinb@redhat.com>
3175
3176 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3177 saved regs value.
3178 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3179 mips_find_saved_regs().
3180 (mips_pop_frame): Likewise.
3181
fbcdb4a3
KB
31822002-08-09 Kevin Buettner <kevinb@redhat.com>
3183
3184 * blockframe.c (frame_saved_regs_register_unwind): Revise
3185 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3186 frames are in use.
3187
3c3bea1c
GS
31882002-08-09 Grace Sainsbury <graces@redhat.com>
3189
3190 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3191 T-packets; the 'a' is not taken as a register number.
3192 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3193 (remote_stopped_data_address): New functions; add to target
3194 vector.
3195 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3196 prototypes to match other implementations of this
3197 function. replace integer argument with pointer -- the length
3198 field in the Z-packet is the length of what is pointed to or 1 if
3199 pointer is null. Add to target vector.
3200 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3201 target vector.
3202
3203 From Mark Salter:
3204 * remote.c (remote_wait): Add support to extract optional
3205 watchpoint information from T-packet. Ignore unrecognized
3206 optional info in T-packet.
3207 (remote_async_wait): Ditto.
3208
5d1d95de
CV
32092002-08-09 Corinna Vinschen <vinschen@redhat.com>
3210
3211 * cli/cli-dump.c: Change fopen modes to use binary open modes
3212 as defined in include/fopen-bin.h throughout.
3213
c86b5b38
MS
32142002-08-08 Michael Snyder <msnyder@redhat.com>
3215
3216 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3217
b30590dc
KB
32182002-08-08 Kevin Buettner <kevinb@redhat.com>
3219
3220 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3221 assertion failure by returning early after a warning.
3222
498868ed
KB
32232002-08-08 Kevin Buettner <kevinb@redhat.com>
3224
3225 * mips-tdep.c (mips_find_saved_regs): Make static.
3226 (mips_frame_init_saved_regs): New function.
3227 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3228 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3229 (mips_find_saved_regs): Delete declaration.
3230
b2dd6311
GS
32312002-08-08 Grace Sainsbury <graces@redhat.com>
3232
3c3bea1c
GS
3233 * remote.c (remote_wait, remote_async_wait): Change
3234 thread_num from int to ULONGEST.
3235 (unpack_varlen_hex): Change result parameter from
3236 int * to ULONGEST *.
b2dd6311 3237
ea47855f
AC
32382002-08-08 Andrew Cagney <ac131313@redhat.com>
3239
3240 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3241 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3242 powerpc*-*-*.
3243 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3244
69db8bae
AC
32452002-08-08 Andrew Cagney <cagney@redhat.com>
3246
3247 * gcore.c (override_derive_stack_segment): Delete variable.
3248 (preempt_derive_stack_segment): Delete function.
3249 (derive_stack_segment): Delete function.
3250 (default_derive_stack_segment): Renamed to derive_stack_segment.
3251 (override_derive_heap_segment): Delete variable.
3252 (preempt_derive_heap_segment): Delete function.
3253 (derive_heap_segment): Delete function.
3254 (default_derive_heap_segment): Rename to derive_heap_segment.
3255
cb811fe7
MS
32562002-08-06 Michael Snyder <msnyder@redhat.com>
3257
3258 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3259 * mips-tdep.c (mips_EABI_use_struct_convention,
3260 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3261 New functions. (mips_use_struct_convention): Delete.
3262 (mips_gdbarch_init): set use_gdbarch_convention.
3263
8b389c40
MS
32642002-08-06 Michael Snyder <msnyder@redhat.com>
3265
3266 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3267 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3268 mips_o32_reg_struct_has_addr): New functions.
3269 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3270
5c27f28a
AC
32712002-08-07 Andrew Cagney <ac131313@redhat.com>
3272
3273 * regcache.c (pseudo_register): Delete function.
3274 (fetch_register): Delete function.
3275 (store_register): Delete function.
3276 (regcache_raw_read, legacy_read_register_gen): Use
3277 target_fetch_registers instead of fetch_register.
3278 (legacy_write_register_gen, regcache_raw_write): Use
3279 target_store_register instead of store_register.
3280 (write_register_bytes): Ditto.
3281
3282 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3283 (STORE_PSEUDO_REGISTER): Delete.
3284 * gdbarch.h, gdbarch.c: Regenerate.
3285
5b331675
CV
32862002-08-06 Corinna Vinschen <vinschen@redhat.com>
3287
3288 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3289 write dump file binary.
3290
6acdf5c7
MS
32912002-08-05 Michael Snyder <msnyder@redhat.com>
3292
3293 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3294 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3295 (mips_gdbarch_init): Set N32 target to be mips64.
3296
b2f01c35
KB
32972002-08-06 Kevin Buettner <kevinb@redhat.com>
3298
3299 * frame.c (find_saved_register): Break out of loop once saved
3300 register address is found. Don't mention sparc in loop comment
3301 anymore.
3302
63db5580
KB
33032002-08-06 Kevin Buettner <kevinb@redhat.com>
3304
3305 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3306 mips_default_saved_regsize to 8.
3307
5e34e75e
AC
33082002-08-06 Andrew Cagney <ac131313@redhat.com>
3309
3310 * gcore.c: Do not include <sys/procfs.h>.
3311 * Makefile.in (gcore.o): Update dependencies.
3312
eb4c54a2
AC
33132002-08-06 Andrew Cagney <cagney@redhat.com>
3314
3315 * configure.tgt: Make arc-*-* obsolete.
3316 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3317 * MAINTAINERS: Make arc-elf obsolete.
3318 * arc-tdep.c: Make file obsolete.
3319 * config/arc/arc.mt: Ditto.
3320 * config/arc/tm-arc.h: Ditto.
3321
ced15480
TR
33222002-08-05 Theodore A. Roth <troth@verinet.com>
3323
c1bab85b 3324 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 3325
b4743822
AC
33262002-08-05 Andrew Cagney <ac131313@redhat.com>
3327
3328 * mcore-tdep.c (mcore_gdbarch_init): Use
3329 generic_unwind_get_saved_register instead of
3330 generic_get_saved_register.
3331 * v850-tdep.c (v850_gdbarch_init): Ditto.
3332 * frv-tdep.c (frv_gdbarch_init): Ditto.
3333 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3334 * s390-tdep.c (s390_gdbarch_init): Ditto.
3335 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3336 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3337 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3338
3956d554
JB
33392002-08-05 Joel Brobecker <brobecker@gnat.com>
3340
3341 * objfiles.h: Add missing #include "symfile.h"
3342
3343 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3344
8249c0d6
AC
33452002-08-04 Andrew Cagney <ac131313@redhat.com>
3346
3347 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3348 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3349 of FIELD_BITSIZE.
3350
b9d14705
DJ
33512002-08-04 Daniel Jacobowitz <drow@mvista.com>
3352
3353 * NEWS: Cleanup and nitpick.
3354
dd73b9bb
AC
33552002-08-03 Andrew Cagney <ac131313@redhat.com>
3356
3357 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3358
043a27f8
AC
33592002-08-03 Andrew Cagney <ac131313@redhat.com>
3360
3361 * Makefile.in (gdbtk-bp.o): Update dependencies.
3362 (gdbtk-register.o): Ditto.
3363 (gdbtk-varobj.o): Ditto.
3364
46ce284d
AC
33652002-08-03 Andrew Cagney <cagney@redhat.com>
3366
3367 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3368 m68hc11_fetch_pseudo_register.
3369 (m68hc11_pseudo_register_write): Replace
3370 m68hc11_store_pseudo_register.
3371 (m68hc11_gdbarch_init): Update.
3372
b66d6d2e
AC
3373Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3374
3375 * gdbarch.sh: Include "gdb_string.h".
3376 * gdbarch.c: Regenerate.
3377
3378 * regcache.c: Include "gdb_string.h".
3379 * ax-general.c: Ditto.
3380 * varobj.c: Ditto.
3381 * std-regs.c: Ditto.
3382 * fbsd-proc.c: Ditto.
3383 * thread.c: Ditto.
3384
3385 * Makefile.in (regcache.o): Update dependencies.
3386 (thread.o, gdbarch.o): Ditto.
3387 (ax-general.o, gdbarch.o): Ditto.
3388 (varobj.o, std-regs.o): Ditto.
3389 (fbsd-proc.o): Specify dependencies.
3390
29e1842b
AC
33912002-08-02 Andrew Cagney <cagney@redhat.com>
3392
3393 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3394 regnum.
3395 (regcache_cooked_write): Ditto.
3396
68365089
AC
33972002-08-02 Andrew Cagney <ac131313@redhat.com>
3398
3399 * regcache.c (regcache_cooked_read): New function.
3400 (regcache_cooked_write): New function.
3401 (read_register_gen): Rewrite using regcache_cooked_read.
3402 (write_register_gen): Rewrite using regcache_cooked_write.
3403
3404 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3405 Declare.
3406
d8124050
AC
34072002-08-02 Andrew Cagney <cagney@redhat.com>
3408
3409 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3410 Replace the architecture methods register_read and register_write.
3411 * gdbarch.h, gdbarch.c: Regenerate.
3412 * regcache.c (init_regcache_descr): Update.
3413 (read_register_gen): Update.
3414 (write_register_gen): Update.
3415 (supply_register): Update comment.
3416
3417 * sh-tdep.c (sh_gdbarch_init): Update.
3418 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3419 `regcache' and `gdbarch' parameters. Make `buffer' a void
3420 pointer. Update code.
3421 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3422 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3423 void pointer. Update code.
3424 (sh64_register_write): Delete.
3425 (sh4_register_read): Delete.
3426 (sh64_register_read): Delete.
3427 (sh4_register_write): Delete.
3428 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3429 void pointer, `to' parameter a void pointer.
3430 (sh_sh64_register_convert_to_raw): Ditto.
3431
a6425924
KB
34322002-08-01 Kevin Buettner <kevinb@redhat.com>
3433
3434 * mips-tdep.c (mips_register_virtual_type): Use architecture
3435 invariant return values.
3436
ff5922b5
AC
34372002-08-01 Andrew Cagney <cagney@redhat.com>
3438
3439 * linux-proc.c: Include "gdb_string.h".
3440 * Makefile.in (linux-proc.o): Update dependency list.
3441
32a6503c
KB
34422002-08-01 Kevin Buettner <kevinb@redhat.com>
3443
3444 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3445 comment.
3446
ccaa32c7
GS
34472002-08-01 Grace Sainsbury <graces@redhat.com>
3448
3449 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3450 to_insert_watchpoint, to_remove_watchpoint,
3451 to_stopped_by_watchpoint, to_stopped_data_address,
3452 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3453 target vecctor. Define their corresponding macros so they call
3454 them.
3455
3456 * target.c: Add default and debug versions of for
3457 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3458 to_insert_watchpoint, to_remove_watchpoint,
3459 to_stopped_by_watchpoint, to_stopped_data_address,
3460 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3461
78fde5f8
KB
34622002-08-01 Kevin Buettner <kevinb@redhat.com>
3463
3464 * mips-tdep.c (mips_register_virtual_type): New function.
3465 (mips_gdbarch_init): Register mips_register_virtual_type()
3466 with gdbarch machinery.
3467 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3468 this file instead of tm-bigmips.h.
3469 (MIPS_REGSIZE): Delete this macro.
3470 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3471 multiarch version in mips-tdep.c will be found.
3472
db034ac5
AC
34732002-08-01 Andrew Cagney <cagney@redhat.com>
3474
3475 * NEWS: Menion that CHILL has been made obsolete.
3476
3477 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
3478 * stabsread.c (read_range_type): Ditto.
3479 * gdbtypes.h: Ditto.
3480 * language.c (binop_type_check): Ditto.
3481 (binop_result_type): Ditto.
3482 (integral_type): Ditto.
3483 (character_type): Ditto.
3484 (string_type): Ditto.
3485 (boolean_type): Ditto.
3486 (structured_type): Ditto.
3487 (lang_bool_type): Ditto.
3488 (binop_type_check): Ditto.
3489 * language.h (_LANG_chill): Ditto.
3490 * dwarfread.c (set_cu_language): Ditto.
3491 * dwarfread.c (CHILL_PRODUCER): Ditto.
3492 * dwarfread.c (handle_producer): Ditto.
3493 * expression.h (enum exp_opcode): Ditto.
3494 * eval.c: Ditto for comments.
3495 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3496 * expprint.c (print_subexp): Ditto.
3497 (print_subexp): Ditto.
3498 * valops.c (value_cast): Ditto.
3499 (search_struct_field): Ditto.
3500 * value.h (COERCE_VARYING_ARRAY): Ditto.
3501 * symfile.c (init_filename_language_table): Ditto.
3502 (add_psymbol_with_dem_name_to_list): Ditto.
3503 * valarith.c (value_binop): Ditto.
3504 (value_neg): Ditto.
3505 * valops.c (value_slice): Ditto.
3506 * symtab.h (union language_specific): Ditto.
3507 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3508 (SYMBOL_DEMANGLED_NAME): Ditto.
3509 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3510 * defs.h (enum language): Ditto.
3511 * symtab.c (got_symtab): Ditto.
3512 * utils.c (fprintf_symbol_filtered): Ditto.
3513
3514 * ch-typeprint.c: Make file obsolete.
3515 * ch-valprint.c: Make file obsolete.
3516 * ch-lang.h: Make file obsolete.
3517 * ch-exp.c: Make file obsolete.
3518 * ch-lang.c: Make file obsolete.
3519
3520 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3521 CHILL_LIB.
3522 (TARGET_FLAGS_TO_PASS): Ditto.
3523 (CHILLFLAGS): Obsolete.
3524 (CHILL): Obsolete.
3525 (CHILL_FOR_TARGET): Obsolete.
3526 (CHILL_LIB): Obsolete.
3527 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3528 ch-valprint.c.
3529 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3530 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3531 ch-lang.o.
3532 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3533 targets.
3534
8aaf0b47
JB
35352002-07-31 Joel Brobecker <brobecker@gnat.com>
3536
3537 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3538 This does not change anything at the moment, but will be helpful
3539 later when full Ada support is integrated.
3540
f3a7b3a5
KB
35412002-07-31 Kevin Buettner <kevinb@redhat.com>
3542
3543 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3544 help message.
3545
fb850278
KB
35462002-07-31 Kevin Buettner <kevinb@redhat.com>
3547
3548 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3549 and save it in a local variable. Use variable in later test.
3550
e3bddbfa
KB
35512002-07-31 Kevin Buettner <kevinb@redhat.com>
3552
3553 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3554 test. (Thanks to Daniel Jacobowitz.)
3555
28d169de
KB
35562002-07-31 Kevin Buettner <kevinb@redhat.com>
3557
3558 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3559 (mips_abi_strings): Add "n64".
3560 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3561
7fe7e44e
KB
35622002-07-31 Kevin Buettner <kevinb@redhat.com>
3563
3564 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3565 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3566
c6caf090
KB
35672002-07-31 Kevin Buettner <kevinb@redhat.com>
3568
3569 * utils.c (host_pointer_to_address, address_to_host_pointer):
3570 Use gdb_assert() instead of explicit call to internal_error().
3571
c41669e0
KB
35722002-07-30 Kevin Buettner <kevinb@redhat.com>
3573
3574 * Makefile.in (rs6000-nat.o): Update dependencies.
3575
3576 From Nicholas Duffek:
3577 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3578 (aix-thread.o): New rule.
3579 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3580 * config/powerpc/aix432.mh: New file.
3581
2fda4977
DJ
35822002-07-30 Daniel Jacobowitz <drow@mvista.com>
3583
3584 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3585 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3586 (fetch_core_registers, ppc_linux_supply_gregset)
3587 (ppc_linux_supply_fpregset): New functions.
3588 (ppc_linux_regset_core_fns): New.
3589 (_initialize_ppc_linux_tdep): Call add_core_fns.
3590 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3591 and ppc_linux_supply_gregset.
3592 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3593 (supply_fpregset): Call ppc_linux_supply_fpregset.
3594 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3595 corelow.o.
3596 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3597
729051e6
DJ
35982002-07-30 Daniel Jacobowitz <drow@mvista.com>
3599
3600 * symtab.c (lookup_symbol): Demangle before lowercasing.
3601
5f8a3188
AC
36022002-07-30 Andrew Cagney <ac131313@redhat.com>
3603
3604 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3605 declaration.
3606 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3607 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3608 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3609 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3610 "gdb_string.h".
3611 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3612 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3613 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3614 (avr-tdep.o, mon960-rom.o): Ditto.
3615 (aout_stabs_gnu_h): Define.
3616 (symtab_h): Remove $(gdb_obstack_h).
3617
67f07146
JB
36182002-07-30 Jim Blandy <jimb@redhat.com>
3619
3620 Patch from David Carlton <carlton@math.stanford.edu>:
3621 * gdbinit.in: Move the `dir' commands that add GDB's own source
3622 directory to the search path to the end, so that the `gdb' source
3623 directory will be searched first.
3624
04ea0df1
AC
36252002-07-29 Andrew Cagney <ac131313@redhat.com>
3626
3627 * gdb_obstack.h: New file.
3628 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3629 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3630 * objfiles.h: Include "gdb_obstack.h".
3631 * Makefile.in (gdb_obstack_h): Define.
3632 (symtab_h): Add $(gdb_obstack_h).
3633 (objfiles_h): Add $(gdb_obstack_h).
3634
3635 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3636 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3637 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3638 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3639 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3640 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3641 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3642 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3643
3644 * Makefile.in (bcache.o): Update dependencies.
3645 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3646 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3647 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3648 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3649 (stabsread.o, symfile.o, symmisc.o): Ditto.
3650 (symtab.o, typeprint.o, macroexp.o): Ditto.
3651 (macrotab.o, mdebugread.o): Ditto.
3652 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3653 (coff_ecoff_h, aout_aout64_h): Define.
3654 (aout_stabs_gnu_h, libaout_h): Define.
3655
d138e37a
AC
36562002-07-29 Andrew Cagney <cagney@redhat.com>
3657
3658 * regcache.c (struct regcache_descr): Rename nr_registers to
3659 nr_cooked_registers. Revise comments describing the structure
3660 member fields.
3661 (init_regcache_descr): Update.
3662 (init_legacy_regcache_descr): Update.
3663 (read_register_gen, write_register_gen): When a cooked register in
3664 the raw register range, directly access the value from the raw
3665 register cache.
3666
460e6ec3
AC
36672002-07-29 Andrew Cagney <ac131313@redhat.com>
3668
3669 * z8k-tdep.c: Do not include "obstack.h".
3670 * h8300-tdep.c, h8500-tdep.c: Ditto.
3671 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3672 * valprint.c, v850-tdep.c: Ditto.
3673 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3674 * mn10200-tdep.c: Ditto.
3675
3676 * Makefile.in (z8k-tdep.o): Update dependencies.
3677 (m68hc11-tdep.o, valprint.o): Ditto.
3678 (v850-tdep.o, d10v-tdep.o): Ditto.
3679 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3680 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3681 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3682 (sh_opc_h, gdb_sim_sh_h): Define.
3683 (elf_sh_h, elf_bfd_h): Define.
3684 (opcode_m68hc11_h): Define.
3685 (OPCODES_SRC, OPCODES_DIR): define.
3686 (OPCODES): Use $(OPCODES_DIR).
3687 (gdb_sim_d10v_h): Rename sim_d10v_h.
3688 (gdb_sim_arm_h): Rename sim_arm_h.
3689
790c9cf0
KB
36902002-07-26 Kevin Buettner <kevinb@redhat.com>
3691
3692 * utils.c (host_pointer_to_address, address_to_host_pointer):
3693 Change internal_error() message to indicate function responsible
3694 for the error.
3695
9647fa49
KB
36962002-07-26 Kevin Buettner <kevinb@redhat.com>
3697
3698 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3699 calls to local_hex_string_custom().
3700
dabbe2c0
KB
37012002-07-26 Kevin Buettner <kevinb@redhat.com>
3702
3703 * irix5-nat.c: Move IRIX shared library support from here...
3704 * solib-irix.c: ...to here. Revised substantially to work with
3705 generic solib framework.
3706
b96d0a4e
KB
3707 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3708 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3709 * mips-irix-tdep.c: New file.
3710
313fb2f6
KB
3711 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3712 (mips-irix-tdep.o, solib-irix.o): New rules.
3713 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3714 solib-irix.o.
3715 * config/mips/irix6.mt (TDEPFILES): Likewise.
3716 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3717
ab2eaf26
KB
37182002-07-26 Kevin Buettner <kevinb@redhat.com>
3719
177e4768 3720 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
3721 disabled (via ``#if 0'') includes.
3722
7244546a
KB
37232002-07-26 Kevin Buettner <kevinb@redhat.com>
3724
3725 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3726 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3727 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3728 Add support for the fpscr register.
3729 * rs6000-nat.c (regmap, fetch_inferior_registers)
3730 (store_inferior_registers, fetch_core_registers): Likewise.
3731
dd7be90a
KB
37322002-07-26 Kevin Buettner <kevinb@redhat.com>
3733
3734 * rs6000-nat.c (language.h): Include.
3735 (special_regs): Delete this array.
3736 (regmap): New function.
3737 (fetch_register, store_register): Use regmap() to map gdb
3738 register numbers to ptrace register numbers. Also, use
3739 outputs from regmap() to make decisions regarding type of
3740 ptrace() call to make. In particular, don't compare against
3741 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3742 (fetch_inferior_registers, store_inferior_registers): Where
3743 possible, obtain register numbers from tdep struct. Don't
3744 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3745 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3746 (LAST_UISA_SP_REGNUM): Delete.
3747
11bf77db
KB
37482002-07-25 Kevin Buettner <kevinb@redhat.com>
3749
3750 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
3751 (fetch_registers, store_register, fetch_core_registers): Don't
3752 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
3753 regcache_collect() as appropriate.
3754 (find_toc_address): Format hex address with local_hex_string().
3755
06afebeb
AC
37562002-07-25 Andrew Cagney <ac131313@redhat.com>
3757
3758 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3759 bfd/elf32-frv.c.
3760
8c554d79
TT
37612002-07-24 Tom Tromey <tromey@redhat.com>
3762
3763 * jv-exp.y: Marked all strings with _().
3764 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3765 internal_error.
3766 (MethodInvocation, CastExpression, parse_number, yyerror,
3767 java_type_from_name, push_expression_name, yylex): Typo fixes.
3768
e4c242d9
DJ
37692002-07-24 Daniel Jacobowitz <drow@mvista.com>
3770
3771 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3772 (tee_file_flush, tee_file_write, tee_file_fputs)
3773 (tee_file_isatty): New.
3774 * ui-file.h (tee_file_new): Add prototype.
3775
ebf56fd3
AS
37762002-07-24 Aidan Skinner <aidan@velvet.net>
3777
3778 * ada-lang.c: Change k&r style function definitions to prototyped
3779 form.
3780 * ada-typeprint.c: Change k&r style function definitions to prototyped
3781 form.
3782 * ada-valprint.c: Change k&r style function definitions to prototyped
3783 form.
3784
7fb623f7
AC
37852002-07-24 Andrew Cagney <cagney@redhat.com>
3786
3787 * README: Remove reference to remote-bug.
3788 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3789 remote-bug.c.
3790 (m88k-nat.o): Delete rule.
3791 (m88k-tdep.o): Delete rule.
3792 (remote-bug.o): Delete rule.
3793 * MAINTAINERS: Mark as obsolete.
3794 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3795 * m88k-tdep.c: Make file obsolete.
3796 * config/m88k/m88k.mh: Ditto.
3797 * config/m88k/delta88v4.mh: Ditto.
3798 * config/m88k/delta88v4.mt: Ditto.
3799 * config/m88k/delta88.mt: Ditto.
3800 * config/m88k/delta88.mh: Ditto.
3801 * remote-bug.c: Ditto.
3802 * config/m88k/tm-delta88.h: Ditto.
3803 * config/m88k/nm-delta88v4.h: Ditto.
3804 * config/m88k/xm-delta88.h: Ditto.
3805 * config/m88k/xm-dgux.h: Ditto.
3806 * config/m88k/tm-m88k.h: Ditto.
3807 * config/m88k/nm-m88k.h: Ditto.
3808 * config/m88k/tm-delta88v4.h: Ditto.
3809 * m88k-nat.c: Ditto.
3810 * cxux-nat.c: Ditto.
3811 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3812 and m88*-*-* obsolete.
3813 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3814 m88*-*-* obsolete.
3815
37611a2b
AC
38162002-07-24 Andrew Cagney <cagney@redhat.com>
3817
3818 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3819 constant. Same for local pointer variables.
3820 (extract_signed_integer): Ditto.
3821 * defs.h (extract_unsigned_integer): Update.
3822 (extract_signed_integer): Update.
3823
1aaa5f99
AC
38242002-07-24 Andrew Cagney <cagney@redhat.com>
3825
3826 * regcache.c (regcache_raw_write): Change buf parameter to a
3827 constant void pointer.
3828 (regcache_raw_read): Change buf parameter to a void pointer.
3829 (legacy_write_register_gen): Change myaddr parameter a constant
3830 void pointer.
3831 (supply_register): Change val parameter to a const void pointer.
3832 * regcache.h (regcache_raw_write): Update declaration.
3833 (regcache_raw_read): Update declaration.
3834 (supply_register): Update declaration.
3835
b4f5539f
TT
38362002-07-24 Tom Tromey <tromey@redhat.com>
3837
3838 * defs.h (gdb_readline_wrapper): Declare.
3839 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3840 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3841 * top.c (gdb_readline_wrapper): New function.
3842 (command_line_input): Use it.
3843
0818c12a
AC
38442002-07-24 Andrew Cagney <cagney@redhat.com>
3845
3846 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3847 regcache_read and regcache_write.
3848 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3849 * regcache.c: Update.
3850 * sh-tdep.c (sh64_push_arguments): Update comment.
3851 (sh_pseudo_register_read): Update.
3852 (sh_pseudo_register_write): Update.
3853 (sh4_register_read): Update.
3854 (sh4_register_write): Update.
3855 (sh64_pseudo_register_read): Update.
3856 (sh64_pseudo_register_write): Update.
3857 (sh64_register_read): Update.
3858 (sh64_register_write): Update.
3859 * i386-tdep.c (i386_extract_return_value): Update.
3860 (i386_extract_struct_value_address): Update.
3861 (i386_extract_return_value): Update.
3862 * blockframe.c (generic_read_register_dummy): Update.
3863 (generic_call_dummy_register_unwind): Update
3864 * infrun.c (write_inferior_status_register): Update.
3865
f7321c06
JB
38662002-07-23 Jim Blandy <jimb@redhat.com>
3867
3868 * parser-defs.h (expression_context_pc): Make this extern.
3869 (Thanks to Michael Snyder.)
3870
2037aebb
AC
38712002-07-23 Andrew Cagney <ac131313@redhat.com>
3872
3873 GDB 5.2.1 released from 5.2 branch.
3874 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3875 * README: Update to mention 5.2.1.
3876
66504d44
MS
38772002-07-23 Mark Salter <msalter@redhat.com>
3878
3879 * remote.c (remote_read_bytes): Fix check for error.
3880
27bae383
KB
38812002-07-22 Kevin Buettner <kevinb@redhat.com>
3882
3883 * aix-thread.c (language.h): Include.
3884 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3885 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3886 Print newlines at end of debug messages.
3887 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3888 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3889
38902002-07-22 Kevin Buettner <kevinb@redhat.com>
3891
3892 * aix-thread.c (ppc-tdep.h): Include.
3893 (special_register_p): New function.
3894 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3895 (store_regs_user_thread): Use register number information from
3896 gdbarch_tdep struct instead of hardcoded offsets relative to
3897 FIRST_UISA_SP_REGNUM.
3898 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3899 special_register_p() instead of using FPLAST_REGNUM and
3900 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3901 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3902 will be MQ's register number.
3903
39042002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3905
3906 * aix-thread.c (ops): Rename to aix_thread_ops.
3907 (base_ops): Rename to base_target.
3908 (ops_attach): Rename to aix_thread_attach.
3909 (ops_detach): Rename to aix_thread_detach.
3910 (ops_resume): Rename to aix_thread_detach.
3911 (ops_wait): Rename to aix_thread_wait.
3912 (ops_kill): Rename to aix_thread_kill.
3913 (init_ops): Rename to init_aix_thread_ops.
3914 (ops_fetch_register): Rename to aix_thread_fetch_register.
3915 (ops_store_register): Rename to aix_thread_store_register.
3916 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3917 (ops_thread_alive): Rename to aix_thread_thread_alive.
3918 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3919 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3920 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3921 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3922 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3923 (store_regs_lib): Rename to store_regs_user_thread.
3924 (store_regs_kern): Rename to store_regs_kernel_thread.
3925
27bae383 39262002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3927
3928 * aix-thread.c (ops_prepare_to_store): Eliminate.
3929 (init_ops): Don't initialize ops.prepare_to_store.
3930 (store_regs_kern): Pre-fetch register buffers from child,
3931 because some registers may not be in the cache. Copy
3932 regs from register cache only if they are cached.
3933 (store_regs_lib): Copy regs from register cache only
3934 if they are cached.
3935 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3936 fill_gprs64): Ditto.
3937
61c5da0b
KB
39382002-07-22 Kevin Buettner <kevinb@redhat.com>
3939
3940 * aix-thread.c (gdb_assert.h): Include.
3941 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3942 register sizes (from register cache) match size of buffer holding
3943 register data.
3944 (fill_sprs32): Change parameter types to match those in the ptrace()
3945 buffer.
3946 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3947 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3948
39492002-07-22 Michael Snyder <msnyder@redhat.com>
3950
3951 * aix-thread.c (supply_sprs64): Cosmetic change.
3952 (supply_sprs32): Cosmetic change.
3953 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3954 (fill_sprs64): Use regcache_collect instead of read_register.
3955 (store_regs_lib): Use regcache_collect instead of
3956 read_register. Use fill_sprs32 instead of fill_sprs64,
3957 if debugging a 32-bit architecture.
3958 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3959 out of the register cache, instead of passing a pointer into
3960 the register cache directly to ptrace. Use regcache_collect
3961 insteaad of read_register.
3962 (ops_prepare_to_store): Use target_read_registers instead
3963 of read_register_bytes.
3964
36479eb1
AS
39652002-07-20 Aidan Skinner <aidan@velvet.net>
3966
3967 * MAINTAINERS: Add self under write after approval.
3968
80ae6ee2
AS
39692002-07-20 Aidan Skinner <aidan@velvet.net>
3970
3971 * ada-tasks.c: Change k&r style function definitions to prototyped
3972 form.
3973
8a8ab2b9
AC
39742002-07-19 Andrew Cagney <ac131313@redhat.com>
3975
3976 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3977 * x86-64-tdep.c: Include "objfiles.h".
3978 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3979 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3980
fb16b900
ML
39812002-07-17 Michal Ludvig <michal@suse.cz>
3982
3983 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3984 (update_context): Initialise cfa variable.
3985
0fe7bf7b
MS
39862002-07-17 Michael Snyder <msnyder@redhat.com>
3987
3988 * aix-thread.c: Shorten some long lines.
3989 Bring comments into line with code spec.
3990
488f131b
JB
39912002-07-18 Joel Brobecker <brobecker@gnat.com>
3992
3993 * infrun.c: Re-indent using gdb_indent.sh.
3994
46c415d2
JB
39952002-07-18 Joel Brobecker <brobecker@gnat.com>
3996
3997 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3998 Leave the indentation temporarily untouched, to minimize the diffs.
3999
cdecafbe
EZ
40002002-07-18 Elena Zannoni <ezannoni@redhat.com>
4001
4002 * stabsread.c: Make os9k sections of the code obsolete,
4003 for real this time.
4004 * stabsread.h: Make os9k sections of the code obsolete.
4005
7b6aa020
ML
40062002-07-18 Michal Ludvig <mludvig@suse.cz>
4007
09ec9b38
ML
4008 * linux-low.c (regsets_store_inferior_registers): Add free()
4009 at the end of a loop to prevent memory leak.
4010 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4011 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
4012 * config/sparc/tm-sp64linux.h: Make the rest of #endif
4013 line a comment.
4894ac5d 4014 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 4015
233282cd
JB
40162002-07-17 Jim Blandy <jimb@redhat.com>
4017
4018 * macrocmd.c (info_macro_command): Remove newline from error
4019 message.
4020
7b6aa020 40212002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
4022
4023 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4024 (sh_gdbarch_init): Use it for sh-dsp.
4025
f7ef9339
KB
40262002-07-16 Kevin Buettner <kevinb@redhat.com>
4027
4028 * dwarf2read.c (read_initial_length): Handle older, non-standard,
4029 64-bit DWARF2 format.
4030
8dd72958
JB
40312002-07-16 Joel Brobecker <brobecker@gnat.com>
4032
4033 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4034 <sys/proc.h> when not available.
4035
a99a9e1b
AC
40362002-07-16 Andrew Cagney <ac131313@redhat.com>
4037
4038 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4039 * stabsread.c: Make os9k sections of the code obsolete.
4040 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4041 * config/i386/i386os9k.mt: Make file obsolete.
4042 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4043 (COMMON_OBS): Remove os9kread.o
4044 (SFILES): Remove os9kread.c.
4045 (os9kread.o, remote-os9k.o): Make target obsolete.
4046 * remote-os9k.c: Make file obsolete.
4047 * os9kread.c: Make file obsolete.
4048 * Makefile.in
4049
7a3085c1
AC
40502002-07-16 Andrew Cagney <ac131313@redhat.com>
4051
4052 * NEWS: Mention that the FR30 has been made obsolete.
4053 * fr30-tdep.c: Make file obsolete.
4054 * config/fr30/tm-fr30.h: Ditto.
4055 * config/fr30/fr30.mt: Ditto.
4056 * configure.tgt: Make fr30-*-elf obsolete.
4057 * MAINTAINERS: Make fr30-elf obsolete.
4058
28a93f5a
PM
40592002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
4060
4061 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4062 found is not inside a section.
4063
be006b8b
KB
40642002-07-15 Kevin Buettner <kevinb@redhat.com>
4065
4066 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4067 strerror().
4068 (pdc_realloc): Use xrealloc() instead of realloc().
4069
14fa3751
KB
40702002-07-15 Kevin Buettner <kevinb@redhat.com>
4071
4072 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4073 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4074 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4075 macros.
4076
42cc437f
KB
40772002-07-15 Kevin Buettner <kevinb@redhat.com>
4078
4079 * aix-thread.c (ptrace_check): Eliminate goto.
4080 (sync_threadlists): Eliminate gotos. Also, fix array overrun
4081 problem.
4082
8e2c28d4
KB
40832002-07-15 Kevin Buettner <kevinb@redhat.com>
4084
4085 * aix-thread.c (gdbcmd.h): Include.
4086 (DEBUG, DBG, DBG2, dbg): Eliminate.
4087 (debug_aix_thread): New static global.
4088 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4089 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4090 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4091 invocations to DBG and DBG2 macros to test against
4092 ``debug_aix_thread'' and call fprintf_unfiltered().
4093 (_initialize_aix_thread): Add new command "set debug aix-thread".
4094
30413464
AC
40952002-07-15 Andrew Cagney <ac131313@redhat.com>
4096
4097 From Gerhard Tonn <TON@de.ibm.com>:
4098 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4099 instead of supply_register.
4100
7c43edc1
AC
41012002-07-15 Andrew Cagney <ac131313@redhat.com>
4102
4103 * dwarf2cfi.c: Include "gdb_assert.h".
4104 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4105 non-NULL.
4106 (update_context): Do not use __func__. Add missing ``break''.
4107 (update_context): Do not use __func__.
4108
9364a0ef
EZ
41092002-07-15 Elena Zannoni <ezannoni@redhat.com>
4110
4111 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4112 and its setting. Set gdbarch instruction printing functions
4113 directly. For non-rs6000 case use new function
4114 gdb_print_insn_powerpc.
4115 (gdb_print_insn_powerpc): New function.
4116
3fbeef0b
AC
41172002-07-13 Andrew Cagney <ac131313@redhat.com>
4118
92eb23c5 4119 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
4120 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4121 * configure.tgt: Mark d30v-*-* as obsolete.
4122 * d30v-tdep.c: Mark file as obsolete.
4123 * config/d30v/d30v.mt: Ditto.
4124 * config/d30v/tm-d30v.h: Ditto.
4125
aacb1f0a
AS
41262002-07-13 Aidan Skinner <aidan@velvet.net>
4127
4128 * ada-tasks.c (add_task_entry): replace calls to
4129 malloc() with xmalloc
4130 * ada-tasks.c (init_task_list): replace calls to free with xfree()
4131
4132 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4133 ada_finish_decode_line_1, all_sals_for_line
4134 ada_breakpoint_rewrite): replace calls to free() with xfree()
4135
c11d79f2
KB
41362002-07-12 Kevin Buettner <kevinb@redhat.com>
4137
4138 From Nicholas Duffek (with minor changes by Martin Hunt,
4139 Louis Hamilton, and Kevin Buettner):
4140 * aix-thread.c: New file.
4141
8e19ed76
PS
41422002-07-12 Petr Sorfa <petrs@caldera.com>
4143
4144 * dwarf2read.c (dwarf2_invalid_attrib_class): New
4145 complaint for invalid attribute class or form.
4146 (read_func_scope): DW_AT_frame_base
4147 better handling of DW_AT_block*.
4148 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4149 better handling of DW_AT_block*.
4150 (read_common_block): DW_AT_location
4151 better handling of DW_AT_block*.
4152 (read_partial_die): DW_AT_location better handling
4153 of DW_AT_block*.
4154 (new_symbol): DW_AT_external better handling of
4155 DW_AT_block*. Proper initialization of variable
4156 "addr".
4157 (attr_form_is_block): New function that returns true
4158 if the attribute's form is of DW_FORM_block*.
4159
295401f7
DJ
41602002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4161
4162 * valops.c (find_method_list): Remove comment about
4163 removed STATIC_MEMFUNCP argument.
4164 (value_find_oload_method_list): Likewise.
4165
e42dc924
KB
41662002-07-12 Kevin Buettner <kevinb@redhat.com>
4167
4168 From Nicholas Duffek:
4169 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4170 target_new_objfile_hook.
4171
6904b546
KB
41722002-07-12 Kevin Buettner <kevinb@redhat.com>
4173
4174 From Nicholas Duffek:
4175 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4176 csect.
4177
53fe9346
AC
41782002-07-12 Andrew Cagney <cagney@redhat.com>
4179
4180 * MAINTAINERS: Mention --enable-sim-build-warnings.
4181 (m68hc11-elf): Disable sim build warnings.
4182 (m32r-elf): Mark as broken obsolete candidate.
4183 (x86_64-linux-gnu): Mark as buildable with -Werror.
4184 (arm-elf): Change -w to ``,'' which enables warnings but not
4185 -Werror.
4186
af5f3db6
AC
41872002-07-12 Andrew Cagney <ac131313@redhat.com>
4188
4189 * bcache.h: Update copyright.
4190 (struct bstring, struct bcache): Move definition to "bcache.c".
4191 Replaced by opaque declaration.
4192 (bcache_xfree): Replace free_bcache.
4193 (bcache_xmalloc, bcache_memory_used): Declare.
4194
4195 * bcache.c: Update copyright.
4196 (struct bstring, struct bcache): Moved to here from "bcache.h".
4197 Update comments.
4198 (bcache_xmalloc, bcache_memory_used): New functions.
4199 (bcache_xfree): Replace function free_bcache.
4200
4201 * Makefile.in (objfiles.o): Add $(bcache_h).
4202 (objfiles_h): Remove $(bcache_h).
4203 (symfile.o): Add $(bcache_h).
4204
4205 * symmisc.c: Update copyright.
4206 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4207 (print_objfile_statistics): Use bcache_memory_used.
4208
4209 * symfile.c: Include "bcache.h".
4210 (reread_symbols): Use bcache_xfree.
4211 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4212 (add_psymbol_to_list): Pass psymbol_cache by value.
4213 (add_psymbol_with_dem_name_to_list): Ditto.
4214
4215 * objfiles.h: Update copyright.
4216 (struct bcache): Declare opaque. Do not include "bcache.h".
4217 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4218 bcache'' pointers.
4219 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4220
4221 * objfiles.c: Include "bcache.h". Update copyright.
4222 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4223 macro_cache.
4224 (free_objfile): Use bcache_xfree.
4225
444199e7
GS
42262002-07-11 Grace Sainsbury <graces@redhat.com>
4227
4228 * monitor.c (monitor_fetch_register): Make name a constant.
4229 (monitor_store_register): Same.
4230
261397f8
DJ
42312002-07-11 Daniel Jacobowitz <drow@mvista.com>
4232
4233 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4234 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4235 (finish_block) For non-function blocks, hash the symbol table. For
4236 function blocks, mark the symbol table as unhashed.
4237 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4238 (msymbol_hash_iw): Likewise.
4239 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4240 value.
4241 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4242 (lookup_minimal_symbol): Likewise for both.
4243 * symtab.h (struct block): Add `hashtable' flag. Comment the
4244 hashtable.
4245 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4246 (ALL_BLOCK_SYMBOLS): Update.
4247 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4248 (struct symbol): Add `hash_next' pointer.
4249 * symtab.c (lookup_block_symbol): Search using the hash table when
4250 possible.
4251 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4252 (search_symbols, find_addr_symbol): Likewise.
4253
4254 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4255 (read_dst_symtab): Likewise.
4256 * jv-lang.c (get_java_class_symtab): Likewise.
4257 * mdebugread.c: Include "gdb_assert.h".
4258 (shrink_block): Assert that the block being modified is not hashed.
4259 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4260 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4261 symbols.
4262 (dump_symtab): Recognize hashed blocks.
4263 * printcmd.c (print_frame_args): Assert that function blocks do not
4264 have hashed symbol tables.
4265 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4266 (fill_in_ada_prototype, debug_print_block): Likewise.
4267 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4268
6f0eaa01
CV
42692002-07-11 Corinna Vinschen <vinschen@redhat.com>
4270
4271 * stack.c (print_frame): Use result of frame_address_in_block()
4272 instead of fi->pc when evaluating symbols.
4273 (backtrace_command_1): Ditto.
4274
a208b0cb
AC
42752002-07-11 Andrew Cagney <cagney@redhat.com>
4276
4277 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4278 Make static.
4279
4280 * arm-tdep.c (arm_register_name): Make return type constant.
4281
a6b6b089
AC
42822002-07-10 Andrew Cagney <ac131313@redhat.com>
4283
5ae5f592
AC
4284 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4285 prototype.
4286 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4287 * s390-tdep.c (s390_fp_regnum): Ditto.
4288 (s390_read_fp): Ditto.
4289 (s390_pop_frame): Ditto.
4290 (_initialize_s390_tdep): Ditto.
4291 * remote.c (get_remote_state): Ditto.
4292 * procfs.c (mappingflags): Ditto.
4293 * memattr.c (_initialize_mem): Ditto.
4294 * mcore-tdep.c (mcore_pop_frame): Ditto.
4295 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4296 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4297 * language.c (set_case_str): Ditto.
4298 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4299 * frv-tdep.c (new_variant): Ditto.
4300 (frv_stopped_data_address): Ditto.
4301 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4302 (context_alloc): Ditto.
4303 (frame_state_alloc): Ditto.
4304 (unwind_tmp_obstack_init): Ditto.
4305 (unwind_tmp_obstack_free): Ditto.
4306 (cfi_read_fp): Ditto.
4307 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4308 (cris_pop_frame): Ditto.
4309 * c-lang.c (scanning_macro_expansion): Ditto.
4310 (finished_macro_expansion): Ditto.
4311 (c_preprocess_and_parse): Ditto.
4312 * gdbarch.sh: Ditto.
4313 * gdbarch.h, gdbarch.c: Regenerate.
4314 * config/mn10200/tm-mn10200.h: Adjust indentation.
4315 * target.c: Adjust indentation.
4316 * symtab.h: Adjust indentation.
4317 * stabsread.h: Adjust indentation.
4318 * remote-es.c: Adjust indentation.
4319 * os9kread.c: Adjust indentation.
4320
43212002-07-10 Andrew Cagney <ac131313@redhat.com>
4322
a6b6b089
AC
4323 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4324 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4325
a1789893
GS
43262002-07-10 Grace Sainsbury <graces@redhat.com>
4327
4328 * NEWS: Mention m68k, mcore multi-arching.
4329 * MAINTAINERS: Change status of m68k, mcore to reflect
4330 multi-arching.
4331
02f0d45d
DJ
43322002-07-10 Daniel Jacobowitz <drow@mvista.com>
4333
4334 * valops.c (find_overload_match): Free oload_syms.
4335
f15f768e
JB
43362002-07-09 Joel Brobecker <brobecker@gnat.com>
4337
4338 Define HAVE_SYS_PROC_H if sys/proc.h exists
4339 * configure.in: Add check for sys/proc.h
4340 * config.in: Regenerate.
4341 * configure: Regenerate.
4342
902a7139
GS
43432002-07-09 Grace Sainsbury <graces@redhat.com>
4344
4345 * config/m68k/tm-m68k.h: Remove macros wrapped in
4346 #if !GDB_MULTI_ARCH.
4347
a534e424
AC
43482002-07-08 Andrew Cagney <ac131313@redhat.com>
4349
4350 * config.in, configure: Regenerate.
4351
9b94f7bf
MK
43522002-07-08 Mark Kettenis <kettenis@gnu.org>
4353
4354 * dwarf2cfi.c: Include "gcore.h".
4355 (execute_stack_op): Fix implementation of the
4356 DW_OP_deref and DW_OP_deref_size operators by letting do their
4357 lookup in the target.
4358
1d34db41
MK
43592002-07-07 Mark Kettenis <kettenis@gnu.org>
4360
4361 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4362 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4363 tdep->sc_sp_offset.
4364
79d5b63a
DJ
43652002-07-05 Daniel Jacobowitz <drow@mvista.com>
4366
4367 Fix PR gdb/595, gdb/602
4368 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4369 Don't call value_cast, just read the vtable pointer; update comments
4370 to match.
4371
3bb912e8
GS
43722002-07-05 Grace Sainsbury <graces@redhat.com>
4373
4374 * config/mcore/tm-mcore.h: Remove file.
4375 * config/mcore/mcore.mt: Remove definition of TM_FILE
4376 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4377
ca39387d
MK
43782002-07-05 Mark Kettenis <kettenis@gnu.org>
4379
4380 * i386bsd-tdep.c: Include "gdb_string.h".
4381
efdc1108
GS
43822002-07-04 Grace Sainsbury <graces@redhat.com>
4383
4384 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4385 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4386 mcore-tdep.
4387 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4388 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4389 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4390 (RETVAL_REGNUM): Move macros from tm-mcore.h
4391 (mcore_reg_struct_has_addr): New function.
4392 (mcore_gdbarch_init): Added initializations for the macros removed
4393 from tm-mcore.h.
4394
bb21884d
MK
43952002-07-04 Mark Kettenis <kettenis@gnu.org>
4396
4397 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4398 traditonal string branding within the ELF header.
4399
228c6d41
DJ
44002002-07-04 Daniel Jacobowitz <drow@mvista.com>
4401
4402 * symtab.c (remove_params): New function.
4403 (make_symbol_overload_list): Use it instead of cplus_demangle.
4404 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4405
2404952e
MK
44062002-07-04 Mark Kettenis <kettenis@gnu.org>
4407
e5e4acad
MK
4408 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4409
baadce09
MK
4410 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4411 New variables.
4412 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4413 and tdep->sigtramp_end.
4414 * i386obsd-nat.c: New file.
4415 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4416
2404952e
MK
4417 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4418 Don't call get_current_frame().
4419
9b4f1ba7
PM
44202002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4421
4422 * i386-nat.c (child_post_startup_inferior): New function
4423 calling i386_cleanup_dregs if
4424 I386_USE_GENERIC_WATCHPOINTS is defined.
4425 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4426 conditional to acknowledge that i386-nat.c has its
4427 own child_post_startup_inferior function.
4428
c0d1d883
MK
44292002-07-04 Mark Kettenis <kettenis@gnu.org>
4430
00f8375e
MK
4431 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4432 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4433 instead of MAX_REGISTER_RAW_SIZE.
4434 (i386_extract_return_value, i386_extract_struct_value_address):
4435 Convert to use regcache.
4436 (i386_gdbarch_init): Set max_register_raw_size and
4437 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4438 Set extract_return_value and extract_struct_value_address instead
4439 of their deprecated variants.
4440
c0d1d883
MK
4441 Convert i386 target to generic dummy frames.
4442 * i386-tdep.c: Include "symfile.h".
4443 (i386_frameless_signal_p): Consider a function to be frameless if
4444 the pc points at the first instruction of the function.
4445 (i386_frame_chain): Handle (generic) call dummies.
4446 (i386_frame_saved_pc): Likewise.
4447 (i386_frame_init_saved_regs): Remove code dealing with call
4448 dummies on the stack.
4449 (i386_push_dummy_frame): Removed.
4450 (i386_call_dummy_words): Removed.
4451 (i386_fix_call_dummy): Removed.
4452 (i386_push_return_address): New function.
4453 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4454 parameter, and don't call get_current_frame.
4455 (i386_pop_frame): New function.
4456 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4457 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4458 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4459 call_dummy_length to 0, set call_dummy_words to NULL, set
4460 sizeof_call_dummy_words to 0, set fix_call_dummy to
4461 generic_fix_call_dummy, set pc_in_call_dummy to
4462 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4463 generic_push_dummy_frame, set push_return_address to
4464 i386_push_return_address and set frame_chain_valid to
4465 generic_file_frame_chain_valid.
4466
049ee0e4
AC
44672002-07-03 Andrew Cagney <ac131313@redhat.com>
4468
4469 * gdbarch.sh (struct regcache): Add opaque declaration.
4470 (EXTRACT_RETURN_VALUE): New architecture method.
4471 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4472 * gdbarch.h, gdbarch.c: Regenerate.
4473 * arch-utils.c (legacy_extract_return_value): New function.
4474 * arch-utils.h (legacy_extract_return_value): Declare.
4475 * values.c (value_being_returned): Re-enable code handling
4476 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4477 deprecated_grub_regcache_for_registers call to block handling
4478 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4479 (EXTRACT_RETURN_VALUE): Do not define.
4480
4e0d9804
GS
44812002-07-03 Grace Sainsbury <graces@redhat.com>
4482
4483 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4484 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4485 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4486 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4487 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4488 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4489 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4490 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4491 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4492 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4493 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4494 argument so the function fits the prototype in the architecture
4495 vector.
4496 (mcore_pop_frame): Remove argument so the function fits the
4497 prototype. Use get_current_frame instead of the argument.
4498 (mcore_push_arguments): Change type of struct_return so the
4499 function can be used in the architecture vector.
4500 (mcore_store_struct_return): Add.
4501 (mcore_frame_init_saved_regs): Add.
4502 (mcore_gdbarch_init): Add function calls to replace the macros
4503 removed from tm-mcore.h
4504
36160dc4
AC
45052002-07-03 Andrew Cagney <ac131313@redhat.com>
4506
4507 * infcmd.c (print_return_value): Remove compatibility code calling
4508 deprecated_grub_regcache_for_registers.
4509
4510 * values.c: Include "regcache.h".
4511 (value_being_returned): Update. Use
4512 deprecated_grub_regcache_for_registers to extract the register
4513 buffer address.
4514 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4515 ``struct regcache''.
4516 * Makefile.in (values.o): Add dependency on $(regcache_h).
4517
4518 * inferior.h (run_stack_dummy): Change type of second parameter to
4519 a ``struct regcache''.
4520 * valops.c (hand_function_call): Change type of retbuf to ``struct
4521 regcache''. Allocate using regcache_xmalloc, clean using
4522 make_cleanup_regcache_xfree.
4523 * infcmd.c (run_stack_dummy): Update. Use
4524 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4525
4526 * regcache.c (do_regcache_xfree): New function.
4527 (make_cleanup_regcache_xfree): New function.
4528 * regcache.h (make_cleanup_regcache_xfree): Declare.
4529
e64d9b3d
MH
45302002-07-03 Martin M. Hunt <hunt@redhat.com>
4531
4dd79c29
MH
4532 * event-top.c (command_line_handler): Don't read past
4533 beginning of buffer.
e64d9b3d 4534
4dd79c29
MH
45352002-07-03 Martin M. Hunt <hunt@redhat.com>
4536
e64d9b3d
MH
4537 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4538 struct frame_id.
4539 (varobj_create): Store frame_id for root.
4540 (varobj_gen_name): Use xasprintf.
4541 (varobj_update): Save and restore frame using get_frame_id() and
4542 frame_find_by_id().
4543 (create_child): Use xasprintf.
4544 (new_root_variable): Initialize frame_id.
4545 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4546 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4547 to prevent memory leak.
4548
26e6c56a
AC
45492002-07-03 Andrew Cagney <ac131313@redhat.com>
4550
4551 * valops.c (hand_function_call): Move declaration of retbuf to
4552 start of function, allocate using malloc, add a cleanup but before
4553 the inf_status cleanup, cleanup the buffer. Rename local variable
4554 old_chain to inf_status_cleanup.
4555
f436dd25
MH
45562002-07-03 Martin M. Hunt <hunt@redhat.com>
4557
4558 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4559
4560 * cli/cli-decode.c (cmd_func_p): New function.
4561 (cmd_func): New function.
4562
4563 * command.h: Add cmd_func() and cmd_func_p().
4564
4cfe2084
GS
45652002-07-03 Grace Sainsbury <graces@redhat.com>
4566
4567 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4568 (REGISTER_SIZE): Remove.
4569 (MAX_REGISTER_RAW_SIZE): Remove.
4570 (REGISTER_VIRTUAL_TYPE): Remove.
4571 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4572 (REGISTER_NAME): Remove.
4573 (USE_GENERIC_DUMMY_FRAMES): Remove.
4574 (CALL_DUMMY): Remove.
4575 (CALL_DUMMY_START_OFFSET): Remove.
4576 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4577 (CALL_DUMMY_LOCATION): Remove.
4578 (FIX_CALL_DUMMY): Remove.
4579 (CALL_DUMMY_ADDRESS): Remove.
4580 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4581 (SAVE_DUMMY_FRAME_TOS): Remove.
4582 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4583 (mcore_register_virtual_type): New function.
4584 (mcore_register_byte): New function.
4585 (mcore_register_size): New function.
4586 (mcore_register_name): New function.
4587 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4588 macros removed from tm-mcore.h.
4589 (mcore_dump_tdep): Add.
4590 (_initialize_mcore_tdep): Add gdbarch_register call.
4591
4fd667e9
MK
45922002-07-03 Mark Kettenis <kettenis@gnu.org>
4593
4594 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4595 frameless_look_for_prologue, such that we actually call this
4596 function.
4597
42f99ac2
JB
45982002-07-02 Joel Brobecker <brobecker@gnat.com>
4599
4600 * frame.h (frame_address_in_block): New function.
4601
4602 * blockframe.c (frame_address_in_block): New function extracted
4603 from get_frame_block().
4604 (get_frame_block): Use frame_address_in_block().
4605 (block_innermost_frame): Use frame_address_in_block() to match
4606 the frame pc address against the block boundaries rather than
4607 the frame pc directly. This prevents a failure when a frame pc
4608 is actually a return-address pointing immediately after the end
4609 of the given block.
4610
103a1597 46112002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
4612
4613 * MAINTAINERS: Add self under write after approval.
4614
46152002-07-02 Grace Sainsbury <graces@redhat.com>
4616
103a1597
GS
4617 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4618 used in architecture vector. The default is
4619 m68k_local_breakpoint_from_pc.
4620 (m68k_local_breakpoint_from_pc): Add.
4621 (enum): Add register numbers from tm-m68k.h.
4622 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4623 vector.
4624 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4625 GDB_MULTI_ARCH_PARTIAL.
4626 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4627 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4628 m68k-tdep.c.
4629 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4630 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4631 to enum in m68k-tdep.c
4632
7a5a0534
JB
46332002-07-02 Joel Brobecker <brobecker@gnat.com>
4634
4635 * solib-osf.c (open_map): Compute the list of shared libraries
4636 loaded by the inferior, rather than the list of libraries loaded
4637 by GDB itself. Otherwise, GDB ends up reading the symbols from
4638 the wrong shared libraries...
4639
6f558d74
MK
46402002-07-02 Mark Kettenis <kettenis@gnu.org>
4641
b7d15bf7
MK
4642 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4643 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4644 macros.
4645 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4646 Remove functions.
4647 (FRAMELESS_SIGNAL): Remove function.
4648 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4649 i386_linux_saved_pc_after_call): Removed.
4650 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4651 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4652 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4653
6bff26de
MK
4654 * i386-tdep.c (i386_frameless_signal_p): New function.
4655 (i386_frame_chain): Deal with frameless signals.
4656 (i386_sigtramp_saved_sp): New function.
4657 (i386_frame_saved_pc): Deal with frameless signals.
4658 (i386_saved_pc_after_call): Make sure the correct value is
4659 returned just after entry into a sigtramp.
4660 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4661 i386fbsd4_sc_sp_offset): New variables.
4662 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4663 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4664 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4665 similiar to what we already did for sc_pc_offset.
4666 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4667 tdep->sc_sp_offset.
4668
6f558d74
MK
4669 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4670
145564b7
ML
46712002-07-02 Michal Ludvig <mludvig@suse.cz>
4672
4673 * config/i386/tm-x86-64linux.h: New.
4674 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4675 definitions.
4676 * config/i386/nm-x86-64.h: Rename to ...
4677 * config/i386/nm-x86-64linux.h: ... this one.
4678 * config/i386/x86-64linux.mh: Reflect the above change.
4679
3a1e71e3
MK
46802002-07-01 Mark Kettenis <kettenis@gnu.org>
4681
21d0e8a4
MK
4682 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4683 with sigcontext_addr. Add sc_sp_offset.
4684 (i386bsd_sigtramp_saved_pc): Remove prototype.
4685 (i386bsd_sicontext_addr): Add prototype.
4686 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4687 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4688 (i386_svr4_sigtramp_saved_pc): Removed.
4689 (i386_svr4_sigcontext_addr): New function.
4690 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4691 Initialize tdep->sigcontext_addr instead. Initialize
4692 tdep->sc_pc_offset and tdep->sc_sp_offset.
4693 (i386_gdbarch_init): Likewise.
4694 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4695 any more.
4696 (i386bsd_sigtramp_saved_pc): Remove function.
4697 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4698 Initialize tdep->sigcontext_addr instead. Initialize
4699 tdep->sc_pc_offset.
4700 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4701 of tdep->sigtramp_saved_pc.
4702 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4703 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4704 instead.
4705
3a1e71e3
MK
4706 * i386-tdep.c (i386_frameless_function_invocation,
4707 i386_frame_num_args, i386_frame_init_saved_regs,
4708 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4709 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4710 i386_extract_return_value, i386_store_return_value,
4711 i386_extract_struct_value_address, i386_register_virtual_type,
4712 i386_register_convertible, i386_register_convert_to_virtual,
4713 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4714 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4715 static.
4716
52e9098c
MK
47172002-07-01 Mark Kettenis <kettenis@gnu.org>
4718
77b13a25
MK
4719 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4720
52e9098c
MK
4721 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4722 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4723 this macro. Include "value.h".
4724
1b372fff
AS
47252002-06-30 Aidan Skinner <aidan@velvet.net>
4726
4727 * ada-exp.tab.c: remove as it's a generated file
4728 * ada-lex.c: remove as it's a generated file
4729
9c5045b5
MK
47302002-06-30 Mark Kettenis <kettenis@gnu.org>
4731
4a93c5bb
MK
4732 * config/i386/tm-i386.h (struct frame_info, struct
4733 frame_saved_regs, struct value, struct type): Remove forward
4734 declarations.
4735
322d4fe0
MK
4736 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4737 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4738 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4739 (FILL_FPXREGSET): Define.
4740
fdd8263d
MK
4741 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4742
482e577b
MK
4743 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4744 i[3456]86-*-netbsd* case.
4745 * config/i386/tm-obsd.h: Removed.
4746 * config/i386/obsd.mt: Removed.
4747 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4748 core-aout.o.
4749 (MH_CFLAGS): Add -DYYDEBUG=0.
4750
6916549a
MK
4751 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4752 i386nbsd_sc_pc_offset on OpenBSD too.
4753
9c5045b5
MK
4754 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4755 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4756 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4757 define.
4758 * i386bsd-tdep.c: Include "arch-utils.h".
4759 (i386bsd_aout_in_solib_call_trampoline): New function.
4760 (i386bsd_init_abi): Set in_solib_call_trampoline to
4761 i386bsd_aout_in_solib_call_trampoline.
4762 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4763 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4764
aa84d1bb
AC
47652002-06-28 Andrew Cagney <ac131313@redhat.com>
4766
4767 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4768 (struct obstack, struct bcache): Add opaque declarations.
4769 * Makefile.in (macrotab_h): Update
4770
b4d83933
AC
47712002-06-28 Andrew Cagney <ac131313@redhat.com>
4772
4773 * blockframe.c (generic_find_dummy_frame): Change return type to
4774 ``struct regcache''.
4775 (struct dummy_frame): Replace field ``registers'' with regcache, a
4776 struct regcache object.
4777 (generic_find_dummy_frame): Update.
4778 (generic_push_dummy_frame): Update. Use regcache_xfree,
4779 regcache_xmalloc and regcache_cpy.
4780 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4781 regcache_xfree.
4782 (deprecated_generic_find_dummy_frame): Update.
4783 (generic_read_register_dummy): Update. Use
4784 regcache_read_as_address.
4785 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4786 (generic_get_saved_register): Update. Use regcache_read.
4787
08c0b5bc
AC
47882002-06-28 Andrew Cagney <ac131313@redhat.com>
4789
4790 * Makefile.in (objfiles_h): Add $(bcache_h).
4791 * objfiles.h: Include "bcache.h".
4792
4793 * Makefile.in (symtab_h): Remove $(bcache_h).
4794 * symtab.h: Do not include "bcache.h".
4795
1f89801a
AC
47962002-06-28 Andrew Cagney <ac131313@redhat.com>
4797
4798 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4799 generic_func_frame_chain_valid.
4800
b9644b58
DB
48012002-06-28 David O'Brien <obrien@FreeBSD.org>
4802
4803 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4804 * config/i386/tm-fbsd.h: Likewise.
4805
dd486634
AC
48062002-06-28 Andrew Cagney <ac131313@redhat.com>
4807
4808 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4809 generic_unwind_get_saved_register.
4810
0b434a00
AC
48112002-06-27 Andrew Cagney <ac131313@redhat.com>
4812
4813 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4814 * regcache.c (supply_register): Add missing argument to
4815 register_buffer call.
4816
f30e5a77
AC
48172002-06-27 Andrew Cagney <ac131313@redhat.com>
4818
4819 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4820 Solaris /bin/grep does not not like it. From Peter Schauer.
4821
9f064c95
TT
48222002-06-26 Tom Tromey <tromey@redhat.com>
4823
4824 * command.h (add_setshow_cmd): Declare.
4825 (add_setshow_cmd_full): Declare.
4826 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4827 returns void. Use add_setshow_cmd_full.
4828 (add_setshow_cmd_full): New function.
4829 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4830 (add_setshow_boolean_cmd): Likewise.
4831
099c7589
JT
48322002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4833
4834 * config/vax/tm-vax.h: Protect from multiple inclusion.
4835 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4836 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4837 * config/vax/tm-vaxbsd.h: ...here. New file.
4838 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4839
1d049c5e
JT
48402002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4841
4842 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4843 (BELIEVE_PCC_PROMOTION): Remove.
4844 (AP_REGNUM): Move to...
4845 * config/vax/nm-vax.h: ...here.
4846 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4847 (vax_breakpoint_from_pc): New function.
4848 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4849 and gdbarch_believe_pcc_promotion.
4850
4791e091
JT
48512002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4852
4853 * Makefile.in (vax_tdep_h): Define.
4854 (vax-tdep.o): Use $(vax_tdep_h).
4855 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4856 (vax_dump_tdep): New function.
4857 (_initialize_vax_tdep): Register vax_dump_tdep.
4858 * vax-tdep.h: Include osabi.h.
4859 (struct gdbarch_tdep): New.
4860
da130f98
AC
48612002-06-26 Andrew Cagney <cagney@redhat.com>
4862
4863 * frame.h (deprecated_generic_find_dummy_frame): Rename
4864 generic_find_dummy_frame.
4865 * blockframe.c (generic_find_dummy_frame): Make static.
4866 (deprecated_generic_find_dummy_frame): New function.
4867 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4868 generic_find_dummy_frame with deprecated_find_dummy_frame.
4869 (sh64_nofp_frame_init_saved_regs): Ditto.
4870 (sh_fp_frame_init_saved_regs): Ditto.
4871 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4872 (s390_frame_chain): Ditto.
4873 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4874
6300c360
GS
48752002-06-26 Grace Sainsbury <graces@redhat.com>
4876
4877 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4878 gdbarch vector are at the top.
4879 (NUM_REGS): Remove.
4880 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4881 (FRAME_ARGS_ADDRESS): Remove.
4882 (FRAME_LOCALS_ADDRESS): Remove.
4883 (FRAME_NUM_ARGS): Remove.
4884 (FRAME_ARGS_SKIP): Remove.
4885 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4886 (m68k_gdbarch_init): Add gdbarch initializations for macros
4887 undefined in tm-m68k.h
4888
1c617db8
GS
48892002-06-26 Grace Sainsbury <graces@redhat.com>
4890
4891 * monitor.h: Add the function regname to monitor_ops
4892 structure. This way NUM_REGS does not have to be a constant.
4893 * monitor.c (monitor_fetch_register): Added support for regname
4894 function. The function is called if the array regnames is NULL.
4895 (monitor_store_register): Same.
da130f98
AC
4896 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4897 regnames array.
1c617db8
GS
4898 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4899 cpu32bug_cmds.regname to point to new function.
4900 * abug-rom.c (abug_regname): Same as above.
4901 (init_abug_cmds): Same.
4902 * dbug-rom.c (dbug_regname): Same as above.
4903 (init_dbug_cmds): Same.
4904 * remote-est.c (est_regname): Same.
4905 (init_est_cmds): Same.
4906 * rom68k-rom.c (rom68k_regname): Same.
4907 (init_rom68k_cmds): Same.
4908
ea9365bb
TT
49092002-06-25 Tom Tromey <tromey@redhat.com>
4910
4911 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4912
72cec141
AC
49132002-06-25 Andrew Cagney <cagney@redhat.com>
4914
4915 * infrun.c (stop_registers): Change variable's type to ``struct
4916 regcache'''.
4917 (xmalloc_inferior_status): Delete function.
4918 (free_inferior_status): Delete function.
4919 (normal_stop): Use regcache_cpy.
4920 (struct inferior_status): Change type of fields ``stop_registers''
4921 and ``registers'' to ``struct regcache''.
4922 (write_inferior_status_register): Use regcache_write.
4923 (save_inferior_status): Instead of calling
4924 xmalloc_inferior_status, allocate the inf_status buffer directly.
4925 Use regcache_dup_no_passthrough and regcache_dup to save the
4926 buffers.
4927 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4928 Replace the stop_registers regcache instead of overriding it. Use
4929 regcache_xfree. Instead of calling free_inferior_status, xfree
4930 the buffer directly.
4931 (discard_inferior_status): Use regcache_xfree. Instead of calling
4932 free_inferior_status, xfree the buffer directly.
4933 (build_infrun): Use regcache_xmalloc.
4934 (_initialize_infrun): Delete redundant call to build_infrun.
4935
4936 * Makefile.in (infcmd.o): Add $(regcache_h).
4937
4938 * infcmd.c: Include "regcache.h".
4939 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4940 obtain the address of `stop_registers' register buffer.
4941 (print_return_value): Ditto.
4942
4943 * inferior.h (struct regcache): Add opaque declaration.
4944 (stop_registers): Change variable's declared type to ``struct
4945 regcache''.
4946
defc6f8c
TT
49472002-06-24 Tom Tromey <tromey@redhat.com>
4948
c0e624e7
TT
4949 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4950 * target.c (initialize_targets): Fixed typo in
4951 trust-readonly-sections `show' documentation.
4952
defc6f8c
TT
4953 * main.c: Marked all strings with _().
4954
2b236d82
DH
49552002-06-24 Don Howard <dhoward@redhat.com>
4956
4957 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4958 that means max CORE_ADDR+1.
4959 (lookup_mem_region): Ditto.
4960 (mem_info_command): Ditto.
4961
942dc0e9
GS
49622002-06-24 Grace Sainsbury <graces@redhat.com>
4963
4964 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4965 (REGISTER_BYTES_OK): Remove.
4966 (REGISTER_BYTES): Remove.
4967 (STORE_STRUCT_RETURN): Remove.
4968 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4969 (STORE_RETURN_VALUE): Remove.
4970 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4971 (FRAME_CHAIN): Remove.
4972 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4973 (FRAME_SAVED_PC): Remove.
4974 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4975 (m68k_store_struct_return): Add.
4976 (m68k_deprecated_extract_return_value): Add.
4977 (m68k_deprecated_extract_struct_value_address): Add.
4978 (m68k_store_return_value): Add.
4979 (m68k_frame_chain): Add.
4980 (m68k_frameless_function_invocation): Add.
4981 (m68k_frame_saved_pc): Add.
4982 (m68k_gdbarch_init): added set_gdbarch calls for new
4983 functions and deleted macros.
4984
03c30d4d
TT
49852002-06-23 Tom Tromey <tromey@redhat.com>
4986
4987 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4988 (ALLDEPFILES): Likewise.
4989 (udiheaders): Removed.
4990 (udip2soc.o): Likewise.
4991 (udi2go32.o): Likewise.
4992 (udr.o): Likewise.
4993 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4994
37e71372
AC
49952002-06-22 Andrew Cagney <ac131313@redhat.com>
4996
06a6ac57
AC
4997 * infrun.c (_initialize_infrun): Delete unnecessary call to
4998 build_infrun.
4999
37e71372
AC
5000 * regcache.h: Update comments describing the regcache_cpy family
5001 of functions.
5002 (regcache_save, regcache_restore): Delete declaration.
5003 (regcache_save_no_passthrough): Delete declaration.
5004 (regcache_restore_no_passthrough): Delete declaration.
5005 * regcache.c (regcache_save): Delete function.
5006 (regcache_save_no_passthrough): Delete function.
5007 (regcache_restore): Delete function.
5008 (regcache_restore_no_passthrough): Delete function.
5009
78f6d055
AC
50102002-06-21 Andrew Cagney <ac131313@redhat.com>
5011
5012 * config/m68k/tm-m68k.h: Fix typo.
5013 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5014 (m68k_frame_init_saved_regs): Declare.
5015
78b119cb
JB
50162002-06-21 Jim Blandy <jimb@redhat.com>
5017
5018 Remove some vestiges of Harris 88k support.
5019 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5020 register numbering quirk.
5021 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5022 odd symbols occurring in Harris 88k ELF targets.
5023
0fbb3da7
TT
50242002-06-21 Tom Tromey <tromey@redhat.com>
5025
5026 * gdb_locale.h: New file.
5027 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5028 (defs_h): Added gdb_locale.h.
5029 * configure, config.in: Rebuilt.
5030 * configure.in (PACKAGE): Define.
5031 * defs.h: Include gdb_locale.h.
5032 * main.c (captured_main): Call setlocale, bindtextdomain,
5033 textdomain.
5034
456f8b9d
DB
50352002-06-21 Dave Brolley <brolley@redhat.com>
5036
5037 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5038 * config/frv/frv.mt: New file.
5039 * config/frv/tm-frv.h: New file.
5040 * configure.tgt: Support frv-*-*.
5041 * Makefile.in (frv-tdep.o): New target.
5042 * frv-tdep.c: New file.
5043 * NEWS: Mention frv.
5044
cdd463f9
DB
50452002-06-21 Dave Brolley <brolley@redhat.com>
5046
5047 * MAINTAINERS: Add self to "Write After Approval" list.
5048
5d3ed2e3
GS
50492002-06-21 Grace Sainsbury <graces@redhat.com>
5050
5051 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5052 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5053 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5054 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5055 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5056
5057 * m68k-tdep.c: Include arch-utils.h
5058 (m68k_register_raw_size): Add.
5059 (m68k_register_virtual_size): Add.
5060 (m68k_register_virtual_type): Add.
5061 (m68k_register_name): Add.
5062 (m68k_stack_align): Add.
5063 (m68k_register_byte): Add.
5064 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5065 tm-m68k.h.
5066
7f8e7424
GS
50672002-06-21 Grace Sainsbury <graces@redhat.com>
5068
a2c6a6d5 5069 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
5070 m68k_find_saved_regs.
5071 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 5072 references to it with frame->saved_regs.
7f8e7424
GS
5073 (m68k_gdbarch_init): Added function calls to initialize the
5074 gdbarch structure.
a2c6a6d5
GS
5075 (m68k_fix_call_dummy): Add.
5076 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5077 (CALL_DUMMY): Remove.
5078 (CALL_DUMMY_LENGTH): Remove.
5079 (CALL_DUMMY_START_OFFSET): Remove.
5080 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5081 (FIX_CALL_DUMMY): Remove.
5082 (PUSH_DUMMY_FRAME): Remove.
5083 (POP_FRAME): Remove.
7f8e7424 5084
f461f5cf
PM
50852002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5086
5087 * parse.c (parse_fprintf): New function used to avoid calls to
5088 fprintf in bison parser generated debug code.
5089 * parser-defs.h: Declaration of new parse_fprintf function.
5090 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5091 Set YYDEBUG to 1 by default.
5092 Set YYFPRINTF as parse_fprintf.
5093
7f0c12ed
ML
50942002-06-21 Michal Ludvig <mludvig@suse.cz>
5095
5096 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
5097 encoding anymore.
5098 (pointer_encoding, enum ptr_encoding): New.
5099 (execute_cfa_program): Take care about pointer encoding.
5100 (dwarf2_build_frame_info): Only call parse_frame_info for
5101 .debug_frame and .eh_frame.
5102 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5103 fixed augmentation handling, added relative addressing,
5104 ignore duplicate FDEs. Added comments.
19d833a2 5105 * dwarf2cfi.c: Reindented.
7f0c12ed 5106
87c4a039
EZ
51072002-06-20 Elena Zannoni <ezannoni@redhat.com>
5108
5109 * event-top.c (command_handler): Don't use space_at_cmd_start
5110 unless there is sbrk() on the host. Assign time and space data
5111 to union fields of the appropriate length.
5112
1cf877ad
ML
51132002-06-20 Michal Ludvig <mludvig@suse.cz>
5114
5115 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
5116 x86_64_register_name. Return type changed to 'const char *'.
5117 (x86_64_register_name2nr): Rename to x86_64_register_number.
5118 (x86_64_gdbarch_init): Update to reflect the change.
5119 * x86-64-tdep.h: Ditto.
5120 * x86-64-linux-nat.c (x86_64_fxsave_offset)
5121 (supply_fpregset): Ditto.
5122
3fadccb3
AC
51232002-06-19 Andrew Cagney <cagney@redhat.com>
5124
5125 * regcache.h: Update copyright.
5126 (struct regcache, struct gdbarch): Add opaque declarations.
5127 (current_regcache): Declare global variable.
5128 (regcache_read, regcache_write): Add gdbarch parameter.
5129 (regcache_save, regcache_save_no_passthrough)
5130 (regcache_restore, regcache_restore_no_passthrough)
5131 (regcache_dup, regcache_dup_no_passthrough)
5132 (regcache_cpy, regcache_cpy_no_passthrough)
5133 (deprecated_grub_regcache_for_registers)
5134 (deprecated_grub_regcache_for_register_valid)
5135 (regcache_valid_p): Add function declarations.
5136
5137 * regcache.c: Update copyright.
5138 (regcache_descr_handle): New global variable.
5139 (struct regcache_descr): Define.
5140 (init_legacy_regcache_descr, init_regcache_descr): New functions.
5141 (regcache_descr, xfree_regcache_descr): New functions.
5142 (struct regcache): Define.
5143 (regcache_xmalloc, regcache_xfree): New functions.
5144 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5145 (regcache_dup, regcache_dup_no_passthrough): New functions.
5146 (regcache_valid_p, regcache_read_as_address): New functions.
5147 (deprecated_grub_regcache_for_registers): New function.
5148 (deprecated_grub_regcache_for_register_valid): New function.
5149 (current_regcache): New global variable.
5150 (register_buffer): Add regcache parameter. Update calls.
5151 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5152 (read_register_gen, write_register_gen): Update register_buffer
5153 call. Test for legacy_p instead of gdbarch_register_read_p or
5154 gdbarch_register_write_p.
5155 (regcache_collect): Update register_buffer call.
5156 (build_regcache): Rewrite. Use deprecated grub functions.
5157 (regcache_save, regcache_save_no_passthrough): New functions.
5158 (regcache_restore, regcache_restore_no_passthrough): New
5159 functions.
5160 (_initialize_regcache): Create the regcache_data_handle. Swap
5161 current_regcache global variable.
5162
5163 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5164 parameter to regcache_read and regcache_write calls.
5165 (sh4_register_read): Ditto.
5166 (sh64_pseudo_register_read): Ditto.
5167 (sh64_register_read): Ditto.
5168 (sh_pseudo_register_write): Ditto.
5169 (sh4_register_write): Ditto.
5170 (sh64_pseudo_register_write): Ditto.
5171 (sh64_register_write): Ditto.
5172
5173 * defs.h (XCALLOC): Define.
5174
152d9db6
GS
51752002-06-19 Grace Sainsbury <graces@redhat.com>
5176
5177 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5178 * m68k-tdep.c (m68k_gdbarch_init): Added.
5179 (m68k_dump_tdep): Added.
5180
170911c7
DJ
51812002-06-19 Daniel Jacobowitz <drow@mvista.com>
5182
5183 * ada-lang.c (fill_in_ada_prototype): Update comment.
5184
2e4ebe70
DJ
51852002-06-19 Daniel Jacobowitz <drow@mvista.com>
5186
5187 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5188 MIPS_ABI_LAST.
5189 (mips_abi_string, mips_abi_strings): New.
5190 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5191 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5192 tdep->mips_abi_string. Honor mips_abi_string. Default to
5193 O32 if no ABI is found.
5194 (mips_dump_tdep): Use mips_abi_strings.
5195 (mips_abi_update): New function.
5196 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5197 ``set mips abi'' and ``show mips abi''. Check the size of
5198 mips_abi_strings.
5199
16775908
AC
52002002-06-19 Andrew Cagney <cagney@redhat.com>
5201
5202 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5203 constant.
5204
5051bfa4 52052002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 5206
5051bfa4
JB
5207 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5208 current frame using only the first stack size adjustment. All
5209 subsequent size adjustments are not considered to be part of
5210 the "static" part of the current frame.
5211 Compute the address of the saved registers relative to the
5212 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5213 in use in this frame.
5214
56468235
DH
52152002-06-18 Don Howard <dhoward@redhat.com>
5216
5217 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5218 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
5219 suggesting this solution.
5220
0b624158
AC
52212002-06-18 Andrew Cagney <ac131313@redhat.com>
5222
5223 * config/romp/xm-rtbsd.h: Delete file.
5224 * config/romp/rtbsd.mh: Delete file.
5225
221ea385
KS
52262002-06-18 Keith Seitz <keiths@redhat.com>
5227
5228 * breakpoint.c (condition_command): Post breakpoint_modify
5229 when a condition is added to an existing breakpoint.
5230 (commands_command): Likewise for commands.
5231 (set_ignore_count): Likewise for ignore counts.
5232 If no tty, do not simply return, still need to send event
5233 notification.
5234 (ignore_command): Only print a newline if the command came
5235 from a tty.
5236 Don't call breakpoints_changed, since this is now properly
5237 handled by set_ignore_count.
5238
5402eed1
AC
52392002-06-18 Andrew Cagney <cagney@redhat.com>
5240
5241 * MAINTAINERS: Note that cris-elf target can be compiled with
5242 -Werror.
5243 * cris-tdep.c (cris_register_name): Make return type constant.
5244 (cris_breakpoint_from_pc): Ditto.
5245
cc22880b
ML
52462002-06-18 Michal Ludvig <mludvig@suse.cz>
5247
5248 * frame.h (struct frame_info): Change type of context to
5249 'struct context'.
5250
fa88f677
AC
52512002-06-17 Andrew Cagney <cagney@redhat.com>
5252
5253 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5254 pointer.
5255 * gdbarch.h, gdbarch.c: Regenerate.
5256 * config/mips/tm-mips.h (mips_register_name): Update.
5257 * i386-tdep.h (i386_register_name): Update.
5258 * mips-tdep.c (mips_register_name): Update
5259 * alpha-tdep.c (alpha_register_name): Update.
5260 * arch-utils.c (legacy_register_name): Update.
5261 * arch-utils.h (legacy_register_name): Update.
5262 * avr-tdep.c (avr_register_name): Update.
5263 * ia64-tdep.c (ia64_register_name): Update.
5264 * i386-tdep.c (i386_register_name): Update.
5265 * sparc-tdep.c (sparc32_register_name): Update.
5266 (sparc64_register_name): Update.
5267 (sparclite_register_name): Update.
5268 (sparclet_register_name): Update.
5269 * sh-tdep.c (sh_generic_register_name): Update.
5270 (sh_sh_register_name): Update.
5271 (sh_sh3_register_name): Update.
5272 (sh_sh3e_register_name): Update.
5273 (sh_sh_dsp_register_name): Update.
5274 (sh_sh3_dsp_register_name): Update.
5275 (sh_sh4_register_name): Update.
5276 (sh_sh64_register_name): Update.
5277 * s390-tdep.c (s390_register_name): Update.
5278 * rs6000-tdep.c (rs6000_register_name): Update.
5279 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5280 (ns32k_register_name_32382): Update.
5281 * d10v-tdep.c (d10v_ts2_register_name): Update.
5282 (d10v_ts3_register_name): Update.
5283 * xstormy16-tdep.c (xstormy16_register_name): Update.
5284 * vax-tdep.c (vax_register_name): Update.
5285 * v850-tdep.c (v850_register_name): Update.
5286 * m68hc11-tdep.c (m68hc11_register_name): Update.
5287 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5288 (am33_register_name): Update.
5289
ea1e7ef6
GS
52902002-06-17 Grace Sainsbury <graces@redhat.com>
5291
5292 * m68k-tdep.c: Reindented.
5293
9b02dd1b
AC
52942002-06-17 Andrew Cagney <ac131313@redhat.com>
5295
5296 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5297 list of predefined types.
5298
8758dec1
MK
52992002-06-16 Mark Kettenis <kettenis@gnu.org>
5300
b6197528
MK
5301 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5302 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5303 REGISTER_CONVERT_TO_RAW): Remove defines.
5304 (i386_register_virtual_type, i386_register_convertible,
5305 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5306 Remove prototypes.
5307 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5308 macros mentioned above.
5309
82b47e62
MK
5310 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5311 (i386lynx_saved_pc_after_call): Remove prototype.
5312 * i386ly-tdep.c: Include "i386-tdep.h".
5313 (i386lynx_saved_pc_after_call): Make static. Use
5314 read_memory_nobpt instead of read_memory. Use
5315 read_memory_unsigned_integer instead of read_memory_integer.
5316 (i386lynx_init_abi): New function.
5317 (i386lynx_coff_osabi_sniffer): New function.
5318 (_initialize_i386bsd_tdep): New function.
5319
8758dec1
MK
5320 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5321 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5322 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5323 (i386_fix_call_dummy): Remove prototype.
5324 * i386-tdep.c (i386_call_dummy_words): New variable.
5325 (i386_gdbarch_init): Adjust for removal of the
5326 macros mentioned above.
5327
e9e68a56
AC
53282002-06-15 Andrew Cagney <ac131313@redhat.com>
5329
5330 * command.h (add_setshow_auto_boolean_cmd): Replace
5331 add_set_auto_boolean_cmd.
5332 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5333 add_set_auto_boolean_cmd.
5334 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5335 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5336 mask-address'' command.
5337 (show_mask_address): Add cmd parameter.
5338 * remote.c (add_packet_config_cmd): Update. Change type of
5339 set_func and show_func to cmd_sfunc_ftype.
5340 (_initialize_remote): Update `set remote Z-packet'
5341 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5342 (show_remote_protocol_e_packet_cmd): Ditto.
5343 (show_remote_protocol_E_packet_cmd): Ditto.
5344 (show_remote_protocol_P_packet_cmd): Ditto.
5345 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5346 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5347 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5348 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5349 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5350 (show_remote_protocol_Z_packet_cmd): Ditto.
5351 (show_remote_protocol_binary_download_cmd): Ditto.
5352 (show_remote_cmd): Pass NULL to all of above.
5353
fc08ec52
MK
53542002-06-15 Mark Kettenis <kettenis@gnu.org>
5355
5356 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5357 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5358 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5359 POP_FRAME): Remove defines.
5360 (i386_push_arguments, i386_store_struct_return,
5361 i386_extract_return_value, i386_store_return_value,
5362 i386_extract_struct_value_address, i386_push_dummy_frame,
5363 i386_pop_frame): Renove prototypes.
5364 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5365 macros mentioned above.
5366
e707bbc2
AC
53672002-06-15 Andrew Cagney <ac131313@redhat.com>
5368
5369 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5370 add_set_boolean_cmd.
5371 (add_setshow_cmd): New function.
5372 * command.h (add_setshow_boolean_cmd): Replace
5373 add_set_boolean_cmd.
5374 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5375 and ``set rdiromatzero''.
5376 * maint.c (_initialize_maint_cmds): Update commented out code.
5377 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5378 * target.c (initialize_targets): Update `set
5379 trust-readonly-sections'.
5380 * remote.c (_initialize_remote): Update `set remotebreak'.
5381
42fdc8df
MK
53822002-06-15 Mark Kettenis <kettenis@gnu.org>
5383
93924b6b
MK
5384 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5385 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5386 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5387 fit into multi-arch framework.
5388 (i386_breakpoint_from_pc): New function.
5389 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5390 above.
5391
42fdc8df
MK
5392 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5393 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5394 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5395 (i386_frameless_function_invocation, i386_frame_num_args,
5396 i386_frame_init_saved_regs): Remove prototypes.
5397 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5398 macros mentioned above.
5399
9773a94b
AC
54002002-06-15 Andrew Cagney <ac131313@redhat.com>
5401
5402 * cli/cli-decode.c (set_cmd_cfunc): Update.
5403 (set_cmd_sfunc): Update.
5404 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5405 (set_cmd_sfunc, set_cmd_cfunc): Update.
5406 * cli/cli-decode.h: Update.
5407
6e157172
MK
54082002-06-15 Mark Kettenis <kettenis@gnu.org>
5409
5410 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5411 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5412
7f19b9a2
AC
54132002-06-15 Andrew Cagney <ac131313@redhat.com>
5414
5415 * defs.h (auto_boolean): Declare enum.
5416 * command.h (cmd_auto_boolean): Delete enum.
5417 * mips-tdep.c (mask_address_var): Update.
5418 (mips_mask_address_p): Update.
5419 (show_mask_address): Update.
5420 * remote.c (struct packet_config): Update.
5421 (update_packet_config): Update.
5422 (show_packet_config_cmd): Update.
5423 (packet_ok): Update.
5424 (add_packet_config_cmd): Update.
5425 (_initialize_remote):
5426 * command.h: Update.
5427 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5428 (do_setshow_command): Update.
5429 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5430 * cli/cli-decode.h: Update.
5431
1cf88de5
MK
54322002-06-15 Mark Kettenis <kettenis@gnu.org>
5433
22ba8cf2
MK
5434 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5435 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5436 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5437 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5438 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5439 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5440
762c5349
MK
5441 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5442 list of DJGPP COFF targets.
5443
091198bb
MK
5444 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5445 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5446 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5447 (FP0_REGNUM): Remove define.
5448 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5449 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5450 (i386_register_virtual_size): Remove protoype.
5451 * i386-tdep.c (i386_register_virtual_size): Removed.
5452 (i386_extract_return_value, i386_store_return_value): Use
5453 FP0_REGNUM instead of NUM_FREGS to determine whether the
5454 floating-point registers are available.
5455 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5456 Adjust for removal of macros mentioned above.
5457
54582002-06-15 Mark Kettenis <kettenis@gnu.org>
5459
fcc9bf01
MK
5460 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5461 comments.
5462 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5463 Remove prototypes.
5464 (supply_gregset, fill_gregset): Remove use of register keyword and
5465 remove declaration for regmap. Use I386_NUM_GREGS instead of
5466 NUM_REGS and NUM_FREGS.
5467 (FPREGSET_FSAVE_OFFSET): Remove.
5468 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5469 NUM_FREGS to determine whether the floating-point registers are
5470 available.
5471
65e78234
MK
5472 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5473 gnu_store_registers): Replace usage of NUM_GREGS with
5474 I386_NUM_GREGS.
5475
98df6387
MK
5476 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5477 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5478 usage of NUM_GREGS with I386_NUM_GREGS.
5479
099a9414
MK
5480 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5481
57976e88
MK
5482 * i386bsd-nat.c: Include "i386-tdep.h".
5483 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5484 I386_NUM_GREGS.
5485
b335f4a6
MK
5486 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5487 and associated comment. They no longer make any sense, since we
5488 don't use this file anymore on Linux.
5489
1cf88de5
MK
5490 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5491 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5492 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5493 elements in these arrays.
5494 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5495 MAX_NUM_REGS.
5496
daa66587
MK
54972002-06-15 Mark Kettenis <kettenis@gnu.org>
5498
5499 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5500 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5501
26e9b323
AC
55022002-06-14 Andrew Cagney <cagney@redhat.com>
5503
5504 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5505 EXTRACT_RETURN_VALUE.
5506 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5507 EXTRACT_STRUCT_VALUE_ADDRESS.
5508 * gdbarch.h, gdbarch.c: Regenerate.
5509
5510 * values.c (value_being_returned): Handle
5511 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5512 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5513
5514 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5515 * arm-tdep.c (arm_gdbarch_init): Update.
5516 * avr-tdep.c (avr_gdbarch_init): Update.
5517 * cris-tdep.c (cris_gdbarch_init): Update.
5518 * d10v-tdep.c (d10v_gdbarch_init): Update.
5519 * ia64-tdep.c (ia64_gdbarch_init): Update.
5520 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5521 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5522 * s390-tdep.c (s390_gdbarch_init): Update.
5523 * sh-tdep.c (sh_gdbarch_init): Update.
5524 * s390-tdep.c (s390_gdbarch_init): Update.
5525 * sparc-tdep.c (sparc_gdbarch_init): Update.
5526 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5527 * v850-tdep.c (v850_gdbarch_init): Update.
5528 * vax-tdep.c (vax_gdbarch_init): Update.
5529 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5530 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5531
5532 * config/arc/tm-arc.h: Update.
5533 * config/d30v/tm-d30v.h: Update.
5534 * config/fr30/tm-fr30.h: Update.
5535 * config/h8300/tm-h8300.h: Update.
5536 * config/h8500/tm-h8500.h: Update.
5537 * config/i386/tm-i386.h: Update.
5538 * config/i386/tm-ptx.h: Update.
5539 * config/i386/tm-symmetry.h: Update.
5540 * config/i960/tm-i960.h: Update.
5541 * config/m32r/tm-m32r.h: Update.
5542 * config/m68k/tm-delta68.h: Update.
5543 * config/m68k/tm-linux.h: Update.
5544 * config/m68k/tm-m68k.h: Update.
5545 * config/m88k/tm-m88k.h: Update.
5546 * config/mcore/tm-mcore.h: Update.
5547 * config/mips/tm-mips.h: Update.
5548 * config/mn10200/tm-mn10200.h: Update.
5549 * config/pa/tm-hppa.h: Update.
5550 * config/pa/tm-hppa64.h: Update.
5551 * config/sparc/tm-sp64.h: Update.
5552 * config/sparc/tm-sparc.h: Update.
5553 * config/sparc/tm-sparclet.h: Update.
5554 * config/z8k/tm-z8k.h: Update.
5555
5179e78f
AC
55562002-06-14 Andrew Cagney <cagney@redhat.com>
5557
5558 * Makefile.in (i386_linux_tdep_h): Define.
5559 (i386_tdep_h, i387_tdep_h): Define.
5560 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5561 $(i386_tdep_h) and $(i387_tdep_h).
5562 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5563
8201327c
MK
55642002-06-14 Mark Kettenis <kettenis@gnu.org>
5565
edf393ac
MK
5566 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5567 Already covered by the default.
5568
896fb97d
MK
5569 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5570 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5571 (i386_gdbarch_init): Initialize long_double_format and long_double
5572 bit.
5573
8201327c
MK
5574 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5575 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5576 Move these to ...
5577 * config/i386/i386sol2.mh: ... here.
5578 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5579 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5580 (SIGCONTEXT_PC_OFFSET): Remove define.
5581 (IN_SIGTRAMP): Remove define.
5582 * i386-sol2-tdep.c: New file.
5583
5584 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5585 * config/i386/tm-i386nw.h: Removed.
5586
5587 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5588 USE_STRUCT_CONVENTION): Remove defines.
5589 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5590 (get_longjmp_target): Remove prototype.
5591 (IN_SIGTRAMP): Remove define.
5592 (i386bsd_in_sigtramp): Remove prototype.
5593 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5594 function. Update comment accordingly
5595 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5596 (FRAME_SAVED_PC): Remove define.
5597 (i386bsd_frame_saved_pc): Remove prototype.
5598 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5599 GET_LONGJMP_TARGET): Remove defines.
5600 (get_longjmp_target): Remove prototype.
5601 (IN_SIGTRAMP): Remove define.
5602 (i386bsd_in_sigtramp): Remove prototype.
5603 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5604 function. Update comment accordingly
5605 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5606 (FRAME_SAVED_PC): Remove define.
5607 (i386bsd_frame_saved_pc): Remove prototype.
5608 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5609 Remove prototype.
5610 (USE_STRUCT_CONVENTION): Remove prototype.
5611 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5612 declaration.
5613 (_initialize_i386bsd_nat): Revise logic to determine some
5614 constants at compile time when compiling a native GDB. Warn if
5615 things don't match up with what we expect.
5616 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5617 Remove variables.
5618 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5619 to use date stored in `struct gdbarch_tdep'.
5620 (i386bsd_sigcontext_offset): Remove varaible.
5621 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5622 stored in `struct gdbarch_tdep'.
5623 (i386bsd_frame_saved_pc): Make static.
5624 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5625 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5626 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5627 i386fbsd4_sc_pc_offset): New variables.
5628 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5629 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5630 functions.
5631 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5632 functions.
5633 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5634 Modify the value of i386fbsd_sigtramp_start and
5635 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5636 i386fbsd_sigtramp_end.
5637 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5638 function.
5639
5640 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5641 define to i386-linux-tdep.h.
5642 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5643 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5644 defines.
5645 (i386_linux_register_name, i386_linux_register_byte,
5646 i386_linux_register_raw_size): Remove prototypes.
5647 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5648 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5649 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5650 TARGET_WRITE_PC): Remove defines.
5651 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5652 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5653 i386_linux_write_pc): Remove prototypes.
5654 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5655 (get_longjmp_target): Remove prototype.
5656 * i386-linux-tdep.h: New file.
5657 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5658 * i386-linux-tdep.c: Include "i386-tdep.h" and
5659 "i386-linux-tdep.h".
5660 (i386_linux_register_name, i386_linux_register_byte,
5661 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5662 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5663 Make static.
5664 (i386_linux_init_abi): New function.
5665 (_initialize_i386_linux_tdep): New function.
5666
5667 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5668 (i386_saved_pc_after_call): Remove prototype.
5669 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5670 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5671 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5672 (i386_register_name, i386_stab_reg_to_regnum,
5673 i386_dwarf_reg_to_regnum): Remove prototypes.
5674 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5675 SIZEOF_SSE_REGS): Remove defines.
5676 (REGISTER_BYTES): Remove define.
5677 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5678 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5679 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5680 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5681 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5682 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5683 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5684 (get_longjmp_target): Remove prototype.
5685 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5686 (sigtramp_saved_pc): Remove define.
5687 (i386v4_sigtramp_saved_pc): Remove prototype.
5688 * config/i386/tm-go32.h (FRAME_CHAIN,
5689 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5690 (i386go32_frame_saved_pc): Remove prototype.
5691 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5692 (get_longjmp_target): Remove prototype.
5693 * i386-tdep.h: Include "osabi.h".
5694 (enum i386_abi): Removed.
5695 (enum struct_return): New enum.
5696 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5697 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5698 sc_pc_offset members.
5699 (i386_gdbarch_register_os_abi): Remove prototype.
5700 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5701 I386_SSE_NUM_REGS): New defines.
5702 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5703 I386_SSE_SIZEOF_REGS): New defines.
5704 (i386_register_name, i386_register_byte, i386_register_raw_size):
5705 New prototypes.
5706 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5707 (i386bsd_sigtramp_saved_pc): New prototype.
5708 * i386-tdep.c: Don't include "elf-bfd.h".
5709 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5710 i386_frame_chain, i386_saved_pc_after_call): Make static.
5711 (i386_frame_saved_pc): Rewrite to call architecture dependent
5712 function to deal with signal handlers. Make static.
5713 (i386go32_frame_saved_pc): Removed.
5714 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5715 Removed.
5716 (i386_get_longjmp_target): New function.
5717 (default_struct_convention, pcc_struct_convention,
5718 reg_struct_convention, valid_conventions, struct_convention): New
5719 variables.
5720 (i386_use_struct_convention): New function.
5721 (i386v4_sigtramp_saved_pc): Renamed to
5722 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5723 (i386_pc_in_sigtramp): New function.
5724 (i386_abi_names): Removed.
5725 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5726 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5727 Removed.
5728 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5729 i386_gdbarch_register_os_abi): Removed.
5730 (struct i386_abi_handler): Removed.
5731 (i386_abi_handler_list): Removed.
5732 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5733 functions.
5734 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5735 i386_nw_init_abi): New functions.
5736 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5737 Use set_gdbarch_xxx() calls instead of relying on macros for a
5738 number of calls.
5739 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5740 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5741 Register the various architecture variants defined in this file.
5742
ad2f7632
DJ
57432002-06-14 Daniel Jacobowitz <drow@mvista.com>
5744
5745 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5746 (struct main_type): Remove arg_types member. Update comments for
5747 struct field.
5748 (TYPE_ARG_TYPES): Remove.
5749 (TYPE_FN_FIELD_ARGS): Update.
5750 (smash_to_method_type): Update prototype.
5751
5752 * c-typeprint.c (cp_type_print_method_args): Take method type
5753 instead of argument list. Use new argument layout. Simplify.
5754 (c_type_print_args): Use new argument layout. Simplify.
5755 (c_type_print_base): Update call to cp_type_print_method_args.
5756 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5757 argument; use die->type instead. Update call to
5758 smash_to_method_type.
5759 (read_structure_scope): Update call to dwarf2_add_member_fn.
5760 * gdbtypes.c (allocate_stub_method): Update comment.
5761 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5762 Use new argument layout.
5763 (check_stub_method): Use new argument layout. Don't count
5764 void as an argument.
5765 (print_arg_types): Update comments. Use new argument layout.
5766 (recursive_dump_type): Don't print arg_types member.
5767 * hpread.c (hpread_read_struct_type): Use new argument layout.
5768 (fixup_class_method_type): Likewise.
5769 (hpread_type_lookup): Likewise.
5770 * stabsread.c (read_type): Update calls to read_args and
5771 smash_to_method_type.
5772 (read_args): Use new argument layout. Simplify.
5773 * valops.c (typecmp): Use new argument layout. Update parameters
5774 and comments. Simplify.
5775 (hand_function_call): Use new argument layout.
5776 (search_struct_method): Update call to typecmp.
5777 (find_overload_match): Use new argument layout.
5778
6da02953
DJ
57792002-06-13 Daniel Jacobowitz <drow@mvista.com>
5780
5781 * NEWS: Mention multithreaded debug support for gdbserver.
5782
519b2366
DJ
57832002-06-13 Daniel Jacobowitz <drow@mvista.com>
5784
5785 * MAINTAINERS: Mention NEWS.
5786
6c0d6680
DJ
57872002-06-13 Daniel Jacobowitz <drow@mvista.com>
5788
5789 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5790 (struct mips_objfile_private, compare_pdr_entries): New.
5791 (non_heuristic_proc_desc): Read the ".pdr" section if it
5792 is present.
5793
6529d2dd
AC
57942002-06-12 Andrew Cagney <ac131313@redhat.com>
5795
5796 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5797 (arm_debug): New static variable.
5798 (_initialize_arm_tdep): Add ``set debug arm'' command.
5799
26216b98
AC
58002002-06-12 Andrew Cagney <ac131313@redhat.com>
5801
5802 * Makefile.in (sim_arm_h): Define.
5803 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5804 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5805 (arm_register_sim_regno): New function, map an internal REGNUM
5806 onto a simulator register number.
5807 (arm_gdbarch_init): Set register_sim_regno.
5808
814b3ba0
AH
58092002-06-09 Aldy Hernandez <aldyh@redhat.com>
5810
5811 * MAINTAINERS: Add self.
5812
475b0867
JB
58132002-06-11 Jim Blandy <jimb@redhat.com>
5814
919d772c
JB
5815 * source.c (source_info): Mention whether the symtab has
5816 information about preprocessor macros.
5817
475b0867
JB
5818 Call the command `info macro', not `show macro'.
5819 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5820 Fix error message.
5821 (_initialize_macrocmd): Register `info_macro_command' in
5822 `infolist', not `showlist'.
5823
9e364162
DJ
58242002-06-11 Daniel Jacobowitz <drow@mvista.com>
5825
5826 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5827 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5828 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5829 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5830 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5831 unconditionally.
5832 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5833 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5834 (_initialize_mips_tdep): Remove dead code.
5835 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5836 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5837 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5838 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5839 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5840 MIPS_LAST_FP_ARG_REGNUM): Remove.
5841
23aa4c72
ML
58422002-06-11 Michal Ludvig <mludvig@suse.cz>
5843
5844 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5845 (unwind_tmp_obstack_free, parse_frame_info)
5846 (update_context, cfi_read_fp, cfi_write_fp)
5847 (cfi_frame_chain, cfi_init_extra_frame_info)
5848 (cfi_virtual_frame_pointer): Use the above function.
264d1763 5849 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 5850
70eb15a4
CV
58512002-06-11 Corinna Vinschen <vinschen@redhat.com>
5852
5853 * v850-tdep.c (v850_type_is_scalar): New function.
5854 (v850_use_struct_convention): Match current gcc implementation
5855 as close as possible.
5856 (v850_push_arguments): Fix stack_offset handling. Don't write
5857 struct_addr into register. This is done by v850_store_struct_return.
5858 (v850_extract_return_value): Care for structs.
5859 (v850_store_return_value): Ditto.
5860 (v850_store_struct_return): Actually write address.
5861
482a4d06
ML
58622002-06-11 Michal Ludvig <mludvig@suse.cz>
5863
5864 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5865 without debug information too.
5866
d855c300
AC
58672002-06-10 Andrew Cagney <ac131313@redhat.com>
5868
5869 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5870 Make multi-arch pure.
5871 * gdbarch.h, gdbarch.c: Re-generate.
5872 * arm-tdep.c (arm_print_float_info): Update.
5873 * arch-utils.h (default_print_float_info): Update.
5874 * arch-utils.c (default_print_float_info): Update.
5875 * infcmd.c (float_info): Update call.
5876
dd12a101
AC
58772002-06-10 Andrew Cagney <ac131313@redhat.com>
5878
5879 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5880 the front of the initialize list.
5881
101dcfbe
AC
58822002-06-10 Andrew Cagney <ac131313@redhat.com>
5883
5884 * infrun.c (struct inferior_status): Replace fields
5885 selected_frame_address and selected_level with field
5886 selected_frame_id.
5887 (save_inferior_status): Update. Use get_frame_id.
5888 (struct restore_selected_frame_args): Delete.
5889 (restore_selected_frame): Update. Use frame_find_by_id.
5890 (restore_inferior_status): Update.
5891
5892 * breakpoint.h (struct breakpoint): Change type of
5893 watchpoint_frame to frame_id.
5894 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5895 call to get_current_frame.
5896 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5897 get_current_frame.
5898 (watchpoint_check): Use frame_find_by_id.
5899
5900 * frame.h (record_selected_frame): Delete declaration.
5901 * stack.c (record_selected_frame): Delete function.
5902
5903 * frame.h (struct frame_id): Define.
5904 (get_frame_id): Declare.
5905 (frame_find_by_id): Declare.
5906 * frame.c (frame_find_by_id): New function.
5907 (get_frame_id): New function.
5908
304270b6
AV
59092002-06-10 Andrey Volkov <avolkov@transas.com>
5910
5911 * ser-e7kpc.c: Fix duplicated define and call of
5912 _initialize_ser_e7000pc
5913
2f2cf184
DJ
59142002-06-09 Daniel Jacobowitz <drow@mvista.com>
5915
5916 * signals/signals.c (target_signal_from_host): Fix #ifdef
5917 SIGRTMIN case.
5918 (do_target_signal_to_host): Likewise.
5919
caaa3122
DJ
59202002-06-09 Daniel Jacobowitz <drow@mvista.com>
5921
5922 * mips-tdep.c (mips_find_abi_section): New function.
5923 (mips_gdbarch_init): Call it.
5924
6ac5df3a
MK
59252002-06-09 Mark Kettenis <kettenis@gnu.org>
5926
5927 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5928 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5929 after Andrew's 2002-06-08 gdbarch change.
5930
82ea117a
MK
59312002-06-09 Mark Kettenis <kettenis@gnu.org>
5932
5933 * i386-linux-nat.c (suppy_gregset): Don't supply
5934 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5935 register cache.
5936 (fill_gregset): Don't fetch it under the same circumstances.
5937
3c25f8c7
AC
59382002-06-09 Andrew Cagney <cagney@redhat.com>
5939
5940 * Makefile.in (callback_h): Define.
5941 (remote_sim_h): Update path to remote-sim.h.
5942 (remote-rdp.o): Add $(callback_h).
5943 (remote-sim.o): Use $(callback_h).
5944 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5945 * remote-rdp.c: Include "gdb/callback.h".
5946
1029b7fa
MK
59472002-06-09 Mark Kettenis <kettenis@gnu.org>
5948
5949 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5950 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5951
616675d3
AC
59522002-06-08 Andrew Cagney <ac131313@redhat.com>
5953
a3efda28
AC
5954 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5955 * rdi-share/serpardr.c: Ditto.
5956 * rdi-share/unixcomm.c: Ditto.
5957 * rdi-share/serdrv.c: Ditto.
5958 * rdi-share/hostchan.h: Ditto.
5959 * rdi-share/hostchan.c: Ditto.
5960 * rdi-share/host.h: Ditto.
5961 * rdi-share/devsw.c: Ditto.
5962
c5f10366
AC
5963 * objfiles.h: Change type of obj_private to void pointer.
5964 * pa64solib.c: Update copyright. Don't include "assert.h", use
5965 strcmp instead of STREQ, use LONGEST, do not use PTR
5966 * somsolib.c: Ditto.
5967
616675d3
AC
5968 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5969 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5970 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5971
e4b415d9
AC
59722002-06-08 Andrew Cagney <ac131313@redhat.com>
5973
5974 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5975 (default_get_saved_register): Delete function.
5976 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5977 generic_unwind_get_saved_register.
5978 * gdbarch.h, gdbarch.c: Re-generate.
5979
ca0d0b52
AC
59802002-06-08 Andrew Cagney <ac131313@redhat.com>
5981
5982 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5983 generic_func_frame_chain_valid.
5984 * gdbarch.h, gdbarch.c: Re-generate.
5985 * blockframe.c (generic_func_frame_chain_valid): Only check
5986 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5987 passing FP to PC_IN_CALL_DUMMY.
5988 Fix PR gdb/360.
5989
76860b5f
AC
59902002-06-08 Andrew Cagney <ac131313@redhat.com>
5991
5992 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5993 (register_gdbarch_data): Initialize init_p.
5994 (gdbarch_data): Initialize data pointer using the init function.
5995 (init_gdbarch_data): Delete function.
5996 (gdbarch_update_p): Update.
5997 (initialize_non_multiarch): Update.
5998 (struct gdbarch): Add field initialized_p.
5999 * gdbarch.h, gdbarch.c: Re-generate.
6000
8dda9770
ML
60012002-06-07 Michal Ludvig <mludvig@suse.cz>
6002
6003 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6004 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6005 better do the things actually here.
6006 * x86-64-tdep.c (x86_64_register_name2nr): New.
6007 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6008 (x86_64_gdbarch_init): Respect the above change.
6009 * x86-64-tdep.h (x86_64_register_name2nr)
6010 (x86_64_register_nr2name): Add prototypes.
6011 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6012
3d79a47c
MS
60132002-06-06 Michael Snyder <msnyder@redhat.com>
6014
7bd91a28
MS
6015 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6016 Delete extra braces and re-indent.
6017 (d10v_store_return_value): Char return values
3d79a47c
MS
6018 must be shifted over by one byte in R0.
6019 (d10v_extract_return_value): Delete extra braces, re-indent.
6020
095a4c96
EZ
60212002-06-06 Elena Zannoni <ezannoni@redhat.com>
6022
6023 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6024 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6025 (d10v_integer_to_address): Rewrite.
6026 (d10v_frame_init_saved_regs): When reading fp and sp registers use
6027 the d10v specific functions which take care of converting to the
6028 correct space.
6029
e8a77ca4
EZ
60302002-06-06 Elena Zannoni <ezannoni@redhat.com>
6031
6032 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6033 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6034
4f2e4a4f
AC
60352002-06-02 Andrew Cagney <ac131313@redhat.com>
6036
6037 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6038 includes.
6039 * config/tm-linux.h: Ditto.
6040 * config/alpha/tm-alphalinux.h: Ditto.
6041 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6042 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6043 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6044 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6045 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6046 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6047 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6048 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6049 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6050 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6051 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6052 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6053 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6054 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6055 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6056 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6057 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6058 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6059 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6060 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6061 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6062 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6063 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6064 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6065 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6066 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6067 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6068 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6069 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6070 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6071 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6072 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6073 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6074 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6075 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6076 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6077 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6078
ae2ab2ce
AS
60792002-05-04 Aidan Skinner <aidan@velvet.net>
6080
6081 * ada-exp.tab.c: New file
6082 * ada-exp.y: New file
6083 * ada-lang.c: New file
6084 * ada-lang.h: New file
6085 * ada-lex.c: New file
6086 * ada-lex.l: New file
6087 * ada-tasks.c: New file
6088 * ada-typeprint.c: New file
6089 * ada-valprint.c: New file
6090
0ddd0135
JT
60912002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6092
6093 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6094 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6095
750fbacc
JT
60962002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6097
6098 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6099 insetead of ppc-linux-tdep.o.
6100 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6101 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6102
df94e18a
AC
61032002-06-02 Andrew Cagney <ac131313@redhat.com>
6104
6105 2002-05-07 Christian Groessler <chris@groessler.org>
6106 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6107 bit register contents for little endian hosts.
6108
1a38ab75
AC
61092002-06-01 Andrew Cagney <ac131313@redhat.com>
6110
6111 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6112 any maintainer.
6113
8b1632ac
AC
61142002-06-01 Andrew Cagney <ac131313@redhat.com>
6115
6116 * gdbarch.h: Regenerate.
6117
627054c8
AC
61182002-06-01 Andrew Cagney <ac131313@redhat.com>
6119
6120 * MAINTAINERS: Add everyone to write-after-approval list.
6121
4f460812
AC
61222002-06-01 Andrew Cagney <ac131313@redhat.com>
6123
6124 * stack.c (frame_info): Use frame_register_unwind instead of
6125 saved_regs. Mention when the SP is on the stack or in a register.
6126
6127 * frame.h (frame_register_unwind_ftype): Define. Document.
6128 (struct frame_info): Add field register_unwind and
6129 register_unwind_cache.
6130 (frame_register_unwind): Declare.
6131 (generic_unwind_get_saved_register): Declare.
6132
6133 * frame.c (frame_register_unwind): New function.
6134 (generic_unwind_get_saved_register): New function.
6135
6136 * blockframe.c (generic_call_dummy_register_unwind): New function.
6137 (frame_saved_regs_register_unwind): New function.
6138 (set_unwind_by_pc): New function.
6139 (create_new_frame): New function.
6140 (get_prev_frame): New function.
6141
de888f76
AC
61422002-05-30 Andrew Cagney <ac131313@redhat.com>
6143
6144 * a29k-share/: Delete directory.
6145 * remote-vx29k.c: Delete file.
6146
2f2c3626
JT
61472002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6148
6149 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6150 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6151
9ce5c36a
JT
61522002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6153
6154 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6155 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6156 (sparc64nbsd-nat.o)
6157 (sparcnbsd-nat.o)
6158 (sparcnbsd-tdep.o): New dependency lists.
6159 * NEWS: Note new UltraSPARC NetBSD native configuration.
6160 * configure.host (sparc64-*-netbsd*): New host.
6161 * configure.tgt (sparc-*-netbsdelf*)
6162 (sparc-*-netbsd*): Set gdb_target to nbsd.
6163 (sparc64-*-netbsd*): New target.
6164 * sparc64nbsd-nat.c: New file.
6165 * sparcnbsd-nat.c: New file.
6166 * sparcnbsd-tdep.c: New file.
6167 * sparcnbsd-tdep.h: New file.
6168 * config/sparc/nbsd.mt: New file.
6169 * config/sparc/nbsd64.mh: New file.
6170 * config/sparc/nbsd64.mt: New file.
6171 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6172 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6173 (HOST_IPC): Remove.
6174 * config/sparc/nbsdaout.mt: Remove.
6175 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6176 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6177 (HOST_IPC): Remove.
6178 * config/sparc/nbsdelf.mt: Remove.
6179 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6180 sparc-nat.c compatiblity defines.
6181 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6182 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6183 * config/sparc/tm-nbsd64.h: New file.
6184 * config/sparc/tm-nbsdaout.h: Remove.
6185 * config/sparc/xm-nbsd.h: Remove.
6186
ef3cf062
JT
61872002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6188
6189 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6190 * sparc-tdep.c: Include osabi.h.
6191 (gdbarch_tdep): Add osabi member.
6192 (_initialize_sparc_tdep): Use gdbarch_register.
6193 (sparc_gdbarch_init): Use generic OS ABI framework.
6194 (sparc_dump_tdep): New function.
6195
ee8ff470
KB
61962002-05-30 Kevin Buettner <kevinb@redhat.com>
6197
6198 * corefile.c (do_captured_read_memory_integer): Return non-zero
6199 result.
6200 (safe_read_memory_integer): Copy result of memory read when
6201 status is non-zero. Also, add comments.
6202
7b112f9c
JT
62032002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6204
6205 * Makefile.in (ppc_tdep_h): Define.
6206 (ppc-linux-nat.o)
6207 (ppc-linux-tdep.o)
6208 (rs6000-tdep.o): Use $(ppc_tdep_h).
6209 (ppc-sysv-tdep.o)
6210 (ppcnbsd-nat.o)
6211 (ppcnbsd-tdep.o): New dependency lists.
6212 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
6213 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6214 (ppc_linux_init_abi): New functions.
7b112f9c
JT
6215 (ppc_sysv_abi_broken_use_struct_convention)
6216 (ppc_sysv_abi_use_struct_convention)
6217 (ppc_sysv_abi_push_arguments): Move to...
6218 * ppc-sysv-tdep.c: ...here.
6219 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6220 * rs6000-tdep.c (process_note_abi_tag_sections)
6221 (get_elfosabi): Remove.
6222 (rs6000_gdbarch_init): Use generic OS ABI framework.
6223 (rs6000_dump_tdep): New function.
6224 (_initialize_rs6000_tdep): Use gdbarch_register.
6225 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6226 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6227 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6228 of ppc-linux-tdep.o.
6229 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6230 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6231 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6232 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6233 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6234 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6235
480dd42a
JB
62362002-05-29 Jim Blandy <jimb@redhat.com>
6237
6238 * macroscope.c (default_macro_scope): Put `void' in empty argument
6239 list.
6240
4182591f
AC
62412002-05-29 Andrew Cagney <ac131313@redhat.com>
6242
6243 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6244 * arch-utils.c: Include "sim-regno.h".
6245 * gdbarch.sh: Don't include "sim-regno.h".
6246 * gdbarch.h, gdbarch.c: Regenerate.
6247 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6248 here.
6249 * arch-utils.h (legacy_register_sim_regno): To here.
6250 * remote-sim.c (legacy_register_sim_regno): Move function from
6251 here.
6252 * arch-utils.c (legacy_register_sim_regno): To here.
6253
8238d0bf
AC
62542002-05-28 Andrew Cagney <ac131313@redhat.com>
6255
6256 * sim-regno.h: New file.
6257 * Makefile.in (sim_regno_h): Define.
6258 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6259 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6260 (legacy_register_sim_regno): New function.
6261 (one2one_register_sim_regno): New function.
6262 (gdbsim_fetch_register): Rewrite.
6263 (gdbsim_store_register): Only store a register when
6264 REGISTER_SIM_REGNO is valid.
6265 * d10v-tdep.c: Include "sim-regno.h".
6266 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6267 (d10v_ts3_register_sim_regno): Ditto.
6268 * gdbarch.sh: Include "sim-regno.h".
6269 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6270 * gdbarch.h, gdbarch.c: Regenerate.
6271 * arch-utils.h (default_register_sim_regno): Delete declaration.
6272 * arch-utils.c (default_register_sim_regno): Delete function.
6273
485721b1
JT
62742002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6275
6276 * ppcnbsd-nat.c: Rewrite.
6277 * ppcnbsd-tdep.c: New file.
6278 * ppcnbsd-tdep.h: New file.
6279 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6280 solib.o, and solib-svr4.o.
6281 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6282 nbsd-tdep.o, and corelow.o.
6283
697f244d
AC
62842002-05-28 Andrew Cagney <ac131313@redhat.com>
6285
6286 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6287 `tr' and `sed'. Mention that `broken' targets are not expected to
6288 build.
6289
f08caad1 62902002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
6291
6292 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6293 Let PC point right after the prologue before looking up symbols.
6294
3139facc
MH
62952002-05-27 Martin M. Hunt <hunt@redhat.com>
6296
6297 * i386-tdep.c (i386_register_virtual_type): Return
6298 builtin_type_vec128i for SSE registers.
6299
6300 * gdbtypes.h (builtin_type_vec128i): Declare.
6301
6302 * gdbtypes.c (build_builtin_type_vec128i): New function.
6303 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6304 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6305 (build_gdbtypes): Initialize new builtin vector types.
6306 (_initialize_gdbtypes): Register new vector types with gdbarch.
6307
6e3ba3b8
JT
63082002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6309
6310 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6311 since it has been multi-arch'd.
6312 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6313 Move Alpha and VAX multi-arch news entries to same section
6314 as other multi-arch news.
6315
93d5585d
JT
63162002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6317
6318 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6319 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6320 static. Rename some register numbers to put them in ns32k-tdep
6321 private namespace.
6322 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6323 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6324 functions.
6325 (_initialize_ns32k_tdep): Use gdbarch_register.
6326 * ns32k-tdep.h: New file.
6327 * ns32knbsd-tdep.c: New file.
6328 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6329 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6330 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6331 REGISTER_BYTES, REGISTER_BYTE): Remove.
6332 * config/ns32k/tm-ns32k.h: New file.
6333 * config/ns32k/tm-umax.h: Remove.
6334
efb2c70e
JT
63352002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6336
6337 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6338 ns32k_store_struct_return, ns32k_extract_return_value,
6339 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6340 functions.
6341 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6342 ns32k_saved_pc_after_call.
6343 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6344 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6345 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6346 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6347 ns32k_extract_struct_value_address.
6348
7bcc927b
JT
63492002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6350
6351 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6352 ns32k_fix_call_dummy): New.
6353 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6354 ns32k_call_dummy_words.
6355 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6356 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6357 CALL_DUMMY_NARGS): Remove.
6358 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6359
78f9d765
JT
63602002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6361
6362 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6363 ns32k_frame_saved_pc, ns32k_frame_args_address,
6364 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6365 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6366 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6367 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6368 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6369 (BREAKPOINT): Remove..
6370 (FRAME_CHAIN): Define as ns32k_frame_chain.
6371 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6372 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6373 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6374 (FRAME_FIND_SAVED_REGS): Remove.
6375 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6376 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6377 (POP_FRAME): Define as ns32k_pop_frame.
6378
f2c762e0
JT
63792002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6380
6381 * ns32k-tdep.c (ns32k_register_byte_32082,
6382 ns32k_register_byte_32382, ns32k_register_raw_size,
6383 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6384 functions.
6385 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6386 ns32k_register_byte_32382.
6387 * config/ns32k/tm-umax.h: Update copyright years.
6388 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6389 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6390 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6391 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6392 (ns32k_get_enter_addr): Fix prototype.
6393
af137673
JT
63942002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6395
6396 * ns32k-tdep.c: Update copyright years.
6397 (ns32k_register_name_32082): New function.
6398 (ns32k_register_name_32382): Ditto.
6399 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6400 (REGISTER_NAME): Define as ns32k_register_name_32382.
6401 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6402 (REGISTER_NAME): Define as ns32k_register_name_32082.
6403
a8bc7b56
JB
64042002-05-24 Jim Blandy <jimb@redhat.com>
6405
6406 * dwarf2read.c (free_line_header): Use xfree, not free.
6407
83a45910
JT
64082002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6409
6410 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6411 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6412
0db71247
AC
64132002-05-23 Andrew Cagney <ac131313@redhat.com>
6414
6415 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6416
b9e5e4dd
AC
64172002-05-23 Andrew Cagney <ac131313@redhat.com>
6418
6419 From Ross Alexander at NEC Europe:
6420 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6421
de530e84
MS
64222002-05-23 Michael Snyder <msnyder@redhat.com>
6423
6424 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6425 for input, rather than parse_and_eval_address.
6426
b91b96f4
AC
64272002-05-23 Andrew Cagney <ac131313@redhat.com>
6428
6429 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6430 * Makefile.in (sim_d10v_h): Update definition.
6431
8b279e7a
AC
64322002-05-24 Andrew Cagney <cagney@redhat.com>
6433
6434 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6435 change `2002-05-22 Michael Snyder' below.
6436 (d10v_push_arguments): Ditto.
6437 (d10v_extract_return_value): Ditto.
6438
0a3d0425
JB
64392002-05-23 Jim Blandy <jimb@redhat.com>
6440
6441 * macrotab.c (check_for_redefinition): Don't complain if the new
6442 definition is the same as the previous one. Take more arguments
6443 to allow the comparison.
6444 (macro_define_object, macro_define_function): Pass more arguments
6445 to check_for_redefinition.
6446
78eac43e
MS
64472002-05-22 Michael Snyder <msnyder@redhat.com>
6448
6449 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6450 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6451 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6452 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6453 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6454 Add a temp variable to save a call (and a memory read).
6455 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6456 if possible (so that PC_IN_CALL_DUMMY will work).
6457
9bc1edb8
CV
64582002-05-22 Corinna Vinschen <vinschen@redhat.com>
6459
6460 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6461
005ef3d2
ML
64622002-05-22 Michal Ludvig <mludvig@suse.cz>
6463
6464 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6465 fde->cie_ptr.
6466 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6467 (dwarf2_build_frame_info): Add offset to fde->initial_location
6468 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
6469 (execute_stack_op): Change type of 'result' from ULONGEST to
6470 CORE_ADDR.
005ef3d2 6471
fcf4f891
JT
64722002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6473
6474 * config/alpha/tm-nbsd.h: Include solib.h.
6475
cfef91e4
JT
64762002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6477
6478 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6479 assumptions about the host's byte order.
6480
9964235a
JT
64812002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6482
6483 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6484 to dependency list.
6485 * alphanbsd-tdep.c: Include solib-svr4.h.
6486 * shnbsd-tdep.c: Ditto.
6487
9eeef8ef
JT
64882002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6489
6490 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6491 nbsd-tdep.h to dependency list.
6492 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6493 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6494 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6495 nbsdaout.mh and nbsdelf.mh consistently.
6496 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6497 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6498 nbsdaout.mt and nbsdelf.mh consistently.
6499 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6500 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6501 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6502 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6503 a.out shared library stuff from here...
6504 * config/nm-nbsdaout.h: ...to here.
6505 * config/tm-nbsd.h: Remove.
6506 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6507 * config/arm/nbsd.mh: Remove.
6508 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6509 nbsd-tdep.o.
6510 * config/arm/nbsdaout.mh: New file.
6511 * config/arm/nbsdelf.mh: New file.
6512 * config/arm/nm-nbsdaout.h: New file.
6513 * config/i386/nbsd.mh: Remove.
6514 * config/i386/nbsd.mt: Remove.
6515 * config/i386/nbsdaout.mh: New file.
6516 * config/i386/nbsdaout.mt: New file.
6517 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6518 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6519 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6520 i386_register_u_addr): Remove.
6521 * config/i386/nm-nbsdaout.h: New file.
6522 * config/i386/nm-nbsdelf.h: Remove.
6523 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6524 (USE_STRUCT_CONVENTION): Remove.
6525 * config/i386/tm-nbsdaout.h: New file.
6526 * config/i386/tm-nbsdelf.h: Remove.
6527 * config/m68k/nbsd.mh: Remove.
6528 * config/m68k/nbsd.mt: Remove.
6529 * config/m68k/nbsdaout.mh: New file.
6530 * config/m68k/nbsdaout.mt: New file.
6531 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6532 * config/m68k/nm-nbsdaout.h: New file.
6533 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6534 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6535 * config/ns32k/nbsd.mh: Remove.
6536 * config/ns32k/nbsd.mt: Remove.
6537 * config/ns32k/nbsdaout.mh: New file.
6538 * config/ns32k/nbsdaout.mt: New file.
6539 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6540 * config/ns32k/nm-nbsdaout.h: New file.
6541 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6542 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6543 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6544 (SVR4_SHARED_LIBS): Remove.
6545 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6546 * config/sparc/nbsd.mh: Remove.
6547 * config/sparc/nbsd.mt: Remove.
6548 * config/sparc/nbsdaout.mh: New file.
6549 * config/sparc/nbsdaout.mt: New file.
6550 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6551 * config/sparc/nbsdelf.mt: New file.
6552 * config/sparc/nm-nbsdaout.h: New file.
6553 * config/sparc/nm-nbsdelf.h: Remove.
6554 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6555 * config/sparc/tm-nbsdaout.h: New file.
6556
257ce470
JT
65572002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6558
6559 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6560 mipsnbsd-tdep.c
6561 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6562
76a6d5fe
JT
65632002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6564
6565 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6566 shnbsd-nat.c.
6567 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6568
45888261
JT
65692002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6570
6571 * NEWS: Note new MIPS NetBSD native configuration.
6572 * configure.host (mips*-*-netbsd*): New host.
6573 * configure.tgt (mips*-*-netbsd*): New target.
6574 * mipsnbsd-nat.c: New file.
6575 * mipsnbsd-tdep.c: New file.
6576 * mipsnbsd-tdep.h: New file.
6577 * config/mips/nbsd.mh: New file.
6578 * config/mips/nbsd.mt: New file.
6579 * config/mips/nm-nbsd.h: New file.
6580 * config/mips/tm-nbsd.h: New file.
6581
70f80edf
JT
65822002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6583
6584 * Makefile.in (SFILES): Add osabi.c.
6585 (COMMON_OBS): Add osabi.o.
6586 (osabi.o): New dependency list.
6587 * osabi.c: New file.
6588 * osabi.h: New file.
6589 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6590
6591 * Makefile.in (alpha_tdep_h): Define and use instead of
6592 alpha-tdep.h.
6593 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6594 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6595 Remove.
6596 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6597 * alpha-tdep.h: Include osabi.h.
6598 (alpha_abi): Remove.
6599 (gdbarch_tdep): Use generic OS ABI framework.
6600 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6601 gdbarch_register_osabi.
6602 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6603 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6604 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6605
6606 * Makefile.in (sh_tdep_h): Add osabi.h.
6607 * sh-tdep.h (sh_osabi): Remove.
6608 (gdbarch_tdep): Use generic OS ABI framework.
6609 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6610 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6611 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6612 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6613
6614 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6615 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6616 gdbarch_register_osabi.
6617 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6618 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6619 (get_elfosabi): Rename to...
6620 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6621 ABI framework support routines.
6622 (arm_gdbarch_init): Use generic OS ABI framework.
6623 (arm_dump_tdep): Likewise.
6624 (_initialize_arm_tdep): Likewise.
6625 * arm-tdep.h: Include osabi.h.
6626 (arm_abi): Remove.
6627 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6628 osabi member.
6629 (arm_gdbarch_register_os_abi): Remove prototype.
6630 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6631 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6632
6633 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6634 * mips-tdep.c: Include osabi.h.
6635 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6636 OS ABI framework.
6637
d194345b
KH
66382002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6639
6640 * h8300-tdep.c: Fix formatting.
6641
70c6b0d1
EZ
66422002-05-20 Elena Zannoni <ezannoni@redhat.com>
6643
6644 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6645 printing vector registers.
6646
165b8e33
AC
66472002-05-19 Andrew Cagney <ac131313@redhat.com>
6648
6649 From Fernando Nasser:
6650 * remote.c (remote_async_open_1): Re-throw the exception when the
6651 connection fails.
6652 (remote_cisco_open): Ditto.
6653 (remote_open_1): Ditto.
6654
36918e70
AC
66552002-05-19 Andrew Cagney <ac131313@redhat.com>
6656
6657 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6658 (remote_start_remote): Add uiout parameter. Pass through to
6659 remote_start_remote_dummy.
6660 (remote_open_1): Use catch_exception instead of catch_errors.
6661 (remote_async_open_1): Ditto.
6662 (remote_cisco_open): Ditto.
6663
ae44c0c4
AC
66642002-05-19 Andrew Cagney <ac131313@redhat.com>
6665
6666 * remote.c (remote_start_remote): Replace PTR with void pointer.
6667 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6668 static.
6669
8efe637d
AC
66702002-05-18 Andrew Cagney <ac131313@redhat.com>
6671
6672 * gdb_indent.sh: Allow the script to be run in the sim directory.
6673
2f1b5984
MK
66742002-05-18 Mark Kettenis <kettenis@gnu.org>
6675
f0f625e2
MK
6676 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6677 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6678
2f1b5984
MK
6679 * corelow.c (core_open): Only call set_gdbarch_from_file if
6680 exec_bfd is NULL.
6681
fc974602
AV
66822002-05-17 Andrey Volkov <avolkov@transas.com>
6683
6684 * h8300-tdep.c: Add support of EXR register
6685 * config/h8300/tm-h8300.h: Ditto.
6686
906709f4
AV
66872002-05-17 Andrey Volkov <avolkov@transas.com>
6688
6689 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6690
6e591d68
AV
66912002-05-17 Andrey Volkov <avolkov@transas.com>
6692
6693 * h8300-tdep.c: Change literal regnums to REGNO.
6694
84f0252a
JB
66952002-05-17 Jim Blandy <jimb@redhat.com>
6696
e0e9281e
JB
6697 * NEWS: Note addition of macro support.
6698
84f0252a
JB
6699 Expand preprocessor macros in C expressions.
6700 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6701 (scan_macro_expansion, scanning_macro_expansion,
6702 finished_macro_expansion): New function declarations.
6703 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6704 variable declarations.
6705 * parser-defs.h (expression_context_pc): New declaration.
6706 * parse.c (expression_context_pc): New variable.
6707 (parse_exp_1): Set expression_context_pc, as well as
6708 expression_context_block.
6709 * c-exp.y (yylex): If we're not already reading the result of a
6710 macro expansion, try to macro-expand the next token. When we're
6711 done scanning a macro expansion, switch back to the mainline text.
6712 Commas and `if's in a macro's expansion don't terminate the input.
6713 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6714 (macro_original_text, macro_expanded_text,
6715 expression_macro_lookup_func, expression_macro_lookup_baton): New
6716 variables.
6717 (scan_macro_expansion, scanning_macro_expansion,
6718 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6719 c_preprocess_and_parse): New functions.
6720 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6721 c_preprocess_and_parse, instead of c_parse.
6722 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6723 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6724
1c509ca8
JR
6725Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6726
6727 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6728 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6729 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6730
2250ee0c
CV
67312002-05-17 Corinna Vinschen <vinschen@redhat.com>
6732
6733 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6734
ab3b8126
JT
67352002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6736
6737 * Makefile.in (sh_tdep_h): Define and use.
6738 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6739 register enum): Move to...
6740 * * sh-tdep.h: ...here.
6741 * sh-tdep.c: Include sh-tdep.h.
6742 * sh3-rom.c: Likewise.
6743 * shnbsd-tdep.c: Likewise.
6744
ed9d4749
MS
67452002-05-16 Michael Snyder <msnyder@redhat.com>
6746
6747 * arm-tdep.c: Spelling fix in comment.
6748
2e276125
JB
67492002-05-16 Jim Blandy <jimb@redhat.com>
6750
6821892e
JB
6751 Add commands for manually expanding macros and showing their
6752 definitions.
6753 * macrocmd.c, macroscope.c, macroscope.h: New files.
6754 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6755 (macroscope_h): New variable.
6756 (HFILES_NO_SRCDIR): Add macroscope.h.
6757 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6758 (macroscope.o, macrocmd.o): New rules.
6759
2e276125
JB
6760 Teach the Dwarf 2 reader to read macro information.
6761 * dwarf2read.c: #include "macrotab.h".
6762 (dwarf_macinfo_buffer): New variable.
6763 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6764 dwarf_macinfo_size.
6765 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6766 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6767 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6768 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6769 dwarf2_macro_spaces_in_definition): New complaints.
6770 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6771 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6772 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6773 the partial symbol table.
6774 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6775 from what's recorded in the partial symbol table.
6776 (read_file_scope): If the compilation unit has a
6777 `DW_AT_macro_info' attribute, read its macro information.
6778 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6779
2f53fe6c
DJ
67802002-05-16 Daniel Jacobowitz <drow@mvista.com>
6781
6782 Fix PR gdb/546
6783 * ser-tcp.c: Don't include <netinet/udp.h>.
6784
2be99286
SC
67852002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6786
6787 * MAINTAINERS: Update my email address.
6788
c9af212b 67892002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
6790
6791 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6792 include file of the same name.
6793
bf5f1a52
CV
67942002-05-16 Corinna Vinschen <vinschen@redhat.com>
6795
6796 * configure.tgt: Mark v850 as multi-arched.
6797 * config/v850/tm-v850.h: Remove file.
6798 * config/v850/v850.mt: Eliminate TM_FILE.
6799
435e042a
CV
68002002-05-16 Corinna Vinschen <vinschen@redhat.com>
6801
6802 * v850-tdep.c: Full multi-arch.
6803 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6804 Define GDB_MULTI_ARCH to 2.
6805
9819c6c8
PM
68062002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6807
6808 * p-exp.y (current_type): New static variable.
6809 Carries the type of the expression at the position that is parsed.
6810 (push_current_type, pop_current_type): Two new functions. Used
6811 to store/restore current_type in expression on specific tokens.
c9af212b
RE
6812 (search_field): New static variable. Set to one after parsing a point
6813 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
6814 (FIELDNAME): New token. After a point only a token belonging to
6815 current_type type definition is allowed.
6816 (all over token rules): reset and change current_type according
6817 to rules.
6818 (exp '[' rule): insert implicit array index field if
6819 exp is a pascal string type.
6820
3a06899a
CV
68212002-05-16 Corinna Vinschen <vinschen@redhat.com>
6822
6823 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6824 frame info. Use frame_info's saved_regs instead of matching member
6825 in extra_frame_info throughout.
6826 (v850_frame_init_saved_regs): New function.
6827 (v850_init_extra_frame_info): Move most functionality into
6828 v850_frame_init_saved_regs().
6829 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6830 (v850_frame_find_saved_regs): Remove declaration.
6831 (FRAME_FIND_SAVED_REGS): Remove definition.
6832 (v850_frame_init_saved_regs): Add declaration.
6833 (FRAME_INIT_SAVED_REGS): Add definition.
6834
6ed14b0e
CV
68352002-05-16 Corinna Vinschen <vinschen@redhat.com>
6836
6837 * v850-tdep.c: Begin multi-arch'ing v850.
6838 (v850_target_architecture_hook): Remove function.
6839 (v850_gdbarch_init): New function. Add code previously in
6840 v850_target_architecture_hook().
6841 (_initialize_v850_tdep): Don't set target_architecture_hook.
6842 Call register_gdbarch_init() instead.
6843
42725910
DJ
68442002-05-16 Daniel Jacobowitz <drow@mvista.com>
6845
6846 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6847 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6848 (fixup_class_method_type): Likewise.
6849
99d9066e
JB
68502002-05-15 Jim Blandy <jimb@redhat.com>
6851
6852 Add macro structures to GDB's symbol tables. Nobody puts anything
6853 in them yet.
6854 * symtab.h (struct symtab): New member: `macro_table'.
6855 * buildsym.h (pending_macros): New global variable.
6856 * buildsym.c: #include "macrotab.h".
6857 (buildsym_init): Initialize `pending_macros'.
6858 (end_symtab): If we found macro information while reading a CU's
6859 debugging info, do build a symtab structure for it. Make the
6860 symtab point to the macro information, and clear the
6861 `pending_macros' pointer which held it while we were reading the
6862 debug info.
6863 (really_free_pendings): Free any pending macro table.
6864 * objfiles.h (struct objfile): New member: `macro_cache'.
6865 * objfiles.c (allocate_objfile): Set allocate and free functions
6866 for the macro cache's objstack.
6867 (free_objfile): Empty the macro cache's obstack.
6868 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6869 set new allocate and free functions for it.
6870 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6871 free functions for the macro cache's objstack. (Why is this
6872 function building its own objfile?)
6873 * symmisc.c (print_objfile_statistics): Print statistics on the
6874 macro bcache.
6875 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6876
c899585b
RE
68772002-05-15 Richard Earnshaw <rearnsha@arm.com>
6878
6879 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6880 (REGISTER_U_ADDR): Delete definition.
6881 (arm_register_u_addr): Delete declaration.
6882
a6cdd8c5
RE
68832002-05-15 Richard Earnshaw <rearnsha@arm.com>
6884
6885 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6886 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6887
c97dcfc7
AC
68882002-05-14 Andrew Cagney <ac131313@redhat.com>
6889
6890 * regcache.c (register_valid): Revise comments refering to "Not
6891 available" and "unavailable".
6892 * frame.c (frame_register_read): Ditto.
6893 * findvar.c (value_of_register): Ditto.
6894
93021b7d
AC
68952002-05-15 Andrew Cagney <cagney@redhat.com>
6896
6897 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6898 (remote-sim.o): Update dependencies.
6899 (d10v-tdep.o): Specify dependencies.
6900 (sim_d10v_h): Define.
6901
a86bc61c
JB
69022002-05-14 Jim Blandy <jimb@redhat.com>
6903
6904 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6905 * macrotab.c (macro_lookup_inclusion, find_definition,
6906 new_macro_table): Same.
6907
6908 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6909 not `! strcmp ()'. This is a dubious improvement.
6910 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6911
6912 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6913 although it's not necessary, to avoid a warning.
6914
2fdde8f8
DJ
69152002-05-14 Daniel Jacobowitz <drow@mvista.com>
6916
6917 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6918 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6919 TYPE_INSTANCE_FLAGS.
6920 (struct main_type): New.
6921 (struct type): Move most members to struct main_type. Change
6922 cv_type and as_type to new type_chain member. Add instance_flags.
6923 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6924 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6925 (finish_cv_type): Remove prototype.
6926 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6927 Set TYPE_CHAIN.
6928 (alloc_type_instance): New function.
6929 (smash_type): New function.
6930 (make_pointer_type, make_reference_type, make_function_type)
6931 (smash_to_member_type, smash_to_method_type): Call smash_type.
6932 (make_qualified_type): New function.
6933 (make_type_with_address_space): Call make_qualified_type.
6934 (make_cv_type): Likewise.
6935 (finish_cv_type): Remove unnecessary function.
6936 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6937 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6938 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6939 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6940 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6941 * hpread.c (hpread_read_struct_type): Likewise.
6942 * stabsread.c (read_struct_type): Likewise.
6943
843fedf4
EZ
69442002-05-14 Elena Zannoni <ezannoni@redhat.com>
6945
6946 * configure.tgt: Add a catch all sh* target, for cases like
6947 sh[2,3,4]-elf and sh-hms.
6948
05a6c72c
KS
69492002-05-14 Keith Seitz <keiths@redhat.com>
6950
6951 * event-loop.c (create_file_handler): Don't do anything but
6952 update data when we are given a fd which we are already
6953 monitoring.
6954
5d085aaf
ML
69552002-05-14 Michal Ludvig <mludvig@suse.cz>
6956
6957 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6958 (update_context): Use __func__ in warnings.
6959
9db8d71f
DJ
69602002-05-14 Daniel Jacobowitz <drow@mvista.com>
6961
6962 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6963 and tcp_close to net_open and net_close.
6964 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6965 using UDP if requested. Don't try to disable Nagle on UDP
6966 sockets.
6967 * remote.c (remote_serial_open): New function. Warn about UDP.
6968 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6969
5dbc6baa
EZ
69702002-05-13 Elena Zannoni <ezannoni@redhat.com>
6971
6972 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6973
cc3023f7
EZ
69742002-05-13 Elena Zannoni <ezannoni@redhat.com>
6975
6976 * configure.tgt: Remove sh-hms target.
6977 * MAINTAINERS: Don't list sh-hms as a separate target.
6978
ec2bcbe7
JB
69792002-05-13 Jim Blandy <jimb@redhat.com>
6980
6981 Add first preprocessor macro-expansion files.
6982 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6983 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6984 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6985 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6986 (COMMON_OBS): Add macrotab.o, macroexp.o.
6987 (macroexp.o, macrotab.o): New rules.
6988
6d531722
AC
69892002-05-13 Andrew Cagney <ac131313@redhat.com>
6990
6991 * config/m88k/tm-m88k.h: Update copyright.
6992 (m88k_target_write_pc): Declare
6993 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6994 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6995 (SHIFT_INST_REGS): Update definition.
6996 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6997 using old definition of TARGET_WRITE_PC.
6998 * regcache.c (generic_target_write_pc): Delete code handling
6999 NNPC_REGNUM.
7000 * gdbarch.sh (NNPC_REGNUM): Delete.
7001 * gdbarch.h, gdbarch.c: Regenerate.
7002
3e3f2739
RE
70032002-05-13 Richard Earnshaw <rearnsha@arm.com>
7004
7005 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7006 builtin reg number.
7007
0004e5a2
DJ
70082002-05-13 Daniel Jacobowitz <drow@mvista.com>
7009
7010 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7011 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7012 (gen_address_of, gen_struct_ref, gen_repeat): Use type
7013 access macros.
7014 * c-typeprint.c (cp_type_print_method_args): Likewise.
7015 (c_type_print_args): Likewise.
7016 * d10v-tdep.c (d10v_push_arguments): Likewise.
7017 (d10v_extract_return_value): Likewise.
7018 * expprint.c (print_subexp): Likewise.
7019 * gdbtypes.c (lookup_primitive_typename): Likewise.
7020 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7021 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7022 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7023 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7024 (TYPE_VECTOR): Likewise.
7025 * hpread.c (hpread_read_struct_type)
7026 (fix_static_member_physnames, fixup_class_method_type)
7027 (hpread_type_lookup): Likewise.
7028 * mdebugread.c (parse_symbol, parse_type): Likewise.
7029 * p-lang.c (is_pascal_string_type): Likewise.
7030 * valops.c (hand_function_call): Likewise.
7031 * x86-64-tdep.c (classify_argument): Likewise.
7032
7033 * hpread.c (hpread_read_function_type)
7034 (hpread_read_doc_function_type): Call replace_type.
7035 * dstread.c (create_new_type): Delete.
7036 (decode_dst_structure, process_dst_function): Call alloc_type.
7037 Use type access macros.
7038
dff95cc7
MK
70392002-05-12 Mark Kettenis <kettenis@gnu.org>
7040
7041 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7042 the're not supported by the current architecture.
7043 (i387_fill_fxsave): Likewise.
7044
bbcd32ad
FF
70452002-05-12 Fred Fish <fnf@redhat.com>
7046
7047 * symfile.c (default_symfile_offsets): Arrange for uninitialized
7048 sect_index_xxx members to index the first slot in section_offsets
7049 if all of the section_offsets are zero.
7050
89cf4787
MK
70512002-05-12 Mark Kettenis <kettenis@gnu.org>
7052
7053 * configure.tgt (sparc-*openbsd): Remove entry accidentially
7054 checked in with last change.
7055
1f77ffc5
MK
70562002-05-12 Mark Kettenis <kettenis@gnu.org>
7057
7058 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7059 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
7060 config.sub.
7061
89b8b4a9
DJ
70622002-05-12 Daniel Jacobowitz <drow@mvista.com>
7063
7064 * Makefile.in: Update dependencies.
7065
14a5e767
AC
70662002-05-11 Andrew Cagney <ac131313@redhat.com>
7067
7068 * language.c (local_hex_string_custom): Simplify. Do not depend
7069 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7070
7071 * memattr.c (mem_info_command): Replace calls to
7072 longest_local_hex_string and longest_local_hex_string_custom.
7073 * buildsym.c (make_blockvector): Ditto.
7074 * solib.c (info_sharedlibrary_command): Ditto.
7075 * tracepoint.c (tracepoints_info): Ditto.
7076 * symtab.c (print_msymbol_info): Ditto.
7077
7078 * language.c (local_hex_string): Delete.
7079 (local_hex_string_custom): Delete.
7080 (longest_local_hex_string): Rename to local_hex_string.
7081 (longest_local_hex_string_custom): Rename to
7082 local_hex_string_custom.
7083 * language.h (local_hex_string): Change parameter type to LONGEST.
7084 (local_hex_string_custom): Ditto.
7085 (longest_local_hex_string): Delete declaration.
7086 (longest_local_hex_string_custom): Ditto.
7087
7088 * solib.c: Update copyright.
7089 * memattr.c: Update copyright.
7090
13d01224
AC
70912002-05-11 Andrew Cagney <ac131313@redhat.com>
7092
7093 * arch-utils.h (legacy_register_to_value): Declare.
7094 (legacy_value_to_register): Declare.
7095 (legacy_convert_register_p): Declare.
7096 * arch-utils.c (legacy_register_to_value): New function.
7097 (legacy_value_to_register): New function.
7098 (legacy_convert_register_p): New function.
7099
7100 * gdbarch.sh (REGISTER_TO_VALUE): Define.
7101 (VALUE_TO_REGISTER): Define.
7102 (CONVERT_REGISTER_P): Define.
7103 * gdbarch.h, gdbarch.c: Regenerate.
7104
7105 * valops.c (value_assign): Use CONVERT_REGISTER_P and
7106 VALUE_TO_REGISTER.
7107 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7108 CONVERT_REGISTER_P.
7109
4a1970e4
DJ
71102005-05-11 Daniel Jacobowitz <drow@mvista.com>
7111 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7112
7113 * Makefile.in: Update dependencies for valops.c.
7114 * valops.c: Include "gdb_assert.h".
7115 (typecmp): Skip THIS parameter to methods.
7116 (find_method_list): Remove static_memfuncp argument,
7117 update callers. Check for stub methods.
7118 (find_value_oload_method_list): Don't set *static_memfuncp.
7119 (find_overload_match): Don't check for stub methods. Assert
7120 that methods are not stubbed. Handle static methods.
7121 (value_find_oload_method_list): Remove static_memfuncp argument.
7122 * gdbtypes.c (check_stub_method): Do not add THIS pointer
7123 to the argument list for static stub methods.
7124 * value.h (value_find_oload_method_list): Update prototype.
7125
b2e75d78
AC
71262002-05-11 Andrew Cagney <ac131313@redhat.com>
7127
7128 * arch-utils.h (generic_register_size): Declare.
7129 (generic_register_raw_size, generic_register_virtual_size): Delete
7130 declarations.
7131 * arch-utils.c (generic_register_raw_size): Delete.
7132 (generic_register_size): New function.
7133 (generic_register_virtual_size): Delete.
7134
7135 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7136 default generic_register_size.
7137 * gdbarch.h, gdbarch.c: Re-generate.
7138
7139 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7140 register_virtual_size.
7141 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7142 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7143
451fbdda
AC
71442002-05-11 Andrew Cagney <ac131313@redhat.com>
7145
7146 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7147 * gdbarch.h, gdbarch.c: Regenerate.
7148 * gnu-v3-abi.c: Update copyright.
7149 (vtable_address_point_offset): Update.
7150 (gnuv3_rtti_type): Update.
7151 (gnuv3_baseclass_offset): Update.
7152 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7153 (init_fetch_link_map_offsets): Update.
7154 * remote.c (get_remote_state): Update.
7155
6d2f5cea
DJ
71562002-05-11 Daniel Jacobowitz <drow@mvista.com>
7157
7158 * TODO: Remove value_headof/value_from_vtable_info comment.
7159 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7160 * values.c (value_headof, value_from_vtable_info): Delete.
7161 * value.h (value_from_vtable_info): Delete prototype.
7162
d2324da4
AC
71632002-05-11 Andrew Cagney <ac131313@redhat.com>
7164
7165 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7166 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7167 $(gdb_regex_h).
7168 (gdb_assert_h): Define.
7169 (gdb_wait_h): Define.
7170 (gdb_regex_h): Define.
7171
5c717440
DJ
71722002-05-11 Daniel Jacobowitz <drow@mvista.com>
7173
7174 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7175 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7176
6c7861b3
JT
71772002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7178
7179 * nbsd-tdep.c: Fix comment.
7180
ea5bc2a6
JT
71812002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7182
7183 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7184 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7185 (nbsd-tdep.o): New dependency list.
7186 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7187 nbsd-tdep.h.
7188 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7189 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7190 * nbsd-tdep.c: New file.
7191 * nbsd-tdep.h: New file.
7192 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7193 nbsd-tdep.h.
7194 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7195 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7196 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7197 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7198
b28da865
JT
71992002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7200
7201 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7202 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7203 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7204 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7205 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7206 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7207
4b8ff1fa
JT
72082002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7209
7210 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7211 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7212 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7213 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7214 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7215 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7216 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7217
dfe6eb1f
JT
72182002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7219
7220 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7221 fetch_elfcore_registers to...
7222 * i386nbsd-tdep.c: ...here.
7223 (i386nbsd_use_struct_convention): Rename to...
7224 (i386nbsd_aout_use_struct_convention): ...this.
7225 (i386nbsd_supply_reg): New function.
7226 (i386nbsd_fill_reg): New function.
7227 (fetch_core_registers): Use i386nbsd_supply_reg.
7228 (fetch_elfcore_registers): Likewise.
7229 (_initialize_i386nbsd_tdep): New function.
7230 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7231 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7232 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7233 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7234 (i386nbsd_aout_use_struct_convention): ...this.
7235
20cb8cda
JT
72362002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7237
7238 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7239 (store_inferior_registers): Use shnbsd_fill_reg.
7240 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7241 sh_nbsd_supply_register): Collapse into...
7242 (shnbsd_supply_reg): ...this.
7243 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7244 (shnbsd_fill_reg): ...this.
7245 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7246 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7247 (fetch_core_registers): Use shnbsd_supply_reg.
7248 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7249 (sh_nbsd_core_fns): Rename to...
7250 (shnbsd_core_fns): ...this.
7251 (sh_nbsd_elfcore_fns): Rename to...
7252 (shnbsd_elfcore_fns): ...this.
7253 (sh_nbsd_init_abi): Rename to...
7254 (shnbsd_init_abi): ...this.
7255 (_initialize_sh_nbsd_tdep): Rename to...
7256 (_initialize_shnbsd_tdep): ...this.
7257 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7258 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7259 sh_nbsd_fill_register): Remove prototypes.
7260 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7261
e750d25e
JT
72622002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7263
7264 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7265 (i387-nat.o): Delete dependency list.
7266 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7267 (x86-64-linux-nat.o): Likewise.
7268 * i387-nat.c: Delete file, moving contents to...
7269 * i387-tdep.c: ...here.
7270 * i387-nat.h: Rename...
7271 * i387-tdep.h: ...to this.
7272 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7273 * i386-linux-nat.c: Likewise.
7274 * i386bsd-nat.c: Likewise.
7275 * i386gnu-nat.c: Likewise.
7276 * i386nbsd-nat.c: Likewise.
7277 * i386v4-nat.c: Likewise.
7278 * x86-64-linux-nat.c: Likewise.
7279 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7280 * config/i386/go32.mh (NATDEPFILES): Likewise.
7281 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7282 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7283 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7284 * config/i386/linux.mh (NATDEPFILES): Likewise.
7285 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7286 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7287 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7288 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7289
1aee598a
JT
72902002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7291
7292 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7293 (alphanbsd-nat.o): Remove dependency list.
7294 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7295 * alphanbsd-nat.c: Delete. Contents moved to...
7296 * alphanbsd-tdep.c: ...here.
7297 (_initialize_alphanbsd_tdep): Register core functions.
7298 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7299
12bcb0fe
JT
73002002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7301
7302 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7303 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7304 (alphanbsd-nat.o): Likewise.
7305 (alphabsd-tdep.o): New dependency list.
7306 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7307 (fill_gregset): Use alphabsd_fill_reg.
7308 (supply_fpregset): Use alphabsd_supply_fpreg.
7309 (fill_fpregset): Use alphabsd_fill_fpreg.
7310 (fetch_inferior_registers): Use struct reg and struct fpreg
7311 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7312 and alphabsd_supply_fpreg.
7313 (store_inferior_registers): Use struct reg and struct fpreg
7314 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7315 and alphabsd_fill_fpreg.
7316 * alphabsd-tdep.c: New file.
7317 * alphabsd-tdep.h: New file.
7318 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7319 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7320 alphabsd_supply_fpreg.
7321 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7322 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7323
361d1df0
EC
73242002-05-11 Eric Christopher <echristo@redhat.com>
7325
7326 * mips-tdep.c (mips_double_register_type): Fix thinko.
7327 (mips_single_register_type): Ditto.
7328 * MAINTAINERS: Add self.
7329
92dd7cee
MK
73302002-05-11 Mark Kettenis <kettenis@gnu.org>
7331
7332 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7333 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7334 right thing on architectures with different endianness and/or
7335 integer sizes.
7336
e27da16d
JT
73372002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7338
7339 From Christian Limpach <chris@Pin.LU>
7340 * configure.in: Change sed expression which comments out
7341 NATDEPFILES to also comment out continuation lines.
7342 * configure: Regenerate.
7343
ddde02bd
EZ
73442002-05-10 Elena Zannoni <ezannoni@redhat.com>
7345
7346 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7347 big patch.
7348
1c922164
EZ
73492002-05-10 Elena Zannoni <ezannoni@redhat.com>
7350
7351 * sh-tdep.c: Include correct file.
7352
283150cd
EZ
73532002-05-10 Elena Zannoni <ezannoni@redhat.com>
7354
7355 New support for sh64-elf (sh5) target.
7356
7357 * configure.tgt: For sh64-elf target, default to sh-elf.
7358
7359 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7360 (struct gdbarch_tdep): Add new fields for new registers and ABI
7361 info.
361d1df0 7362
283150cd
EZ
7363 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7364 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7365 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7366 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7367 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7368 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7369 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7370 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7371 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7372 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7373 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7374 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7375 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7376 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7377 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7378 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7379 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7380 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7381 sign_extend, sh64_nofp_frame_init_saved_regs,
7382 sh64_init_extra_frame_info, sh64_get_saved_register,
7383 sh64_extract_struct_value_address, sh64_pop_frame,
7384 sh64_push_arguments, sh64_extract_return_value,
7385 sh64_store_return_value, sh64_show_media_regs,
7386 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7387 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7388 sh_sh64_register_virtual_type,
7389 sh_sh64_register_convert_to_virtual,
7390 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7391 sh64_register_read, sh64_pseudo_register_write,
7392 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7393 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7394 sh64_do_pseudo_register, sh_compact_do_registers_info,
7395 sh64_do_registers_info, sh_gdbarch_init): New functions.
7396
3117ed25
EZ
73972002-05-10 Elena Zannoni <ezannoni@redhat.com>
7398
7399 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7400
2654e6d4
DJ
74012002-05-10 Daniel Jacobowitz <drow@mvista.com>
7402
7403 * linespec.c (decode_line_1): Check for a double quote after
7404 a filename correctly.
7405
9ab3e532
JB
74062002-05-10 Jim Blandy <jimb@redhat.com>
7407
7408 Properly track the size of the current objfile's .debug_line section.
7409 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7410 (DWARF_LINE_SIZE): New macro.
7411 (dwarf2_build_psymtabs_hard): Record the line section's size in
7412 the partial symbol table.
7413 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7414 symbol table.
7415
126fa72d
PS
74162002-05-10 Petr Sorfa <petrs@caldera.com>
7417
7418 * ia64-tdep.c: Handle breakpoints on L instruction type
7419 in MLX instruction bundle by moving the breakpoint to
7420 the third slot (X instruction type) as L holds only data.
7421
1f077a3e
KB
74222002-05-10 Kevin Buettner <kevinb@redhat.com>
7423
7424 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7425 (process_one_symbol): Complain about discarding local symbols
7426 due to a misplaced N_LBRAC entry.
7427
8120c9d5 74282002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
7429
7430 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
7431 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7432 decrease the depth we are at, in the case of templates.
361d1df0 7433
67b2c998
DJ
74342002-05-09 Daniel Jacobowitz <drow@mvista.com>
7435
7436 * mips-tdep.c (mips_float_register_type): New function.
7437 (mips_double_register_type): New function.
7438 (mips_print_register): Use them.
7439 (do_fp_register_row): Likewise.
7440
fd326606
DJ
74412002-05-09 Daniel Jacobowitz <drow@mvista.com>
7442
6609d9af 7443 * signals/signals.c (signals): Remove conditional compilation around
fd326606 7444 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 7445 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 7446
bef35864
MS
74472002-05-09 Michael Snyder <msnyder@redhat.com>
7448
7449 * remote-rdp.c (remote_rdp_can_run): Remove.
7450
c55a3f73
TT
74512002-05-09 Tom Tromey <tromey@redhat.com>
7452
7453 * jv-valprint.c (java_val_print): Handle `char' as a special case
7454 of TYPE_CODE_INT.
7455
b8d5e71d
MS
74562002-05-09 Michael Snyder <msnyder@redhat.com>
7457
7458 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7459 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 7460 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 7461 str r(0123),[sp,#nn].
361d1df0 7462 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
7463 order-independent by placing it in a loop.
7464
e2cd42dd
MS
74652002-05-06 Michael Snyder <msnyder@redhat.com>
7466
7467 * stabsread.c (read_type): Add recognition for new attribute:
7468 "@V;" means that an array type is actually a vector.
7469 This is analogous to the vector flag that's been added to dwarf2.
7470
3ce1502b
MK
74712002-05-09 Mark Kettenis <kettenis@gnu.org>
7472
7473 * i386-tdep.h (i386_abi): New enum.
7474 (struct gdbarch_tdep): Replace os_ident member with abi.
7475 (i386_gdbarch_register_os_abi): New prototype.
7476 * i386-tdep.c (i386_abi_names): New array.
7477 (process_note_abi_tag_sections): Removed.
7478 (process_note_sections): New function.
7479 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7480 (struct i386_abi_handler): New struct.
7481 (i386_abi_handler_list): New variable.
7482 (i386_gdbarch_register_os_abi): New function.
7483 (i386_gdbarch_init): Adapt for the changes given above.
7484
084c156a
DJ
74852002-05-08 Daniel Jacobowitz <drow@mvista.com>
7486
7487 * gregset.h: Say "GNU/Linux".
7488
6599f021
EZ
74892002-05-08 Elena Zannoni <ezannoni@redhat.com>
7490
7491 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7492 (build_gdbtypes): Build builtin_type_v2_float.
7493 (_initialize_gdbtypes): Register new builtin type.
7494
40af4b0c
AC
74952002-05-08 Andrew Cagney <ac131313@redhat.com>
7496
7497 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7498 (clear_gdbarch_swap): New function.
7499 (initialize_non_multiarch): Call.
7500 (gdbarch_update_p): Before calling init(), swap out and clear the
7501 existing architecture.
7502 * gdbarch.c: Regenerate.
7503
4fe84f46
JT
75042002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7505
7506 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7507 alphanbsd-tdep.c.
7508
4015edd1
JT
75092002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7510
7511 * sh-nbsd-nat.c: Rename to...
7512 * shnbsd-nat.c: ...this.
7513 * sh-nbsd-tdep.c: Rename to...
7514 * shnbsd-tdep.c: ...this.
7515 * sh-nbsd-tdep.h: Rename to...
7516 * shnbsd-tdep.h: ...this.
7517 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7518 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7519
0e2bd219
RE
75202002-05-08 Richard Earnshaw <rearnsha@arm.com>
7521
7522 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7523 concatenation for command help messages.
7524
13a38d45
JT
75252002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7526
7527 * NEWS: Note new sh*-*-netbsdelf* configuration.
7528 * configure.host: Set gdb_host_cpu to sh for all sh*.
7529 (sh*-*-netbsdelf*): New host.
7530 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7531 (sh*-*-netbsdelf*): New target.
7532 * sh-nbsd-nat.c: New file.
7533 * sh-nbsd-tdep.c: New file.
7534 * sh-nbsd-tdep.h: New file.
7535 * config/sh/nbsd.mh: New file.
7536 * config/sh/nbsd.mt: New file.
7537 * config/sh/nm-nbsd.h: New file.
7538 * config/sh/tm-nbsd.h: New file.
7539
d658f924
JT
75402002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7541
7542 * sh-tdep.c (sh_osabi_names): Declare.
7543 (process_note_abi_tag_sections): New function.
7544 (get_elfosabi): Ditto.
7545 (sh_gdbarch_register_os_abi): Ditto.
7546 (sh_dump_tdep): Ditto.
7547 _initialize_sh_tdep): Use gdbarch_register to register
7548 sh_gdbarch_init and sh_dump_tdep.
7549 * config/sh/tm-sh.h (sh_osabi): Declare.
7550 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7551
848cfffb
AC
75522002-05-07 Andrew Cagney <ac131313@redhat.com>
7553
7554 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7555 (thumb_scan_prologue): Ditto.
7556 (arm_find_callers_reg): Ditto.
7557 (arm_frame_chain): Ditto.
7558 (arm_init_extra_frame_info): Ditto.
7559 (arm_frame_saved_pc): Ditto.
7560 (arm_pop_frame): Ditto.
7561 (arm_push_return_address): New function.
7562 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7563 call_dummy_location, call_dummy_breakpoint_offset_p,
7564 call_dummy_breakpoint_offset, call_dummy_p,
7565 call_dummy_stack_adjust_p, call_dummy_words,
7566 sizeof_call_dummy_words, call_dummy_start_offset,
7567 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7568 call_dummy_address, push_return_address and push_dummy_frame for
7569 generic dummy frames.
7570
e7d717c0
JT
75712002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7572
7573 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7574 size computation for alloca.
7575 (sh_fp_frame_init_saved_regs): Likewise.
7576
7bbcf283
RE
75772002-05-07 Richard Earnshaw <rearnsha@arm.com>
7578
7579 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7580 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 7581 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
7582 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7583 * remote-rdp.c (remote_rdp_fetch_register): Use
7584 ARM_MAX_REGISTER_RAW_SIZE.
7585 (remote_rdp_store_register): Likewise.
7586
4657573b
ML
75872002-05-07 Michal Ludvig <mludvig@suse.cz>
7588
361d1df0 7589 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
7590 added default labels to switch {} statements.
7591 * x86-64-tdep.c: Ditto.
7592 * x86-64-linux-nat.c: Ditto.
7593
010f3b2f
JT
75942002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7595
7596 * solib.h: Protect against multiple inclusion.
7597
debd256d
JB
75982002-05-06 Jim Blandy <jimb@redhat.com>
7599
9ab3e532
JB
7600 Add first preprocessor macro-expansion files.
7601 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7602 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7603 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7604 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7605 (COMMON_OBS): Add macrotab.o, macroexp.o.
7606 (macroexp.o, macrotab.o): New rules.
7607
debd256d
JB
7608 Separate the job of reading the line number info statement program
7609 header (...expialidocious) out into its own function.
7610 * dwarf2read.c (struct line_head, struct filenames, struct
7611 directories): Replace with...
7612 (struct line_header): New structure, containing the full
7613 contents of the statement program header, including the
7614 include directory and file name tables.
7615 (read_file_scope): If we have line number info, instead of just
7616 calling dwarf_decode_lines to do all the work, call
7617 dwarf_decode_line_header first to get a `struct line_header'
7618 containing the data in the statement program header, and then
7619 pass that to dwarf_decode_lines, which will pick up where that
7620 left off. Be sure to clean up the `struct line_header' object.
7621 (dwarf_decode_line_header, free_line_header, add_include_dir,
7622 add_file_name): New functions.
7623 (dwarf_decode_lines): Move all the code to read the statement
7624 program header into dwarf_decode_line_header. Take the line
7625 header it built as the first argument, instead of the offset to
7626 the compilation unit's line number info. Use the new `struct
7627 line_header' type instead of the old structures. No need to do
7628 cleanups here now, since we don't allocate anything.
7629 (dwarf2_statement_list_fits_in_line_number_section,
7630 dwarf2_line_header_too_long): New complaints.
7631
ac3aafc7
EZ
76322002-05-06 Elena Zannoni <ezannoni@redhat.com>
7633
7634 * gdbtypes.c (init_vector_type): New function.
7635 (build_builtin_type_vec128): Simplify the representation of SIMD
7636 registers.
7637 (build_gdbtypes): Initialize new builtin vector types.
7638 (_initialize_gdbtypes): Register new vector types with gdbarch.
7639 (builtin_type_v4_float, builtin_type_v4_int32,
7640 builtin_type_v8_int16, builtin_type_v16_int8,
7641 builtin_type_v2_int32, builtin_type_v4_int16,
7642 builtin_type_v8_int8): New (renamed) SIMD types.
7643
13e49980
MK
76442002-05-06 Mark Kettenis <kettenis@gnu.org>
7645
7646 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7647 (i387_fill_fxsave): Likewise.
7648
997b20b8
AO
76492002-05-05 Alexandre Oliva <aoliva@redhat.com>
7650
7651 * alpha-tdep.c (alpha_extract_return_value): Don't use
7652 non-constant array size in prototype.
7653
535c96ce
AC
76542002-05-04 Andrew Cagney <ac131313@redhat.com>
7655
7656 From Brian Taylor <briant at model dot com>:
7657 * ui-out.c (ui_out_field_core_addr): Use the function
7658 longest_local_hex_string_custom'to format addresses > 32 bits
7659 wide.
7660
7661 * ui-out.c (ui_out_field_core_addr): Update comment.
7662
bedfa57b
AC
76632002-05-04 Andrew Cagney <ac131313@redhat.com>
7664
7665 * stack.c (select_and_print_frame): Make static. Delete the
7666 parameter `level'.
7667 (func_command): Update call.
7668 (select_frame_command): Delete code computing the frame level.
7669 * frame.h (select_and_print_frame): Delete declaration.
7670
f621c63e
AC
76712002-05-04 Andrew Cagney <ac131313@redhat.com>
7672
7673 * sparc-tdep.c (sparc_get_saved_register): Comment why
7674 get_prev_frame call is safe.
7675
0f7d239c
AC
76762002-05-04 Andrew Cagney <ac131313@redhat.com>
7677
7678 * frame.h (select_frame): Delete level parameter.
7679 * stack.c (select_frame): Update. Use frame_relative_level to
7680 obtain the frame's level.
7681 (select_and_print_frame): Update call.
7682 (select_frame_command): Ditto.
7683 (up_silently_base): Ditto.
7684 (down_silently_base): Ditto.
7685 * ocd.c (ocd_start_remote): Ditto.
7686 * remote-rdp.c (remote_rdp_open): Ditto.
7687 * remote-mips.c (mips_initialize): Ditto.
7688 (common_open): Ditto.
7689 * remote-e7000.c (e7000_start_remote): Ditto.
7690 * m3-nat.c (select_thread): Ditto.
7691 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7692 (child_get_current_exception_event): Ditto.
7693 * varobj.c (varobj_create): Ditto.
7694 (varobj_update): Ditto.
7695 (c_value_of_root): Ditto.
7696 * tracepoint.c (finish_tfind_command): Ditto.
7697 * corelow.c (core_open): Ditto.
7698 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7699 * thread.c (info_threads_command): Ditto.
7700 (switch_to_thread): Ditto.
7701 * infrun.c (normal_stop): Ditto.
7702 (restore_selected_frame): Ditto.
7703 (restore_inferior_status): Ditto.
7704 * breakpoint.c (insert_breakpoints): Ditto.
7705 (watchpoint_check): Ditto.
7706 (bpstat_stop_status): Ditto.
7707 (do_enable_breakpoint): Ditto.
7708 * blockframe.c (flush_cached_frames): Ditto.
7709 (reinit_frame_cache): Ditto.
7710
71d6c7b1
AC
77112002-05-04 Andrew Cagney <ac131313@redhat.com>
7712
7713 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7714 maintainer.
7715
cda6c68a
JB
77162002-05-04 Jim Blandy <jimb@redhat.com>
7717
7718 * gdbtypes.c (replace_type): Doc fix.
7719
5c1c87f0
AC
77202002-05-04 Andrew Cagney <ac131313@redhat.com>
7721
7722 * valprint.c (strcat_longest): Delete commented out function.
7723 Update copyright.
7724
cd9bfe15
AC
77252002-05-04 Andrew Cagney <ac131313@redhat.com>
7726
7727 * MAINTAINERS: Mark a29k as deleted.
7728 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7729 Move new configurations to the top.
7730 * configure.tgt: Remove a29k.
7731 * config/a29k/tm-vx29k.h: Delete.
7732 * config/a29k/vx29k.mt: Delete.
7733 * config/a29k/tm-a29k.h: Delete.
7734 * config/a29k/a29k-udi.mt: Delete.
7735 * config/a29k/a29k.mt: Delete.
7736 * a29k-tdep.c: Delete.
7737 * remote-udi.c: Delete.
7738 * remote-mm.c: Delete.
7739 * remote-eb.c: Delete.
7740 * remote-adapt.c: Delete.
7741 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
7742 * config/s390/s390x.mt: Ditto.
7743 * config/s390/s390.mt: Ditto.
7744 * config/sparc/sparclynx.mh: Ditto.
7745 * config/sparc/linux.mh: Ditto.
7746 * config/pa/hppaosf.mh: Ditto.
7747 * config/pa/hppabsd.mh: Ditto.
7748 * config/ns32k/nbsd.mt: Ditto.
7749 * config/mips/vr5000.mt: Ditto.
7750 * config/m68k/sun3os4.mh: Ditto.
7751 * config/m68k/nbsd.mt: Ditto.
7752 * config/m68k/m68klynx.mh: Ditto.
7753 * config/m32r/m32r.mt: Ditto.
7754 * config/i386/x86-64linux.mt: Ditto.
7755 * config/i386/nbsdelf.mt: Ditto.
7756 * config/i386/nbsd.mt: Ditto.
7757 * config/i386/i386lynx.mh: Ditto.
7758
bf0c5130
AC
77592002-05-04 Andrew Cagney <ac131313@redhat.com>
7760
7761 * target.c (debug_print_register): New function. Handle oversize
7762 registers.
7763 (debug_to_fetch_registers): Call.
7764 (debug_to_store_registers): Call.
7765
2ae1c2d2
JB
77662002-05-03 Jim Blandy <jimb@redhat.com>
7767
13a393b0
JB
7768 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7769 (read_type): Doc fix.
7770 * gdbtypes.c (replace_type): Doc fix.
7771
2ae1c2d2
JB
7772 * stabsread.c (multiply_defined_struct): New complaint.
7773 (read_struct_type): If the type we were passed isn't empty, or
7774 incomplete, don't read the new struct type into it; complain,
7775 and return the original type unchanged. Take a new `type_code'
7776 argument, which is the type code for the new type.
7777 (read_type): Rather than storing the type's type code here, pass
7778 it as an argument to read_struct_type, and let that take care of
7779 storing it. That way, we don't overwrite the original type code,
7780 so read_struct_type can use it to decide whether we're overwriting
7781 something we shouldn't.
7782 (complain_about_struct_wipeout): New function.
7783
8de9bdc4
AC
77842002-05-03 Andrew Cagney <ac131313@redhat.com>
7785
7786 * gdbarch.sh: Assert that gdbarch is non-NULL.
7787 * gdbarch.c: Regenerate.
7788
f773fdbb
JM
77892002-05-03 Jason Merrill <jason@redhat.com>
7790
7791 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7792 and return NULL.
7793
0e04a514
ML
77942002-05-03 Michal Ludvig <mludvig@suse.cz>
7795
7796 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7797 (x86_64_dwarf2gdb_regno_map_length),
7798 (x86_64_dwarf2_reg_to_regnum): Added.
7799 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7800 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7801 (_initialize_x86_64_tdep): Synced with the change above.
7802 (x86_64_skip_prologue): Reformulated message.
7803
065432a8
PM
78042002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7805
7806 * f-exp.y: Also use new prev_lexptr variable
7807 to improve error reporting. Based on Michael Snyder
7808 2002-04-24 dated patch to c-exp.y.
7809 * jv-exp.y: Likewise.
7810 * m2-exp.y: Likewise.
7811
a3162708
EZ
78122002-05-02 Elena Zannoni <ezannoni@redhat.com>
7813
7814 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7815 we are dealing with vectors.
7816
03620c38
PM
78172002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7818
7819 * config/m68k/tm-nbsd.h: Obvious fix,
7820 correct machine name.
7821
6604db2e
PM
78222002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7823
7824 * p-typeprint.c (pascal_type_print_base): Add support
7825 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7826
0906b739
PM
78272002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7828
7829 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7830 for fondamental pascal 'char' type.
7831
e2625b33
PM
78322002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7833
7834 * p-lang.h (is_pascal_string_type): Declaration changed,
7835 new sixth argument of type char ** added.
361d1df0 7836 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
7837 changed. Args length_pos, length_size, string_pos, char_size
7838 can now be NULL. New argument arrayname set to the field
7839 name of the char array. Return value set to char array
7840 field index plus one.
361d1df0 7841 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
7842 is_pascal_string_type function.
7843
cf17c188
AC
78442002-05-02 Andrew Cagney <cagney@redhat.com>
7845
7846 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7847 <cagney@redhat.com> change.
7848 * gdbarch.c: Regenerate.
7849
52bca491
AC
78502002-05-02 Andrew Cagney <cagney@redhat.com>
7851
7852 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7853 before probing for a new one. Detect errorenous gdbarch_init
7854 functions.
7855 * gdbarch.c: Regenerate.
7856
d5e72505
AC
78572002-05-01 Andrew Cagney <cagney@redhat.com>
7858
7859 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7860 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7861 * config/v850/tm-v850.h: Ditto. Update copyright.
7862
af566d9f
AC
78632002-04-30 Andrew Cagney <ac131313@redhat.com>
7864
7865 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7866 current_gdbarch.
7867
880d85fa
MS
78682002-04-30 Michael Snyder <msnyder@redhat.com>
7869
94c30b78
MS
7870 * arm-tdep.c: Whitespace clean-ups.
7871 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7872 should have been removed as part of 4/24 change.
7873
6f5987a6
KB
78742002-04-30 Kevin Buettner <kevinb@redhat.com>
7875
7876 * rs6000-tdep.c: Added comment describing how fpscr register
7877 numbers were chosen.
7878
1a113c93
MS
78792002-04-30 Michael Snyder <msnyder@redhat.com>
7880
7881 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7882
9a6f53fe
EZ
78832002-04-29 Elena Zannoni <ezannoni@redhat.com>
7884
7885 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7886 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7887 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7888
11ed25ac
KB
78892002-04-29 Kevin Buettner <kevinb@redhat.com>
7890
7891 From Louis Hamilton <hamilton@redhat.com>:
7892 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7893 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7894 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7895 not bfd-private xcoff data, to determine wordsize.
7896 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7897
ae232405
AC
78982002-04-29 Andrew Cagney <ac131313@redhat.com>
7899
7900 GDB 5.2 released from 5.2 branch.
7901
91fd20f7
ML
79022002-04-29 Michal Ludvig <mludvig@suse.cz>
7903
7904 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7905 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7906 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7907
2dc5091b
EZ
79082002-04-29 Elena Zannoni <ezannoni@redhat.com>
7909
7910 * rs6000-tdep.c (rs6000_extract_return_value,
7911 rs6000_store_return_value): Handle returning vectors.
7912 (rs6000_gdbarch_init): Use
7913 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7914 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7915 New function.
7916 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7917 vectors.
7918 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7919 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7920
2b9848d8
PM
79212002-04-24 Pierre Muller <ics.u-strasbg.fr>
7922
7923 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7924 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7925 with fprintf_unfiltered (gdb_stderr,...).
7926
f8d17dc5
PM
79272002-04-24 Pierre Muller <ics.u-strasbg.fr>
7928
7929 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7930 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7931 Replace fprintf (stderr,...
7932 with fprintf_unfiltered (gdb_stderr,....
7933 * remote-es.c: Likewise.
7934 * remote-os9k.c: Likewise.
7935 * remote-st.c: Likewise.
7936
2f2f1ad1
AS
79372002-04-28 Andreas Schwab <schwab@suse.de>
7938
7939 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7940 linux-proc.o and gcore.o.
7941
b6779aa2
AC
79422002-04-26 Michal Ludvig <mludvig@suse.cz>
7943
7944 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7945 code without frame pointers.
7946
7e57f5f4
AC
79472002-04-26 Andrew Cagney <ac131313@redhat.com>
7948
7949 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7950 ON_STACK is needed.
7951
2ceb85d0
BE
79522002-04-26 Ben Elliston <bje@redhat.com>
7953
7954 * target.c (do_xfer_memory): Correct reference to the new option
7955 "trust-readonly-sections".
7956
f5f8a009
EZ
79572002-04-26 Elena Zannoni <ezannoni@redhat.com>
7958
7959 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7960 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7961 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7962 vectors.
7963 (read_array_type): Record the fact that this array type is really a
7964 vector (i.e. are passed in by value).
7965
5868c862
JT
79662002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7967
7968 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7969 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7970 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7971 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7972 * alpha-linux-tdep.c: Include frame.h.
7973 (alpha_linux_sigcontext_addr): New function.
7974 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7975 alpha_linux_sigcontext_addr.
7976 * alpha-osf1-tdep.c: Include gdbcore.h.
7977 (alpha_osf1_sigcontext_addr): New function.
7978 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7979 alpha_osf1_sigcontext_addr.
7980 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7981 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7982
bfb01f37
AC
79832002-04-26 Andrew Cagney <ac131313@redhat.com>
7984
361d1df0 7985 * stack.c (selected_frame_level):
bfb01f37
AC
7986 (select_frame): Do not set selected_frame_level.
7987 * frame.h (selected_frame_level): Delete declaration.
7988
15813d3f
AC
79892002-04-26 Andrew Cagney <ac131313@redhat.com>
7990
7991 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7992 convert_from_func_ptr-addr when AIX / PowerOpen.
7993
6096c27a
AC
79942002-04-25 Andrew Cagney <ac131313@redhat.com>
7995
7996 * valops.c (hand_function_call): Call
7997 generic_save_call_dummy_addr.
7998 * frame.h (generic_save_call_dummy_addr): Declare.
7999 * blockframe.c (struct dummy_frame): Add fields call_lo and
8000 call_hi.
8001 (generic_find_dummy_frame): Check for PC in range call_lo to
8002 call_hi instead of entry_point_address.
8003 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8004 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8005 (generic_save_call_dummy_addr): New function.
8006
f510d44e
DM
80072002-04-24 David S. Miller <davem@redhat.com>
8008
8009 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8010 sparc_skip_prologue.
8011 (sparc_skip_prologue): Kill frameless_p arg, and use line number
8012 information to find prologue when possible.
8013 (sparc_prologue_frameless_p): Call examine_prologue directly.
8014 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8015 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8016 second argument.
8017 (SKIP_PROLOGUE): Likewise.
8018
15d72a92
JT
80192002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8020
8021 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8022 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8023 indicate that the condition it was testing is always true.
8024 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8025 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8026 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8027
accc6d1f
JT
80282002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8029
8030 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8031 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8032 tdep->jb_pc and tdep->jb_elt_size.
8033 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8034 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8035 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8036 * alpha-nat.c (get_longjmp_target): Remove.
8037 (JB_ELEMENT_SIZE): Ditto.
8038 (JB_PC): Ditto.
8039 * alpha-tdep.c (alpha_get_longjmp_target): New function.
8040 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
8041 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8042 to alpha_get_longjmp_target.
8043 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8044 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8045 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8046
1bfdc549
AC
80472002-04-25 Andrew Cagney <ac131313@redhat.com>
8048
8049 * README: Update to GDB 5.2.
8050
1bd316f0
AC
80512002-04-25 Andrew Cagney <ac131313@redhat.com>
8052
8053 * gdbarch.sh (LC_ALL): Set to `c'.
8054
2e5ff58c
TR
80552002-04-25 Theodore A. Roth <troth@verinet.com>
8056
8057 * avr-tdep.c: Ran through gdb_indent.sh.
8058
e33ce519
TR
80592002-04-25 Theodore A. Roth <troth@verinet.com>
8060
8061 * MAINTAINERS: Add myself as AVR maintainer.
8062 * NEWS: Note new target avr.
8063
8818c391
TR
80642002-04-25 Theodore A. Roth <troth@verinet.com>
8065
8066 * Makefile.in: Add support for AVR target.
8067 * configure.tgt: Add support for AVR target.
8068 * avr-tdep.c: New file
8069 * config/avr/avr.mt: New file.
8070
79509c2d
TR
80712002-04-25 Theodore A. Roth <troth@verinet.com>
8072
8073 * MAINTAINERS: Add myself to write-after-approval.
8074
dac8068e
PM
80752002-04-24 Pierre Muller <ics.u-strasbg.fr>
8076
8077 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8078 with fprintf_unfiltered (gdb_stderr,....
8079
25bf3106
PM
80802002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8081
8082 Fix PR gdb/508.
8083 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8084
24467a86
PM
80852002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8086
8087 * p-exp.y: Also use new prev_lexptr variable
8088 to improve error reporting. Based on Michael Snyder
8089 2002-04-24 dated patch to c-exp.y.
8090
95b80706
JT
80912002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8092
8093 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8094 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8095 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
8096 to 0.
8097 * config/alpha/tm-alpha.h: Remove forward decls of struct type
8098 and struct value.
8099 (FUNCTION_START_OFFSET): Remove.
8100 (BREAKPOINT): Ditto.
8101
e90cc612
JT
81022002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8103
8104 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8105 * NEWS: Ditto.
8106
6c72f9f9
JT
81072002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8108
8109 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8110 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8111 alpha_linux_pc_in_sigtramp.
8112 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8113 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8114 alpha_osf1_pc_in_sigtramp.
8115 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8116 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8117 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8118 alphafbsd_pc_in_sigtramp.
8119 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8120 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8121 alphanbsd_pc_in_sigtramp.
8122 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8123 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8124
5e4f3379
JT
81252002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8126
8127 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8128
da8ca43d
JT
81292002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8130
8131 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8132 alphanbsd-tdep.c.
8133 (alphanbsd-nat.o): New dependency list.
8134 (alphanbsd-tdep.o): Ditto.
8135 * NEWS: Note new native NetBSD/alpha configuration.
8136 * alphanbsd-nat.c: New file.
8137 * alphanbsd-tdep.c: Ditto.
8138 * configure.host (alpha*-*-netbsd*): New host.
8139 * configure.tgt (alpha*-*-netbsd*): New target.
8140 * config/alpha/nbsd.mh: New file.
8141 * config/alpha/nbsd.mt: Ditto.
8142 * config/alpha/nm-nbsd.h: Ditto.
8143 * config/alpha/tm-nbsd.h: Ditto.
8144
36a6271d
JT
81452002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8146
8147 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8148 (alpha-osf1-tdep.o): New dependency list.
8149 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8150 and skip_sigtramp_frame members.
8151 * alpha-linux-tdep.c: Include gdbcore.h.
8152 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8153 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8154 * alpha-osf1-tdep.c: New file.
8155 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8156 alpha-osf1-dep.c.
8157 (alpha_frame_past_sigtramp_frame): New function.
8158 (alpha_dynamic_sigtramp_offset): Ditto.
8159 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8160 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8161 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8162 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8163 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8164 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8165 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8166 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8167 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8168 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8169 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8170 to find_solib_trampoline_target.
8171 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8172 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8173 (SKIP_TRAMPOLINE_CODE): Remove.
8174 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8175 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8176 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8177 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8178 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8179 (PROC_SIGTRAMP_MAGIC): Ditto.
8180 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8181 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8182 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8183 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8184 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8185
2f4bc57b
JT
81862002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8187
8188 * NEWS: Note that Alpha targets are now multi-arch.
8189
665132f9
MS
81902002-04-24 Michael Snyder <msnyder@redhat.com>
8191
8192 * parser-defs.h (prev_lexptr): New external variable.
8193 * parse.c (parse_exp_1): Set prev_lexptr to null before
8194 calling the language-specific parser.
8195 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8196 (yyerror): Use prev_lexptr in error reporting.
8197
32872fa7
DJ
81982002-04-24 Daniel Jacobowitz <drow@mvista.com>
8199
8200 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8201 * gregset.h: If FILL_FPXREGSET is defined, provide
8202 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8203 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8204 is defined, call fill_fpxregset.
8205
57e76fac
MS
82062002-04-24 Roland McGrath <roland@frob.com>
8207
8208 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8209 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8210 (supply_gregset, supply_fpregset): New functions.
8211
8212 * gnu-nat.c (gnu_find_memory_regions): New function.
8213 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8214 (gnu_xfer_memory): Add a cast.
8215
f43845b3
MS
82162002-04-24 Michael Snyder <msnyder@redhat.com>
8217
361d1df0 8218 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
8219 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8220 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 8221 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
8222 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8223 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8224
a0abec03
AC
8225Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8226
8227 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8228 NUM_PSEUDO_REGS can be used.
8229
d7bd68ca
AC
82302002-04-24 Andrew Cagney <ac131313@redhat.com>
8231
8232 * arch-utils.h: Update copyright.
8233
8234 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8235 * gdbarch.h, gdbarch.c: Re-generate.
8236
8237 * inferior.h (IN_SIGTRAMP): Delete definition.
8238 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8239 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8240
8241 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8242 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8243 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8244 (find_proc_framesize): Ditto.
8245 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8246 (alpha_init_extra_frame_info): Ditto.
8247 * infrun.c (handle_inferior_event): Ditto.
8248 (handle_inferior_event): Ditto.
8249 (check_sigtramp2): Ditto.
8250 * blockframe.c (create_new_frame): Ditto.
8251 (get_prev_frame): Ditto.
8252 * ppc-linux-tdep.c: Update comments.
8253 * i386-linux-tdep.c: Update comments.
8254 * breakpoint.c (bpstat_what): Update comment.
8255
4867e41e
DM
82562002-04-24 David S. Miller <davem@redhat.com>
8257
21d83aa5
DM
8258 * i960-tdep.c (register_in_window_p): New function.
8259 (i960_find_saved_register): Use it instead of
8260 REGISTER_IN_WINDOW_P.
8261 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8262
4867e41e
DM
8263 * symtab.h (find_stab_function_addr): Kill extern.
8264 * minsyms.c (find_stab_function_addr): Remove from here...
8265 * dbxread.c: ... to here, and mark it static.
8266
69cdf6a2
DM
82672002-04-20 David S. Miller <davem@redhat.com>
8268
8269 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8270 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8271
5a595886
DM
82722002-04-21 David S. Miller <davem@redhat.com>
8273
8274 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8275 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8276 (vx_write_register): Likewise.
8277
1da1a192
JB
82782002-04-23 J. Brobecker <brobecker@gnat.com>
8279
8280 * source.c (is_regular_file): New function.
8281 (openp): Check wether file to open is a regular file
8282 to avoid opening directories.
8283
baa6f10b
JT
82842002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8285
8286 * findvar.c (extract_signed_integer): Cast printf argument
8287 to suppress format warning.
8288 (extract_unsigned_integer): Likewise.
8289 * infcmd.c (registers_info): Likewise.
8290 * top.c (get_prompt_1): Likewise.
8291 * valops.c (value_assign): Likewise.
8292 * valprint.c (print_decimal): Likewise.
8293
b2c4da81
L
82942002-04-22 H.J. Lu (hjl@gnu.org)
8295
8296 * c-exp.y (typebase): Support
361d1df0 8297
b2c4da81
L
8298 [long|long long|short] [signed|unsigned] [int|]
8299
8300 and
8301
8302 signed [long|long long|short] int
8303
f267bd6a
JT
83042002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8305
8306 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8307 and vax-tdep.h.
8308 * vax-tdep.h: New file.
8309 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8310 Make several routines static.
8311 (vax_get_saved_register): New function.
8312 (vax_gdbarch_init): New function.
8313 (_initialize_vax_tdep): Register vax_gdbarch_init.
8314 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8315 Remove macros now under the control of gdbarch.
8316
da3c6d4a
MS
83172002-04-22 Michael Snyder <msnyder@redhat.com>
8318
11d3b27d
MS
8319 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8320 Some whitespace and coding standards tweaks.
da3c6d4a 8321
a33f7558
JT
83222002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8323
8324 * vax-tdep.c: Include regcache.h.
8325 (vax_call_dummy_words): New.
8326 (sizeof_vax_call_dummy_words): New.
8327 (vax_fix_call_dummy): New function.
8328 (vax_saved_pc_after_call): Ditto.
8329 * config/vax/tm-vax.h: Don't include regcache.h.
8330 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8331 (CALL_DUMMY): Remove.
8332 (CALL_DUMMY_WORDS): Define.
8333 (SIZEOF_CALL_DUMMY_WORDS): Define.
8334 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8335
47a73475
MS
83362002-04-18 Michael Snyder <msnyder@redhat.com>
8337
8338 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8339
52efde73
JT
83402002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8341
8342 * vax-tdep.c (vax_frame_chain): New function.
8343 (vax_push_dummy_frame): Ditto.
8344 (vax_pop_frame): Ditto.
8345 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8346 (FRAMELESS_FUNCTION_INVOCATION): Use
8347 generic_frameless_function_invocation_not.
8348 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8349 (POP_FRAME): Use vax_pop_frame.
8350
ea74468c
JT
83512002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8352
8353 * vax-tdep.c (vax_store_struct_return): New function.
8354 (vax_extract_return_value): Ditto.
8355 (vax_store_return_value): Ditto.
8356 (vax_extract_struct_value_address): Ditto.
8357 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8358 vax_store_struct_return.
8359 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8360 (STORE_RETURN_VALUE): Use vax_store_return_value.
8361 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8362
5516aa92
JT
83632002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8364
8365 * vax-tdep.c (vax_frame_saved_pc): New function.
8366 (vax_frame_args_address_correct): Ditto.
8367 (vax_frame_args_address): Ditto.
8368 (vax_frame_locals_address): Ditto.
8369 (vax_frame_num_args): Move code to be in proximity to
8370 other frame-related functions.
8371 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8372 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8373 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8374 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8375 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8376
36af0b35
L
83772002-04-22 H.J. Lu (hjl@gnu.org)
8378
8379 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8380 includedir.
8381
ab62c900
JT
83822002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8383
8384 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8385 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8386 (FRAME_INIT_SAVED_REGS): New macro.
8387
7232b100
JT
83882002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8389
8390 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8391
b70d2aee
JT
83922002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8393
8394 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8395 where needed.
8396 (fetch_osf_core_registers): Likewise.
8397 (supply_gregset): Likewise.
8398
a0e8a2d1 83992002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 8400
a0e8a2d1
JB
8401 * symfile.h (get_section_index): Define.
8402 * symfile.c (get_section_index): New function.
8403 * mdebugread.c (SC_IS_SBSS): New macro.
8404 (SC_IS_BSS): Return true for the scBss storage class only, as
8405 the scSBss storage class refers to the .sbss section.
8406 (parse_partial_symbols): Discard the symbols which associated
8407 section does not exist.
8408 Make sure to use the .sbss section index for symbols which
8409 storage class is scBss, rather than using the .bss section index.
8410
51eb8b08
JT
84112002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8412
8413 * vax-tdep.c: Update copyright years.
8414 (vax_register_name): New function.
8415 (vax_register_byte): Ditto.
8416 (vax_register_raw_size): Ditto.
8417 (vax_register_virtual_size): Ditto.
8418 (vax_register_virtual_type): Ditto.
8419 * config/vax/tm-vax.h: Update copyright years.
8420 (REGISTER_NAMES): Remove.
8421 (REGISTER_NAME): Define.
8422 (REGISTER_BYTE): Use vax_register_byte.
8423 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8424 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8425 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8426
6cc1c0a8
AC
84272002-04-21 Andrew Cagney <ac131313@redhat.com>
8428
8429 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8430 declaration
8431 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8432
9319a2fe
DM
84332002-04-21 David S. Miller <davem@redhat.com>
8434
8435 * arch-utils.c (generic_prologue_frameless_p): Kill
8436 SKIP_PROLOGUE_FRAMELESS_P code.
8437 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8438 references.
8439 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8440 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8441 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8442 references.
8443 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8444 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8445 (sparc_gdbarch_init): Pass it to
8446 set_gdbarch_prologue_frameless_p.
a0e8a2d1 8447
e9ed6d01
JT
84482002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8449
8450 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8451 (alphabsd-nat.o): New dependency list.
8452
36012033
JT
84532002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8454
8455 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8456 alphafbsd-tdep.c.
8457 (alpha-linux-tdep.o): New dependency list.
8458 (alphafbsd-tdep.o): Likewise.
8459
3379287a
JT
84602002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8461
8462 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8463 to here...
8464 * alpha-tdep.c: ...from here.
8465 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8466
4bcbd6cb
JT
84672002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8468
8469 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8470 prototype from here...
8471 * alpha-tdep.h: ...to here.
8472
b31da25e
AC
84732002-04-21 Andrew Cagney <ac131313@redhat.com>
8474
8475 * frame.h (selected_frame_level): Document as deprecated.
8476 (frame_relative_level): Declare.
8477 * stack.c (frame_relative_level): New function.
8478 (selected_frame_level): Document as deprecated.
8479 (select_frame): Do not set the selected_frame_level.
8480
8481 * stack.c (frame_info, record_selected_frame): Update.
8482 (frame_command, current_frame_command): Update.
8483 (up_silently_base, up_command, down_silently_base): Update.
8484 (down_command): Update.
8485 * inflow.c (kill_command): Update.
8486 * tracepoint.c (finish_tfind_command): Update.
8487 * corelow.c (core_open): Update.
8488 * thread.c (info_threads_command): Update.
8489 (do_captured_thread_select): Update.
8490 * infcmd.c (finish_command): Update.
8491 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8492
9c1d6fe5
JT
84932002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8494
8495 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8496
ab89facf
AC
84972002-04-21 Andrew Cagney <ac131313@redhat.com>
8498
8499 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8500 type const.
8501
82a4efa1
JT
85022002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8503
8504 * alphafbsd-tdep.c: Update copyright years. Include
8505 alpha-tdep.h.
8506 (alphafbsd_use_struct_convention): Make static.
8507 (alphafbsd_init_abi): New function.
8508 (_initialize_alphafbsd_tdep): New function.
8509 * config/alpha/tm-fbsd.h: Update copyright years.
8510 (USE_STRUCT_CONVENTION): Remove.
8511
44dffaac
JT
85122002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8513
8514 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8515 an Alpha ABI variant.
8516 (alpha_abi_handler_list): Declare.
8517 (alpha_gdbarch_register_os_abi): New function.
8518 (alpha_gdbarch_init): Give registered ABI variant handlers a
8519 chance to tweak the gdbarch once we have set up defaults.
8520 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8521
65585be4
JT
85222002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8523
8524 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8525 to standard_coerce_float_to_double.
8526 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8527
d9b023cc
JT
85282002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8529
8530 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8531 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8532 from gdbarch_tdep rather than a constant.
8533 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8534 the default text address for all Alpha Unix ABIs.
8535 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8536 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8537
dc129d82
JT
85382002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8539
8540 * alpha-tdep.h: New file. Includes several Alpha target constants
8541 taken from...
8542 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8543 let gdbarch deal with.
8544 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8545 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8546 to dependency list.
8547 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8548 Alpha target register names.
8549 * alphabsd-nat.c: Likewise.
8550 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8551 Alpha target register names. Make serveral routines static.
8552 (alpha_get_saved_register): New function.
8553 (alpha_abi_names): New.
8554 (process_note_abi_tag_sections): New function.
8555 (get_elfosabi): New function.
8556 (alpha_gdbarch_init): New function.
8557 (alpha_dump_tdep): New function.
8558 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8559
d49d1e0a
AC
85602002-04-21 Andrew Cagney <ac131313@redhat.com>
8561
8562 * frame.c (find_saved_register): Delete #ifdef
8563 HAVE_REGISTER_WINDOWS code.
8564 * config/sparc/tm-sparc.h: Update comments.
8565 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8566
92e8c9ed
AC
85672002-04-21 Andrew Cagney <ac131313@redhat.com>
8568
8569 * i960-tdep.c (i960_find_saved_register): New function.
8570 (i960_get_saved_register): New function.
8571 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8572 (i960_get_saved_register): Declare.
8573 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8574
e1925118
DM
85752002-04-20 David S. Miller <davem@redhat.com>
8576
8577 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8578
29673b29
AC
85792002-04-20 Andrew Cagney <ac131313@redhat.com>
8580
8581 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8582 instead of NUM_PSEUDO_REGS.
8583
6c86dcd5
DM
85842002-04-20 David S. Miller <davem@redhat.com>
8585
8586 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8587 GDB_MULTI_ARCH_PARTIAL
8588 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8589 define, let tm-sp64.h do it.
8590
aa40ec90
JT
85912002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8592
8593 * frame.c (find_saved_register): Avoid a NULL pointer
8594 dereference and actually walk the frame list.
8595
0f79675b
AC
85962002-04-20 Andrew Cagney <ac131313@redhat.com>
8597
8598 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8599 sorted in most most-recent-used order. Document.
8600 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8601
f91305dd 86022002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
8603
8604 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8605 instead of ->prev.
8606 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8607 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8608 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8609 instead of ->prev.
8610
73d322b1
EZ
86112002-04-19 Elena Zannoni <ezannoni@redhat.com>
8612
8613 Fix PR gdb/471.
8614 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8615 (build_builtin_type_vec128): Ditto.
8616 (append_composite_type_field): Fix calculation of type length in
8617 union case.
8618
ccd9a834
EZ
86192002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8620
8621 * config/djgpp/README: Update.
8622
8623 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8624 compiler warnings.
8625
a57f9e49
JT
86262002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8627
8628 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8629 (alpha_setup_arbitrary_frame): ...to this.
8630 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8631 for alpha_setup_arbitrary_frame.
8632
f4f9705a
AC
86332002-04-18 Andrew Cagney <cagney@redhat.com>
8634
8635 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8636 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8637
f4f9705a
AC
8638 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8639 * target.h (memory_breakpoint_from_pc): Update declaration.
8640 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8641
8642 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8643 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8644 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8645 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8646 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8647 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8648 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8649 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8650 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8651 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8652 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8653 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8654
8655 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8656 const pointer.
8657 * monitor.c (monitor_insert_breakpoint): Ditto.
8658 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8659
8660 * config/mcore/tm-mcore.h: Update copyright.
8661 * mem-break.c: Ditto.
8662 * xstormy16-tdep.c: Ditto.
8663
29f319b8
PM
86642002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8665
8666 * p-exp.y: Add precedence rule for '^' token.
8667 This removes the shift/reduce conflicts.
8668 Remove the comment concerning these shift/reduce conflicts.
8669
ebeac11a
EZ
86702002-04-18 Elena Zannoni <ezannoni@redhat.com>
8671
8672 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8673 (registers_powerpc_nofp): New register set for processors
8674 without floating point unit.
8675
27c31547
DM
86762002-04-18 David S. Miller <davem@redhat.com>
8677
8678 * MAINTAINERS: Add myself to write-after-approval.
8679
47a73475
MS
86802002-04-17 Michael Snyder <msnyder@redhat.com>
8681
8682 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8683
953836b2
AC
86842002-04-17 Andrew Cagney <ac131313@redhat.com>
8685
8686 * rs6000-tdep.c (frame_initial_stack_address): Use
8687 frame_register_read to read the alloca_reg.
8688
8b0d4340
AC
86892002-04-17 Andrew Cagney <ac131313@redhat.com>
8690
8691 * frame.c (find_saved_register): Find saved registers in the next
8692 not prev frame.
8693 Fix PR gdb/365.
8694
d8864532
AC
86952002-04-17 Andrew Cagney <ac131313@redhat.com>
8696
8697 * gdbarch.sh (LANG): Set to ``c''.
8698
36cc83a3 86992002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 8700
36cc83a3 8701 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 8702
2f4150cc 87032002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
8704
8705 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8706 Update copyright.
8707
628703c6 8708 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 8709 Also fix PR gdb/391.
361d1df0 8710
56157b4a
AC
87112002-04-14 Andrew Cagney <ac131313@redhat.com>
8712
8713 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8714 * aclocal.m4, configure: Re-generate.
8715 Fix PR gdb/391.
361d1df0 8716
6d1e3329
EZ
87172002-04-14 Elena Zannoni <ezannoni@redhat.com>
8718
8719 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8720 instead of tm_print_insn.
8721
cb06fa07
EZ
87222002-04-14 Elena Zannoni <ezannoni@redhat.com>
8723
8724 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8725
f208ba17
AC
87262002-04-14 Andrew Cagney <ac131313@redhat.com>
8727
8728 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8729 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8730 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8731
20f01a46
DH
87322002-04-12 Don Howard <dhoward@redhat.com>
8733
8734 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8735 max_user_call_depth.
8736 (init_cmd_lists): Initialize the new value;
8737 * cli/cli-script.c (execute_user_command): Limit the call depth of
8738 user defined commands. This avoids a core-dump when user commands
8739 are infinitly recursive.
8740
a88376a3
KB
87412002-04-12 Kevin Buettner <kevinb@redhat.com>
8742
8743 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8744 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8745 from tdep struct instead of DEFAULT_LR_SAVE.
8746 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8747 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8748 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8749
f2172603
MS
87502002-04-12 Michael Snyder <msnyder@redhat.com>
8751
694f61fb 8752 * Remote.c: Spelling fix.
20fe79c8
MS
8753 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8754 If no symbol found for "sbrk", try "_sbrk".
8755 (make_output_phdrs): Use bfd_section_name.
8756 (gcore_copy_callback): Use bfd_section_name.
62995fc4 8757 * eval.c: Indentation fix-ups.
169a7369
MS
8758 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8759 in case it gets applied to an address that is already
8760 in the instruction space.
de74f71f
MS
8761 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8762 * symfile.c: Fix indentation, long lines.
f2172603
MS
8763 * source.c: White space fix-up.
8764
cda5a58a
AC
87652002-04-12 Andrew Cagney <cagney@redhat.com>
8766
8767 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8768 * frame.c (frame_register_read): New function. Return non-zero on
8769 success.
8770 (read_relative_register_raw_bytes_for_frame): Delete.
8771 (read_relative_register_raw_bytes): Delete.
8772 * frame.h (frame_register_read): Declare.
8773 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8774 * sh-tdep.c: Ditto.
8775 * infcmd.c (do_registers_info): Ditto.
8776 * hppa-tdep.c: Ditto.
8777 * rs6000-tdep.c: Ditto.
8778 * h8500-tdep.c: Ditto.
8779 * mips-tdep.c: Ditto.
8780 * h8300-tdep.c: Ditto.
8781 * z8k-tdep.c: Ditto.
8782
2ea5f656
KB
87832002-04-12 Kevin Buettner <kevinb@redhat.com>
8784
8785 From Jimi X <jimix@watson.ibm.com>:
8786 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8787 64-bit SysV ABI.
8788
27b15785
KB
87892002-04-12 Kevin Buettner <kevinb@redhat.com>
8790
8791 From Jimi X <jimix@watson.ibm.com>:
8792 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8793 bfd info.
8794
5d57ee30
KB
87952002-04-12 Kevin Buettner <kevinb@redhat.com>
8796
8797 From Jimi X <jimix@watson.ibm.com>:
8798 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8799 register sets for these processor variants.
8800
bc1e36ca
DJ
88012002-04-11 Daniel Jacobowitz <drow@mvista.com>
8802
bc1e36ca
DJ
8803 * regformats/reg-ppc.dat: Support FPSCR.
8804
e3f36dbd
KB
88052002-04-11 Kevin Buettner <kevinb@redhat.com>
8806
8807 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8808 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8809 Add fpscr as an invalid/unfetchable register.
8810 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8811 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8812 (fill_fpregset): Add support for register fpscr.
8813 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8814 (fill_gregset): Account for the fact that register ``mq'' might
8815 not exist.
8816 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8817 (registers_power): Add fpscr to register set at slot 71.
8818 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8819 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8820
943c9c25
MS
88212002-04-11 Michael Snyder <msnyder@redhat.com>
8822
8823 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8824 * configure: Regenerate.
8825 * config.in: Regenerate.
8826 * acconfig.h: Add define for _SYSCALL32.
8827 * core-sol2.c: Remove #define _SYSCALL32.
8828 * solib-legacy.c: Remove #define _SYSCALL32.
8829
d8c0a2e7
AC
88302002-04-10 Andrew Cagney <ac131313@redhat.com>
8831
8832 * stack.c (select_frame): Cleanup internal error message, do not
8833 use %p.
8834
7cc19214
AC
88352002-04-10 Andrew Cagney <ac131313@redhat.com>
8836
8837 * stack.c (select_frame): Check that selected_frame and the
8838 specified level are as expected.
8839 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8840 Update copyright.
8841 * frame.h (struct frame_info): Add field `level'. Update
8842 copyright.
8843 Work-in-progress PR gdb/464.
8844
67a2b77e
AC
88452002-04-10 Andrew Cagney <ac131313@redhat.com>
8846
8847 * maint.c (maint_print_section_info): Rename print_section_info.
8848 (print_bfd_section_info, print_objfile_section_info): Update.
8849 * inferior.h (struct gdbarch): Add opaque declaration.
8850 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8851 * gdbarch.h: Regenerate.
8852
8cfda98c
ML
88532002-04-10 Michal Ludvig <mludvig@suse.cz>
8854
8855 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8856 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8857 (kernel_u_size): Added.
8858 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8859 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8860
ca439ad2 88612002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 8862
ca439ad2
JI
8863 * valarith.c (find_size_for_pointer_math): New function, either returns
8864 the size for a pointer's target, returns 1 for void *, or errors for
8865 incomplete types.
8866 (value_add, value_sub): use find_size_for_pointer_math.
8867
2f2893d9
DJ
88682002-04-09 Daniel Jacobowitz <drow@mvista.com>
8869
8870 * linux-low.c (linux_look_up_symbols): New hook.
8871 (linux_target_ops): Add linux_look_up_symbols.
8872 * remote-utils.c (decode_address): New function.
8873 (look_up_one_symbol): New function.
8874 * server.c (handle_query): Call target look_up_symbols hook.
8875 * server.h (look_up_one_symbol): Add prototype.
8876 * target.h (struct target_ops): Add look_up_symbols hook.
8877
96cb11df
AC
88782002-04-09 Andrew Cagney <ac131313@redhat.com>
8879
8880 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8881 override FP_REGNUM with frame->fp. Update copyright.
8882 * parse.c (num_std_regs, std_regs): Delete.
8883 (target_map_name_to_register): Do not search std_regs. Update
8884 function description.
8885 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8886 declarations. Update copyright.
8887 Fix PR gdb/251.
361d1df0 8888
97658e92
DJ
88892002-04-09 Daniel Jacobowitz <drow@mvista.com>
8890
8891 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8892 after the last symbol in a block.
8893
6044e3eb
PM
88942002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8895
8896 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8897 is non zero as a found symbol.
8898
0406ec40
AC
88992002-04-08 Andrew Cagney <ac131313@redhat.com>
8900
8901 * findvar.c: Include "builtin-regs.h".
8902 (value_of_register): Call value_of_builtin_reg when applicable.
8903 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8904 (target_map_name_to_register): Call
8905 builtin_reg_map_name_to_regnum.
8906 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8907 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8908 (builtin_regs_h): Define.
8909 (builtin-regs.o): New target.
8910 (findvar.o): Add $(builtin_regs_h).
8911 * builtin-regs.c, builtin-regs.h: New files.
8912 * std-regs.c: New file.
8913 Partial fix for PR gdb/251.
8914
56a6dfb9
KB
89152002-04-08 Kevin Buettner <kevinb@redhat.com>
8916
8917 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8918 it's no longer required.
8919
3a808432
AC
89202002-04-08 Andrew Cagney <ac131313@redhat.com>
8921
8922 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8923
7c40d541
KB
89242002-04-08 Kevin Buettner <kevinb@redhat.com>
8925
8926 From Jimi X <jimix@watson.ibm.com>:
8927 * rs6000-tdep.c (rs6000_software_single_step): Use
8928 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8929 and size. Use target_insert_breakpoint() and
8930 target_remove_breakpoint() to insert and remove breakpoints
8931 instead of explicit memory reads and writes.
8932
cc9836a8
KB
89332002-04-08 Kevin Buettner <kevinb@redhat.com>
8934
8935 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8936 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8937 ELF_OBJECT_FORMAT ifdef.
8938
7495d1dc
KB
89392002-04-08 Kevin Buettner <kevinb@redhat.com>
8940
8941 From Jimi X <jimix@watson.ibm.com>:
8942 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8943
4288e836
KB
89442002-04-08 Kevin Buettner <kevinb@redhat.com>
8945
8946 From Jimi X <jimix@watson.ibm.com>:
8947 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8948 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8949
a4e4e501
MK
89502002-04-07 Mark Kettenis <kettenis@gnu.org>
8951
8952 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8953 s/asprintf/xasprintf/.
8954 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8955
006defba
AC
89562002-04-07 Andrew Cagney <ac131313@redhat.com>
8957
8958 I believe Jeff Law denies responsability for this one:
8959 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8960 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8961 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8962 Work-around for PR gdb/366.
8963
7aa83cac
EZ
89642002-04-07 Elena Zannoni <ezannoni@redhat.com>
8965
8966 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8967 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8968 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8969
cf1fcca1
EZ
89702002-04-07 Elena Zannoni <ezannoni@redhat.com>
8971
8972 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8973 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8974 information.
8975
3f289e6f
AC
89762002-04-07 Andrew Cagney <ac131313@redhat.com>
8977
8978 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8979 maintainer.
8980
129188f6
AC
89812002-04-07 Andrew Cagney <ac131313@redhat.com>
8982
8983 * README (Reporting Bugs in GDB): Document the bug web page as the
8984 prefered way of submitting bugs.
8985 Fix PR gdb/402.
8986
1200cd6e
AC
89872002-04-06 Andrew Cagney <ac131313@redhat.com>
8988
8989 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8990 -1. Update comment.
8991 * gdbarch.h, gdbarch.c: Re-generate.
8992
2853c33c
AS
89932002-04-07 Andreas Schwab <schwab@suse.de>
8994
8995 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8996 buffer to regcache_collect.
8997
c2169756
AC
89982002-04-06 Andrew Cagney <ac131313@redhat.com>
8999
9000 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9001 * gdbarch.c, gdbarch.h: Re-generate.
9002
25f1b008
AC
90032002-04-06 Andrew Cagney <ac131313@redhat.com>
9004
9005 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9006 declaration. Fix -Werror.
9007
59263426
DJ
90082002-04-05 Daniel Jacobowitz <drow@mvista.com>
9009
9010 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9011 * gdbarch.c: Regenerate.
9012
f5db4da3
MS
90132002-04-05 Michael Snyder <msnyder@redhat.com>
9014
80f8a6eb
MS
9015 * breakpoint.c (clear_command): Rewrite middle section to
9016 combine two loops with identical control conditions.
9017 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
9018 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9019
ad3dcc5c
L
90202002-04-05 H.J. Lu (hjl@gnu.org)
9021
9022 * solib-svr4.c (bkpt_names): Add "__start".
9023
f32e7a74
AC
90242002-04-04 Andrew Cagney <ac131313@redhat.com>
9025
9026 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9027 as test for 64 bit target.
9028
8227c0ff
AC
90292002-04-05 Andrew Cagney <ac131313@redhat.com>
9030
9031 * h8500-tdep.c (h8500_write_fp): Delete function.
9032 * dwarf2cfi.c (cfi_write_fp): Document as not used.
9033 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9034 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9035 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9036 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9037 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9038 (s390_write_fp):
9039 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9040 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9041 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9042 (d10v_write_fp): Delete function.
9043 * inferior.h (write_fp, generic_target_write_fp): Delete
9044 declarations.
9045 * regcache.c (generic_target_write_fp): Delete function.
9046 (write_fp): Delete function.
9047 * gdbarch.sh (TARGET_WRITE_FP): Delete.
9048 * gdbarch.h, gdbarch.c: Regenerate.
9049 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9050 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9051 (sparc64_write_fp): Delete declaration.
9052 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9053 (h8500_write_fp): Delete declaration.
9054
2757dd86
AC
90552002-04-04 Andrew Cagney <ac131313@redhat.com>
9056
9057 * sparc-tdep.c (sparc64_write_fp): Delete.
9058 (sparc_push_dummy_frame): Replace write_fp call with code to store
9059 the FP directly.
9060 (sparc_gdbarch_init): Do not initialize write_fp.
9061
c69255e1
KB
90622002-04-05 Kevin Buettner <kevinb@redhat.com>
9063
9064 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9065 clause.
9066
ae767bfb
JB
90672002-03-29 Jim Blandy <jimb@redhat.com>
9068
9069 * stack.c (get_selected_block): Add new argument `addr_in_block',
9070 used to return the exact code address we used to select the block,
9071 not just the block.
9072 * blockframe.c (get_frame_block, get_current_block): Same.
9073 * frame.h (get_frame_block, get_current_block,
9074 get_selected_block): Update declarations.
9075 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9076 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9077
84d2ac95
MS
90782002-04-05 Michael Snyder <msnyder@redhat.com>
9079
9080 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9081 warning message.
9082
596aa3bf
JB
90832002-04-05 J. Brobecker <brobecker@gnat.com>
9084
9085 * utils.c (xfullpath): New function.
9086 * defs.h (xfullpath): Add declaration.
9087 * source.c (openp): Use xfullpath in place of gdb_realpath to
9088 avoid resolving the basename part of filenames when the
9089 associated file is a symbolic link. This fixes a potential
9090 inconsistency between the filenames known to GDB and the
9091 filenames it prints in the annotations.
9092 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9093 to be able to match a filename with either the real filename, or
9094 the name of any symbolic link to this file.
9095 (lookup_partial_symtab): Ditto.
9096
c02f5703
MS
90972002-04-04 Michael Snyder <msnyder@redhat.com>
9098
9099 * breakpoint.c: Add support for hardware breakpoints in overlays.
9100 (overlay_events_enabled): New state variable.
9101 (insert_breakpoints): Use overlay_events_enabled to decide
9102 whether to attempt to set a breakpoint at the overlay load addr.
9103 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9104 (remove_breakpoint): Use overlay_events_enabled to decide
9105 whether breakpoints need to be removed from overlay load addr.
9106 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9107 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 9108 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
9109 disable_overlay_breakpoints): Update overlay_events_enabled.
9110
5fb290d7
DJ
91112002-04-04 Daniel Jacobowitz <drow@mvista.com>
9112
9113 * dwarf2read.c (struct function_range): New.
9114 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9115 (check_cu_functions): New.
9116 (read_file_scope): Initialize global function lists.
9117 Call dwarf_decode_line after processing children.
9118 (read_func_scope): Add to global function list.
9119 (dwarf_decode_lines): Call check_cu_functions everywhere
9120 record_line is called. Call record_line with a linenumber
9121 of 0 to mark sequence ends.
9122
7b3fabf0
ML
91232002-04-04 Michal Ludvig <mludvig@suse.cz>
9124
361d1df0 9125 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
9126 change sync with glibc.
9127
bce58c09
JB
91282002-04-03 Jim Blandy <jimb@redhat.com>
9129
9130 * configure.in: Call AC_C_INLINE.
9131 * configure: Regenerated.
361d1df0 9132
2fccf04a
DJ
91332002-04-01 Daniel Jacobowitz <drow@mvista.com>
9134
9135 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9136 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9137
2d1bfe2e
MK
91382002-03-31 Mark Kettenis <kettenis@gnu.org>
9139
a5941fbf
MK
9140 * NEWS: Mention gcore support on FreeBSD/i386.
9141
a90cd31d
MK
9142 * fbsd-proc.c: New file.
9143 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9144 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9145
2d1bfe2e
MK
9146 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9147 while statement.
9148
9eb6e5a1
JB
91492002-03-29 Jim Blandy <jimb@redhat.com>
9150
9151 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9152 unescaped newlines in string literals, but newer ones don't. So
9153 escape them.
9154
f02df580
MS
91552002-03-26 Michael Snyder <msnyder@redhat.com>
9156 Andrew Cagney <cagney@redhat.com>
9157
361d1df0 9158 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
9159 restore file to memory.
9160 * cli/cli-dump.h: New file.
9161 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 9162 * NEWS: Mention new commands.
f02df580 9163
109f874e
MS
91642002-03-28 Michael Snyder <msnyder@redhat.com>
9165
9166 * symfile.c (symbol_file_add): Move test for null symbols to later.
9167
520f6ade
AC
91682002-03-27 Andrew Cagney <ac131313@redhat.com>
9169
9170 From veksler at il.ibm.com:
9171 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9172 the xstrduped original path.
9173 Fix PR gdb/417.
9174
d4654627
MS
91752002-03-27 Michael Snyder <msnyder@redhat.com>
9176
9177 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9178 * infcmd.c (_initialize_infcmd): Ditto.
9179 * language.c (_initialize_language): Ditto.
9180 * symfile.c (_initialize_symfile): Ditto.
9181 * top.c (_init_main): Ditto.
9182 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9183
6be8bc0c
EZ
91842002-03-27 Elena Zannoni <ezannoni@redhat.com>
9185
9186 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9187 vector registers handling.
9188 (skip_prologue): Handle new AltiVec instructions. Fill in new
9189 fields of frame data.
9190 (frame_get_saved_regs): Fill in information for AltiVec registers.
9191
12af6855
JB
91922002-03-27 Jim Blandy <jimb@redhat.com>
9193
9194 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9195 a function; leave this macro here to invoke that function.
9196 (symbol_init_mangled_name): Declaration for that function.
9197 * symtab.c (symbol_init_mangled_name): New function.
9198
dc672865
AC
91992002-03-27 Andrew Cagney <ac131313@redhat.com>
9200
9201 * valarith.c: Replace strerror with safe_strerror.
9202 * tracepoint.c: Ditto.
9203 * lin-lwp.c: Ditto.
9204 * go32-nat.c: Ditto.
9205 * inflow.c: Ditto.
9206 * gnu-nat.c: Ditto.
9207
d96429cd
AS
92082002-03-27 Andreas Schwab <schwab@suse.de>
9209
9210 * event-top.c (command_line_handler): Remove useless if.
9211
7e336ba1
AJ
92122002-03-27 Andreas Jaeger <aj@suse.de>
9213
9214 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9215 comment.
9216
de220d0f
ML
92172002-03-27 Michal Ludvig <mludvig@suse.cz>
9218
9219 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9220 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9221 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9222 (x86_64_linux_dr_get_status, supply_gregset),
9223 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9224 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9225 (x86_64_register_info_table): Add.
9226 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9227 (x86_64_register_raw_size, x86_64_register_virtual_type),
9228 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9229 general x86_64_register_info_table.
9230 (i386_gdbarch_init): gdbarch_register_bytes is now set
9231 dynamicaly during initialization.
9232 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9233 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 9234
0e98d0a7
DJ
92352002-03-27 Daniel Jacobowitz <drow@mvista.com>
9236
9237 * gdbserver/server.c (main): Call target_signal_to_host_p
9238 and target_signal_to_host on signals received from the remote.
9239 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9240 target_signal_from_host on signals sent to the remote.
9241 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9242 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9243
3130066b
DJ
92442002-03-27 Daniel Jacobowitz <drow@mvista.com>
9245
9246 * signals/signals.c: Include "server.h" in gdbserver build.
9247 (target_signal_from_name): Don't use STREQ.
9248 (_initialize_signals): Likewise. Don't include function in
9249 gdbserver build.
9250
9aedf4f4
DJ
92512002-03-27 Daniel Jacobowitz <drow@mvista.com>
9252
9253 * signals.c: Moved to...
9254 * signals/signals.c: Here.
7e336ba1 9255 * Makefile (signals.o): Update.
9aedf4f4 9256
3fa41cdb
JL
92572002-03-26 Jeff Law (law@redhat.com)
9258
9259 * somread.c (som_symtab_read): Remove some commented out code and
9260 updated related comments. Do not set the minimal symbol table to
9261 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9262 in a dynamic executable.
9263 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9264 where we are unable to find the minimal symbol for the given
9265 PC value.
9266
ee677e8d
MS
92672002-03-25 Jeff Law (law@redhat.com)
9268
9269 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9270
e76e1718
ML
92712002-03-25 Michal Ludvig <mludvig@suse.cz>
9272
9273 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9274
18a642a1
AC
92752002-03-23 Andrew Cagney <ac131313@redhat.com>
9276
9277 * command.h: Update copyright.
9278 (struct cmd_list_element): Replace definition with opaque
9279 declaration.
9280 (enum cmd_types): Document that it will eventually be moved to
9281 cli/cli-decode.h
9282 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9283 (MALLOCED_REPLACEMENT): Delete macro.
9284 * Makefile.in (cli_decode_h): Add $(command_h).
9285 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 9286 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
9287 * completer.c: Include "cli/cli-decode.h".
9288 * maint.c: Include "cli/cli-decode.h".
9289 * cli/cli-decode.h: Include "command.h".
9290 (enum command_class): Delete.
9291 (enum cmd_types): Comment out.
9292 (enum cmd_auto_boolean): Delete.
9293 (enum var_types): Delete.
9294
b2875cc0
AC
92952002-03-23 Andrew Cagney <ac131313@redhat.com>
9296
9297 * cli/cli-decode.c: Include "gdb_assert.h".
9298 (add_set_or_show_cmd): New static function.
9299 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9300 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9301 all fields, such as func, from the set command.
9302
3b45974e
AC
93032002-03-23 Andrew Cagney <ac131313@redhat.com>
9304
9305 * MAINTAINERS (sh-elf): Change warning flag to -w.
9306
823ca731
AC
93072002-03-23 Andrew Cagney <cagney@redhat.com>
9308
9309 * defs.h (error): Add printf format attribute.
9310 * thread-db.c (thread_from_lwp): Fix error format string.
9311 * stack.c (parse_frame_specification): Ditto.
9312 * cli/cli-decode.c (undef_cmd_error): Ditto.
9313 * scm-lang.c (scm_lookup_name): Ditto.
9314 * tracepoint.c (trace_error): Ditto.
9315 * remote-utils.c (usage): Ditto.
9316 * remote.c (compare_sections_command): Ditto.
9317 Fix PR gdb/328.
9318
0e101458
AC
93192002-03-22 Andrew Cagney <ac131313@redhat.com>
9320
9321 * gdbtypes.c (append_composite_type_field): New function.
9322 (init_composite_type): New function.
9323 * gdbtypes.h (append_composite_type_field): Declare.
9324 (init_composite_type): Ditto.
9325
8e0662df
EZ
93262002-03-22 Elena Zannoni <ezannoni@redhat.com>
9327
9328 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 9329 function.
8e0662df
EZ
9330 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9331 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9332 structure returning convention for SYSV ABI case, but not
9333 for GNU/Linux, FreeBSD, or NetBSD.
9334
3121eff0
DJ
93352002-03-22 Daniel Jacobowitz <drow@mvista.com>
9336
9337 * symtab.h (lookup_block_symbol): Add mangled_name argument
9338 to prototype.
9339
9340 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9341 with new mangled_name argument.
9342 * linespec.c (decode_line_1): Likewise.
9343 * valops (value_of_this): Likewise.
9344 * symtab.c (lookup_transparent_type): Likewise.
9345 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9346 (lookup_symbol): If we are given a mangled name, pass it down
9347 to lookup_symbol_aux.
9348 (lookup_block_symbol): If we are given a mangled name to check
9349 against, only return symbols which match it.
9350
349b409f
CF
93512002-03-22 Christopher Faylor <cgf@redhat.com>
9352
9353 * win32-nat.c (child_create_inferior): Check for proper shell to use
9354 here, in case the user changes it on the fly.
9355 (_initialize_inftarg): Remove shell path considerations.
9356
2a873819
EZ
93572002-03-21 Elena Zannoni <ezannoni@redhat.com>
9358
9359 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9360 for gdbarch_max_register_raw_size and max_register_virtual_size.
9361 Adjust copyright year.
9362
a1b9830c
DJ
93632002-03-21 Daniel Jacobowitz <drow@mvista.com>
9364
9365 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9366 in a function to cover the entire beginning of the function
9367 as well if it does not already.
9368
8b5790f2
TR
93692002-03-21 Tom Rix <trix@redhat.com>
9370
9371 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9372 (rs6000_ptrace64): Renamed from ptrace64.
9373
bdbe5747
MH
93742002-03-20 Martin M. Hunt <hunt@redhat.com>
9375
9376 * gdbserver/remote-utils.c (remote_open): Don't call
9377 getprotobyname, we're all using TCP here so just use
9378 IPPROTO_TCP.
7e336ba1 9379 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
9380
93812002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 9382
bdbe5747
MH
9383 * regcache.c (_initialize_regcache): No need to call
9384 build_regcache() at this time; it gets called whenever
9385 the gdbarch changes.
9386
7781cd62
DB
93872002-03-20 David O'Brien <obrien@FreeBSD.org>
9388
9389 * sparc-nat.c: Include sys/param.h where possible.
9390
f65ca430
DJ
93912002-03-20 Daniel Jacobowitz <drow@mvista.com>
9392
9393 Fix PR gdb/422.
9394 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9395 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9396 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9397 complex types.
9398 * stabsread.c (rs6000_builtin_type): Likewise.
9399 (read_sun_floating_type): Likewise.
9400
0c867556
PS
94012002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9402
9403 * stabsread.c (read_member_functions): Remove skip code for duplicate
9404 constructor/destructor methods. Use standard parsing for these
9405 methods and just do not chain them to the list of methods after
9406 parsing.
9407
12b9c64f
AO
94082002-03-19 Alexandre Oliva <aoliva@redhat.com>
9409
9410 * coffread.c: Remove redundant static declarations. Replace
9411 occurrences of `PTR' with `void *'.
9412 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9413 * top.h (quit_cover): Likewise.
9414 * defs.h (catch_errors): Likewise.
9415
349c5d5f
AC
94162002-03-18 Andrew Cagney <ac131313@redhat.com>
9417
9418 * defs.h (XMALLOC): Define.
9419 * gdb-events.sh (XMALLOC): Delete macro.
9420 * gdb-events.c, gdb-events.h: Regenerate.
9421 * gdbarch.sh (XMALLOC): Delete macro.
9422 * gdbarch.c: Regenerate.
9423 * serial.c (XMALLOC): Delete macro.
9424 * ui-file.c (XMALLOC): Ditto.
9425 * ser-unix.h (XMALLOC): Ditto.
9426 * sh-tdep.c (XMALLOC): Ditto.
9427 * ui-out.c (XMALLOC): Ditto.
9428 * utils.c (XMALLOC): Ditto.
9429 * i386-tdep.c (XMALLOC): Ditto.
9430 * gdb-events.c (XMALLOC): Ditto.
9431 * d10v-tdep.c (XMALLOC): Ditto.
9432 * cli-out.c (XMALLOC): Ditto.
9433
9434 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9435 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9436 * ui-file.c, ui-out.c: Ditto.
9437
7d0766f3
AC
94382002-03-18 Andrew Cagney <ac131313@redhat.com>
9439
9440 * command.h (struct cmd_list_element): Add field context.
9441 (set_cmd_context, get_cmd_context): Declare.
9442 * cli/cli-decode.h: Ditto.
9443 * cli/cli-decode.c (get_cmd_context): New function.
9444 (set_cmd_context): New function.
9445 (add_cmd): Initialize context.
9446 Part of fixing PR gdb/145 and PR gdb/146.
9447
5913bcb0
AC
94482002-03-17 Andrew Cagney <ac131313@redhat.com>
9449
1868c04e
AC
9450 * cli/cli-decode.c (cmd_type): New function.
9451 * command.h (cmd_type): Declare.
9452 * infrun.c (set_schedlock_func): Call function cmd_type.
9453 * kod.c (kod_set_os): Call cmd_type.
9454 * cris-tdep.c (cris_version_update): Use function cmd_type.
9455 (cris_mode_update, cris_abi_update): Ditto.
9456
5913bcb0
AC
9457 * command.h: (execute_cmd_post_hook): Declare.
9458 (execute_cmd_pre_hook): Declare.
9459 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9460 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9461 functions. Execute pre/post hook while ensuring that afterwords
9462 hook_in is cleared.
9463 * top.c (execute_command): Use execute_cmd_post_hook, and
9464 execute_cmd_pre_hook to execute pre/post commands.
9465 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9466 hook_stop_stub.
9467 (hook_stop_stub): Call execute_cmd_pre_hook.
9468
b51450c9
AC
94692002-03-17 Andrew Cagney <ac131313@redhat.com>
9470
9471 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9472 set'' and this leads to a core dump. Move xstrdup of
9473 operating_system to after check that it is not NULL.
9474
f66c9f11
AC
94752002-03-17 Andrew Cagney <ac131313@redhat.com>
9476
8e694ecf
AC
9477 * kod.c (kod_set_os): Remove unnecessary check that
9478 ``command->type'' is set_cmd.
9479
f66c9f11
AC
9480 * valprint.c (set_input_radix): Use input_radix.
9481 (set_output_radix): Use output_radix.
9482 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9483 isn't reverted.
9484
9d01611c
AC
94852002-03-16 Andrew Cagney <ac131313@redhat.com>
9486
9487 * value.h (struct value): Delete field ``substring_addr''. Change
9488 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
9489 force_core_addr_align and force_pointer_aligh.
9490
9491 * value.h (struct value): Fix typo in above change.
9d01611c 9492
4156bb53
PS
94932002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9494
9495 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9496 to fix internal_error from ``maintenance print architecture''.
9497
0e5e3ea6
PS
94982002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9499
9500 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9501 for gcc versions after gcc-2.8.1.
9502
9b013045
PS
95032002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9504
9505 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9506 for method resolution. Restore adjustment of ``this'' pointer after
9507 calling value_struct_elt, which was accidentally removed during the
9508 HP merge.
9509
376c9600
AC
95102002-03-15 Andrew Cagney <ac131313@redhat.com>
9511
9512 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9513 value_of_register.
9514 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9515 get_saved_register.
9516 * value.h (value_of_register): Update.
9517
a4db0f07
RH
95182002-03-14 Richard Henderson <rth@redhat.com>
9519
9520 * configure.in: Detect declaration for canonicalize_file_name.
9521 * utils.c (canonicalize_file_name): Declare, if needed.
9522 (gdb_realpath): Prefer realpath if available and usable.
9523 * config.in, configure: Rebuild.
9524
96383835
RH
95252002-03-14 Richard Henderson <rth@redhat.com>
9526
9527 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9528 a constant array bound.
9529
9530 * MAINTAINERS: Add myself to write-after-approval.
9531
75245b24
MS
95322002-03-14 Michael Snyder <msnyder@redhat.com>
9533
9534 * symfile.c (syms_from_objfile): Return immediately if no syms.
9535 (symbol_file_add): Return immediately if no syms.
9536 (find_sym_fns): Return immediately if no syms.
9537
e641a1ca
ML
95382002-03-13 Michal Ludvig <mludvig@suse.cz>
9539
9540 * gdbserver/remote-util.c (remote_open): Print remote-side's
9541 IP address when remote debugging over the network.
7e336ba1 9542
df08bfec
DB
95432002-03-12 David O'Brien <obrien@FreeBSD.org>
9544
9545 * config/sparc/fbsd.mh: Fix copyright.
9546 * config/sparc/fbsd.mt: Likewise.
9547
9a57864f
RE
95482002-03-11 Richard Earnshaw <rearnsha@arm.com>
9549
9550 * MAINTAINERS: Fix typo in name of gdb warnings option.
9551 (x86-64): Fix formating so that this can be parsed by awk.
9552
dd7bf85e
DJ
95532002-03-10 Daniel Jacobowitz <drow@mvista.com>
9554
9555 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9556 * defs.h: Include "gdb/signals.h".
9557 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9558
33a0a2ac
ML
95592002-03-10 Michal Ludvig <mludvig@suse.cz>
9560
9561 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 9562 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
9563 from x86-64-tdep.h
9564
dd824b04
DJ
95652002-03-10 Daniel Jacobowitz <drow@mvista.com>
9566 Don Howard <dhoward@redhat.com>
9567
9568 * mips-tdep.c (ST0_FR): Define.
9569 (mips2_fp_compat): New function, temporarily disabled.
9570 (mips_read_fp_register_single): New function.
9571 (mips_read_fp_register_double): New function.
9572 (mips_print_register): Use them.
9573 (do_fp_register_row): Likewise.
9574
6a41ff59
AC
95752002-03-09 Andrew Cagney <ac131313@redhat.com>
9576
9577 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9578 approval''.
9579
4ea09c10
PS
95802002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9581
9582 * stabsread.c (read_member_functions): Fix is_stub test for
9583 static member functions, improve comment.
9584
6ccc741d
RE
95852002-03-07 Richard Earnshaw <rearnsha@arm.com>
9586
9587 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9588 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9589 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9590 commands that set boolean values.
9591 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9592 (arm_rdi_resume): Always initialize PC.
9593 (arm_rdi_open): Don't use rslt as a boolean.
9594 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9595 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9596 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9597 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9598
438013df
AO
95992002-03-06 Alexandre Oliva <aoliva@redhat.com>
9600
9601 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9602 * configure: Rebuilt.
9603
70ed8774
SC
96042002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9605
9606 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9607 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9608
5ba2abeb
AC
96092002-03-06 Andrew Cagney <ac131313@redhat.com>
9610
9611 * cli/cli-decode.c (set_cmd_completer): New function.
9612 * command.h (set_cmd_completer): Declare.
9613 * cli/cli-decode.h (set_cmd_completer): Ditto.
9614
9615 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9616 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9617 * win32-nat.c (_initialize_inftarg): Ditto.
9618 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9619 * proc-api.c (_initialize_proc_api): Ditto.
9620 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9621 * source.c (_initialize_source): Ditto.
9622 * exec.c (_initialize_exec): Ditto.
9623 * solib.c (_initialize_solib): Ditto.
9624 * top.c (init_main): Ditto.
9625 * tracepoint.c (_initialize_tracepoint): Ditto.
9626 * symfile.c (_initialize_symfile): Ditto.
9627 * printcmd.c (_initialize_printcmd): Ditto.
9628 * infcmd.c (_initialize_infcmd): Ditto.
9629 * corefile.c (_initialize_core): Ditto.
9630
f779ca99
AC
96312002-03-05 Andrew Cagney <ac131313@redhat.com>
9632
9633 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9634
01a3934b
AC
96352002-03-05 Andrew Cagney <ac131313@redhat.com>
9636
9637 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9638
37057839
AC
96392002-03-05 Andrew Cagney <ac131313@redhat.com>
9640
9641 * NEWS: Update headings, 5.2 has branched.
9642
c6ecbae5
DJ
96432002-03-04 Daniel Jacobowitz <drow@mvista.com>
9644
9645 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9646 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9647 (register_addr, REGISTER_RAW_SIZE): Likewise.
9648 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9649 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9650
e9f30c21
ML
96512002-03-03 Michal Ludvig <mludvig@suse.cz>
9652
9653 * MAINTAINERS (x86-64): Add myself.
9654 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9655 changed value_ptr -> struct value *
9656
54394ac3
DB
96572002-03-01 David O'Brien <obrien@FreeBSD.org>
9658
9659 * configure.host (sparc64-*-freebsd): Add.
9660 * configure.tgt: Likewise.
9661 * config/sparc/fbsd.mh: New file.
9662 * config/sparc/fbsd.mt: Likewise.
9663 * config/sparc/nm-fbsd.h: Likewise.
9664 * config/sparc/tm-fbsd.h: Likewise.
9665
bfe95955
DJ
96662002-03-01 Daniel Jacobowitz <drow@mvista.com>
9667
9668 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9669 regformats/reg-s390x.dat.
9670
f33c6cbf
AC
96712002-03-01 Andrew Cagney <ac131313@redhat.com>
9672
9673 * utils.c: Add FIXME explaining true/false problem.
9674
5ecaa7dd
AC
96752002-02-28 Andrew Cagney <ac131313@redhat.com>
9676
9677 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9678
2a251cc2
MC
96792002-02-28 Michael Chastain <mec@shout.net>
9680
9681 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9682
6a8031a3 96832002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
9684
9685 * gdbserver/linux-s390-low.c: New file.
9686 * regformats/reg-s390.dat: New file.
9687 * regformats/reg-s390x.dat: New file.
9688 * gdbserver/configure.srv: Add S/390.
9689 * gdbserver/Makefile.in: Add S/390.
9690 * configure.tgt: Enable gdbserver for S/390.
9691
ac469903
EZ
96922002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9693
9694 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9695 first line of the doc string for "info dos", except at the end of
9696 the sentence, since the short help stops at the first period.
9697
985cb1a3
JM
96982002-02-28 Jason Merrill <jason@redhat.com>
9699
9700 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9701
c570663e
FF
97022002-02-27 Fred Fish <fnf@redhat.com>
9703
9704 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9705 comment (dumy -> dummy).
9706
43630227
PS
97072002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9708
9709 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9710
b84911e8
RB
97112002-02-27 Rodney Brown <rbrown64@csc.com.au>
9712
9713 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9714
58caa3dc
DJ
97152002-02-27 Daniel Jacobowitz <drow@mvista.com>
9716
9717 * gdbserver/acconfig.h: New file.
9718 * gdbserver/i387-fp.c: New file.
9719 * gdbserver/i387-fp.h: New file.
9720 * gdbserver/linux-x86-64.c: New file.
9721 * regformats/reg-x86-64.dat: New file.
9722 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9723 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9724 * gdbserver/configure.in: Add support for regsets.
9725 * gdbserver/config.in: Regenerate.
9726 * gdbserver/configure: Regenerate.
9727 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9728 * gdbserver/linux-low.h: New file.
9729 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9730 for regsets.
9731 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9732 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9733 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9734 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9735 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9736 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9737 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9738 "i387-fp.h". Add PTRACE_GETREGS and friends.
9739 * gdbserver/regcache.c (supply_register): New function.
9740 (supply_register_by_name): New function.
9741 (collect_register): New function.
9742 (collect_register_by_name): New function.
9743
93652174
DJ
97442002-02-27 Daniel Jacobowitz <drow@mvista.com>
9745
9746 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9747 (config.status): Add configure.srv dependency.
9748 (server_h): Add config.h dependency.
9749
a02e4a61
DJ
97502002-02-27 Daniel Jacobowitz <drow@mvista.com>
9751
9752 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9753 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9754 * gdbserver/configure.srv: Change i386-*-linux* to use
9755 reg-i386-linux.o.
9756
ce0eebec
AC
97572002-02-26 Andrew Cagney <ac131313@redhat.com>
9758
9759 * x86-64-tdep.c: Re-indent. Update copyright date.
9760
82dbc5f7
AC
97612002-02-26 Andrew Cagney <ac131313@redhat.com>
9762
9763 From Michal Ludvig <mludvig@suse.cz>:
9764 * x86-64-tdep.c (value.h): Delete.
9765 (gdb_assert.h): Include.
9766 (x86_64_register_convert_to_virtual,
9767 x86_64_register_convert_to_raw ): Add check which lets only
9768 floating-point values to be converted.
9769 (value_push): Delete.
9770 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9771 (i386_gdbarch_init): Number of register_bytes fixed.
9772
e4621584
AC
97732002-02-26 Andrew Cagney <ac131313@redhat.com>
9774
9775 * MAINTAINERS: Add x86-64 target.
9776
81a9a963
AC
97772002-02-26 Andrew Cagney <ac131313@redhat.com>
9778
9779 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9780 * osfsolib.c (solib_map_sections): Ditto.
9781 * irix5-nat.c (solib_map_sections): Ditto.
9782 * corelow.c (gdb_check_format): Ditto.
9783 * symfile.c (symfile_bfd_open): Ditto.
9784 * solib.c (solib_map_sections): Ditto.
9785 Fix PR gdb/354.
7e336ba1 9786
0f017ab9
AC
97872002-02-26 Andrew Cagney <ac131313@redhat.com>
9788
9789 * remote.c (_initialize_remote): By default, disable ``e'' and
9790 ``E'' step out-of-range packets.
9791
75738c29
AS
97922002-02-26 Andreas Schwab <schwab@suse.de>
9793
9794 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9795 m68k_linux_frame_saved_pc.
9796 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9797 in_sigtramp.
9798 (SIGCONTEXT_PC_OFFSET): Remove.
9799 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9800 m68k_linux_sigtramp_saved_pc): New functions.
9801 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9802 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9803 (UCONTEXT_PC_OFFSET): Define.
9804 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9805 non-RT and RT signal trampolines.
9806
7e8ed687
RE
98072002-02-26 Richard Earnshaw <rearnsha@arm.com>
9808
9809 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9810 (TARGET_NBPG, STACK_END_ADDR): Delete
9811 (VARIABLES_INSIDE_BLOCK): Delete.
9812
6972bc8b
AC
98132002-02-25 Andrew Cagney <ac131313@redhat.com>
9814
9815 * utils.c (perror_with_name): Make string parameter constant.
9816 (print_sys_errmsg): Ditto.
9817 (query): Ditto.
9818 * defs.h (perror_with_name): Update.
9819 (print_sys_errmsg): Update.
9820 (query): Update.
9821
aa32f823
DJ
98222002-02-25 Daniel Jacobowitz <drow@mvista.com>
9823
9824 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9825 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9826
19caaa45
PS
98272002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9828
9829 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9830 if it already matches the current architecture from the exec file.
9831 Include arch-utils.h for gdbarch_info_init prototype.
9832 * Makefile.in (rs6000-nat.o): Update dependencies.
9833
d951901f
EZ
98342002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9835
9836 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9837 list of exported variables.
9838
7ea81414
DJ
98392002-02-24 Daniel Jacobowitz <drow@mvista.com>
9840
9841 * gdbserver/configure.srv: New file.
9842 * gdbserver/configure.in: Use configure.srv instead
9843 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9844 from it.
9845 * gdbserver/configure: Regenerated.
9846 * gdbserver/terminal.h: New file.
9847 * gdbserver/Makefile.in: Update for configure changes. Remove
9848 more unneeded include paths.
9849
080fe24b
AC
98502002-02-24 Andrew Cagney <ac131313@redhat.com>
9851
9852 From wiz at danbala:
9853 * config/sparc/tm-sp64.h: Fix grammar and typos.
9854 Fix PR gdb/287.
9855
8605d56e
AC
98562002-02-24 Andrew Cagney <ac131313@redhat.com>
9857
9858 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9859 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9860 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9861 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9862 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9863 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9864 * s390-tdep.c: Ditto.
92362027
AC
9865 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9866 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9867 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9868 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9869 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9870 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9871 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9872 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9873 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9874 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9875 Fix PR gdb/378.
7e336ba1 9876
8ed32cc0
AC
98772002-02-23 Andrew Cagney <ac131313@redhat.com>
9878
a3007b6f
AC
9879 * lin-thread.c: Delete file.
9880 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9881 to gdb_proc_service.h.
9882 * configure: Re-generate.
9883
50a9e2f1
AC
9884 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9885 * serial.c (serial_open): Delete check for "ocd".
9886 Fix PR gdb/349.
9887
8b6e7932
AC
9888 * Makefile.in (linux-thread.o): Delete target.
9889 * linux-thread.c: Delete file.
9890
d155c46b
AC
9891 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9892 renamed SH files to be consistent.
9893
8ed32cc0
AC
9894 * symtab.c (sort_search_symbols): Use xfree.
9895
0e18d038
RE
98962002-02-23 Richard Earnshaw <rearnsha@arm.com>
9897
9898 * arm-linux-tdep.c (arm_linux_init_abi): Register
9899 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9900 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9901 definition with undef, since we don't want the sysvr4 definition.
9902 (SKIP_TRAMPOLINE_CODE): Likewise.
9903
27aac7ff
AC
99042002-02-23 Andrew Cagney <ac131313@redhat.com>
9905
9906 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9907
9908 * configure.in: (AC_CHECK_FUNCS) Added test for
9909 canonicalize_file_name Regenerated.
9910 * config.in, configure: Regenerated.
9911 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9912 defined use canonicalize_file_name.
7e336ba1 9913
65a6e0ee
MC
99142002-02-23 Michael Chastain <mec@shout.net>
9915
9916 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9917
47b95330
AC
99182002-02-23 Andrew Cagney <ac131313@redhat.com>
9919
9920 * README: Remove references to cygnus.com.
9921 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9922 dot com'' form. Remove references to cygnus.com and sourceware.
9923
696f451b
AC
99242002-02-23 Andrew Cagney <ac131313@redhat.com>
9925
9926 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9927 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9928 1003.1-2001 no longer allows "head -1".
9929 * gdb/Makefile.in (version.c): Likewise.
9930 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9931 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9932 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9933
bbaca940
AC
99342002-02-23 Andrew Cagney <ac131313@redhat.com>
9935
9936 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9937 * command.h (cmd_cfunc_eq): Declare.
9938 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9939
9940 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9941 ``struct cmd_list_element *''.
9942 * cli/cli-cmds.c (is_complete_command): Update. Use
9943 cmd_cfunc_eq.
9944 * top.c (execute_command): Pass the command to
9945 is_complete_command.
9946 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9947
b8b8b047
AC
99482002-02-23 Andrew Cagney <ac131313@redhat.com>
9949
9950 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9951 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9952 architecture defines.
9953 * s390-tdep.c (s390_gdbarch_init): Likewise.
9954
19d3fc80
RE
99552002-02-23 Richard Earnshaw <rearnsha@arm.com>
9956
9957 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9958 (arm_linux_push_arguments): Likewise.
9959 (arm_linux_init_abi): Register them. Also register linux-specific
9960 call_dummy_words.
9961 (find_minsym_and_objfile): Use strcmp, not STREQ.
9962 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9963 (arm_linux_call_dummy_words): Delete declaration.
9964 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9965 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9966 declarations.
9967 (LOWEST_PC): Delete.
9968
3ab13650
PS
99692002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9970
9971 * maint.c (print_section_info): Do not prepend `0x' to filepos
9972 output, it will be handled by local_hex_string_custom.
9973
19d3fc80 99742002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9975
9976 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9977 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9978 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9979
d85a5daf
JB
99802002-02-22 Jim Blandy <jimb@redhat.com>
9981
9982 Indicate that the bcache functions don't change the strings
9983 they're passed.
9984 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9985 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9986
eeb25b8a
PM
99872002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9988
9989 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9990
6badb179
CF
99912002-02-21 Christopher Faylor <cgf@redhat.com>
9992
9993 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9994 find the complete path to a loaded DLL.
9995
e8717518
FF
99962002-02-21 Fred Fish <fnf@redhat.com>
9997
9998 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9999 that marks the end of the range of a function, enter a line number
10000 entry that has a line number of zero and a PC offset that matches
10001 the end of the function. This starts a range of PC's for which no
10002 line number information is known.
10003 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10004 PC's for which no line number info is found (line number is zero)
10005 then we didn't find any valid line information.
10006 * symtab.h: Document use of zero line number entry.
10007
9abe5450
EZ
100082002-02-21 Elena Zannoni <ezannoni@redhat.com>
10009
10010 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10011 (have_ptrace_getvrregs): Define for run time checks.
10012 (gdb_vrregset_t): New type for Altivec register handling.
10013 (fetch_register, store_register): Fetch/store altivec register
10014 when needed.
10015 (fetch_altivec_register, store_altivec_register): New functions.
10016 (supply_vrregset, fill_vrregset): New functions.
10017 (fetch_altivec_registers, store_altivec_registers): New functions.
10018 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10019 registers as well.
10020
aaa38bb5
AJ
100212002-02-21 Jiri Smid <smid@suse.cz>
10022
10023 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10024
b34db576
RE
100252002-02-21 Richard Earnshaw <rearnsha@arm.com>
10026
10027 * Makefile.in (armnbsd-nat.o): Update dependencies.
10028 * armnbsd-nat.c (supply_gregset): New function. Common code to
10029 supply the integer register set.
10030 (supply_fparegset): New function. Similar for FPA registers.
10031 (fetch_regs, fetch_fp_regs): Use them.
10032 (fetch_core_registers): Likewise.
10033 (fetch_elfcore_registers): New function.
10034 (arm_netbsd_elfcore_fns): New core-file type specification.
10035 (_initialize_arm_netbsd_nat): Register it.
10036
3e56fc4b
RE
100372002-02-21 Richard Earnshaw <rearnsha@arm.com>
10038
10039 * armnbsd-nat.c: Include gdbcore.h.
10040 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10041 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10042 'void' to declaration, to shut up ARI.
10043 (fetch_core_registers): Make static. Rewrite using supply_register.
10044 (arm_netbsd_core_fns): New core-file type specification.
10045 (_initialize_arm_netbsd_nat): New function.
10046
097f6b0b
CF
100472002-02-21 Christopher Faylor <cgf@redhat.com>
10048
10049 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10050 value.
10051
c914e0cc
CF
100522002-02-20 Christopher Faylor <cgf@redhat.com>
10053
10054 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10055 fails.
10056
385fa495
DJ
100572002-02-20 Daniel Jacobowitz <drow@mvista.com>
10058
10059 * jv-exp.y (parse_number): Change type of implicit longs
10060 to builtin_type_uint64.
10061
e5f1222d
DJ
100622002-02-20 Daniel Jacobowitz <drow@mvista.com>
10063
10064 * gdbserver/linux-low.c (mywait): Change argument to waitpid
10065 to be an integer instead of a `union wait'.
10066
75c9abc6
DJ
100672002-02-20 Daniel Jacobowitz <drow@mvista.com>
10068
10069 * mips-linux-nat.c: Call the operating system GNU/Linux.
10070 * mips-linux-tdep.c: Likewise.
10071 * mips-tdep.c: Likewise.
10072
551792a5
DJ
100732002-02-20 Daniel Jacobowitz <drow@mvista.com>
10074
10075 Fix PR gdb/265.
10076 * jv-exp.y (parse_number): Handle 64-bit integers.
10077
ee6e2b82
DJ
100782002-02-20 Daniel Jacobowitz <drow@mvista.com>
10079
10080 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
10081 AC_STDC_HEADERS to AC_HEADER_STDC.
10082 * gdbserver/configure: Regenerated.
10083
a48442a0
RE
100842002-02-20 Richard Earnshaw <rearnsha@arm.com>
10085
10086 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10087 is defined.
10088 * sparc-tdep.c (get_longjmp_target): Likewise.
10089
fe419ffc
RE
100902002-02-20 Richard Earnshaw <rearnsha@arm.com>
10091
10092 * News: Add news about ARM and Multi-arch. Mention the new target
10093 arm*-*-netbsd*.
10094
5832ed7e
JB
100952002-02-19 Jim Blandy <jimb@redhat.com>
10096
10097 * stabsread.c (error_type_complaint): Improve error message.
10098
84563040
DJ
100992002-02-19 Daniel Jacobowitz <drow@mvista.com>
10100
10101 * gdbserver/README: Update documentation.
10102 * gdbserver/configure.in: Update configury to match documentation.
10103 * gdbserver/Makefile.in: Likewise.
10104 * gdbserver/configure: Regenerated.
10105 * gdbserver/aclocal.m4: New file, generated by aclocal.
10106 * gdbserver/config.in: New file, generated by autoheader.
10107
375fd65b
RE
101082002-02-19 Richard Earnshaw <rearnsha@arm.com>
10109
10110 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10111 armnbsd-nat.c.
10112
08216dd7
RE
101132002-02-19 Richard Earnshaw <rearnsha@arm.com>
10114
10115 * arm-tdep.h (enum arm_float_model): New enum.
10116 (struct gdbarch_tdep): Add fp_model.
10117 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
10118 up floating-point conversions until we know the floating-point model
10119 in use by the inferior. Don't complain about being unable to
10120 determine the ABI of the inferior when we don't have one.
10121 (arm_extract_return_value): Support different floating-point models.
10122 (arm_store_return_value): Likewise.
aaa38bb5 10123 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
10124 ARM_FLOAT_SOFT.
10125 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10126
65d6d66a
PS
101272002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10128
10129 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10130 of ``current_gdbarch''.
10131
47221191
RE
101322002-02-19 Richard Earnshaw <rearnsha@arm.com>
10133
10134 * armnbsd-nat.c : ANSIfy all function declarations.
10135 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10136 (fetch_inferior_registers): Re-implement in terms of above.
10137 (store_register, store_regs, store_fp_register, store_fp_regs): New.
10138 (store_inferior_registers): Re-implement in terms of above.
10139
fdf39c9a
RE
101402002-02-19 Richard Earnshaw <rearnsha@arm.com>
10141
aaa38bb5 10142 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
10143 kernel.
10144 * arm-linux-tdep.c: Likewise.
10145 * config/arm/tm-linux.h: Likewise.
10146
93247f88
RE
101472002-02-19 Richard Earnshaw <rearnsha@arm.com>
10148
10149 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10150 * config/arm/nbsd.mt (TM_FILE): Delete.
10151 * config/arm/tm-nbsd.h: Delete.
10152
d7b486e7
RE
101532002-02-19 Richard Earnshaw <rearnsha@arm.com>
10154
10155 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10156 Initialize CALL_DUMMY_LENGTH.
10157
41d39a95
RE
101582002-02-19 Richard Earnshaw <rearnsha@arm.com>
10159
10160 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10161 function.
10162 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 10163 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
10164 defines one thing and that is incorrect for this port.
10165 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10166
e1195560
PM
101672002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10168
10169 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10170
c1748f97
PM
101712002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10172
10173 * win32-nat.c (display_selector): New function. Displays information
10174 about the information returned by GetThreadSelectorEntry API function.
10175 (display_selectors): New function. Displays the infomation of
10176 the selector given as argument, or of CS, DS ans FS selectors
10177 if no argument is given.
10178 ( _initialize_inftarg): Add "w32" as info prefix command.
10179 Add "info w32 selector" as command calling display_selectors.
10180
e41e6bbf
PM
101812002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10182
10183 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10184 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10185 if not defined.
10186
0d3a9f48
RE
101872002-02-18 Richard Earnshaw <rearnsha@arm.com>
10188
10189 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10190
3fb4b924
RE
101912002-02-18 Richard Earnshaw <rearnsha@arm.com>
10192
10193 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10194 (arm_fix_call_dummy): Call it.
10195 (arm_call_dummy_breakpoint_offset): Delete.
10196 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10197 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10198
7f55af32
AC
101992002-02-18 Andrew Cagney <ac131313@redhat.com>
10200
10201 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10202 Default to func_frame_chain_valid.
10203 * gdbarch.h, gdbarch.c: Re-generate.
10204 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10205
05f13b9c
EZ
102062002-02-18 Elena Zannoni <ezannoni@redhat.com>
10207
10208 * ppc-linux-nat.c: Update copyright.
10209 (fetch_register, store_register): Add tid parameter, don't compute
10210 tid here.
10211 (fetch_ppc_registers, store_ppc_registers): Add tid
10212 parameter. Pass it along to callees.
10213 (fetch_inferior_registers, store_inferior_registers): Compute tid
10214 here, and pass it to calleed functions.
10215 (fill_gregset, supply_fpregset): Clean up formatting.
10216
d7afb4c9
RE
102172002-02-18 Richard Earnshaw <rearnsha@arm.com>
10218
10219 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10220 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10221
9df628e0
RE
102222002-02-18 Richard Earnshaw <rearnsha@arm.com>
10223
10224 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10225 * gdbarch.c gdbarch.h: Regenerate.
10226 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10227 function.
10228 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10229 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10230 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10231
10232 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10233 * arm-tdep.c (arm_get_longjmp_target): New function.
10234 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10235 this to a positive value register arm_get_longjmp_target as the
10236 longjmp handler.
10237 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10238 (arm_linux_init_abi): Set up longjmp description in tdep.
10239 * armnbsd-nat.c (get_longjmp_target): Delete.
10240 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10241 description in tdep.
10242 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10243 (get_longjmp_target): Delete declaration.
10244 (GET_LONGJMP_TARGET): Delete.
10245 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10246 (GET_LONGJMP_TARGET): Delete.
10247
57bc8964
KB
102482002-02-17 Kevin Buettner <kevinb@redhat.com>
10249
10250 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10251 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10252 of ``current_gdbarch''.
10253
83d31a92
TT
102542002-02-17 Tom Tromey <tromey@redhat.com>
10255
10256 * cli/cli-cmds.c (compare_strings): New function.
10257 (complete_command): Only print each unique item once.
10258 * completer.h (complete_line): Declare.
10259 * completer.c (complete_line): New function.
10260 (line_completion_function): Use it.
10261
17ef5d92
AC
102622002-02-16 Andrew Cagney <ac131313@redhat.com>
10263
10264 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10265 * gdbarch.h, gdbarch.c: Re-generate.
10266
491b8946
DJ
102672002-02-16 Daniel Jacobowitz <drow@mvista.com>
10268
10269 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10270
102712002-02-16 Daniel Jacobowitz <drow@mvista.com>
10272
10273 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10274 * valops.c (value_arg_coerce): Don't take the address of a reference
10275 to convert an argument to a reference.
10276
dfe7f3ac
CF
102772002-02-15 Christopher Faylor <cgf@redhat.com>
10278
10279 * win32-nat.c (get_image_name): New function.
10280 (handle_load_dll): Use get_image_name function.
10281 (get_child_debug_event): Avoid registering debug events until possibly
10282 execed process is started.
10283 (child_create_inferior): Allow invocation via shell so that command
10284 line redirection, etc. works ok.
10285 (_initialize_inftarg): Add new command: "set shell" to control whether
10286 a shell is used to start a process.
10287
1d33e73a
DJ
102882002-02-15 Daniel Jacobowitz <drow@mvista.com>
10289
10290 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10291 instead of find_register_by_number.
10292 (cannot_store_register): Likewise.
10293
48cd0caa
PM
102942002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10295
aaa38bb5 10296 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
10297 fprintf_unfiltered (gdb_stderr, ...).
10298
8656e7d8
DJ
102992002-02-15 Daniel Jacobowitz <drow@mvista.com>
10300
10301 * gdbserver/gdbserver.1: Document --attach.
10302
66e810cd
RE
103032002-02-15 Richard Earnshaw <rearnsha@arm.com>
10304
10305 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10306 descriptions.
10307 * arm-tdep.c (arm_default_arm_le_breakpoint)
10308 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10309 (arm_default_thumb_be_breakpoint): New. Initialize them from
10310 traditional breakpoint defines.
10311 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10312 (arm_gdbarch_init): Initialize new breakpoint variables.
10313 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10314 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10315 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10316 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10317 code out to ...
10318 (arm_netbsd_init_abi_common): ... here; new function.
10319 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10320 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10321 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10322 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10323
97e03143
RE
103242002-02-15 Richard Earnshaw <rearnsha@arm.com>
10325
10326 * arm-tdep.h (enum arm_abi): New enum.
10327 (struct gdbarch_tdep): New structure.
10328 (LOWEST_PC): Provide a default.
10329 (arm_gdbarch_register_os_abi): Declare new function.
10330 * arm-tdep.c (arm_abi_names): New array.
10331 (process_note_abi_tag_sections): New function.
10332 (get_elfosabi): New function.
10333 (arm_gdbarch_register_os_abi): New function.
10334 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10335 support for that ABI has been built in, then call the appropriate
10336 configuration routine. Use gdbarch_num_regs() to get the number
10337 of registers.
10338 (arm_dump_tdep): New function.
10339 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10340 place-holder functions.
10341 (_initialize_arm_tdep): Register them.
10342 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10343
10344 * armnbsd-tdep.c: New file.
10345 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10346 * config/arm/nbsd.mt (TDEPFILES): Add it.
10347 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10348
10349 * armnbsd-nat.c: Include regcache.h.
10350 * Makefile.in (armnbsd-nat.o): Update dependency list.
10351
10352 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10353
ad68be46
DJ
103542002-02-14 Daniel Jacobowitz <drow@mvista.com>
10355
10356 * gdbserver/Makefile.in: Fix typos in target rules.
10357
003d6d1d
DJ
103582002-02-14 Daniel Jacobowitz <drow@mvista.com>
10359
aaa38bb5 10360 Fix part of PR gdb/267.
003d6d1d
DJ
10361 * linespec.c (find_methods): Handle constructors specially for now.
10362
6b230f1b
CV
103632002-02-14 Corinna Vinschen <vinschen@redhat.com>
10364
10365 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10366 handling.
10367 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10368 standard_coerce_float_to_double().
10369
1ea98d12
CF
103702002-02-14 Christopher Faylor <cgf@redhat.com>
10371
10372 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10373 GDBINIT_FILENAME.
10374
dd47e6fd
EZ
103752002-02-14 Elena Zannoni <ezannoni@redhat.com>
10376
10377 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10378 find_variant_by_name, because it confuses the multiarch
10379 framework. Return NULL if there isn't an architecture with the
10380 user supplied name, instead of forcing a different one without
10381 recording the change with the multiarch machinery.
10382 (find_variant_by_name): Delete.
10383
d7e39b9e
PS
103842002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10385
10386 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10387 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10388
76e42a4f
MH
103892002-02-13 Martin M. Hunt <hunt@redhat.com>
10390
aaa38bb5 10391 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
10392 print_frame_info_listing_hook, set current_source_symtab.
10393
0a30fbc4
DJ
103942002-02-14 Daniel Jacobowitz <drow@mvista.com>
10395
10396 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10397 and remove unused $(INCLUDE_DIR).
10398 Add regcache.c to OBS.
10399 Add generated register protocol files to clean target.
10400 Update dependencies for new objects, obsolete old target code.
10401
10402 * gdbserver/linux-low.c: Remove all platform-specific code to
10403 new files. Remove various dead code. Update to use regcache
10404 functionality.
10405 * gdbserver/remote-utils.c (fromhex): Add return statement
10406 to quiet warning.
10407 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10408 constant.
10409 (input_interrupt): Add integer parameter to match prototype
10410 of a signal handler.
10411 (outreg): Use register_data ().
10412 (prepare_resume_reply): Use gdbserver_expedite_regs.
10413 * gdbserver/server.c (main): Dynamically allocate own_buf because
10414 PBUFSIZ is no longer constant. Use registers_to_string () and
10415 registers_from_string ().
10416 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10417 for error (), fatal (), and warning (). Update definition of
10418 PBUFSIZ to use regcache functionality. Add include guard.
10419 * gdbserver/utils.c (fatal): Add missing ``const''.
10420 (warning): New function.
10421
10422 * regformats/regdat.sh: Include "regcache.h" in generated files.
10423 Provide init_registers () function.
10424 * regformats/regdef.h: Add prototype for set_register_cache ().
10425 Add include guard.
10426
10427 * gdbserver/linux-arm-low.c: New file.
10428 * gdbserver/linux-i386-low.c: New file.
10429 * gdbserver/linux-ia64-low.c: New file.
10430 * gdbserver/linux-m68k-low.c: New file.
10431 * gdbserver/linux-mips-low.c: New file.
10432 * gdbserver/linux-ppc-low.c: New file.
10433 * gdbserver/linux-sh-low.c: New file.
10434
10435 * gdbserver/regcache.c: New file.
10436 * gdbserver/regcache.h: New file.
10437
10438 * gdbserver/low-linux.c: Removed obsolete file.
10439
4cc841d0
DJ
104402002-02-14 Daniel Jacobowitz <drow@mvista.com>
10441
10442 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10443 * config/i386/linux.mt: Likewise.
10444 * config/ia64/linux.mt: Likewise.
10445 * config/m68k/linux.mh: Likewise.
10446 * config/powerpc/linux.mh: Likewise.
10447 * config/mips/linux.mt: Likewise.
10448
10449 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10450
10451 * config/i386/i386lynx.mh: Mark gdbserver variables
10452 as (currently) obsolete for this target.
10453 * config/i386/nbsd.mt: Likewise.
10454 * config/i386/nbsdelf.mt: Likewise.
10455 * config/m32r/m32r.mt: Likewise.
10456 * config/m68k/m68klynx.mh: Likewise.
10457 * config/m68k/nbsd.mt: Likewise.
10458 * config/m68k/sun3os4.mh: Likewise.
10459 * config/mips/vr5000.mt: Likewise.
10460 * config/ns32k/nbsd.mt: Likewise.
10461 * config/pa/hppabsd.mh: Likewise.
10462 * config/pa/hppaosf.mh: Likewise.
10463 * config/powerpc/nbsd.mt: Likewise.
10464 * config/rs6000/rs6000lynx.mh: Likewise.
10465 * config/s390/s390.mt: Likewise.
10466 * config/s390/s390x.mt: Likewise.
10467 * config/sparc/sparclynx.mh: Likewise.
10468 * config/sparc/sun4os4.mh: Likewise.
10469 * config/i386/x86-64linux.mt: Likewise.
10470 * config/sparc/linux.mh: Likewise.
10471
a85f51e7
DJ
104722002-02-14 Daniel Jacobowitz <drow@mvista.com>
10473
10474 * configure.tgt: Configure gdbserver only for known working
10475 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10476 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10477 SUBDIRS if it is configured. Update comment for ${nativefile}.
10478 * configure: Regenerated.
10479
65554fef
MS
104802002-02-13 Michael Snyder <msnyder@redhat.com>
10481
670a52db
MS
10482 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10483
6dbdc4a3
MS
10484 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10485 (default_gcore_mach): Just return 0, work around a problem in bfd.
10486 (default_gcore_target): OK to return NULL if exec_bfd is null.
10487 (make_mem_sec): Use a cast, avoid a warning.
10488
10489 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 10490 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
10491 sizeof (host pointer) != sizeof (target pointer)).
10492 (procfs_make_note_section): Avoid overflow in psargs string.
10493
aaa38bb5 10494 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
10495 implementation return an error.
10496
104972002-02-13 Rodney Brown <rbrown64@csc.com.au>
10498
10499 * procfs.c (procfs_make_note_section): Provide a default definition
10500 (for alpha-dec-osf4.0f). Fix typos.
10501
1e4d76e7
EZ
105022002-02-13 Elena Zannoni <ezannoni@redhat.com>
10503
10504 * linux-proc.c: Add include of regcache.h.
10505 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10506
b6d1a1d5
AC
105072002-02-13 Andrew Cagney <ac131313@redhat.com>
10508
10509 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
10510 * memattr.c (create_mem_region): Disallow useless empty region.
10511 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 10512 non-overlapping.
b6d1a1d5 10513
6c6ea35e
MC
105142002-02-13 Michael Chastain <mec@shout.net>
10515
10516 * defs.h: Kill CONST_PTR.
10517 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10518 * c-lang.c (c_builtin_types): Likewise.
10519 * ch-lang.c (ch_builtin_types): Likewise.
10520 * f-lang.c (f_builtin_types): Likewise.
10521 * language.c (unknown_builtin_types): Likewise.
10522 * m2-lang.c (m2_builtin_types): Likewise.
10523 * p-lang.c (pascal_builtin_types): Likewise.
10524 * scm-lang.c (c_builtin_types): Likewise.
10525
3e0b0f48
KS
105262002-02-13 Keith Seitz <keiths@redhat.com>
10527
10528 * arm-tdep.h (arm_get_next_pc): Add declaration.
10529
67255d04
RE
105302002-02-13 Richard Earnshaw <rearnsha@arm.com>
10531
10532 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10533 with other related struct-returning functions.
10534 (arm_extract_struct_value_address): New function.
10535 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10536 initialize float_format, double_format and long_double_format as
10537 appropriate to the endianness of the target.
10538 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10539 (arm_use_struct_convention): Delete declaration.
10540 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10541
079777f6
KS
105422002-02-13 Keith Seitz <keiths@redhat.com>
10543
10544 * defs.h (core_addr_to_string_nz): New function.
10545
34588f23
MK
105462002-02-13 Mark Kettenis <kettenis@gnu.org>
10547
10548 Apply missing bits of 2002-01-15 patch.
10549 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10550 (fill_fpregset): Use i387_fill_fsave.
10551
49b563f9
KS
105522002-02-12 Keith Seitz <keiths@redhat.com>
10553
49b563f9
KS
10554 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10555 (core_addr_to_string_nz): New function.
10556
aeb98c60
RE
105572002-02-11 Richard Earnshaw <rearnsha@arm.com>
10558
10559 * arm-linux-nat.c: Really include arm-tdep.h.
10560 * config/arm/tm-linux.h (struct type, struct value): Declare.
10561
65554fef
MS
105622002-02-11 Michael Snyder <msnyder@redhat.com>
10563
10564 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10565 (gcore section): Ifdef for Solaris and Unixware only.
10566 (procfs_do_thread_registers): Unixware needs one lwpstatus
10567 per thread (not one prstatus or pstatus).
10568 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10569 not over all gdb threads. For unixware, call elfcore_write_pstatus
10570 once before iterating over threads.
10571
34e8f22d
RE
105722002-02-11 Richard Earnshaw <rearnsha@arm.com>
10573
10574 * arm-tdep.h: New file.
10575 * arm-tdep.c: Include arm-tdep.h.
10576 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10577 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10578 (arm_print_float_info, arm_register_type, convert_to_extended)
10579 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10580 (arm_extract_return_value, arm_register_name): Make static.
10581 (arm_software_single_step): Similarly. Fix types in declaration.
10582 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10583 (arm_store_return_value, arm_store_struct_return): New functions.
10584 (arm_gdbarch_init): Register the above functions. Also register
10585 call_dummy_start_offset, sizeof_call_dummy_words,
10586 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10587 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 10588 max_register_virtual_size, register_size. Set up
34e8f22d
RE
10589 prologue_cache.saved_regs here, rather than ...
10590 (_initialize_arm_tdep): ... here.
10591 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10592 declarations.
10593 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10594 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10595 (arm_print_float_info, arm_register_type, convert_to_extended)
10596 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10597 (arm_extract_return_value, arm_register_name): Delete declarations.
10598 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10599 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10600 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10601 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10602 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10603 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10604 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10605 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10606 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10607 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10608 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10609 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10610 interface.
10611 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10612 * remote-rdi.c remote-rdp.c: Likewise.
10613 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10614 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10615 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10616 definition.
10617
10618 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10619 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10620 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10621 from non-ARM_ prefixed definitions.
10622 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10623 all uses of above.
10624 * remote-rdi.c remote-rdp.c: Likewise.
10625 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10626
148754e5
RE
106272002-02-11 Richard Earnshaw <rearnsha@arm.com>
10628
10629 * arm-tdep.c (arm_frameless_function_invocation)
10630 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10631 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10632 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10633 (arm_pop_frame, arm_get_next_pc): Make static.
10634 (arm_gdbarch_init): Register above in gdbarch structure.
10635 (arm_read_fp): Renamed from arm_target_read_fp.
10636 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10637 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10638 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10639 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10640 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10641 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10642 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
10643 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10644 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10645 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10646 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 10647
434d2d4f
DJ
106482002-02-10 Daniel Jacobowitz <drow@mvista.com>
10649
10650 * symtab.c (compare_search_syms): New function.
10651 (sort_search_symbols): New function.
10652 (search_symbols): Sort symbols after searching rather than
10653 before.
10654
55241689
AC
106552002-02-10 Andrew Cagney <ac131313@redhat.com>
10656
10657 * NEWS: Linux -> GNU/Linux.
10658
028c194b
AC
106592002-02-10 Andrew Cagney <ac131313@redhat.com>
10660
10661 * gdbarch.sh: For for level one methods, disallow a definition
10662 when partially multi-arched. Add comments explaining rationale.
10663 * gdbarch.h: Re-generate.
10664
6acf50cd
AC
106652002-02-10 Andrew Cagney <ac131313@redhat.com>
10666
10667 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10668 multi-arch partial.
aaa38bb5 10669
50248794
AC
106702002-02-10 Andrew Cagney <ac131313@redhat.com>
10671
10672 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10673 field. Use diff -u.
10674 * gdbarch.c: Re-generate.
10675
c30e0066
AC
106762002-02-10 Andrew Cagney <ac131313@redhat.com>
10677
9b56c5f3 10678 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
10679 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10680 partial.
10681
6e6d6484
AC
106822002-02-10 Andrew Cagney <ac131313@redhat.com>
10683
10684 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10685 multi-arch partial.
10686 (PUSH_ARGUMENTS): Switch to using predefault.
10687 * gdbarch.c: Regenerate.
10688
c203844d
AC
106892002-02-10 Andrew Cagney <ac131313@redhat.com>
10690
10691 * valops.c (PUSH_ARGUMENTS): Delete definition.
10692 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10693 partial. Default to default_push_arguments.
10694 * gdbarch.h, gdbarch.c: Regenerate.
10695
b5a2688f
AC
106962002-02-09 Andrew Cagney <ac131313@redhat.com>
10697
10698 * defs.h (throw_exception): Rename return_to_top_level. Update
10699 comments.
10700 * utils.c (error_stream, internal_verror, quit): Ditto.
10701 * top.c (throw_exception, catcher): Ditto.
10702 * sparclet-rom.c (sparclet_load): Ditto.
10703 * remote.c (interrupt_query, minitelnet): Ditto.
10704 * remote-sds.c (interrupt_query): Ditto.
10705 * remote-mips.c (mips_error, mips_kill): Ditto.
10706 * ocd.c (interrupt_query): Ditto.
10707 * monitor.c (monitor_interrupt_query): Ditto.
10708 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10709 * target.h: Update comment.
aaa38bb5 10710
b5a2688f 10711 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 10712
2fa5c1e0
AC
107132002-02-09 Andrew Cagney <ac131313@redhat.com>
10714
10715 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10716 default_double_format.
10717 * gdbarch.h, gdbarch.c: Re-generate.
10718 * findvar.c (floatformat_unknown): Delete variable definition.
10719 * doublest.h (floatformat_unknown): Delete variable declaration.
10720
da966255
JB
107212002-02-09 Jim Blandy <jimb@redhat.com>
10722
10723 * stabsread.c (read_type): Add code to parse Sun's syntax for
10724 prototyped function types.
10725
123a4891
AC
107262002-02-09 Andrew Cagney <ac131313@redhat.com>
10727
10728 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10729 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10730
fb39c8f3
PS
107312002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10732
10733 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10734 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10735 now _initialize_xcoffsolib gets called again and overrides the
10736 commands from solib.c in a native configuration.
10737
0b87a11d
MK
107382002-02-09 Mark Kettenis <kettenis@gnu.org>
10739
10740 * doublest.c (store_typed_floating): Don't try to return a value.
10741 Fixes PR gdb/290.
10742
bdc2fc72
JB
107432002-02-08 Jim Blandy <jimb@redhat.com>
10744
10745 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10746 is prototyped and has no arguments, print its argument list as
10747 `(void)'.
10748
da69bbcf
CD
107492002-02-08 Chris Demetriou <cgd@broadcom.com>
10750
10751 * MAINTAINERS (write-after-approval): Add myself.
10752 (paper-trail): I've escaped!
aaa38bb5 10753
b69571f5
CF
107542002-02-08 Christopher Faylor <cgf@redhat.com>
10755
10756 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10757 changes.
10758 (_initialize_check_for_gdb_ini): Ditto.
10759
f6871398
MH
107602002-02-08 Martin M. Hunt <hunt@redhat.com>
10761
10762 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10763 xaprintf -> xasprintf.
10764
4e52d31c
PM
107652002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10766
10767 * win32-nat.c: Remove use of printf and sprintf functions.
10768
39bbf761
RE
107692002-02-08 Richard Earnshaw <rearnsha@arm.com>
10770
10771 * arm-tdep.c (arm_frame_chain_valid): Make static.
10772 (arm_push_arguments): Likewise.
10773 (arm_gdbarch_init): New function.
10774 (_initialize_arm_tdep): Call it.
10775 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10776 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10777 (FRAME_CHAIN_VALID): Delete.
10778 (arm_frame_chain_valid): Delete declaration.
10779 (PUSH_ARGUMENTS): Delete.
10780 (arm_push_arguments): Delete declaration.
10781 (CALL_DUMMY_P): Delete.
10782
9c9532c9
CV
107832002-02-08 Andrew Cagney <ac131313@redhat.com>
10784 Corinna Vinschen <vinschen@redhat.com>
10785
10786 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10787 on builtin float types.
10788
4e8f7a8b
DJ
107892002-02-08 Daniel Jacobowitz <drow@mvista.com>
10790
10791 * utils.c: Include <curses.h> before "bfd.h".
10792 * tui/tui-hooks.c: Likewise.
10793 * tui/tui.c: Likewise.
10794 * tui/tuiCommand.c: Likewise.
10795 * tui/tuiData.c: Likewise.
10796 * tui/tuiDataWin.c: Likewise.
10797 * tui/tuiDisassem.c: Likewise.
10798 * tui/tuiGeneralWin.c: Likewise.
10799 * tui/tuiIO.c: Likewise.
10800 * tui/tuiLayout.c: Likewise.
10801 * tui/tuiRegs.c: Likewise.
10802 * tui/tuiSource.c: Likewise.
10803 * tui/tuiSourceWin.c: Likewise.
10804 * tui/tuiStack.c: Likewise.
10805 * tui/tuiWin.c: Likewise.
10806
cd4bffcf
EZ
108072002-02-07 Elena Zannoni <ezannoni@redhat.com>
10808
10809 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10810 to include space for pseudoregs as well. Update loops accordingly.
10811 (sh_fp_frame_init_saved_regs): Ditto.
10812 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10813
26806ce2
AC
108142002-02-07 Andrew Cagney <ac131313@redhat.com>
10815
10816 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10817 Add Richard Earnshaw to Arm maintainers.
10818
97fdab62
AC
108192002-02-07 Andrew Cagney <ac131313@redhat.com>
10820
a6b98203
AC
10821 * defs.h (warning_begin): Delete declaration.
10822
97fdab62
AC
10823 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10824 Delete macro.
10825
78b29b40
MS
108262002-02-07 Michael Snyder <msnyder@redhat.com>
10827
aaa38bb5 10828 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
10829 Logic bug, remove misplaced else.
10830
d8849953
KD
108312002-02-07 Klee Dienes <klee@apple.com>
10832
10833 * fork-inferior.c (fork_inferior): Add '!' to the list of
10834 characters that need to be quoted when building a string for the
10835 shell. Quote '!' specifically with a backslash, since CSH chokes
10836 when trying to evaluate "str!str".
aaa38bb5 10837
095778a0
NC
108382002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10839
10840 * rdi-share/host.h: Only provide a typedef for bool if it is not
10841 defined.
10842
1900040c
MS
108432002-02-04 Michael Snyder <msnyder@redhat.com>
10844
10845 * breakpoint.h (enum bptype): Add new overlay event bp type.
10846 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 10847
1900040c
MS
10848 * breakpoint.c (create_internal_breakpoint): New function.
10849 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10850 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10851 (create_thread_event_breakpoint): Ditto.
10852 (create_solib_event_breakpoint): Ditto.
10853 (create_overlay_event_breakpoint): New function.
10854 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10855 (update_breakpoints_after_exec): Delete and re-initialize
10856 overlay event breakpoints after an exec. Add FIXME comment
10857 about longjmp breakpoint.
10858 (print_it_typical): Ignore overlay event breakpoints.
10859 (print_one_breakpoint): Ditto.
10860 (mention): Ditto.
10861 (bpstat_what): Do not stop for overlay event breakpoints.
10862 (delete_breakpoint): Don't delete overlay event breakpoints.
10863 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10864 (breakpoint_re_set): Re-create overlay event breakpoint.
10865
10866 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10867 (overlay_manual_command): Disable overlay breakpoints.
10868 (overlay_off_command): Disable overlay breakpoints.
10869
082fc60d
RE
108702002-02-06 Richard Earnshaw <rearnsha@arm.com>
10871
10872 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10873 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10874 to here from config/tm-arm.h.
10875 (coff_sym_is_thumb): Make static.
10876 (arm_elf_make_msymbol_special): New function.
10877 (arm_coff_make_msymbol_special): New function.
10878 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10879 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10880 (coff_sym_is_thumb): Delete declaration.
10881 (arm_elf_make_msymbol_special): Declare.
10882 (arm_coff_make_msymbol_special): Declare.
10883 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10884 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10885
039c5766
RE
108862002-02-06 Richard Earnshaw <rearnsha@arm.com>
10887
10888 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10889
108902002-02-06 Richard Earnshaw <rearnsha@arm.com>
10891
10892 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10893 * gdbarch.c gdbarch.h: Regenerate.
10894 * arch-utils.c (default_print_float_info): New function.
10895 * arch-utils.h (default_print_float_info): Prototype it.
10896 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10897 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10898 (PRINT_FLOAT_INFO): Document it.
10899
10900 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10901 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10902 (PRINT_FLOAT_INFO): Define.
10903
58fa08f0
PM
109042002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10905
aaa38bb5 10906 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10907 Add typecast to sprintf argument to suppress a warning.
10908
7393af7c
PM
109092002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10910
58fa08f0 10911 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10912 to allow easier handling of pass state.
10913 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10914 that gives exception name and address.
10915 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10916 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10917 exceptions added.
aaa38bb5
AJ
10918 (child_continue): Correctly report continue_status.
10919 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10920 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10921 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10922 the exception should be passed to debuggee or not.
10923
6af4589c
MS
109242002-02-05 Michael Snyder <msnyder@redhat.com>
10925
10926 * regcache.c (fetch_register): Call target_fetch_register
10927 only if we don't call FETCH_PSEUDO_REGISTER.
10928 (store_register): Call target_store_register only if we
10929 don't call STORE_PSEUDO_REGISTER.
10930
a2cf933a
EZ
109312002-02-05 Elena Zannoni <ezannoni@redhat.com>
10932
10933 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10934 ELF_MAKE_MSYMBOL_SPECIAL.
10935 * gdbarch.c, gdbarch.h: Regenerate.
10936 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10937 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10938 * elfread.c (elf_symtab_read): Compile use of
10939 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10940 multiarched.
10941 * coffread.c (coff_symtab_read): Ditto, for
10942 COFF_MAKE_MSYMBOL_SPECIAL.
10943
6bb7be43
JB
109442002-02-05 Jim Blandy <jimb@redhat.com>
10945
10946 * solib-svr4.c (svr4_truncate_ptr): New function.
10947 (svr4_relocate_section_addresses): Do the address arithmetic with
10948 the appropriate truncation for target addresses, even when
10949 CORE_ADDR is larger than a target address.
10950
e18651ec
DJ
109512002-02-05 Daniel Jacobowitz <drow@mvista.com>
10952
10953 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10954 to (int *).
10955
6b2725be
DJ
109562002-02-05 Daniel Jacobowitz <drow@mvista.com>
10957
10958 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10959 code.
10960
fca9e603
DJ
109612002-02-05 Daniel Jacobowitz <drow@mvista.com>
10962
10963 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10964
6c537a52
DJ
109652002-02-05 Daniel Jacobowitz <drow@mvista.com>
10966
10967 * gdbserver/linux-low.c: Remove unused include files.
10968
d844cde6
DJ
109692002-02-05 Daniel Jacobowitz <drow@mvista.com>
10970
10971 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10972 (read_inferior_memory): Use it.
10973 (write_inferior_memory): Likewise.
10974
d07c63e7
DJ
109752002-02-05 Daniel Jacobowitz <drow@mvista.com>
10976
10977 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10978 grubbing through sys_errlist.
10979
da6d8c04
DJ
109802002-02-05 Daniel Jacobowitz <drow@mvista.com>
10981
10982 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10983
5b421780
PM
109842002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10985 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10986
9f60d481
AC
109872002-02-04 Andrew Cagney <ac131313@redhat.com>
10988
10989 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10990 (do_sfunc, set_cmd_sfunc): New functions.
10991
10992 * command.h (struct cmd_list_element): Add field func.
10993 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10994 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10995 * cli/cli-decode.h: Ditto.
10996
10997 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10998 (help_all, help_cmd_list): Ditto.
10999 (find_cmd, complete_on_cmdlist): Ditto.
11000 * top.c (execute_command): Ditto.
11001
11002 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11003 function.sfunc.
11004
11005 * infcmd.c (notice_args_read): Fix function signature.
11006
11007 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11008 * cli/cli-decode.c (add_set_cmd): Ditto.
11009 * utils.c (initialize_utils): Ditto.
11010 * maint.c (_initialize_maint_cmds): Ditto.
11011 * infrun.c (_initialize_infrun): Ditto.
11012 * demangle.c (_initialize_demangler): Ditto.
11013 * remote.c (add_packet_config_cmd): Ditto.
11014 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11015 * cris-tdep.c (_initialize_cris_tdep): Ditto.
11016 * proc-api.c (_initialize_proc_api): Ditto.
11017 * kod.c (_initialize_kod): Ditto.
11018 * valprint.c (_initialize_valprint): Ditto.
11019 * top.c (init_main): Ditto.
11020 * infcmd.c (_initialize_infcmd): Ditto.
11021 * corefile.c (_initialize_core): Ditto.
11022 * arm-tdep.c (_initialize_arm_tdep): Ditto.
11023 * arch-utils.c (initialize_current_architecture): Ditto.
11024 (_initialize_gdbarch_utils): Ditto.
11025 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11026
11027 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11028 * wince.c (_initialize_inftarg): Ditto.
11029 * symfile.c (_initialize_symfile): Ditto.
11030 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11031 * language.c (_initialize_language): Ditto.
11032 * arc-tdep.c (_initialize_arc_tdep): Ditto.
11033
f9ba0717
MS
110342002-02-04 Michael Snyder <msnyder@redhat.com>
11035
11036 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11037
0c74b2a7
DJ
110382002-02-04 Daniel Jacobowitz <drow@mvista.com>
11039
11040 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11041 Add rules for building the register data files.
11042
c638789f
DJ
110432002-02-04 Daniel Jacobowitz <drow@mvista.com>
11044
11045 * regformats/regdat.sh: Add braces to the definition of
11046 expedite_regs_${arch}.
11047
db253027
DJ
110482002-02-04 Daniel Jacobowitz <drow@mvista.com>
11049
11050 * regformats/regdef.h (struct reg): Add comment describing the
11051 requirements for offset and size fields.
11052
206be19c
AS
110532002-02-04 Andreas Schwab <schwab@suse.de>
11054
11055 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11056 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11057
181c1381
RE
110582002-02-04 Richard Earnshaw <rearnsha@arm.com>
11059
11060 * gdbarch.sh (copyright): Update years in generated header.
11061 (SMASH_TEXT_ADDRESS): Add rule.
db253027 11062 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
11063 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11064 * dbxread.c: Likewise.
11065 * dwarfread.c: Likewise.
11066 * elfread.c: Likewise.
11067 * somread.c: Likewise.
11068
11069 * arm-tdep.c (arm_smash_text_address): New function.
11070 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11071
fa4ba8da
PM
110722002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11073
11074 Add support for hardware watchpoints on win32 native.
aaa38bb5 11075 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 11076 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 11077 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
11078 of debug registers.
11079 (debug_registers_changed): New variable. Reflects when debug registers
11080 are changed and need to be written to inferior.
aaa38bb5 11081 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
11082 was set, used when new threads are created.
11083 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11084 i386-nat code.
11085 (thread_rec): Set dr array if id is the thread of current_event .
11086 (child_continue, child_resume): Change the debug registers for all
11087 threads if debug_registers_changed.
11088 (child_add_thread): Change the debug registers if debug_registers_used.
11089 * config/i386/cygwin.mh: Add use of i386-nat.o file.
11090 Link nm.h to new nm-cygwin.h file.
11091 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11092 of hardware registers.
11093
a73c86fb
AC
110942002-02-03 Andrew Cagney <ac131313@redhat.com>
11095
11096 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11097 Restore behavour broken by 2002-01-20 Andrew Cagney
11098 <ac131313@redhat.com> IEEE_FLOAT removal.
11099
acf5ed49
DJ
111002002-02-03 Daniel Jacobowitz <drow@mvista.com>
11101
11102 * c-valprint.c (c_val_print): Pass a proper valaddr to
11103 cp_print_class_method.
11104 * valops.c (search_struct_method): If there is only one method
11105 and args is NULL, return that method.
11106
493d28d5
DJ
111072002-02-03 Daniel Jacobowitz <drow@mvista.com>
11108
11109 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11110 accessing tag_name directly.
11111
7495dfdb
DJ
111122002-02-03 Daniel Jacobowitz <drow@mvista.com>
11113
11114 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11115 of accessing tag_name directly.
11116
dd6bda65
DJ
111172002-02-03 Daniel Jacobowitz <drow@mvista.com>
11118
11119 PR gdb/280
11120 * gdbtypes.c (replace_type): New function.
11121 * gdbtypes.h (replace_type): Add prototype.
11122 * stabsread.c (read_type): Use replace_type.
11123
88fe217c
RE
111242002-02-03 Richard Earnshaw <rearnsha@arm.com>
11125
11126 * Makefile.in (memattr.o): Add missing dependencies rule.
11127
e5d66720
PS
111282002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11129
11130 * breakpoint.c (break_at_finish_command): Really export.
11131 (break_at_finish_at_depth_command): Ditto.
11132 (tbreak_at_finish_command): Ditto.
11133 * hppa-tdep.c: Include completer.h.
11134 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11135 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11136
fffee0be
AC
111372002-02-01 Andrew Cagney <ac131313@redhat.com>
11138
11139 * utils.c (do_write): New function.
11140 (error_stream): Rewrite combining the code from error_begin and
11141 verror.
11142 (verror): Rewrite using error_stream.
11143 (error_begin): Delete function.
11144
255e7dbf
AC
111452002-02-01 Andrew Cagney <ac131313@redhat.com>
11146
11147 * utils.c (error_begin): Make static.
11148 * defs.h (error_begin): Delete declaration.
11149
11150 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11151 (decode_line_1): Use cplusplus_error instead of error_begin,
11152 cplusplus_hint and return_to_top_level.
11153 * coffread.c (coff_symfile_read): Use error instead of error_begin
11154 and return_to_top_level.
11155 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11156
ddfe3c15
AC
111572002-02-01 Andrew Cagney <ac131313@redhat.com>
11158
11159 * language.h (type_error, range_error): Make string parameter
11160 constant.
11161 * language.c (warning_pre_print): Delete extern declaration.
11162 * dwarfread.c (warning_pre_print): Ditto.
11163 * language.c (type_error, range_error): Rewrite to use verror and
11164 vwarning instead of warning_begin.
11165
03ac34d5
MS
111662002-02-01 Michael Snyder <msnyder@redhat.com>
11167
261c4ca2
MS
11168 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11169 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 11170
e00d1dc8
AC
111712002-02-01 Andrew Cagney <ac131313@redhat.com>
11172
11173 * command.h (NO_FUNCTION): Delete macro.
11174 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11175 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11176 * tracepoint.c (_initialize_tracepoint): Ditto.
11177 * cli/cli-decode.c (add_set_cmd): Ditto.
11178 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 11179
76b79d6e
DJ
111802002-02-01 Daniel Jacobowitz <drow@mvista.com>
11181
11182 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11183 Update ``this'' pointer when calling virtual functions.
11184
799f9e91
MS
111852002-02-01 Michael Snyder <msnyder@redhat.com>
11186
c7bd442c 11187 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
11188 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11189
3cf384d4
DJ
111902002-02-01 Daniel Jacobowitz <drow@mvista.com>
11191
11192 * regformats/reg-arm.dat: New file.
11193 * regformats/reg-i386.dat: New file.
11194 * regformats/reg-ia64.dat: New file.
11195 * regformats/reg-m68k.dat: New file.
11196 * regformats/reg-mips.dat: New file.
11197 * regformats/reg-ppc.dat: New file.
11198 * regformats/reg-sh.dat: New file.
11199 * regformats/regdef.h: New file.
11200 * regformats/regdat.sh: New file.
11201
0defa245
RE
112022002-02-01 Richard Earnshaw <reanrsha@arm.com>
11203
11204 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11205 (arm_frame_args_address, arm_frame_locals_address): New functions.
11206 (arm_frame_num_args): New function.
11207 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11208 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11209 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11210
405f26e6
MS
112112002-01-31 Michael Snyder <msnyder@redhat.com>
11212
502fd408
MS
11213 * breakpoint.c (break_at_finish_command): Export.
11214 (break_at_finish_at_depth_command): Export.
11215 (tbreak_at_finish_command): Export.
d6020d45 11216 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 11217 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 11218 "txbreak" commands, which are HPPA specific.
502fd408 11219
7d35e135
MS
11220 * printcmd.c (disassemble_command): Remove an ancient
11221 artifact of an old merge.
11222
aaa38bb5 11223 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
11224 Define enum constant values for overlay mode.
11225 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
11226 (overlay_is_mapped, overlay_auto_command,
11227 overlay_manual_command): Ditto.
d874f1e2 11228
aaa38bb5
AJ
11229 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11230 breakpoint_here_p, breakpoint_inserted_here_p,
11231 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
11232 describe_other_breakpoints, check_duplicates, clear_command):
11233 Coding standard fixes.
11234
8add0441 11235 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 11236 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
11237 code: check bfd SEC_READONLY flag for section.
11238
e351066e
AC
112392002-01-31 Andrew Cagney <ac131313@redhat.com>
11240
7d35e135 11241 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 11242
8a48e967
DJ
112432002-01-30 Daniel Jacobowitz <drow@mvista.com>
11244
11245 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11246 data symbols, since we search based on textlow and texthigh.
11247 (find_pc_sect_symtab): Likewise.
11248
f5a96129
AC
112492002-01-30 Andrew Cagney <ac131313@redhat.com>
11250
11251 * defs.h (vwarning): Declare.
f5a96129
AC
11252 * utils.c (vwarning): New function.
11253 (warning): Call vwarning.
11254 (warning_begin): Delete function.
11255
11256 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11257 the warning message.
11258 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11259 warning_begin.
11260
cefd4ef5
MS
112612002-01-30 Michael Snyder <msnyder@redhat.com>
11262
1a703748
MS
11263 * NEWS: Mention "set trust-readonly-sections" command.
11264 Mention generate-core-file command.
cefd4ef5 11265
3a11626d
MS
112662002-01-15 Michael Snyder <msnyder@redhat.com>
11267
11268 * target.c: New command, "set trust-readonly-sections on".
11269 (do_xfer_memory): Honor the suggestion to trust readonly sections
11270 by reading them from the object file instead of from the target.
11271 (initialize_targets): Register command "set trust-readonly-sections".
11272
d1c7e53b
AC
112732002-01-29 Andrew Cagney <ac131313@redhat.com>
11274
11275 * parse.c (target_map_name_to_register): Simplify, search regs and
11276 pseudo-regs using a single loop.
11277
e2c9a72c
AC
112782002-01-30 Andrew Cagney <ac131313@redhat.com>
11279
11280 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11281
69824b4e
MK
112822002-01-15 Rodney Brown <rbrown64@csc.com.au>
11283
11284 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11285 * config/i386/i386v42mp.mh: Add i387-nat.o .
11286 * i386v4-nat.c: Include i387-nat.h.
11287 (supply_fpregset): Use i387_supply_fsave.
11288 (fill_fpregset): Use i387_fill_fsave.
11289
6eb69eab
RE
112902002-01-30 Richard Earnshaw <rearnsha@arm.com>
11291
11292 * arm-tdep.c (arm_call_dummy_words): Define.
11293 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11294 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11295 (CALL_DUMMY_WORDS): Define.
11296 (arm_call_dummy_words): Declare.
11297 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11298 (arm_linux_call_dummy_words): Declare.
11299
9852326a
AS
113002002-01-30 Andreas Schwab <schwab@suse.de>
11301
11302 * m68klinux-nat.c: Fix last change to use regcache_collect
11303 instead of referencing registers[] directly.
11304
977a3030
AC
113052002-01-29 Andrew Cagney <ac131313@redhat.com>
11306
11307 * parse.c (target_map_name_to_register): Delete code wrapped in
11308 #ifdef REGISTER_NAME_ALIAS_HOOK.
11309
2076c72b
MS
113102002-01-28 Michael Snyder <msnyder@redhat.com>
11311
11312 * regcache.c (legacy_read_register_gen): Need to be able to
11313 read pseudo-register as well as real register.
11314 (legacy_write_register_gen): Ditto.
11315
8fcc723b
AC
113162002-01-28 Andrew Cagney <ac131313@redhat.com>
11317
11318 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11319 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11320 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11321 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11322 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11323 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11324 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11325 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11326 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11327 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11328 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11329 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11330 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11331 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11332 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11333 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11334 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11335 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11336 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11337 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11338
afe64c1a
AC
113392002-01-28 Andrew Cagney <ac131313@redhat.com>
11340
11341 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11342 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11343 (initialize_current_architecture): Update target_byte_order using
11344 information from BFD.
aaa38bb5 11345 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
11346 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11347
75bc7ddf
AC
113482002-01-28 Andrew Cagney <ac131313@redhat.com>
11349
11350 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11351 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11352
11353 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11354 #ifdef INVALID_FLOAT.
11355 * infcmd.c (do_registers_info): Ditto.
11356 * values.c (unpack_double): Ditto. Add comment.
11357
11358 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11359 already commented out.
11360
0280a90a
AS
113612002-01-26 Andreas Schwab <schwab@suse.de>
11362
11363 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11364 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11365 registers and add support for PTRACE_GETREGS.
11366
7072a954
AC
113672002-01-24 Andrew Cagney <ac131313@redhat.com>
11368
11369 GDB 5.1.1 released from 5.1 branch.
11370 * NEWS: Add 5.1.1 news.
11371 * README: Sync with 5.1 branch.
11372
86f902e0
FF
113732002-01-23 Fred Fish <fnf@redhat.com>
11374
11375 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11376 stabstring on initial malloc. Reallocing will copy it for us,
11377 if necessary.
11378
8af51c36
EZ
113792002-01-23 Elena Zannoni <ezannoni@redhat.com>
11380
aaa38bb5 11381 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
11382 (HFILES_NO_SRCDIR): Remove hpread.h.
11383 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11384 (hpread.o): Update dependencies.
11385 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11386
11387 * hp-psymtab-read.c: Remove file.
11388 * hp-symtab-read.c: Remove file.
11389 * hpread.h: Remove file.
11390
11391 * hpread.c: Merge all contents of hp-psymtab-read.c,
11392 hp-symtab-read.c and hpread.h into this file, as it was prior to
11393 January 1999.
11394
11395 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 11396 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
11397 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11398 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11399
dc5cfeb6
EZ
114002002-01-23 Elena Zannoni <ezannoni@redhat.com>
11401
11402 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11403 fill_gregset): Call gdbarch_tdep() just once, assign result to
11404 variable and use that, instead of calling the function several
11405 times.
11406
ea87b71b
AO
114072002-01-24 Alexandre Oliva <aoliva@redhat.com>
11408
11409 * configure.host: Accept sparcv9 as alias for sparc64.
11410 * configure.tgt: Likewise.
11411
13fc0c2f
KB
114122002-01-22 Kevin Buettner <kevinb@redhat.com>
11413
11414 * solib-aix5.c (build_so_list_from_mapfile)
11415 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11416 arguments is not reversed.
11417 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11418 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 11419
7bd872fe
EZ
114202002-01-22 Elena Zannoni <ezannoni@redhat.com>
11421
11422 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11423 modified version of obsolete sh_fetch_pseudo_register.
11424 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11425 (sh4_register_read): New function.
11426 (sh_pseudo_register_write): New function. Renamed and modified
11427 version of obsolete sh_store_pseudo_register.
11428 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11429 (sh4_register_write): New function.
11430 (sh_gdbarch_init): Remove setting of gdbarch function
11431 fetch_pseudo_register and store_pseudo_register. Remove setting of
11432 register_convert_to_raw, register_convert_to_virtual,
11433 register_convertible.
11434 (sh_sh4_register_convertible): Delete. No longer needed. All is
11435 taken care by architecture specific functions
11436 register_read/register_write.
11437 (sh_sh4_register_convert_to_virtual): Make static.
11438 (sh_sh4_register_convert_to_raw): Ditto.
11439
069e84fd
AC
114402002-01-22 Andrew Cagney <ac131313@redhat.com>
11441
11442 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11443 (floatformat_is_nan, floatformat_mantissa): Ditto.
11444
11445 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11446 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11447 builtin_type_ieee_double_little,
11448 builtin_type_ieee_double_littlebyte_bigword,
11449 builtin_type_m68881_ext, builtin_type_i960_ext,
11450 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11451 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11452 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11453 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11454
211a4f69
CV
114552002-01-22 Corinna Vinschen <vinschen@redhat.com>
11456
11457 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11458 parameter. Set frameless flag if it exists and depended of
11459 whether the scanned function is frameless or not.
11460 (xstormy16_skip_prologue): If function is frameless, return
11461 result of xstormy16_scan_prologue().
11462 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11463 call.
11464
f81353e4
EZ
114652002-01-21 Elena Zannoni <ezannoni@redhat.com>
11466
11467 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11468 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11469 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11470 sh_sh4_register_byte, sh_sh4_register_raw_size,
11471 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11472 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11473 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11474 sh_store_pseudo_register, sh_do_pseudo_register): Call
11475 gdbarch_tdep() just once, assign result to variable and use that,
11476 instead of calling the function several times.
11477
63c73a17
MK
114782002-01-20 Mark Kettenis <kettenis@gnu.org>
11479
11480 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11481 macros instead of LAST_FPU_CTRL_REGNUM.
11482 (store_register): Likewise.
11483
39ad761d
JB
114842002-01-21 Jim Blandy <jimb@redhat.com>
11485
11486 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11487 is up-to-date before running the program, not just when a program
11488 exits.
11489
3d74b771
FF
114902002-01-21 Fred Fish <fnf@redhat.com>
11491
11492 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11493 when we have found all instructions we are looking for.
11494
966fbf70
RE
114952002-01-21 Richard Earnshaw <rearnsha@arm.com>
11496
11497 * arm-tdep.c (arm_register_name): New function.
11498 (arm_registers_names): Make static.
11499 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11500 (arm_register_name): Declare.
11501 (REGISTER_NAME): Use it.
11502
c3b4394c
RE
115032002-01-21 Richard Earnshaw <rearnsha@arm.com>
11504 Kevin Buettner <kevinb@redhat.com>
11505
11506 Convert arm targets to new FRAME interface.
11507 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11508 (arm_frame_find_save_regs): Delete.
11509 (arm_frame_init_saved_regs): New.
11510 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11511 Allocate extra_info as required. Convert all uses of fsr.regs
11512 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11513 to use extra_info.
11514 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11515 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11516 (check_prologue_cache, save_prologue_cache): Likewise.
11517 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11518 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11519 (FRAME_FIND_SAVED_REGS): Delete.
11520 (arm_frame_find_saved_regs): Delete prototype.
11521 (arm_frame_init_saved_regs): New prototype.
11522 (FRAME_INIT_SAVED_REGS): Define.
11523
61d99182
AC
115242002-01-20 Andrew Cagney <ac131313@redhat.com>
11525
11526 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11527
6aaea291
AC
115282002-01-20 Andrew Cagney <ac131313@redhat.com>
11529
11530 From Jeff Law <law@redhat.com>:
11531 * infttrace.c: Include <sys/pstat.h>.
11532 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11533 exec file if the ttrace equivalent fails.
11534
15f698d2
AC
115352002-01-20 Andrew Cagney <ac131313@redhat.com>
11536
11537 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11538 (closeLogFile): Ditto.
11539
f86ddd7c
MC
115402002-01-20 Michael Chastain <mec@shout.net>
11541
11542 * top.c (print_gdb_version): Bump copyright year to 2002.
11543
904507ce
AC
115442002-01-20 Andrew Cagney <ac131313@redhat.com>
11545
11546 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11547 Zannoni and Eli Zaretskii.
11548
d7f0b9ce
DJ
115492002-01-20 Daniel Jacobowitz <drow@mvista.com>
11550
11551 * buildsym.c: Update copyright years.
11552 * c-typeprint.c: Likewise.
11553 * dwarf2read.c: Likewise.
11554 * f-typeprint.c: Likewise.
11555 * gdbtypes.c: Likewise.
11556 * gdbtypes.h: Likewise.
11557 * hp-symtab-read.c: Likewise.
11558 * hpread.c: Likewise.
11559 * mdebugread.c: Likewise.
11560 * p-typeprint.c: Likewise.
11561
3fd3d7d2
AC
115622002-01-20 Andrew Cagney <ac131313@redhat.com>
11563
11564 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11565 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11566 byte-order selectable.
11567 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11568 * arch-utils.c: Ditto.
11569 (set_endian): Ditto.
11570 (set_endian_from_file): Ditto.
11571 * gdbserver/low-sim.c (create_inferior): Ditto.
11572 * gdbarch.sh: Ditto.
11573 * gdbarch.h: Re-generate.
aaa38bb5
AJ
11574 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11575 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11576 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11577 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11578 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11579 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11580 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
11581 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11582 macro definition.
11583 * config/mips/tm-wince.h: Remove #undef of macro
11584 TARGET_BYTE_ORDER_SELECTABLE.
11585 * config/sh/tm-wince.h: Ditto.
11586
b02dede2
DJ
115872002-01-20 Daniel Jacobowitz <drow@mvista.com>
11588
11589 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11590 member function fields. Add accessor macro
11591 TYPE_FN_FIELD_ARTIFICIAL.
11592 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11593 * c-typeprint.c (c_type_print_base): Skip artificial member
11594 functions.
11595
c3643761
DJ
115962002-01-20 Daniel Jacobowitz <drow@mvista.com>
11597
11598 * f-typeprint.c: Delete unused function f_type_print_args.
11599 * p-typeprint.c: Delete unused function pascal_type_print_args.
11600
8176bb6d
DJ
116012002-01-20 Daniel Jacobowitz <drow@mvista.com>
11602
11603 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11604 comment. Add ``artificial'' to ``union field_location''.
11605
11606 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11607
11608 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11609 * mdebugread.c (parse_symbol): Likewise.
11610 * stabsread.c (define_symbol): Likewise.
11611 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11612 initializing TYPE_FIELD_BITPOS to n (obsolete).
11613 (hpread_doc_function_type): Likewise.
11614 * hpread.c (hpread_function_type): Likewise.
11615
7fd60527
AC
116162002-01-20 Andrew Cagney <ac131313@redhat.com>
11617
11618 * configure.in (host_makefile_frag): Only require a host makefile
11619 fragment when a native build.
11620 * configure: Re-generate.
11621
c2f05ac9
AC
116222002-01-20 Andrew Cagney <ac131313@redhat.com>
11623
11624 * doublest.h (floatformat_from_type): Declare.
11625 * doublest.c (floatformat_from_type): New function.
11626 (convert_typed_floating): Use.
11627
11628 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11629 call to function floatformat_from_type.
11630
11631 * gdbarch.sh (IEEE_FLOAT): Delete.
11632 * gdbarch.h, gdbarch.c: Re-generate.
11633 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11634 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11635 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11636 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11637 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11638 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11639 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11640 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11641 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11642 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11643 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
11644 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11645
11646 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11647 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11648 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11649 * sh-tdep.c (sh_gdbarch_init): Ditto.
11650 * mips-tdep.c (mips_gdbarch_init): Ditto.
11651 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11652 * cris-tdep.c (cris_gdbarch_init): Ditto.
11653
abf22e64
AJ
116542002-01-20 Jiri Smid <smid@suse.cz>
11655
11656 * configure.host, configure.tgt: Support x86-64.
11657 * NEWS: Note new target x86-64.
11658
b7c4cbf8
AJ
11659 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11660 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11661 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11662 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11663 x86-64-linux-nat.o): Fix dependencies.
11664
82600034
AC
116652002-01-19 Andrew Cagney <ac131313@redhat.com>
11666
11667 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11668 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11669 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11670 * config/sparc/xm-sun4os4.h: Delete file.
11671 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 11672
bbe5c628
AC
116732002-01-19 Andrew Cagney <ac131313@redhat.com>
11674
11675 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11676 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11677 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11678 * config/i386/i386lynx.mh (XM_FILE): Delete.
11679 * config/rs6000/xm-rs6000ly.h: Delete file.
11680 * config/sparc/xm-sparclynx.h: Delete file.
11681 * config/m68k/xm-m68klynx.h: Delete file.
11682 * config/i386/xm-i386lynx.h: Delete file.
11683 * config/xm-lynx.h: Delete file.
11684 * config/djgpp/fnchange.lst: Update.
11685
f8453e34
JT
116862002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11687
11688 * alpha-tdep.c (alpha_register_byte): New function.
11689 (alpha_register_raw_size): Ditto.
11690 (alpha_register_virtual_size): Ditto.
11691 (alpha_skip_prologue_internal): Renamed from
11692 alpha_skip_prologue.
11693 (alpha_skip_prologue): New version that calls
11694 alpha_skip_prologue_internal.
11695 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11696 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11697 second argument from alpha_skip_prologue.
11698 (REGISTER_BYTE): Use alpha_register_byte.
11699 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11700 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11701 (FRAMELESS_FUNCTION_INVOCATION): Use
11702 generic_frameless_function_invocation_not.
11703 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11704 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11705
52d9e613
AC
117062002-01-19 Andrew Cagney <ac131313@redhat.com>
11707
11708 * config/mips/xm-news-mips.h: Delete file.
11709 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11710
11711 * config/m88k/xm-m88k.h: Delete file.
11712 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11713 * config/m88k/xm-delta88v4.h: Ditto.
11714 * config/m88k/xm-delta88.h: Ditto.
11715
11716 * config/alpha/xm-fbsd.h: Delete file.
11717 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11718
11719 * config/sparc/xm-sparc.h: Delete file.
11720 * Makefile.in (xm-sun4os4.h): Delete dependency.
11721 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11722 * config/sparc/xm-sun4os4.h: Ditto.
11723 * config/sparc/xm-linux.h: Ditto.
11724
11725 * config/i386/xm-windows.h: Delete file.
11726
2d1b2124
AC
117272002-01-19 Andrew Cagney <ac131313@redhat.com>
11728
11729 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11730 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11731
ee1f65f0
JT
117322002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11733
11734 * alpha-tdep.c (alpha_call_dummy_words): New.
11735 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11736 (CALL_DUMMY_P): Define.
11737 (CALL_DUMMY_WORDS): Define.
11738 (SIZEOF_CALL_DUMMY_WORDS): Define.
11739
98081e55
PB
117402002-01-19 Per Bothner <per@bothner.com>
11741
11742 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11743 isn't NULL, which can happen with some gcj-3.x-produced code.
11744
0d056799
JT
117452002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11746
11747 * alpha-tdep.c (alpha_register_virtual_type): New function.
11748 (alpha_init_frame_pc_first): Ditto.
11749 (alpha_fix_call_dummy): Ditto.
11750 (alpha_store_struct_return): Ditto.
11751 (alpha_extract_struct_value_address): Ditto.
11752 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11753 alpha_register_virtual_type.
11754 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11755 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11756 alpha_extract_struct_value_address.
11757 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11758 (INIT_FRAME_PC): Use init_frame_pc_noop.
11759 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11760
4604bcad
MK
117612002-01-19 Mark Kettenis <kettenis@gnu.org>
11762
11763 * i386gnu-nat.c: Include "i386-tdep.h".
11764 (fetch_fpregs): Simplify code dealing with uninitialized floating
11765 point states such that it doesn't require FP7_REGNUM.
11766
140f9984
JT
117672002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11768
abf22e64
AJ
11769 * alpha-tdep.c (frame_extra_info): New.
11770 (alpha_find_saved_regs): Make static. Use
140f9984
JT
11771 frame->extra_info.
11772 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
11773 (alpha_frame_saved_pc): Use frame->extra_info.
11774 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11775 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
11776 (init_extra_frame_info): Rename to...
11777 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 11778 (alpha_print_extra_frame_info): New function.
140f9984
JT
11779 (alpha_frame_locals_address): Ditto.
11780 (alpha_frame_args_address): Ditto.
abf22e64 11781 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
11782 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11783 alpha_frame_args_address.
abf22e64 11784 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 11785 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
11786 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11787 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
11788 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11789 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11790
d734c450
JT
117912002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11792
11793 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11794 (alpha_cannot_fetch_register): Ditto.
11795 (alpha_cannot_store_register): Ditto.
11796 (alpha_register_convertible): Ditto.
11797 (alpha_use_struct_convention): Ditto.
11798 * config/alpha/tm-alpha.h: Update copyright years.
11799 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11800 (INNER_THAN): Use core_addr_lessthan.
11801 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11802 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11803 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11804 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11805 (FRAME_CHAIN): Remove unnecessary cast.
11806
b4ceaee6
AC
118072002-01-18 Andrew Cagney <ac131313@redhat.com>
11808
11809 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11810 obsolete.
11811
0a65a603
AC
118122002-01-18 Andrew Cagney <ac131313@redhat.com>
11813
11814 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11815 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11816 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11817 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11818 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11819 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11820 * x86-64-linux-nat.c: Ditto.
11821
636a6dfc
JT
118222002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11823
abf22e64 11824 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
11825 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11826 (REGISTER_NAME): Define.
11827
acceddb6
JT
118282002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11829
11830 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11831
ec32e4be
JT
118322002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11833
11834 * alpha-tdep.c: Update copyright years.
11835 (alpha_next_pc): New function.
11836 (alpha_software_single_step): Ditto.
11837 * config/alpha/tm-alpha.h: Add prototype for
11838 alpha_software_single_step.
11839
e771a871
JT
118402002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11841
11842 * alphabsd-nat.c: Update copyright years.
11843 (fill_gregset): Use regcache_collect.
11844 (fill_fpregset): Likewise.
11845 (fetch_inferior_registers): Only fetch integer registers
11846 if requested to do so.
11847 (store_inferior_registers): Only store integer registers
11848 if requested to do so.
11849
7708fa01
AC
118502002-01-17 Andrew Cagney <ac131313@redhat.com>
11851
11852 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11853 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11854 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11855 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11856 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11857 * config/arm/linux.mh (XDEPFILES): Delete.
11858 * config/arm/nbsd.mh (XDEPFILES): Delete.
11859 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11860 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11861 * config/i386/i386m3.mh (XDEPFILES): Delete.
11862 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11863 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11864 * config/i386/fbsd.mh (XDEPFILES): Delete.
11865 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11866 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11867 * config/i386/i386v4.mh (XDEPFILES): Delete.
11868 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11869 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11870 * config/i386/i386aix.mh (XDEPFILES): Delete.
11871 * config/i386/go32.mh (XDEPFILES): Delete.
11872 * config/i386/cygwin.mh (XDEPFILES): Delete.
11873 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11874 * config/i386/i386mach.mh (XDEPFILES): Delete.
11875 * config/i386/i386v32.mh (XDEPFILES): Delete.
11876 * config/i386/linux.mh (XDEPFILES): Delete.
11877 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11878 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11879 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11880 * config/i386/i386sco.mh (XDEPFILES): Delete.
11881 * config/i386/i386v.mh (XDEPFILES): Delete.
11882 * config/i386/nbsd.mh (XDEPFILES): Delete.
11883 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11884 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11885 * config/i386/symmetry.mh (XDEPFILES): Delete.
11886 * config/i386/obsd.mh (XDEPFILES): Delete.
11887 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11888 * config/ia64/linux.mh (XDEPFILES): Delete.
11889 * config/ia64/aix.mh (XDEPFILES): Delete.
11890 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11891 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11892 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11893 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11894 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11895 * config/m68k/linux.mh (XDEPFILES): Delete.
11896 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11897 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11898 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11899 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11900 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11901 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11902 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11903 * config/m88k/delta88.mh (XDEPFILES): Delete.
11904 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11905 * config/m88k/m88k.mh (XDEPFILES): Delete.
11906 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11907 * config/mips/linux.mh (XDEPFILES): Delete.
11908 * config/mips/irix6.mh (XDEPFILES): Delete.
11909 * config/mips/irix5.mh (XDEPFILES): Delete.
11910 * config/mips/irix4.mh (XDEPFILES): Delete.
11911 * config/mips/irix3.mh (XDEPFILES): Delete.
11912 * config/mips/decstation.mh (XDEPFILES): Delete.
11913 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11914 (NATDEPFILES): Move core-aout.o to here.
11915 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11916 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11917 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11918 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11919 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11920 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11921 * config/pa/hpux11.mh (XDEPFILES): Delete.
11922 * config/powerpc/aix.mh (XDEPFILES): Delete.
11923 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11924 * config/powerpc/linux.mh (XDEPFILES): Delete.
11925 * config/romp/rtbsd.mh: Rename XDEPFILES.
11926 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11927 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11928 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11929 * config/s390/s390.mh (XDEPFILES): Delete.
11930 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11931 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11932 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11933 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11934 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11935 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11936 * config/sparc/linux.mh (XDEPFILES): Delete.
11937 * config/vax/vaxult.mh (XDEPFILES): Delete.
11938 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11939 * Makefile.in (DEPFILES): Remove XDEPFILES.
11940
375fc983
AC
119412002-01-17 Andrew Cagney <ac131313@redhat.com>
11942
11943 * utils.c (internal_verror): Fix comments, default is yes not no.
11944 Update queries to match. Default to quit and dump core.
11945
8926118c
AC
119462002-01-17 Andrew Cagney <ac131313@redhat.com>
11947
11948 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11949 copyright.
11950 * defs.h, event-top.c, gdbcmd.h: Ditto.
11951 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11952 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11953 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11954 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11955 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11956 * mi/mi-main.c:Ditto.
11957
11958 * stack.c, symfile.c: Update copyright.
11959
45b7b345
DJ
119602002-01-17 Daniel Jacobowitz <drow@mvista.com>
11961
db728ff7
DJ
11962 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11963 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11964 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11965 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11966
db728ff7
DJ
119672002-01-17 Daniel Jacobowitz <drow@mvista.com>
11968
11969 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11970 * gdbserver/low-lynx.c (myattach): Likewise.
11971 * gdbserver/low-nbsd.c (myattach): Likewise.
11972 * gdbserver/low-sim.c (myattach): Likewise.
11973 * gdbserver/low-sparc.c (myattach): Likewise.
11974 * gdbserver/low-sun3.c (myattach): Likewise.
11975
11976 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11977
db728ff7 11978 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11979 (main): Handle "--attach".
11980
8de3c354
AC
119812002-01-16 Andrew Cagney <ac131313@redhat.com>
11982
11983 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11984 maintainer.
11985
b0129042
DJ
119862002-01-15 Daniel Jacobowitz <drow@mvista.com>
11987
11988 * c-typeprint.c (is_type_conversion_operator): Add additional
11989 check for non-conversion operators.
11990
ba8679fb 119912002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11992
11993 * linux-proc.c: Add "info proc" command, a la procfs.c.
11994 (read_mapping): New function, abstract and re-use code.
11995 (linux_find_memory_regions): Use new func read_mapping.
11996 (linux_info_proc_cmd): New function, implement "info proc".
11997 (_initialize_linux_proc): Add new command "info proc".
11998
e4f9b4d5
MS
119992002-01-15 Michael Snyder <msnyder@redhat.com>
12000
12001 * symfile.c (generic_load): Use bfd_map_over_sections method
12002 instead of manipulating bfd structure members directly.
12003 (add_section_size_callback): New function, bfd sections callback
12004 used by generic_load.
12005 (load_sections_callback): New function, bfd sections callback
12006 used by generic_load.
12007
08cf96df
EZ
120082002-01-15 Elena Zannoni <ezannoni@redhat.com>
12009
abf22e64 12010 [Based on work by Jim Blandy]
08cf96df
EZ
12011 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12012 (builtin_type_vec128): Export.
12013 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12014 types.
12015 (builtin_type_vec128): New builtin type for 128 bit vector
12016 registers.
12017 (build_gdbtypes): Initialize builtin_type_v16qi and
12018 builtin_type_v8hi. Create the vec128 register builtin type
12019 structure.
12020 (build_builtin_type_vec128): New function.
abf22e64 12021 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
12022 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12023 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12024 AltiVec register to new builtin type.
12025
d7242108
DJ
120262001-01-15 Daniel Jacobowitz <drow@mvista.com>
12027
12028 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12029 to make_cv_type.
12030
4ee3352d
AC
120312002-01-14 Andrew Cagney <ac131313@redhat.com>
12032
12033 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12034 CLEAN_UP_REGISTER_VALUE.
12035 * regcache.c (supply_register): Update only call.
12036
f015b2e7
AC
120372002-01-14 Andrew Cagney <ac131313@redhat.com>
12038
12039 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12040 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12041 a29k-*-vxworks* targets as obsolete.
12042
356ae49d
MS
120432002-01-14 Michael Snyder <msnyder@redhat.com>
12044
12045 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12046 until we can resolve portability issues.
12047 * gregset.h: Remove references to fpxregs.
12048 * gcore.c (gcore_command): Initialize note_sec to NULL.
12049
ade8f45e
AC
120502002-01-13 Andrew Cagney <ac131313@redhat.com>
12051
12052 * signals.c (target_signal_to_name): Rewrite. Only use
12053 signals[].name when in bounds and non-NULL.
abf22e64 12054
89c49e7a
AC
120552002-01-13 Andrew Cagney <ac131313@redhat.com>
12056
12057 From Petr Ledvina <ledvinap@kae.zcu.cz>:
12058 * signals.c (target_signal_to_name): Verify that SIG is within the
12059 bounds of the signals array.
12060
4daa9f9f
AC
120612002-01-13 Andrew Cagney <ac131313@redhat.com>
12062
12063 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12064
ba4bbdcb
KS
120652002-01-13 Keith Seitz <keiths@redhat.com>
12066
12067 * stack.c (print_frame_info_base): Print the frame's pc
12068 only if when print_frame_info_listing_hook is not defined.
12069
575bbeb6
KS
120702002-01-13 Keith Seitz <keiths@redhat.com>
12071
12072 * varobj.c (varobj_set_value): Make sure that there were no
12073 errors evaluating the object before attempting to set its
12074 value.
12075 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12076 so this offset adjustment is no longer necessary.
12077 (create_child): Don't set the error flag if the child is
12078 a CPLUS_FAKE_CHILD.
12079 (value_of_child): If value_fetch_lazy fails, return NULL
12080 so that callers will be notified that an error occurred.
12081 (c_value_of_variable): Delay check of variable's validity
12082 until later. We actually want all structs and unions to have
12083 the value "{...}".
12084 Do not return "???" for variables which could not be evaluated.
12085 This error condition must be returned to the caller so that it
12086 can get the error condition from gdb.
12087 (cplus_name_of_child): Adjust index for vptr before figuring
12088 out the name of the child.
12089 (cplus_value_of_child): If a child's (real) parent is not valid,
12090 don't even bother trying to give a value for it. Just return
12091 an error. Change all instances in this function.
12092 (cplus_type_of_child): If our parent is one of the "fake"
12093 parents, we need to get at the type of the real parent, and
12094 derive the child's true type using this information.
12095
b76898ab
AC
120962002-01-13 Andrew Cagney <ac131313@redhat.com>
12097
12098 From 2002-01-09 John Marshall <johnm@falch.net>:
12099 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12100 sources.redhat.com, and tweak some related URLs which had
12101 suffered from linkrot.
12102
b6649e88
AC
121032002-01-13 Andrew Cagney <ac131313@redhat.com>
12104
12105 From Jeff law:
12106 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12107 structures passed in registers.
12108
82cc5033
EZ
121092002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
12110
12111 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12112 white space which prevented compilation. Reported by DSK
12113 <dsk@student.unsw.edu.au>.
12114
ba5f2f8a
MS
121152002-01-11 Michael Snyder <msnyder@redhat.com>
12116
fbd35540
MS
12117 * symfile.c (build_section_addr_info_from_section_tab):
12118 Use bfd access method instead of manipulating bfd directly.
12119 (syms_from_objfile): Ditto.
12120 (simple_overlay_update_1): Ditto.
12121 (simple_overlay_update): Ditto.
12122 (generic_load): Ditto.
12123 (overlay_unmapped_address): FIXME comment, bfd access methods.
12124 (sections_overlap): FIXME comment, bfd access methods.
12125 (pc_in_mapped_range): FIXME comment, bfd access methods.
12126 (pc_in_unmapped_range): FIXME comment, bfd access methods.
12127 (section_is_mapped): FIXME comment, bfd access methods.
12128 (section_is_overlay): FIXME comment, bfd access methods.
12129
ba5f2f8a
MS
12130 * symfile.c (generic_load): Whitespace and long line cleanups.
12131 Remove duplicate variable, change several local variables to
12132 more appropriate data types.
12133 (print_transfer_performance): Use %lu instead of %ld for ulongs.
12134
17df2af6
AC
121352002-01-12 Andrew Cagney <ac131313@redhat.com>
12136
12137 From Peter Schauer:
12138 * language.c (longest_local_hex_string_custom): Use phex_nz to
12139 convert NUM to a hex string.
12140
ec920329
EZ
121412002-01-12 Elena Zannoni <ezannoni@redhat.com>
12142
12143 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12144 the function.
538a76d6 12145 Update Copyright year.
ec920329 12146
3abd2e01
AC
121472002-01-12 Andrew Cagney <ac131313@redhat.com>
12148
12149 * language.c (longest_raw_hex_string): Delete unused function.
12150
b21b22e0
PS
121512002-01-11 Petr Sorfa <petrs@caldera.com>
12152
12153 * MAINTAINERS (write-after-approval): Add myself.
12154 * dwarf2read.c (read_tag_string_type): Handling of
12155 DW_AT_byte_size.
12156 (read_tag_string_type): FORTRAN fix to prevent propagation of
12157 first string size.
12158 (set_cu_language): Handling of DW_LANG_Fortran95
12159
747fe712
RE
121602002-01-11 Richard Earnshaw <rearnsha@arm.com>
12161
12162 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12163 GETPID(inferior_ptid).
12164 (store_inferior_registers): Likewise.
12165
f1bea926
JM
121662002-01-10 Jason Merrill <jason@redhat.com>
12167
12168 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12169 Fix DW_OP_minus.
12170
ae940673
AC
121712002-01-10 Andrew Cagney <ac131313@redhat.com>
12172
12173 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12174 and bfd/elf32-sh-nbsd.c.
12175
00546b04
MS
121762002-01-10 Michael Snyder <msnyder@redhat.com>
12177
352ed7b4
MS
12178 * NEWS: Mention --pid and corefile/proc-id behavior change.
12179
c18be923
MS
12180 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12181 * gcore.c: Include cli/cli-decode.h instead of command.h.
12182
00546b04
MS
12183 * main.c (captured_main): Add new command line option "--pid".
12184 If the second command line argument (following the symbol-file)
12185 begins with a digit, try to attach to it before trying to open
12186 it as a corefile.
12187 (print_gdb_help): Document the "--pid" argument.
12188
db60ec62
EZ
121892002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12190
12191 * completer.c (command_completer): New function.
12192
12193 * completer.h <command_completer>: Add prototype.
12194
12195 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12196 completer for the "help" command.
12197
39c22d1a
JM
121982002-01-09 Jason Merrill <jason@redhat.com>
12199
12200 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12201
c564377f
MS
122022002-01-09 Michael Snyder <msnyder@redhat.com>
12203
975aec09
MS
12204 * i386-linux-nat.c (fill_fpxregset): Make global.
12205 (store_fpxregset): Ditto.
12206
db4a10fa
MS
12207 * gregset.h (gdb_fpxregset_t): Define.
12208 (supply_fpxregset): Prototype.
12209 (fill_fpxregset): Prototype.
12210
c564377f
MS
12211 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12212
c3d45d70
RE
122132002-01-09 Richard Earnshaw <rearnsha@arm.com>
12214
12215 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12216 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12217 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12218
fcc87af1
AC
122192002-01-09 Andrew Cagney <ac131313@redhat.com>
12220
12221 * MAINTAINERS: Update target maintainer rules so that any
12222 Maintainer can approve a tested patch for a maintenance-only
12223 target.
12224
dd96c05b
RE
122252002-01-09 Richard Earnshaw <rearnsha@arm.com>
12226
d4297db9 12227 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 12228
d4297db9 12229 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
12230 IN_SIGTRAMP.
12231
145fdc6e
MS
122322002-01-08 Michael Snyder <msnyder@redhat.com>
12233
12234 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12235 real name of the executable, rather than the /proc name.
12236
be4d1333
MS
122372002-01-03 Michael Snyder <msnyder@redhat.com>
12238
12239 Implement a "generate-core-file" command in gdb, save target state.
12240 * gcore.c: New file. Implement new command 'generate-core-file'.
12241 Save a corefile image of the current state of the inferior.
12242 * linux-proc.c: Add linux-specific code for saving corefiles.
12243 * target.h (struct target_ops): Add new target vectors for saving
12244 corefiles; to_find_memory_regions and to_make_corefile_notes.
12245 (target_find_memory_regions): New macro.
12246 (target_make_corefile_notes): New macro.
12247 * target.c (update_current_target): Inherit new target methods.
12248 (dummy_find_memory_regions): New place-holder method.
12249 (dummy_make_corefile_notes): New place-holder method.
12250 (init_dummy_target): Initialize new dummy target vectors.
12251 * exec.c (exec_set_find_memory_regions): New function.
12252 Allow the exec_ops vector for memory regions to be taken over.
12253 (exec_make_note_section): New function, target vector method.
12254 * defs.h (exec_set_find_memory_regions): Export prototype.
12255 * procfs.c (proc_find_memory_regions): New function, corefile method.
12256 (procfs_make_note_section): New function, corefile method.
12257 (init_procfs_ops): Set new target vector pointers.
12258 (find_memory_regions_callback): New function.
12259 (procfs_do_thread_registers): New function.
12260 (procfs_corefile_thread_callback): New function.
12261 * sol-thread.c (sol_find_memory_regions): New function.
12262 (sol_make_note_section): New function.
12263 (init_sol_thread_ops): Initialize new target vectors.
12264 * inftarg.c (inftarg_set_find_memory_regions): New function.
12265 Allow to_find_memory_regions vector to be taken over.
12266 (inftarg_set_make_corefile_notes): New function.
12267 Allow to_make_corefile_notes vector to be taken over.
12268 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12269 interface layer if not target_has_execution (may be a corefile).
12270 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12271 * config/sparc/sun4sol2.mh: Ditto.
12272 * config/alpha/alpha-linux.mh: Ditto.
12273 * config/arm/linux.mh: Ditto.
12274 * config/i386/x86-64linux.mh: Ditto.
12275 * config/ia64/linux.mh: Ditto.
12276 * config/m68k/linux.mh: Ditto.
12277 * config/mips/linux.mh: Ditto.
12278 * config/powerpc/linux.mh: Ditto.
12279 * config/sparc/linux.mh: Ditto.
12280
c6b92abd
MS
122812002-01-07 Michael Snyder <msnyder@redhat.com>
12282
12283 * arm-linux-nat.c: Remove references to regcache.c internal data
12284 (registers[] and register_valid[]).
12285
4b09dc8c
MS
122862002-01-07 Michael Snyder <msnyder@redhat.com>
12287
abf22e64
AJ
12288 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12289 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
12290 symbol file and shlibs.
12291 * Makefile.in: Add rule for linux-proc.o.
12292 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12293 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12294 * config/arm/linux.mh: Ditto.
12295 * config/i386/linux.mh: Ditto.
12296 * config/i386/x86-64linux.mh: Ditto.
12297 * config/ia64/linux.mh: Ditto.
12298 * config/m68k/linux.mh: Ditto.
12299 * config/mips/linux.mh: Ditto.
12300 * config/powerpc/linux.mh: Ditto.
12301 * config/sparc/linux.mh: Ditto.
12302
c25b74ac
PM
123032002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12304
12305 * win32-nat.c: Add i386-tdep.h dependency.
12306
94cd915f
MS
123072002-01-07 Michael Snyder <msnyder@redhat.com>
12308
c7cccb76
MS
12309 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12310 instead of bfd_get_arch_size. Don't bail out just because
12311 there's no exec_bfd.
abf22e64 12312
34c0bd93
MS
12313 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12314 * p-valprint.c (pascal_object_print_value): Ditto.
12315 * somread.c (som_symtab_read): Ditto.
12316 * symfile.c (simple_free_overlay_region_table): Ditto.
12317 * valops.c (value_assign): Ditto.
12318
21c1c920
MS
12319 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12320 use tilde_expand and strerror for opening save-tracepoints file.
12321
5bbd998e
MS
12322 * thread-db.c (thread_db_new_objfile): Indendation fix.
12323
94cd915f
MS
12324 * infptrace.c (GDB_MAX_ALLOCA): New define.
12325 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 12326 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
12327 can be overridden with whatever value is appropriate to the host).
12328 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12329 alloca to allocate potentially large buffer.
12330 * rs6000-nat.c (child_xfer_memory): Ditto.
12331 * symm-nat.c (child_xfer_memory): Ditto.
12332 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12333
494e8a93
JSC
123342002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12335
12336 From Nick Clifton <nickc@redhat.com>
12337 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12338
d0e1d48e
MS
123392002-01-07 Michael Snyder <msnyder@redhat.com>
12340
abf22e64 12341 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
12342 Don't use exec_bfd if it's NULL.
12343
290b2c7a
MK
123442002-01-06 Mark Kettenis <kettenis@gnu.org>
12345
abf22e64 12346 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 12347
aef21287
AC
123482002-01-06 Andrew Cagney <ac131313@redhat.com>
12349
12350 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12351 * gnu-nat.c: Ditto.
12352
30efa627
AC
123532002-01-06 Andrew Cagney <ac131313@redhat.com>
12354
12355 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12356 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12357 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12358 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12359 z8k-coff have not been multi-arched. Update z8k-coff build
12360 status.
12361
9b4ff276
AC
123622002-01-06 Andrew Cagney <ac131313@redhat.com>
12363
12364 * MAINTAINERS: Mark a29k target as obsolete.
12365 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12366 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12367 comments.
12368 * NEWS: Note that a29k targets are obsolete.
12369 * a29k-tdep.c: Mark as obsolete.
12370 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12371 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12372 a29k-*-vxworks* targets as obsolete.
12373 * remote-adapt.c: Obsolete.
12374 * remote-eb.c: Obsolete.
12375 * remote-mm.c: Obsolete.
12376 * remote-udi.c: Obsolete.
12377 * config/a29k/a29k-udi.mt: Obsolete.
12378 * config/a29k/a29k.mt: Obsolete.
12379 * config/a29k/tm-a29k.h: Obsolete.
12380 * config/a29k/tm-vx29k.h: Obsolete.
12381 * config/a29k/vx29k.mt: Obsolete.
12382
a9011d31
AC
123832002-01-05 Andrew Cagney <ac131313@redhat.com>
12384
12385 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12386 with BFD_ENDIAN_BIG.
12387
9299404e
AC
123882002-01-05 Andrew Cagney <ac131313@redhat.com>
12389
12390 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12391 * configure, config.in: Re-generate.
12392 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12393 * defs.h: Do not include <endian.h>.
12394
7e89e357
JT
123952002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12396
12397 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12398 * config.in: Regenerate.
12399 * configure.in: Update copyright years.
12400 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12401 * configure: Regenerate.
12402 * i386bsd-nat.c: Update copyright years.
12403 (fill_gregset): Use regcache_collect.
12404 (fetch_inferior_registers): Only fetch integer registers
12405 if requested to do so. Add support for XMM registers
12406 using PT_GETXMMREGS.
12407 (store_inferior_registers): Only store integer registers
12408 if requested to do so. Add support for XMM registers
12409 using PT_SETXMMREGS.
12410 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12411 (store_inferior_registers): Remove.
12412 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12413 (fetch_elfcore_registers): New function.
12414 (i386nbsd_elfcore_fns): New.
12415 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12416 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12417 i386bsd-nat.o.
12418 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12419 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12420 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12421 * config/i386/tm-nbsd.h: Update copyright years.
12422 (HAVE_SSE_REGS): Define.
12423 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12424 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12425 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12426 (SIGCONTEXT_PC_OFFSET): Remove.
12427 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12428
a752853e
AC
124292002-01-05 Andrew Cagney <ac131313@redhat.com>
12430
12431 * configure.tgt: Remove powerpc-*-macos* target.
12432 * config/m68k/xm-mpw.h: Delete file.
12433 * config/xm-mpw.h: Delete file.
12434 * ser-mac.c: Delete file.
12435 * mpw-make.sed: Delete file.
12436 * mpw-config.in: Delete file.
12437 * mac-xdep.c: Delete file.
12438 * mac-gdb.r: Delete file.
12439 * mac-defs.h: Delete file.
12440 * mac-nat.c: Delete file.
12441 * config/powerpc/macos.mh: Delete file.
12442 * config/powerpc/macos.mt: Delete file.
12443 * config/powerpc/nm-macos.h: Delete file.
12444 * config/powerpc/tm-macos.h: Delete file.
12445 * source.c (openp, open_source_file): Remove obsolete code.
12446 * top.c (gdb_readline): Ditto.
12447 * utils.c (query): Ditto.
12448 * event-top.c (display_gdb_prompt): Ditto.
12449 * Makefile.in (ser-mac.o): Delete obsolete target.
12450 * NEWS: Update.
12451
d7449b42
AC
124522002-01-04 Andrew Cagney <ac131313@redhat.com>
12453
12454 * defs.h (BIG_ENDIAN): Delete macro definition.
12455 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12456 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12457 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12458 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12459 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12460 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12461 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12462 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12463 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12464 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12465 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12466 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12467 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12468 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12469 * gdbarch.c: Re-generate.
12470
356374e8
DJ
124712002-01-04 Daniel Jacobowitz <drow@mvista.com>
12472
12473 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12474 for core files.
12475
a2b8f8f8
JT
124762002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12477
12478 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12479
12466af9
AC
124802002-01-04 Andrew Cagney <ac131313@redhat.com>
12481
12482 * value.h (value_ptr): Delete typedef.
12483
3549ab40
JT
124842002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12485
12486 * i386nbsd-nat.c: Update copyright years.
12487 Include i386-tdep.h.
12488
fedbd091
EZ
124892002-01-04 Elena Zannoni <ezannoni@redhat.com>
12490
12491 * stabsread.c: Update copyright years.
12492
12493 From Debashis Mahata <debashis.mahata@wipro.com>:
12494 (read_struct_fields): Deal with Sun C compiler erroneous stab
12495 output for structs and unions.
fec8b34f 12496 Fix PR gdb/269.
fedbd091 12497
eb43544b
DJ
124982002-01-04 Daniel Jacobowitz <drow@mvista.com>
12499
12500 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12501 prototype.
12502
1514d34e
DJ
125032002-01-04 Daniel Jacobowitz <drow@mvista.com>
12504
12505 * cp-abi.c: Fix whitespace.
12506 (baseclass_offset): New wrapper function.
12507 * cp-abi.h (baseclass_offset): Add prototype.
12508 (struct cp_abi_ops): Add baseclass_offset pointer.
12509
12510 * valops.c (vb_match): Move to...
12511 * gnu-v2-abi.c (vb_match): here.
12512 * valops.c (baseclass_offset): Move to...
12513 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12514
12515 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12516
12517 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12518 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12519 * hpacc-abi.c (init_hpacc_ops): Likewise.
12520
7f8c9282
DJ
125212002-01-04 Daniel Jacobowitz <drow@mvista.com>
12522
12523 * valops.c (find_overload_match): Accept obj as a
12524 reference parameter. Update it before returning.
12525 * value.h (find_overload_match): Update prototype.
12526 * eval.c (evaluate_subexp_standard): Pass object to
12527 find_overload_match by reference.
12528
f23631e4
AC
125292002-01-03 Andrew Cagney <ac131313@redhat.com>
12530
12531 * valarith.c: Replace value_ptr with struct value pointer. Remove
12532 register attribute from value declarations.
12533 * valops.c: Ditto.
12534 * value.h: Ditto.
12535 * scm-lang.c (scm_lookup_name): Ditto.
12536
79e10fab 125372002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 12538
79e10fab
AC
12539 Abstract the functionality of iterating over mapped memory
12540 regions into a general purpose iterator function.
abf22e64 12541 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
12542 iterator for memory sections.
12543 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12544 (solib_mappings_callback): New function, callback for above.
12545 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12546 (info_mappings_callback): New function, callback for above.
12547
12548 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12549
c5ad026a
MK
125502002-01-01 Mark Kettenis <kettenis@gnu.org>
12551
d2a7c97a
MK
12552 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12553 * i386-tdep.c: Include "elf-bfd.h".
12554 (process_note_abi_tag_sections): New function.
12555 (i386_gdbarch_init): Add code to recognize various OS/ABI
12556 combinations.
12557
c5ad026a
MK
12558 * maint.c (_initialize_maint_cmds): Add missing \ in
12559 string-literal.
12560
a1a5b71e 12561For older changes see ChangeLog-2001
c906108c
SS
12562\f
12563Local Variables:
12564mode: change-log
12565left-margin: 8
12566fill-column: 74
12567version-control: never
12568End:
This page took 0.881892 seconds and 4 git commands to generate.