]> Git Repo - binutils.git/blame - gdb/ChangeLog
2002-10-31 Andrew Cagney <[email protected]>
[binutils.git] / gdb / ChangeLog
CommitLineData
f908a0eb
AC
12002-10-31 Andrew Cagney <[email protected]>
2
3 * frame.c (frame_read_unsigned_register): New function.
4 (frame_read_signed_register): New function.
5 * frame.h (frame_read_unsigned_register): Declare.
6 (frame_read_signed_register): Declare.
7
c5646e11
AC
82002-10-31 Andrew Cagney <[email protected]>
9
10 * h8500-tdep.c (h8500_print_registers_info): New static function,
11 clone of infcmd.c's default_print_registers_info.
12 (h8500_do_registers_info): New funtion.
13 (h8500_print_register_hook): Rename print_register_hook, make
14 static.
15
16 * config/h8500/tm-h8500.h: Update copyright.
17 (DEPRECATED_DO_REGISTERS_INFO): Define.
18 (h8500_do_registers_info: Declare.
19 (PRINT_REGISTER_HOOK): Delete macro.
20 (print_register_hook): Delete function.
21
0bdd672b
AC
222002-10-31 Andrew Cagney <[email protected]>
23
24 * z8k-tdep.c (z8k_print_register_hook): Make static.
25 (z8k_print_registers_info): New static function, clone of
26 infcmd.c's default_print_registers_info.
27 (z8k_do_registers_info): New function. Wrap
28 z8k_print_registers_info.
29 * config/z8k/tm-z8k.h: Update copyright.
30 (PRINT_REGISTER_HOOK): Delete macro.
31 (z8k_print_register_hook): Delete declaration.
32 (DEPRECATED_DO_REGISTERS_INFO): Define.
33 (z8k_do_registers_info): Declare.
34
bf9c25dc
JB
352002-10-30 Joel Brobecker <[email protected]>
36
37 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
38 as this is already provided by value.h, and was actually causing
39 a compilation error because of a conflict in parameter type
40 declaration due to a missing const keyword.
41 (low_text_segment_addres): Fix a compilation warning.
42
2c665b51
DJ
432002-10-29 Daniel Jacobowitz <[email protected]>
44
45 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
46 registers without a name.
47 (mips_linux_cannot_store_register): Don't store registers without
48 a name.
49
e70ea697
DC
502002-10-28 David Carlton <[email protected]>
51
52 * symtab.c (find_addr_symbol): Delete. (It was already commented
53 out.)
54 * symtab.h: Delete prototype for find_addr_symbol.
55
903ad3a6
AC
562002-10-26 Andrew Cagney <[email protected]>
57
58 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
59 DO_REGISTERS_INFO.
60 gdbarch.h, gdbarch.c: Re-generate.
61 * infcmd.c (default_print_registers_info): Update reference.
62 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
63 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
64 * sh-tdep.c (sh_gdbarch_init): Ditto.
65 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
66 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
67
ab91194c
MK
682002-10-26 Mark Kettenis <[email protected]>
69
e3033f15
MK
70 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
71 cfi_init_extra_frame_info.
72 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
73 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
74
b83b026c
MK
75 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
76 target where necessary. Add more comments and remove the ones
77 that don't provide any useful information.
78
267bf4bb
MK
79 * i386-tdep.c (i386_frame_saved_pc): Replace call to
80 deprecated_read_register_dummy with
81 frame_unwind_unsigned_register.
82
751f1375
MK
83 * i386-tdep.c (i386_extract_struct_value_address): Use
84 regcache_raw_read_unsigned instead of
85 regcache_cooked_read_unsigned since we know that the register
86 we're reading isn't a pseudo register. Rename variable 'val' into
87 the more descriptive 'addr'.
88
26abbdc4
MK
89 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
90 (x86_64_push_return_address): Add comment.
91 (x86_64_pop_frame): Make static.
92 (examine_argument): Clarify comment.
93 (x86_64_skip_prologue): Make prolog_expact variable static.
94
9f1549cc
MK
95 * dwarf2cfi.c: Fix some formatting problems.
96 (context_cpy, read_encoded_pointer): Clarify comments.
97
ab91194c
MK
98 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
99 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
100 i386 target back into x86_64_gdbarch_init. Add some comments and
101 remove meaningless ones.
102
72367fb4
AC
1032002-10-25 Andrew Cagney <[email protected]>
104
105 * complaints.h (struct deprecated_complaint): Rename `struct
106 complaint'.
107 * complaints.c (complain): Update.
108 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
109 incorrect comment indicating that "symfile.h" was being included
110 for the `struct complaint' definition.
111 * remote-vx.c: Update.
112 * objc-lang.c: Update.
113 * xcoffread.c: Update.
114 * hpread.c: Update.
115 * mdebugread.c: Update.
116 * stabsread.c: Update.
117 * dwarf2read.c: Update.
118 * dwarfread.c: Update.
119 * elfread.c: Update.
120 * coffread.c: Update.
121 * stabsread.h: Update.
122 * dbxread.c: Update.
123 * buildsym.c: Update.
124 * gdbtypes.c: Update.
125 * macrotab.c: Update.
126
1f2baacc
MK
1272002-10-25 Mark Kettenis <[email protected]>
128
0c1a73d6
MK
129 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
130 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
131 (x86_64_init_abi): ...new function.
132
6aee4d54 133 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
134 * i386v-nat.c: Include "i386-tdep.h".
135
8f9cbe01
AC
1362002-10-25 Andrew Cagney <[email protected]>
137
5f11f355
AC
138 * gdbtypes.c (address_space_name_to_int): Update.
139 (address_space_int_to_name): Update.
140 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
141 multi-arch predicate.
142 (address_class_name_to_type_flags): Ditto.
143 * gdbarch.h, gdbarch.c: Re-generate.
144
8f9cbe01
AC
145 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
146
e8d96a5d
MH
1472002-10-24 Martin M. Hunt <[email protected]>
148
149 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
150
fe39c653
EZ
1512002-10-24 Elena Zannoni <[email protected]>
152
153 * symtab.h (INIT_SAL): Delete macro.
154 (init_sal): Export.
155 * symtab.c (init_sal): New function.
156
157 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
158 to init_sal function call.
159 (find_sal_from_funcs_and_line): Ditto.
160 (all_sals_for_line): Ditto.
161 * breakpoint.c (create_internal_breakpoint): Ditto.
162 (create_fork_vfork_event_catchpoint): Ditto.
163 (create_exec_event_catchpoint): Ditto.
164 (parse_breakpoint_sals): Ditto.
165 (watch_command_1): Ditto.
166 (handle_gnu_4_16_catch_command): Ditto.
167 (clear_command): Ditto.
168 * hppa-tdep.c (child_enable_exception_callback): Ditto.
169 * infcmd.c (run_stack_dummy): Ditto.
170 * infrun.c (process_event_stop_test): Ditto.
171 (check_sigtramp2): Ditto.
172 (step_over_function): Ditto.
173 * linespec.c (decode_line_2): Ditto.
174 (decode_line_1): Ditto.
175 * source.c (line_info): Ditto.
176 * symtab.c (find_pc_sect_line): Ditto.
177
baed091b
ML
1782002-10-24 Michal Ludvig <[email protected]>
179
180 * dwarf2cfi.c (struct context)
181 (struct context_reg): Moved to dwarf2cfi.h
182 (context_alloc, frame_state_alloc, context_cpy):
183 Made extern instead of static, removed prototypes.
184 * dwarf2cfi.h (struct context)
185 (struct context_reg): New, moved from dwarf2cfi.c
186 (context_alloc, frame_state_alloc, context_cpy):
187 New prototypes.
188 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
189 Changed from static to extern.
190 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
191 (LINUX_SIGCONTEXT_FP_OFFSET)
192 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
193 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
194 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
195 * x86-64-tdep.c (x86_64_gdbarch_init): Several
196 set_gdbarch_*() calls now use x86-64 specific functions
197 instead of DWARF2 CFI ones.
198 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
199 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
200 (x86_64_init_extra_frame_info): New prototypes.
201
c38da1af
DC
2022002-10-23 David Carlton <[email protected]>
203
204 * linespec.c: #include "parser-defs.h".
205 Delete prototype for find_template_name_end.
206 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
207
fb9b6b35
JJ
2082002-10-23 Jeff Johnston <[email protected]>
209
210 * NEWS: add recent mi fixes.
211 * varobj.c (struct varobj): Add new "updated" flag.
212 (new_variable): Default "updated" flag to 0.
213 (varobj_set_value): Set "updated" flag to 1 if value
214 changes.
215 (varobj_update): Check varobj "updated" flag before
216 comparing old and refreshed values. Fix for
217 PR gdb/702.
218
8da065d5
DC
2192002-10-23 David Carlton <[email protected]>
220
221 * parse.c (parse_exp_1): Use BLOCK_START.
222 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
223 SYMBOL_BLOCK_VALUE.
224 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
225
87f2f08c
DC
2262002-10-23 David Carlton <[email protected]>
227
228 * symtab.c: Delete cplusplus_hint.
229 Delete prototype for find_template_name_end.
230
88cda038
EZ
2312002-10-23 Elena Zannoni <[email protected]>
232
233 * symtab.h: Update comment.
234
2625d86c
MS
2352002-10-23 Michael Snyder <[email protected]>
236
237 * printcmd.c (address_info): Restore quotes in output.
238 * valops.c (value_of_local): Restore quotes in error message.
239
9cc0d196
EZ
2402002-10-23 Elena Zannoni <[email protected]>
241
242 * symtab.c (symbol_demangled_name): New function.
243 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
244 turning most of it into a function.
245 (symbol_demangled_name): Export.
246
19de93d0
MS
2472002-10-23 Michael Snyder <[email protected]>
248
249 * valops.c (value_of_local): Restore quotes in error message.
250
89aad1f9
EZ
2512002-10-23 Elena Zannoni <[email protected]>
252
253 * symtab.c (symbol_init_language_specific): New function.
254 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
255 turning most of it into a function.
256 (symbol_init_language_specific): Export.
257
d9fa45fe
DC
2582002-10-23 David Carlton <[email protected]>
259
260 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
261 (dwarf_attr_name): Ditto.
262 (dwarf_type_encoding_name): Ditto.
263 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
264 (process_die): Handle DW_TAG_namespace,
265 DW_TAG_imported_declaration, DW_TAG_imported_module.
266 (read_namespace): New function.
267
1045b512
JB
2682002-10-22 Joel Brobecker <[email protected]>
269
270 * configure.in: Define NEW_PROC_API on Interix too.
271 * configure: Regenerate.
272
2732002-10-21 Joel Brobecker <[email protected]>
8ec41317
JB
274
275 * configure: Regenerate using the proper version of autoconf.
276
3987b9d4
EZ
2772002-10-21 Elena Zannoni <[email protected]>
278
279 * findvar.c (read_var_value): Temporarily disable TLS code, until
280 complete TLS support is added.
281
9d774e44
EZ
2822002-10-21 Jim Blandy <[email protected]>
283 Elena Zannoni <[email protected]>
284
285 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
286 for thread local storage locations.
287 (struct symbol): Add objfile field.
288 (SYMBOL_OBJFILE): Define.
289 * dwarf2read.c (is_thread_local): New static variable.
290 (new_symbol): If variable is in thread local fill in address class
291 and objfile appropriately.
292 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
293 stack operation.
294 * printcmd.c (address_info): Print the information for thread
295 local storage variable.
296 * findvar.c (read_var_value): In case of thread local variable,
297 defer to the target vector code to compute address.
298
bc4a16ae
EZ
2992002-10-21 Elena Zannoni <[email protected]>
300
301 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
302 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
303
407caf07
EZ
3042002-10-21 Elena Zannoni <[email protected]>
305
306 * symtab.h (address_class): Rename
307 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
308 * hpread.c (hpread_process_one_debug_symbol): Ditto.
309 * printcmd.c (address_info): Ditto.
310 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
311
005328e3
MK
3122002-10-20 Mark Kettenis <[email protected]>
313
afdb036a
MK
314 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
315 DBREG_DRX macro to acces debug registers.
316
ca02e098
MK
317 * Makefile.in (i386obsd-tdep.o): New target.
318
03cc47f7
MK
319 * solib-sunos.c: Include "bcache.h" and "regcache.h".
320 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
321
005328e3
MK
322 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
323 * config/i386/obsd.mt: New file.
324 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
325 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
326 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
327 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
328 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
329 * i386obsd-tdep.c: New file.
330
9c96f9f2
AF
3312002-10-19 Adam Fedor <[email protected]>
332
333 * objc-exp.y (name_not_typename): Fix invalid comment.
334
ce1ed485
MK
3352002-10-20 Mark Kettenis <[email protected]>
336
337 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
338 to allocate partial syms and macro byte caches.
339
1efc7aaa
DC
3402002-10-18 David Carlton <[email protected]>
341
342 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
343
7e1d63ec
AF
3442002-10-18 Adam Fedor <[email protected]>
345
346 * stabsread.c (find_name_end): New function.
347 (define_symbol): Use it.
348
6e8d29a9
DJ
3492002-10-18 Daniel Jacobowitz <[email protected]>
350
351 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
352 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
353 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
354 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
355
1efc7aaa 3562002-10-17 David Carlton <[email protected]>
63ca651f
DC
357
358 * symfile.h: Add opaque declaration for struct obstack.
359 Declare obsavestring to take a const char *.
360 * symfile.c (obsavestring): Make first argument a const char *.
361
1aeae86e
AF
3622002-10-16 Adam Fedor <[email protected]>
363
364 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
365 names when matching breakpoints in current file.
366
8b2dbe47
KB
3672002-10-16 Kevin Buettner <[email protected]>
368
369 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
370 (read_tag_pointer_type): Add address class support.
371 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
372 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
373 New methods.
374 * gdbarch.h, gdbarch.c: Regenerate.
375 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
376 (make_type_with_address_space, recursive_type_dump): Add address
377 class support.
378 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
379 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
380 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
381
74451869
KD
3822002-10-16 Klee Dienes <[email protected]>
383
384 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
385 to get the last character of a char[] buffer, not
386 name[sizeof(vptr_name)-1].
387
ff4cb3e8
AF
3882002-10-14 Adam Fedor <[email protected]>
389
390 * symtab.h: New objc_specific struct.
391 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
392 (SYMBOL_DEMANGLED_NAME): Likewise.
393
da2cf7e0
AF
3942002-10-14 Adam Fedor <[email protected]>
395
396 * symfile.c (init_filename_language_table): Add ObjC file extension.
397
4a351cef
AF
3982002-10-14 Adam Fedor <[email protected]>
399
400 * utils.c (puts_filtered_tabular): New function.
401 (fprintf_symbol_filtered): Get ObjC demangled name.
402 * defs.h (puts_filtered_tabular): Declared.
403
9750e763
KB
4042002-10-14 Kevin Buettner <[email protected]>
405
406 * c-lang.h (c_type_print_varspec_prefix): Delete.
407 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
408 ``need_post_space'' parameter. Adjust all callers.
409
eee771c1
DJ
4102002-10-14 Daniel Jacobowitz <[email protected]>
411
412 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
413 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
414 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
415 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
416
46c82446
AF
4172002-10-13 Adam Fedor <[email protected]>
418
419 * source.c (print_source_lines): Update comments.
420
d069f99d
AF
4212002-10-13 Adam Fedor <[email protected]>
422
423 * valops.c (value_of_local): New function.
424 (value_of_this): Use it.
425 * value.h (value_of_local): Declared.
426
53c551b7
AF
4272002-10-13 Adam Fedor <[email protected]>
428
429 * parse.c: (length_of_subexp, prefixify_subexp): Handle
430 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
431
eb392fbf
AF
4322002-10-12 Adam Fedor <[email protected]>
433
434 * language.c (binop_result_type): Add language_objc to case.
435 (integral_type): Likewise.
436 (character_type): Likewise.
437 (string_type): Likewise.
438 (boolean_type): Likewise.
439 (structured_type): Likewise.
440 (binop_type_check): Likewise.
441
e2b23ee9
AF
4422002-10-11 Adam Fedor <[email protected]>
443
444 * printcmd.c (address_info): Print 'self' for ObjC.
445
b01ab485
AF
4462002-10-11 Adam Fedor <[email protected]>
447
448 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
449 OP_SELF.
450
806e6073
AF
4512002-10-11 Adam Fedor <[email protected]>
452
453 * language.h (CAST_IS_CONVERSION): Add language_objc.
454
50f85cdf
AF
4552002-10-11 Adam Fedor <[email protected]>
456
457 * defs.h (enum language): Add language_objc.
458
0d540cdf
KD
4592002-10-11 Klee Dienes <[email protected]>
460
461 * findvar.c (read_memory_typed_address): New function.
462 * gdbcore.h (read_memory_typed_address): Add prototype.
463 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
464 to read a value destined for a CORE_ADDR, not read_memory_integer.
465 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
466 (f77_get_dynamic_lowerbound): Ditto.
467
d5dc7960
MH
4682002-10-11 Martin M. Hunt <[email protected]>
469
470 * utils.c (string_to_core_addr): After turning string into
471 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
472 which will do necessary sign-extension, etc.
473
8343f86c
DJ
4742002-10-11 Daniel Jacobowitz <[email protected]>
475
476 * c-exp.y (THIS): Delete token and grammar rule.
477 (yylex): Don't return THIS.
478 * cp-valprint.c (vtbl_ptr_name_old): Delete.
479 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
480 * demangle.c (cplus_markers): Update comment. Put '$'
481 first. Remove CPLUS_MARKER.
482 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
483 * jv-exp.y (THIS): Delete token and grammar rule.
484 (yylex): Don't return THIS.
485 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
486 * objc-exp.y (THIS): Delete token and grammar rule.
487 (yylex): Don't return THIS.
488 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
489 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
490 (read_member_functions): Likewise for opname.
491 (read_tilde_fields): Use is_cplus_marker.
492
493 * defs.h (CPLUS_MARKER): Don't define.
494 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
495 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
496 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
497 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
498 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
499
500 * config/i386/tm-i386v4.h: Delete file.
501 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
502 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
503 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
504 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
505 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
506 * config/i386/i386sco5.mt (TM_FILE): Likewise.
507 * config/i386/i386v4.mt (TM_FILE): Likewise.
508 * config/i386/ncr3000.mt (TM_FILE): Likewise.
509
967c0d83
MM
5102002-10-10 Marko Mlinar <[email protected]>
511
512 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
513 accidentially not commited 2002-10-09
514 * gdbarch.h, gdbarch.c: Re-generate.
515
f74fa174
MM
5162002-10-09 Marko Mlinar <[email protected]>
517
518 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
519 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
520 * gdbarch.h, gdbarch.c: Re-generate.
521
57349743
JB
5222002-10-08 Petr Sorfa <[email protected]>
523
524 Revised and re-submitted by John Wolfe <[email protected]>
525
526 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
527 so we can work on more than one compilation unit at a time. This
528 helps prepare GDB to handle inter-CU die references.
529 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
530 the code to be defined before struct comp_unit_head.
531 (comp_unit_head): Added new members - offset, cu_head,
532 begin_die, next and dwarf2_abbrevs.
533 (dwarf2_abbrevs): Removed single static var; now member of
534 struct comp_unit_head.
535 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
536 members.
537 (psymtab_to_symtab_1): Changed to work with the new
538 struct comp_unit_head.
539 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
540 constructs the dwarf2_abbrevs[] inside the cu_header.
541 (dwarf2_empty_abbrev_table): Now expects a ptr to a
542 dwarf2_abbrev table to clean up.
543 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
544 handling of dwarf2_abbrevs inside the cu_header.
545 (read_partial_die): Now supports the call to the new
546 dwarf2_lookup_abbrev.
547 (read_full_die): Now supports the call to the new
548 dwarf2_lookup_abbrev.
549
4092aadb
CF
5502002-10-06 Christopher Faylor <[email protected]>
551
552 * Makefile.in (install-gdbtk): Add missing continuation backslash to
553 insure that shell variables, such as "transformed_name" are propagated
554 to later shell statements in rule.
555
af0b2512
MK
5562002-10-06 Mark Kettenis <[email protected]>
557
558 * config/i386/nm-i386sco.h: Add protection against
559 multiple-inclusion. Include "i386/nm-i386v.h".
560 (REGISTER_U_ADDR): Remove define.
561 (i386_register_u_addr): Remove prototype.
562
d6020d45
MS
5632002-10-04 Michael Snyder <[email protected]>
564
565 * m32r-stub.c (handle_exception): Make sure exception is "trap"
566 before treating it as a single-step event.
567
7248f48e
AF
5682002-10-03 Adam Fedor <[email protected]>
569
570 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
571 (objc_demangle): Remove assignment in if statements, Replace
572 free with xfree.
573 (add_msglist): Likewise.
574 (end_msglist): Likewise.
575 (complare_selectors): Likewise.
576 (selectors_info): Likewise.
577 (compare_classes): Likewise.
578 (classes_info): Likewise.
579 (print_object_command): Likewise.
580 (find_objc_msgcall_submethod): Replace PTR with void *.
581 * objc-lang.h: Remove check for __STDC__.
582
52c6a6ac
JJ
5832002-10-03 Jeff Johnston <[email protected]>
584
585 * ui-out.h (ui_out_field_fmt_int): New prototype.
586 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
587 of field width and alignment.
588 * stack.c (print_frame_info_base): When printing frame level, use
589 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
590 PR gdb/192
591
7e3cec17
JJ
5922002-10-03 Jeff Johnston <[email protected]>
593
594 * MAINTAINERS: Add self to Write After Approval list.
595
a58dd373
EZ
5962002-10-02 Elena Zannoni <[email protected]>
597
598 * infcmd.c (interrupt_target_command_wrapper): Delete.
599 (interrupt_target_command): Make non static.
600 (nofp_registers_info): Make static.
601 * stack.c (return_command_wrapper): Delete.
602 (return_command): Make non static.
603
cee6ddeb
EZ
6042002-10-02 Elena Zannoni <[email protected]>
605
606 * event-top.c (gdb_setup_readline): New function. Code moved from
607 _initialize_event_loop().
608 (_initialize_event_loop): Call gdb_setup_readline().
609
c4ed33b9
AC
6102002-10-02 Andrew Cagney <[email protected]>
611
612 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
613 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
614 * gdbarch.h, gdbarch.c: Re-generate.
615
cef4f5dd
DJ
6162002-10-02 Daniel Jacobowitz <[email protected]>
617
618 Fix PR gdb/778
619 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
620 before recursing.
621 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
622 of fill_in_vptr_fieldno.
623
36dc181b 6242002-10-02 Elena Zannoni <[email protected]>
cee6ddeb 625
36dc181b
EZ
626 * inferior.h (registers_info, stepi_command, nexti_command,
627 continue_command, interrupt_target_command): Export from infcmd.c.
628 * frame.h (args_info, selected_frame_level_changed_hook,
629 return_command): Export from stack.c.
630 * v850ice.c (stepi_command, nexti_command, continue_command): use
631 prototypes from inferior.h.
632 * tracepoint.c (registers_info, args_info, locals_info): Use
633 prototypes from frame.h and inferior.h.
634 * Makefile.in (mi-main.o): Add dependency on frame.h.
635
6f99cb26
AC
6362002-10-02 Andrew Cagney <[email protected]>
637
da3eff49
AC
638 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
639 value in register 3 adjusted by ppc_gp0_regnum.
640
6f99cb26
AC
641 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
642
da615bee
MM
6432002-10-02 Marko Mlinar <[email protected]>
644
645 * MAINTAINERS: Add myself to the Write After Approval list.
646
d154bee2
AO
6472002-10-01 Alexandre Oliva <[email protected]>
648
62a49b2c
AO
649 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
650 of the section for the N64 ABI, fixed.
651
d154bee2
AO
652 * config/mips/tm-irix6.h: Include solib.h.
653
ed348acc
EZ
6542002-10-01 Elena Zannoni <[email protected]>
655
656 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
657 GNU operators.
658
da0f9dcd
AC
6592002-10-01 Andrew Cagney <[email protected]>
660
661 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
662 and that "mi0" syntax has been removed.
663
bdf64bac
DC
6642002-09-30 David Carlton <[email protected]>
665
666 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
667 * ppc-sysv-tdep.c: #include "gdb_string.h".
668 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
669 pacify GCC.
670
54c2a1e6
AC
6712002-10-01 Andrew Cagney <[email protected]>
672
673 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
674 "vrsave"'s register number.
675
cedea778
AC
6762002-09-30 Andrew Cagney <[email protected]>
677
678 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
679 use frame_unwind_signed_register to obtain the PC.
680 (mips_frame_chain): Handle a generic dummy frame.
681 (mips_init_extra_frame_info): When a generic dummy frame, don't
682 re-compute the frame base.
683 (mips_pop_frame): Handle generic dummy frames.
684 (mips_gdbarch_init): When generic dummy frames, set
685 use_generic_dummy_frames, push_dummy_frame to
686 generic_push_dummy_frame, pc_in_call_dummy to
687 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
688 generic_save_dummy_frame_tos.
689
68315eb8
AC
6902002-09-30 Andrew Cagney <[email protected]>
691
692 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
693 against TOP when TOP was explictly set.
694 (generic_push_dummy_frame): Set TOP to zero.
695
3b8630c3
EZ
6962002-09-30 Elena Zannoni <[email protected]>
697
698 * event-loop.c (start_event_loop): Rename variable 'result' to
699 'gdb_result', to avoid conflicts with upcoming intepreters changes.
700
28ee05e9
KS
7012002-09-30 Keith Seitz <[email protected]>
702
703 * gdb-events.sh (selected_thread_changed): New event.
704 * gdb-events.c: Regenerated.
705 * gdb-events.h: Regenerated.
706
6eecb1c8
HPN
7072002-09-30 Hans-Peter Nilsson <[email protected]>
708
709 * MAINTAINERS: Add self to Write After Approval list.
710
92df71f0
FN
7112002-09-30 Fernando Nasser <[email protected]>
712
3b8630c3
EZ
713 * disasm.c: New file.
714 * disasm.h: New file.
92df71f0
FN
715 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
716 (compare_lines): Ditto.
717 (dump_insns): Ditto.
3b8630c3
EZ
718 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
719 argument.
92df71f0 720 (do_assembly_only): Ditto.
3b8630c3
EZ
721 (do_disassembly): Renamed to gdb_disassembly and moved to
722 disasm.c. Sdded uiout argument.
723 * Makefile.in: Add new files. Reorder SFILES list. Update
724 dependencies. Include libgdb.a later in the insight executable.
92df71f0 725
0c22854d
AC
7262002-09-29 Andrew Cagney <[email protected]>
727
728 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
729 bfd/elf64-alpha-fbsd.c.
730
e67f2023
AC
7312002-09-29 Andrew Cagney <[email protected]>
732
733 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
734 i386gnu-tdep.c.
735
89396210
AC
7362002-09-29 Andrew Cagney <[email protected]>
737
738 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
739 __FUNCTION__.
740 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
741 function name.
742 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
743 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
744 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
745 (S_msg_sig_post_reply): Ditto.
746
7079c36c
CV
7472002-09-28 Corinna Vinschen <[email protected]>
748
89396210
AC
749 * sh-tdep.c (sh_use_struct_convention): Use definition according
750 to ABI.
7079c36c
CV
751 (sh_push_arguments): Store in register with correct endianess.
752 (sh_default_store_return_value): Ditto.
753 (sh_gdbarch_init): Set sizeof long double to 8.
754
975ac915
MK
7552002-09-27 Mark Kettenis <[email protected]>
756
757 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
758 Fix some whitespace problems.
759
9bbe19fb
DC
7602002-09-27 David Carlton <[email protected]>
761
762 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
763 (mcore-tdep.o): Ditto.
764 (ns32k-tdep.o): Ditto.
765 (ns32knbsd-tdep.o): Ditto.
766 (sh3-rom.o): Ditto.
767 (vax-tdep.o): Ditto.
768 * cris-tdep.c: #include "gdb_string.h"
769 * mcore-tdep.c: Ditto.
770 * ns32k-tdep.c: Ditto.
771 * ns32knbsd-tdep.c: Ditto.
772 * sh3-rom.c: Ditto.
773 * vax-tdep.c: Ditto.
774
43b2fdc7
DC
7752002-09-27 David Carlton <[email protected]>
776
777 * config/djgpp/fnchange.lst: Add entries for
778 gdb/testsuite/gdb.c++/m-static files.
779
e8cfbbd9
JW
7802002-09-27 Jim Wilson <[email protected]>
781
782 * MAINTAINERS: Add myself to the Write After Approval list.
783
43b2fdc7 7842002-09-26 Martin M. Hunt <[email protected]>
4e0df2df
MH
785
786 * mips-tdep.c (find_proc_desc): Initialize startaddr.
787
788
9f3b7f07
AC
7892002-09-26 Andrew Cagney <[email protected]>
790
791 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
792 frame.
793
11269d7e
AC
7942002-09-26 Andrew Cagney <[email protected]>
795
796 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
797 (rs6000_struct_return_address): Delete variable.
798 (rs6000_store_struct_return): Update.
799 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
800 deprecated_extract_struct_value_address.
801 (rs6000_frame_align): New function.
802 (rs6000_gdbarch_init): Set frame_align.
803
f15ab4a7
AC
8042002-09-26 Andrew Cagney <[email protected]>
805
806 From Grace Sainsbury <[email protected]>:
807 * Makefile.in (gdbtk-main.o): New target.
808 (gdb.o): New target.
809 (main_h): Define.
810 (main.o): Update dependencies.
811 (gdb$(EXEEXT)): Add gdb.o.
812 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
813 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
814 (SUBDIR_GDBTK_CLEAN): Set.
815 (install-gdbtk): Install the insight binary.
816 (uninstall-gdbtk): New target.
817 (all-gdbtk, clean-gdbtk): New rule.
818 * top.c (use_windows): Default to zero.
819 * main.c: Include "main.h".
820 (main): Delete.
821 (struct captured_main_args): Delete.
822 (gdb_main): New function.
823 * main.h: New file.
824 * gdb.c: New File.
825
e36180d7
AC
8262002-09-25 Andrew Cagney <[email protected]>
827
828 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
829 (frame_map_regnum_to_name): New function.
830 (frame_map_name_to_regnum): New function.
831 * frame.h (frame_map_name_to_regnum): Declare.
832 (frame_map_regnum_to_name): Declare.
833 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
834 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
835 * parse.c: Do not include "builtin-regs.h".
836 (target_map_name_to_register): Delete function.
837 (write_dollar_variable): Use frame_map_name_to_regnum.
838 * parser-defs.h (target_map_name_to_register): Delete declaration.
839 * expprint.c: Include "frame.h".
840 (print_subexp): Use frame_map_regnum_to_name.
841 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
842 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
843
8b69000d
AC
8442002-09-25 Andrew Cagney <[email protected]>
845
846 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
847 wasn't saved, and the next innermost frame is a dummy, return the
848 dummy frame's link register.
849
046ca86a
JB
8502002-09-24 Jim Blandy <[email protected]>
851
852 Fix from Paul Breed:
853 * main.c (captured_main): Add a `break' after the case for 'b'.
854
94b66fa7
KS
8552002-09-24 Keith Seitz <[email protected]>
856
857 * varobj.c (c_type_of_child): Use get_target_type instead
858 of TYPE_TARGET_TYPE.
859
c214a6fd
FN
8602002-09-22 Fernando Nasser <[email protected]>
861
53cb0458
FN
862 * source.c (get_current_or_default_source_symtab_and_line): Remove
863 function.
864 (set_default_source_symtab_and_line): New function. Attempts to
865 determine a source file to list lines from if one is not currently
866 defined.
867 (get_current_source_symtab_and_line): Initialize sal.pc and
868 sal.end fields.
869 (set_current_source_symtab_and_line): Mark argument as const.
870 * source.h: Update declarations and comments.
871 * linespec.c (decode_line_1): Replace call to removed routine above.
872 * stack.c (print_frame_info_base): Ditto.
873 * cli/cli-cmds.c (edit_command): Ditto.
874 (list_command): Ditto.
875
8762002-09-22 Fernando Nasser <[email protected]>
877
d6020d45 878 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 879 sal.pc and sal.end fields.
c214a6fd
FN
880 (get_current_or_default_source_symtab_and_line): Ditto.
881 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
882 so we do not cause a new source symtab to be searched for (reverting an
883 unintentional change from the 2002-09-20 patch).
884 * scm-lang.c (scm_unpac): Ditto.
885
cc3b68a5
AC
8862002-09-21 Andrew Cagney <[email protected]>
887
888 * complaints.c (symfile_explanations): Remove new-line from
889 ``isolated_message''.
890 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
891 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
892
5835abe7
NC
8932002-09-20 Nick Clifton <[email protected]>
894
895 * NEWS: Announce that V850EA ISA is no longer supported.
896 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
897
a15ef5f5
DC
8982002-09-20 David Carlton <[email protected]>
899
06ba1b39
DC
900 * Makefile.in (c-lang.o): Correct dependencies.
901 (utils.o): Gather dependencies.
902 (charset.o): Move.
a15ef5f5
DC
903 * c-lang.c: #include "gdb_string.h"
904
87885426
FN
9052002-09-20 Fernando Nasser <[email protected]>
906
907 From 2002-07-02 George Helffrich <[email protected]>
908 * cli/cli-cmds.c (list_command): New function. Implements the new
909 cli edit command.
910 (_init_cli_cmds): Add new command definition.
911 * gdb.1: Document edit command.
912 * doc/gdb.texinfo: Document edit command.
913
9142002-09-20 Fernando Nasser <[email protected]>
0378c332
FN
915
916 * source.c: Make global variables current_source_symtab and
917 current_source_line static.
918 (list_command): Moved to cli/cli-cmds.c.
919 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
920 (get_first_line_listed): New accessor function.
921 (get_lines_to_list): New accessor function.
922 (get_current_source_symtab_and_line): New function. Retrieves the
923 position in the source code that we consider current.
924 (get_current_or_default_source_symtab_and_line): New function.
925 Like the above but attempts to determine a default position if one
926 is not currently defined.
927 (set_current_source_symtab_and_line): New function. Sets the source
928 code position considered current and returns the previously set one.
929 (clear_current_source_symtab_and_line): Reset stored information about
930 a current source line.
931 (_initialize_source): Remove registration for the "list" command and
932 its alias.
933 * source.h: Add declarations for the new functions above.
934 * symtab.h: Remove declarations for the global variables mentioned
935 above.
936 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
937 obtain current source line.
938 * linespec.c (decode_line_1): Ditto.
939 * macroscope.c (default_macro_scope): Ditto.
940 * scm-lang.c (scm_unpac): Ditto.
941 * stack.c (print_frame_info_base): Ditto.
942 * symfile.c (clear_symtab_users): Ditto.
943 * symtab.c (decode_line_spec): Ditto.
944 * cli/cli-cmds.c (list_command): Moved here from source.c.
945 (ambiguous_line_spec): Moved here from source.c.
946 (_init_cli_cmds): Add definition for "list" and its alias.
947 * Makefile.in: Update dependencies.
948
ddd216ea
CV
9492002-09-20 Corinna Vinschen <[email protected]>
950
951 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
952 with what gcc thinks is correct.
953
6d305052
CV
9542002-09-20 Corinna Vinschen <[email protected]>
955
956 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
957 multiple register push instruction.
958
234b45d4
KB
9592002-09-19 Jim Blandy <[email protected]>
960
961 Add support for distinct host and target character sets.
962 * charset.c, charset.h: New files.
963 * c-exp.y: #include "charset.h".
964 (yylex): Convert character and string literals to the target
965 character set, before returning them as the semantic value of the
966 token.
967 * c-lang.c: #include "charset.h".
968 (c_emit_char): Use charset-specific methods to recognize
969 characters with backslash escape forms, to decide which characters
970 to print literally and which to print using numeric escape
971 sequences, and to convert target characters to host characters
972 before printing.
973 * utils.c: #include "charset.h".
974 (no_control_char_error): New function.
975 (parse_escape): Use charset-specific methods to recognize
976 backslash escapes, parse `control character' notation, and convert
977 characters from the host character set to the target character set.
978 * configure.in: Set the default host character set.
979 Check where to find iconv, and what its argument types might be.
980 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
981 * Makefile.in (SFILES): List charset.c.
982 (COMMON_OBS): List charset.o.
983 (charset.o): New rule.
984 (charset_h): New header dependency variable.
985 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
986 (LIBICONV): New variable, set by configure.
987 (CLIBS): Include $(LIBICONV) here.
988 * aclocal.m4, config.in, configure: Regenerated.
989
525d6a61
JB
9902002-09-19 Joel Brobecker <[email protected]>
991
992 * ada-exp.y: Add missing semicolons to end rules. Fixes a
993 bison 1.35 warning.
994
3ed93867
RE
9952002-09-19 Richard Earnshaw <[email protected]>
996
997 * gdb_mbuild.sh: New file.
998
437666f8
AC
9992002-09-19 Andrew Cagney <[email protected]>
1000
1001 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1002
389e51db
AC
10032002-09-18 Andrew Cagney <[email protected]>
1004
1005 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1006 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1007 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1008 valops.c, value.h: Revert previous change.
1009
3b4efeaa
MS
10102002-09-18 Michael Snyder <[email protected]>
1011
1012 Preliminary support for Objective-C:
1013 * defs.h (language_objc): New enum value.
1014 (puts_filtered_tabular): Declaration only, exported from utils.c.
1015 (skip_quoted): Delete, declared in completer.h.
1016 * c-exp.y: Include completer.h.
1017 * p-exp.y: Ditto.
1018 * jv-exp.y: Ditto.
1019 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1020 New operator enum values.
1021 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1022 * language.c (binop_result_type): Handle language_objc case.
1023 (integral_type, character_type, string_type, boolean_type,
1024 structured_type, binop_type_check): Ditto.
1025 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1026 (struct objc_specific): Add to general_symbol_info.
1027 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1028 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1029 * parser-defs.h (struct objc_class_str): New struct type.
1030 (start_msglist, end_msglist, add_msglist): Declaration only,
1031 exported from objc-lang.c.
1032 * value.h (value_of_local, value_nsstring,
1033 call_function_by_hand_expecting_type): Exported from valops.c.
1034 * valops.c (find_function_addr): Export.
1035 (call_function_by_hand_expecting_type): New function.
1036 (value_of_local): New function.
1037 * symfile.c (init_filename_language_table): Add ".m" extension
1038 for Objective-C.
1039 * utils.c (puts_filtered_tabular): New function.
1040 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1041 (set/show demangle): Extend help-string to refer to ObjC.
1042 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1043 * stabsread.c (symbol_reference_defined): Objective-C symbols
1044 may contain colons: make allowances when scanning stabs strings
1045 for colons.
1046 (objc_find_colon): New function.
1047 * printcmd.c (address_info): If language == objc then print
1048 "self" instead of "this".
1049 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1050 OP_NSSTRING, and OP_SELF.
1051 (prefixify_subexp): Ditto.
1052 * source.c (print_source_lines): Mention objc in comment.
1053 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1054 method names.
1055
b9caf505
AC
10562002-09-18 Andrew Cagney <[email protected]>
1057
1058 * complaints.h: Update copyright.
1059 (struct complaints): Declare.
1060 (struct complaint): Make `message' constant.
1061 (internal_complaint): Declare.
1062 (complaint): Declare.
1063 (complaint_root): Delete declaration.
1064 (symfile_complaints): Delete declaration.
1065 (struct complaints): Add opaque declaration.
1066 (clear_complaints): Add a complaints parameter.
1067 * complaints.c: Update copyright.
1068 (enum complaint_series): Define.
1069 (complaint_root): Delete.
1070 (struct complaints): Define.
1071 (complaint_sentinel, symfile_complaint_book): New variables.
1072 (symfile_explanations, symfile_complaints): New variables.
1073 New variables.
1074 (get_complaints): New function.
1075 (vcomplaint): New function.
1076 (complaint): New function.
1077 (internal_complaint): New function.
1078 (complain): Call vcomplain with symfile_complaint.
1079 (clear_complaints): Rewrite.
1080 (_initialize_complaints): Use add_setshow_command.
1081 * Makefile.in (complaints.o): Update dependencies.
1082 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1083 to call to clear_complaints.
1084 (new_symfile_objfile, reread_symbols): Ditto.
1085 (oldsyms_complaint): Delete.
1086 (empty_symtab_complaint, unknown_option_complaint): Delete.
1087 (free_named_symtabs): Use complaint instead of complain.
1088
d2e6263c
MS
10892002-09-18 Michael Snyder <[email protected]>
1090
5fb2031a
AC
1091 Contributed by Apple Computer, Inc. Merged with current sources
1092 by Adam Fedor <[email protected]> [cagney].
1093
d2e6263c
MS
1094 * objc-lang.c: First clean-up round: comments, indentation.
1095 * objc-lang.h: Ditto.
1096 * objc-lang.y: Ditto.
1097
dec43320
AC
10982002-09-18 Andrew Cagney <[email protected]>
1099
1100 * maint.c (maintenance_internal_error): Print the parameter as the
1101 error message.
1102 (maintenance_internal_warning): New function.
1103 (_initialize_maint_cmds): Add command `maint internal-warning'.
1104
1105 * defs.h (internal_warning, internal_vwarning): Declare.
1106 * utils.c (struct internal_problem): Define.
1107 (internal_vproblem): New function.
1108 (internal_warning): New function.
1109 (internal_vwarning): New function.
1110 (internal_warning_problem, internal_error_problem): New variables.
1111 (internal_verror): Just call internal_vproblem.
1112
b81654f1
MS
11132002-09-18 Michael Snyder <[email protected]>
1114
1115 * objc-lang.c: New file, support for Objective-C.
1116 Preliminary check-in, not yet integrated into gdb.
1117 * objc-lang.h: New file.
1118 * objc-exp.y: New file.
1119
0542c381
AC
11202002-09-18 Andrew Cagney <[email protected]>
1121
7bda5e4a
AC
1122 * infrun.c (signal_stop_update): Convert definition to ISO C.
1123 (signal_print_update): Ditto.
1124 (signal_pass_update): Ditto.
1125 * inflow.c (terminal_save_ours): Ditto.
1126
5247b418
AC
1127 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1128 comments.
1129
fc60962c
AC
1130 * config/djgpp/fnchange.lst: Handle name clashes between
1131 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1132 bfd/coff-tic80.c.
1133
0542c381
AC
1134 * i386-linux-tdep.h: Fix tipo.
1135
5b924b9b
AF
11362002-09-18 Adam Fedor <[email protected]>
1137
1138 * MAINTAINERS: Add myself to the Write After Approval list.
1139
5afc051b
JB
11402002-09-18 Jim Blandy <[email protected]>
1141
1142 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1143 texthigh and textlow to reader-specific structs caused
1144 objfile_relocate to miss them. This is fixable, but the work that
1145 the change was supposed to prepare GDB for never got done anyway.
1146
eb944380
DC
11472002-09-18 David Carlton <[email protected]>
1148
1149 * MAINTAINERS: Alphabetize Write After Approval list.
1150
948e66d9
DJ
11512002-09-18 Daniel Jacobowitz <[email protected]>
1152
1153 Fix PR gdb/709
1154 * values.c (value_static_field): Call read_var_value.
1155
dc604539
AC
11562002-09-18 Andrew Cagney <[email protected]>
1157
1158 * valops.c (hand_function_call): Align the initial stack pointer
1159 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1160 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1161 return value.
1162 * mips-tdep.c (mips_frame_align): New function.
1163 (mips_gdbarch_init): Set frame_align.
1164 * gdbarch.sh (FRAME_ALIGN): New method.
1165 * gdbarch.h, gdbarch.c: Re-generate.
1166
cb7e422f
ML
11672002-09-18 Michal Ludvig <[email protected]>
1168
1169 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1170 registers.
1171
a094c6fb
AC
11722002-09-17 Andrew Cagney <[email protected]>
1173
1174 * NEWS: Mention that MIPS $fp behavior changed.
1175 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1176 reference to FP_REGNUM.
1177 (mipsnbsd_cannot_store_register): Ditto.
1178 * mips-linux-nat.c: Update copyright.
1179 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1180 (mips_linux_cannot_store_register): Ditto.
1181 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1182 * config/mips/tm-mips.h: Update copyright.
1183 (FP_REGNUM): Delete macro.
1184 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1185 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1186 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1187 (mips_r3041_reg_names, mips_r3051_reg_names)
1188 (mips_r3081_reg_names): Replace "fp" with "".
1189 Fix PR gdb/480.
1190
45cf40d1
TR
11912002-09-17 Theodore A. Roth <[email protected]>
1192
1193 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1194 generic_read_register_dummy() (PR gdb/703).
1195 (avr_push_return_address): #if 0 out unused vars.
1196 (avr_gdbarch_init): Enable use of avr_push_return_address().
1197
c7e701b5
MS
11982002-09-17 Michael Snyder <[email protected]>
1199
d76ba2a5 1200 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
1201 RTE will take care of it.
1202
20bcf01c
AC
12032002-09-17 Andrew Cagney <[email protected]>
1204
1205 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1206 invalid, return SP_REGNUM.
1207
009a9971 12082002-09-17 Michael Snyder <[email protected]>
21f87145
MS
1209
1210 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1211 point registers without sign extension.
1212
135c175f
AC
12132002-09-17 Andrew Cagney <[email protected]>
1214
1215 * blockframe.c (deprecated_read_register_dummy): Rename
1216 generic_read_register_dummy.
1217 * frame.c (frame_unwind_signed_register): New function.
1218 (frame_unwind_unsigned_register): New function.
1219 * frame.h (frame_unwind_signed_register): Declare.
1220 (frame_unwind_unsigned_register): Declare.
1221 (deprecated_read_register_dummy): Rename
1222 generic_read_register_dummy.
1223
1224 * h8300-tdep.c (h8300_frame_chain): Update.
1225 (h8300_frame_saved_pc): Update.
1226 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1227 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1228 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1229 (s390_frame_chain): Update.
1230 * v850-tdep.c (v850_find_callers_reg): Update.
1231 (v850_frame_saved_pc): Update.
1232 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1233 (m32r_find_callers_reg): Update.
1234 (m32r_frame_saved_pc): Update.
1235 * sh-tdep.c (sh_find_callers_reg): Update.
1236 (sh64_get_saved_pr): Update.
1237 (sh_init_extra_frame_info): Update.
1238 (sh_init_extra_frame_info): Update.
1239 (sh64_init_extra_frame_info): Update.
1240 (sh64_init_extra_frame_info): Update.
1241 * mcore-tdep.c (mcore_find_callers_reg): Update.
1242 (mcore_frame_saved_pc): Update.
1243 (mcore_init_extra_frame_info): Update.
1244 * i386-tdep.c (i386_frame_saved_pc): Update.
1245 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1246 (ia64_init_extra_frame_info): Update.
1247 (ia64_init_extra_frame_info): Update.
1248 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1249 * cris-tdep.c (cris_init_extra_frame_info): Update.
1250 * avr-tdep.c (avr_frame_chain): Update.
1251 (avr_init_extra_frame_info): Update.
1252 (avr_frame_saved_pc): Update.
1253 * arm-tdep.c (arm_find_callers_reg): Update.
1254 (arm_init_extra_frame_info): Update.
1255 (arm_frame_saved_pc): Update.
1256
a741e514
TT
12572002-09-17 Tom Tromey <[email protected]>
1258
1259 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1260 is "'".
1261
d1a8e808
CV
12622002-09-17 Corinna Vinschen <[email protected]>
1263
1264 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1265 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1266 NEXT_PROLOGUE_INSN.
1267 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1268 NEXT_PROLOGUE_INSN.
1269
d9025a18
JB
12702002-09-16 Joel Brobecker <[email protected]>
1271
1272 * osfsolib.c: Remove file, replaced by solib-osf.c.
1273 * Makefile.in: Remove compilation rules for osfsolib.c.
1274
1b2ef1b6
DC
12752002-09-16 David Carlton <[email protected]>
1276
1277 * cp-valprint.c (cp_print_class_method): Correct args to
1278 check_stub_method_group.
1279
928e48af
CV
12802002-09-16 Corinna Vinschen <[email protected]>
1281
1282 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1283 `set architecture'. Unify naming convention of functions.
1284 (h8300_skip_prologue): Improve prologue analysis.
1285 (h8300_push_arguments): Rewritten to more closely match GCC's
1286 bizarre argument-passing behavior, along with the comment describing
1287 said behavior.
1288 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1289 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1290 sim, remote-e7000.c, remote-hms.c and remote.c
1291
5e3397bb
MK
12922002-09-15 Mark Kettenis <[email protected]>
1293
1294 * i386-tdep.c (gdb_print_insn_i386): Removed.
1295 (i386_print_insn): New function.
1296 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1297 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1298 tm_print_insn_info.
1299
f710f4fc
MK
13002002-09-14 Mark Kettenis <[email protected]>
1301
1302 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1303 zero.
1304
db54fef4
CV
13052002-09-14 Corinna Vinschen <[email protected]>
1306
1307 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1308 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1309 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1310
2becadee
CF
13112002-09-13 Christopher Faylor <[email protected]>
1312
1313 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1314
de17c821
DJ
13152002-09-13 Daniel Jacobowitz <[email protected]>
1316
1317 * gdbtypes.c (check_stub_method): Make static.
1318 (check_stub_method_group): New function.
1319 * gdbtypes.h: Update prototypes.
1320 * cp-support.c: New file.
1321 * cp-support.h: New file.
1322
1323 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1324 (update_method_name_from_physname): New function.
1325 (read_member_functions): Correct method names for operators
1326 and v3 constructors/destructors. Separate v2 constructors and
1327 destructors.
1328 * Makefile.in (stabsread.o): Update dependencies.
1329 (SFILES): Add cp-support.c.
1330 (COMMON_OBS): Add cp-support.o.
1331 (cp_support_h, cp-support.o): Add.
1332
1333 * cp-valprint.c (cp_print_class_method): Call
1334 check_stub_method_group instead of check_stub_method. Remove
1335 extraneous QUITs.
1336 * p-valprint.c (pascal_object_print_class_method): Likewise.
1337 * valops.c (search_struct_method): Likewise.
1338 (find_method_list, value_struct_elt_for_reference): Likewise.
1339
e76cff22
AC
13402002-09-13 Andrew Cagney <[email protected]>
1341
1342 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1343 * gdbarch.h, gdbarch.c: Regenerate.
1344
905abb3f
AC
13452002-09-13 Andrew Cagney <[email protected]>
1346
1347 * frame.c (find_saved_register): Delete function.
1348 * frame.h (find_saved_register): Delete declaration.
1349 Fix PR gdb/631.
1350
64159455
AC
1351Fri Sep 13 14:59:55 2002 Andrew Cagney <[email protected]>
1352
1353 * mips-tdep.c (read_next_frame_reg): Re-hack using
1354 frame_register_unwind.
1355
795e1e11
AC
1356Fri Sep 13 07:42:09 2002 Andrew Cagney <[email protected]>
1357
1358 * mips-tdep.c (mips_get_saved_register): Re-hack using
1359 frame_register_unwind.
1360
5720643c
JB
13612002-09-12 Joel Brobecker <[email protected]>
1362
1363 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1364 vector. Will be useful for Interix.
1365 * gdbarch.h, gdbarch.c: Regenerate.
1366
1367 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1368 name of the malloc function by NAME_OF_MALLOC.
1369
3bada2a2
JB
13702002-09-12 Joel Brobecker <[email protected]>
1371
1372 * value.h (find_function_in_inferior): Add const keyword to
1373 one of the parameters. Allows us to invoke this function with
1374 a const char *.
1375 * valops.c (find_function_in_inferior): Likewise.
1376
3db26b01
JB
13772002-09-12 Joel Brobecker <[email protected]>
1378
1379 * exec.c (xfer_memory): Fix compilation warning with old versions
1380 of GCC.
1381 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1382
17c5ed2c
DC
13832002-09-12 David Carlton <[email protected]>
1384
1385 * symtab.h: Run through gdb_indent.h.
1386 Add 2002 to Copyright year list.
1387
ecd1107e
AM
13882002-09-12 Alan Modra <[email protected]>
1389
1390 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1391 mach constants.
1392 * MAINTAINERS: Add myself to write after approval list.
1393
e64f66d1
JB
13942002-09-11 J. Brobecker <[email protected]>
1395
1396 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1397
f9395794
JB
13982002-09-11 J. Brobecker <[email protected]>
1399
1400 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1401 Interix.
1402
1a303dec
MS
14032002-06-05 Paul N. Hilfinger <[email protected]>
1404
1405 * procfs.c (do_detach): Clear current signal, not just fault.
1406 Corrects problem with breakpoint trap signal leaking to detached
1407 process on Tru64.
1408
c0219d42
MS
14092002-09-10 Michael Snyder <[email protected]>
1410
1411 * buildsym.c (finish_block): Protect against null pointer.
1412
9d84ac84
AC
14132002-09-10 Andrew Cagney <[email protected]>
1414
1415 * infcmd.c (default_print_registers_info): Send all output to
1416 ``file'' instead of ``gdb_stdout''.
1417
77d8f2b4
MS
14182002-09-10 Michael Snyder <[email protected]>
1419
1420 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1421 LONGEST, and use signed register read (addresses are sign-
1422 extended for mips).
1423
99656a61
SC
14242002-09-10 Stephane Carrez <[email protected]>
1425
1426 * event-loop.c (gdb_do_one_event): Make public.
1427 * event-loop.h (gdb_do_one_event): Declare.
1428
da12f4d8
JL
14292002-09-10 Jeff Law <[email protected]>
1430
1431 * infttrace.c (child_resume): Simplify and rework to avoid
1432 TT_PROC_CONTINUE.
1433
d0aee0c4
FF
14342002-09-09 Fred Fish <[email protected]>
1435
1436 * printcmd.c (print_scalar_formatted): "len" is the number of
1437 target bytes, NOT the number of target bits.
1438
7cb3ec5e
EZ
14392002-09-09 Elena Zannoni <[email protected]>
1440
1441 From: Emmanuel Thome' <[email protected]>
1442 * top.c (init_main): Set rl_terminal_name.
1443
4dc81987
AS
14442002-09-08 Aidan Skinner <[email protected]>
1445
1446 * ada-lang.c (ada_array_bound, ada_type_match,
1447 _initialize_ada_language): Fix K&R definitions.
1448 * ada-tasks.c (get_current_task): Fix K&R definitions.
1449 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1450
842330b4
CF
14512002-09-07 Christopher Faylor <[email protected]>
1452
1453 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1454 Add XP.
1455
43156d82
MK
14562002-09-06 Mark Kettenis <[email protected]>
1457
66da5fd8
MK
1458 * i386-tdep.c (i386_register_virtual_type,
1459 i386_register_convertible, i386_register_convert_to_virtual,
1460 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1461 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1462 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1463 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1464 Don't set push_arguments twice.
1465
4b218c18
MK
1466 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1467 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1468 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1469 sigtramp_end to NULL.
1470 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1471 defines.
1472 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1473
4cc314d5
MK
1474 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1475 whitespace.
1476
43156d82
MK
1477 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1478 * gdbarch.h, gdbarch.c: Re-generate.
1479 * blockframe.c (find_pc_sect_partial_function): Convert to use
1480 SIGTRAMP_START_P predicate.
1481
6672060b
MS
14822002-09-05 Michael Snyder <[email protected]>
1483
a90c3637
MS
1484 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1485 generic_dummy_frame method and old method. Also distinguish
1486 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 1487 (arm_extract_return_value): Use new regcache method.
a90c3637 1488
6672060b
MS
1489 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1490 adjustment that doesn't conform to the ABI.
1491 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1492 saved regcache, not from current regcache.
1493
299ffc64
AC
14942002-09-05 Andrew Cagney <[email protected]>
1495
1496 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1497 * README: Update.
1498
a3a2ee65
JT
14992002-09-04 Jason Thorpe <[email protected]>
1500
1501 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1502 if arm_apcs_32 is false.
1503
2bc7eea9
AC
15042002-09-04 Andrew Cagney <[email protected]>
1505
1506 GDB 5.3 branch created.
1507
8a55a7c5
TR
15082002-09-03 Theodore A. Roth <[email protected]>
1509
1510 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1511 generic_unwind_get_saved_register.
1512
e26fb1d7
DC
15132002-09-03 David Carlton <[email protected]>
1514
1515 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1516 argument (PR gdb/653). Update call to smash_to_method_type.
1517 (read_structure_scope): Update call to dwarf2_add_member_fn.
1518
30d52491
ML
15192002-09-03 Michal Ludvig <[email protected]>
1520
1521 * x86-64-linux-tdep.c: Include gdb_string.h
1522 * x86-64-linux-nat.c: Ditto.
1523
06891d83
JT
15242002-09-02 Jason Thorpe <[email protected]>
1525
1526 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1527 when YYDEBUG is set to 1.
1528 * c-exp.y: Likewise.
1529 * f-exp.y: Likewise.
1530 * jv-exp.y: Likewise.
1531 * m2-exp.y: Likewise.
1532 * p-exp.y: Likewise.
1533
7d400e77
JT
15342002-09-02 Jason Thorpe <[email protected]>
1535
1536 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1537 dependency list.
1538 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1539 solib_svr4_fetch_link_map_offsets to
1540 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1541 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1542 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1543 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1544 solib-svr4.o, and solib-legacy.o.
1545 * config/i386/tm-nbsd.h: Include solib.h.
1546
704a27c4
JT
15472002-09-02 Jason Thorpe <[email protected]>
1548
1549 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1550 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1551 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1552 comment noting that this needs its own target configuration.
1553 * config/i386/nbsd.mt: New file.
1554 * config/i386/nbsdaout.mt: Remove.
1555 * config/i386/nbsdelf.mt: Ditto.
1556 * config/i386/tm-nbsdaout.h: Ditto.
1557
d66198e1
JT
15582002-09-02 Jason Thorpe <[email protected]>
1559
1560 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1561 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1562 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1563 tdep->sigtramp_end.
1564 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1565 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1566 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1567
3cac699e
JT
15682002-09-02 Jason Thorpe <[email protected]>
1569
1570 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1571 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1572 * i386-tdep.h (i386bsd_init_abi): New prototype.
1573 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1574 function declaration.
1575 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1576 for NetBSD-a.out or NetBSD-ELF.
1577 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1578 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1579 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1580 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1581 and nbsd-tdep.h.
1582 (i386nbsd_pc_in_sigtramp): New function.
1583 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1584 i386nbsd_pc_in_sigtramp.
1585 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1586 and i386nbsdelf_init_abi OS ABI handlers.
1587 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1588 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1589
7010ca0a
MK
15902002-09-02 Mark Kettenis <[email protected]>
1591
1592 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1593 registers if the target really has them.
1594
6dd93b72
JT
15952002-08-31 Jason Thorpe <[email protected]>
1596
1597 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1598 than nbsd-tdep.h.
1599
2ca8ae21
JT
16002002-08-31 Jason Thorpe <[email protected]>
1601
1602 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1603 list.
1604 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1605 (alphanbsd_skip_sigtramp_frame): New functions.
1606 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1607 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1608 to alphanbsd_sigcontext_addr.
1609
3d9b49b0
JT
16102002-08-31 Jason Thorpe <[email protected]>
1611
1612 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1613 list.
1614 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1615 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1616 nbsd_pc_in_sigtramp.
1617 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1618 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1619 * nbsd-tdep.c: Include gdb_string.h.
1620 (nbsd_pc_in_sigtramp): New function.
1621 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1622 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1623 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1624 ppcnbsd_pc_in_sigtramp.
1625 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1626 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1627 shnbsd_pc_in_sigtramp.
1628 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1629 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1630 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1631
c860120c
PM
16322002-08-30 Pierre Muller <[email protected]>
1633
1634 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1635 watchpoints to NULL.
1636 (insert_breakpoints): set val field of watchpoints if NULL.
1637
1638
c7612d53
JB
16392002-08-29 Jim Blandy <[email protected]>
1640
1641 * symtab.c (lookup_symbol_aux): In the cases where we find a
1642 minimal symbol of an appropriate name and use its address to
1643 select a symtab to read and search, use `name' (as passed to us)
1644 as the demangled name when searching the symtab's global and
1645 static blocks, not the minsym's name.
1646
66609862
KS
16472002-08-29 Keith Seitz <[email protected]>
1648
1649 * stack.c (print_frame_info_base): Always set current_source_symtab
1650 and current_source_line.
1651
151fefe2
JB
16522002-08-29 Donn Terry <[email protected]>
1653
1654 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1655
bfb3754e
KS
16562002-08-28 Keith Seitz <[email protected]>
1657
1658 * stack.c (select_frame): Add FIXME concerning selected-frame
1659 events.
1660 (select_frame_command): Send selected-frame-level-changed
1661 event notification, but only if the level actually changed.
1662 (up_silently_base): Add selected-frame-level-changed event
1663 notification.
1664 (down_silently_base): Likewise.
1665
e822a2a0
AC
16662002-08-28 Andrew Cagney <[email protected]>
1667
1668 * Makefile.in: Update dependencies for all gdb/*.c files.
1669
309367d4
TT
16702002-08-27 Tom Tromey <[email protected]>
1671
1672 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1673 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1674 Update dependencies.
1675 * i387-tdep.c: Include gdb_string.h.
1676 * osabi.c: Likewise.
1677 * i386-linux-nat.c: Likewise.
1678 * lin-lwp.c: Likewise.
1679 * ax-gdb.c: Likewise.
1680 * signals/signals.c: Likewise.
1681 * jv-valprint.c: Likewise.
1682 * p-lang.c: Likewise.
1683 * c-valprint.c: Likewise.
1684 * cp-abi.c: Likewise.
1685
e1507482
EZ
16862002-08-27 Elena Zannoni <[email protected]>
1687
1688 * cli/cli-script.h (copy_command_lines): Export.
1689 * breakpoint.c: Include cli/cli-script.h.
1690 * Makefile.in (breakpoint.o): Update dependencies.
1691
c6510018
MS
16922002-08-26 Michael Snyder <[email protected]>
1693
1694 * breakpoint.c (insert_breakpoints): Protect all references
1695 to 'process_warning'. Shorten long lines.
1696
c2b8ed2c
MS
16972002-08-26 Joel Brobecker <[email protected]>
1698
1699 * cli/cli-script.c (copy_command_lines): New function.
1700 * defs.h (copy_command_lines): Export.
1701 * testsuite/gdb.base/commands.exp: New tests for commands
1702 attached to a temporary breakpoint, and for commands that
1703 delete the breakpoint they are attached to.
1704
17052002-08-26 Michael Snyder <[email protected]>
1706
1707 * breakpoint.c (bpstat_stop_status): Instead of copying the
1708 pointer to the breakpoint commands struct, make a new copy
1709 of the struct and point to that.
1710 (bpstat_clear): Free the commands struct.
1711 (bpstat_clear_actions): Free the commands struct.
1712 (bpstat_do_actions): Free the command actions. Also execute
1713 the local cleanups, instead of deleting them.
1714 (delete_breakpoint): Leave the commands field of the bpstat
1715 chain alone -- it will be freed later.
1716
64b84175
KB
17172002-08-26 Kevin Buettner <[email protected]>
1718
1719 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1720 deleted in 2002-08-20 commit. This function is still used by
1721 ppc-linux-nat.c.
1722
55970da6
KS
17232002-08-26 Keith Seitz <[email protected]>
1724
1725 * gdb-events.sh: Add selected-frame-level-changed event.
1726 * gdb-events.c: Regenerated.
1727 * gdb-events.h: Regenerated.
1728
a790ad35
SC
17292002-08-26 Stephane Carrez <[email protected]>
1730
1731 Fix PR gdb/393:
1732 * inflow.c (terminal_save_ours): New function to save terminal
1733 settings.
1734 * inferior.h (terminal_save_ours): Declare.
1735 * target.c (debug_to_terminal_save_ours): New function.
1736 (cleanup_target): Defaults to_terminal_save_ours.
1737 (update_current_target): Inherit to_terminal_save_ours.
1738 (setup_target_debug): Set to_terminal_save_ours.
1739 * target.h (target_terminal_save_ours): New to save terminal settings.
1740 (target_ops): New member to_terminal_save_ours.
1741 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1742 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1743 * inftarg.c (init_child_ops): Likewise.
1744 * m3-nat.c (init_m3_ops): Likewise.
1745 * procfs.c (init_procfs_ops): Likewise.
1746 * wince.c (init_child_ops): Likewise.
1747 * win32-nat.c (init_child_ops): Likewise.
1748 * sol-thread.c (init_sol_thread_ops): Likewise.
1749
c00dcbe9
MK
17502002-08-26 Mark Kettenis <[email protected]>
1751
3d7f4f49
MK
1752 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1753 use regcache_* functions.
1754 (i386_gdbarch_init): Set store_return_value instead of
1755 deprecated_store_return_value.
1756
c00dcbe9
MK
1757 * regcache.c (regcache_raw_write_signed,
1758 regcache_raw_write_unsigned): New functions.
1759 * regcache.h (regcache_raw_write_signed,
1760 regcache_raw_write_unsigned): New prototypes.
1761
0e0d15ca
AC
17622002-08-25 Andrew Cagney <[email protected]>
1763
1764 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1765 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1766 source file dependencies. Cleanup corresponding generator rules.
1767
d3b22ed5
AC
17682002-08-25 Andrew Cagney <[email protected]>
1769
1770 * regcache.h (register_offset_hack): Declare.
1771 (regcache_cooked_read_using_offset_hack): Declare.
1772 (regcache_cooked_write_using_offset_hack): Declare.
1773
1774 * regcache.c (register_offset_hack): New function.
1775 (regcache_cooked_read_using_offset_hack): New function.
1776 (regcache_cooked_write_using_offset_hack): New function.
1777 (regcache_dump): Check that the registers, according to their
1778 offset, are packed hard against each other.
1779 (cooked_xfer_using_offset_hack): New function.
1780
bb425013
AC
17812002-08-25 Andrew Cagney <[email protected]>
1782
1783 * regcache.c (struct regcache_descr): Add field register_type.
1784 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1785 in as a parameter
1786 (init_regcache_descr): Initialize register_type. Pass the descr
1787 to init_legacy_regcache_descr. Use register_type instead of
1788 REGISTER_VIRTUAL_TYPE.
1789 (register_type): New function.
1790 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1791 * regcache.h (register_type): Declare.
1792
d0403e00
AC
17932002-08-25 Andrew Cagney <[email protected]>
1794
1795 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1796 instead of deprecated_store_return_value. Fix fallout from
1797 2002-08-23 Andrew Cagney <[email protected]>.
1798
0ed04cce
AC
17992002-08-25 Andrew Cagney <[email protected]>
1800
1801 * regcache.c (max_register_size): New function.
1802 (init_legacy_regcache_descr): Ensure that max_register_size is
1803 large enough for REGISTER_VIRTUAL_SIZE.
1804 * regcache.h (max_register_size): Declare.
1805
46d79c04
AC
18062002-08-24 Andrew Cagney <[email protected]>
1807
1808 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1809 store_return_value.
1810 (e500_extract_return_value): Change type of valbuf pointer to
1811 void.
1812
853c7bd0
MK
18132002-08-24 Mark Kettenis <[email protected]>
1814
cd87e769
MK
1815 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1816 workaround.
1817
853c7bd0
MK
1818 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1819 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1820 long long) to prevent compiler warning on 64-bit systems.
1821
ebba8386
AC
18222002-08-23 Andrew Cagney <[email protected]>
1823
1824 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1825 (DEPRECATED_STORE_RETURN_VALUE): New method.
1826 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1827 * gdbarch.h, gdbarch.c: Re-generate.
1828
1829 * values.c (set_return_value): Pass current_regcache to
1830 STORE_RETURN_VALUE.
1831 * arch-utils.h (legacy_store_return_value): Declare.
1832 * arch-utils.c (legacy_store_return_value): New function.
1833 (legacy_extract_return_value): Update parameters.
1834
1835 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1836 STORE_RETURN_VALUE.
1837 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1838 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1839 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1840 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1841 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1842 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1843 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1844 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1845 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1846 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1847
1848 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1849 * i386-tdep.c (i386_extract_return_value): Update.
1850 * arch-utils.c (legacy_extract_return_value): Update.
1851 * frv-tdep.c (frv_gdbarch_init): Update.
1852 * cris-tdep.c (cris_gdbarch_init): Update.
1853 * d10v-tdep.c (d10v_gdbarch_init): Update.
1854 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1855 * m68k-tdep.c (m68k_gdbarch_init): Update.
1856 * mcore-tdep.c (mcore_gdbarch_init): Update.
1857 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1858 * s390-tdep.c (s390_gdbarch_init): Update.
1859 * sparc-tdep.c (sparc_gdbarch_init): Update.
1860 * sh-tdep.c (sh_gdbarch_init): Update.
1861 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1862 * v850-tdep.c (v850_gdbarch_init): Update.
1863 * avr-tdep.c (avr_gdbarch_init): Update.
1864 * ia64-tdep.c (ia64_gdbarch_init): Update.
1865 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1866 * vax-tdep.c (vax_gdbarch_init): Update.
1867 * alpha-tdep.c (alpha_gdbarch_init): Update.
1868 * arm-tdep.c (arm_gdbarch_init): Update.
1869 * mips-tdep.c (mips_gdbarch_init): Update.
1870 * i386-tdep.c (i386_gdbarch_init): Update.
1871
5bd8c6d0
AC
18722002-08-23 Andrew Cagney <[email protected]>
1873
1874 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1875 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1876
e73e1724
MK
18772002-08-24 Mark Kettenis <[email protected]>
1878
1879 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1880 problems.
1881
3e6564e1
JB
18822002-08-23 Joel Brobecker <[email protected]>
1883
1884 * infrun.c (handle_inferior_event): Move a comment outside of a
1885 function call, in order to avoid indent reformatting this part
1886 of the code in an unreadable way.
1887
81d0cc19
GS
18882002-08-23 Grace Sainsbury <[email protected]>
1889
1890 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1891 when breakpoints fail. Move general breakpoint error messages to
1892 insert_breakpoints.
1893 * breakpoint.c (insert_breakpoints): Change warnings when
1894 breakpoints are nto inserted to specify the type. Remove call to
1895 memory_error when hardware breakpoints can't be inserted. Remove
1896 multiple calls to warning so all messages are sent to the user at
1897 once.
1898 (delete_breakpoints): Make insert error messsages more explicit.
1899
17574093
DJ
19002002-08-23 Daniel Jacobowitz <[email protected]>
1901
1902 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1903 gdbserver/ChangeLog.
1904
8acc2935
MK
19052002-08-23 Mark Kettenis <[email protected]>
1906
dfe01d39
MK
1907 * i386-tdep.c: Include "objfiles.h".
1908 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1909 skip_trampoline_code.
1910 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1911 (CPLUS_MARKER): Define to '.'.
1912
8acc2935
MK
1913 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1914 member.
1915 (linux_corefile_thread_callback): Increase args->num_notes.
1916 (linux_make_note_section): Initialize thread_args.num_notes, and
1917 use it to determine whether notes for any threads were created.
1918
151fefe2 19192002-08-23 Donn Terry <[email protected]>
640b227f
JB
1920
1921 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1922 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1923 and PCUNKILL.
1924 (write_with_trace): Conditionalize out the switch branch handling
1925 PCSHOLD if the corresponding macro is not defined. Likewise for
1926 PRSABORT and PRSTOP.
1927 This change will be needed by the Interix port.
1928
e1507482
EZ
19292002-08-22 Elena Zannoni <[email protected]>
1930
1931 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1932 write_register wherever possible instead of manipulating the
1933 register bytes directly.
1934 Assign VALUE_CONTENTS to a variable and use that.
1935 The GPR numbers are now dependent on the architecture.
1936
96ff0de4
EZ
19372002-08-22 Elena Zannoni <[email protected]>
1938
1939 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1940 ev_offset fields.
1941 (skip_prologue): Add support for BookE/e500 instructions.
1942 (e500_extract_return_value): New function.
1943 (frame_get_saved_regs): Add support for saving ev registers and
1944 pseudo gpr's.
1945 (e500_store_return_value): New function.
1946 (rs6000_gdbarch_init): Move up default intializations of
1947 deprecated_extract_return_value and store_return_value. Overwrite
1948 init of store_return_value with e500 specific version.
1949 Set extract_return_value for e500.
1950
fbefca5b
EZ
19512002-08-22 Elena Zannoni <[email protected]>
1952
1953 * blockframe.c (generic_call_dummy_register_unwind): Use
1954 regcache_cooked_read to catch cases in which the variable is
1955 stored in a pseudo register.
1956
4d210288
AC
19572002-08-22 Andrew Cagney <[email protected]>
1958
1959 * NEWS: Mention that the i960 has been made obsolete.
1960 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1961 i960-tdep.c
1962 (remote-nrom.o): Obsolete target.
1963 (remote-nindy.o, i960-tdep.o): Ditto.
1964 * remote-nrom.c: Make file obsolete.
1965 * remote-nindy.c, remote-vx960.c: Ditto.
1966 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1967 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1968 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1969 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1970 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1971 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1972 i960-*-vxworks* obsolete.
1973 * MAINTAINERS: Note that the i960 is obsolete.
1974
6c0c456d
CV
19752002-08-21 Corinna Vinschen <[email protected]
1976
1977 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1978 detach to allow reinitialization.
1979
9f9d12b3
AC
19802002-08-22 Andrew Cagney <[email protected]>
1981
1982 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1983 attempt).
1984
ebeb39fe
JB
19852002-08-22 Jim Blandy <[email protected]>
1986
1987 * coffread.c (coff_symfile_read): Don't try to read the line
1988 number table from disk if the image file doesn't have a symbol
1989 table; we'll never actually look at the info anyway, and Windows
1990 ships DLL's with bogus file offsets for the line number data.
1991
5bf1c677
EZ
19922002-08-21 Elena Zannoni <[email protected]>
1993
1994 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1995 an e500 executable.
1996
71b8ef93
MS
19972002-08-21 Michael Snyder <[email protected]>
1998
1999 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2000 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
2001 (DEFAULT_MIPS_TYPE): Delete unused macro.
2002 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2003 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 2004
d174216d
JB
20052002-08-21 Jim Blandy <[email protected]>
2006
2007 * valops.c (value_cast): Simplify and correct logic for doing a
2008 static cast from a pointer to a base class to a pointer to a
2009 derived class.
2010
0ab7a791
AC
20112002-08-21 Andrew Cagney <[email protected]>
2012
2013 * infcmd.c (default_print_registers_info): Replace
2014 do_registers_info.
2015 (registers_info): Use gdbarch_print_registers_info instead of
2016 DO_REGISTERS_INFO.
2017 * inferior.h (default_print_registers_info): Replace
2018 do_registers_info.
2019 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2020 (DO_REGISTERS_INFO): Change to a predicate function.
2021 * gdbarch.h, gdbarch.c: Regenerate.
2022
e23792cc
KS
20232002-08-21 Keith Seitz <[email protected]>
2024
2025 * gdb-events.sh: Add target-changed event.
2026 * gdb-events.c: Regenerated.
2027 * gdb-events.c: Regenerated.
2028 * valops.c (value_assign): Add target-changed event notification
2029 to inlval_register, lval_memory, and lval_reg_frame_relative.
2030
9fb14e79
JB
20312002-08-21 Joel Brobecker <[email protected]>
2032
2033 * NEWS: Add an entry regarding the improvement of the next/step
2034 operation on Alpha Tru64 multi-processor machines.
2035
6d39a69f
AC
20362002-08-21 Andrew Cagney <[email protected]>
2037
72acd513
AC
2038 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2039 directores.
342af04b 2040 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
2041 * Makefile.in (install-gdbtk): Move to install section.
2042 (rdi-share/libangsd.a): Move to end of file.
2043
fa5f27c7
AC
20442002-08-19 Andrew Cagney <[email protected]>
2045
2046 * frame.c (frame_register_unwind): When a register, set addrp to
2047 the register's byte.
2048
5a89d8aa
MS
20492002-08-20 Michael Snyder <[email protected]>
2050
2051 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2052 used locally, so move them from the target machine header to here.
2053 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2054 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2055 Make static.
2056 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2057
822e978b
AC
20582002-08-20 Andrew Cagney <[email protected]>
2059
2060 * NEWS: Mention that the Apollo line was made obsolete.
2061 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2062 m68*-hp-hpux* obsolete.
2063 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2064 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2065 * buildsym.c (make_blockvector): Make static.
2066 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2067 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2068 (ALLDEPFILES): Remove dstread.c.
2069 (dstread.o): Obsolete make rule.
2070 * dstread.c: Makefile obsolete.
2071 * dst.h: Ditto.
2072 * config/m68k/hp300hpux.mt: Ditto.
2073 * config/m68k/hp300hpux.mh: Ditto.
2074 * config/m68k/hp300bsd.mt: Ditto.
2075 * config/m68k/hp300bsd.mh: Ditto.
2076 * config/m68k/apollo68b.mt: Ditto.
2077 * config/m68k/apollo68v.mh: Ditto.
2078 * config/m68k/apollo68b.mh: Ditto.
2079
e41b17f0
MS
20802002-08-20 Michael Snyder <[email protected]>
2081
2082 * mips-tdep.c (mips_in_return_stub): Make static.
2083 (mips_gdbarch_init): Set in_solib_return_trampoline.
2084 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2085
d50355b6
MS
20862002-08-20 Michael Snyder <[email protected]>
2087
2088 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2089 * gdbarch.c, gdbarch.h: Regenerate.
2090 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2091 Add.
2092 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2093
757a7cc6
MS
20942002-08-20 Michael Snyder <[email protected]>
2095
2096 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2097 (mips_gdbarch_init): Set skip_trampoline_code,
2098 in_solib_call_trampoline.
2099 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2100 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2101
c8001721
EZ
21022002-08-20 Elena Zannoni <[email protected]>
2103
2104 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2105
2106 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2107 vector type for ev registers.
2108 (e500_pseudo_register_read): New function.
2109 (e500_pseudo_register_write): New function.
2110 (e500_dwarf2_reg_to_regnum): New function.
2111 (PPC_UISA_NOFP_SPRS): New macro.
2112 (PPC_EV_REGS): New macro.
2113 (PPC_GPRS_PSEUDO_REGS): New macro.
2114 (registers_e500): New register set for e500.
2115 (variants): Add e500 variant.
2116 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2117 before setting architectural dependent variations. Initialize ev
2118 registers numbers. Add case for e500 architecture. Set the
2119 number of pseudo registers.
2120
64366f1c
EZ
21212002-08-20 Elena Zannoni <[email protected]>
2122
2123 * rs6000-tdep.c: Clean up comments.
2124
7e78f0ca
AC
21252002-08-20 Andrew Cagney <[email protected]>
2126
2127 * h8300-tdep.c: Re-indent file.
2128
697f7479
JB
21292002-08-20 Jim Blandy <[email protected]>
2130
2131 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2132 default for this.
697f7479 2133
e86ae29f
KS
21342002-08-20 Keith Seitz <[email protected]>
2135
2136 * breakpoints.c (watch_command_1): Use internal breakpoint
2137 when setting a watchpoint_scope breakpoint.
2138
216b504f
EZ
21392002-08-20 Elena Zannoni <[email protected]>
2140
2141 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2142 (build_builtin_type_vec64i): Ditto.
2143 (build_builtin_type_vec128): Ditto.
2144 (build_builtin_type_vec128i): Ditto.
2145
f7ab6ec6
MS
21462002-08-19 Michael Snyder <[email protected]>
2147
2148 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2149 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2150 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2151 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2152 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2153 CALL_DUMMY_ADDRESS): Delete.
2154 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2155 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2156 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2157 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2158 push_return_address.
2159 (mips_register_raw_size, mips_eabi_use_struct_convention,
2160 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2161 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2162 mips_init_extra_frame_info, mips_eabi_push_arguments,
2163 mips_n32n64_push_arguments, mips_push_return_address,
2164 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2165 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2166
b5d1566e
MS
21672002-08-19 Michael Snyder <[email protected]>
2168
2169 * mips-tdep.c (mips_frame_num_args): New function.
2170 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2171 frame_saved_pc, frame_args_address, frame_locals_address,
2172 frame_num_args, and frame_args_skip.
2173 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2174 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2175 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2176 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2177
2f1488ce
MS
21782002-08-20 Michael Snyder <[email protected]>
2179
2180 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2181 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2182 * mips-tdep.c (mips_store_struct_return): New function.
2183 (mips_extract_struct_value_address): New function.
2184 (mips_gdbarch_init): Set store_struct_return and
2185 extract_struct_value_address.
2186
41ff2da1
DC
21872002-08-20 David Carlton <[email protected]>
2188
2189 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2190 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2191 (read_file_scope): Check that line_header is nonzero before
2192 decoding macro information.
2193
e5451d58
MK
21942002-08-20 Mark Kettenis <[email protected]>
2195
2196 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2197 flag the general-purpose registers as floating-point on targets
2198 that don't support the floating-point registers.
2199
4a6daafa
EZ
22002002-08-20 Elena Zannoni <[email protected]>
2201
2202 * rs6000-tdep.c (altivec_register_p): Delete.
2203 (rs6000_do_altivec_registers): Delete.
2204 (rs6000_altivec_registers_info): Delete.
2205 (rs6000_do_registers_info): Delete.
2206 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2207 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2208
ab4327e0
EZ
22092002-08-20 Elena Zannoni <[email protected]>
2210
2211 * infcmd.c (do_registers_info): Print vector registers in hex
2212 format only.
2213 (print_vector_info): Check that printing registers
2214 makes sense.
2215 (print_float_info): Ditto.
2216
cb1d2653
AC
22172002-08-20 Andrew Cagney <[email protected]>
2218
2219 * mips-tdep.c (mips_gdbarch_init): Update.
2220 (mips_o32_extract_return_value): Rewrite.
2221 (mips_o32_store_return_value): Rewrite.
2222 (mips_o32_xfer_return_value): New function.
2223 (mips_xfer_register): Tweak debug print message. Allow for
2224 buf_offset when dumping the value transfered.
2225
dfc3d9b2
AC
22262002-08-20 Andrew Cagney <[email protected]>
2227
2228 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2229 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2230 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2231 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2232 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2233
7807aa61
MS
22342002-08-14 Michael Snyder <[email protected]>
2235
2236 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2237
489461e2
EZ
22382002-08-19 Elena Zannoni <[email protected]>
2239
2240 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2241 register.
2242 (P): New macro to define a register as a pseudo register.
2243 (R, R4, R8, R16, FR32, R64, R0): Updated.
2244 (struct variant): Add new fields for number of pseudo registers
2245 and number of total registers.
2246 (tot_num_registers): New macro replacing....
2247 (num_registers): ...deleted macro.
2248 (num_registers): New function.
2249 (num_pseudo_registers): New function.
2250 (variants): Update all variants to intialize new fields correctly.
2251 Postpone initialization of number of pseudo regs and real regs.
2252 (init_variants): New function.
2253 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2254 registers offsets.
2255
fcaffe4c
DC
22562002-08-19 David Carlton <[email protected]>
2257
2c2738a0
DC
2258 * valops.c (search_struct_field): Change error message to treat
2259 return value of 0 from value_static_field as meaning that field is
2260 optimized out.
2261 (value_struct_elt_for_reference): Ditto.
2262 * values.c (value_static_field): Treat an unresolved location the
2263 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
2264 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2265 enclosed. Fix PR gdb/574.
fcaffe4c
DC
2266 * MAINTAINERS: Add self to Write After Approval list.
2267
88658117
AC
22682002-08-19 Andrew Cagney <[email protected]>
2269
2270 * mips-tdep.c (mips_xfer_register): New function.
2271 (mips_n32n64_extract_return_value): Rewrite.
2272 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2273 instead of deprecated_extract_return_value.
2274
21283beb
EZ
22752002-08-19 Elena Zannoni <[email protected]>
2276
2277 * rs6000-tdep.c (TDEP): Delete macro.
2278 (branch_dest): Replace use of TDEP macro with its body.
2279 (rs6000_pop_frame): Ditto.
2280 (rs6000_push_arguments): Ditto.
2281 (rs6000_skip_trampoline_code): Ditto.
2282 (rs6000_frame_saved_pc): Ditto.
2283 (rs6000_frame_chain): Ditto.
2284 (rs6000_register_name): Ditto.
2285 (rs6000_register_byte): Ditto.
2286 (rs6000_register_raw_size): Ditto.
2287 (rs6000_register_virtual_type): Ditto.
2288 (rs6000_register_convertible): Ditto.
2289 (rs6000_convert_from_func_ptr_addr): Ditto.
2290
bf072999
DJ
22912002-08-19 Daniel Jacobowitz <[email protected]>
2292
2293 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2294 conditionally.
2295 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2296 MIPS_LINUX_JB_ELEMENT_SIZE.
2297 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2298 for MAX_REGISTER_RAW_SIZE arrays.
2299 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2300 MIPS_LINUX_JB_ELEMENT_SIZE.
2301
9b949a49
PM
23022002-08-19 Pierre Muller <[email protected]>
2303
2304 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2305
6d3e79c6
AS
23062002-08-19 Aidan Skinner <[email protected]>
2307
2308 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2309 ada-valprint.c ada-tasks.c.
2310 (YYFILES): Add ada-exp.y.
2311 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2312 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2313 (ada-exp.tab.o): New target.
2314
06c0b04e
AC
23152002-08-18 Andrew Cagney <[email protected]>
2316
2317 * regcache.c (regcache_xfer_part): New function.
2318 (regcache_raw_read_part): New function.
2319 (regcache_raw_write_part): New function.
2320 (regcache_cooked_read_part): New function.
2321 (regcache_cooked_write_part): New function.
2322 * regcache.h (regcache_raw_read_part): Declare.
2323 (regcache_raw_write_part): Declare.
2324 (regcache_cooked_read_part): Declare.
2325 (regcache_cooked_write_part): Declare.
2326
92d1e331
DJ
23272002-08-18 Daniel Jacobowitz <[email protected]>
2328
2329 * remote.c (remote_open_1): Add async_p.
2330 (remote_async_open_1): Delete.
2331 (open_remote_target): Delete.
2332 (remote_open, extended_remote_open): Update calls to remote_open_1.
2333 (remote_async_open, extended_remote_async_open): Call
2334 remote_open_1 instead of remote_async_open_1.
2335
247055de
MK
23362002-08-19 Mark Kettenis <[email protected]>
2337
2338 * blockframe.c: Fix a few coding standard violations.
2339
641eda39
MK
23402002-08-19 Mark Kettenis <[email protected]>
2341
0b717710
MK
2342 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2343 here from ...
2344 * config/i386/tm-i386sco5.h: ... here. File removed.
2345 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2346
26d28e12 2347 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
2348 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2349 (TM_FILE): Set to tm-i386.h.
2350 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2351 * config/i386/tm-i386v.h: Remove file.
2352 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2353 instead of "i386/tm-i386v.h".
2354 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2355 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2356 "i386/tm-i386v.h".
2357 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2358 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2359 "i386/tm-i386.h".
2360
d4e0bab4
MK
23612002-08-18 Mark Kettenis <[email protected]>
2362
2363 * config/i386/nm-i386v.h: Add protection against
2364 multiple-inclusion.
2365 (i386_register_u_addr): Remove prototype.
2366 (register_u_addr): New prototype.
2367 (REGISTER_U_ADDR): Redefine accordingly.
2368 * i386v-nat.c: Improve several comments.
2369 (i386_register_u_addr): Change signature and rename to
2370 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2371 ubase variable.
2372
46cac009
AC
23732002-08-18 Andrew Cagney <[email protected]>
2374
2375 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2376 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2377 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2378 deprecated_extract_return_value.
2379 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2380 rename mips_o32o64_push_arguments.
2381 (mips_gdbarch_init): Update.
2382 (mips_extract_return_value): Delete.
2383 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2384 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2385 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2386 (mips_n32n64_extract_return_value): Clone
2387 mips_extract_return_value.
2388 (mips_store_return_value): Delete.
2389 (mips_o32_store_return_value): Clone mips_store_return_value.
2390 (mips_o64_store_return_value): Clone mips_store_return_value.
2391 (mips_eabi_store_return_value): Clone mips_store_return_value.
2392 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2393
d2e4a39e
AS
23942002-08-18 Aidan Skinner <[email protected]>
2395
0c30c098
AS
2396 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2397 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2398
23992002-08-18 Aidan Skinner <[email protected]>
2400
2401 * ada-lang.c: Run through gdb_indent.sh.
2402 * ada-lang.h: Run through gdb_indent.sh.
2403 * ada-tasks.c: Run through gdb_indent.sh.
2404 * ada-typeprint.c: Run through gdb_indent.sh.
2405 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 2406
01fc4e33
AC
24072002-08-18 Andrew Cagney <[email protected]>
2408
2409 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2410 ABI.
2411
d8ee244c
MK
24122002-08-18 Mark Kettenis <[email protected]>
2413
c38d8261
MK
2414 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2415
222db64c
MK
2416 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2417 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2418
c2848c82
MK
2419 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2420 write_register_gen instead of write_register_bytes.
2421
d8ee244c
MK
2422 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2423 i[3456]-*-osf1mk* configurations have been made obsolete.
2424 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2425 i[3456]86-*-osf1mk* hosts obsolete.
2426 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2427 targets obsolete.
2428 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2429 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2430 config/i386/i386m3.mt, config/i386/nm-m3.h,
2431 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2432 config/i386/i386mk.mh, config/i386/i386mk.mt,
2433 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2434 obsolete.
2435 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2436 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2437 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2438
61d8d407
AC
24392002-08-18 Andrew Cagney <[email protected]>
2440
2441 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2442 (hppa_value_returned_from_stack): Declare.
2443 (hppa_extract_return_value): Declare.
2444 * config/pa/hppa.mt: New file.
2445 * configure.tgt: Recognize hppa*-*-*.
2446 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2447
0c52bd59
MK
24482002-08-18 Mark Kettenis <[email protected]>
2449
2450 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2451 comment.
2452
b5686e99
MK
24532002-08-17 Mark Kettenis <[email protected]>
2454
2455 * top.c (gdb_rl_operate_and_get_next): Make sure
2456 operate-and-get-next functions correctly even when the history
2457 list is completely filled.
2458
c1bab85b
AC
24592002-08-18 Andrew Cagney <[email protected]>
2460
2461 * MAINTAINERS (Target Instruction Set Architectures): Rename
2462 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2463 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2464 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2465 already listed under Host/Native.
2466
2467 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2468 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2469 mips*-*-*.
2470
32089c7c
AC
24712002-08-17 Andrew Cagney <[email protected]>
2472
2473 * config/ia64/ia64.mt: New file.
2474 * config/alpha/alpha.mt: New file.
2475 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2476 ia64-linux-gnu. Mention that ia64-elf is broken.
2477 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2478
b4671f85
MK
24792002-08-17 Mark Kettenis <[email protected]>
2480
2481 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2482 generic_func_frame_valid instead of func_frame_valid.
2483
c8edd8b4
JB
24842002-08-16 Joel Brobecker <[email protected]>
2485
2486 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2487 procfs appears to be broken when debugging on multi-processor
2488 machines. So enable software single stepping in order to avoid
2489 using the procfs interface to do next/step operations, using
2490 internal breakpoints instead.
2491
2492 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2493 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2494 make this pc address equal to the value it would have if the
2495 system stepping capability was used. Also set a new flag used
2496 to ensure that we don't readjust the PC one more time later.
2497
2498 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2499 address by DECR_PC_AFTER_BREAK when software single step is
2500 in use for this architecture, as this has already been taken
2501 care of in handle_inferior_event().
2502
238617f6
JB
25032002-08-16 Joel Brobecker <[email protected]>
2504
2505 * infrun.c (handle_inferior_event): Minor reformatting, to make
2506 a rather long condition expression easier to read.
2507
541a7aac
AC
25082002-08-16 Andrew Cagney <[email protected]>
2509
2510 * Makefile.in (gdbtk.o): Move to end of file.
2511 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2512 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2513 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2514 (gdbtk-wrapper.o, gdbres.o): Ditto.
2515
f92d4a7b
AC
25162002-08-16 Andrew Cagney <[email protected]>
2517
2518 * Makefile.in (copying.o): Separate out compile rule.
2519 (hpux-thread.o, procfs.o, signals.o): Ditto.
2520 (v850ice.o, z8k-tdep.o): Ditto.
2521 (tui-file.o): Move to TUI section.
2522 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2523 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2524
1cce71eb
JB
25252002-08-16 Joel Brobecker <[email protected]>
2526
2527 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2528 skip_trampoline_code, for better namespace-proofing.
2529
2530 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2531
0851f23d
JB
25322002-08-16 Joel Brobecker <[email protected]>
2533
2534 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2535
f8d40ec8
JB
25362002-08-16 Joel Brobecker <[email protected]>
2537
2538 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2539 signal, check whether we hit a breakpoint before checking for a
2540 single step breakpoint. Otherwise, GDB fails to notice that a
2541 breakpoint has been hit when stepping onto a breakpoint.
2542
63d022e0
KS
25432002-08-16 Keith Seitz <[email protected]>
2544
2545 * gdb-events.sh (clear_gdb_event_hooks): New function.
2546 * gdb-events.c: Regenerate.
2547 * gdb-events.h: Regenerate.
2548
6e31adb3
AC
25492002-08-16 Andrew Cagney <[email protected]>
2550
2551 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2552 not_a_sw_breakpoint.
2553 * breakpoint.h (bpstat_stop_status): Add parameter names.
2554
c8189ed1
GS
25552002-08-16 Grace Sainsbury <[email protected]>
2556
2557 * remote.c (remote_insert_hw_breakpoint)
2558 (remote_remove_hw_breakpoint): Fix calculation of length field
2559 for Z-packet.
2560
d05285fa
MS
25612002-08-15 Michael Snyder <[email protected]>
2562
466d7106
MS
2563 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2564 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2565 (supply_fpregset): Ditto.
2566
d05285fa
MS
2567 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2568 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2569 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 2570 (TARGET_READ_SP): Delete.
bf1f5b4c 2571 (DO_REGISTERS_INFO): Delete.
102182a9
MS
2572 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2573 Delete.
2574 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2575 from macros to functions.
bf1f5b4c 2576
d05285fa
MS
2577 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2578 (mips_register_convertible, mips_register_convert_to_virtual,
2579 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
2580 (mips_read_sp): New function.
2581 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
2582 (mips_do_registers_info): Make static.
2583 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
2584 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2585 (mips_register_convert_from_type, mips_register_convert_to_type):
2586 New functions.
2587 (mips_gdbarch_init): Set up function_start_offset,
2588 register_virtual_size, pc_in_sigtramp.
d05285fa 2589
e76f1f2e
AC
25902002-08-15 Andrew Cagney <[email protected]>
2591
2592 * infcmd.c (vector_info): New function.
2593 (_initialize_infcmd): Add command "info vector".
2594 (print_vector_info): New function.
2595
2596 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2597 * gdbarch.h, gdbarch.c: Regenerate.
2598
4782dc19
AC
25992002-08-15 Andrew Cagney <[email protected]>
2600
2601 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2602 ``print_all''. Only print vector registers when ``print_all''.
2603
23e3a7ac
AC
26042002-08-15 Andrew Cagney <[email protected]>
2605
8e186fd6
AC
2606 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2607 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2608
23e3a7ac
AC
2609 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2610 Add `args' parameter.
2611 * gdbarch.h, gdbarch.c: Regenerate.
2612
2613 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2614
2615 * infcmd.c (float_info): Call print_float_info.
2616 (print_float_info): New function. By default, print the
2617 floating-point registers.
2618
2619 * arch-utils.h (default_print_float_info): Delete declaration.
2620 * arch-utils.c (default_print_float_info): Delete function.
2621
e0ca2bb9
MK
26222002-08-16 Mark Kettenis <[email protected]>
2623
3f733acc
MK
2624 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2625 out define.
2626
7d8d2918
MK
2627 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2628 FRAME.
2629
1c7cc583
MK
2630 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2631 * configure.host: Make i[3456]86-*-aix host obsolete.
2632 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2633 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2634 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2635 config/i386/xm-i386aix.h: Make files obsolete.
2636 * i386aix-nat.c: Make file obsolete.
2637 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2638 (i386aix-nat.o): Make target obsolete.
2639
e0ca2bb9
MK
2640 * config/i386/nm-gnu.h: Removed.
2641 * config/i386/nm-i386gnu.h: New file.
2642 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2643 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2644 Moved here from ...
2645 * config/i386/tm-i386gnu.h: ... here. Removed.
2646 * config/i386/xm-i386gnu.h: Removed.
2647 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2648 (NAT_FILE): Set to nm-i386gnu.h.
2649 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2650 * i386-tdep.c: New file.
2651 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2652 (i386gnu-tdep.o): Specify dependencies.
2653
16057ec7 26542002-08-15 Mark Kettenis <[email protected]>
61113f8b 2655
6b99ee2e
MK
2656 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2657 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2658 Adjust a few comments to reflect reality a bit closer.
2659 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2660 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2661 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2662 target_insert_watchpoint, target_remove_watchpoint):
2663 Move defines to ...
2664 * config/i386/nm-i386sco5.h: ... here.
2665 (kernel_u_size): Add prototype. Improve a few comments and add
2666 protection against multiple inclusion.
2667
d9a6f65c
MK
2668 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2669 out define.
2670
047eff6a
MK
2671 * uw-thread.c (SP_ARG0): Define if not already defined.
2672 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2673
dcdb1290
MK
2674 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2675
5d2d0b2a
MK
2676 * config/i386/tm-i386.h: Don't include "regcache.h".
2677
61113f8b
MK
2678 * i387-tdep.h (i387_print_float_info): New prototype.
2679 * i387-tdep.c (print_i387_value, print_i387_ext,
2680 print_i387_status_word, print_i387_control_word): Add `struct
2681 ui_file *' argument and use it for output.
2682 (i387_print_float_info): Renamed from i387_float_info. Add
2683 `struct gdbarch *' and `struct ui_file *' arguments and use the
2684 latter for output.
2685 * i386-tdep.c: Include "i387-tdep.h".
2686 (i386_gdbarch_init): Set print_float_info.
2687 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2688 (FLOAT_INFO): Remove define.
2689
46e0f506
MS
26902002-08-13 Michael Snyder <[email protected]>
2691
2692 * mips-tdep.c (mips_push_arguments): Rename to
2693 mips_eabi_push_arguments, and tune for EABI.
2694 (MIPS_REGS_HAVE_HOME_P): Delete.
2695 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2696 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2697 Delete references to mips_regs_have_home_p.
2698
409268de
KS
26992002-08-14 Keith Seitz <[email protected]>
2700
2701 * Makefile.in (install-gdbtk): Create insight plugin directory.
2702 Install plugins.tcl file.
2703
ffc6a242
KS
27042002-08-14 Keith Seitz <[email protected]>
2705
2706 * configure.in: Move SUBDIRS to near top of the file so that
2707 --enable options may add things to it.
2708 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2709 * configure: Regenerate.
2710
ebafbe83
MS
27112002-08-13 Michael Snyder <[email protected]>
2712
2713 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2714 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2715 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2716
32f6f25d
AC
27172002-08-13 Andrew Cagney <[email protected]>
2718
2719 * vax-tdep.c (vax_get_saved_register): Delete function.
2720 (vax_gdbarch_init): Update.
2721 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2722 (ns32k_gdbarch_init): Update.
2723 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2724 (alpha_gdbarch_init): Update.
2725
53826de9
AC
27262002-08-13 Andrew Cagney <[email protected]>
2727
2728 * regcache.c (init_regcache_descr): Overallocate the
2729 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2730 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2731 nr_raw_registers.
2732 (set_register_cached): Add range checking assertions. Use
2733 current_regcache.
2734
16057ec7 27352002-08-13 Mark Kettenis <[email protected]>
7d12f766
MK
2736
2737 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2738 numbers for MMX registers.
2739
7b4c2dce
AC
27402002-08-13 Andrew Cagney <[email protected]>
2741
2742 * i386-tdep.c (i386_gdbarch_init): Use
2743 generic_unwind_get_saved_register.
2744
1e03ad20
KB
27452002-08-13 Kevin Buettner <[email protected]>
2746
2747 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2748 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2749 target vector.
2750 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2751 Delete. Add comment regarding this now-deleted target method.
2752
548bcbec
SC
27532002-08-13 Stephane Carrez <[email protected]>
2754
2755 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2756 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2757 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2758 real PC and the page number (if it's within the memory bank window).
2759 (m68hc11_pseudo_register_write): Likewise when saving.
2760 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2761 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2762 (m68hc11_register_raw_size): And use 32-bit for it.
2763 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2764 16K memory bank is used by the prog; also use the virtual pc.
2765
7df11f59
SC
27662002-08-13 Stephane Carrez <[email protected]>
2767
2768 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2769 (m68hc11_gdbarch_init): Install it in gdbarch.
2770 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2771 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2772 (MSYMBOL_SIZE): New for documentation.
2773 (insn_return_kind): Enum to specify how a function returns.
2774 (frame_extra_info): Cleanup and record the return mode.
2775 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2776 register in address computation.
2777 (m68hc11_get_return_insn): New to obtain the return instruction used
2778 by the function.
2779 (m68hc11_frame_init_saved_regs): Take into account the return
2780 instruction used by the function for far and interrupt functions.
2781 (m68hc11_init_extra_frame_info): Take into account page register.
2782 (m68hc11_frame_args_address): Adjust according to the return mode.
2783 (show_regs): Print page register only when it's used.
2784
5706502a
SC
27852002-08-13 Stephane Carrez <[email protected]>
2786
2787 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2788 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2789 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2790 registers.
2791 (m68hc11_register_raw_size): Likewise.
2792
28fc6740
AC
27932002-08-13 Andrew Cagney <[email protected]>
2794
2795 * i386-tdep.c (i386_register_name): Handle mmx registers.
2796 (mmx_regnum_p): New function.
2797 (i386_mmx_names): New array.
2798 (mmx_num_regs): New variable.
2799 (i386_pseudo_register_read): New function.
2800 (i386_pseudo_register_write): New function.
2801 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2802
2803 * regcache.c (regcache_raw_read_unsigned): New function.
2804 (regcache_raw_read_signed): New function.
2805 * regcache.h (regcache_raw_read_unsigned): Declare.
2806 (regcache_raw_read_signed): Declare.
2807
a378f419
AC
28082002-08-13 Andrew Cagney <[email protected]>
2809
2810 * regcache.c (regcache_raw_read_as_address): Delete function.
2811 (regcache_cooked_read_signed): New function.
2812 (regcache_cooked_read_unsigned): New function.
2813 * regcache.h (regcache_cooked_read_signed): Declare.
2814 (regcache_cooked_read_unsigned): Declare.
2815 (regcache_raw_read_as_address): Delete declaration.
2816
2817 * blockframe.c (generic_read_register_dummy): Use
2818 regcache_cooked_read_unsigned.
2819 * i386-tdep.c (i386_extract_struct_value_address): Use
2820 regcache_cooked_read_unsigned.
2821
81967506
SC
28222002-08-13 Stephane Carrez <[email protected]>
2823
2824 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2825 double sizes according to ELF ABI flags.
2826 (gdbarch_tdep): Record elf_flags.
2827
ffe1f3ee
SC
28282002-08-13 Stephane Carrez <[email protected]>
2829
2830 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2831 (m6812_prolog): They can appear in 68HC12 function prologue.
2832 (m68hc11_frame_chain): Cleanup.
2833
98216c5d
AC
28342002-08-12 Andrew Cagney <[email protected]>
2835
2836 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2837 declarations.
2838 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2839 (i386_linux_register_raw_size): Delete function.
2840 (i386_linux_init_abi): Update.
2841 * i386-tdep.c (i386_register_raw_size): Delete function.
2842 (i386_register_byte): Delete function.
2843 (i386_gdbarch_init): Update.
2844 (i386_register_size): Delete array.
2845 (i386_register_offset): Delete array.
2846
2847 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2848 (REGISTER_RAW_SIZE): Delete macro.
2849 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2850 (REGISTER_BYTE): Delete macro.
2851
3b19021e
AS
28522002-08-11 Aidan Skinner <[email protected]>
2853
2854 * ada-lang.c (ada_lookup_partial_symbol)
2855 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2856 prototype names so that grep ^func works properly.
2857
2858 * ada-lang.c (ada_array_element_type)
2859 (ada_lookup_partial_symbol): Fix typos in parameter list.
2860
2861 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2862 Fix prototype names so that grep ^func works properly.
2863
b063e7a2
AC
28642002-08-10 Andrew Cagney <[email protected]>
2865 Elena Zannoni <[email protected]>
2866 Martin M. Hunt <[email protected]>
2867
2868 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2869 (build_builtin_type_vec128i): Set the vector bit.
2870 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2871 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2872 (build_builtin_type_vec64): New function.
2873 (build_builtin_type_vec64i): New function.
2874 (build_gdbtypes): Initialize builtin_type_vec64 and
2875 builtin_type_vec64i.
2876
a7e3c2ad
AC
28772002-08-09 Andrew Cagney <[email protected]>
2878
2879 * regcache.c (regcache_dump): Compare the register offset
2880 with REGISTER_BYTE.
2881 * arch-utils.c (generic_register_byte): New function.
2882 * arch-utils.h (generic_register_byte): Declare.
2883 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2884 * gdbarch.h, gdbarch.c: Regenerate.
2885
af030b9a
AC
28862002-08-09 Andrew Cagney <[email protected]>
2887
2888 * regcache.c: Include "gdbcmd.h"
2889 (_initialize_regcache): Add commands "maintenance print
2890 registers", "maintenance print raw-registers" and "maintenance
2891 print cooked-registers".
2892 (enum regcache_dump_what): Define.
2893 (dump_endian_bytes): New function.
2894 (regcache_dump): New function.
2895 (regcache_print): New function.
2896 (maintenance_print_registers): New function.
2897 (maintenance_print_raw_registers): New function.
2898 (maintenance_print_cooked_registers): New function.
2899 * Makefile.in (regcache.o): Update dependencies.
2900
cb3d25d1
MS
29012002-08-09 Michael Snyder <[email protected]>
2902
2903 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2904 (mips_push_arguments): Correct some comments. Use paddr_nz
2905 for printing addresses in debug output. Replace static
2906 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2907 (mips_n32n64_push_arguments): New function, cloned from
2908 mips_push_arguments and tuned for the n32/n64 ABI.
2909 (mips_push_register): Buffer needs dynamic allocation.
2910 (mips_print_register): Ditto.
2911 (do_gp_register_row): Ditto.
2912 (mips_store_return_value): Ditto.
2913 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2914
2163ab9d
DH
29152002-08-09 Don Howard <[email protected]>
2916
2917 * memattr.c (mem_info_command): Print special case of upper bound
2918 as max CORE_ADDR + 1.
2919
b78bcb18
MS
29202002-08-08 Michael Snyder <[email protected]>
2921
2922 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2923 returns structs by ref if they're too big to fit in two registers.
2924
ffabd70d
KB
29252002-08-09 Kevin Buettner <[email protected]>
2926
2927 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2928 saved regs value.
2929 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2930 mips_find_saved_regs().
2931 (mips_pop_frame): Likewise.
2932
fbcdb4a3
KB
29332002-08-09 Kevin Buettner <[email protected]>
2934
2935 * blockframe.c (frame_saved_regs_register_unwind): Revise
2936 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2937 frames are in use.
2938
3c3bea1c
GS
29392002-08-09 Grace Sainsbury <[email protected]>
2940
2941 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2942 T-packets; the 'a' is not taken as a register number.
2943 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2944 (remote_stopped_data_address): New functions; add to target
2945 vector.
2946 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2947 prototypes to match other implementations of this
2948 function. replace integer argument with pointer -- the length
2949 field in the Z-packet is the length of what is pointed to or 1 if
2950 pointer is null. Add to target vector.
2951 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2952 target vector.
2953
2954 From Mark Salter:
2955 * remote.c (remote_wait): Add support to extract optional
2956 watchpoint information from T-packet. Ignore unrecognized
2957 optional info in T-packet.
2958 (remote_async_wait): Ditto.
2959
5d1d95de
CV
29602002-08-09 Corinna Vinschen <[email protected]>
2961
2962 * cli/cli-dump.c: Change fopen modes to use binary open modes
2963 as defined in include/fopen-bin.h throughout.
2964
c86b5b38
MS
29652002-08-08 Michael Snyder <[email protected]>
2966
2967 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2968
b30590dc
KB
29692002-08-08 Kevin Buettner <[email protected]>
2970
2971 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2972 assertion failure by returning early after a warning.
2973
498868ed
KB
29742002-08-08 Kevin Buettner <[email protected]>
2975
2976 * mips-tdep.c (mips_find_saved_regs): Make static.
2977 (mips_frame_init_saved_regs): New function.
2978 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2979 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2980 (mips_find_saved_regs): Delete declaration.
2981
b2dd6311
GS
29822002-08-08 Grace Sainsbury <[email protected]>
2983
3c3bea1c
GS
2984 * remote.c (remote_wait, remote_async_wait): Change
2985 thread_num from int to ULONGEST.
2986 (unpack_varlen_hex): Change result parameter from
2987 int * to ULONGEST *.
b2dd6311 2988
ea47855f
AC
29892002-08-08 Andrew Cagney <[email protected]>
2990
2991 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2992 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2993 powerpc*-*-*.
2994 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2995
69db8bae
AC
29962002-08-08 Andrew Cagney <[email protected]>
2997
2998 * gcore.c (override_derive_stack_segment): Delete variable.
2999 (preempt_derive_stack_segment): Delete function.
3000 (derive_stack_segment): Delete function.
3001 (default_derive_stack_segment): Renamed to derive_stack_segment.
3002 (override_derive_heap_segment): Delete variable.
3003 (preempt_derive_heap_segment): Delete function.
3004 (derive_heap_segment): Delete function.
3005 (default_derive_heap_segment): Rename to derive_heap_segment.
3006
cb811fe7
MS
30072002-08-06 Michael Snyder <[email protected]>
3008
3009 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3010 * mips-tdep.c (mips_EABI_use_struct_convention,
3011 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3012 New functions. (mips_use_struct_convention): Delete.
3013 (mips_gdbarch_init): set use_gdbarch_convention.
3014
8b389c40
MS
30152002-08-06 Michael Snyder <[email protected]>
3016
3017 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3018 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3019 mips_o32_reg_struct_has_addr): New functions.
3020 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3021
5c27f28a
AC
30222002-08-07 Andrew Cagney <[email protected]>
3023
3024 * regcache.c (pseudo_register): Delete function.
3025 (fetch_register): Delete function.
3026 (store_register): Delete function.
3027 (regcache_raw_read, legacy_read_register_gen): Use
3028 target_fetch_registers instead of fetch_register.
3029 (legacy_write_register_gen, regcache_raw_write): Use
3030 target_store_register instead of store_register.
3031 (write_register_bytes): Ditto.
3032
3033 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3034 (STORE_PSEUDO_REGISTER): Delete.
3035 * gdbarch.h, gdbarch.c: Regenerate.
3036
5b331675
CV
30372002-08-06 Corinna Vinschen <[email protected]>
3038
3039 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3040 write dump file binary.
3041
6acdf5c7
MS
30422002-08-05 Michael Snyder <[email protected]>
3043
3044 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3045 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3046 (mips_gdbarch_init): Set N32 target to be mips64.
3047
b2f01c35
KB
30482002-08-06 Kevin Buettner <[email protected]>
3049
3050 * frame.c (find_saved_register): Break out of loop once saved
3051 register address is found. Don't mention sparc in loop comment
3052 anymore.
3053
63db5580
KB
30542002-08-06 Kevin Buettner <[email protected]>
3055
3056 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3057 mips_default_saved_regsize to 8.
3058
5e34e75e
AC
30592002-08-06 Andrew Cagney <[email protected]>
3060
3061 * gcore.c: Do not include <sys/procfs.h>.
3062 * Makefile.in (gcore.o): Update dependencies.
3063
eb4c54a2
AC
30642002-08-06 Andrew Cagney <[email protected]>
3065
3066 * configure.tgt: Make arc-*-* obsolete.
3067 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3068 * MAINTAINERS: Make arc-elf obsolete.
3069 * arc-tdep.c: Make file obsolete.
3070 * config/arc/arc.mt: Ditto.
3071 * config/arc/tm-arc.h: Ditto.
3072
ced15480
TR
30732002-08-05 Theodore A. Roth <[email protected]>
3074
c1bab85b 3075 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 3076
b4743822
AC
30772002-08-05 Andrew Cagney <[email protected]>
3078
3079 * mcore-tdep.c (mcore_gdbarch_init): Use
3080 generic_unwind_get_saved_register instead of
3081 generic_get_saved_register.
3082 * v850-tdep.c (v850_gdbarch_init): Ditto.
3083 * frv-tdep.c (frv_gdbarch_init): Ditto.
3084 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3085 * s390-tdep.c (s390_gdbarch_init): Ditto.
3086 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3087 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3088 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3089
3956d554
JB
30902002-08-05 Joel Brobecker <[email protected]>
3091
3092 * objfiles.h: Add missing #include "symfile.h"
3093
3094 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3095
8249c0d6
AC
30962002-08-04 Andrew Cagney <[email protected]>
3097
3098 From 2002-08-01 david carlton <[email protected]>:
3099 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3100 of FIELD_BITSIZE.
3101
b9d14705
DJ
31022002-08-04 Daniel Jacobowitz <[email protected]>
3103
3104 * NEWS: Cleanup and nitpick.
3105
dd73b9bb
AC
31062002-08-03 Andrew Cagney <[email protected]>
3107
3108 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3109
043a27f8
AC
31102002-08-03 Andrew Cagney <[email protected]>
3111
3112 * Makefile.in (gdbtk-bp.o): Update dependencies.
3113 (gdbtk-register.o): Ditto.
3114 (gdbtk-varobj.o): Ditto.
3115
46ce284d
AC
31162002-08-03 Andrew Cagney <[email protected]>
3117
3118 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3119 m68hc11_fetch_pseudo_register.
3120 (m68hc11_pseudo_register_write): Replace
3121 m68hc11_store_pseudo_register.
3122 (m68hc11_gdbarch_init): Update.
3123
b66d6d2e
AC
3124Fri Aug 2 15:53:50 2002 Andrew Cagney <[email protected]>
3125
3126 * gdbarch.sh: Include "gdb_string.h".
3127 * gdbarch.c: Regenerate.
3128
3129 * regcache.c: Include "gdb_string.h".
3130 * ax-general.c: Ditto.
3131 * varobj.c: Ditto.
3132 * std-regs.c: Ditto.
3133 * fbsd-proc.c: Ditto.
3134 * thread.c: Ditto.
3135
3136 * Makefile.in (regcache.o): Update dependencies.
3137 (thread.o, gdbarch.o): Ditto.
3138 (ax-general.o, gdbarch.o): Ditto.
3139 (varobj.o, std-regs.o): Ditto.
3140 (fbsd-proc.o): Specify dependencies.
3141
29e1842b
AC
31422002-08-02 Andrew Cagney <[email protected]>
3143
3144 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3145 regnum.
3146 (regcache_cooked_write): Ditto.
3147
68365089
AC
31482002-08-02 Andrew Cagney <[email protected]>
3149
3150 * regcache.c (regcache_cooked_read): New function.
3151 (regcache_cooked_write): New function.
3152 (read_register_gen): Rewrite using regcache_cooked_read.
3153 (write_register_gen): Rewrite using regcache_cooked_write.
3154
3155 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3156 Declare.
3157
d8124050
AC
31582002-08-02 Andrew Cagney <[email protected]>
3159
3160 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3161 Replace the architecture methods register_read and register_write.
3162 * gdbarch.h, gdbarch.c: Regenerate.
3163 * regcache.c (init_regcache_descr): Update.
3164 (read_register_gen): Update.
3165 (write_register_gen): Update.
3166 (supply_register): Update comment.
3167
3168 * sh-tdep.c (sh_gdbarch_init): Update.
3169 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3170 `regcache' and `gdbarch' parameters. Make `buffer' a void
3171 pointer. Update code.
3172 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3173 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3174 void pointer. Update code.
3175 (sh64_register_write): Delete.
3176 (sh4_register_read): Delete.
3177 (sh64_register_read): Delete.
3178 (sh4_register_write): Delete.
3179 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3180 void pointer, `to' parameter a void pointer.
3181 (sh_sh64_register_convert_to_raw): Ditto.
3182
a6425924
KB
31832002-08-01 Kevin Buettner <[email protected]>
3184
3185 * mips-tdep.c (mips_register_virtual_type): Use architecture
3186 invariant return values.
3187
ff5922b5
AC
31882002-08-01 Andrew Cagney <[email protected]>
3189
3190 * linux-proc.c: Include "gdb_string.h".
3191 * Makefile.in (linux-proc.o): Update dependency list.
3192
32a6503c
KB
31932002-08-01 Kevin Buettner <[email protected]>
3194
3195 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3196 comment.
3197
ccaa32c7
GS
31982002-08-01 Grace Sainsbury <[email protected]>
3199
3200 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3201 to_insert_watchpoint, to_remove_watchpoint,
3202 to_stopped_by_watchpoint, to_stopped_data_address,
3203 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3204 target vecctor. Define their corresponding macros so they call
3205 them.
3206
3207 * target.c: Add default and debug versions of for
3208 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3209 to_insert_watchpoint, to_remove_watchpoint,
3210 to_stopped_by_watchpoint, to_stopped_data_address,
3211 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3212
78fde5f8
KB
32132002-08-01 Kevin Buettner <[email protected]>
3214
3215 * mips-tdep.c (mips_register_virtual_type): New function.
3216 (mips_gdbarch_init): Register mips_register_virtual_type()
3217 with gdbarch machinery.
3218 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3219 this file instead of tm-bigmips.h.
3220 (MIPS_REGSIZE): Delete this macro.
3221 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3222 multiarch version in mips-tdep.c will be found.
3223
db034ac5
AC
32242002-08-01 Andrew Cagney <[email protected]>
3225
3226 * NEWS: Menion that CHILL has been made obsolete.
3227
3228 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
3229 * stabsread.c (read_range_type): Ditto.
3230 * gdbtypes.h: Ditto.
3231 * language.c (binop_type_check): Ditto.
3232 (binop_result_type): Ditto.
3233 (integral_type): Ditto.
3234 (character_type): Ditto.
3235 (string_type): Ditto.
3236 (boolean_type): Ditto.
3237 (structured_type): Ditto.
3238 (lang_bool_type): Ditto.
3239 (binop_type_check): Ditto.
3240 * language.h (_LANG_chill): Ditto.
3241 * dwarfread.c (set_cu_language): Ditto.
3242 * dwarfread.c (CHILL_PRODUCER): Ditto.
3243 * dwarfread.c (handle_producer): Ditto.
3244 * expression.h (enum exp_opcode): Ditto.
3245 * eval.c: Ditto for comments.
3246 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3247 * expprint.c (print_subexp): Ditto.
3248 (print_subexp): Ditto.
3249 * valops.c (value_cast): Ditto.
3250 (search_struct_field): Ditto.
3251 * value.h (COERCE_VARYING_ARRAY): Ditto.
3252 * symfile.c (init_filename_language_table): Ditto.
3253 (add_psymbol_with_dem_name_to_list): Ditto.
3254 * valarith.c (value_binop): Ditto.
3255 (value_neg): Ditto.
3256 * valops.c (value_slice): Ditto.
3257 * symtab.h (union language_specific): Ditto.
3258 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3259 (SYMBOL_DEMANGLED_NAME): Ditto.
3260 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3261 * defs.h (enum language): Ditto.
3262 * symtab.c (got_symtab): Ditto.
3263 * utils.c (fprintf_symbol_filtered): Ditto.
3264
3265 * ch-typeprint.c: Make file obsolete.
3266 * ch-valprint.c: Make file obsolete.
3267 * ch-lang.h: Make file obsolete.
3268 * ch-exp.c: Make file obsolete.
3269 * ch-lang.c: Make file obsolete.
3270
3271 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3272 CHILL_LIB.
3273 (TARGET_FLAGS_TO_PASS): Ditto.
3274 (CHILLFLAGS): Obsolete.
3275 (CHILL): Obsolete.
3276 (CHILL_FOR_TARGET): Obsolete.
3277 (CHILL_LIB): Obsolete.
3278 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3279 ch-valprint.c.
3280 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3281 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3282 ch-lang.o.
3283 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3284 targets.
3285
8aaf0b47
JB
32862002-07-31 Joel Brobecker <[email protected]>
3287
3288 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3289 This does not change anything at the moment, but will be helpful
3290 later when full Ada support is integrated.
3291
f3a7b3a5
KB
32922002-07-31 Kevin Buettner <[email protected]>
3293
3294 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3295 help message.
3296
fb850278
KB
32972002-07-31 Kevin Buettner <[email protected]>
3298
3299 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3300 and save it in a local variable. Use variable in later test.
3301
e3bddbfa
KB
33022002-07-31 Kevin Buettner <[email protected]>
3303
3304 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3305 test. (Thanks to Daniel Jacobowitz.)
3306
28d169de
KB
33072002-07-31 Kevin Buettner <[email protected]>
3308
3309 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3310 (mips_abi_strings): Add "n64".
3311 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3312
7fe7e44e
KB
33132002-07-31 Kevin Buettner <[email protected]>
3314
3315 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3316 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3317
c6caf090
KB
33182002-07-31 Kevin Buettner <[email protected]>
3319
3320 * utils.c (host_pointer_to_address, address_to_host_pointer):
3321 Use gdb_assert() instead of explicit call to internal_error().
3322
c41669e0
KB
33232002-07-30 Kevin Buettner <[email protected]>
3324
3325 * Makefile.in (rs6000-nat.o): Update dependencies.
3326
3327 From Nicholas Duffek:
3328 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3329 (aix-thread.o): New rule.
3330 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3331 * config/powerpc/aix432.mh: New file.
3332
2fda4977
DJ
33332002-07-30 Daniel Jacobowitz <[email protected]>
3334
3335 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3336 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3337 (fetch_core_registers, ppc_linux_supply_gregset)
3338 (ppc_linux_supply_fpregset): New functions.
3339 (ppc_linux_regset_core_fns): New.
3340 (_initialize_ppc_linux_tdep): Call add_core_fns.
3341 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3342 and ppc_linux_supply_gregset.
3343 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3344 (supply_fpregset): Call ppc_linux_supply_fpregset.
3345 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3346 corelow.o.
3347 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3348
729051e6
DJ
33492002-07-30 Daniel Jacobowitz <[email protected]>
3350
3351 * symtab.c (lookup_symbol): Demangle before lowercasing.
3352
5f8a3188
AC
33532002-07-30 Andrew Cagney <[email protected]>
3354
3355 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3356 declaration.
3357 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3358 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3359 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3360 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3361 "gdb_string.h".
3362 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3363 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3364 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3365 (avr-tdep.o, mon960-rom.o): Ditto.
3366 (aout_stabs_gnu_h): Define.
3367 (symtab_h): Remove $(gdb_obstack_h).
3368
67f07146
JB
33692002-07-30 Jim Blandy <[email protected]>
3370
3371 Patch from David Carlton <[email protected]>:
3372 * gdbinit.in: Move the `dir' commands that add GDB's own source
3373 directory to the search path to the end, so that the `gdb' source
3374 directory will be searched first.
3375
04ea0df1
AC
33762002-07-29 Andrew Cagney <[email protected]>
3377
3378 * gdb_obstack.h: New file.
3379 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3380 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3381 * objfiles.h: Include "gdb_obstack.h".
3382 * Makefile.in (gdb_obstack_h): Define.
3383 (symtab_h): Add $(gdb_obstack_h).
3384 (objfiles_h): Add $(gdb_obstack_h).
3385
3386 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3387 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3388 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3389 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3390 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3391 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3392 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3393 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3394
3395 * Makefile.in (bcache.o): Update dependencies.
3396 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3397 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3398 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3399 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3400 (stabsread.o, symfile.o, symmisc.o): Ditto.
3401 (symtab.o, typeprint.o, macroexp.o): Ditto.
3402 (macrotab.o, mdebugread.o): Ditto.
3403 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3404 (coff_ecoff_h, aout_aout64_h): Define.
3405 (aout_stabs_gnu_h, libaout_h): Define.
3406
d138e37a
AC
34072002-07-29 Andrew Cagney <[email protected]>
3408
3409 * regcache.c (struct regcache_descr): Rename nr_registers to
3410 nr_cooked_registers. Revise comments describing the structure
3411 member fields.
3412 (init_regcache_descr): Update.
3413 (init_legacy_regcache_descr): Update.
3414 (read_register_gen, write_register_gen): When a cooked register in
3415 the raw register range, directly access the value from the raw
3416 register cache.
3417
460e6ec3
AC
34182002-07-29 Andrew Cagney <[email protected]>
3419
3420 * z8k-tdep.c: Do not include "obstack.h".
3421 * h8300-tdep.c, h8500-tdep.c: Ditto.
3422 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3423 * valprint.c, v850-tdep.c: Ditto.
3424 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3425 * mn10200-tdep.c: Ditto.
3426
3427 * Makefile.in (z8k-tdep.o): Update dependencies.
3428 (m68hc11-tdep.o, valprint.o): Ditto.
3429 (v850-tdep.o, d10v-tdep.o): Ditto.
3430 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3431 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3432 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3433 (sh_opc_h, gdb_sim_sh_h): Define.
3434 (elf_sh_h, elf_bfd_h): Define.
3435 (opcode_m68hc11_h): Define.
3436 (OPCODES_SRC, OPCODES_DIR): define.
3437 (OPCODES): Use $(OPCODES_DIR).
3438 (gdb_sim_d10v_h): Rename sim_d10v_h.
3439 (gdb_sim_arm_h): Rename sim_arm_h.
3440
790c9cf0
KB
34412002-07-26 Kevin Buettner <[email protected]>
3442
3443 * utils.c (host_pointer_to_address, address_to_host_pointer):
3444 Change internal_error() message to indicate function responsible
3445 for the error.
3446
9647fa49
KB
34472002-07-26 Kevin Buettner <[email protected]>
3448
3449 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3450 calls to local_hex_string_custom().
3451
dabbe2c0
KB
34522002-07-26 Kevin Buettner <[email protected]>
3453
3454 * irix5-nat.c: Move IRIX shared library support from here...
3455 * solib-irix.c: ...to here. Revised substantially to work with
3456 generic solib framework.
3457
b96d0a4e
KB
3458 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3459 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3460 * mips-irix-tdep.c: New file.
3461
313fb2f6
KB
3462 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3463 (mips-irix-tdep.o, solib-irix.o): New rules.
3464 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3465 solib-irix.o.
3466 * config/mips/irix6.mt (TDEPFILES): Likewise.
3467 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3468
ab2eaf26
KB
34692002-07-26 Kevin Buettner <[email protected]>
3470
177e4768 3471 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
3472 disabled (via ``#if 0'') includes.
3473
7244546a
KB
34742002-07-26 Kevin Buettner <[email protected]>
3475
3476 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3477 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3478 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3479 Add support for the fpscr register.
3480 * rs6000-nat.c (regmap, fetch_inferior_registers)
3481 (store_inferior_registers, fetch_core_registers): Likewise.
3482
dd7be90a
KB
34832002-07-26 Kevin Buettner <[email protected]>
3484
3485 * rs6000-nat.c (language.h): Include.
3486 (special_regs): Delete this array.
3487 (regmap): New function.
3488 (fetch_register, store_register): Use regmap() to map gdb
3489 register numbers to ptrace register numbers. Also, use
3490 outputs from regmap() to make decisions regarding type of
3491 ptrace() call to make. In particular, don't compare against
3492 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3493 (fetch_inferior_registers, store_inferior_registers): Where
3494 possible, obtain register numbers from tdep struct. Don't
3495 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3496 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3497 (LAST_UISA_SP_REGNUM): Delete.
3498
11bf77db
KB
34992002-07-25 Kevin Buettner <[email protected]>
3500
3501 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
3502 (fetch_registers, store_register, fetch_core_registers): Don't
3503 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
3504 regcache_collect() as appropriate.
3505 (find_toc_address): Format hex address with local_hex_string().
3506
06afebeb
AC
35072002-07-25 Andrew Cagney <[email protected]>
3508
3509 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3510 bfd/elf32-frv.c.
3511
8c554d79
TT
35122002-07-24 Tom Tromey <[email protected]>
3513
3514 * jv-exp.y: Marked all strings with _().
3515 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3516 internal_error.
3517 (MethodInvocation, CastExpression, parse_number, yyerror,
3518 java_type_from_name, push_expression_name, yylex): Typo fixes.
3519
e4c242d9
DJ
35202002-07-24 Daniel Jacobowitz <[email protected]>
3521
3522 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3523 (tee_file_flush, tee_file_write, tee_file_fputs)
3524 (tee_file_isatty): New.
3525 * ui-file.h (tee_file_new): Add prototype.
3526
ebf56fd3
AS
35272002-07-24 Aidan Skinner <[email protected]>
3528
3529 * ada-lang.c: Change k&r style function definitions to prototyped
3530 form.
3531 * ada-typeprint.c: Change k&r style function definitions to prototyped
3532 form.
3533 * ada-valprint.c: Change k&r style function definitions to prototyped
3534 form.
3535
7fb623f7
AC
35362002-07-24 Andrew Cagney <[email protected]>
3537
3538 * README: Remove reference to remote-bug.
3539 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3540 remote-bug.c.
3541 (m88k-nat.o): Delete rule.
3542 (m88k-tdep.o): Delete rule.
3543 (remote-bug.o): Delete rule.
3544 * MAINTAINERS: Mark as obsolete.
3545 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3546 * m88k-tdep.c: Make file obsolete.
3547 * config/m88k/m88k.mh: Ditto.
3548 * config/m88k/delta88v4.mh: Ditto.
3549 * config/m88k/delta88v4.mt: Ditto.
3550 * config/m88k/delta88.mt: Ditto.
3551 * config/m88k/delta88.mh: Ditto.
3552 * remote-bug.c: Ditto.
3553 * config/m88k/tm-delta88.h: Ditto.
3554 * config/m88k/nm-delta88v4.h: Ditto.
3555 * config/m88k/xm-delta88.h: Ditto.
3556 * config/m88k/xm-dgux.h: Ditto.
3557 * config/m88k/tm-m88k.h: Ditto.
3558 * config/m88k/nm-m88k.h: Ditto.
3559 * config/m88k/tm-delta88v4.h: Ditto.
3560 * m88k-nat.c: Ditto.
3561 * cxux-nat.c: Ditto.
3562 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3563 and m88*-*-* obsolete.
3564 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3565 m88*-*-* obsolete.
3566
37611a2b
AC
35672002-07-24 Andrew Cagney <[email protected]>
3568
3569 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3570 constant. Same for local pointer variables.
3571 (extract_signed_integer): Ditto.
3572 * defs.h (extract_unsigned_integer): Update.
3573 (extract_signed_integer): Update.
3574
1aaa5f99
AC
35752002-07-24 Andrew Cagney <[email protected]>
3576
3577 * regcache.c (regcache_raw_write): Change buf parameter to a
3578 constant void pointer.
3579 (regcache_raw_read): Change buf parameter to a void pointer.
3580 (legacy_write_register_gen): Change myaddr parameter a constant
3581 void pointer.
3582 (supply_register): Change val parameter to a const void pointer.
3583 * regcache.h (regcache_raw_write): Update declaration.
3584 (regcache_raw_read): Update declaration.
3585 (supply_register): Update declaration.
3586
b4f5539f
TT
35872002-07-24 Tom Tromey <[email protected]>
3588
3589 * defs.h (gdb_readline_wrapper): Declare.
3590 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3591 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3592 * top.c (gdb_readline_wrapper): New function.
3593 (command_line_input): Use it.
3594
0818c12a
AC
35952002-07-24 Andrew Cagney <[email protected]>
3596
3597 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3598 regcache_read and regcache_write.
3599 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3600 * regcache.c: Update.
3601 * sh-tdep.c (sh64_push_arguments): Update comment.
3602 (sh_pseudo_register_read): Update.
3603 (sh_pseudo_register_write): Update.
3604 (sh4_register_read): Update.
3605 (sh4_register_write): Update.
3606 (sh64_pseudo_register_read): Update.
3607 (sh64_pseudo_register_write): Update.
3608 (sh64_register_read): Update.
3609 (sh64_register_write): Update.
3610 * i386-tdep.c (i386_extract_return_value): Update.
3611 (i386_extract_struct_value_address): Update.
3612 (i386_extract_return_value): Update.
3613 * blockframe.c (generic_read_register_dummy): Update.
3614 (generic_call_dummy_register_unwind): Update
3615 * infrun.c (write_inferior_status_register): Update.
3616
f7321c06
JB
36172002-07-23 Jim Blandy <[email protected]>
3618
3619 * parser-defs.h (expression_context_pc): Make this extern.
3620 (Thanks to Michael Snyder.)
3621
2037aebb
AC
36222002-07-23 Andrew Cagney <[email protected]>
3623
3624 GDB 5.2.1 released from 5.2 branch.
3625 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3626 * README: Update to mention 5.2.1.
3627
66504d44
MS
36282002-07-23 Mark Salter <[email protected]>
3629
3630 * remote.c (remote_read_bytes): Fix check for error.
3631
27bae383
KB
36322002-07-22 Kevin Buettner <[email protected]>
3633
3634 * aix-thread.c (language.h): Include.
3635 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3636 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3637 Print newlines at end of debug messages.
3638 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3639 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3640
36412002-07-22 Kevin Buettner <[email protected]>
3642
3643 * aix-thread.c (ppc-tdep.h): Include.
3644 (special_register_p): New function.
3645 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3646 (store_regs_user_thread): Use register number information from
3647 gdbarch_tdep struct instead of hardcoded offsets relative to
3648 FIRST_UISA_SP_REGNUM.
3649 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3650 special_register_p() instead of using FPLAST_REGNUM and
3651 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3652 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3653 will be MQ's register number.
3654
36552002-07-22 Michael Snyder <[email protected]>
206d3d3c
KB
3656
3657 * aix-thread.c (ops): Rename to aix_thread_ops.
3658 (base_ops): Rename to base_target.
3659 (ops_attach): Rename to aix_thread_attach.
3660 (ops_detach): Rename to aix_thread_detach.
3661 (ops_resume): Rename to aix_thread_detach.
3662 (ops_wait): Rename to aix_thread_wait.
3663 (ops_kill): Rename to aix_thread_kill.
3664 (init_ops): Rename to init_aix_thread_ops.
3665 (ops_fetch_register): Rename to aix_thread_fetch_register.
3666 (ops_store_register): Rename to aix_thread_store_register.
3667 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3668 (ops_thread_alive): Rename to aix_thread_thread_alive.
3669 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3670 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3671 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3672 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3673 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3674 (store_regs_lib): Rename to store_regs_user_thread.
3675 (store_regs_kern): Rename to store_regs_kernel_thread.
3676
27bae383 36772002-07-22 Michael Snyder <[email protected]>
cbe92db4
KB
3678
3679 * aix-thread.c (ops_prepare_to_store): Eliminate.
3680 (init_ops): Don't initialize ops.prepare_to_store.
3681 (store_regs_kern): Pre-fetch register buffers from child,
3682 because some registers may not be in the cache. Copy
3683 regs from register cache only if they are cached.
3684 (store_regs_lib): Copy regs from register cache only
3685 if they are cached.
3686 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3687 fill_gprs64): Ditto.
3688
61c5da0b
KB
36892002-07-22 Kevin Buettner <[email protected]>
3690
3691 * aix-thread.c (gdb_assert.h): Include.
3692 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3693 register sizes (from register cache) match size of buffer holding
3694 register data.
3695 (fill_sprs32): Change parameter types to match those in the ptrace()
3696 buffer.
3697 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3698 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3699
37002002-07-22 Michael Snyder <[email protected]>
3701
3702 * aix-thread.c (supply_sprs64): Cosmetic change.
3703 (supply_sprs32): Cosmetic change.
3704 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3705 (fill_sprs64): Use regcache_collect instead of read_register.
3706 (store_regs_lib): Use regcache_collect instead of
3707 read_register. Use fill_sprs32 instead of fill_sprs64,
3708 if debugging a 32-bit architecture.
3709 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3710 out of the register cache, instead of passing a pointer into
3711 the register cache directly to ptrace. Use regcache_collect
3712 insteaad of read_register.
3713 (ops_prepare_to_store): Use target_read_registers instead
3714 of read_register_bytes.
3715
36479eb1
AS
37162002-07-20 Aidan Skinner <[email protected]>
3717
3718 * MAINTAINERS: Add self under write after approval.
3719
80ae6ee2
AS
37202002-07-20 Aidan Skinner <[email protected]>
3721
3722 * ada-tasks.c: Change k&r style function definitions to prototyped
3723 form.
3724
8a8ab2b9
AC
37252002-07-19 Andrew Cagney <[email protected]>
3726
3727 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3728 * x86-64-tdep.c: Include "objfiles.h".
3729 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3730 in_plt_section. From 2002-07-18 Michal Ludvig <[email protected]>.
3731
fb16b900
ML
37322002-07-17 Michal Ludvig <[email protected]>
3733
3734 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3735 (update_context): Initialise cfa variable.
3736
0fe7bf7b
MS
37372002-07-17 Michael Snyder <[email protected]>
3738
3739 * aix-thread.c: Shorten some long lines.
3740 Bring comments into line with code spec.
3741
488f131b
JB
37422002-07-18 Joel Brobecker <[email protected]>
3743
3744 * infrun.c: Re-indent using gdb_indent.sh.
3745
46c415d2
JB
37462002-07-18 Joel Brobecker <[email protected]>
3747
3748 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3749 Leave the indentation temporarily untouched, to minimize the diffs.
3750
cdecafbe
EZ
37512002-07-18 Elena Zannoni <[email protected]>
3752
3753 * stabsread.c: Make os9k sections of the code obsolete,
3754 for real this time.
3755 * stabsread.h: Make os9k sections of the code obsolete.
3756
7b6aa020
ML
37572002-07-18 Michal Ludvig <[email protected]>
3758
09ec9b38
ML
3759 * linux-low.c (regsets_store_inferior_registers): Add free()
3760 at the end of a loop to prevent memory leak.
3761 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3762 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3763 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3764 line a comment.
4894ac5d 3765 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3766
233282cd
JB
37672002-07-17 Jim Blandy <[email protected]>
3768
3769 * macrocmd.c (info_macro_command): Remove newline from error
3770 message.
3771
7b6aa020 37722002-07-17 J"orn Rennecke <[email protected]>
2f14585c
JR
3773
3774 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3775 (sh_gdbarch_init): Use it for sh-dsp.
3776
f7ef9339
KB
37772002-07-16 Kevin Buettner <[email protected]>
3778
3779 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3780 64-bit DWARF2 format.
3781
8dd72958
JB
37822002-07-16 Joel Brobecker <[email protected]>
3783
3784 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3785 <sys/proc.h> when not available.
3786
a99a9e1b
AC
37872002-07-16 Andrew Cagney <[email protected]>
3788
3789 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3790 * stabsread.c: Make os9k sections of the code obsolete.
3791 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3792 * config/i386/i386os9k.mt: Make file obsolete.
3793 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3794 (COMMON_OBS): Remove os9kread.o
3795 (SFILES): Remove os9kread.c.
3796 (os9kread.o, remote-os9k.o): Make target obsolete.
3797 * remote-os9k.c: Make file obsolete.
3798 * os9kread.c: Make file obsolete.
3799 * Makefile.in
3800
7a3085c1
AC
38012002-07-16 Andrew Cagney <[email protected]>
3802
3803 * NEWS: Mention that the FR30 has been made obsolete.
3804 * fr30-tdep.c: Make file obsolete.
3805 * config/fr30/tm-fr30.h: Ditto.
3806 * config/fr30/fr30.mt: Ditto.
3807 * configure.tgt: Make fr30-*-elf obsolete.
3808 * MAINTAINERS: Make fr30-elf obsolete.
3809
28a93f5a
PM
38102002-07-16 Pierre Muller <[email protected]>
3811
3812 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3813 found is not inside a section.
3814
be006b8b
KB
38152002-07-15 Kevin Buettner <[email protected]>
3816
3817 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3818 strerror().
3819 (pdc_realloc): Use xrealloc() instead of realloc().
3820
14fa3751
KB
38212002-07-15 Kevin Buettner <[email protected]>
3822
3823 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3824 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3825 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3826 macros.
3827
42cc437f
KB
38282002-07-15 Kevin Buettner <[email protected]>
3829
3830 * aix-thread.c (ptrace_check): Eliminate goto.
3831 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3832 problem.
3833
8e2c28d4
KB
38342002-07-15 Kevin Buettner <[email protected]>
3835
3836 * aix-thread.c (gdbcmd.h): Include.
3837 (DEBUG, DBG, DBG2, dbg): Eliminate.
3838 (debug_aix_thread): New static global.
3839 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3840 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3841 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3842 invocations to DBG and DBG2 macros to test against
3843 ``debug_aix_thread'' and call fprintf_unfiltered().
3844 (_initialize_aix_thread): Add new command "set debug aix-thread".
3845
30413464
AC
38462002-07-15 Andrew Cagney <[email protected]>
3847
3848 From Gerhard Tonn <[email protected]>:
3849 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3850 instead of supply_register.
3851
7c43edc1
AC
38522002-07-15 Andrew Cagney <[email protected]>
3853
3854 * dwarf2cfi.c: Include "gdb_assert.h".
3855 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3856 non-NULL.
3857 (update_context): Do not use __func__. Add missing ``break''.
3858 (update_context): Do not use __func__.
3859
9364a0ef
EZ
38602002-07-15 Elena Zannoni <[email protected]>
3861
3862 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3863 and its setting. Set gdbarch instruction printing functions
3864 directly. For non-rs6000 case use new function
3865 gdb_print_insn_powerpc.
3866 (gdb_print_insn_powerpc): New function.
3867
3fbeef0b
AC
38682002-07-13 Andrew Cagney <[email protected]>
3869
92eb23c5 3870 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3871 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3872 * configure.tgt: Mark d30v-*-* as obsolete.
3873 * d30v-tdep.c: Mark file as obsolete.
3874 * config/d30v/d30v.mt: Ditto.
3875 * config/d30v/tm-d30v.h: Ditto.
3876
aacb1f0a
AS
38772002-07-13 Aidan Skinner <[email protected]>
3878
3879 * ada-tasks.c (add_task_entry): replace calls to
3880 malloc() with xmalloc
3881 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3882
3883 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3884 ada_finish_decode_line_1, all_sals_for_line
3885 ada_breakpoint_rewrite): replace calls to free() with xfree()
3886
c11d79f2
KB
38872002-07-12 Kevin Buettner <[email protected]>
3888
3889 From Nicholas Duffek (with minor changes by Martin Hunt,
3890 Louis Hamilton, and Kevin Buettner):
3891 * aix-thread.c: New file.
3892
8e19ed76
PS
38932002-07-12 Petr Sorfa <[email protected]>
3894
3895 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3896 complaint for invalid attribute class or form.
3897 (read_func_scope): DW_AT_frame_base
3898 better handling of DW_AT_block*.
3899 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3900 better handling of DW_AT_block*.
3901 (read_common_block): DW_AT_location
3902 better handling of DW_AT_block*.
3903 (read_partial_die): DW_AT_location better handling
3904 of DW_AT_block*.
3905 (new_symbol): DW_AT_external better handling of
3906 DW_AT_block*. Proper initialization of variable
3907 "addr".
3908 (attr_form_is_block): New function that returns true
3909 if the attribute's form is of DW_FORM_block*.
3910
295401f7
DJ
39112002-07-12 Peter Schauer <[email protected]>
3912
3913 * valops.c (find_method_list): Remove comment about
3914 removed STATIC_MEMFUNCP argument.
3915 (value_find_oload_method_list): Likewise.
3916
e42dc924
KB
39172002-07-12 Kevin Buettner <[email protected]>
3918
3919 From Nicholas Duffek:
3920 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3921 target_new_objfile_hook.
3922
6904b546
KB
39232002-07-12 Kevin Buettner <[email protected]>
3924
3925 From Nicholas Duffek:
3926 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3927 csect.
3928
53fe9346
AC
39292002-07-12 Andrew Cagney <[email protected]>
3930
3931 * MAINTAINERS: Mention --enable-sim-build-warnings.
3932 (m68hc11-elf): Disable sim build warnings.
3933 (m32r-elf): Mark as broken obsolete candidate.
3934 (x86_64-linux-gnu): Mark as buildable with -Werror.
3935 (arm-elf): Change -w to ``,'' which enables warnings but not
3936 -Werror.
3937
af5f3db6
AC
39382002-07-12 Andrew Cagney <[email protected]>
3939
3940 * bcache.h: Update copyright.
3941 (struct bstring, struct bcache): Move definition to "bcache.c".
3942 Replaced by opaque declaration.
3943 (bcache_xfree): Replace free_bcache.
3944 (bcache_xmalloc, bcache_memory_used): Declare.
3945
3946 * bcache.c: Update copyright.
3947 (struct bstring, struct bcache): Moved to here from "bcache.h".
3948 Update comments.
3949 (bcache_xmalloc, bcache_memory_used): New functions.
3950 (bcache_xfree): Replace function free_bcache.
3951
3952 * Makefile.in (objfiles.o): Add $(bcache_h).
3953 (objfiles_h): Remove $(bcache_h).
3954 (symfile.o): Add $(bcache_h).
3955
3956 * symmisc.c: Update copyright.
3957 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3958 (print_objfile_statistics): Use bcache_memory_used.
3959
3960 * symfile.c: Include "bcache.h".
3961 (reread_symbols): Use bcache_xfree.
3962 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3963 (add_psymbol_to_list): Pass psymbol_cache by value.
3964 (add_psymbol_with_dem_name_to_list): Ditto.
3965
3966 * objfiles.h: Update copyright.
3967 (struct bcache): Declare opaque. Do not include "bcache.h".
3968 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3969 bcache'' pointers.
3970 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3971
3972 * objfiles.c: Include "bcache.h". Update copyright.
3973 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3974 macro_cache.
3975 (free_objfile): Use bcache_xfree.
3976
444199e7
GS
39772002-07-11 Grace Sainsbury <[email protected]>
3978
3979 * monitor.c (monitor_fetch_register): Make name a constant.
3980 (monitor_store_register): Same.
3981
261397f8
DJ
39822002-07-11 Daniel Jacobowitz <[email protected]>
3983
3984 Based on patch from Daniel Berlin <[email protected]>.
3985 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3986 (finish_block) For non-function blocks, hash the symbol table. For
3987 function blocks, mark the symbol table as unhashed.
3988 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3989 (msymbol_hash_iw): Likewise.
3990 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3991 value.
3992 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3993 (lookup_minimal_symbol): Likewise for both.
3994 * symtab.h (struct block): Add `hashtable' flag. Comment the
3995 hashtable.
3996 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3997 (ALL_BLOCK_SYMBOLS): Update.
3998 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3999 (struct symbol): Add `hash_next' pointer.
4000 * symtab.c (lookup_block_symbol): Search using the hash table when
4001 possible.
4002 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4003 (search_symbols, find_addr_symbol): Likewise.
4004
4005 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4006 (read_dst_symtab): Likewise.
4007 * jv-lang.c (get_java_class_symtab): Likewise.
4008 * mdebugread.c: Include "gdb_assert.h".
4009 (shrink_block): Assert that the block being modified is not hashed.
4010 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4011 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4012 symbols.
4013 (dump_symtab): Recognize hashed blocks.
4014 * printcmd.c (print_frame_args): Assert that function blocks do not
4015 have hashed symbol tables.
4016 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4017 (fill_in_ada_prototype, debug_print_block): Likewise.
4018 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4019
6f0eaa01
CV
40202002-07-11 Corinna Vinschen <[email protected]>
4021
4022 * stack.c (print_frame): Use result of frame_address_in_block()
4023 instead of fi->pc when evaluating symbols.
4024 (backtrace_command_1): Ditto.
4025
a208b0cb
AC
40262002-07-11 Andrew Cagney <[email protected]>
4027
4028 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4029 Make static.
4030
4031 * arm-tdep.c (arm_register_name): Make return type constant.
4032
a6b6b089
AC
40332002-07-10 Andrew Cagney <[email protected]>
4034
5ae5f592
AC
4035 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4036 prototype.
4037 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4038 * s390-tdep.c (s390_fp_regnum): Ditto.
4039 (s390_read_fp): Ditto.
4040 (s390_pop_frame): Ditto.
4041 (_initialize_s390_tdep): Ditto.
4042 * remote.c (get_remote_state): Ditto.
4043 * procfs.c (mappingflags): Ditto.
4044 * memattr.c (_initialize_mem): Ditto.
4045 * mcore-tdep.c (mcore_pop_frame): Ditto.
4046 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4047 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4048 * language.c (set_case_str): Ditto.
4049 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4050 * frv-tdep.c (new_variant): Ditto.
4051 (frv_stopped_data_address): Ditto.
4052 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4053 (context_alloc): Ditto.
4054 (frame_state_alloc): Ditto.
4055 (unwind_tmp_obstack_init): Ditto.
4056 (unwind_tmp_obstack_free): Ditto.
4057 (cfi_read_fp): Ditto.
4058 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4059 (cris_pop_frame): Ditto.
4060 * c-lang.c (scanning_macro_expansion): Ditto.
4061 (finished_macro_expansion): Ditto.
4062 (c_preprocess_and_parse): Ditto.
4063 * gdbarch.sh: Ditto.
4064 * gdbarch.h, gdbarch.c: Regenerate.
4065 * config/mn10200/tm-mn10200.h: Adjust indentation.
4066 * target.c: Adjust indentation.
4067 * symtab.h: Adjust indentation.
4068 * stabsread.h: Adjust indentation.
4069 * remote-es.c: Adjust indentation.
4070 * os9kread.c: Adjust indentation.
4071
40722002-07-10 Andrew Cagney <[email protected]>
4073
a6b6b089
AC
4074 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4075 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4076
a1789893
GS
40772002-07-10 Grace Sainsbury <[email protected]>
4078
4079 * NEWS: Mention m68k, mcore multi-arching.
4080 * MAINTAINERS: Change status of m68k, mcore to reflect
4081 multi-arching.
4082
02f0d45d
DJ
40832002-07-10 Daniel Jacobowitz <[email protected]>
4084
4085 * valops.c (find_overload_match): Free oload_syms.
4086
f15f768e
JB
40872002-07-09 Joel Brobecker <[email protected]>
4088
4089 Define HAVE_SYS_PROC_H if sys/proc.h exists
4090 * configure.in: Add check for sys/proc.h
4091 * config.in: Regenerate.
4092 * configure: Regenerate.
4093
902a7139
GS
40942002-07-09 Grace Sainsbury <[email protected]>
4095
4096 * config/m68k/tm-m68k.h: Remove macros wrapped in
4097 #if !GDB_MULTI_ARCH.
4098
a534e424
AC
40992002-07-08 Andrew Cagney <[email protected]>
4100
4101 * config.in, configure: Regenerate.
4102
9b94f7bf
MK
41032002-07-08 Mark Kettenis <[email protected]>
4104
4105 * dwarf2cfi.c: Include "gcore.h".
4106 (execute_stack_op): Fix implementation of the
4107 DW_OP_deref and DW_OP_deref_size operators by letting do their
4108 lookup in the target.
4109
1d34db41
MK
41102002-07-07 Mark Kettenis <[email protected]>
4111
4112 From Peter Schauer <[email protected]>:
4113 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4114 tdep->sc_sp_offset.
4115
79d5b63a
DJ
41162002-07-05 Daniel Jacobowitz <[email protected]>
4117
4118 Fix PR gdb/595, gdb/602
4119 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4120 Don't call value_cast, just read the vtable pointer; update comments
4121 to match.
4122
3bb912e8
GS
41232002-07-05 Grace Sainsbury <[email protected]>
4124
4125 * config/mcore/tm-mcore.h: Remove file.
4126 * config/mcore/mcore.mt: Remove definition of TM_FILE
4127 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4128
ca39387d
MK
41292002-07-05 Mark Kettenis <[email protected]>
4130
4131 * i386bsd-tdep.c: Include "gdb_string.h".
4132
efdc1108
GS
41332002-07-04 Grace Sainsbury <[email protected]>
4134
4135 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4136 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4137 mcore-tdep.
4138 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4139 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4140 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4141 (RETVAL_REGNUM): Move macros from tm-mcore.h
4142 (mcore_reg_struct_has_addr): New function.
4143 (mcore_gdbarch_init): Added initializations for the macros removed
4144 from tm-mcore.h.
4145
bb21884d
MK
41462002-07-04 Mark Kettenis <[email protected]>
4147
4148 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4149 traditonal string branding within the ELF header.
4150
228c6d41
DJ
41512002-07-04 Daniel Jacobowitz <[email protected]>
4152
4153 * symtab.c (remove_params): New function.
4154 (make_symbol_overload_list): Use it instead of cplus_demangle.
4155 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4156
2404952e
MK
41572002-07-04 Mark Kettenis <[email protected]>
4158
e5e4acad
MK
4159 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4160
baadce09
MK
4161 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4162 New variables.
4163 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4164 and tdep->sigtramp_end.
4165 * i386obsd-nat.c: New file.
4166 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4167
2404952e
MK
4168 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4169 Don't call get_current_frame().
4170
9b4f1ba7
PM
41712002-07-04 Pierre Muller <[email protected]>
4172
4173 * i386-nat.c (child_post_startup_inferior): New function
4174 calling i386_cleanup_dregs if
4175 I386_USE_GENERIC_WATCHPOINTS is defined.
4176 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4177 conditional to acknowledge that i386-nat.c has its
4178 own child_post_startup_inferior function.
4179
c0d1d883
MK
41802002-07-04 Mark Kettenis <[email protected]>
4181
00f8375e
MK
4182 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4183 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4184 instead of MAX_REGISTER_RAW_SIZE.
4185 (i386_extract_return_value, i386_extract_struct_value_address):
4186 Convert to use regcache.
4187 (i386_gdbarch_init): Set max_register_raw_size and
4188 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4189 Set extract_return_value and extract_struct_value_address instead
4190 of their deprecated variants.
4191
c0d1d883
MK
4192 Convert i386 target to generic dummy frames.
4193 * i386-tdep.c: Include "symfile.h".
4194 (i386_frameless_signal_p): Consider a function to be frameless if
4195 the pc points at the first instruction of the function.
4196 (i386_frame_chain): Handle (generic) call dummies.
4197 (i386_frame_saved_pc): Likewise.
4198 (i386_frame_init_saved_regs): Remove code dealing with call
4199 dummies on the stack.
4200 (i386_push_dummy_frame): Removed.
4201 (i386_call_dummy_words): Removed.
4202 (i386_fix_call_dummy): Removed.
4203 (i386_push_return_address): New function.
4204 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4205 parameter, and don't call get_current_frame.
4206 (i386_pop_frame): New function.
4207 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4208 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4209 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4210 call_dummy_length to 0, set call_dummy_words to NULL, set
4211 sizeof_call_dummy_words to 0, set fix_call_dummy to
4212 generic_fix_call_dummy, set pc_in_call_dummy to
4213 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4214 generic_push_dummy_frame, set push_return_address to
4215 i386_push_return_address and set frame_chain_valid to
4216 generic_file_frame_chain_valid.
4217
049ee0e4
AC
42182002-07-03 Andrew Cagney <[email protected]>
4219
4220 * gdbarch.sh (struct regcache): Add opaque declaration.
4221 (EXTRACT_RETURN_VALUE): New architecture method.
4222 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4223 * gdbarch.h, gdbarch.c: Regenerate.
4224 * arch-utils.c (legacy_extract_return_value): New function.
4225 * arch-utils.h (legacy_extract_return_value): Declare.
4226 * values.c (value_being_returned): Re-enable code handling
4227 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4228 deprecated_grub_regcache_for_registers call to block handling
4229 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4230 (EXTRACT_RETURN_VALUE): Do not define.
4231
4e0d9804
GS
42322002-07-03 Grace Sainsbury <[email protected]>
4233
4234 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4235 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4236 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4237 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4238 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4239 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4240 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4241 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4242 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4243 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4244 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4245 argument so the function fits the prototype in the architecture
4246 vector.
4247 (mcore_pop_frame): Remove argument so the function fits the
4248 prototype. Use get_current_frame instead of the argument.
4249 (mcore_push_arguments): Change type of struct_return so the
4250 function can be used in the architecture vector.
4251 (mcore_store_struct_return): Add.
4252 (mcore_frame_init_saved_regs): Add.
4253 (mcore_gdbarch_init): Add function calls to replace the macros
4254 removed from tm-mcore.h
4255
36160dc4
AC
42562002-07-03 Andrew Cagney <[email protected]>
4257
4258 * infcmd.c (print_return_value): Remove compatibility code calling
4259 deprecated_grub_regcache_for_registers.
4260
4261 * values.c: Include "regcache.h".
4262 (value_being_returned): Update. Use
4263 deprecated_grub_regcache_for_registers to extract the register
4264 buffer address.
4265 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4266 ``struct regcache''.
4267 * Makefile.in (values.o): Add dependency on $(regcache_h).
4268
4269 * inferior.h (run_stack_dummy): Change type of second parameter to
4270 a ``struct regcache''.
4271 * valops.c (hand_function_call): Change type of retbuf to ``struct
4272 regcache''. Allocate using regcache_xmalloc, clean using
4273 make_cleanup_regcache_xfree.
4274 * infcmd.c (run_stack_dummy): Update. Use
4275 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4276
4277 * regcache.c (do_regcache_xfree): New function.
4278 (make_cleanup_regcache_xfree): New function.
4279 * regcache.h (make_cleanup_regcache_xfree): Declare.
4280
e64d9b3d
MH
42812002-07-03 Martin M. Hunt <[email protected]>
4282
4dd79c29
MH
4283 * event-top.c (command_line_handler): Don't read past
4284 beginning of buffer.
e64d9b3d 4285
4dd79c29
MH
42862002-07-03 Martin M. Hunt <[email protected]>
4287
e64d9b3d
MH
4288 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4289 struct frame_id.
4290 (varobj_create): Store frame_id for root.
4291 (varobj_gen_name): Use xasprintf.
4292 (varobj_update): Save and restore frame using get_frame_id() and
4293 frame_find_by_id().
4294 (create_child): Use xasprintf.
4295 (new_root_variable): Initialize frame_id.
4296 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4297 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4298 to prevent memory leak.
4299
26e6c56a
AC
43002002-07-03 Andrew Cagney <[email protected]>
4301
4302 * valops.c (hand_function_call): Move declaration of retbuf to
4303 start of function, allocate using malloc, add a cleanup but before
4304 the inf_status cleanup, cleanup the buffer. Rename local variable
4305 old_chain to inf_status_cleanup.
4306
f436dd25
MH
43072002-07-03 Martin M. Hunt <[email protected]>
4308
4309 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4310
4311 * cli/cli-decode.c (cmd_func_p): New function.
4312 (cmd_func): New function.
4313
4314 * command.h: Add cmd_func() and cmd_func_p().
4315
4cfe2084
GS
43162002-07-03 Grace Sainsbury <[email protected]>
4317
4318 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4319 (REGISTER_SIZE): Remove.
4320 (MAX_REGISTER_RAW_SIZE): Remove.
4321 (REGISTER_VIRTUAL_TYPE): Remove.
4322 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4323 (REGISTER_NAME): Remove.
4324 (USE_GENERIC_DUMMY_FRAMES): Remove.
4325 (CALL_DUMMY): Remove.
4326 (CALL_DUMMY_START_OFFSET): Remove.
4327 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4328 (CALL_DUMMY_LOCATION): Remove.
4329 (FIX_CALL_DUMMY): Remove.
4330 (CALL_DUMMY_ADDRESS): Remove.
4331 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4332 (SAVE_DUMMY_FRAME_TOS): Remove.
4333 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4334 (mcore_register_virtual_type): New function.
4335 (mcore_register_byte): New function.
4336 (mcore_register_size): New function.
4337 (mcore_register_name): New function.
4338 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4339 macros removed from tm-mcore.h.
4340 (mcore_dump_tdep): Add.
4341 (_initialize_mcore_tdep): Add gdbarch_register call.
4342
4fd667e9
MK
43432002-07-03 Mark Kettenis <[email protected]>
4344
4345 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4346 frameless_look_for_prologue, such that we actually call this
4347 function.
4348
42f99ac2
JB
43492002-07-02 Joel Brobecker <[email protected]>
4350
4351 * frame.h (frame_address_in_block): New function.
4352
4353 * blockframe.c (frame_address_in_block): New function extracted
4354 from get_frame_block().
4355 (get_frame_block): Use frame_address_in_block().
4356 (block_innermost_frame): Use frame_address_in_block() to match
4357 the frame pc address against the block boundaries rather than
4358 the frame pc directly. This prevents a failure when a frame pc
4359 is actually a return-address pointing immediately after the end
4360 of the given block.
4361
103a1597 43622002-07-02 Grace Sainsbury <[email protected]>
83b4a0fe
GS
4363
4364 * MAINTAINERS: Add self under write after approval.
4365
43662002-07-02 Grace Sainsbury <[email protected]>
4367
103a1597
GS
4368 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4369 used in architecture vector. The default is
4370 m68k_local_breakpoint_from_pc.
4371 (m68k_local_breakpoint_from_pc): Add.
4372 (enum): Add register numbers from tm-m68k.h.
4373 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4374 vector.
4375 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4376 GDB_MULTI_ARCH_PARTIAL.
4377 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4378 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4379 m68k-tdep.c.
4380 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4381 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4382 to enum in m68k-tdep.c
4383
7a5a0534
JB
43842002-07-02 Joel Brobecker <[email protected]>
4385
4386 * solib-osf.c (open_map): Compute the list of shared libraries
4387 loaded by the inferior, rather than the list of libraries loaded
4388 by GDB itself. Otherwise, GDB ends up reading the symbols from
4389 the wrong shared libraries...
4390
6f558d74
MK
43912002-07-02 Mark Kettenis <[email protected]>
4392
b7d15bf7
MK
4393 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4394 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4395 macros.
4396 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4397 Remove functions.
4398 (FRAMELESS_SIGNAL): Remove function.
4399 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4400 i386_linux_saved_pc_after_call): Removed.
4401 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4402 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4403 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4404
6bff26de
MK
4405 * i386-tdep.c (i386_frameless_signal_p): New function.
4406 (i386_frame_chain): Deal with frameless signals.
4407 (i386_sigtramp_saved_sp): New function.
4408 (i386_frame_saved_pc): Deal with frameless signals.
4409 (i386_saved_pc_after_call): Make sure the correct value is
4410 returned just after entry into a sigtramp.
4411 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4412 i386fbsd4_sc_sp_offset): New variables.
4413 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4414 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4415 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4416 similiar to what we already did for sc_pc_offset.
4417 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4418 tdep->sc_sp_offset.
4419
6f558d74
MK
4420 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4421
145564b7
ML
44222002-07-02 Michal Ludvig <[email protected]>
4423
4424 * config/i386/tm-x86-64linux.h: New.
4425 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4426 definitions.
4427 * config/i386/nm-x86-64.h: Rename to ...
4428 * config/i386/nm-x86-64linux.h: ... this one.
4429 * config/i386/x86-64linux.mh: Reflect the above change.
4430
3a1e71e3
MK
44312002-07-01 Mark Kettenis <[email protected]>
4432
21d0e8a4
MK
4433 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4434 with sigcontext_addr. Add sc_sp_offset.
4435 (i386bsd_sigtramp_saved_pc): Remove prototype.
4436 (i386bsd_sicontext_addr): Add prototype.
4437 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4438 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4439 (i386_svr4_sigtramp_saved_pc): Removed.
4440 (i386_svr4_sigcontext_addr): New function.
4441 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4442 Initialize tdep->sigcontext_addr instead. Initialize
4443 tdep->sc_pc_offset and tdep->sc_sp_offset.
4444 (i386_gdbarch_init): Likewise.
4445 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4446 any more.
4447 (i386bsd_sigtramp_saved_pc): Remove function.
4448 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4449 Initialize tdep->sigcontext_addr instead. Initialize
4450 tdep->sc_pc_offset.
4451 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4452 of tdep->sigtramp_saved_pc.
4453 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4454 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4455 instead.
4456
3a1e71e3
MK
4457 * i386-tdep.c (i386_frameless_function_invocation,
4458 i386_frame_num_args, i386_frame_init_saved_regs,
4459 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4460 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4461 i386_extract_return_value, i386_store_return_value,
4462 i386_extract_struct_value_address, i386_register_virtual_type,
4463 i386_register_convertible, i386_register_convert_to_virtual,
4464 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4465 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4466 static.
4467
52e9098c
MK
44682002-07-01 Mark Kettenis <[email protected]>
4469
77b13a25
MK
4470 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4471
52e9098c
MK
4472 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4473 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4474 this macro. Include "value.h".
4475
1b372fff
AS
44762002-06-30 Aidan Skinner <[email protected]>
4477
4478 * ada-exp.tab.c: remove as it's a generated file
4479 * ada-lex.c: remove as it's a generated file
4480
9c5045b5
MK
44812002-06-30 Mark Kettenis <[email protected]>
4482
4a93c5bb
MK
4483 * config/i386/tm-i386.h (struct frame_info, struct
4484 frame_saved_regs, struct value, struct type): Remove forward
4485 declarations.
4486
322d4fe0
MK
4487 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4488 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4489 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4490 (FILL_FPXREGSET): Define.
4491
fdd8263d
MK
4492 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4493
482e577b
MK
4494 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4495 i[3456]86-*-netbsd* case.
4496 * config/i386/tm-obsd.h: Removed.
4497 * config/i386/obsd.mt: Removed.
4498 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4499 core-aout.o.
4500 (MH_CFLAGS): Add -DYYDEBUG=0.
4501
6916549a
MK
4502 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4503 i386nbsd_sc_pc_offset on OpenBSD too.
4504
9c5045b5
MK
4505 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4506 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4507 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4508 define.
4509 * i386bsd-tdep.c: Include "arch-utils.h".
4510 (i386bsd_aout_in_solib_call_trampoline): New function.
4511 (i386bsd_init_abi): Set in_solib_call_trampoline to
4512 i386bsd_aout_in_solib_call_trampoline.
4513 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4514 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4515
aa84d1bb
AC
45162002-06-28 Andrew Cagney <[email protected]>
4517
4518 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4519 (struct obstack, struct bcache): Add opaque declarations.
4520 * Makefile.in (macrotab_h): Update
4521
b4d83933
AC
45222002-06-28 Andrew Cagney <[email protected]>
4523
4524 * blockframe.c (generic_find_dummy_frame): Change return type to
4525 ``struct regcache''.
4526 (struct dummy_frame): Replace field ``registers'' with regcache, a
4527 struct regcache object.
4528 (generic_find_dummy_frame): Update.
4529 (generic_push_dummy_frame): Update. Use regcache_xfree,
4530 regcache_xmalloc and regcache_cpy.
4531 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4532 regcache_xfree.
4533 (deprecated_generic_find_dummy_frame): Update.
4534 (generic_read_register_dummy): Update. Use
4535 regcache_read_as_address.
4536 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4537 (generic_get_saved_register): Update. Use regcache_read.
4538
08c0b5bc
AC
45392002-06-28 Andrew Cagney <[email protected]>
4540
4541 * Makefile.in (objfiles_h): Add $(bcache_h).
4542 * objfiles.h: Include "bcache.h".
4543
4544 * Makefile.in (symtab_h): Remove $(bcache_h).
4545 * symtab.h: Do not include "bcache.h".
4546
1f89801a
AC
45472002-06-28 Andrew Cagney <[email protected]>
4548
4549 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4550 generic_func_frame_chain_valid.
4551
b9644b58
DB
45522002-06-28 David O'Brien <[email protected]>
4553
4554 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4555 * config/i386/tm-fbsd.h: Likewise.
4556
dd486634
AC
45572002-06-28 Andrew Cagney <[email protected]>
4558
4559 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4560 generic_unwind_get_saved_register.
4561
0b434a00
AC
45622002-06-27 Andrew Cagney <[email protected]>
4563
4564 From 2002-06-27 John David Anglin <[email protected]>:
4565 * regcache.c (supply_register): Add missing argument to
4566 register_buffer call.
4567
f30e5a77
AC
45682002-06-27 Andrew Cagney <[email protected]>
4569
4570 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4571 Solaris /bin/grep does not not like it. From Peter Schauer.
4572
9f064c95
TT
45732002-06-26 Tom Tromey <[email protected]>
4574
4575 * command.h (add_setshow_cmd): Declare.
4576 (add_setshow_cmd_full): Declare.
4577 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4578 returns void. Use add_setshow_cmd_full.
4579 (add_setshow_cmd_full): New function.
4580 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4581 (add_setshow_boolean_cmd): Likewise.
4582
099c7589
JT
45832002-06-26 Jason Thorpe <[email protected]>
4584
4585 * config/vax/tm-vax.h: Protect from multiple inclusion.
4586 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4587 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4588 * config/vax/tm-vaxbsd.h: ...here. New file.
4589 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4590
1d049c5e
JT
45912002-06-26 Jason Thorpe <[email protected]>
4592
4593 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4594 (BELIEVE_PCC_PROMOTION): Remove.
4595 (AP_REGNUM): Move to...
4596 * config/vax/nm-vax.h: ...here.
4597 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4598 (vax_breakpoint_from_pc): New function.
4599 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4600 and gdbarch_believe_pcc_promotion.
4601
4791e091
JT
46022002-06-26 Jason Thorpe <[email protected]>
4603
4604 * Makefile.in (vax_tdep_h): Define.
4605 (vax-tdep.o): Use $(vax_tdep_h).
4606 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4607 (vax_dump_tdep): New function.
4608 (_initialize_vax_tdep): Register vax_dump_tdep.
4609 * vax-tdep.h: Include osabi.h.
4610 (struct gdbarch_tdep): New.
4611
da130f98
AC
46122002-06-26 Andrew Cagney <[email protected]>
4613
4614 * frame.h (deprecated_generic_find_dummy_frame): Rename
4615 generic_find_dummy_frame.
4616 * blockframe.c (generic_find_dummy_frame): Make static.
4617 (deprecated_generic_find_dummy_frame): New function.
4618 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4619 generic_find_dummy_frame with deprecated_find_dummy_frame.
4620 (sh64_nofp_frame_init_saved_regs): Ditto.
4621 (sh_fp_frame_init_saved_regs): Ditto.
4622 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4623 (s390_frame_chain): Ditto.
4624 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4625
6300c360
GS
46262002-06-26 Grace Sainsbury <[email protected]>
4627
4628 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4629 gdbarch vector are at the top.
4630 (NUM_REGS): Remove.
4631 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4632 (FRAME_ARGS_ADDRESS): Remove.
4633 (FRAME_LOCALS_ADDRESS): Remove.
4634 (FRAME_NUM_ARGS): Remove.
4635 (FRAME_ARGS_SKIP): Remove.
4636 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4637 (m68k_gdbarch_init): Add gdbarch initializations for macros
4638 undefined in tm-m68k.h
4639
1c617db8
GS
46402002-06-26 Grace Sainsbury <[email protected]>
4641
4642 * monitor.h: Add the function regname to monitor_ops
4643 structure. This way NUM_REGS does not have to be a constant.
4644 * monitor.c (monitor_fetch_register): Added support for regname
4645 function. The function is called if the array regnames is NULL.
4646 (monitor_store_register): Same.
da130f98
AC
4647 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4648 regnames array.
1c617db8
GS
4649 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4650 cpu32bug_cmds.regname to point to new function.
4651 * abug-rom.c (abug_regname): Same as above.
4652 (init_abug_cmds): Same.
4653 * dbug-rom.c (dbug_regname): Same as above.
4654 (init_dbug_cmds): Same.
4655 * remote-est.c (est_regname): Same.
4656 (init_est_cmds): Same.
4657 * rom68k-rom.c (rom68k_regname): Same.
4658 (init_rom68k_cmds): Same.
4659
ea9365bb
TT
46602002-06-25 Tom Tromey <[email protected]>
4661
4662 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4663
72cec141
AC
46642002-06-25 Andrew Cagney <[email protected]>
4665
4666 * infrun.c (stop_registers): Change variable's type to ``struct
4667 regcache'''.
4668 (xmalloc_inferior_status): Delete function.
4669 (free_inferior_status): Delete function.
4670 (normal_stop): Use regcache_cpy.
4671 (struct inferior_status): Change type of fields ``stop_registers''
4672 and ``registers'' to ``struct regcache''.
4673 (write_inferior_status_register): Use regcache_write.
4674 (save_inferior_status): Instead of calling
4675 xmalloc_inferior_status, allocate the inf_status buffer directly.
4676 Use regcache_dup_no_passthrough and regcache_dup to save the
4677 buffers.
4678 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4679 Replace the stop_registers regcache instead of overriding it. Use
4680 regcache_xfree. Instead of calling free_inferior_status, xfree
4681 the buffer directly.
4682 (discard_inferior_status): Use regcache_xfree. Instead of calling
4683 free_inferior_status, xfree the buffer directly.
4684 (build_infrun): Use regcache_xmalloc.
4685 (_initialize_infrun): Delete redundant call to build_infrun.
4686
4687 * Makefile.in (infcmd.o): Add $(regcache_h).
4688
4689 * infcmd.c: Include "regcache.h".
4690 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4691 obtain the address of `stop_registers' register buffer.
4692 (print_return_value): Ditto.
4693
4694 * inferior.h (struct regcache): Add opaque declaration.
4695 (stop_registers): Change variable's declared type to ``struct
4696 regcache''.
4697
defc6f8c
TT
46982002-06-24 Tom Tromey <[email protected]>
4699
c0e624e7
TT
4700 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4701 * target.c (initialize_targets): Fixed typo in
4702 trust-readonly-sections `show' documentation.
4703
defc6f8c
TT
4704 * main.c: Marked all strings with _().
4705
2b236d82
DH
47062002-06-24 Don Howard <[email protected]>
4707
4708 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4709 that means max CORE_ADDR+1.
4710 (lookup_mem_region): Ditto.
4711 (mem_info_command): Ditto.
4712
942dc0e9
GS
47132002-06-24 Grace Sainsbury <[email protected]>
4714
4715 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4716 (REGISTER_BYTES_OK): Remove.
4717 (REGISTER_BYTES): Remove.
4718 (STORE_STRUCT_RETURN): Remove.
4719 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4720 (STORE_RETURN_VALUE): Remove.
4721 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4722 (FRAME_CHAIN): Remove.
4723 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4724 (FRAME_SAVED_PC): Remove.
4725 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4726 (m68k_store_struct_return): Add.
4727 (m68k_deprecated_extract_return_value): Add.
4728 (m68k_deprecated_extract_struct_value_address): Add.
4729 (m68k_store_return_value): Add.
4730 (m68k_frame_chain): Add.
4731 (m68k_frameless_function_invocation): Add.
4732 (m68k_frame_saved_pc): Add.
4733 (m68k_gdbarch_init): added set_gdbarch calls for new
4734 functions and deleted macros.
4735
03c30d4d
TT
47362002-06-23 Tom Tromey <[email protected]>
4737
4738 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4739 (ALLDEPFILES): Likewise.
4740 (udiheaders): Removed.
4741 (udip2soc.o): Likewise.
4742 (udi2go32.o): Likewise.
4743 (udr.o): Likewise.
4744 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4745
37e71372
AC
47462002-06-22 Andrew Cagney <[email protected]>
4747
06a6ac57
AC
4748 * infrun.c (_initialize_infrun): Delete unnecessary call to
4749 build_infrun.
4750
37e71372
AC
4751 * regcache.h: Update comments describing the regcache_cpy family
4752 of functions.
4753 (regcache_save, regcache_restore): Delete declaration.
4754 (regcache_save_no_passthrough): Delete declaration.
4755 (regcache_restore_no_passthrough): Delete declaration.
4756 * regcache.c (regcache_save): Delete function.
4757 (regcache_save_no_passthrough): Delete function.
4758 (regcache_restore): Delete function.
4759 (regcache_restore_no_passthrough): Delete function.
4760
78f6d055
AC
47612002-06-21 Andrew Cagney <[email protected]>
4762
4763 * config/m68k/tm-m68k.h: Fix typo.
4764 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4765 (m68k_frame_init_saved_regs): Declare.
4766
78b119cb
JB
47672002-06-21 Jim Blandy <[email protected]>
4768
4769 Remove some vestiges of Harris 88k support.
4770 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4771 register numbering quirk.
4772 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4773 odd symbols occurring in Harris 88k ELF targets.
4774
0fbb3da7
TT
47752002-06-21 Tom Tromey <[email protected]>
4776
4777 * gdb_locale.h: New file.
4778 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4779 (defs_h): Added gdb_locale.h.
4780 * configure, config.in: Rebuilt.
4781 * configure.in (PACKAGE): Define.
4782 * defs.h: Include gdb_locale.h.
4783 * main.c (captured_main): Call setlocale, bindtextdomain,
4784 textdomain.
4785
456f8b9d
DB
47862002-06-21 Dave Brolley <[email protected]>
4787
4788 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4789 * config/frv/frv.mt: New file.
4790 * config/frv/tm-frv.h: New file.
4791 * configure.tgt: Support frv-*-*.
4792 * Makefile.in (frv-tdep.o): New target.
4793 * frv-tdep.c: New file.
4794 * NEWS: Mention frv.
4795
cdd463f9
DB
47962002-06-21 Dave Brolley <[email protected]>
4797
4798 * MAINTAINERS: Add self to "Write After Approval" list.
4799
5d3ed2e3
GS
48002002-06-21 Grace Sainsbury <[email protected]>
4801
4802 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4803 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4804 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4805 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4806 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4807
4808 * m68k-tdep.c: Include arch-utils.h
4809 (m68k_register_raw_size): Add.
4810 (m68k_register_virtual_size): Add.
4811 (m68k_register_virtual_type): Add.
4812 (m68k_register_name): Add.
4813 (m68k_stack_align): Add.
4814 (m68k_register_byte): Add.
4815 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4816 tm-m68k.h.
4817
7f8e7424
GS
48182002-06-21 Grace Sainsbury <[email protected]>
4819
a2c6a6d5 4820 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4821 m68k_find_saved_regs.
4822 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4823 references to it with frame->saved_regs.
7f8e7424
GS
4824 (m68k_gdbarch_init): Added function calls to initialize the
4825 gdbarch structure.
a2c6a6d5
GS
4826 (m68k_fix_call_dummy): Add.
4827 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4828 (CALL_DUMMY): Remove.
4829 (CALL_DUMMY_LENGTH): Remove.
4830 (CALL_DUMMY_START_OFFSET): Remove.
4831 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4832 (FIX_CALL_DUMMY): Remove.
4833 (PUSH_DUMMY_FRAME): Remove.
4834 (POP_FRAME): Remove.
7f8e7424 4835
f461f5cf
PM
48362002-06-19 Pierre Muller <[email protected]>
4837
4838 * parse.c (parse_fprintf): New function used to avoid calls to
4839 fprintf in bison parser generated debug code.
4840 * parser-defs.h: Declaration of new parse_fprintf function.
4841 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4842 Set YYDEBUG to 1 by default.
4843 Set YYFPRINTF as parse_fprintf.
4844
7f0c12ed
ML
48452002-06-21 Michal Ludvig <[email protected]>
4846
4847 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4848 encoding anymore.
4849 (pointer_encoding, enum ptr_encoding): New.
4850 (execute_cfa_program): Take care about pointer encoding.
4851 (dwarf2_build_frame_info): Only call parse_frame_info for
4852 .debug_frame and .eh_frame.
4853 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4854 fixed augmentation handling, added relative addressing,
4855 ignore duplicate FDEs. Added comments.
19d833a2 4856 * dwarf2cfi.c: Reindented.
7f0c12ed 4857
87c4a039
EZ
48582002-06-20 Elena Zannoni <[email protected]>
4859
4860 * event-top.c (command_handler): Don't use space_at_cmd_start
4861 unless there is sbrk() on the host. Assign time and space data
4862 to union fields of the appropriate length.
4863
1cf877ad
ML
48642002-06-20 Michal Ludvig <[email protected]>
4865
4866 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4867 x86_64_register_name. Return type changed to 'const char *'.
4868 (x86_64_register_name2nr): Rename to x86_64_register_number.
4869 (x86_64_gdbarch_init): Update to reflect the change.
4870 * x86-64-tdep.h: Ditto.
4871 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4872 (supply_fpregset): Ditto.
4873
3fadccb3
AC
48742002-06-19 Andrew Cagney <[email protected]>
4875
4876 * regcache.h: Update copyright.
4877 (struct regcache, struct gdbarch): Add opaque declarations.
4878 (current_regcache): Declare global variable.
4879 (regcache_read, regcache_write): Add gdbarch parameter.
4880 (regcache_save, regcache_save_no_passthrough)
4881 (regcache_restore, regcache_restore_no_passthrough)
4882 (regcache_dup, regcache_dup_no_passthrough)
4883 (regcache_cpy, regcache_cpy_no_passthrough)
4884 (deprecated_grub_regcache_for_registers)
4885 (deprecated_grub_regcache_for_register_valid)
4886 (regcache_valid_p): Add function declarations.
4887
4888 * regcache.c: Update copyright.
4889 (regcache_descr_handle): New global variable.
4890 (struct regcache_descr): Define.
4891 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4892 (regcache_descr, xfree_regcache_descr): New functions.
4893 (struct regcache): Define.
4894 (regcache_xmalloc, regcache_xfree): New functions.
4895 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4896 (regcache_dup, regcache_dup_no_passthrough): New functions.
4897 (regcache_valid_p, regcache_read_as_address): New functions.
4898 (deprecated_grub_regcache_for_registers): New function.
4899 (deprecated_grub_regcache_for_register_valid): New function.
4900 (current_regcache): New global variable.
4901 (register_buffer): Add regcache parameter. Update calls.
4902 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4903 (read_register_gen, write_register_gen): Update register_buffer
4904 call. Test for legacy_p instead of gdbarch_register_read_p or
4905 gdbarch_register_write_p.
4906 (regcache_collect): Update register_buffer call.
4907 (build_regcache): Rewrite. Use deprecated grub functions.
4908 (regcache_save, regcache_save_no_passthrough): New functions.
4909 (regcache_restore, regcache_restore_no_passthrough): New
4910 functions.
4911 (_initialize_regcache): Create the regcache_data_handle. Swap
4912 current_regcache global variable.
4913
4914 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4915 parameter to regcache_read and regcache_write calls.
4916 (sh4_register_read): Ditto.
4917 (sh64_pseudo_register_read): Ditto.
4918 (sh64_register_read): Ditto.
4919 (sh_pseudo_register_write): Ditto.
4920 (sh4_register_write): Ditto.
4921 (sh64_pseudo_register_write): Ditto.
4922 (sh64_register_write): Ditto.
4923
4924 * defs.h (XCALLOC): Define.
4925
152d9db6
GS
49262002-06-19 Grace Sainsbury <[email protected]>
4927
4928 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4929 * m68k-tdep.c (m68k_gdbarch_init): Added.
4930 (m68k_dump_tdep): Added.
4931
170911c7
DJ
49322002-06-19 Daniel Jacobowitz <[email protected]>
4933
4934 * ada-lang.c (fill_in_ada_prototype): Update comment.
4935
2e4ebe70
DJ
49362002-06-19 Daniel Jacobowitz <[email protected]>
4937
4938 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4939 MIPS_ABI_LAST.
4940 (mips_abi_string, mips_abi_strings): New.
4941 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4942 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4943 tdep->mips_abi_string. Honor mips_abi_string. Default to
4944 O32 if no ABI is found.
4945 (mips_dump_tdep): Use mips_abi_strings.
4946 (mips_abi_update): New function.
4947 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4948 ``set mips abi'' and ``show mips abi''. Check the size of
4949 mips_abi_strings.
4950
16775908
AC
49512002-06-19 Andrew Cagney <[email protected]>
4952
4953 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4954 constant.
4955
5051bfa4 49562002-06-18 Joel Brobecker <[email protected]>
16775908 4957
5051bfa4
JB
4958 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4959 current frame using only the first stack size adjustment. All
4960 subsequent size adjustments are not considered to be part of
4961 the "static" part of the current frame.
4962 Compute the address of the saved registers relative to the
4963 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4964 in use in this frame.
4965
56468235
DH
49662002-06-18 Don Howard <[email protected]>
4967
4968 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4969 type int expressions. Thanks to Jim Blandy <[email protected]> for
4970 suggesting this solution.
4971
0b624158
AC
49722002-06-18 Andrew Cagney <[email protected]>
4973
4974 * config/romp/xm-rtbsd.h: Delete file.
4975 * config/romp/rtbsd.mh: Delete file.
4976
221ea385
KS
49772002-06-18 Keith Seitz <[email protected]>
4978
4979 * breakpoint.c (condition_command): Post breakpoint_modify
4980 when a condition is added to an existing breakpoint.
4981 (commands_command): Likewise for commands.
4982 (set_ignore_count): Likewise for ignore counts.
4983 If no tty, do not simply return, still need to send event
4984 notification.
4985 (ignore_command): Only print a newline if the command came
4986 from a tty.
4987 Don't call breakpoints_changed, since this is now properly
4988 handled by set_ignore_count.
4989
5402eed1
AC
49902002-06-18 Andrew Cagney <[email protected]>
4991
4992 * MAINTAINERS: Note that cris-elf target can be compiled with
4993 -Werror.
4994 * cris-tdep.c (cris_register_name): Make return type constant.
4995 (cris_breakpoint_from_pc): Ditto.
4996
cc22880b
ML
49972002-06-18 Michal Ludvig <[email protected]>
4998
4999 * frame.h (struct frame_info): Change type of context to
5000 'struct context'.
5001
fa88f677
AC
50022002-06-17 Andrew Cagney <[email protected]>
5003
5004 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5005 pointer.
5006 * gdbarch.h, gdbarch.c: Regenerate.
5007 * config/mips/tm-mips.h (mips_register_name): Update.
5008 * i386-tdep.h (i386_register_name): Update.
5009 * mips-tdep.c (mips_register_name): Update
5010 * alpha-tdep.c (alpha_register_name): Update.
5011 * arch-utils.c (legacy_register_name): Update.
5012 * arch-utils.h (legacy_register_name): Update.
5013 * avr-tdep.c (avr_register_name): Update.
5014 * ia64-tdep.c (ia64_register_name): Update.
5015 * i386-tdep.c (i386_register_name): Update.
5016 * sparc-tdep.c (sparc32_register_name): Update.
5017 (sparc64_register_name): Update.
5018 (sparclite_register_name): Update.
5019 (sparclet_register_name): Update.
5020 * sh-tdep.c (sh_generic_register_name): Update.
5021 (sh_sh_register_name): Update.
5022 (sh_sh3_register_name): Update.
5023 (sh_sh3e_register_name): Update.
5024 (sh_sh_dsp_register_name): Update.
5025 (sh_sh3_dsp_register_name): Update.
5026 (sh_sh4_register_name): Update.
5027 (sh_sh64_register_name): Update.
5028 * s390-tdep.c (s390_register_name): Update.
5029 * rs6000-tdep.c (rs6000_register_name): Update.
5030 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5031 (ns32k_register_name_32382): Update.
5032 * d10v-tdep.c (d10v_ts2_register_name): Update.
5033 (d10v_ts3_register_name): Update.
5034 * xstormy16-tdep.c (xstormy16_register_name): Update.
5035 * vax-tdep.c (vax_register_name): Update.
5036 * v850-tdep.c (v850_register_name): Update.
5037 * m68hc11-tdep.c (m68hc11_register_name): Update.
5038 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5039 (am33_register_name): Update.
5040
ea1e7ef6
GS
50412002-06-17 Grace Sainsbury <[email protected]>
5042
5043 * m68k-tdep.c: Reindented.
5044
9b02dd1b
AC
50452002-06-17 Andrew Cagney <[email protected]>
5046
5047 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5048 list of predefined types.
5049
8758dec1
MK
50502002-06-16 Mark Kettenis <[email protected]>
5051
b6197528
MK
5052 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5053 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5054 REGISTER_CONVERT_TO_RAW): Remove defines.
5055 (i386_register_virtual_type, i386_register_convertible,
5056 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5057 Remove prototypes.
5058 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5059 macros mentioned above.
5060
82b47e62
MK
5061 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5062 (i386lynx_saved_pc_after_call): Remove prototype.
5063 * i386ly-tdep.c: Include "i386-tdep.h".
5064 (i386lynx_saved_pc_after_call): Make static. Use
5065 read_memory_nobpt instead of read_memory. Use
5066 read_memory_unsigned_integer instead of read_memory_integer.
5067 (i386lynx_init_abi): New function.
5068 (i386lynx_coff_osabi_sniffer): New function.
5069 (_initialize_i386bsd_tdep): New function.
5070
8758dec1
MK
5071 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5072 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5073 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5074 (i386_fix_call_dummy): Remove prototype.
5075 * i386-tdep.c (i386_call_dummy_words): New variable.
5076 (i386_gdbarch_init): Adjust for removal of the
5077 macros mentioned above.
5078
e9e68a56
AC
50792002-06-15 Andrew Cagney <[email protected]>
5080
5081 * command.h (add_setshow_auto_boolean_cmd): Replace
5082 add_set_auto_boolean_cmd.
5083 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5084 add_set_auto_boolean_cmd.
5085 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5086 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5087 mask-address'' command.
5088 (show_mask_address): Add cmd parameter.
5089 * remote.c (add_packet_config_cmd): Update. Change type of
5090 set_func and show_func to cmd_sfunc_ftype.
5091 (_initialize_remote): Update `set remote Z-packet'
5092 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5093 (show_remote_protocol_e_packet_cmd): Ditto.
5094 (show_remote_protocol_E_packet_cmd): Ditto.
5095 (show_remote_protocol_P_packet_cmd): Ditto.
5096 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5097 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5098 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5099 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5100 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5101 (show_remote_protocol_Z_packet_cmd): Ditto.
5102 (show_remote_protocol_binary_download_cmd): Ditto.
5103 (show_remote_cmd): Pass NULL to all of above.
5104
fc08ec52
MK
51052002-06-15 Mark Kettenis <[email protected]>
5106
5107 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5108 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5109 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5110 POP_FRAME): Remove defines.
5111 (i386_push_arguments, i386_store_struct_return,
5112 i386_extract_return_value, i386_store_return_value,
5113 i386_extract_struct_value_address, i386_push_dummy_frame,
5114 i386_pop_frame): Renove prototypes.
5115 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5116 macros mentioned above.
5117
e707bbc2
AC
51182002-06-15 Andrew Cagney <[email protected]>
5119
5120 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5121 add_set_boolean_cmd.
5122 (add_setshow_cmd): New function.
5123 * command.h (add_setshow_boolean_cmd): Replace
5124 add_set_boolean_cmd.
5125 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5126 and ``set rdiromatzero''.
5127 * maint.c (_initialize_maint_cmds): Update commented out code.
5128 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5129 * target.c (initialize_targets): Update `set
5130 trust-readonly-sections'.
5131 * remote.c (_initialize_remote): Update `set remotebreak'.
5132
42fdc8df
MK
51332002-06-15 Mark Kettenis <[email protected]>
5134
93924b6b
MK
5135 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5136 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5137 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5138 fit into multi-arch framework.
5139 (i386_breakpoint_from_pc): New function.
5140 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5141 above.
5142
42fdc8df
MK
5143 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5144 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5145 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5146 (i386_frameless_function_invocation, i386_frame_num_args,
5147 i386_frame_init_saved_regs): Remove prototypes.
5148 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5149 macros mentioned above.
5150
9773a94b
AC
51512002-06-15 Andrew Cagney <[email protected]>
5152
5153 * cli/cli-decode.c (set_cmd_cfunc): Update.
5154 (set_cmd_sfunc): Update.
5155 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5156 (set_cmd_sfunc, set_cmd_cfunc): Update.
5157 * cli/cli-decode.h: Update.
5158
6e157172
MK
51592002-06-15 Mark Kettenis <[email protected]>
5160
5161 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5162 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5163
7f19b9a2
AC
51642002-06-15 Andrew Cagney <[email protected]>
5165
5166 * defs.h (auto_boolean): Declare enum.
5167 * command.h (cmd_auto_boolean): Delete enum.
5168 * mips-tdep.c (mask_address_var): Update.
5169 (mips_mask_address_p): Update.
5170 (show_mask_address): Update.
5171 * remote.c (struct packet_config): Update.
5172 (update_packet_config): Update.
5173 (show_packet_config_cmd): Update.
5174 (packet_ok): Update.
5175 (add_packet_config_cmd): Update.
5176 (_initialize_remote):
5177 * command.h: Update.
5178 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5179 (do_setshow_command): Update.
5180 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5181 * cli/cli-decode.h: Update.
5182
1cf88de5
MK
51832002-06-15 Mark Kettenis <[email protected]>
5184
22ba8cf2
MK
5185 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5186 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5187 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5188 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5189 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5190 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5191
762c5349
MK
5192 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5193 list of DJGPP COFF targets.
5194
091198bb
MK
5195 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5196 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5197 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5198 (FP0_REGNUM): Remove define.
5199 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5200 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5201 (i386_register_virtual_size): Remove protoype.
5202 * i386-tdep.c (i386_register_virtual_size): Removed.
5203 (i386_extract_return_value, i386_store_return_value): Use
5204 FP0_REGNUM instead of NUM_FREGS to determine whether the
5205 floating-point registers are available.
5206 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5207 Adjust for removal of macros mentioned above.
5208
52092002-06-15 Mark Kettenis <[email protected]>
5210
fcc9bf01
MK
5211 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5212 comments.
5213 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5214 Remove prototypes.
5215 (supply_gregset, fill_gregset): Remove use of register keyword and
5216 remove declaration for regmap. Use I386_NUM_GREGS instead of
5217 NUM_REGS and NUM_FREGS.
5218 (FPREGSET_FSAVE_OFFSET): Remove.
5219 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5220 NUM_FREGS to determine whether the floating-point registers are
5221 available.
5222
65e78234
MK
5223 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5224 gnu_store_registers): Replace usage of NUM_GREGS with
5225 I386_NUM_GREGS.
5226
98df6387
MK
5227 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5228 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5229 usage of NUM_GREGS with I386_NUM_GREGS.
5230
099a9414
MK
5231 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5232
57976e88
MK
5233 * i386bsd-nat.c: Include "i386-tdep.h".
5234 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5235 I386_NUM_GREGS.
5236
b335f4a6
MK
5237 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5238 and associated comment. They no longer make any sense, since we
5239 don't use this file anymore on Linux.
5240
1cf88de5
MK
5241 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5242 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5243 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5244 elements in these arrays.
5245 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5246 MAX_NUM_REGS.
5247
daa66587
MK
52482002-06-15 Mark Kettenis <[email protected]>
5249
5250 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5251 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5252
26e9b323
AC
52532002-06-14 Andrew Cagney <[email protected]>
5254
5255 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5256 EXTRACT_RETURN_VALUE.
5257 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5258 EXTRACT_STRUCT_VALUE_ADDRESS.
5259 * gdbarch.h, gdbarch.c: Regenerate.
5260
5261 * values.c (value_being_returned): Handle
5262 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5263 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5264
5265 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5266 * arm-tdep.c (arm_gdbarch_init): Update.
5267 * avr-tdep.c (avr_gdbarch_init): Update.
5268 * cris-tdep.c (cris_gdbarch_init): Update.
5269 * d10v-tdep.c (d10v_gdbarch_init): Update.
5270 * ia64-tdep.c (ia64_gdbarch_init): Update.
5271 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5272 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5273 * s390-tdep.c (s390_gdbarch_init): Update.
5274 * sh-tdep.c (sh_gdbarch_init): Update.
5275 * s390-tdep.c (s390_gdbarch_init): Update.
5276 * sparc-tdep.c (sparc_gdbarch_init): Update.
5277 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5278 * v850-tdep.c (v850_gdbarch_init): Update.
5279 * vax-tdep.c (vax_gdbarch_init): Update.
5280 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5281 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5282
5283 * config/arc/tm-arc.h: Update.
5284 * config/d30v/tm-d30v.h: Update.
5285 * config/fr30/tm-fr30.h: Update.
5286 * config/h8300/tm-h8300.h: Update.
5287 * config/h8500/tm-h8500.h: Update.
5288 * config/i386/tm-i386.h: Update.
5289 * config/i386/tm-ptx.h: Update.
5290 * config/i386/tm-symmetry.h: Update.
5291 * config/i960/tm-i960.h: Update.
5292 * config/m32r/tm-m32r.h: Update.
5293 * config/m68k/tm-delta68.h: Update.
5294 * config/m68k/tm-linux.h: Update.
5295 * config/m68k/tm-m68k.h: Update.
5296 * config/m88k/tm-m88k.h: Update.
5297 * config/mcore/tm-mcore.h: Update.
5298 * config/mips/tm-mips.h: Update.
5299 * config/mn10200/tm-mn10200.h: Update.
5300 * config/pa/tm-hppa.h: Update.
5301 * config/pa/tm-hppa64.h: Update.
5302 * config/sparc/tm-sp64.h: Update.
5303 * config/sparc/tm-sparc.h: Update.
5304 * config/sparc/tm-sparclet.h: Update.
5305 * config/z8k/tm-z8k.h: Update.
5306
5179e78f
AC
53072002-06-14 Andrew Cagney <[email protected]>
5308
5309 * Makefile.in (i386_linux_tdep_h): Define.
5310 (i386_tdep_h, i387_tdep_h): Define.
5311 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5312 $(i386_tdep_h) and $(i387_tdep_h).
5313 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5314
8201327c
MK
53152002-06-14 Mark Kettenis <[email protected]>
5316
edf393ac
MK
5317 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5318 Already covered by the default.
5319
896fb97d
MK
5320 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5321 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5322 (i386_gdbarch_init): Initialize long_double_format and long_double
5323 bit.
5324
8201327c
MK
5325 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5326 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5327 Move these to ...
5328 * config/i386/i386sol2.mh: ... here.
5329 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5330 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5331 (SIGCONTEXT_PC_OFFSET): Remove define.
5332 (IN_SIGTRAMP): Remove define.
5333 * i386-sol2-tdep.c: New file.
5334
5335 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5336 * config/i386/tm-i386nw.h: Removed.
5337
5338 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5339 USE_STRUCT_CONVENTION): Remove defines.
5340 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5341 (get_longjmp_target): Remove prototype.
5342 (IN_SIGTRAMP): Remove define.
5343 (i386bsd_in_sigtramp): Remove prototype.
5344 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5345 function. Update comment accordingly
5346 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5347 (FRAME_SAVED_PC): Remove define.
5348 (i386bsd_frame_saved_pc): Remove prototype.
5349 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5350 GET_LONGJMP_TARGET): Remove defines.
5351 (get_longjmp_target): Remove prototype.
5352 (IN_SIGTRAMP): Remove define.
5353 (i386bsd_in_sigtramp): Remove prototype.
5354 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5355 function. Update comment accordingly
5356 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5357 (FRAME_SAVED_PC): Remove define.
5358 (i386bsd_frame_saved_pc): Remove prototype.
5359 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5360 Remove prototype.
5361 (USE_STRUCT_CONVENTION): Remove prototype.
5362 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5363 declaration.
5364 (_initialize_i386bsd_nat): Revise logic to determine some
5365 constants at compile time when compiling a native GDB. Warn if
5366 things don't match up with what we expect.
5367 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5368 Remove variables.
5369 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5370 to use date stored in `struct gdbarch_tdep'.
5371 (i386bsd_sigcontext_offset): Remove varaible.
5372 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5373 stored in `struct gdbarch_tdep'.
5374 (i386bsd_frame_saved_pc): Make static.
5375 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5376 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5377 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5378 i386fbsd4_sc_pc_offset): New variables.
5379 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5380 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5381 functions.
5382 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5383 functions.
5384 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5385 Modify the value of i386fbsd_sigtramp_start and
5386 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5387 i386fbsd_sigtramp_end.
5388 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5389 function.
5390
5391 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5392 define to i386-linux-tdep.h.
5393 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5394 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5395 defines.
5396 (i386_linux_register_name, i386_linux_register_byte,
5397 i386_linux_register_raw_size): Remove prototypes.
5398 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5399 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5400 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5401 TARGET_WRITE_PC): Remove defines.
5402 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5403 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5404 i386_linux_write_pc): Remove prototypes.
5405 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5406 (get_longjmp_target): Remove prototype.
5407 * i386-linux-tdep.h: New file.
5408 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5409 * i386-linux-tdep.c: Include "i386-tdep.h" and
5410 "i386-linux-tdep.h".
5411 (i386_linux_register_name, i386_linux_register_byte,
5412 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5413 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5414 Make static.
5415 (i386_linux_init_abi): New function.
5416 (_initialize_i386_linux_tdep): New function.
5417
5418 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5419 (i386_saved_pc_after_call): Remove prototype.
5420 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5421 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5422 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5423 (i386_register_name, i386_stab_reg_to_regnum,
5424 i386_dwarf_reg_to_regnum): Remove prototypes.
5425 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5426 SIZEOF_SSE_REGS): Remove defines.
5427 (REGISTER_BYTES): Remove define.
5428 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5429 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5430 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5431 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5432 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5433 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5434 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5435 (get_longjmp_target): Remove prototype.
5436 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5437 (sigtramp_saved_pc): Remove define.
5438 (i386v4_sigtramp_saved_pc): Remove prototype.
5439 * config/i386/tm-go32.h (FRAME_CHAIN,
5440 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5441 (i386go32_frame_saved_pc): Remove prototype.
5442 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5443 (get_longjmp_target): Remove prototype.
5444 * i386-tdep.h: Include "osabi.h".
5445 (enum i386_abi): Removed.
5446 (enum struct_return): New enum.
5447 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5448 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5449 sc_pc_offset members.
5450 (i386_gdbarch_register_os_abi): Remove prototype.
5451 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5452 I386_SSE_NUM_REGS): New defines.
5453 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5454 I386_SSE_SIZEOF_REGS): New defines.
5455 (i386_register_name, i386_register_byte, i386_register_raw_size):
5456 New prototypes.
5457 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5458 (i386bsd_sigtramp_saved_pc): New prototype.
5459 * i386-tdep.c: Don't include "elf-bfd.h".
5460 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5461 i386_frame_chain, i386_saved_pc_after_call): Make static.
5462 (i386_frame_saved_pc): Rewrite to call architecture dependent
5463 function to deal with signal handlers. Make static.
5464 (i386go32_frame_saved_pc): Removed.
5465 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5466 Removed.
5467 (i386_get_longjmp_target): New function.
5468 (default_struct_convention, pcc_struct_convention,
5469 reg_struct_convention, valid_conventions, struct_convention): New
5470 variables.
5471 (i386_use_struct_convention): New function.
5472 (i386v4_sigtramp_saved_pc): Renamed to
5473 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5474 (i386_pc_in_sigtramp): New function.
5475 (i386_abi_names): Removed.
5476 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5477 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5478 Removed.
5479 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5480 i386_gdbarch_register_os_abi): Removed.
5481 (struct i386_abi_handler): Removed.
5482 (i386_abi_handler_list): Removed.
5483 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5484 functions.
5485 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5486 i386_nw_init_abi): New functions.
5487 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5488 Use set_gdbarch_xxx() calls instead of relying on macros for a
5489 number of calls.
5490 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5491 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5492 Register the various architecture variants defined in this file.
5493
ad2f7632
DJ
54942002-06-14 Daniel Jacobowitz <[email protected]>
5495
5496 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5497 (struct main_type): Remove arg_types member. Update comments for
5498 struct field.
5499 (TYPE_ARG_TYPES): Remove.
5500 (TYPE_FN_FIELD_ARGS): Update.
5501 (smash_to_method_type): Update prototype.
5502
5503 * c-typeprint.c (cp_type_print_method_args): Take method type
5504 instead of argument list. Use new argument layout. Simplify.
5505 (c_type_print_args): Use new argument layout. Simplify.
5506 (c_type_print_base): Update call to cp_type_print_method_args.
5507 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5508 argument; use die->type instead. Update call to
5509 smash_to_method_type.
5510 (read_structure_scope): Update call to dwarf2_add_member_fn.
5511 * gdbtypes.c (allocate_stub_method): Update comment.
5512 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5513 Use new argument layout.
5514 (check_stub_method): Use new argument layout. Don't count
5515 void as an argument.
5516 (print_arg_types): Update comments. Use new argument layout.
5517 (recursive_dump_type): Don't print arg_types member.
5518 * hpread.c (hpread_read_struct_type): Use new argument layout.
5519 (fixup_class_method_type): Likewise.
5520 (hpread_type_lookup): Likewise.
5521 * stabsread.c (read_type): Update calls to read_args and
5522 smash_to_method_type.
5523 (read_args): Use new argument layout. Simplify.
5524 * valops.c (typecmp): Use new argument layout. Update parameters
5525 and comments. Simplify.
5526 (hand_function_call): Use new argument layout.
5527 (search_struct_method): Update call to typecmp.
5528 (find_overload_match): Use new argument layout.
5529
6da02953
DJ
55302002-06-13 Daniel Jacobowitz <[email protected]>
5531
5532 * NEWS: Mention multithreaded debug support for gdbserver.
5533
519b2366
DJ
55342002-06-13 Daniel Jacobowitz <[email protected]>
5535
5536 * MAINTAINERS: Mention NEWS.
5537
6c0d6680
DJ
55382002-06-13 Daniel Jacobowitz <[email protected]>
5539
5540 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5541 (struct mips_objfile_private, compare_pdr_entries): New.
5542 (non_heuristic_proc_desc): Read the ".pdr" section if it
5543 is present.
5544
6529d2dd
AC
55452002-06-12 Andrew Cagney <[email protected]>
5546
5547 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5548 (arm_debug): New static variable.
5549 (_initialize_arm_tdep): Add ``set debug arm'' command.
5550
26216b98
AC
55512002-06-12 Andrew Cagney <[email protected]>
5552
5553 * Makefile.in (sim_arm_h): Define.
5554 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5555 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5556 (arm_register_sim_regno): New function, map an internal REGNUM
5557 onto a simulator register number.
5558 (arm_gdbarch_init): Set register_sim_regno.
5559
814b3ba0
AH
55602002-06-09 Aldy Hernandez <[email protected]>
5561
5562 * MAINTAINERS: Add self.
5563
475b0867
JB
55642002-06-11 Jim Blandy <[email protected]>
5565
919d772c
JB
5566 * source.c (source_info): Mention whether the symtab has
5567 information about preprocessor macros.
5568
475b0867
JB
5569 Call the command `info macro', not `show macro'.
5570 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5571 Fix error message.
5572 (_initialize_macrocmd): Register `info_macro_command' in
5573 `infolist', not `showlist'.
5574
9e364162
DJ
55752002-06-11 Daniel Jacobowitz <[email protected]>
5576
5577 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5578 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5579 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5580 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5581 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5582 unconditionally.
5583 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5584 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5585 (_initialize_mips_tdep): Remove dead code.
5586 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5587 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5588 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5589 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5590 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5591 MIPS_LAST_FP_ARG_REGNUM): Remove.
5592
23aa4c72
ML
55932002-06-11 Michal Ludvig <[email protected]>
5594
5595 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5596 (unwind_tmp_obstack_free, parse_frame_info)
5597 (update_context, cfi_read_fp, cfi_write_fp)
5598 (cfi_frame_chain, cfi_init_extra_frame_info)
5599 (cfi_virtual_frame_pointer): Use the above function.
264d1763 5600 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 5601
70eb15a4
CV
56022002-06-11 Corinna Vinschen <[email protected]>
5603
5604 * v850-tdep.c (v850_type_is_scalar): New function.
5605 (v850_use_struct_convention): Match current gcc implementation
5606 as close as possible.
5607 (v850_push_arguments): Fix stack_offset handling. Don't write
5608 struct_addr into register. This is done by v850_store_struct_return.
5609 (v850_extract_return_value): Care for structs.
5610 (v850_store_return_value): Ditto.
5611 (v850_store_struct_return): Actually write address.
5612
482a4d06
ML
56132002-06-11 Michal Ludvig <[email protected]>
5614
5615 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5616 without debug information too.
5617
d855c300
AC
56182002-06-10 Andrew Cagney <[email protected]>
5619
5620 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5621 Make multi-arch pure.
5622 * gdbarch.h, gdbarch.c: Re-generate.
5623 * arm-tdep.c (arm_print_float_info): Update.
5624 * arch-utils.h (default_print_float_info): Update.
5625 * arch-utils.c (default_print_float_info): Update.
5626 * infcmd.c (float_info): Update call.
5627
dd12a101
AC
56282002-06-10 Andrew Cagney <[email protected]>
5629
5630 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5631 the front of the initialize list.
5632
101dcfbe
AC
56332002-06-10 Andrew Cagney <[email protected]>
5634
5635 * infrun.c (struct inferior_status): Replace fields
5636 selected_frame_address and selected_level with field
5637 selected_frame_id.
5638 (save_inferior_status): Update. Use get_frame_id.
5639 (struct restore_selected_frame_args): Delete.
5640 (restore_selected_frame): Update. Use frame_find_by_id.
5641 (restore_inferior_status): Update.
5642
5643 * breakpoint.h (struct breakpoint): Change type of
5644 watchpoint_frame to frame_id.
5645 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5646 call to get_current_frame.
5647 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5648 get_current_frame.
5649 (watchpoint_check): Use frame_find_by_id.
5650
5651 * frame.h (record_selected_frame): Delete declaration.
5652 * stack.c (record_selected_frame): Delete function.
5653
5654 * frame.h (struct frame_id): Define.
5655 (get_frame_id): Declare.
5656 (frame_find_by_id): Declare.
5657 * frame.c (frame_find_by_id): New function.
5658 (get_frame_id): New function.
5659
304270b6
AV
56602002-06-10 Andrey Volkov <[email protected]>
5661
5662 * ser-e7kpc.c: Fix duplicated define and call of
5663 _initialize_ser_e7000pc
5664
2f2cf184
DJ
56652002-06-09 Daniel Jacobowitz <[email protected]>
5666
5667 * signals/signals.c (target_signal_from_host): Fix #ifdef
5668 SIGRTMIN case.
5669 (do_target_signal_to_host): Likewise.
5670
caaa3122
DJ
56712002-06-09 Daniel Jacobowitz <[email protected]>
5672
5673 * mips-tdep.c (mips_find_abi_section): New function.
5674 (mips_gdbarch_init): Call it.
5675
6ac5df3a
MK
56762002-06-09 Mark Kettenis <[email protected]>
5677
5678 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5679 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5680 after Andrew's 2002-06-08 gdbarch change.
5681
82ea117a
MK
56822002-06-09 Mark Kettenis <[email protected]>
5683
5684 * i386-linux-nat.c (suppy_gregset): Don't supply
5685 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5686 register cache.
5687 (fill_gregset): Don't fetch it under the same circumstances.
5688
3c25f8c7
AC
56892002-06-09 Andrew Cagney <[email protected]>
5690
5691 * Makefile.in (callback_h): Define.
5692 (remote_sim_h): Update path to remote-sim.h.
5693 (remote-rdp.o): Add $(callback_h).
5694 (remote-sim.o): Use $(callback_h).
5695 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5696 * remote-rdp.c: Include "gdb/callback.h".
5697
1029b7fa
MK
56982002-06-09 Mark Kettenis <[email protected]>
5699
5700 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5701 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5702
616675d3
AC
57032002-06-08 Andrew Cagney <[email protected]>
5704
a3efda28
AC
5705 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5706 * rdi-share/serpardr.c: Ditto.
5707 * rdi-share/unixcomm.c: Ditto.
5708 * rdi-share/serdrv.c: Ditto.
5709 * rdi-share/hostchan.h: Ditto.
5710 * rdi-share/hostchan.c: Ditto.
5711 * rdi-share/host.h: Ditto.
5712 * rdi-share/devsw.c: Ditto.
5713
c5f10366
AC
5714 * objfiles.h: Change type of obj_private to void pointer.
5715 * pa64solib.c: Update copyright. Don't include "assert.h", use
5716 strcmp instead of STREQ, use LONGEST, do not use PTR
5717 * somsolib.c: Ditto.
5718
616675d3
AC
5719 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5720 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5721 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5722
e4b415d9
AC
57232002-06-08 Andrew Cagney <[email protected]>
5724
5725 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5726 (default_get_saved_register): Delete function.
5727 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5728 generic_unwind_get_saved_register.
5729 * gdbarch.h, gdbarch.c: Re-generate.
5730
ca0d0b52
AC
57312002-06-08 Andrew Cagney <[email protected]>
5732
5733 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5734 generic_func_frame_chain_valid.
5735 * gdbarch.h, gdbarch.c: Re-generate.
5736 * blockframe.c (generic_func_frame_chain_valid): Only check
5737 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5738 passing FP to PC_IN_CALL_DUMMY.
5739 Fix PR gdb/360.
5740
76860b5f
AC
57412002-06-08 Andrew Cagney <[email protected]>
5742
5743 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5744 (register_gdbarch_data): Initialize init_p.
5745 (gdbarch_data): Initialize data pointer using the init function.
5746 (init_gdbarch_data): Delete function.
5747 (gdbarch_update_p): Update.
5748 (initialize_non_multiarch): Update.
5749 (struct gdbarch): Add field initialized_p.
5750 * gdbarch.h, gdbarch.c: Re-generate.
5751
8dda9770
ML
57522002-06-07 Michal Ludvig <[email protected]>
5753
5754 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5755 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5756 better do the things actually here.
5757 * x86-64-tdep.c (x86_64_register_name2nr): New.
5758 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5759 (x86_64_gdbarch_init): Respect the above change.
5760 * x86-64-tdep.h (x86_64_register_name2nr)
5761 (x86_64_register_nr2name): Add prototypes.
5762 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5763
3d79a47c
MS
57642002-06-06 Michael Snyder <[email protected]>
5765
7bd91a28
MS
5766 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5767 Delete extra braces and re-indent.
5768 (d10v_store_return_value): Char return values
3d79a47c
MS
5769 must be shifted over by one byte in R0.
5770 (d10v_extract_return_value): Delete extra braces, re-indent.
5771
095a4c96
EZ
57722002-06-06 Elena Zannoni <[email protected]>
5773
5774 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5775 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5776 (d10v_integer_to_address): Rewrite.
5777 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5778 the d10v specific functions which take care of converting to the
5779 correct space.
5780
e8a77ca4
EZ
57812002-06-06 Elena Zannoni <[email protected]>
5782
5783 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5784 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5785
4f2e4a4f
AC
57862002-06-02 Andrew Cagney <[email protected]>
5787
5788 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5789 includes.
5790 * config/tm-linux.h: Ditto.
5791 * config/alpha/tm-alphalinux.h: Ditto.
5792 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5793 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5794 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5795 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5796 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5797 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5798 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5799 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5800 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5801 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5802 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5803 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5804 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5805 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5806 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5807 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5808 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5809 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5810 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5811 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5812 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5813 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5814 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5815 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5816 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5817 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5818 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5819 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5820 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5821 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5822 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5823 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5824 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5825 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5826 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5827 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5828 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5829
ae2ab2ce
AS
58302002-05-04 Aidan Skinner <[email protected]>
5831
5832 * ada-exp.tab.c: New file
5833 * ada-exp.y: New file
5834 * ada-lang.c: New file
5835 * ada-lang.h: New file
5836 * ada-lex.c: New file
5837 * ada-lex.l: New file
5838 * ada-tasks.c: New file
5839 * ada-typeprint.c: New file
5840 * ada-valprint.c: New file
5841
0ddd0135
JT
58422002-06-02 Jason Thorpe <[email protected]>
5843
5844 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5845 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5846
750fbacc
JT
58472002-06-02 Jason Thorpe <[email protected]>
5848
5849 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5850 insetead of ppc-linux-tdep.o.
5851 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5852 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5853
df94e18a
AC
58542002-06-02 Andrew Cagney <[email protected]>
5855
5856 2002-05-07 Christian Groessler <[email protected]>
5857 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5858 bit register contents for little endian hosts.
5859
1a38ab75
AC
58602002-06-01 Andrew Cagney <[email protected]>
5861
5862 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5863 any maintainer.
5864
8b1632ac
AC
58652002-06-01 Andrew Cagney <[email protected]>
5866
5867 * gdbarch.h: Regenerate.
5868
627054c8
AC
58692002-06-01 Andrew Cagney <[email protected]>
5870
5871 * MAINTAINERS: Add everyone to write-after-approval list.
5872
4f460812
AC
58732002-06-01 Andrew Cagney <[email protected]>
5874
5875 * stack.c (frame_info): Use frame_register_unwind instead of
5876 saved_regs. Mention when the SP is on the stack or in a register.
5877
5878 * frame.h (frame_register_unwind_ftype): Define. Document.
5879 (struct frame_info): Add field register_unwind and
5880 register_unwind_cache.
5881 (frame_register_unwind): Declare.
5882 (generic_unwind_get_saved_register): Declare.
5883
5884 * frame.c (frame_register_unwind): New function.
5885 (generic_unwind_get_saved_register): New function.
5886
5887 * blockframe.c (generic_call_dummy_register_unwind): New function.
5888 (frame_saved_regs_register_unwind): New function.
5889 (set_unwind_by_pc): New function.
5890 (create_new_frame): New function.
5891 (get_prev_frame): New function.
5892
de888f76
AC
58932002-05-30 Andrew Cagney <[email protected]>
5894
5895 * a29k-share/: Delete directory.
5896 * remote-vx29k.c: Delete file.
5897
2f2c3626
JT
58982002-05-30 Jason Thorpe <[email protected]>
5899
5900 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5901 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5902
9ce5c36a
JT
59032002-05-30 Jason Thorpe <[email protected]>
5904
5905 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5906 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5907 (sparc64nbsd-nat.o)
5908 (sparcnbsd-nat.o)
5909 (sparcnbsd-tdep.o): New dependency lists.
5910 * NEWS: Note new UltraSPARC NetBSD native configuration.
5911 * configure.host (sparc64-*-netbsd*): New host.
5912 * configure.tgt (sparc-*-netbsdelf*)
5913 (sparc-*-netbsd*): Set gdb_target to nbsd.
5914 (sparc64-*-netbsd*): New target.
5915 * sparc64nbsd-nat.c: New file.
5916 * sparcnbsd-nat.c: New file.
5917 * sparcnbsd-tdep.c: New file.
5918 * sparcnbsd-tdep.h: New file.
5919 * config/sparc/nbsd.mt: New file.
5920 * config/sparc/nbsd64.mh: New file.
5921 * config/sparc/nbsd64.mt: New file.
5922 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5923 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5924 (HOST_IPC): Remove.
5925 * config/sparc/nbsdaout.mt: Remove.
5926 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5927 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5928 (HOST_IPC): Remove.
5929 * config/sparc/nbsdelf.mt: Remove.
5930 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5931 sparc-nat.c compatiblity defines.
5932 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5933 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5934 * config/sparc/tm-nbsd64.h: New file.
5935 * config/sparc/tm-nbsdaout.h: Remove.
5936 * config/sparc/xm-nbsd.h: Remove.
5937
ef3cf062
JT
59382002-05-30 Jason Thorpe <[email protected]>
5939
5940 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5941 * sparc-tdep.c: Include osabi.h.
5942 (gdbarch_tdep): Add osabi member.
5943 (_initialize_sparc_tdep): Use gdbarch_register.
5944 (sparc_gdbarch_init): Use generic OS ABI framework.
5945 (sparc_dump_tdep): New function.
5946
ee8ff470
KB
59472002-05-30 Kevin Buettner <[email protected]>
5948
5949 * corefile.c (do_captured_read_memory_integer): Return non-zero
5950 result.
5951 (safe_read_memory_integer): Copy result of memory read when
5952 status is non-zero. Also, add comments.
5953
7b112f9c
JT
59542002-05-20 Jason Thorpe <[email protected]>
5955
5956 * Makefile.in (ppc_tdep_h): Define.
5957 (ppc-linux-nat.o)
5958 (ppc-linux-tdep.o)
5959 (rs6000-tdep.o): Use $(ppc_tdep_h).
5960 (ppc-sysv-tdep.o)
5961 (ppcnbsd-nat.o)
5962 (ppcnbsd-tdep.o): New dependency lists.
5963 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5964 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5965 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5966 (ppc_sysv_abi_broken_use_struct_convention)
5967 (ppc_sysv_abi_use_struct_convention)
5968 (ppc_sysv_abi_push_arguments): Move to...
5969 * ppc-sysv-tdep.c: ...here.
5970 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5971 * rs6000-tdep.c (process_note_abi_tag_sections)
5972 (get_elfosabi): Remove.
5973 (rs6000_gdbarch_init): Use generic OS ABI framework.
5974 (rs6000_dump_tdep): New function.
5975 (_initialize_rs6000_tdep): Use gdbarch_register.
5976 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5977 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5978 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5979 of ppc-linux-tdep.o.
5980 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5981 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5982 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5983 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5984 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5985 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5986
480dd42a
JB
59872002-05-29 Jim Blandy <[email protected]>
5988
5989 * macroscope.c (default_macro_scope): Put `void' in empty argument
5990 list.
5991
4182591f
AC
59922002-05-29 Andrew Cagney <[email protected]>
5993
5994 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5995 * arch-utils.c: Include "sim-regno.h".
5996 * gdbarch.sh: Don't include "sim-regno.h".
5997 * gdbarch.h, gdbarch.c: Regenerate.
5998 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5999 here.
6000 * arch-utils.h (legacy_register_sim_regno): To here.
6001 * remote-sim.c (legacy_register_sim_regno): Move function from
6002 here.
6003 * arch-utils.c (legacy_register_sim_regno): To here.
6004
8238d0bf
AC
60052002-05-28 Andrew Cagney <[email protected]>
6006
6007 * sim-regno.h: New file.
6008 * Makefile.in (sim_regno_h): Define.
6009 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6010 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6011 (legacy_register_sim_regno): New function.
6012 (one2one_register_sim_regno): New function.
6013 (gdbsim_fetch_register): Rewrite.
6014 (gdbsim_store_register): Only store a register when
6015 REGISTER_SIM_REGNO is valid.
6016 * d10v-tdep.c: Include "sim-regno.h".
6017 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6018 (d10v_ts3_register_sim_regno): Ditto.
6019 * gdbarch.sh: Include "sim-regno.h".
6020 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6021 * gdbarch.h, gdbarch.c: Regenerate.
6022 * arch-utils.h (default_register_sim_regno): Delete declaration.
6023 * arch-utils.c (default_register_sim_regno): Delete function.
6024
485721b1
JT
60252002-05-28 Jason Thorpe <[email protected]>
6026
6027 * ppcnbsd-nat.c: Rewrite.
6028 * ppcnbsd-tdep.c: New file.
6029 * ppcnbsd-tdep.h: New file.
6030 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6031 solib.o, and solib-svr4.o.
6032 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6033 nbsd-tdep.o, and corelow.o.
6034
697f244d
AC
60352002-05-28 Andrew Cagney <[email protected]>
6036
6037 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6038 `tr' and `sed'. Mention that `broken' targets are not expected to
6039 build.
6040
f08caad1 60412002-05-27 Michal Ludvig <[email protected]>
b1ab997b
ML
6042
6043 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6044 Let PC point right after the prologue before looking up symbols.
6045
3139facc
MH
60462002-05-27 Martin M. Hunt <[email protected]>
6047
6048 * i386-tdep.c (i386_register_virtual_type): Return
6049 builtin_type_vec128i for SSE registers.
6050
6051 * gdbtypes.h (builtin_type_vec128i): Declare.
6052
6053 * gdbtypes.c (build_builtin_type_vec128i): New function.
6054 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6055 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6056 (build_gdbtypes): Initialize new builtin vector types.
6057 (_initialize_gdbtypes): Register new vector types with gdbarch.
6058
6e3ba3b8
JT
60592002-05-26 Jason Thorpe <[email protected]>
6060
6061 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6062 since it has been multi-arch'd.
6063 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6064 Move Alpha and VAX multi-arch news entries to same section
6065 as other multi-arch news.
6066
93d5585d
JT
60672002-05-26 Jason Thorpe <[email protected]>
6068
6069 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6070 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6071 static. Rename some register numbers to put them in ns32k-tdep
6072 private namespace.
6073 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6074 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6075 functions.
6076 (_initialize_ns32k_tdep): Use gdbarch_register.
6077 * ns32k-tdep.h: New file.
6078 * ns32knbsd-tdep.c: New file.
6079 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6080 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6081 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6082 REGISTER_BYTES, REGISTER_BYTE): Remove.
6083 * config/ns32k/tm-ns32k.h: New file.
6084 * config/ns32k/tm-umax.h: Remove.
6085
efb2c70e
JT
60862002-05-26 Jason Thorpe <[email protected]>
6087
6088 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6089 ns32k_store_struct_return, ns32k_extract_return_value,
6090 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6091 functions.
6092 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6093 ns32k_saved_pc_after_call.
6094 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6095 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6096 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6097 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6098 ns32k_extract_struct_value_address.
6099
7bcc927b
JT
61002002-05-26 Jason Thorpe <[email protected]>
6101
6102 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6103 ns32k_fix_call_dummy): New.
6104 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6105 ns32k_call_dummy_words.
6106 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6107 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6108 CALL_DUMMY_NARGS): Remove.
6109 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6110
78f9d765
JT
61112002-05-26 Jason Thorpe <[email protected]>
6112
6113 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6114 ns32k_frame_saved_pc, ns32k_frame_args_address,
6115 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6116 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6117 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6118 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6119 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6120 (BREAKPOINT): Remove..
6121 (FRAME_CHAIN): Define as ns32k_frame_chain.
6122 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6123 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6124 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6125 (FRAME_FIND_SAVED_REGS): Remove.
6126 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6127 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6128 (POP_FRAME): Define as ns32k_pop_frame.
6129
f2c762e0
JT
61302002-05-26 Jason Thorpe <[email protected]>
6131
6132 * ns32k-tdep.c (ns32k_register_byte_32082,
6133 ns32k_register_byte_32382, ns32k_register_raw_size,
6134 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6135 functions.
6136 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6137 ns32k_register_byte_32382.
6138 * config/ns32k/tm-umax.h: Update copyright years.
6139 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6140 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6141 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6142 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6143 (ns32k_get_enter_addr): Fix prototype.
6144
af137673
JT
61452002-05-26 Jason Thorpe <[email protected]>
6146
6147 * ns32k-tdep.c: Update copyright years.
6148 (ns32k_register_name_32082): New function.
6149 (ns32k_register_name_32382): Ditto.
6150 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6151 (REGISTER_NAME): Define as ns32k_register_name_32382.
6152 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6153 (REGISTER_NAME): Define as ns32k_register_name_32082.
6154
a8bc7b56
JB
61552002-05-24 Jim Blandy <[email protected]>
6156
6157 * dwarf2read.c (free_line_header): Use xfree, not free.
6158
83a45910
JT
61592002-05-24 Jason Thorpe <[email protected]>
6160
6161 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6162 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6163
0db71247
AC
61642002-05-23 Andrew Cagney <[email protected]>
6165
6166 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6167
b9e5e4dd
AC
61682002-05-23 Andrew Cagney <[email protected]>
6169
6170 From Ross Alexander at NEC Europe:
6171 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6172
de530e84
MS
61732002-05-23 Michael Snyder <[email protected]>
6174
6175 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6176 for input, rather than parse_and_eval_address.
6177
b91b96f4
AC
61782002-05-23 Andrew Cagney <[email protected]>
6179
6180 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6181 * Makefile.in (sim_d10v_h): Update definition.
6182
8b279e7a
AC
61832002-05-24 Andrew Cagney <[email protected]>
6184
6185 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6186 change `2002-05-22 Michael Snyder' below.
6187 (d10v_push_arguments): Ditto.
6188 (d10v_extract_return_value): Ditto.
6189
0a3d0425
JB
61902002-05-23 Jim Blandy <[email protected]>
6191
6192 * macrotab.c (check_for_redefinition): Don't complain if the new
6193 definition is the same as the previous one. Take more arguments
6194 to allow the comparison.
6195 (macro_define_object, macro_define_function): Pass more arguments
6196 to check_for_redefinition.
6197
78eac43e
MS
61982002-05-22 Michael Snyder <[email protected]>
6199
6200 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6201 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6202 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6203 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6204 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6205 Add a temp variable to save a call (and a memory read).
6206 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6207 if possible (so that PC_IN_CALL_DUMMY will work).
6208
9bc1edb8
CV
62092002-05-22 Corinna Vinschen <[email protected]>
6210
6211 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6212
005ef3d2
ML
62132002-05-22 Michal Ludvig <[email protected]>
6214
6215 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6216 fde->cie_ptr.
6217 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6218 (dwarf2_build_frame_info): Add offset to fde->initial_location
6219 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
6220 (execute_stack_op): Change type of 'result' from ULONGEST to
6221 CORE_ADDR.
005ef3d2 6222
fcf4f891
JT
62232002-05-22 Jason Thorpe <[email protected]>
6224
6225 * config/alpha/tm-nbsd.h: Include solib.h.
6226
cfef91e4
JT
62272002-05-22 Jason Thorpe <[email protected]>
6228
6229 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6230 assumptions about the host's byte order.
6231
9964235a
JT
62322002-05-22 Jason Thorpe <[email protected]>
6233
6234 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6235 to dependency list.
6236 * alphanbsd-tdep.c: Include solib-svr4.h.
6237 * shnbsd-tdep.c: Ditto.
6238
9eeef8ef
JT
62392002-05-22 Jason Thorpe <[email protected]>
6240
6241 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6242 nbsd-tdep.h to dependency list.
6243 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6244 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6245 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6246 nbsdaout.mh and nbsdelf.mh consistently.
6247 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6248 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6249 nbsdaout.mt and nbsdelf.mh consistently.
6250 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6251 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6252 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6253 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6254 a.out shared library stuff from here...
6255 * config/nm-nbsdaout.h: ...to here.
6256 * config/tm-nbsd.h: Remove.
6257 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6258 * config/arm/nbsd.mh: Remove.
6259 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6260 nbsd-tdep.o.
6261 * config/arm/nbsdaout.mh: New file.
6262 * config/arm/nbsdelf.mh: New file.
6263 * config/arm/nm-nbsdaout.h: New file.
6264 * config/i386/nbsd.mh: Remove.
6265 * config/i386/nbsd.mt: Remove.
6266 * config/i386/nbsdaout.mh: New file.
6267 * config/i386/nbsdaout.mt: New file.
6268 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6269 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6270 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6271 i386_register_u_addr): Remove.
6272 * config/i386/nm-nbsdaout.h: New file.
6273 * config/i386/nm-nbsdelf.h: Remove.
6274 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6275 (USE_STRUCT_CONVENTION): Remove.
6276 * config/i386/tm-nbsdaout.h: New file.
6277 * config/i386/tm-nbsdelf.h: Remove.
6278 * config/m68k/nbsd.mh: Remove.
6279 * config/m68k/nbsd.mt: Remove.
6280 * config/m68k/nbsdaout.mh: New file.
6281 * config/m68k/nbsdaout.mt: New file.
6282 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6283 * config/m68k/nm-nbsdaout.h: New file.
6284 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6285 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6286 * config/ns32k/nbsd.mh: Remove.
6287 * config/ns32k/nbsd.mt: Remove.
6288 * config/ns32k/nbsdaout.mh: New file.
6289 * config/ns32k/nbsdaout.mt: New file.
6290 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6291 * config/ns32k/nm-nbsdaout.h: New file.
6292 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6293 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6294 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6295 (SVR4_SHARED_LIBS): Remove.
6296 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6297 * config/sparc/nbsd.mh: Remove.
6298 * config/sparc/nbsd.mt: Remove.
6299 * config/sparc/nbsdaout.mh: New file.
6300 * config/sparc/nbsdaout.mt: New file.
6301 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6302 * config/sparc/nbsdelf.mt: New file.
6303 * config/sparc/nm-nbsdaout.h: New file.
6304 * config/sparc/nm-nbsdelf.h: Remove.
6305 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6306 * config/sparc/tm-nbsdaout.h: New file.
6307
257ce470
JT
63082002-05-21 Jason Thorpe <[email protected]>
6309
6310 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6311 mipsnbsd-tdep.c
6312 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6313
76a6d5fe
JT
63142002-05-21 Jason Thorpe <[email protected]>
6315
6316 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6317 shnbsd-nat.c.
6318 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6319
45888261
JT
63202002-05-21 Jason Thorpe <[email protected]>
6321
6322 * NEWS: Note new MIPS NetBSD native configuration.
6323 * configure.host (mips*-*-netbsd*): New host.
6324 * configure.tgt (mips*-*-netbsd*): New target.
6325 * mipsnbsd-nat.c: New file.
6326 * mipsnbsd-tdep.c: New file.
6327 * mipsnbsd-tdep.h: New file.
6328 * config/mips/nbsd.mh: New file.
6329 * config/mips/nbsd.mt: New file.
6330 * config/mips/nm-nbsd.h: New file.
6331 * config/mips/tm-nbsd.h: New file.
6332
70f80edf
JT
63332002-05-21 Jason Thorpe <[email protected]>
6334
6335 * Makefile.in (SFILES): Add osabi.c.
6336 (COMMON_OBS): Add osabi.o.
6337 (osabi.o): New dependency list.
6338 * osabi.c: New file.
6339 * osabi.h: New file.
6340 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6341
6342 * Makefile.in (alpha_tdep_h): Define and use instead of
6343 alpha-tdep.h.
6344 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6345 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6346 Remove.
6347 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6348 * alpha-tdep.h: Include osabi.h.
6349 (alpha_abi): Remove.
6350 (gdbarch_tdep): Use generic OS ABI framework.
6351 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6352 gdbarch_register_osabi.
6353 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6354 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6355 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6356
6357 * Makefile.in (sh_tdep_h): Add osabi.h.
6358 * sh-tdep.h (sh_osabi): Remove.
6359 (gdbarch_tdep): Use generic OS ABI framework.
6360 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6361 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6362 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6363 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6364
6365 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6366 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6367 gdbarch_register_osabi.
6368 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6369 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6370 (get_elfosabi): Rename to...
6371 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6372 ABI framework support routines.
6373 (arm_gdbarch_init): Use generic OS ABI framework.
6374 (arm_dump_tdep): Likewise.
6375 (_initialize_arm_tdep): Likewise.
6376 * arm-tdep.h: Include osabi.h.
6377 (arm_abi): Remove.
6378 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6379 osabi member.
6380 (arm_gdbarch_register_os_abi): Remove prototype.
6381 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6382 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6383
6384 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6385 * mips-tdep.c: Include osabi.h.
6386 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6387 OS ABI framework.
6388
d194345b
KH
63892002-05-20 Kazu Hirata <[email protected]>
6390
6391 * h8300-tdep.c: Fix formatting.
6392
70c6b0d1
EZ
63932002-05-20 Elena Zannoni <[email protected]>
6394
6395 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6396 printing vector registers.
6397
165b8e33
AC
63982002-05-19 Andrew Cagney <[email protected]>
6399
6400 From Fernando Nasser:
6401 * remote.c (remote_async_open_1): Re-throw the exception when the
6402 connection fails.
6403 (remote_cisco_open): Ditto.
6404 (remote_open_1): Ditto.
6405
36918e70
AC
64062002-05-19 Andrew Cagney <[email protected]>
6407
6408 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6409 (remote_start_remote): Add uiout parameter. Pass through to
6410 remote_start_remote_dummy.
6411 (remote_open_1): Use catch_exception instead of catch_errors.
6412 (remote_async_open_1): Ditto.
6413 (remote_cisco_open): Ditto.
6414
ae44c0c4
AC
64152002-05-19 Andrew Cagney <[email protected]>
6416
6417 * remote.c (remote_start_remote): Replace PTR with void pointer.
6418 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6419 static.
6420
8efe637d
AC
64212002-05-18 Andrew Cagney <[email protected]>
6422
6423 * gdb_indent.sh: Allow the script to be run in the sim directory.
6424
2f1b5984
MK
64252002-05-18 Mark Kettenis <[email protected]>
6426
f0f625e2
MK
6427 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6428 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6429
2f1b5984
MK
6430 * corelow.c (core_open): Only call set_gdbarch_from_file if
6431 exec_bfd is NULL.
6432
fc974602
AV
64332002-05-17 Andrey Volkov <[email protected]>
6434
6435 * h8300-tdep.c: Add support of EXR register
6436 * config/h8300/tm-h8300.h: Ditto.
6437
906709f4
AV
64382002-05-17 Andrey Volkov <[email protected]>
6439
6440 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6441
6e591d68
AV
64422002-05-17 Andrey Volkov <[email protected]>
6443
6444 * h8300-tdep.c: Change literal regnums to REGNO.
6445
84f0252a
JB
64462002-05-17 Jim Blandy <[email protected]>
6447
e0e9281e
JB
6448 * NEWS: Note addition of macro support.
6449
84f0252a
JB
6450 Expand preprocessor macros in C expressions.
6451 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6452 (scan_macro_expansion, scanning_macro_expansion,
6453 finished_macro_expansion): New function declarations.
6454 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6455 variable declarations.
6456 * parser-defs.h (expression_context_pc): New declaration.
6457 * parse.c (expression_context_pc): New variable.
6458 (parse_exp_1): Set expression_context_pc, as well as
6459 expression_context_block.
6460 * c-exp.y (yylex): If we're not already reading the result of a
6461 macro expansion, try to macro-expand the next token. When we're
6462 done scanning a macro expansion, switch back to the mainline text.
6463 Commas and `if's in a macro's expansion don't terminate the input.
6464 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6465 (macro_original_text, macro_expanded_text,
6466 expression_macro_lookup_func, expression_macro_lookup_baton): New
6467 variables.
6468 (scan_macro_expansion, scanning_macro_expansion,
6469 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6470 c_preprocess_and_parse): New functions.
6471 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6472 c_preprocess_and_parse, instead of c_parse.
6473 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6474 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6475
1c509ca8
JR
6476Fri May 17 14:26:19 2002 J"orn Rennecke <[email protected]>
6477
6478 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6479 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6480 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6481
2250ee0c
CV
64822002-05-17 Corinna Vinschen <[email protected]>
6483
6484 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6485
ab3b8126
JT
64862002-05-17 Jason Thorpe <[email protected]>
6487
6488 * Makefile.in (sh_tdep_h): Define and use.
6489 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6490 register enum): Move to...
6491 * * sh-tdep.h: ...here.
6492 * sh-tdep.c: Include sh-tdep.h.
6493 * sh3-rom.c: Likewise.
6494 * shnbsd-tdep.c: Likewise.
6495
ed9d4749
MS
64962002-05-16 Michael Snyder <[email protected]>
6497
6498 * arm-tdep.c: Spelling fix in comment.
6499
2e276125
JB
65002002-05-16 Jim Blandy <[email protected]>
6501
6821892e
JB
6502 Add commands for manually expanding macros and showing their
6503 definitions.
6504 * macrocmd.c, macroscope.c, macroscope.h: New files.
6505 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6506 (macroscope_h): New variable.
6507 (HFILES_NO_SRCDIR): Add macroscope.h.
6508 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6509 (macroscope.o, macrocmd.o): New rules.
6510
2e276125
JB
6511 Teach the Dwarf 2 reader to read macro information.
6512 * dwarf2read.c: #include "macrotab.h".
6513 (dwarf_macinfo_buffer): New variable.
6514 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6515 dwarf_macinfo_size.
6516 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6517 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6518 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6519 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6520 dwarf2_macro_spaces_in_definition): New complaints.
6521 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6522 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6523 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6524 the partial symbol table.
6525 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6526 from what's recorded in the partial symbol table.
6527 (read_file_scope): If the compilation unit has a
6528 `DW_AT_macro_info' attribute, read its macro information.
6529 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6530
2f53fe6c
DJ
65312002-05-16 Daniel Jacobowitz <[email protected]>
6532
6533 Fix PR gdb/546
6534 * ser-tcp.c: Don't include <netinet/udp.h>.
6535
2be99286
SC
65362002-05-16 Stephane Carrez <[email protected]>
6537
6538 * MAINTAINERS: Update my email address.
6539
c9af212b 65402002-05-16 Richard Earnshaw <[email protected]>
8501bbeb
RE
6541
6542 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6543 include file of the same name.
6544
bf5f1a52
CV
65452002-05-16 Corinna Vinschen <[email protected]>
6546
6547 * configure.tgt: Mark v850 as multi-arched.
6548 * config/v850/tm-v850.h: Remove file.
6549 * config/v850/v850.mt: Eliminate TM_FILE.
6550
435e042a
CV
65512002-05-16 Corinna Vinschen <[email protected]>
6552
6553 * v850-tdep.c: Full multi-arch.
6554 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6555 Define GDB_MULTI_ARCH to 2.
6556
9819c6c8
PM
65572002-05-16 Pierre Muller <[email protected]>
6558
6559 * p-exp.y (current_type): New static variable.
6560 Carries the type of the expression at the position that is parsed.
6561 (push_current_type, pop_current_type): Two new functions. Used
6562 to store/restore current_type in expression on specific tokens.
c9af212b
RE
6563 (search_field): New static variable. Set to one after parsing a point
6564 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
6565 (FIELDNAME): New token. After a point only a token belonging to
6566 current_type type definition is allowed.
6567 (all over token rules): reset and change current_type according
6568 to rules.
6569 (exp '[' rule): insert implicit array index field if
6570 exp is a pascal string type.
6571
3a06899a
CV
65722002-05-16 Corinna Vinschen <[email protected]>
6573
6574 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6575 frame info. Use frame_info's saved_regs instead of matching member
6576 in extra_frame_info throughout.
6577 (v850_frame_init_saved_regs): New function.
6578 (v850_init_extra_frame_info): Move most functionality into
6579 v850_frame_init_saved_regs().
6580 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6581 (v850_frame_find_saved_regs): Remove declaration.
6582 (FRAME_FIND_SAVED_REGS): Remove definition.
6583 (v850_frame_init_saved_regs): Add declaration.
6584 (FRAME_INIT_SAVED_REGS): Add definition.
6585
6ed14b0e
CV
65862002-05-16 Corinna Vinschen <[email protected]>
6587
6588 * v850-tdep.c: Begin multi-arch'ing v850.
6589 (v850_target_architecture_hook): Remove function.
6590 (v850_gdbarch_init): New function. Add code previously in
6591 v850_target_architecture_hook().
6592 (_initialize_v850_tdep): Don't set target_architecture_hook.
6593 Call register_gdbarch_init() instead.
6594
42725910
DJ
65952002-05-16 Daniel Jacobowitz <[email protected]>
6596
6597 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6598 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6599 (fixup_class_method_type): Likewise.
6600
99d9066e
JB
66012002-05-15 Jim Blandy <[email protected]>
6602
6603 Add macro structures to GDB's symbol tables. Nobody puts anything
6604 in them yet.
6605 * symtab.h (struct symtab): New member: `macro_table'.
6606 * buildsym.h (pending_macros): New global variable.
6607 * buildsym.c: #include "macrotab.h".
6608 (buildsym_init): Initialize `pending_macros'.
6609 (end_symtab): If we found macro information while reading a CU's
6610 debugging info, do build a symtab structure for it. Make the
6611 symtab point to the macro information, and clear the
6612 `pending_macros' pointer which held it while we were reading the
6613 debug info.
6614 (really_free_pendings): Free any pending macro table.
6615 * objfiles.h (struct objfile): New member: `macro_cache'.
6616 * objfiles.c (allocate_objfile): Set allocate and free functions
6617 for the macro cache's objstack.
6618 (free_objfile): Empty the macro cache's obstack.
6619 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6620 set new allocate and free functions for it.
6621 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6622 free functions for the macro cache's objstack. (Why is this
6623 function building its own objfile?)
6624 * symmisc.c (print_objfile_statistics): Print statistics on the
6625 macro bcache.
6626 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6627
c899585b
RE
66282002-05-15 Richard Earnshaw <[email protected]>
6629
6630 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6631 (REGISTER_U_ADDR): Delete definition.
6632 (arm_register_u_addr): Delete declaration.
6633
a6cdd8c5
RE
66342002-05-15 Richard Earnshaw <[email protected]>
6635
6636 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6637 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6638
c97dcfc7
AC
66392002-05-14 Andrew Cagney <[email protected]>
6640
6641 * regcache.c (register_valid): Revise comments refering to "Not
6642 available" and "unavailable".
6643 * frame.c (frame_register_read): Ditto.
6644 * findvar.c (value_of_register): Ditto.
6645
93021b7d
AC
66462002-05-15 Andrew Cagney <[email protected]>
6647
6648 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6649 (remote-sim.o): Update dependencies.
6650 (d10v-tdep.o): Specify dependencies.
6651 (sim_d10v_h): Define.
6652
a86bc61c
JB
66532002-05-14 Jim Blandy <[email protected]>
6654
6655 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6656 * macrotab.c (macro_lookup_inclusion, find_definition,
6657 new_macro_table): Same.
6658
6659 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6660 not `! strcmp ()'. This is a dubious improvement.
6661 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6662
6663 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6664 although it's not necessary, to avoid a warning.
6665
2fdde8f8
DJ
66662002-05-14 Daniel Jacobowitz <[email protected]>
6667
6668 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6669 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6670 TYPE_INSTANCE_FLAGS.
6671 (struct main_type): New.
6672 (struct type): Move most members to struct main_type. Change
6673 cv_type and as_type to new type_chain member. Add instance_flags.
6674 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6675 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6676 (finish_cv_type): Remove prototype.
6677 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6678 Set TYPE_CHAIN.
6679 (alloc_type_instance): New function.
6680 (smash_type): New function.
6681 (make_pointer_type, make_reference_type, make_function_type)
6682 (smash_to_member_type, smash_to_method_type): Call smash_type.
6683 (make_qualified_type): New function.
6684 (make_type_with_address_space): Call make_qualified_type.
6685 (make_cv_type): Likewise.
6686 (finish_cv_type): Remove unnecessary function.
6687 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6688 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6689 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6690 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6691 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6692 * hpread.c (hpread_read_struct_type): Likewise.
6693 * stabsread.c (read_struct_type): Likewise.
6694
843fedf4
EZ
66952002-05-14 Elena Zannoni <[email protected]>
6696
6697 * configure.tgt: Add a catch all sh* target, for cases like
6698 sh[2,3,4]-elf and sh-hms.
6699
05a6c72c
KS
67002002-05-14 Keith Seitz <[email protected]>
6701
6702 * event-loop.c (create_file_handler): Don't do anything but
6703 update data when we are given a fd which we are already
6704 monitoring.
6705
5d085aaf
ML
67062002-05-14 Michal Ludvig <[email protected]>
6707
6708 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6709 (update_context): Use __func__ in warnings.
6710
9db8d71f
DJ
67112002-05-14 Daniel Jacobowitz <[email protected]>
6712
6713 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6714 and tcp_close to net_open and net_close.
6715 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6716 using UDP if requested. Don't try to disable Nagle on UDP
6717 sockets.
6718 * remote.c (remote_serial_open): New function. Warn about UDP.
6719 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6720
5dbc6baa
EZ
67212002-05-13 Elena Zannoni <[email protected]>
6722
6723 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6724
cc3023f7
EZ
67252002-05-13 Elena Zannoni <[email protected]>
6726
6727 * configure.tgt: Remove sh-hms target.
6728 * MAINTAINERS: Don't list sh-hms as a separate target.
6729
ec2bcbe7
JB
67302002-05-13 Jim Blandy <[email protected]>
6731
6732 Add first preprocessor macro-expansion files.
6733 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6734 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6735 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6736 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6737 (COMMON_OBS): Add macrotab.o, macroexp.o.
6738 (macroexp.o, macrotab.o): New rules.
6739
6d531722
AC
67402002-05-13 Andrew Cagney <[email protected]>
6741
6742 * config/m88k/tm-m88k.h: Update copyright.
6743 (m88k_target_write_pc): Declare
6744 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6745 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6746 (SHIFT_INST_REGS): Update definition.
6747 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6748 using old definition of TARGET_WRITE_PC.
6749 * regcache.c (generic_target_write_pc): Delete code handling
6750 NNPC_REGNUM.
6751 * gdbarch.sh (NNPC_REGNUM): Delete.
6752 * gdbarch.h, gdbarch.c: Regenerate.
6753
3e3f2739
RE
67542002-05-13 Richard Earnshaw <[email protected]>
6755
6756 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6757 builtin reg number.
6758
0004e5a2
DJ
67592002-05-13 Daniel Jacobowitz <[email protected]>
6760
6761 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6762 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6763 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6764 access macros.
6765 * c-typeprint.c (cp_type_print_method_args): Likewise.
6766 (c_type_print_args): Likewise.
6767 * d10v-tdep.c (d10v_push_arguments): Likewise.
6768 (d10v_extract_return_value): Likewise.
6769 * expprint.c (print_subexp): Likewise.
6770 * gdbtypes.c (lookup_primitive_typename): Likewise.
6771 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6772 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6773 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6774 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6775 (TYPE_VECTOR): Likewise.
6776 * hpread.c (hpread_read_struct_type)
6777 (fix_static_member_physnames, fixup_class_method_type)
6778 (hpread_type_lookup): Likewise.
6779 * mdebugread.c (parse_symbol, parse_type): Likewise.
6780 * p-lang.c (is_pascal_string_type): Likewise.
6781 * valops.c (hand_function_call): Likewise.
6782 * x86-64-tdep.c (classify_argument): Likewise.
6783
6784 * hpread.c (hpread_read_function_type)
6785 (hpread_read_doc_function_type): Call replace_type.
6786 * dstread.c (create_new_type): Delete.
6787 (decode_dst_structure, process_dst_function): Call alloc_type.
6788 Use type access macros.
6789
dff95cc7
MK
67902002-05-12 Mark Kettenis <[email protected]>
6791
6792 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6793 the're not supported by the current architecture.
6794 (i387_fill_fxsave): Likewise.
6795
bbcd32ad
FF
67962002-05-12 Fred Fish <[email protected]>
6797
6798 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6799 sect_index_xxx members to index the first slot in section_offsets
6800 if all of the section_offsets are zero.
6801
89cf4787
MK
68022002-05-12 Mark Kettenis <[email protected]>
6803
6804 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6805 checked in with last change.
6806
1f77ffc5
MK
68072002-05-12 Mark Kettenis <[email protected]>
6808
6809 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6810 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6811 config.sub.
6812
89b8b4a9
DJ
68132002-05-12 Daniel Jacobowitz <[email protected]>
6814
6815 * Makefile.in: Update dependencies.
6816
14a5e767
AC
68172002-05-11 Andrew Cagney <[email protected]>
6818
6819 * language.c (local_hex_string_custom): Simplify. Do not depend
6820 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6821
6822 * memattr.c (mem_info_command): Replace calls to
6823 longest_local_hex_string and longest_local_hex_string_custom.
6824 * buildsym.c (make_blockvector): Ditto.
6825 * solib.c (info_sharedlibrary_command): Ditto.
6826 * tracepoint.c (tracepoints_info): Ditto.
6827 * symtab.c (print_msymbol_info): Ditto.
6828
6829 * language.c (local_hex_string): Delete.
6830 (local_hex_string_custom): Delete.
6831 (longest_local_hex_string): Rename to local_hex_string.
6832 (longest_local_hex_string_custom): Rename to
6833 local_hex_string_custom.
6834 * language.h (local_hex_string): Change parameter type to LONGEST.
6835 (local_hex_string_custom): Ditto.
6836 (longest_local_hex_string): Delete declaration.
6837 (longest_local_hex_string_custom): Ditto.
6838
6839 * solib.c: Update copyright.
6840 * memattr.c: Update copyright.
6841
13d01224
AC
68422002-05-11 Andrew Cagney <[email protected]>
6843
6844 * arch-utils.h (legacy_register_to_value): Declare.
6845 (legacy_value_to_register): Declare.
6846 (legacy_convert_register_p): Declare.
6847 * arch-utils.c (legacy_register_to_value): New function.
6848 (legacy_value_to_register): New function.
6849 (legacy_convert_register_p): New function.
6850
6851 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6852 (VALUE_TO_REGISTER): Define.
6853 (CONVERT_REGISTER_P): Define.
6854 * gdbarch.h, gdbarch.c: Regenerate.
6855
6856 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6857 VALUE_TO_REGISTER.
6858 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6859 CONVERT_REGISTER_P.
6860
4a1970e4
DJ
68612005-05-11 Daniel Jacobowitz <[email protected]>
6862 Peter Schauer <[email protected]>
6863
6864 * Makefile.in: Update dependencies for valops.c.
6865 * valops.c: Include "gdb_assert.h".
6866 (typecmp): Skip THIS parameter to methods.
6867 (find_method_list): Remove static_memfuncp argument,
6868 update callers. Check for stub methods.
6869 (find_value_oload_method_list): Don't set *static_memfuncp.
6870 (find_overload_match): Don't check for stub methods. Assert
6871 that methods are not stubbed. Handle static methods.
6872 (value_find_oload_method_list): Remove static_memfuncp argument.
6873 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6874 to the argument list for static stub methods.
6875 * value.h (value_find_oload_method_list): Update prototype.
6876
b2e75d78
AC
68772002-05-11 Andrew Cagney <[email protected]>
6878
6879 * arch-utils.h (generic_register_size): Declare.
6880 (generic_register_raw_size, generic_register_virtual_size): Delete
6881 declarations.
6882 * arch-utils.c (generic_register_raw_size): Delete.
6883 (generic_register_size): New function.
6884 (generic_register_virtual_size): Delete.
6885
6886 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6887 default generic_register_size.
6888 * gdbarch.h, gdbarch.c: Re-generate.
6889
6890 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6891 register_virtual_size.
6892 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6893 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6894
451fbdda
AC
68952002-05-11 Andrew Cagney <[email protected]>
6896
6897 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6898 * gdbarch.h, gdbarch.c: Regenerate.
6899 * gnu-v3-abi.c: Update copyright.
6900 (vtable_address_point_offset): Update.
6901 (gnuv3_rtti_type): Update.
6902 (gnuv3_baseclass_offset): Update.
6903 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6904 (init_fetch_link_map_offsets): Update.
6905 * remote.c (get_remote_state): Update.
6906
6d2f5cea
DJ
69072002-05-11 Daniel Jacobowitz <[email protected]>
6908
6909 * TODO: Remove value_headof/value_from_vtable_info comment.
6910 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6911 * values.c (value_headof, value_from_vtable_info): Delete.
6912 * value.h (value_from_vtable_info): Delete prototype.
6913
d2324da4
AC
69142002-05-11 Andrew Cagney <[email protected]>
6915
6916 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6917 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6918 $(gdb_regex_h).
6919 (gdb_assert_h): Define.
6920 (gdb_wait_h): Define.
6921 (gdb_regex_h): Define.
6922
5c717440
DJ
69232002-05-11 Daniel Jacobowitz <[email protected]>
6924
6925 From Peter Schauer <[email protected]>:
6926 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6927
6c7861b3
JT
69282002-05-11 Jason Thorpe <[email protected]>
6929
6930 * nbsd-tdep.c: Fix comment.
6931
ea5bc2a6
JT
69322002-05-11 Jason Thorpe <[email protected]>
6933
6934 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6935 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6936 (nbsd-tdep.o): New dependency list.
6937 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6938 nbsd-tdep.h.
6939 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6940 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6941 * nbsd-tdep.c: New file.
6942 * nbsd-tdep.h: New file.
6943 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6944 nbsd-tdep.h.
6945 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6946 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6947 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6948 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6949
b28da865
JT
69502002-05-11 Jason Thorpe <[email protected]>
6951
6952 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6953 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6954 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6955 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6956 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6957 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6958
4b8ff1fa
JT
69592002-05-11 Jason Thorpe <[email protected]>
6960
6961 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6962 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6963 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6964 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6965 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6966 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6967 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6968
dfe6eb1f
JT
69692002-05-11 Jason Thorpe <[email protected]>
6970
6971 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6972 fetch_elfcore_registers to...
6973 * i386nbsd-tdep.c: ...here.
6974 (i386nbsd_use_struct_convention): Rename to...
6975 (i386nbsd_aout_use_struct_convention): ...this.
6976 (i386nbsd_supply_reg): New function.
6977 (i386nbsd_fill_reg): New function.
6978 (fetch_core_registers): Use i386nbsd_supply_reg.
6979 (fetch_elfcore_registers): Likewise.
6980 (_initialize_i386nbsd_tdep): New function.
6981 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6982 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6983 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6984 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6985 (i386nbsd_aout_use_struct_convention): ...this.
6986
20cb8cda
JT
69872002-05-11 Jason Thorpe <[email protected]>
6988
6989 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6990 (store_inferior_registers): Use shnbsd_fill_reg.
6991 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6992 sh_nbsd_supply_register): Collapse into...
6993 (shnbsd_supply_reg): ...this.
6994 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6995 (shnbsd_fill_reg): ...this.
6996 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6997 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6998 (fetch_core_registers): Use shnbsd_supply_reg.
6999 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7000 (sh_nbsd_core_fns): Rename to...
7001 (shnbsd_core_fns): ...this.
7002 (sh_nbsd_elfcore_fns): Rename to...
7003 (shnbsd_elfcore_fns): ...this.
7004 (sh_nbsd_init_abi): Rename to...
7005 (shnbsd_init_abi): ...this.
7006 (_initialize_sh_nbsd_tdep): Rename to...
7007 (_initialize_shnbsd_tdep): ...this.
7008 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7009 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7010 sh_nbsd_fill_register): Remove prototypes.
7011 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7012
e750d25e
JT
70132002-05-11 Jason Thorpe <[email protected]>
7014
7015 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7016 (i387-nat.o): Delete dependency list.
7017 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7018 (x86-64-linux-nat.o): Likewise.
7019 * i387-nat.c: Delete file, moving contents to...
7020 * i387-tdep.c: ...here.
7021 * i387-nat.h: Rename...
7022 * i387-tdep.h: ...to this.
7023 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7024 * i386-linux-nat.c: Likewise.
7025 * i386bsd-nat.c: Likewise.
7026 * i386gnu-nat.c: Likewise.
7027 * i386nbsd-nat.c: Likewise.
7028 * i386v4-nat.c: Likewise.
7029 * x86-64-linux-nat.c: Likewise.
7030 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7031 * config/i386/go32.mh (NATDEPFILES): Likewise.
7032 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7033 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7034 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7035 * config/i386/linux.mh (NATDEPFILES): Likewise.
7036 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7037 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7038 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7039 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7040
1aee598a
JT
70412002-05-11 Jason Thorpe <[email protected]>
7042
7043 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7044 (alphanbsd-nat.o): Remove dependency list.
7045 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7046 * alphanbsd-nat.c: Delete. Contents moved to...
7047 * alphanbsd-tdep.c: ...here.
7048 (_initialize_alphanbsd_tdep): Register core functions.
7049 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7050
12bcb0fe
JT
70512002-05-11 Jason Thorpe <[email protected]>
7052
7053 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7054 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7055 (alphanbsd-nat.o): Likewise.
7056 (alphabsd-tdep.o): New dependency list.
7057 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7058 (fill_gregset): Use alphabsd_fill_reg.
7059 (supply_fpregset): Use alphabsd_supply_fpreg.
7060 (fill_fpregset): Use alphabsd_fill_fpreg.
7061 (fetch_inferior_registers): Use struct reg and struct fpreg
7062 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7063 and alphabsd_supply_fpreg.
7064 (store_inferior_registers): Use struct reg and struct fpreg
7065 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7066 and alphabsd_fill_fpreg.
7067 * alphabsd-tdep.c: New file.
7068 * alphabsd-tdep.h: New file.
7069 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7070 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7071 alphabsd_supply_fpreg.
7072 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7073 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7074
361d1df0
EC
70752002-05-11 Eric Christopher <[email protected]>
7076
7077 * mips-tdep.c (mips_double_register_type): Fix thinko.
7078 (mips_single_register_type): Ditto.
7079 * MAINTAINERS: Add self.
7080
92dd7cee
MK
70812002-05-11 Mark Kettenis <[email protected]>
7082
7083 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7084 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7085 right thing on architectures with different endianness and/or
7086 integer sizes.
7087
e27da16d
JT
70882002-05-10 Jason Thorpe <[email protected]>
7089
7090 From Christian Limpach <[email protected]>
7091 * configure.in: Change sed expression which comments out
7092 NATDEPFILES to also comment out continuation lines.
7093 * configure: Regenerate.
7094
ddde02bd
EZ
70952002-05-10 Elena Zannoni <[email protected]>
7096
7097 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7098 big patch.
7099
1c922164
EZ
71002002-05-10 Elena Zannoni <[email protected]>
7101
7102 * sh-tdep.c: Include correct file.
7103
283150cd
EZ
71042002-05-10 Elena Zannoni <[email protected]>
7105
7106 New support for sh64-elf (sh5) target.
7107
7108 * configure.tgt: For sh64-elf target, default to sh-elf.
7109
7110 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7111 (struct gdbarch_tdep): Add new fields for new registers and ABI
7112 info.
361d1df0 7113
283150cd
EZ
7114 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7115 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7116 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7117 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7118 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7119 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7120 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7121 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7122 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7123 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7124 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7125 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7126 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7127 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7128 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7129 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7130 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7131 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7132 sign_extend, sh64_nofp_frame_init_saved_regs,
7133 sh64_init_extra_frame_info, sh64_get_saved_register,
7134 sh64_extract_struct_value_address, sh64_pop_frame,
7135 sh64_push_arguments, sh64_extract_return_value,
7136 sh64_store_return_value, sh64_show_media_regs,
7137 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7138 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7139 sh_sh64_register_virtual_type,
7140 sh_sh64_register_convert_to_virtual,
7141 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7142 sh64_register_read, sh64_pseudo_register_write,
7143 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7144 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7145 sh64_do_pseudo_register, sh_compact_do_registers_info,
7146 sh64_do_registers_info, sh_gdbarch_init): New functions.
7147
3117ed25
EZ
71482002-05-10 Elena Zannoni <[email protected]>
7149
7150 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7151
2654e6d4
DJ
71522002-05-10 Daniel Jacobowitz <[email protected]>
7153
7154 * linespec.c (decode_line_1): Check for a double quote after
7155 a filename correctly.
7156
9ab3e532
JB
71572002-05-10 Jim Blandy <[email protected]>
7158
7159 Properly track the size of the current objfile's .debug_line section.
7160 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7161 (DWARF_LINE_SIZE): New macro.
7162 (dwarf2_build_psymtabs_hard): Record the line section's size in
7163 the partial symbol table.
7164 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7165 symbol table.
7166
126fa72d
PS
71672002-05-10 Petr Sorfa <[email protected]>
7168
7169 * ia64-tdep.c: Handle breakpoints on L instruction type
7170 in MLX instruction bundle by moving the breakpoint to
7171 the third slot (X instruction type) as L holds only data.
7172
1f077a3e
KB
71732002-05-10 Kevin Buettner <[email protected]>
7174
7175 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7176 (process_one_symbol): Complain about discarding local symbols
7177 due to a misplaced N_LBRAC entry.
7178
8120c9d5 71792002-05-09 Elena Zannoni <[email protected]>
361d1df0
EC
7180
7181 From Daniel Berlin <[email protected]>
8120c9d5
EZ
7182 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7183 decrease the depth we are at, in the case of templates.
361d1df0 7184
67b2c998
DJ
71852002-05-09 Daniel Jacobowitz <[email protected]>
7186
7187 * mips-tdep.c (mips_float_register_type): New function.
7188 (mips_double_register_type): New function.
7189 (mips_print_register): Use them.
7190 (do_fp_register_row): Likewise.
7191
fd326606
DJ
71922002-05-09 Daniel Jacobowitz <[email protected]>
7193
6609d9af 7194 * signals/signals.c (signals): Remove conditional compilation around
fd326606 7195 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 7196 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 7197
bef35864
MS
71982002-05-09 Michael Snyder <[email protected]>
7199
7200 * remote-rdp.c (remote_rdp_can_run): Remove.
7201
c55a3f73
TT
72022002-05-09 Tom Tromey <[email protected]>
7203
7204 * jv-valprint.c (java_val_print): Handle `char' as a special case
7205 of TYPE_CODE_INT.
7206
b8d5e71d
MS
72072002-05-09 Michael Snyder <[email protected]>
7208
7209 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7210 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 7211 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 7212 str r(0123),[sp,#nn].
361d1df0 7213 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
7214 order-independent by placing it in a loop.
7215
e2cd42dd
MS
72162002-05-06 Michael Snyder <[email protected]>
7217
7218 * stabsread.c (read_type): Add recognition for new attribute:
7219 "@V;" means that an array type is actually a vector.
7220 This is analogous to the vector flag that's been added to dwarf2.
7221
3ce1502b
MK
72222002-05-09 Mark Kettenis <[email protected]>
7223
7224 * i386-tdep.h (i386_abi): New enum.
7225 (struct gdbarch_tdep): Replace os_ident member with abi.
7226 (i386_gdbarch_register_os_abi): New prototype.
7227 * i386-tdep.c (i386_abi_names): New array.
7228 (process_note_abi_tag_sections): Removed.
7229 (process_note_sections): New function.
7230 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7231 (struct i386_abi_handler): New struct.
7232 (i386_abi_handler_list): New variable.
7233 (i386_gdbarch_register_os_abi): New function.
7234 (i386_gdbarch_init): Adapt for the changes given above.
7235
084c156a
DJ
72362002-05-08 Daniel Jacobowitz <[email protected]>
7237
7238 * gregset.h: Say "GNU/Linux".
7239
6599f021
EZ
72402002-05-08 Elena Zannoni <[email protected]>
7241
7242 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7243 (build_gdbtypes): Build builtin_type_v2_float.
7244 (_initialize_gdbtypes): Register new builtin type.
7245
40af4b0c
AC
72462002-05-08 Andrew Cagney <[email protected]>
7247
7248 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7249 (clear_gdbarch_swap): New function.
7250 (initialize_non_multiarch): Call.
7251 (gdbarch_update_p): Before calling init(), swap out and clear the
7252 existing architecture.
7253 * gdbarch.c: Regenerate.
7254
4fe84f46
JT
72552002-05-08 Jason Thorpe <[email protected]>
7256
7257 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7258 alphanbsd-tdep.c.
7259
4015edd1
JT
72602002-05-08 Jason Thorpe <[email protected]>
7261
7262 * sh-nbsd-nat.c: Rename to...
7263 * shnbsd-nat.c: ...this.
7264 * sh-nbsd-tdep.c: Rename to...
7265 * shnbsd-tdep.c: ...this.
7266 * sh-nbsd-tdep.h: Rename to...
7267 * shnbsd-tdep.h: ...this.
7268 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7269 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7270
0e2bd219
RE
72712002-05-08 Richard Earnshaw <[email protected]>
7272
7273 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7274 concatenation for command help messages.
7275
13a38d45
JT
72762002-05-08 Jason Thorpe <[email protected]>
7277
7278 * NEWS: Note new sh*-*-netbsdelf* configuration.
7279 * configure.host: Set gdb_host_cpu to sh for all sh*.
7280 (sh*-*-netbsdelf*): New host.
7281 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7282 (sh*-*-netbsdelf*): New target.
7283 * sh-nbsd-nat.c: New file.
7284 * sh-nbsd-tdep.c: New file.
7285 * sh-nbsd-tdep.h: New file.
7286 * config/sh/nbsd.mh: New file.
7287 * config/sh/nbsd.mt: New file.
7288 * config/sh/nm-nbsd.h: New file.
7289 * config/sh/tm-nbsd.h: New file.
7290
d658f924
JT
72912002-05-08 Jason Thorpe <[email protected]>
7292
7293 * sh-tdep.c (sh_osabi_names): Declare.
7294 (process_note_abi_tag_sections): New function.
7295 (get_elfosabi): Ditto.
7296 (sh_gdbarch_register_os_abi): Ditto.
7297 (sh_dump_tdep): Ditto.
7298 _initialize_sh_tdep): Use gdbarch_register to register
7299 sh_gdbarch_init and sh_dump_tdep.
7300 * config/sh/tm-sh.h (sh_osabi): Declare.
7301 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7302
848cfffb
AC
73032002-05-07 Andrew Cagney <[email protected]>
7304
7305 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7306 (thumb_scan_prologue): Ditto.
7307 (arm_find_callers_reg): Ditto.
7308 (arm_frame_chain): Ditto.
7309 (arm_init_extra_frame_info): Ditto.
7310 (arm_frame_saved_pc): Ditto.
7311 (arm_pop_frame): Ditto.
7312 (arm_push_return_address): New function.
7313 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7314 call_dummy_location, call_dummy_breakpoint_offset_p,
7315 call_dummy_breakpoint_offset, call_dummy_p,
7316 call_dummy_stack_adjust_p, call_dummy_words,
7317 sizeof_call_dummy_words, call_dummy_start_offset,
7318 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7319 call_dummy_address, push_return_address and push_dummy_frame for
7320 generic dummy frames.
7321
e7d717c0
JT
73222002-05-07 Jason Thorpe <[email protected]>
7323
7324 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7325 size computation for alloca.
7326 (sh_fp_frame_init_saved_regs): Likewise.
7327
7bbcf283
RE
73282002-05-07 Richard Earnshaw <[email protected]>
7329
7330 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7331 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 7332 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
7333 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7334 * remote-rdp.c (remote_rdp_fetch_register): Use
7335 ARM_MAX_REGISTER_RAW_SIZE.
7336 (remote_rdp_store_register): Likewise.
7337
4657573b
ML
73382002-05-07 Michal Ludvig <[email protected]>
7339
361d1df0 7340 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
7341 added default labels to switch {} statements.
7342 * x86-64-tdep.c: Ditto.
7343 * x86-64-linux-nat.c: Ditto.
7344
010f3b2f
JT
73452002-05-07 Jason Thorpe <[email protected]>
7346
7347 * solib.h: Protect against multiple inclusion.
7348
debd256d
JB
73492002-05-06 Jim Blandy <[email protected]>
7350
9ab3e532
JB
7351 Add first preprocessor macro-expansion files.
7352 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7353 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7354 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7355 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7356 (COMMON_OBS): Add macrotab.o, macroexp.o.
7357 (macroexp.o, macrotab.o): New rules.
7358
debd256d
JB
7359 Separate the job of reading the line number info statement program
7360 header (...expialidocious) out into its own function.
7361 * dwarf2read.c (struct line_head, struct filenames, struct
7362 directories): Replace with...
7363 (struct line_header): New structure, containing the full
7364 contents of the statement program header, including the
7365 include directory and file name tables.
7366 (read_file_scope): If we have line number info, instead of just
7367 calling dwarf_decode_lines to do all the work, call
7368 dwarf_decode_line_header first to get a `struct line_header'
7369 containing the data in the statement program header, and then
7370 pass that to dwarf_decode_lines, which will pick up where that
7371 left off. Be sure to clean up the `struct line_header' object.
7372 (dwarf_decode_line_header, free_line_header, add_include_dir,
7373 add_file_name): New functions.
7374 (dwarf_decode_lines): Move all the code to read the statement
7375 program header into dwarf_decode_line_header. Take the line
7376 header it built as the first argument, instead of the offset to
7377 the compilation unit's line number info. Use the new `struct
7378 line_header' type instead of the old structures. No need to do
7379 cleanups here now, since we don't allocate anything.
7380 (dwarf2_statement_list_fits_in_line_number_section,
7381 dwarf2_line_header_too_long): New complaints.
7382
ac3aafc7
EZ
73832002-05-06 Elena Zannoni <[email protected]>
7384
7385 * gdbtypes.c (init_vector_type): New function.
7386 (build_builtin_type_vec128): Simplify the representation of SIMD
7387 registers.
7388 (build_gdbtypes): Initialize new builtin vector types.
7389 (_initialize_gdbtypes): Register new vector types with gdbarch.
7390 (builtin_type_v4_float, builtin_type_v4_int32,
7391 builtin_type_v8_int16, builtin_type_v16_int8,
7392 builtin_type_v2_int32, builtin_type_v4_int16,
7393 builtin_type_v8_int8): New (renamed) SIMD types.
7394
13e49980
MK
73952002-05-06 Mark Kettenis <[email protected]>
7396
7397 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7398 (i387_fill_fxsave): Likewise.
7399
997b20b8
AO
74002002-05-05 Alexandre Oliva <[email protected]>
7401
7402 * alpha-tdep.c (alpha_extract_return_value): Don't use
7403 non-constant array size in prototype.
7404
535c96ce
AC
74052002-05-04 Andrew Cagney <[email protected]>
7406
7407 From Brian Taylor <briant at model dot com>:
7408 * ui-out.c (ui_out_field_core_addr): Use the function
7409 longest_local_hex_string_custom'to format addresses > 32 bits
7410 wide.
7411
7412 * ui-out.c (ui_out_field_core_addr): Update comment.
7413
bedfa57b
AC
74142002-05-04 Andrew Cagney <[email protected]>
7415
7416 * stack.c (select_and_print_frame): Make static. Delete the
7417 parameter `level'.
7418 (func_command): Update call.
7419 (select_frame_command): Delete code computing the frame level.
7420 * frame.h (select_and_print_frame): Delete declaration.
7421
f621c63e
AC
74222002-05-04 Andrew Cagney <[email protected]>
7423
7424 * sparc-tdep.c (sparc_get_saved_register): Comment why
7425 get_prev_frame call is safe.
7426
0f7d239c
AC
74272002-05-04 Andrew Cagney <[email protected]>
7428
7429 * frame.h (select_frame): Delete level parameter.
7430 * stack.c (select_frame): Update. Use frame_relative_level to
7431 obtain the frame's level.
7432 (select_and_print_frame): Update call.
7433 (select_frame_command): Ditto.
7434 (up_silently_base): Ditto.
7435 (down_silently_base): Ditto.
7436 * ocd.c (ocd_start_remote): Ditto.
7437 * remote-rdp.c (remote_rdp_open): Ditto.
7438 * remote-mips.c (mips_initialize): Ditto.
7439 (common_open): Ditto.
7440 * remote-e7000.c (e7000_start_remote): Ditto.
7441 * m3-nat.c (select_thread): Ditto.
7442 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7443 (child_get_current_exception_event): Ditto.
7444 * varobj.c (varobj_create): Ditto.
7445 (varobj_update): Ditto.
7446 (c_value_of_root): Ditto.
7447 * tracepoint.c (finish_tfind_command): Ditto.
7448 * corelow.c (core_open): Ditto.
7449 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7450 * thread.c (info_threads_command): Ditto.
7451 (switch_to_thread): Ditto.
7452 * infrun.c (normal_stop): Ditto.
7453 (restore_selected_frame): Ditto.
7454 (restore_inferior_status): Ditto.
7455 * breakpoint.c (insert_breakpoints): Ditto.
7456 (watchpoint_check): Ditto.
7457 (bpstat_stop_status): Ditto.
7458 (do_enable_breakpoint): Ditto.
7459 * blockframe.c (flush_cached_frames): Ditto.
7460 (reinit_frame_cache): Ditto.
7461
71d6c7b1
AC
74622002-05-04 Andrew Cagney <[email protected]>
7463
7464 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7465 maintainer.
7466
cda6c68a
JB
74672002-05-04 Jim Blandy <[email protected]>
7468
7469 * gdbtypes.c (replace_type): Doc fix.
7470
5c1c87f0
AC
74712002-05-04 Andrew Cagney <[email protected]>
7472
7473 * valprint.c (strcat_longest): Delete commented out function.
7474 Update copyright.
7475
cd9bfe15
AC
74762002-05-04 Andrew Cagney <[email protected]>
7477
7478 * MAINTAINERS: Mark a29k as deleted.
7479 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7480 Move new configurations to the top.
7481 * configure.tgt: Remove a29k.
7482 * config/a29k/tm-vx29k.h: Delete.
7483 * config/a29k/vx29k.mt: Delete.
7484 * config/a29k/tm-a29k.h: Delete.
7485 * config/a29k/a29k-udi.mt: Delete.
7486 * config/a29k/a29k.mt: Delete.
7487 * a29k-tdep.c: Delete.
7488 * remote-udi.c: Delete.
7489 * remote-mm.c: Delete.
7490 * remote-eb.c: Delete.
7491 * remote-adapt.c: Delete.
7492 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
7493 * config/s390/s390x.mt: Ditto.
7494 * config/s390/s390.mt: Ditto.
7495 * config/sparc/sparclynx.mh: Ditto.
7496 * config/sparc/linux.mh: Ditto.
7497 * config/pa/hppaosf.mh: Ditto.
7498 * config/pa/hppabsd.mh: Ditto.
7499 * config/ns32k/nbsd.mt: Ditto.
7500 * config/mips/vr5000.mt: Ditto.
7501 * config/m68k/sun3os4.mh: Ditto.
7502 * config/m68k/nbsd.mt: Ditto.
7503 * config/m68k/m68klynx.mh: Ditto.
7504 * config/m32r/m32r.mt: Ditto.
7505 * config/i386/x86-64linux.mt: Ditto.
7506 * config/i386/nbsdelf.mt: Ditto.
7507 * config/i386/nbsd.mt: Ditto.
7508 * config/i386/i386lynx.mh: Ditto.
7509
bf0c5130
AC
75102002-05-04 Andrew Cagney <[email protected]>
7511
7512 * target.c (debug_print_register): New function. Handle oversize
7513 registers.
7514 (debug_to_fetch_registers): Call.
7515 (debug_to_store_registers): Call.
7516
2ae1c2d2
JB
75172002-05-03 Jim Blandy <[email protected]>
7518
13a393b0
JB
7519 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7520 (read_type): Doc fix.
7521 * gdbtypes.c (replace_type): Doc fix.
7522
2ae1c2d2
JB
7523 * stabsread.c (multiply_defined_struct): New complaint.
7524 (read_struct_type): If the type we were passed isn't empty, or
7525 incomplete, don't read the new struct type into it; complain,
7526 and return the original type unchanged. Take a new `type_code'
7527 argument, which is the type code for the new type.
7528 (read_type): Rather than storing the type's type code here, pass
7529 it as an argument to read_struct_type, and let that take care of
7530 storing it. That way, we don't overwrite the original type code,
7531 so read_struct_type can use it to decide whether we're overwriting
7532 something we shouldn't.
7533 (complain_about_struct_wipeout): New function.
7534
8de9bdc4
AC
75352002-05-03 Andrew Cagney <[email protected]>
7536
7537 * gdbarch.sh: Assert that gdbarch is non-NULL.
7538 * gdbarch.c: Regenerate.
7539
f773fdbb
JM
75402002-05-03 Jason Merrill <[email protected]>
7541
7542 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7543 and return NULL.
7544
0e04a514
ML
75452002-05-03 Michal Ludvig <[email protected]>
7546
7547 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7548 (x86_64_dwarf2gdb_regno_map_length),
7549 (x86_64_dwarf2_reg_to_regnum): Added.
7550 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7551 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7552 (_initialize_x86_64_tdep): Synced with the change above.
7553 (x86_64_skip_prologue): Reformulated message.
7554
065432a8
PM
75552002-05-03 Pierre Muller <[email protected]>
7556
7557 * f-exp.y: Also use new prev_lexptr variable
7558 to improve error reporting. Based on Michael Snyder
7559 2002-04-24 dated patch to c-exp.y.
7560 * jv-exp.y: Likewise.
7561 * m2-exp.y: Likewise.
7562
a3162708
EZ
75632002-05-02 Elena Zannoni <[email protected]>
7564
7565 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7566 we are dealing with vectors.
7567
03620c38
PM
75682002-05-02 Pierre Muller <[email protected]>
7569
7570 * config/m68k/tm-nbsd.h: Obvious fix,
7571 correct machine name.
7572
6604db2e
PM
75732002-05-02 Pierre Muller <[email protected]>
7574
7575 * p-typeprint.c (pascal_type_print_base): Add support
7576 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7577
0906b739
PM
75782002-05-02 Pierre Muller <[email protected]>
7579
7580 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7581 for fondamental pascal 'char' type.
7582
e2625b33
PM
75832002-05-02 Pierre Muller <[email protected]>
7584
7585 * p-lang.h (is_pascal_string_type): Declaration changed,
7586 new sixth argument of type char ** added.
361d1df0 7587 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
7588 changed. Args length_pos, length_size, string_pos, char_size
7589 can now be NULL. New argument arrayname set to the field
7590 name of the char array. Return value set to char array
7591 field index plus one.
361d1df0 7592 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
7593 is_pascal_string_type function.
7594
cf17c188
AC
75952002-05-02 Andrew Cagney <[email protected]>
7596
7597 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7598 <[email protected]> change.
7599 * gdbarch.c: Regenerate.
7600
52bca491
AC
76012002-05-02 Andrew Cagney <[email protected]>
7602
7603 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7604 before probing for a new one. Detect errorenous gdbarch_init
7605 functions.
7606 * gdbarch.c: Regenerate.
7607
d5e72505
AC
76082002-05-01 Andrew Cagney <[email protected]>
7609
7610 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7611 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7612 * config/v850/tm-v850.h: Ditto. Update copyright.
7613
af566d9f
AC
76142002-04-30 Andrew Cagney <[email protected]>
7615
7616 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7617 current_gdbarch.
7618
880d85fa
MS
76192002-04-30 Michael Snyder <[email protected]>
7620
94c30b78
MS
7621 * arm-tdep.c: Whitespace clean-ups.
7622 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7623 should have been removed as part of 4/24 change.
7624
6f5987a6
KB
76252002-04-30 Kevin Buettner <[email protected]>
7626
7627 * rs6000-tdep.c: Added comment describing how fpscr register
7628 numbers were chosen.
7629
1a113c93
MS
76302002-04-30 Michael Snyder <[email protected]>
7631
7632 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7633
9a6f53fe
EZ
76342002-04-29 Elena Zannoni <[email protected]>
7635
7636 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7637 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7638 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7639
11ed25ac
KB
76402002-04-29 Kevin Buettner <[email protected]>
7641
7642 From Louis Hamilton <[email protected]>:
7643 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7644 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7645 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7646 not bfd-private xcoff data, to determine wordsize.
7647 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7648
ae232405
AC
76492002-04-29 Andrew Cagney <[email protected]>
7650
7651 GDB 5.2 released from 5.2 branch.
7652
91fd20f7
ML
76532002-04-29 Michal Ludvig <[email protected]>
7654
7655 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7656 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7657 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7658
2dc5091b
EZ
76592002-04-29 Elena Zannoni <[email protected]>
7660
7661 * rs6000-tdep.c (rs6000_extract_return_value,
7662 rs6000_store_return_value): Handle returning vectors.
7663 (rs6000_gdbarch_init): Use
7664 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7665 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7666 New function.
7667 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7668 vectors.
7669 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7670 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7671
2b9848d8
PM
76722002-04-24 Pierre Muller <ics.u-strasbg.fr>
7673
7674 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7675 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7676 with fprintf_unfiltered (gdb_stderr,...).
7677
f8d17dc5
PM
76782002-04-24 Pierre Muller <ics.u-strasbg.fr>
7679
7680 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7681 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7682 Replace fprintf (stderr,...
7683 with fprintf_unfiltered (gdb_stderr,....
7684 * remote-es.c: Likewise.
7685 * remote-os9k.c: Likewise.
7686 * remote-st.c: Likewise.
7687
2f2f1ad1
AS
76882002-04-28 Andreas Schwab <[email protected]>
7689
7690 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7691 linux-proc.o and gcore.o.
7692
b6779aa2
AC
76932002-04-26 Michal Ludvig <[email protected]>
7694
7695 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7696 code without frame pointers.
7697
7e57f5f4
AC
76982002-04-26 Andrew Cagney <[email protected]>
7699
7700 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7701 ON_STACK is needed.
7702
2ceb85d0
BE
77032002-04-26 Ben Elliston <[email protected]>
7704
7705 * target.c (do_xfer_memory): Correct reference to the new option
7706 "trust-readonly-sections".
7707
f5f8a009
EZ
77082002-04-26 Elena Zannoni <[email protected]>
7709
7710 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7711 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7712 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7713 vectors.
7714 (read_array_type): Record the fact that this array type is really a
7715 vector (i.e. are passed in by value).
7716
5868c862
JT
77172002-04-26 Jason Thorpe <[email protected]>
7718
7719 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7720 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7721 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7722 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7723 * alpha-linux-tdep.c: Include frame.h.
7724 (alpha_linux_sigcontext_addr): New function.
7725 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7726 alpha_linux_sigcontext_addr.
7727 * alpha-osf1-tdep.c: Include gdbcore.h.
7728 (alpha_osf1_sigcontext_addr): New function.
7729 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7730 alpha_osf1_sigcontext_addr.
7731 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7732 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7733
bfb01f37
AC
77342002-04-26 Andrew Cagney <[email protected]>
7735
361d1df0 7736 * stack.c (selected_frame_level):
bfb01f37
AC
7737 (select_frame): Do not set selected_frame_level.
7738 * frame.h (selected_frame_level): Delete declaration.
7739
15813d3f
AC
77402002-04-26 Andrew Cagney <[email protected]>
7741
7742 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7743 convert_from_func_ptr-addr when AIX / PowerOpen.
7744
6096c27a
AC
77452002-04-25 Andrew Cagney <[email protected]>
7746
7747 * valops.c (hand_function_call): Call
7748 generic_save_call_dummy_addr.
7749 * frame.h (generic_save_call_dummy_addr): Declare.
7750 * blockframe.c (struct dummy_frame): Add fields call_lo and
7751 call_hi.
7752 (generic_find_dummy_frame): Check for PC in range call_lo to
7753 call_hi instead of entry_point_address.
7754 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7755 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7756 (generic_save_call_dummy_addr): New function.
7757
f510d44e
DM
77582002-04-24 David S. Miller <[email protected]>
7759
7760 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7761 sparc_skip_prologue.
7762 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7763 information to find prologue when possible.
7764 (sparc_prologue_frameless_p): Call examine_prologue directly.
7765 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7766 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7767 second argument.
7768 (SKIP_PROLOGUE): Likewise.
7769
15d72a92
JT
77702002-04-25 Jason Thorpe <[email protected]>
7771
7772 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7773 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7774 indicate that the condition it was testing is always true.
7775 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7776 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7777 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7778
accc6d1f
JT
77792002-04-25 Jason Thorpe <[email protected]>
7780
7781 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7782 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7783 tdep->jb_pc and tdep->jb_elt_size.
7784 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7785 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7786 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7787 * alpha-nat.c (get_longjmp_target): Remove.
7788 (JB_ELEMENT_SIZE): Ditto.
7789 (JB_PC): Ditto.
7790 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7791 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7792 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7793 to alpha_get_longjmp_target.
7794 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7795 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7796 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7797
1bfdc549
AC
77982002-04-25 Andrew Cagney <[email protected]>
7799
7800 * README: Update to GDB 5.2.
7801
1bd316f0
AC
78022002-04-25 Andrew Cagney <[email protected]>
7803
7804 * gdbarch.sh (LC_ALL): Set to `c'.
7805
2e5ff58c
TR
78062002-04-25 Theodore A. Roth <[email protected]>
7807
7808 * avr-tdep.c: Ran through gdb_indent.sh.
7809
e33ce519
TR
78102002-04-25 Theodore A. Roth <[email protected]>
7811
7812 * MAINTAINERS: Add myself as AVR maintainer.
7813 * NEWS: Note new target avr.
7814
8818c391
TR
78152002-04-25 Theodore A. Roth <[email protected]>
7816
7817 * Makefile.in: Add support for AVR target.
7818 * configure.tgt: Add support for AVR target.
7819 * avr-tdep.c: New file
7820 * config/avr/avr.mt: New file.
7821
79509c2d
TR
78222002-04-25 Theodore A. Roth <[email protected]>
7823
7824 * MAINTAINERS: Add myself to write-after-approval.
7825
dac8068e
PM
78262002-04-24 Pierre Muller <ics.u-strasbg.fr>
7827
7828 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7829 with fprintf_unfiltered (gdb_stderr,....
7830
25bf3106
PM
78312002-04-25 Pierre Muller <[email protected]>
7832
7833 Fix PR gdb/508.
7834 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7835
24467a86
PM
78362002-04-25 Pierre Muller <[email protected]>
7837
7838 * p-exp.y: Also use new prev_lexptr variable
7839 to improve error reporting. Based on Michael Snyder
7840 2002-04-24 dated patch to c-exp.y.
7841
95b80706
JT
78422002-04-25 Jason Thorpe <[email protected]>
7843
7844 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7845 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7846 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7847 to 0.
7848 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7849 and struct value.
7850 (FUNCTION_START_OFFSET): Remove.
7851 (BREAKPOINT): Ditto.
7852
e90cc612
JT
78532002-04-25 Jason Thorpe <[email protected]>
7854
7855 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7856 * NEWS: Ditto.
7857
6c72f9f9
JT
78582002-04-24 Jason Thorpe <[email protected]>
7859
7860 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7861 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7862 alpha_linux_pc_in_sigtramp.
7863 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7864 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7865 alpha_osf1_pc_in_sigtramp.
7866 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7867 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7868 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7869 alphafbsd_pc_in_sigtramp.
7870 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7871 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7872 alphanbsd_pc_in_sigtramp.
7873 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7874 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7875
5e4f3379
JT
78762002-04-24 Jason Thorpe <[email protected]>
7877
7878 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7879
da8ca43d
JT
78802002-04-24 Jason Thorpe <[email protected]>
7881
7882 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7883 alphanbsd-tdep.c.
7884 (alphanbsd-nat.o): New dependency list.
7885 (alphanbsd-tdep.o): Ditto.
7886 * NEWS: Note new native NetBSD/alpha configuration.
7887 * alphanbsd-nat.c: New file.
7888 * alphanbsd-tdep.c: Ditto.
7889 * configure.host (alpha*-*-netbsd*): New host.
7890 * configure.tgt (alpha*-*-netbsd*): New target.
7891 * config/alpha/nbsd.mh: New file.
7892 * config/alpha/nbsd.mt: Ditto.
7893 * config/alpha/nm-nbsd.h: Ditto.
7894 * config/alpha/tm-nbsd.h: Ditto.
7895
36a6271d
JT
78962002-04-24 Jason Thorpe <[email protected]>
7897
7898 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7899 (alpha-osf1-tdep.o): New dependency list.
7900 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7901 and skip_sigtramp_frame members.
7902 * alpha-linux-tdep.c: Include gdbcore.h.
7903 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7904 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7905 * alpha-osf1-tdep.c: New file.
7906 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7907 alpha-osf1-dep.c.
7908 (alpha_frame_past_sigtramp_frame): New function.
7909 (alpha_dynamic_sigtramp_offset): Ditto.
7910 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7911 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7912 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7913 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7914 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7915 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7916 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7917 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7918 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7919 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7920 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7921 to find_solib_trampoline_target.
7922 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7923 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7924 (SKIP_TRAMPOLINE_CODE): Remove.
7925 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7926 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7927 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7928 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7929 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7930 (PROC_SIGTRAMP_MAGIC): Ditto.
7931 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7932 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7933 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7934 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7935 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7936
2f4bc57b
JT
79372002-04-24 Jason Thorpe <[email protected]>
7938
7939 * NEWS: Note that Alpha targets are now multi-arch.
7940
665132f9
MS
79412002-04-24 Michael Snyder <[email protected]>
7942
7943 * parser-defs.h (prev_lexptr): New external variable.
7944 * parse.c (parse_exp_1): Set prev_lexptr to null before
7945 calling the language-specific parser.
7946 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7947 (yyerror): Use prev_lexptr in error reporting.
7948
32872fa7
DJ
79492002-04-24 Daniel Jacobowitz <[email protected]>
7950
7951 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7952 * gregset.h: If FILL_FPXREGSET is defined, provide
7953 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7954 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7955 is defined, call fill_fpxregset.
7956
57e76fac
MS
79572002-04-24 Roland McGrath <[email protected]>
7958
7959 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7960 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7961 (supply_gregset, supply_fpregset): New functions.
7962
7963 * gnu-nat.c (gnu_find_memory_regions): New function.
7964 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7965 (gnu_xfer_memory): Add a cast.
7966
f43845b3
MS
79672002-04-24 Michael Snyder <[email protected]>
7968
361d1df0 7969 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7970 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7971 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7972 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7973 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7974 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7975
a0abec03
AC
7976Wed Apr 24 14:22:21 2002 Andrew Cagney <[email protected]>
7977
7978 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7979 NUM_PSEUDO_REGS can be used.
7980
d7bd68ca
AC
79812002-04-24 Andrew Cagney <[email protected]>
7982
7983 * arch-utils.h: Update copyright.
7984
7985 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7986 * gdbarch.h, gdbarch.c: Re-generate.
7987
7988 * inferior.h (IN_SIGTRAMP): Delete definition.
7989 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7990 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7991
7992 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7993 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7994 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7995 (find_proc_framesize): Ditto.
7996 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7997 (alpha_init_extra_frame_info): Ditto.
7998 * infrun.c (handle_inferior_event): Ditto.
7999 (handle_inferior_event): Ditto.
8000 (check_sigtramp2): Ditto.
8001 * blockframe.c (create_new_frame): Ditto.
8002 (get_prev_frame): Ditto.
8003 * ppc-linux-tdep.c: Update comments.
8004 * i386-linux-tdep.c: Update comments.
8005 * breakpoint.c (bpstat_what): Update comment.
8006
4867e41e
DM
80072002-04-24 David S. Miller <[email protected]>
8008
21d83aa5
DM
8009 * i960-tdep.c (register_in_window_p): New function.
8010 (i960_find_saved_register): Use it instead of
8011 REGISTER_IN_WINDOW_P.
8012 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8013
4867e41e
DM
8014 * symtab.h (find_stab_function_addr): Kill extern.
8015 * minsyms.c (find_stab_function_addr): Remove from here...
8016 * dbxread.c: ... to here, and mark it static.
8017
69cdf6a2
DM
80182002-04-20 David S. Miller <[email protected]>
8019
8020 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8021 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8022
5a595886
DM
80232002-04-21 David S. Miller <[email protected]>
8024
8025 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8026 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8027 (vx_write_register): Likewise.
8028
1da1a192
JB
80292002-04-23 J. Brobecker <[email protected]>
8030
8031 * source.c (is_regular_file): New function.
8032 (openp): Check wether file to open is a regular file
8033 to avoid opening directories.
8034
baa6f10b
JT
80352002-04-22 Jason Thorpe <[email protected]>
8036
8037 * findvar.c (extract_signed_integer): Cast printf argument
8038 to suppress format warning.
8039 (extract_unsigned_integer): Likewise.
8040 * infcmd.c (registers_info): Likewise.
8041 * top.c (get_prompt_1): Likewise.
8042 * valops.c (value_assign): Likewise.
8043 * valprint.c (print_decimal): Likewise.
8044
b2c4da81
L
80452002-04-22 H.J. Lu ([email protected])
8046
8047 * c-exp.y (typebase): Support
361d1df0 8048
b2c4da81
L
8049 [long|long long|short] [signed|unsigned] [int|]
8050
8051 and
8052
8053 signed [long|long long|short] int
8054
f267bd6a
JT
80552002-04-22 Jason Thorpe <[email protected]>
8056
8057 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8058 and vax-tdep.h.
8059 * vax-tdep.h: New file.
8060 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8061 Make several routines static.
8062 (vax_get_saved_register): New function.
8063 (vax_gdbarch_init): New function.
8064 (_initialize_vax_tdep): Register vax_gdbarch_init.
8065 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8066 Remove macros now under the control of gdbarch.
8067
da3c6d4a
MS
80682002-04-22 Michael Snyder <[email protected]>
8069
11d3b27d
MS
8070 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8071 Some whitespace and coding standards tweaks.
da3c6d4a 8072
a33f7558
JT
80732002-04-22 Jason Thorpe <[email protected]>
8074
8075 * vax-tdep.c: Include regcache.h.
8076 (vax_call_dummy_words): New.
8077 (sizeof_vax_call_dummy_words): New.
8078 (vax_fix_call_dummy): New function.
8079 (vax_saved_pc_after_call): Ditto.
8080 * config/vax/tm-vax.h: Don't include regcache.h.
8081 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8082 (CALL_DUMMY): Remove.
8083 (CALL_DUMMY_WORDS): Define.
8084 (SIZEOF_CALL_DUMMY_WORDS): Define.
8085 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8086
47a73475
MS
80872002-04-18 Michael Snyder <[email protected]>
8088
8089 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8090
52efde73
JT
80912002-04-22 Jason Thorpe <[email protected]>
8092
8093 * vax-tdep.c (vax_frame_chain): New function.
8094 (vax_push_dummy_frame): Ditto.
8095 (vax_pop_frame): Ditto.
8096 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8097 (FRAMELESS_FUNCTION_INVOCATION): Use
8098 generic_frameless_function_invocation_not.
8099 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8100 (POP_FRAME): Use vax_pop_frame.
8101
ea74468c
JT
81022002-04-22 Jason Thorpe <[email protected]>
8103
8104 * vax-tdep.c (vax_store_struct_return): New function.
8105 (vax_extract_return_value): Ditto.
8106 (vax_store_return_value): Ditto.
8107 (vax_extract_struct_value_address): Ditto.
8108 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8109 vax_store_struct_return.
8110 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8111 (STORE_RETURN_VALUE): Use vax_store_return_value.
8112 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8113
5516aa92
JT
81142002-04-22 Jason Thorpe <[email protected]>
8115
8116 * vax-tdep.c (vax_frame_saved_pc): New function.
8117 (vax_frame_args_address_correct): Ditto.
8118 (vax_frame_args_address): Ditto.
8119 (vax_frame_locals_address): Ditto.
8120 (vax_frame_num_args): Move code to be in proximity to
8121 other frame-related functions.
8122 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8123 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8124 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8125 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8126 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8127
36af0b35
L
81282002-04-22 H.J. Lu ([email protected])
8129
8130 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8131 includedir.
8132
ab62c900
JT
81332002-04-22 Jason Thorpe <[email protected]>
8134
8135 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8136 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8137 (FRAME_INIT_SAVED_REGS): New macro.
8138
7232b100
JT
81392002-04-22 Jason Thorpe <[email protected]>
8140
8141 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8142
b70d2aee
JT
81432002-04-22 Jason Thorpe <[email protected]>
8144
8145 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8146 where needed.
8147 (fetch_osf_core_registers): Likewise.
8148 (supply_gregset): Likewise.
8149
a0e8a2d1 81502002-04-22 J. Brobecker <[email protected]>
361d1df0 8151
a0e8a2d1
JB
8152 * symfile.h (get_section_index): Define.
8153 * symfile.c (get_section_index): New function.
8154 * mdebugread.c (SC_IS_SBSS): New macro.
8155 (SC_IS_BSS): Return true for the scBss storage class only, as
8156 the scSBss storage class refers to the .sbss section.
8157 (parse_partial_symbols): Discard the symbols which associated
8158 section does not exist.
8159 Make sure to use the .sbss section index for symbols which
8160 storage class is scBss, rather than using the .bss section index.
8161
51eb8b08
JT
81622002-04-22 Jason Thorpe <[email protected]>
8163
8164 * vax-tdep.c: Update copyright years.
8165 (vax_register_name): New function.
8166 (vax_register_byte): Ditto.
8167 (vax_register_raw_size): Ditto.
8168 (vax_register_virtual_size): Ditto.
8169 (vax_register_virtual_type): Ditto.
8170 * config/vax/tm-vax.h: Update copyright years.
8171 (REGISTER_NAMES): Remove.
8172 (REGISTER_NAME): Define.
8173 (REGISTER_BYTE): Use vax_register_byte.
8174 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8175 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8176 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8177
6cc1c0a8
AC
81782002-04-21 Andrew Cagney <[email protected]>
8179
8180 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8181 declaration
8182 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8183
9319a2fe
DM
81842002-04-21 David S. Miller <[email protected]>
8185
8186 * arch-utils.c (generic_prologue_frameless_p): Kill
8187 SKIP_PROLOGUE_FRAMELESS_P code.
8188 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8189 references.
8190 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8191 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8192 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8193 references.
8194 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8195 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8196 (sparc_gdbarch_init): Pass it to
8197 set_gdbarch_prologue_frameless_p.
a0e8a2d1 8198
e9ed6d01
JT
81992002-04-21 Jason Thorpe <[email protected]>
8200
8201 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8202 (alphabsd-nat.o): New dependency list.
8203
36012033
JT
82042002-04-21 Jason Thorpe <[email protected]>
8205
8206 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8207 alphafbsd-tdep.c.
8208 (alpha-linux-tdep.o): New dependency list.
8209 (alphafbsd-tdep.o): Likewise.
8210
3379287a
JT
82112002-04-21 Jason Thorpe <[email protected]>
8212
8213 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8214 to here...
8215 * alpha-tdep.c: ...from here.
8216 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8217
4bcbd6cb
JT
82182002-04-21 Jason Thorpe <[email protected]>
8219
8220 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8221 prototype from here...
8222 * alpha-tdep.h: ...to here.
8223
b31da25e
AC
82242002-04-21 Andrew Cagney <[email protected]>
8225
8226 * frame.h (selected_frame_level): Document as deprecated.
8227 (frame_relative_level): Declare.
8228 * stack.c (frame_relative_level): New function.
8229 (selected_frame_level): Document as deprecated.
8230 (select_frame): Do not set the selected_frame_level.
8231
8232 * stack.c (frame_info, record_selected_frame): Update.
8233 (frame_command, current_frame_command): Update.
8234 (up_silently_base, up_command, down_silently_base): Update.
8235 (down_command): Update.
8236 * inflow.c (kill_command): Update.
8237 * tracepoint.c (finish_tfind_command): Update.
8238 * corelow.c (core_open): Update.
8239 * thread.c (info_threads_command): Update.
8240 (do_captured_thread_select): Update.
8241 * infcmd.c (finish_command): Update.
8242 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8243
9c1d6fe5
JT
82442002-04-21 Jason Thorpe <[email protected]>
8245
8246 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8247
ab89facf
AC
82482002-04-21 Andrew Cagney <[email protected]>
8249
8250 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8251 type const.
8252
82a4efa1
JT
82532002-04-21 Jason Thorpe <[email protected]>
8254
8255 * alphafbsd-tdep.c: Update copyright years. Include
8256 alpha-tdep.h.
8257 (alphafbsd_use_struct_convention): Make static.
8258 (alphafbsd_init_abi): New function.
8259 (_initialize_alphafbsd_tdep): New function.
8260 * config/alpha/tm-fbsd.h: Update copyright years.
8261 (USE_STRUCT_CONVENTION): Remove.
8262
44dffaac
JT
82632002-04-21 Jason Thorpe <[email protected]>
8264
8265 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8266 an Alpha ABI variant.
8267 (alpha_abi_handler_list): Declare.
8268 (alpha_gdbarch_register_os_abi): New function.
8269 (alpha_gdbarch_init): Give registered ABI variant handlers a
8270 chance to tweak the gdbarch once we have set up defaults.
8271 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8272
65585be4
JT
82732002-04-21 Jason Thorpe <[email protected]>
8274
8275 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8276 to standard_coerce_float_to_double.
8277 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8278
d9b023cc
JT
82792002-04-21 Jason Thorpe <[email protected]>
8280
8281 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8282 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8283 from gdbarch_tdep rather than a constant.
8284 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8285 the default text address for all Alpha Unix ABIs.
8286 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8287 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8288
dc129d82
JT
82892002-04-21 Jason Thorpe <[email protected]>
8290
8291 * alpha-tdep.h: New file. Includes several Alpha target constants
8292 taken from...
8293 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8294 let gdbarch deal with.
8295 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8296 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8297 to dependency list.
8298 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8299 Alpha target register names.
8300 * alphabsd-nat.c: Likewise.
8301 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8302 Alpha target register names. Make serveral routines static.
8303 (alpha_get_saved_register): New function.
8304 (alpha_abi_names): New.
8305 (process_note_abi_tag_sections): New function.
8306 (get_elfosabi): New function.
8307 (alpha_gdbarch_init): New function.
8308 (alpha_dump_tdep): New function.
8309 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8310
d49d1e0a
AC
83112002-04-21 Andrew Cagney <[email protected]>
8312
8313 * frame.c (find_saved_register): Delete #ifdef
8314 HAVE_REGISTER_WINDOWS code.
8315 * config/sparc/tm-sparc.h: Update comments.
8316 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8317
92e8c9ed
AC
83182002-04-21 Andrew Cagney <[email protected]>
8319
8320 * i960-tdep.c (i960_find_saved_register): New function.
8321 (i960_get_saved_register): New function.
8322 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8323 (i960_get_saved_register): Declare.
8324 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8325
e1925118
DM
83262002-04-20 David S. Miller <[email protected]>
8327
8328 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8329
29673b29
AC
83302002-04-20 Andrew Cagney <[email protected]>
8331
8332 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8333 instead of NUM_PSEUDO_REGS.
8334
6c86dcd5
DM
83352002-04-20 David S. Miller <[email protected]>
8336
8337 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8338 GDB_MULTI_ARCH_PARTIAL
8339 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8340 define, let tm-sp64.h do it.
8341
aa40ec90
JT
83422002-04-20 Jason Thorpe <[email protected]>
8343
8344 * frame.c (find_saved_register): Avoid a NULL pointer
8345 dereference and actually walk the frame list.
8346
0f79675b
AC
83472002-04-20 Andrew Cagney <[email protected]>
8348
8349 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8350 sorted in most most-recent-used order. Document.
8351 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8352
f91305dd 83532002-04-19 Andrew Cagney <[email protected]>
bf75c8c1
AC
8354
8355 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8356 instead of ->prev.
8357 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8358 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8359 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8360 instead of ->prev.
8361
73d322b1
EZ
83622002-04-19 Elena Zannoni <[email protected]>
8363
8364 Fix PR gdb/471.
8365 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8366 (build_builtin_type_vec128): Ditto.
8367 (append_composite_type_field): Fix calculation of type length in
8368 union case.
8369
ccd9a834
EZ
83702002-04-19 Eli Zaretskii <[email protected]>
8371
8372 * config/djgpp/README: Update.
8373
8374 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8375 compiler warnings.
8376
a57f9e49
JT
83772002-04-19 Jason Thorpe <[email protected]>
8378
8379 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8380 (alpha_setup_arbitrary_frame): ...to this.
8381 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8382 for alpha_setup_arbitrary_frame.
8383
f4f9705a
AC
83842002-04-18 Andrew Cagney <[email protected]>
8385
8386 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8387 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8388
f4f9705a
AC
8389 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8390 * target.h (memory_breakpoint_from_pc): Update declaration.
8391 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8392
8393 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8394 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8395 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8396 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8397 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8398 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8399 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8400 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8401 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8402 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8403 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8404 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8405
8406 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8407 const pointer.
8408 * monitor.c (monitor_insert_breakpoint): Ditto.
8409 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8410
8411 * config/mcore/tm-mcore.h: Update copyright.
8412 * mem-break.c: Ditto.
8413 * xstormy16-tdep.c: Ditto.
8414
29f319b8
PM
84152002-04-18 Pierre Muller <[email protected]>
8416
8417 * p-exp.y: Add precedence rule for '^' token.
8418 This removes the shift/reduce conflicts.
8419 Remove the comment concerning these shift/reduce conflicts.
8420
ebeac11a
EZ
84212002-04-18 Elena Zannoni <[email protected]>
8422
8423 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8424 (registers_powerpc_nofp): New register set for processors
8425 without floating point unit.
8426
27c31547
DM
84272002-04-18 David S. Miller <[email protected]>
8428
8429 * MAINTAINERS: Add myself to write-after-approval.
8430
47a73475
MS
84312002-04-17 Michael Snyder <[email protected]>
8432
8433 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8434
953836b2
AC
84352002-04-17 Andrew Cagney <[email protected]>
8436
8437 * rs6000-tdep.c (frame_initial_stack_address): Use
8438 frame_register_read to read the alloca_reg.
8439
8b0d4340
AC
84402002-04-17 Andrew Cagney <[email protected]>
8441
8442 * frame.c (find_saved_register): Find saved registers in the next
8443 not prev frame.
8444 Fix PR gdb/365.
8445
d8864532
AC
84462002-04-17 Andrew Cagney <[email protected]>
8447
8448 * gdbarch.sh (LANG): Set to ``c''.
8449
36cc83a3 84502002-04-15 Andrew Cagney <[email protected]>
361d1df0 8451
36cc83a3 8452 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 8453
2f4150cc 84542002-04-15 Andrew Cagney <[email protected]>
2c7ef074
AC
8455
8456 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8457 Update copyright.
8458
628703c6 8459 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 8460 Also fix PR gdb/391.
361d1df0 8461
56157b4a
AC
84622002-04-14 Andrew Cagney <[email protected]>
8463
8464 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8465 * aclocal.m4, configure: Re-generate.
8466 Fix PR gdb/391.
361d1df0 8467
6d1e3329
EZ
84682002-04-14 Elena Zannoni <[email protected]>
8469
8470 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8471 instead of tm_print_insn.
8472
cb06fa07
EZ
84732002-04-14 Elena Zannoni <[email protected]>
8474
8475 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8476
f208ba17
AC
84772002-04-14 Andrew Cagney <[email protected]>
8478
8479 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8480 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8481 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8482
20f01a46
DH
84832002-04-12 Don Howard <[email protected]>
8484
8485 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8486 max_user_call_depth.
8487 (init_cmd_lists): Initialize the new value;
8488 * cli/cli-script.c (execute_user_command): Limit the call depth of
8489 user defined commands. This avoids a core-dump when user commands
8490 are infinitly recursive.
8491
a88376a3
KB
84922002-04-12 Kevin Buettner <[email protected]>
8493
8494 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8495 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8496 from tdep struct instead of DEFAULT_LR_SAVE.
8497 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8498 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8499 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8500
f2172603
MS
85012002-04-12 Michael Snyder <[email protected]>
8502
694f61fb 8503 * Remote.c: Spelling fix.
20fe79c8
MS
8504 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8505 If no symbol found for "sbrk", try "_sbrk".
8506 (make_output_phdrs): Use bfd_section_name.
8507 (gcore_copy_callback): Use bfd_section_name.
62995fc4 8508 * eval.c: Indentation fix-ups.
169a7369
MS
8509 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8510 in case it gets applied to an address that is already
8511 in the instruction space.
de74f71f
MS
8512 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8513 * symfile.c: Fix indentation, long lines.
f2172603
MS
8514 * source.c: White space fix-up.
8515
cda5a58a
AC
85162002-04-12 Andrew Cagney <[email protected]>
8517
8518 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8519 * frame.c (frame_register_read): New function. Return non-zero on
8520 success.
8521 (read_relative_register_raw_bytes_for_frame): Delete.
8522 (read_relative_register_raw_bytes): Delete.
8523 * frame.h (frame_register_read): Declare.
8524 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8525 * sh-tdep.c: Ditto.
8526 * infcmd.c (do_registers_info): Ditto.
8527 * hppa-tdep.c: Ditto.
8528 * rs6000-tdep.c: Ditto.
8529 * h8500-tdep.c: Ditto.
8530 * mips-tdep.c: Ditto.
8531 * h8300-tdep.c: Ditto.
8532 * z8k-tdep.c: Ditto.
8533
2ea5f656
KB
85342002-04-12 Kevin Buettner <[email protected]>
8535
8536 From Jimi X <[email protected]>:
8537 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8538 64-bit SysV ABI.
8539
27b15785
KB
85402002-04-12 Kevin Buettner <[email protected]>
8541
8542 From Jimi X <[email protected]>:
8543 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8544 bfd info.
8545
5d57ee30
KB
85462002-04-12 Kevin Buettner <[email protected]>
8547
8548 From Jimi X <[email protected]>:
8549 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8550 register sets for these processor variants.
8551
bc1e36ca
DJ
85522002-04-11 Daniel Jacobowitz <[email protected]>
8553
bc1e36ca
DJ
8554 * regformats/reg-ppc.dat: Support FPSCR.
8555
e3f36dbd
KB
85562002-04-11 Kevin Buettner <[email protected]>
8557
8558 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8559 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8560 Add fpscr as an invalid/unfetchable register.
8561 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8562 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8563 (fill_fpregset): Add support for register fpscr.
8564 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8565 (fill_gregset): Account for the fact that register ``mq'' might
8566 not exist.
8567 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8568 (registers_power): Add fpscr to register set at slot 71.
8569 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8570 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8571
943c9c25
MS
85722002-04-11 Michael Snyder <[email protected]>
8573
8574 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8575 * configure: Regenerate.
8576 * config.in: Regenerate.
8577 * acconfig.h: Add define for _SYSCALL32.
8578 * core-sol2.c: Remove #define _SYSCALL32.
8579 * solib-legacy.c: Remove #define _SYSCALL32.
8580
d8c0a2e7
AC
85812002-04-10 Andrew Cagney <[email protected]>
8582
8583 * stack.c (select_frame): Cleanup internal error message, do not
8584 use %p.
8585
7cc19214
AC
85862002-04-10 Andrew Cagney <[email protected]>
8587
8588 * stack.c (select_frame): Check that selected_frame and the
8589 specified level are as expected.
8590 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8591 Update copyright.
8592 * frame.h (struct frame_info): Add field `level'. Update
8593 copyright.
8594 Work-in-progress PR gdb/464.
8595
67a2b77e
AC
85962002-04-10 Andrew Cagney <[email protected]>
8597
8598 * maint.c (maint_print_section_info): Rename print_section_info.
8599 (print_bfd_section_info, print_objfile_section_info): Update.
8600 * inferior.h (struct gdbarch): Add opaque declaration.
8601 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8602 * gdbarch.h: Regenerate.
8603
8cfda98c
ML
86042002-04-10 Michal Ludvig <[email protected]>
8605
8606 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8607 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8608 (kernel_u_size): Added.
8609 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8610 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8611
ca439ad2 86122002-04-04 Jim Ingham <[email protected]>
361d1df0 8613
ca439ad2
JI
8614 * valarith.c (find_size_for_pointer_math): New function, either returns
8615 the size for a pointer's target, returns 1 for void *, or errors for
8616 incomplete types.
8617 (value_add, value_sub): use find_size_for_pointer_math.
8618
2f2893d9
DJ
86192002-04-09 Daniel Jacobowitz <[email protected]>
8620
8621 * linux-low.c (linux_look_up_symbols): New hook.
8622 (linux_target_ops): Add linux_look_up_symbols.
8623 * remote-utils.c (decode_address): New function.
8624 (look_up_one_symbol): New function.
8625 * server.c (handle_query): Call target look_up_symbols hook.
8626 * server.h (look_up_one_symbol): Add prototype.
8627 * target.h (struct target_ops): Add look_up_symbols hook.
8628
96cb11df
AC
86292002-04-09 Andrew Cagney <[email protected]>
8630
8631 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8632 override FP_REGNUM with frame->fp. Update copyright.
8633 * parse.c (num_std_regs, std_regs): Delete.
8634 (target_map_name_to_register): Do not search std_regs. Update
8635 function description.
8636 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8637 declarations. Update copyright.
8638 Fix PR gdb/251.
361d1df0 8639
97658e92
DJ
86402002-04-09 Daniel Jacobowitz <[email protected]>
8641
8642 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8643 after the last symbol in a block.
8644
6044e3eb
PM
86452002-04-09 Pierre Muller <[email protected]>
8646
8647 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8648 is non zero as a found symbol.
8649
0406ec40
AC
86502002-04-08 Andrew Cagney <[email protected]>
8651
8652 * findvar.c: Include "builtin-regs.h".
8653 (value_of_register): Call value_of_builtin_reg when applicable.
8654 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8655 (target_map_name_to_register): Call
8656 builtin_reg_map_name_to_regnum.
8657 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8658 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8659 (builtin_regs_h): Define.
8660 (builtin-regs.o): New target.
8661 (findvar.o): Add $(builtin_regs_h).
8662 * builtin-regs.c, builtin-regs.h: New files.
8663 * std-regs.c: New file.
8664 Partial fix for PR gdb/251.
8665
56a6dfb9
KB
86662002-04-08 Kevin Buettner <[email protected]>
8667
8668 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8669 it's no longer required.
8670
3a808432
AC
86712002-04-08 Andrew Cagney <[email protected]>
8672
8673 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8674
7c40d541
KB
86752002-04-08 Kevin Buettner <[email protected]>
8676
8677 From Jimi X <[email protected]>:
8678 * rs6000-tdep.c (rs6000_software_single_step): Use
8679 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8680 and size. Use target_insert_breakpoint() and
8681 target_remove_breakpoint() to insert and remove breakpoints
8682 instead of explicit memory reads and writes.
8683
cc9836a8
KB
86842002-04-08 Kevin Buettner <[email protected]>
8685
8686 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8687 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8688 ELF_OBJECT_FORMAT ifdef.
8689
7495d1dc
KB
86902002-04-08 Kevin Buettner <[email protected]>
8691
8692 From Jimi X <[email protected]>:
8693 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8694
4288e836
KB
86952002-04-08 Kevin Buettner <[email protected]>
8696
8697 From Jimi X <[email protected]>:
8698 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8699 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8700
a4e4e501
MK
87012002-04-07 Mark Kettenis <[email protected]>
8702
8703 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8704 s/asprintf/xasprintf/.
8705 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8706
006defba
AC
87072002-04-07 Andrew Cagney <[email protected]>
8708
8709 I believe Jeff Law denies responsability for this one:
8710 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8711 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8712 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8713 Work-around for PR gdb/366.
8714
7aa83cac
EZ
87152002-04-07 Elena Zannoni <[email protected]>
8716
8717 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8718 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8719 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8720
cf1fcca1
EZ
87212002-04-07 Elena Zannoni <[email protected]>
8722
8723 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8724 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8725 information.
8726
3f289e6f
AC
87272002-04-07 Andrew Cagney <[email protected]>
8728
8729 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8730 maintainer.
8731
129188f6
AC
87322002-04-07 Andrew Cagney <[email protected]>
8733
8734 * README (Reporting Bugs in GDB): Document the bug web page as the
8735 prefered way of submitting bugs.
8736 Fix PR gdb/402.
8737
1200cd6e
AC
87382002-04-06 Andrew Cagney <[email protected]>
8739
8740 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8741 -1. Update comment.
8742 * gdbarch.h, gdbarch.c: Re-generate.
8743
2853c33c
AS
87442002-04-07 Andreas Schwab <[email protected]>
8745
8746 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8747 buffer to regcache_collect.
8748
c2169756
AC
87492002-04-06 Andrew Cagney <[email protected]>
8750
8751 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8752 * gdbarch.c, gdbarch.h: Re-generate.
8753
25f1b008
AC
87542002-04-06 Andrew Cagney <[email protected]>
8755
8756 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8757 declaration. Fix -Werror.
8758
59263426
DJ
87592002-04-05 Daniel Jacobowitz <[email protected]>
8760
8761 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8762 * gdbarch.c: Regenerate.
8763
f5db4da3
MS
87642002-04-05 Michael Snyder <[email protected]>
8765
80f8a6eb
MS
8766 * breakpoint.c (clear_command): Rewrite middle section to
8767 combine two loops with identical control conditions.
8768 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8769 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8770
ad3dcc5c
L
87712002-04-05 H.J. Lu ([email protected])
8772
8773 * solib-svr4.c (bkpt_names): Add "__start".
8774
f32e7a74
AC
87752002-04-04 Andrew Cagney <[email protected]>
8776
8777 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8778 as test for 64 bit target.
8779
8227c0ff
AC
87802002-04-05 Andrew Cagney <[email protected]>
8781
8782 * h8500-tdep.c (h8500_write_fp): Delete function.
8783 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8784 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8785 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8786 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8787 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8788 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8789 (s390_write_fp):
8790 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8791 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8792 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8793 (d10v_write_fp): Delete function.
8794 * inferior.h (write_fp, generic_target_write_fp): Delete
8795 declarations.
8796 * regcache.c (generic_target_write_fp): Delete function.
8797 (write_fp): Delete function.
8798 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8799 * gdbarch.h, gdbarch.c: Regenerate.
8800 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8801 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8802 (sparc64_write_fp): Delete declaration.
8803 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8804 (h8500_write_fp): Delete declaration.
8805
2757dd86
AC
88062002-04-04 Andrew Cagney <[email protected]>
8807
8808 * sparc-tdep.c (sparc64_write_fp): Delete.
8809 (sparc_push_dummy_frame): Replace write_fp call with code to store
8810 the FP directly.
8811 (sparc_gdbarch_init): Do not initialize write_fp.
8812
c69255e1
KB
88132002-04-05 Kevin Buettner <[email protected]>
8814
8815 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8816 clause.
8817
ae767bfb
JB
88182002-03-29 Jim Blandy <[email protected]>
8819
8820 * stack.c (get_selected_block): Add new argument `addr_in_block',
8821 used to return the exact code address we used to select the block,
8822 not just the block.
8823 * blockframe.c (get_frame_block, get_current_block): Same.
8824 * frame.h (get_frame_block, get_current_block,
8825 get_selected_block): Update declarations.
8826 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8827 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8828
84d2ac95
MS
88292002-04-05 Michael Snyder <[email protected]>
8830
8831 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8832 warning message.
8833
596aa3bf
JB
88342002-04-05 J. Brobecker <[email protected]>
8835
8836 * utils.c (xfullpath): New function.
8837 * defs.h (xfullpath): Add declaration.
8838 * source.c (openp): Use xfullpath in place of gdb_realpath to
8839 avoid resolving the basename part of filenames when the
8840 associated file is a symbolic link. This fixes a potential
8841 inconsistency between the filenames known to GDB and the
8842 filenames it prints in the annotations.
8843 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8844 to be able to match a filename with either the real filename, or
8845 the name of any symbolic link to this file.
8846 (lookup_partial_symtab): Ditto.
8847
c02f5703
MS
88482002-04-04 Michael Snyder <[email protected]>
8849
8850 * breakpoint.c: Add support for hardware breakpoints in overlays.
8851 (overlay_events_enabled): New state variable.
8852 (insert_breakpoints): Use overlay_events_enabled to decide
8853 whether to attempt to set a breakpoint at the overlay load addr.
8854 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8855 (remove_breakpoint): Use overlay_events_enabled to decide
8856 whether breakpoints need to be removed from overlay load addr.
8857 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8858 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8859 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8860 disable_overlay_breakpoints): Update overlay_events_enabled.
8861
5fb290d7
DJ
88622002-04-04 Daniel Jacobowitz <[email protected]>
8863
8864 * dwarf2read.c (struct function_range): New.
8865 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8866 (check_cu_functions): New.
8867 (read_file_scope): Initialize global function lists.
8868 Call dwarf_decode_line after processing children.
8869 (read_func_scope): Add to global function list.
8870 (dwarf_decode_lines): Call check_cu_functions everywhere
8871 record_line is called. Call record_line with a linenumber
8872 of 0 to mark sequence ends.
8873
7b3fabf0
ML
88742002-04-04 Michal Ludvig <[email protected]>
8875
361d1df0 8876 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8877 change sync with glibc.
8878
bce58c09
JB
88792002-04-03 Jim Blandy <[email protected]>
8880
8881 * configure.in: Call AC_C_INLINE.
8882 * configure: Regenerated.
361d1df0 8883
2fccf04a
DJ
88842002-04-01 Daniel Jacobowitz <[email protected]>
8885
8886 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8887 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8888
2d1bfe2e
MK
88892002-03-31 Mark Kettenis <[email protected]>
8890
a5941fbf
MK
8891 * NEWS: Mention gcore support on FreeBSD/i386.
8892
a90cd31d
MK
8893 * fbsd-proc.c: New file.
8894 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8895 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8896
2d1bfe2e
MK
8897 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8898 while statement.
8899
9eb6e5a1
JB
89002002-03-29 Jim Blandy <[email protected]>
8901
8902 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8903 unescaped newlines in string literals, but newer ones don't. So
8904 escape them.
8905
f02df580
MS
89062002-03-26 Michael Snyder <[email protected]>
8907 Andrew Cagney <[email protected]>
8908
361d1df0 8909 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8910 restore file to memory.
8911 * cli/cli-dump.h: New file.
8912 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8913 * NEWS: Mention new commands.
f02df580 8914
109f874e
MS
89152002-03-28 Michael Snyder <[email protected]>
8916
8917 * symfile.c (symbol_file_add): Move test for null symbols to later.
8918
520f6ade
AC
89192002-03-27 Andrew Cagney <[email protected]>
8920
8921 From veksler at il.ibm.com:
8922 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8923 the xstrduped original path.
8924 Fix PR gdb/417.
8925
d4654627
MS
89262002-03-27 Michael Snyder <[email protected]>
8927
8928 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8929 * infcmd.c (_initialize_infcmd): Ditto.
8930 * language.c (_initialize_language): Ditto.
8931 * symfile.c (_initialize_symfile): Ditto.
8932 * top.c (_init_main): Ditto.
8933 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8934
6be8bc0c
EZ
89352002-03-27 Elena Zannoni <[email protected]>
8936
8937 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8938 vector registers handling.
8939 (skip_prologue): Handle new AltiVec instructions. Fill in new
8940 fields of frame data.
8941 (frame_get_saved_regs): Fill in information for AltiVec registers.
8942
12af6855
JB
89432002-03-27 Jim Blandy <[email protected]>
8944
8945 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8946 a function; leave this macro here to invoke that function.
8947 (symbol_init_mangled_name): Declaration for that function.
8948 * symtab.c (symbol_init_mangled_name): New function.
8949
dc672865
AC
89502002-03-27 Andrew Cagney <[email protected]>
8951
8952 * valarith.c: Replace strerror with safe_strerror.
8953 * tracepoint.c: Ditto.
8954 * lin-lwp.c: Ditto.
8955 * go32-nat.c: Ditto.
8956 * inflow.c: Ditto.
8957 * gnu-nat.c: Ditto.
8958
d96429cd
AS
89592002-03-27 Andreas Schwab <[email protected]>
8960
8961 * event-top.c (command_line_handler): Remove useless if.
8962
7e336ba1
AJ
89632002-03-27 Andreas Jaeger <[email protected]>
8964
8965 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8966 comment.
8967
de220d0f
ML
89682002-03-27 Michal Ludvig <[email protected]>
8969
8970 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8971 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8972 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8973 (x86_64_linux_dr_get_status, supply_gregset),
8974 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8975 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8976 (x86_64_register_info_table): Add.
8977 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8978 (x86_64_register_raw_size, x86_64_register_virtual_type),
8979 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8980 general x86_64_register_info_table.
8981 (i386_gdbarch_init): gdbarch_register_bytes is now set
8982 dynamicaly during initialization.
8983 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8984 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8985
0e98d0a7
DJ
89862002-03-27 Daniel Jacobowitz <[email protected]>
8987
8988 * gdbserver/server.c (main): Call target_signal_to_host_p
8989 and target_signal_to_host on signals received from the remote.
8990 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8991 target_signal_from_host on signals sent to the remote.
8992 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8993 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8994
3130066b
DJ
89952002-03-27 Daniel Jacobowitz <[email protected]>
8996
8997 * signals/signals.c: Include "server.h" in gdbserver build.
8998 (target_signal_from_name): Don't use STREQ.
8999 (_initialize_signals): Likewise. Don't include function in
9000 gdbserver build.
9001
9aedf4f4
DJ
90022002-03-27 Daniel Jacobowitz <[email protected]>
9003
9004 * signals.c: Moved to...
9005 * signals/signals.c: Here.
7e336ba1 9006 * Makefile (signals.o): Update.
9aedf4f4 9007
3fa41cdb
JL
90082002-03-26 Jeff Law ([email protected])
9009
9010 * somread.c (som_symtab_read): Remove some commented out code and
9011 updated related comments. Do not set the minimal symbol table to
9012 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9013 in a dynamic executable.
9014 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9015 where we are unable to find the minimal symbol for the given
9016 PC value.
9017
ee677e8d
MS
90182002-03-25 Jeff Law ([email protected])
9019
9020 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9021
e76e1718
ML
90222002-03-25 Michal Ludvig <[email protected]>
9023
9024 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9025
18a642a1
AC
90262002-03-23 Andrew Cagney <[email protected]>
9027
9028 * command.h: Update copyright.
9029 (struct cmd_list_element): Replace definition with opaque
9030 declaration.
9031 (enum cmd_types): Document that it will eventually be moved to
9032 cli/cli-decode.h
9033 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9034 (MALLOCED_REPLACEMENT): Delete macro.
9035 * Makefile.in (cli_decode_h): Add $(command_h).
9036 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 9037 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
9038 * completer.c: Include "cli/cli-decode.h".
9039 * maint.c: Include "cli/cli-decode.h".
9040 * cli/cli-decode.h: Include "command.h".
9041 (enum command_class): Delete.
9042 (enum cmd_types): Comment out.
9043 (enum cmd_auto_boolean): Delete.
9044 (enum var_types): Delete.
9045
b2875cc0
AC
90462002-03-23 Andrew Cagney <[email protected]>
9047
9048 * cli/cli-decode.c: Include "gdb_assert.h".
9049 (add_set_or_show_cmd): New static function.
9050 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9051 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9052 all fields, such as func, from the set command.
9053
3b45974e
AC
90542002-03-23 Andrew Cagney <[email protected]>
9055
9056 * MAINTAINERS (sh-elf): Change warning flag to -w.
9057
823ca731
AC
90582002-03-23 Andrew Cagney <[email protected]>
9059
9060 * defs.h (error): Add printf format attribute.
9061 * thread-db.c (thread_from_lwp): Fix error format string.
9062 * stack.c (parse_frame_specification): Ditto.
9063 * cli/cli-decode.c (undef_cmd_error): Ditto.
9064 * scm-lang.c (scm_lookup_name): Ditto.
9065 * tracepoint.c (trace_error): Ditto.
9066 * remote-utils.c (usage): Ditto.
9067 * remote.c (compare_sections_command): Ditto.
9068 Fix PR gdb/328.
9069
0e101458
AC
90702002-03-22 Andrew Cagney <[email protected]>
9071
9072 * gdbtypes.c (append_composite_type_field): New function.
9073 (init_composite_type): New function.
9074 * gdbtypes.h (append_composite_type_field): Declare.
9075 (init_composite_type): Ditto.
9076
8e0662df
EZ
90772002-03-22 Elena Zannoni <[email protected]>
9078
9079 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 9080 function.
8e0662df
EZ
9081 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9082 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9083 structure returning convention for SYSV ABI case, but not
9084 for GNU/Linux, FreeBSD, or NetBSD.
9085
3121eff0
DJ
90862002-03-22 Daniel Jacobowitz <[email protected]>
9087
9088 * symtab.h (lookup_block_symbol): Add mangled_name argument
9089 to prototype.
9090
9091 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9092 with new mangled_name argument.
9093 * linespec.c (decode_line_1): Likewise.
9094 * valops (value_of_this): Likewise.
9095 * symtab.c (lookup_transparent_type): Likewise.
9096 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9097 (lookup_symbol): If we are given a mangled name, pass it down
9098 to lookup_symbol_aux.
9099 (lookup_block_symbol): If we are given a mangled name to check
9100 against, only return symbols which match it.
9101
349b409f
CF
91022002-03-22 Christopher Faylor <[email protected]>
9103
9104 * win32-nat.c (child_create_inferior): Check for proper shell to use
9105 here, in case the user changes it on the fly.
9106 (_initialize_inftarg): Remove shell path considerations.
9107
2a873819
EZ
91082002-03-21 Elena Zannoni <[email protected]>
9109
9110 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9111 for gdbarch_max_register_raw_size and max_register_virtual_size.
9112 Adjust copyright year.
9113
a1b9830c
DJ
91142002-03-21 Daniel Jacobowitz <[email protected]>
9115
9116 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9117 in a function to cover the entire beginning of the function
9118 as well if it does not already.
9119
8b5790f2
TR
91202002-03-21 Tom Rix <[email protected]>
9121
9122 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9123 (rs6000_ptrace64): Renamed from ptrace64.
9124
bdbe5747
MH
91252002-03-20 Martin M. Hunt <[email protected]>
9126
9127 * gdbserver/remote-utils.c (remote_open): Don't call
9128 getprotobyname, we're all using TCP here so just use
9129 IPPROTO_TCP.
7e336ba1 9130 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
9131
91322002-03-20 Martin M. Hunt <[email protected]>
7e336ba1 9133
bdbe5747
MH
9134 * regcache.c (_initialize_regcache): No need to call
9135 build_regcache() at this time; it gets called whenever
9136 the gdbarch changes.
9137
7781cd62
DB
91382002-03-20 David O'Brien <[email protected]>
9139
9140 * sparc-nat.c: Include sys/param.h where possible.
9141
f65ca430
DJ
91422002-03-20 Daniel Jacobowitz <[email protected]>
9143
9144 Fix PR gdb/422.
9145 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9146 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9147 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9148 complex types.
9149 * stabsread.c (rs6000_builtin_type): Likewise.
9150 (read_sun_floating_type): Likewise.
9151
0c867556
PS
91522002-03-19 Peter Schauer <[email protected]>
9153
9154 * stabsread.c (read_member_functions): Remove skip code for duplicate
9155 constructor/destructor methods. Use standard parsing for these
9156 methods and just do not chain them to the list of methods after
9157 parsing.
9158
12b9c64f
AO
91592002-03-19 Alexandre Oliva <[email protected]>
9160
9161 * coffread.c: Remove redundant static declarations. Replace
9162 occurrences of `PTR' with `void *'.
9163 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9164 * top.h (quit_cover): Likewise.
9165 * defs.h (catch_errors): Likewise.
9166
349c5d5f
AC
91672002-03-18 Andrew Cagney <[email protected]>
9168
9169 * defs.h (XMALLOC): Define.
9170 * gdb-events.sh (XMALLOC): Delete macro.
9171 * gdb-events.c, gdb-events.h: Regenerate.
9172 * gdbarch.sh (XMALLOC): Delete macro.
9173 * gdbarch.c: Regenerate.
9174 * serial.c (XMALLOC): Delete macro.
9175 * ui-file.c (XMALLOC): Ditto.
9176 * ser-unix.h (XMALLOC): Ditto.
9177 * sh-tdep.c (XMALLOC): Ditto.
9178 * ui-out.c (XMALLOC): Ditto.
9179 * utils.c (XMALLOC): Ditto.
9180 * i386-tdep.c (XMALLOC): Ditto.
9181 * gdb-events.c (XMALLOC): Ditto.
9182 * d10v-tdep.c (XMALLOC): Ditto.
9183 * cli-out.c (XMALLOC): Ditto.
9184
9185 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9186 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9187 * ui-file.c, ui-out.c: Ditto.
9188
7d0766f3
AC
91892002-03-18 Andrew Cagney <[email protected]>
9190
9191 * command.h (struct cmd_list_element): Add field context.
9192 (set_cmd_context, get_cmd_context): Declare.
9193 * cli/cli-decode.h: Ditto.
9194 * cli/cli-decode.c (get_cmd_context): New function.
9195 (set_cmd_context): New function.
9196 (add_cmd): Initialize context.
9197 Part of fixing PR gdb/145 and PR gdb/146.
9198
5913bcb0
AC
91992002-03-17 Andrew Cagney <[email protected]>
9200
1868c04e
AC
9201 * cli/cli-decode.c (cmd_type): New function.
9202 * command.h (cmd_type): Declare.
9203 * infrun.c (set_schedlock_func): Call function cmd_type.
9204 * kod.c (kod_set_os): Call cmd_type.
9205 * cris-tdep.c (cris_version_update): Use function cmd_type.
9206 (cris_mode_update, cris_abi_update): Ditto.
9207
5913bcb0
AC
9208 * command.h: (execute_cmd_post_hook): Declare.
9209 (execute_cmd_pre_hook): Declare.
9210 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9211 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9212 functions. Execute pre/post hook while ensuring that afterwords
9213 hook_in is cleared.
9214 * top.c (execute_command): Use execute_cmd_post_hook, and
9215 execute_cmd_pre_hook to execute pre/post commands.
9216 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9217 hook_stop_stub.
9218 (hook_stop_stub): Call execute_cmd_pre_hook.
9219
b51450c9
AC
92202002-03-17 Andrew Cagney <[email protected]>
9221
9222 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9223 set'' and this leads to a core dump. Move xstrdup of
9224 operating_system to after check that it is not NULL.
9225
f66c9f11
AC
92262002-03-17 Andrew Cagney <[email protected]>
9227
8e694ecf
AC
9228 * kod.c (kod_set_os): Remove unnecessary check that
9229 ``command->type'' is set_cmd.
9230
f66c9f11
AC
9231 * valprint.c (set_input_radix): Use input_radix.
9232 (set_output_radix): Use output_radix.
9233 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9234 isn't reverted.
9235
9d01611c
AC
92362002-03-16 Andrew Cagney <[email protected]>
9237
9238 * value.h (struct value): Delete field ``substring_addr''. Change
9239 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
9240 force_core_addr_align and force_pointer_aligh.
9241
9242 * value.h (struct value): Fix typo in above change.
9d01611c 9243
4156bb53
PS
92442002-03-16 Peter Schauer <[email protected]>
9245
9246 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9247 to fix internal_error from ``maintenance print architecture''.
9248
0e5e3ea6
PS
92492002-03-16 Peter Schauer <[email protected]>
9250
9251 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9252 for gcc versions after gcc-2.8.1.
9253
9b013045
PS
92542002-03-16 Peter Schauer <[email protected]>
9255
9256 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9257 for method resolution. Restore adjustment of ``this'' pointer after
9258 calling value_struct_elt, which was accidentally removed during the
9259 HP merge.
9260
376c9600
AC
92612002-03-15 Andrew Cagney <[email protected]>
9262
9263 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9264 value_of_register.
9265 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9266 get_saved_register.
9267 * value.h (value_of_register): Update.
9268
a4db0f07
RH
92692002-03-14 Richard Henderson <[email protected]>
9270
9271 * configure.in: Detect declaration for canonicalize_file_name.
9272 * utils.c (canonicalize_file_name): Declare, if needed.
9273 (gdb_realpath): Prefer realpath if available and usable.
9274 * config.in, configure: Rebuild.
9275
96383835
RH
92762002-03-14 Richard Henderson <[email protected]>
9277
9278 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9279 a constant array bound.
9280
9281 * MAINTAINERS: Add myself to write-after-approval.
9282
75245b24
MS
92832002-03-14 Michael Snyder <[email protected]>
9284
9285 * symfile.c (syms_from_objfile): Return immediately if no syms.
9286 (symbol_file_add): Return immediately if no syms.
9287 (find_sym_fns): Return immediately if no syms.
9288
e641a1ca
ML
92892002-03-13 Michal Ludvig <[email protected]>
9290
9291 * gdbserver/remote-util.c (remote_open): Print remote-side's
9292 IP address when remote debugging over the network.
7e336ba1 9293
df08bfec
DB
92942002-03-12 David O'Brien <[email protected]>
9295
9296 * config/sparc/fbsd.mh: Fix copyright.
9297 * config/sparc/fbsd.mt: Likewise.
9298
9a57864f
RE
92992002-03-11 Richard Earnshaw <[email protected]>
9300
9301 * MAINTAINERS: Fix typo in name of gdb warnings option.
9302 (x86-64): Fix formating so that this can be parsed by awk.
9303
dd7bf85e
DJ
93042002-03-10 Daniel Jacobowitz <[email protected]>
9305
9306 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9307 * defs.h: Include "gdb/signals.h".
9308 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9309
33a0a2ac
ML
93102002-03-10 Michal Ludvig <[email protected]>
9311
9312 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 9313 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
9314 from x86-64-tdep.h
9315
dd824b04
DJ
93162002-03-10 Daniel Jacobowitz <[email protected]>
9317 Don Howard <[email protected]>
9318
9319 * mips-tdep.c (ST0_FR): Define.
9320 (mips2_fp_compat): New function, temporarily disabled.
9321 (mips_read_fp_register_single): New function.
9322 (mips_read_fp_register_double): New function.
9323 (mips_print_register): Use them.
9324 (do_fp_register_row): Likewise.
9325
6a41ff59
AC
93262002-03-09 Andrew Cagney <[email protected]>
9327
9328 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9329 approval''.
9330
4ea09c10
PS
93312002-03-08 Peter Schauer <[email protected]>
9332
9333 * stabsread.c (read_member_functions): Fix is_stub test for
9334 static member functions, improve comment.
9335
6ccc741d
RE
93362002-03-07 Richard Earnshaw <[email protected]>
9337
9338 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9339 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9340 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9341 commands that set boolean values.
9342 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9343 (arm_rdi_resume): Always initialize PC.
9344 (arm_rdi_open): Don't use rslt as a boolean.
9345 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9346 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9347 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9348 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9349
438013df
AO
93502002-03-06 Alexandre Oliva <[email protected]>
9351
9352 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9353 * configure: Rebuilt.
9354
70ed8774
SC
93552002-03-06 Stephane Carrez <[email protected]>
9356
9357 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9358 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9359
5ba2abeb
AC
93602002-03-06 Andrew Cagney <[email protected]>
9361
9362 * cli/cli-decode.c (set_cmd_completer): New function.
9363 * command.h (set_cmd_completer): Declare.
9364 * cli/cli-decode.h (set_cmd_completer): Ditto.
9365
9366 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9367 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9368 * win32-nat.c (_initialize_inftarg): Ditto.
9369 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9370 * proc-api.c (_initialize_proc_api): Ditto.
9371 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9372 * source.c (_initialize_source): Ditto.
9373 * exec.c (_initialize_exec): Ditto.
9374 * solib.c (_initialize_solib): Ditto.
9375 * top.c (init_main): Ditto.
9376 * tracepoint.c (_initialize_tracepoint): Ditto.
9377 * symfile.c (_initialize_symfile): Ditto.
9378 * printcmd.c (_initialize_printcmd): Ditto.
9379 * infcmd.c (_initialize_infcmd): Ditto.
9380 * corefile.c (_initialize_core): Ditto.
9381
f779ca99
AC
93822002-03-05 Andrew Cagney <[email protected]>
9383
9384 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9385
01a3934b
AC
93862002-03-05 Andrew Cagney <[email protected]>
9387
9388 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9389
37057839
AC
93902002-03-05 Andrew Cagney <[email protected]>
9391
9392 * NEWS: Update headings, 5.2 has branched.
9393
c6ecbae5
DJ
93942002-03-04 Daniel Jacobowitz <[email protected]>
9395
9396 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9397 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9398 (register_addr, REGISTER_RAW_SIZE): Likewise.
9399 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9400 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9401
e9f30c21
ML
94022002-03-03 Michal Ludvig <[email protected]>
9403
9404 * MAINTAINERS (x86-64): Add myself.
9405 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9406 changed value_ptr -> struct value *
9407
54394ac3
DB
94082002-03-01 David O'Brien <[email protected]>
9409
9410 * configure.host (sparc64-*-freebsd): Add.
9411 * configure.tgt: Likewise.
9412 * config/sparc/fbsd.mh: New file.
9413 * config/sparc/fbsd.mt: Likewise.
9414 * config/sparc/nm-fbsd.h: Likewise.
9415 * config/sparc/tm-fbsd.h: Likewise.
9416
bfe95955
DJ
94172002-03-01 Daniel Jacobowitz <[email protected]>
9418
9419 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9420 regformats/reg-s390x.dat.
9421
f33c6cbf
AC
94222002-03-01 Andrew Cagney <[email protected]>
9423
9424 * utils.c: Add FIXME explaining true/false problem.
9425
5ecaa7dd
AC
94262002-02-28 Andrew Cagney <[email protected]>
9427
9428 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9429
2a251cc2
MC
94302002-02-28 Michael Chastain <[email protected]>
9431
9432 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9433
6a8031a3 94342002-02-28 Daniel Jacobowitz <[email protected]>
265f716b
DJ
9435
9436 * gdbserver/linux-s390-low.c: New file.
9437 * regformats/reg-s390.dat: New file.
9438 * regformats/reg-s390x.dat: New file.
9439 * gdbserver/configure.srv: Add S/390.
9440 * gdbserver/Makefile.in: Add S/390.
9441 * configure.tgt: Enable gdbserver for S/390.
9442
ac469903
EZ
94432002-02-28 Eli Zaretskii <[email protected]>
9444
9445 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9446 first line of the doc string for "info dos", except at the end of
9447 the sentence, since the short help stops at the first period.
9448
985cb1a3
JM
94492002-02-28 Jason Merrill <[email protected]>
9450
9451 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9452
c570663e
FF
94532002-02-27 Fred Fish <[email protected]>
9454
9455 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9456 comment (dumy -> dummy).
9457
43630227
PS
94582002-02-27 Peter Schauer <[email protected]>
9459
9460 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9461
b84911e8
RB
94622002-02-27 Rodney Brown <[email protected]>
9463
9464 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9465
58caa3dc
DJ
94662002-02-27 Daniel Jacobowitz <[email protected]>
9467
9468 * gdbserver/acconfig.h: New file.
9469 * gdbserver/i387-fp.c: New file.
9470 * gdbserver/i387-fp.h: New file.
9471 * gdbserver/linux-x86-64.c: New file.
9472 * regformats/reg-x86-64.dat: New file.
9473 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9474 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9475 * gdbserver/configure.in: Add support for regsets.
9476 * gdbserver/config.in: Regenerate.
9477 * gdbserver/configure: Regenerate.
9478 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9479 * gdbserver/linux-low.h: New file.
9480 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9481 for regsets.
9482 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9483 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9484 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9485 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9486 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9487 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9488 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9489 "i387-fp.h". Add PTRACE_GETREGS and friends.
9490 * gdbserver/regcache.c (supply_register): New function.
9491 (supply_register_by_name): New function.
9492 (collect_register): New function.
9493 (collect_register_by_name): New function.
9494
93652174
DJ
94952002-02-27 Daniel Jacobowitz <[email protected]>
9496
9497 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9498 (config.status): Add configure.srv dependency.
9499 (server_h): Add config.h dependency.
9500
a02e4a61
DJ
95012002-02-27 Daniel Jacobowitz <[email protected]>
9502
9503 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9504 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9505 * gdbserver/configure.srv: Change i386-*-linux* to use
9506 reg-i386-linux.o.
9507
ce0eebec
AC
95082002-02-26 Andrew Cagney <[email protected]>
9509
9510 * x86-64-tdep.c: Re-indent. Update copyright date.
9511
82dbc5f7
AC
95122002-02-26 Andrew Cagney <[email protected]>
9513
9514 From Michal Ludvig <[email protected]>:
9515 * x86-64-tdep.c (value.h): Delete.
9516 (gdb_assert.h): Include.
9517 (x86_64_register_convert_to_virtual,
9518 x86_64_register_convert_to_raw ): Add check which lets only
9519 floating-point values to be converted.
9520 (value_push): Delete.
9521 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9522 (i386_gdbarch_init): Number of register_bytes fixed.
9523
e4621584
AC
95242002-02-26 Andrew Cagney <[email protected]>
9525
9526 * MAINTAINERS: Add x86-64 target.
9527
81a9a963
AC
95282002-02-26 Andrew Cagney <[email protected]>
9529
9530 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9531 * osfsolib.c (solib_map_sections): Ditto.
9532 * irix5-nat.c (solib_map_sections): Ditto.
9533 * corelow.c (gdb_check_format): Ditto.
9534 * symfile.c (symfile_bfd_open): Ditto.
9535 * solib.c (solib_map_sections): Ditto.
9536 Fix PR gdb/354.
7e336ba1 9537
0f017ab9
AC
95382002-02-26 Andrew Cagney <[email protected]>
9539
9540 * remote.c (_initialize_remote): By default, disable ``e'' and
9541 ``E'' step out-of-range packets.
9542
75738c29
AS
95432002-02-26 Andreas Schwab <[email protected]>
9544
9545 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9546 m68k_linux_frame_saved_pc.
9547 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9548 in_sigtramp.
9549 (SIGCONTEXT_PC_OFFSET): Remove.
9550 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9551 m68k_linux_sigtramp_saved_pc): New functions.
9552 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9553 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9554 (UCONTEXT_PC_OFFSET): Define.
9555 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9556 non-RT and RT signal trampolines.
9557
7e8ed687
RE
95582002-02-26 Richard Earnshaw <[email protected]>
9559
9560 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9561 (TARGET_NBPG, STACK_END_ADDR): Delete
9562 (VARIABLES_INSIDE_BLOCK): Delete.
9563
6972bc8b
AC
95642002-02-25 Andrew Cagney <[email protected]>
9565
9566 * utils.c (perror_with_name): Make string parameter constant.
9567 (print_sys_errmsg): Ditto.
9568 (query): Ditto.
9569 * defs.h (perror_with_name): Update.
9570 (print_sys_errmsg): Update.
9571 (query): Update.
9572
aa32f823
DJ
95732002-02-25 Daniel Jacobowitz <[email protected]>
9574
9575 From Eliot Dresselhaus <[email protected]>:
9576 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9577
19caaa45
PS
95782002-02-25 Peter Schauer <[email protected]>
9579
9580 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9581 if it already matches the current architecture from the exec file.
9582 Include arch-utils.h for gdbarch_info_init prototype.
9583 * Makefile.in (rs6000-nat.o): Update dependencies.
9584
d951901f
EZ
95852002-02-25 Eli Zaretskii <[email protected]>
9586
9587 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9588 list of exported variables.
9589
7ea81414
DJ
95902002-02-24 Daniel Jacobowitz <[email protected]>
9591
9592 * gdbserver/configure.srv: New file.
9593 * gdbserver/configure.in: Use configure.srv instead
9594 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9595 from it.
9596 * gdbserver/configure: Regenerated.
9597 * gdbserver/terminal.h: New file.
9598 * gdbserver/Makefile.in: Update for configure changes. Remove
9599 more unneeded include paths.
9600
080fe24b
AC
96012002-02-24 Andrew Cagney <[email protected]>
9602
9603 From wiz at danbala:
9604 * config/sparc/tm-sp64.h: Fix grammar and typos.
9605 Fix PR gdb/287.
9606
8605d56e
AC
96072002-02-24 Andrew Cagney <[email protected]>
9608
9609 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9610 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9611 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9612 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9613 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9614 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9615 * s390-tdep.c: Ditto.
92362027
AC
9616 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9617 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9618 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9619 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9620 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9621 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9622 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9623 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9624 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9625 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9626 Fix PR gdb/378.
7e336ba1 9627
8ed32cc0
AC
96282002-02-23 Andrew Cagney <[email protected]>
9629
a3007b6f
AC
9630 * lin-thread.c: Delete file.
9631 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9632 to gdb_proc_service.h.
9633 * configure: Re-generate.
9634
50a9e2f1
AC
9635 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9636 * serial.c (serial_open): Delete check for "ocd".
9637 Fix PR gdb/349.
9638
8b6e7932
AC
9639 * Makefile.in (linux-thread.o): Delete target.
9640 * linux-thread.c: Delete file.
9641
d155c46b
AC
9642 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9643 renamed SH files to be consistent.
9644
8ed32cc0
AC
9645 * symtab.c (sort_search_symbols): Use xfree.
9646
0e18d038
RE
96472002-02-23 Richard Earnshaw <[email protected]>
9648
9649 * arm-linux-tdep.c (arm_linux_init_abi): Register
9650 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9651 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9652 definition with undef, since we don't want the sysvr4 definition.
9653 (SKIP_TRAMPOLINE_CODE): Likewise.
9654
27aac7ff
AC
96552002-02-23 Andrew Cagney <[email protected]>
9656
9657 From 2002-02-22 Alfred M. Szmidt <[email protected]>:
9658
9659 * configure.in: (AC_CHECK_FUNCS) Added test for
9660 canonicalize_file_name Regenerated.
9661 * config.in, configure: Regenerated.
9662 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9663 defined use canonicalize_file_name.
7e336ba1 9664
65a6e0ee
MC
96652002-02-23 Michael Chastain <[email protected]>
9666
9667 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9668
47b95330
AC
96692002-02-23 Andrew Cagney <[email protected]>
9670
9671 * README: Remove references to cygnus.com.
9672 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9673 dot com'' form. Remove references to cygnus.com and sourceware.
9674
696f451b
AC
96752002-02-23 Andrew Cagney <[email protected]>
9676
9677 From 2002-02-19 Paul Eggert <[email protected]>:
9678 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9679 1003.1-2001 no longer allows "head -1".
9680 * gdb/Makefile.in (version.c): Likewise.
9681 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9682 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9683 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9684
bbaca940
AC
96852002-02-23 Andrew Cagney <[email protected]>
9686
9687 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9688 * command.h (cmd_cfunc_eq): Declare.
9689 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9690
9691 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9692 ``struct cmd_list_element *''.
9693 * cli/cli-cmds.c (is_complete_command): Update. Use
9694 cmd_cfunc_eq.
9695 * top.c (execute_command): Pass the command to
9696 is_complete_command.
9697 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9698
b8b8b047
AC
96992002-02-23 Andrew Cagney <[email protected]>
9700
9701 From 2002-02-20 Martin Schwidefsky <[email protected]>:
9702 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9703 architecture defines.
9704 * s390-tdep.c (s390_gdbarch_init): Likewise.
9705
19d3fc80
RE
97062002-02-23 Richard Earnshaw <[email protected]>
9707
9708 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9709 (arm_linux_push_arguments): Likewise.
9710 (arm_linux_init_abi): Register them. Also register linux-specific
9711 call_dummy_words.
9712 (find_minsym_and_objfile): Use strcmp, not STREQ.
9713 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9714 (arm_linux_call_dummy_words): Delete declaration.
9715 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9716 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9717 declarations.
9718 (LOWEST_PC): Delete.
9719
3ab13650
PS
97202002-02-23 Peter Schauer <[email protected]>
9721
9722 * maint.c (print_section_info): Do not prepend `0x' to filepos
9723 output, it will be handled by local_hex_string_custom.
9724
19d3fc80 97252002-02-23 Richard Earnshaw <[email protected]>
85ae890c
RE
9726
9727 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9728 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9729 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9730
d85a5daf
JB
97312002-02-22 Jim Blandy <[email protected]>
9732
9733 Indicate that the bcache functions don't change the strings
9734 they're passed.
9735 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9736 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9737
eeb25b8a
PM
97382002-02-22 Pierre Muller <[email protected]>
9739
9740 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9741
6badb179
CF
97422002-02-21 Christopher Faylor <[email protected]>
9743
9744 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9745 find the complete path to a loaded DLL.
9746
e8717518
FF
97472002-02-21 Fred Fish <[email protected]>
9748
9749 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9750 that marks the end of the range of a function, enter a line number
9751 entry that has a line number of zero and a PC offset that matches
9752 the end of the function. This starts a range of PC's for which no
9753 line number information is known.
9754 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9755 PC's for which no line number info is found (line number is zero)
9756 then we didn't find any valid line information.
9757 * symtab.h: Document use of zero line number entry.
9758
9abe5450
EZ
97592002-02-21 Elena Zannoni <[email protected]>
9760
9761 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9762 (have_ptrace_getvrregs): Define for run time checks.
9763 (gdb_vrregset_t): New type for Altivec register handling.
9764 (fetch_register, store_register): Fetch/store altivec register
9765 when needed.
9766 (fetch_altivec_register, store_altivec_register): New functions.
9767 (supply_vrregset, fill_vrregset): New functions.
9768 (fetch_altivec_registers, store_altivec_registers): New functions.
9769 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9770 registers as well.
9771
aaa38bb5
AJ
97722002-02-21 Jiri Smid <[email protected]>
9773
9774 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9775
b34db576
RE
97762002-02-21 Richard Earnshaw <[email protected]>
9777
9778 * Makefile.in (armnbsd-nat.o): Update dependencies.
9779 * armnbsd-nat.c (supply_gregset): New function. Common code to
9780 supply the integer register set.
9781 (supply_fparegset): New function. Similar for FPA registers.
9782 (fetch_regs, fetch_fp_regs): Use them.
9783 (fetch_core_registers): Likewise.
9784 (fetch_elfcore_registers): New function.
9785 (arm_netbsd_elfcore_fns): New core-file type specification.
9786 (_initialize_arm_netbsd_nat): Register it.
9787
3e56fc4b
RE
97882002-02-21 Richard Earnshaw <[email protected]>
9789
9790 * armnbsd-nat.c: Include gdbcore.h.
9791 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9792 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9793 'void' to declaration, to shut up ARI.
9794 (fetch_core_registers): Make static. Rewrite using supply_register.
9795 (arm_netbsd_core_fns): New core-file type specification.
9796 (_initialize_arm_netbsd_nat): New function.
9797
097f6b0b
CF
97982002-02-21 Christopher Faylor <[email protected]>
9799
9800 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9801 value.
9802
c914e0cc
CF
98032002-02-20 Christopher Faylor <[email protected]>
9804
9805 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9806 fails.
9807
385fa495
DJ
98082002-02-20 Daniel Jacobowitz <[email protected]>
9809
9810 * jv-exp.y (parse_number): Change type of implicit longs
9811 to builtin_type_uint64.
9812
e5f1222d
DJ
98132002-02-20 Daniel Jacobowitz <[email protected]>
9814
9815 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9816 to be an integer instead of a `union wait'.
9817
75c9abc6
DJ
98182002-02-20 Daniel Jacobowitz <[email protected]>
9819
9820 * mips-linux-nat.c: Call the operating system GNU/Linux.
9821 * mips-linux-tdep.c: Likewise.
9822 * mips-tdep.c: Likewise.
9823
551792a5
DJ
98242002-02-20 Daniel Jacobowitz <[email protected]>
9825
9826 Fix PR gdb/265.
9827 * jv-exp.y (parse_number): Handle 64-bit integers.
9828
ee6e2b82
DJ
98292002-02-20 Daniel Jacobowitz <[email protected]>
9830
9831 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9832 AC_STDC_HEADERS to AC_HEADER_STDC.
9833 * gdbserver/configure: Regenerated.
9834
a48442a0
RE
98352002-02-20 Richard Earnshaw <[email protected]>
9836
9837 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9838 is defined.
9839 * sparc-tdep.c (get_longjmp_target): Likewise.
9840
fe419ffc
RE
98412002-02-20 Richard Earnshaw <[email protected]>
9842
9843 * News: Add news about ARM and Multi-arch. Mention the new target
9844 arm*-*-netbsd*.
9845
5832ed7e
JB
98462002-02-19 Jim Blandy <[email protected]>
9847
9848 * stabsread.c (error_type_complaint): Improve error message.
9849
84563040
DJ
98502002-02-19 Daniel Jacobowitz <[email protected]>
9851
9852 * gdbserver/README: Update documentation.
9853 * gdbserver/configure.in: Update configury to match documentation.
9854 * gdbserver/Makefile.in: Likewise.
9855 * gdbserver/configure: Regenerated.
9856 * gdbserver/aclocal.m4: New file, generated by aclocal.
9857 * gdbserver/config.in: New file, generated by autoheader.
9858
375fd65b
RE
98592002-02-19 Richard Earnshaw <[email protected]>
9860
9861 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9862 armnbsd-nat.c.
9863
08216dd7
RE
98642002-02-19 Richard Earnshaw <[email protected]>
9865
9866 * arm-tdep.h (enum arm_float_model): New enum.
9867 (struct gdbarch_tdep): Add fp_model.
9868 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9869 up floating-point conversions until we know the floating-point model
9870 in use by the inferior. Don't complain about being unable to
9871 determine the ABI of the inferior when we don't have one.
9872 (arm_extract_return_value): Support different floating-point models.
9873 (arm_store_return_value): Likewise.
aaa38bb5 9874 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9875 ARM_FLOAT_SOFT.
9876 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9877
65d6d66a
PS
98782002-02-19 Peter Schauer <[email protected]>
9879
9880 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9881 of ``current_gdbarch''.
9882
47221191
RE
98832002-02-19 Richard Earnshaw <[email protected]>
9884
9885 * armnbsd-nat.c : ANSIfy all function declarations.
9886 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9887 (fetch_inferior_registers): Re-implement in terms of above.
9888 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9889 (store_inferior_registers): Re-implement in terms of above.
9890
fdf39c9a
RE
98912002-02-19 Richard Earnshaw <[email protected]>
9892
aaa38bb5 9893 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9894 kernel.
9895 * arm-linux-tdep.c: Likewise.
9896 * config/arm/tm-linux.h: Likewise.
9897
93247f88
RE
98982002-02-19 Richard Earnshaw <[email protected]>
9899
9900 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9901 * config/arm/nbsd.mt (TM_FILE): Delete.
9902 * config/arm/tm-nbsd.h: Delete.
9903
d7b486e7
RE
99042002-02-19 Richard Earnshaw <[email protected]>
9905
9906 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9907 Initialize CALL_DUMMY_LENGTH.
9908
41d39a95
RE
99092002-02-19 Richard Earnshaw <[email protected]>
9910
9911 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9912 function.
9913 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9914 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9915 defines one thing and that is incorrect for this port.
9916 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9917
e1195560
PM
99182002-02-18 Pierre Muller <[email protected]>
9919
9920 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9921
c1748f97
PM
99222002-02-18 Pierre Muller <[email protected]>
9923
9924 * win32-nat.c (display_selector): New function. Displays information
9925 about the information returned by GetThreadSelectorEntry API function.
9926 (display_selectors): New function. Displays the infomation of
9927 the selector given as argument, or of CS, DS ans FS selectors
9928 if no argument is given.
9929 ( _initialize_inftarg): Add "w32" as info prefix command.
9930 Add "info w32 selector" as command calling display_selectors.
9931
e41e6bbf
PM
99322002-02-19 Pierre Muller <[email protected]>
9933
9934 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9935 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9936 if not defined.
9937
0d3a9f48
RE
99382002-02-18 Richard Earnshaw <[email protected]>
9939
9940 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9941
3fb4b924
RE
99422002-02-18 Richard Earnshaw <[email protected]>
9943
9944 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9945 (arm_fix_call_dummy): Call it.
9946 (arm_call_dummy_breakpoint_offset): Delete.
9947 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9948 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9949
7f55af32
AC
99502002-02-18 Andrew Cagney <[email protected]>
9951
9952 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9953 Default to func_frame_chain_valid.
9954 * gdbarch.h, gdbarch.c: Re-generate.
9955 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9956
05f13b9c
EZ
99572002-02-18 Elena Zannoni <[email protected]>
9958
9959 * ppc-linux-nat.c: Update copyright.
9960 (fetch_register, store_register): Add tid parameter, don't compute
9961 tid here.
9962 (fetch_ppc_registers, store_ppc_registers): Add tid
9963 parameter. Pass it along to callees.
9964 (fetch_inferior_registers, store_inferior_registers): Compute tid
9965 here, and pass it to calleed functions.
9966 (fill_gregset, supply_fpregset): Clean up formatting.
9967
d7afb4c9
RE
99682002-02-18 Richard Earnshaw <[email protected]>
9969
9970 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9971 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9972
9df628e0
RE
99732002-02-18 Richard Earnshaw <[email protected]>
9974
9975 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9976 * gdbarch.c gdbarch.h: Regenerate.
9977 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9978 function.
9979 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9980 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9981 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9982
9983 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9984 * arm-tdep.c (arm_get_longjmp_target): New function.
9985 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9986 this to a positive value register arm_get_longjmp_target as the
9987 longjmp handler.
9988 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9989 (arm_linux_init_abi): Set up longjmp description in tdep.
9990 * armnbsd-nat.c (get_longjmp_target): Delete.
9991 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9992 description in tdep.
9993 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9994 (get_longjmp_target): Delete declaration.
9995 (GET_LONGJMP_TARGET): Delete.
9996 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9997 (GET_LONGJMP_TARGET): Delete.
9998
57bc8964
KB
99992002-02-17 Kevin Buettner <[email protected]>
10000
10001 From Peter Schauer <[email protected]>:
10002 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10003 of ``current_gdbarch''.
10004
83d31a92
TT
100052002-02-17 Tom Tromey <[email protected]>
10006
10007 * cli/cli-cmds.c (compare_strings): New function.
10008 (complete_command): Only print each unique item once.
10009 * completer.h (complete_line): Declare.
10010 * completer.c (complete_line): New function.
10011 (line_completion_function): Use it.
10012
17ef5d92
AC
100132002-02-16 Andrew Cagney <[email protected]>
10014
10015 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10016 * gdbarch.h, gdbarch.c: Re-generate.
10017
491b8946
DJ
100182002-02-16 Daniel Jacobowitz <[email protected]>
10019
10020 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10021
100222002-02-16 Daniel Jacobowitz <[email protected]>
10023
10024 From Peter Schauer <[email protected]>:
10025 * valops.c (value_arg_coerce): Don't take the address of a reference
10026 to convert an argument to a reference.
10027
dfe7f3ac
CF
100282002-02-15 Christopher Faylor <[email protected]>
10029
10030 * win32-nat.c (get_image_name): New function.
10031 (handle_load_dll): Use get_image_name function.
10032 (get_child_debug_event): Avoid registering debug events until possibly
10033 execed process is started.
10034 (child_create_inferior): Allow invocation via shell so that command
10035 line redirection, etc. works ok.
10036 (_initialize_inftarg): Add new command: "set shell" to control whether
10037 a shell is used to start a process.
10038
1d33e73a
DJ
100392002-02-15 Daniel Jacobowitz <[email protected]>
10040
10041 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10042 instead of find_register_by_number.
10043 (cannot_store_register): Likewise.
10044
48cd0caa
PM
100452002-02-14 Pierre Muller <[email protected]>
10046
aaa38bb5 10047 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
10048 fprintf_unfiltered (gdb_stderr, ...).
10049
8656e7d8
DJ
100502002-02-15 Daniel Jacobowitz <[email protected]>
10051
10052 * gdbserver/gdbserver.1: Document --attach.
10053
66e810cd
RE
100542002-02-15 Richard Earnshaw <[email protected]>
10055
10056 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10057 descriptions.
10058 * arm-tdep.c (arm_default_arm_le_breakpoint)
10059 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10060 (arm_default_thumb_be_breakpoint): New. Initialize them from
10061 traditional breakpoint defines.
10062 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10063 (arm_gdbarch_init): Initialize new breakpoint variables.
10064 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10065 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10066 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10067 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10068 code out to ...
10069 (arm_netbsd_init_abi_common): ... here; new function.
10070 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10071 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10072 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10073 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10074
97e03143
RE
100752002-02-15 Richard Earnshaw <[email protected]>
10076
10077 * arm-tdep.h (enum arm_abi): New enum.
10078 (struct gdbarch_tdep): New structure.
10079 (LOWEST_PC): Provide a default.
10080 (arm_gdbarch_register_os_abi): Declare new function.
10081 * arm-tdep.c (arm_abi_names): New array.
10082 (process_note_abi_tag_sections): New function.
10083 (get_elfosabi): New function.
10084 (arm_gdbarch_register_os_abi): New function.
10085 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10086 support for that ABI has been built in, then call the appropriate
10087 configuration routine. Use gdbarch_num_regs() to get the number
10088 of registers.
10089 (arm_dump_tdep): New function.
10090 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10091 place-holder functions.
10092 (_initialize_arm_tdep): Register them.
10093 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10094
10095 * armnbsd-tdep.c: New file.
10096 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10097 * config/arm/nbsd.mt (TDEPFILES): Add it.
10098 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10099
10100 * armnbsd-nat.c: Include regcache.h.
10101 * Makefile.in (armnbsd-nat.o): Update dependency list.
10102
10103 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10104
ad68be46
DJ
101052002-02-14 Daniel Jacobowitz <[email protected]>
10106
10107 * gdbserver/Makefile.in: Fix typos in target rules.
10108
003d6d1d
DJ
101092002-02-14 Daniel Jacobowitz <[email protected]>
10110
aaa38bb5 10111 Fix part of PR gdb/267.
003d6d1d
DJ
10112 * linespec.c (find_methods): Handle constructors specially for now.
10113
6b230f1b
CV
101142002-02-14 Corinna Vinschen <[email protected]>
10115
10116 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10117 handling.
10118 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10119 standard_coerce_float_to_double().
10120
1ea98d12
CF
101212002-02-14 Christopher Faylor <[email protected]>
10122
10123 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10124 GDBINIT_FILENAME.
10125
dd47e6fd
EZ
101262002-02-14 Elena Zannoni <[email protected]>
10127
10128 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10129 find_variant_by_name, because it confuses the multiarch
10130 framework. Return NULL if there isn't an architecture with the
10131 user supplied name, instead of forcing a different one without
10132 recording the change with the multiarch machinery.
10133 (find_variant_by_name): Delete.
10134
d7e39b9e
PS
101352002-02-14 Peter Schauer <[email protected]>
10136
10137 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10138 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10139
76e42a4f
MH
101402002-02-13 Martin M. Hunt <[email protected]>
10141
aaa38bb5 10142 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
10143 print_frame_info_listing_hook, set current_source_symtab.
10144
0a30fbc4
DJ
101452002-02-14 Daniel Jacobowitz <[email protected]>
10146
10147 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10148 and remove unused $(INCLUDE_DIR).
10149 Add regcache.c to OBS.
10150 Add generated register protocol files to clean target.
10151 Update dependencies for new objects, obsolete old target code.
10152
10153 * gdbserver/linux-low.c: Remove all platform-specific code to
10154 new files. Remove various dead code. Update to use regcache
10155 functionality.
10156 * gdbserver/remote-utils.c (fromhex): Add return statement
10157 to quiet warning.
10158 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10159 constant.
10160 (input_interrupt): Add integer parameter to match prototype
10161 of a signal handler.
10162 (outreg): Use register_data ().
10163 (prepare_resume_reply): Use gdbserver_expedite_regs.
10164 * gdbserver/server.c (main): Dynamically allocate own_buf because
10165 PBUFSIZ is no longer constant. Use registers_to_string () and
10166 registers_from_string ().
10167 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10168 for error (), fatal (), and warning (). Update definition of
10169 PBUFSIZ to use regcache functionality. Add include guard.
10170 * gdbserver/utils.c (fatal): Add missing ``const''.
10171 (warning): New function.
10172
10173 * regformats/regdat.sh: Include "regcache.h" in generated files.
10174 Provide init_registers () function.
10175 * regformats/regdef.h: Add prototype for set_register_cache ().
10176 Add include guard.
10177
10178 * gdbserver/linux-arm-low.c: New file.
10179 * gdbserver/linux-i386-low.c: New file.
10180 * gdbserver/linux-ia64-low.c: New file.
10181 * gdbserver/linux-m68k-low.c: New file.
10182 * gdbserver/linux-mips-low.c: New file.
10183 * gdbserver/linux-ppc-low.c: New file.
10184 * gdbserver/linux-sh-low.c: New file.
10185
10186 * gdbserver/regcache.c: New file.
10187 * gdbserver/regcache.h: New file.
10188
10189 * gdbserver/low-linux.c: Removed obsolete file.
10190
4cc841d0
DJ
101912002-02-14 Daniel Jacobowitz <[email protected]>
10192
10193 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10194 * config/i386/linux.mt: Likewise.
10195 * config/ia64/linux.mt: Likewise.
10196 * config/m68k/linux.mh: Likewise.
10197 * config/powerpc/linux.mh: Likewise.
10198 * config/mips/linux.mt: Likewise.
10199
10200 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10201
10202 * config/i386/i386lynx.mh: Mark gdbserver variables
10203 as (currently) obsolete for this target.
10204 * config/i386/nbsd.mt: Likewise.
10205 * config/i386/nbsdelf.mt: Likewise.
10206 * config/m32r/m32r.mt: Likewise.
10207 * config/m68k/m68klynx.mh: Likewise.
10208 * config/m68k/nbsd.mt: Likewise.
10209 * config/m68k/sun3os4.mh: Likewise.
10210 * config/mips/vr5000.mt: Likewise.
10211 * config/ns32k/nbsd.mt: Likewise.
10212 * config/pa/hppabsd.mh: Likewise.
10213 * config/pa/hppaosf.mh: Likewise.
10214 * config/powerpc/nbsd.mt: Likewise.
10215 * config/rs6000/rs6000lynx.mh: Likewise.
10216 * config/s390/s390.mt: Likewise.
10217 * config/s390/s390x.mt: Likewise.
10218 * config/sparc/sparclynx.mh: Likewise.
10219 * config/sparc/sun4os4.mh: Likewise.
10220 * config/i386/x86-64linux.mt: Likewise.
10221 * config/sparc/linux.mh: Likewise.
10222
a85f51e7
DJ
102232002-02-14 Daniel Jacobowitz <[email protected]>
10224
10225 * configure.tgt: Configure gdbserver only for known working
10226 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10227 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10228 SUBDIRS if it is configured. Update comment for ${nativefile}.
10229 * configure: Regenerated.
10230
65554fef
MS
102312002-02-13 Michael Snyder <[email protected]>
10232
670a52db
MS
10233 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10234
6dbdc4a3
MS
10235 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10236 (default_gcore_mach): Just return 0, work around a problem in bfd.
10237 (default_gcore_target): OK to return NULL if exec_bfd is null.
10238 (make_mem_sec): Use a cast, avoid a warning.
10239
10240 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 10241 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
10242 sizeof (host pointer) != sizeof (target pointer)).
10243 (procfs_make_note_section): Avoid overflow in psargs string.
10244
aaa38bb5 10245 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
10246 implementation return an error.
10247
102482002-02-13 Rodney Brown <[email protected]>
10249
10250 * procfs.c (procfs_make_note_section): Provide a default definition
10251 (for alpha-dec-osf4.0f). Fix typos.
10252
1e4d76e7
EZ
102532002-02-13 Elena Zannoni <[email protected]>
10254
10255 * linux-proc.c: Add include of regcache.h.
10256 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10257
b6d1a1d5
AC
102582002-02-13 Andrew Cagney <[email protected]>
10259
10260 From 2002-01-18 Greg McGary <[email protected]>:
aaa38bb5
AJ
10261 * memattr.c (create_mem_region): Disallow useless empty region.
10262 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 10263 non-overlapping.
b6d1a1d5 10264
6c6ea35e
MC
102652002-02-13 Michael Chastain <[email protected]>
10266
10267 * defs.h: Kill CONST_PTR.
10268 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10269 * c-lang.c (c_builtin_types): Likewise.
10270 * ch-lang.c (ch_builtin_types): Likewise.
10271 * f-lang.c (f_builtin_types): Likewise.
10272 * language.c (unknown_builtin_types): Likewise.
10273 * m2-lang.c (m2_builtin_types): Likewise.
10274 * p-lang.c (pascal_builtin_types): Likewise.
10275 * scm-lang.c (c_builtin_types): Likewise.
10276
3e0b0f48
KS
102772002-02-13 Keith Seitz <[email protected]>
10278
10279 * arm-tdep.h (arm_get_next_pc): Add declaration.
10280
67255d04
RE
102812002-02-13 Richard Earnshaw <[email protected]>
10282
10283 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10284 with other related struct-returning functions.
10285 (arm_extract_struct_value_address): New function.
10286 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10287 initialize float_format, double_format and long_double_format as
10288 appropriate to the endianness of the target.
10289 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10290 (arm_use_struct_convention): Delete declaration.
10291 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10292
079777f6
KS
102932002-02-13 Keith Seitz <[email protected]>
10294
10295 * defs.h (core_addr_to_string_nz): New function.
10296
34588f23
MK
102972002-02-13 Mark Kettenis <[email protected]>
10298
10299 Apply missing bits of 2002-01-15 patch.
10300 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10301 (fill_fpregset): Use i387_fill_fsave.
10302
49b563f9
KS
103032002-02-12 Keith Seitz <[email protected]>
10304
49b563f9
KS
10305 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10306 (core_addr_to_string_nz): New function.
10307
aeb98c60
RE
103082002-02-11 Richard Earnshaw <[email protected]>
10309
10310 * arm-linux-nat.c: Really include arm-tdep.h.
10311 * config/arm/tm-linux.h (struct type, struct value): Declare.
10312
65554fef
MS
103132002-02-11 Michael Snyder <[email protected]>
10314
10315 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10316 (gcore section): Ifdef for Solaris and Unixware only.
10317 (procfs_do_thread_registers): Unixware needs one lwpstatus
10318 per thread (not one prstatus or pstatus).
10319 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10320 not over all gdb threads. For unixware, call elfcore_write_pstatus
10321 once before iterating over threads.
10322
34e8f22d
RE
103232002-02-11 Richard Earnshaw <[email protected]>
10324
10325 * arm-tdep.h: New file.
10326 * arm-tdep.c: Include arm-tdep.h.
10327 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10328 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10329 (arm_print_float_info, arm_register_type, convert_to_extended)
10330 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10331 (arm_extract_return_value, arm_register_name): Make static.
10332 (arm_software_single_step): Similarly. Fix types in declaration.
10333 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10334 (arm_store_return_value, arm_store_struct_return): New functions.
10335 (arm_gdbarch_init): Register the above functions. Also register
10336 call_dummy_start_offset, sizeof_call_dummy_words,
10337 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10338 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 10339 max_register_virtual_size, register_size. Set up
34e8f22d
RE
10340 prologue_cache.saved_regs here, rather than ...
10341 (_initialize_arm_tdep): ... here.
10342 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10343 declarations.
10344 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10345 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10346 (arm_print_float_info, arm_register_type, convert_to_extended)
10347 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10348 (arm_extract_return_value, arm_register_name): Delete declarations.
10349 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10350 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10351 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10352 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10353 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10354 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10355 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10356 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10357 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10358 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10359 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10360 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10361 interface.
10362 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10363 * remote-rdi.c remote-rdp.c: Likewise.
10364 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10365 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10366 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10367 definition.
10368
10369 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10370 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10371 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10372 from non-ARM_ prefixed definitions.
10373 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10374 all uses of above.
10375 * remote-rdi.c remote-rdp.c: Likewise.
10376 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10377
148754e5
RE
103782002-02-11 Richard Earnshaw <[email protected]>
10379
10380 * arm-tdep.c (arm_frameless_function_invocation)
10381 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10382 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10383 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10384 (arm_pop_frame, arm_get_next_pc): Make static.
10385 (arm_gdbarch_init): Register above in gdbarch structure.
10386 (arm_read_fp): Renamed from arm_target_read_fp.
10387 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10388 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10389 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10390 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10391 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10392 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10393 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
10394 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10395 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10396 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10397 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 10398
434d2d4f
DJ
103992002-02-10 Daniel Jacobowitz <[email protected]>
10400
10401 * symtab.c (compare_search_syms): New function.
10402 (sort_search_symbols): New function.
10403 (search_symbols): Sort symbols after searching rather than
10404 before.
10405
55241689
AC
104062002-02-10 Andrew Cagney <[email protected]>
10407
10408 * NEWS: Linux -> GNU/Linux.
10409
028c194b
AC
104102002-02-10 Andrew Cagney <[email protected]>
10411
10412 * gdbarch.sh: For for level one methods, disallow a definition
10413 when partially multi-arched. Add comments explaining rationale.
10414 * gdbarch.h: Re-generate.
10415
6acf50cd
AC
104162002-02-10 Andrew Cagney <[email protected]>
10417
10418 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10419 multi-arch partial.
aaa38bb5 10420
50248794
AC
104212002-02-10 Andrew Cagney <[email protected]>
10422
10423 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10424 field. Use diff -u.
10425 * gdbarch.c: Re-generate.
10426
c30e0066
AC
104272002-02-10 Andrew Cagney <[email protected]>
10428
9b56c5f3 10429 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
10430 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10431 partial.
10432
6e6d6484
AC
104332002-02-10 Andrew Cagney <[email protected]>
10434
10435 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10436 multi-arch partial.
10437 (PUSH_ARGUMENTS): Switch to using predefault.
10438 * gdbarch.c: Regenerate.
10439
c203844d
AC
104402002-02-10 Andrew Cagney <[email protected]>
10441
10442 * valops.c (PUSH_ARGUMENTS): Delete definition.
10443 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10444 partial. Default to default_push_arguments.
10445 * gdbarch.h, gdbarch.c: Regenerate.
10446
b5a2688f
AC
104472002-02-09 Andrew Cagney <[email protected]>
10448
10449 * defs.h (throw_exception): Rename return_to_top_level. Update
10450 comments.
10451 * utils.c (error_stream, internal_verror, quit): Ditto.
10452 * top.c (throw_exception, catcher): Ditto.
10453 * sparclet-rom.c (sparclet_load): Ditto.
10454 * remote.c (interrupt_query, minitelnet): Ditto.
10455 * remote-sds.c (interrupt_query): Ditto.
10456 * remote-mips.c (mips_error, mips_kill): Ditto.
10457 * ocd.c (interrupt_query): Ditto.
10458 * monitor.c (monitor_interrupt_query): Ditto.
10459 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10460 * target.h: Update comment.
aaa38bb5 10461
b5a2688f 10462 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 10463
2fa5c1e0
AC
104642002-02-09 Andrew Cagney <[email protected]>
10465
10466 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10467 default_double_format.
10468 * gdbarch.h, gdbarch.c: Re-generate.
10469 * findvar.c (floatformat_unknown): Delete variable definition.
10470 * doublest.h (floatformat_unknown): Delete variable declaration.
10471
da966255
JB
104722002-02-09 Jim Blandy <[email protected]>
10473
10474 * stabsread.c (read_type): Add code to parse Sun's syntax for
10475 prototyped function types.
10476
123a4891
AC
104772002-02-09 Andrew Cagney <[email protected]>
10478
10479 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10480 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10481
fb39c8f3
PS
104822002-02-09 Peter Schauer <[email protected]>
10483
10484 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10485 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10486 now _initialize_xcoffsolib gets called again and overrides the
10487 commands from solib.c in a native configuration.
10488
0b87a11d
MK
104892002-02-09 Mark Kettenis <[email protected]>
10490
10491 * doublest.c (store_typed_floating): Don't try to return a value.
10492 Fixes PR gdb/290.
10493
bdc2fc72
JB
104942002-02-08 Jim Blandy <[email protected]>
10495
10496 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10497 is prototyped and has no arguments, print its argument list as
10498 `(void)'.
10499
da69bbcf
CD
105002002-02-08 Chris Demetriou <[email protected]>
10501
10502 * MAINTAINERS (write-after-approval): Add myself.
10503 (paper-trail): I've escaped!
aaa38bb5 10504
b69571f5
CF
105052002-02-08 Christopher Faylor <[email protected]>
10506
10507 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10508 changes.
10509 (_initialize_check_for_gdb_ini): Ditto.
10510
f6871398
MH
105112002-02-08 Martin M. Hunt <[email protected]>
10512
10513 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10514 xaprintf -> xasprintf.
10515
4e52d31c
PM
105162002-02-08 Pierre Muller <[email protected]>
10517
10518 * win32-nat.c: Remove use of printf and sprintf functions.
10519
39bbf761
RE
105202002-02-08 Richard Earnshaw <[email protected]>
10521
10522 * arm-tdep.c (arm_frame_chain_valid): Make static.
10523 (arm_push_arguments): Likewise.
10524 (arm_gdbarch_init): New function.
10525 (_initialize_arm_tdep): Call it.
10526 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10527 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10528 (FRAME_CHAIN_VALID): Delete.
10529 (arm_frame_chain_valid): Delete declaration.
10530 (PUSH_ARGUMENTS): Delete.
10531 (arm_push_arguments): Delete declaration.
10532 (CALL_DUMMY_P): Delete.
10533
9c9532c9
CV
105342002-02-08 Andrew Cagney <[email protected]>
10535 Corinna Vinschen <[email protected]>
10536
10537 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10538 on builtin float types.
10539
4e8f7a8b
DJ
105402002-02-08 Daniel Jacobowitz <[email protected]>
10541
10542 * utils.c: Include <curses.h> before "bfd.h".
10543 * tui/tui-hooks.c: Likewise.
10544 * tui/tui.c: Likewise.
10545 * tui/tuiCommand.c: Likewise.
10546 * tui/tuiData.c: Likewise.
10547 * tui/tuiDataWin.c: Likewise.
10548 * tui/tuiDisassem.c: Likewise.
10549 * tui/tuiGeneralWin.c: Likewise.
10550 * tui/tuiIO.c: Likewise.
10551 * tui/tuiLayout.c: Likewise.
10552 * tui/tuiRegs.c: Likewise.
10553 * tui/tuiSource.c: Likewise.
10554 * tui/tuiSourceWin.c: Likewise.
10555 * tui/tuiStack.c: Likewise.
10556 * tui/tuiWin.c: Likewise.
10557
cd4bffcf
EZ
105582002-02-07 Elena Zannoni <[email protected]>
10559
10560 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10561 to include space for pseudoregs as well. Update loops accordingly.
10562 (sh_fp_frame_init_saved_regs): Ditto.
10563 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10564
26806ce2
AC
105652002-02-07 Andrew Cagney <[email protected]>
10566
10567 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10568 Add Richard Earnshaw to Arm maintainers.
10569
97fdab62
AC
105702002-02-07 Andrew Cagney <[email protected]>
10571
a6b98203
AC
10572 * defs.h (warning_begin): Delete declaration.
10573
97fdab62
AC
10574 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10575 Delete macro.
10576
78b29b40
MS
105772002-02-07 Michael Snyder <[email protected]>
10578
aaa38bb5 10579 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
10580 Logic bug, remove misplaced else.
10581
d8849953
KD
105822002-02-07 Klee Dienes <[email protected]>
10583
10584 * fork-inferior.c (fork_inferior): Add '!' to the list of
10585 characters that need to be quoted when building a string for the
10586 shell. Quote '!' specifically with a backslash, since CSH chokes
10587 when trying to evaluate "str!str".
aaa38bb5 10588
095778a0
NC
105892002-02-06 Nick Clifton <[email protected]>
10590
10591 * rdi-share/host.h: Only provide a typedef for bool if it is not
10592 defined.
10593
1900040c
MS
105942002-02-04 Michael Snyder <[email protected]>
10595
10596 * breakpoint.h (enum bptype): Add new overlay event bp type.
10597 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 10598
1900040c
MS
10599 * breakpoint.c (create_internal_breakpoint): New function.
10600 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10601 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10602 (create_thread_event_breakpoint): Ditto.
10603 (create_solib_event_breakpoint): Ditto.
10604 (create_overlay_event_breakpoint): New function.
10605 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10606 (update_breakpoints_after_exec): Delete and re-initialize
10607 overlay event breakpoints after an exec. Add FIXME comment
10608 about longjmp breakpoint.
10609 (print_it_typical): Ignore overlay event breakpoints.
10610 (print_one_breakpoint): Ditto.
10611 (mention): Ditto.
10612 (bpstat_what): Do not stop for overlay event breakpoints.
10613 (delete_breakpoint): Don't delete overlay event breakpoints.
10614 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10615 (breakpoint_re_set): Re-create overlay event breakpoint.
10616
10617 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10618 (overlay_manual_command): Disable overlay breakpoints.
10619 (overlay_off_command): Disable overlay breakpoints.
10620
082fc60d
RE
106212002-02-06 Richard Earnshaw <[email protected]>
10622
10623 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10624 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10625 to here from config/tm-arm.h.
10626 (coff_sym_is_thumb): Make static.
10627 (arm_elf_make_msymbol_special): New function.
10628 (arm_coff_make_msymbol_special): New function.
10629 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10630 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10631 (coff_sym_is_thumb): Delete declaration.
10632 (arm_elf_make_msymbol_special): Declare.
10633 (arm_coff_make_msymbol_special): Declare.
10634 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10635 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10636
039c5766
RE
106372002-02-06 Richard Earnshaw <[email protected]>
10638
10639 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10640
106412002-02-06 Richard Earnshaw <[email protected]>
10642
10643 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10644 * gdbarch.c gdbarch.h: Regenerate.
10645 * arch-utils.c (default_print_float_info): New function.
10646 * arch-utils.h (default_print_float_info): Prototype it.
10647 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10648 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10649 (PRINT_FLOAT_INFO): Document it.
10650
10651 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10652 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10653 (PRINT_FLOAT_INFO): Define.
10654
58fa08f0
PM
106552002-02-06 Pierre Muller <[email protected]>
10656
aaa38bb5 10657 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10658 Add typecast to sprintf argument to suppress a warning.
10659
7393af7c
PM
106602002-02-05 Pierre Muller <[email protected]>
10661
58fa08f0 10662 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10663 to allow easier handling of pass state.
10664 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10665 that gives exception name and address.
10666 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10667 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10668 exceptions added.
aaa38bb5
AJ
10669 (child_continue): Correctly report continue_status.
10670 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10671 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10672 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10673 the exception should be passed to debuggee or not.
10674
6af4589c
MS
106752002-02-05 Michael Snyder <[email protected]>
10676
10677 * regcache.c (fetch_register): Call target_fetch_register
10678 only if we don't call FETCH_PSEUDO_REGISTER.
10679 (store_register): Call target_store_register only if we
10680 don't call STORE_PSEUDO_REGISTER.
10681
a2cf933a
EZ
106822002-02-05 Elena Zannoni <[email protected]>
10683
10684 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10685 ELF_MAKE_MSYMBOL_SPECIAL.
10686 * gdbarch.c, gdbarch.h: Regenerate.
10687 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10688 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10689 * elfread.c (elf_symtab_read): Compile use of
10690 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10691 multiarched.
10692 * coffread.c (coff_symtab_read): Ditto, for
10693 COFF_MAKE_MSYMBOL_SPECIAL.
10694
6bb7be43
JB
106952002-02-05 Jim Blandy <[email protected]>
10696
10697 * solib-svr4.c (svr4_truncate_ptr): New function.
10698 (svr4_relocate_section_addresses): Do the address arithmetic with
10699 the appropriate truncation for target addresses, even when
10700 CORE_ADDR is larger than a target address.
10701
e18651ec
DJ
107022002-02-05 Daniel Jacobowitz <[email protected]>
10703
10704 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10705 to (int *).
10706
6b2725be
DJ
107072002-02-05 Daniel Jacobowitz <[email protected]>
10708
10709 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10710 code.
10711
fca9e603
DJ
107122002-02-05 Daniel Jacobowitz <[email protected]>
10713
10714 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10715
6c537a52
DJ
107162002-02-05 Daniel Jacobowitz <[email protected]>
10717
10718 * gdbserver/linux-low.c: Remove unused include files.
10719
d844cde6
DJ
107202002-02-05 Daniel Jacobowitz <[email protected]>
10721
10722 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10723 (read_inferior_memory): Use it.
10724 (write_inferior_memory): Likewise.
10725
d07c63e7
DJ
107262002-02-05 Daniel Jacobowitz <[email protected]>
10727
10728 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10729 grubbing through sys_errlist.
10730
da6d8c04
DJ
107312002-02-05 Daniel Jacobowitz <[email protected]>
10732
10733 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10734
5b421780
PM
107352002-02-04 Pierre Muller <[email protected]>
10736 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10737
9f60d481
AC
107382002-02-04 Andrew Cagney <[email protected]>
10739
10740 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10741 (do_sfunc, set_cmd_sfunc): New functions.
10742
10743 * command.h (struct cmd_list_element): Add field func.
10744 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10745 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10746 * cli/cli-decode.h: Ditto.
10747
10748 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10749 (help_all, help_cmd_list): Ditto.
10750 (find_cmd, complete_on_cmdlist): Ditto.
10751 * top.c (execute_command): Ditto.
10752
10753 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10754 function.sfunc.
10755
10756 * infcmd.c (notice_args_read): Fix function signature.
10757
10758 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10759 * cli/cli-decode.c (add_set_cmd): Ditto.
10760 * utils.c (initialize_utils): Ditto.
10761 * maint.c (_initialize_maint_cmds): Ditto.
10762 * infrun.c (_initialize_infrun): Ditto.
10763 * demangle.c (_initialize_demangler): Ditto.
10764 * remote.c (add_packet_config_cmd): Ditto.
10765 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10766 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10767 * proc-api.c (_initialize_proc_api): Ditto.
10768 * kod.c (_initialize_kod): Ditto.
10769 * valprint.c (_initialize_valprint): Ditto.
10770 * top.c (init_main): Ditto.
10771 * infcmd.c (_initialize_infcmd): Ditto.
10772 * corefile.c (_initialize_core): Ditto.
10773 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10774 * arch-utils.c (initialize_current_architecture): Ditto.
10775 (_initialize_gdbarch_utils): Ditto.
10776 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10777
10778 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10779 * wince.c (_initialize_inftarg): Ditto.
10780 * symfile.c (_initialize_symfile): Ditto.
10781 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10782 * language.c (_initialize_language): Ditto.
10783 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10784
f9ba0717
MS
107852002-02-04 Michael Snyder <[email protected]>
10786
10787 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10788
0c74b2a7
DJ
107892002-02-04 Daniel Jacobowitz <[email protected]>
10790
10791 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10792 Add rules for building the register data files.
10793
c638789f
DJ
107942002-02-04 Daniel Jacobowitz <[email protected]>
10795
10796 * regformats/regdat.sh: Add braces to the definition of
10797 expedite_regs_${arch}.
10798
db253027
DJ
107992002-02-04 Daniel Jacobowitz <[email protected]>
10800
10801 * regformats/regdef.h (struct reg): Add comment describing the
10802 requirements for offset and size fields.
10803
206be19c
AS
108042002-02-04 Andreas Schwab <[email protected]>
10805
10806 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10807 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10808
181c1381
RE
108092002-02-04 Richard Earnshaw <[email protected]>
10810
10811 * gdbarch.sh (copyright): Update years in generated header.
10812 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10813 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10814 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10815 * dbxread.c: Likewise.
10816 * dwarfread.c: Likewise.
10817 * elfread.c: Likewise.
10818 * somread.c: Likewise.
10819
10820 * arm-tdep.c (arm_smash_text_address): New function.
10821 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10822
fa4ba8da
PM
108232002-02-04 Pierre Muller <[email protected]>
10824
10825 Add support for hardware watchpoints on win32 native.
aaa38bb5 10826 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10827 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10828 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10829 of debug registers.
10830 (debug_registers_changed): New variable. Reflects when debug registers
10831 are changed and need to be written to inferior.
aaa38bb5 10832 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10833 was set, used when new threads are created.
10834 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10835 i386-nat code.
10836 (thread_rec): Set dr array if id is the thread of current_event .
10837 (child_continue, child_resume): Change the debug registers for all
10838 threads if debug_registers_changed.
10839 (child_add_thread): Change the debug registers if debug_registers_used.
10840 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10841 Link nm.h to new nm-cygwin.h file.
10842 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10843 of hardware registers.
10844
a73c86fb
AC
108452002-02-03 Andrew Cagney <[email protected]>
10846
10847 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10848 Restore behavour broken by 2002-01-20 Andrew Cagney
10849 <[email protected]> IEEE_FLOAT removal.
10850
acf5ed49
DJ
108512002-02-03 Daniel Jacobowitz <[email protected]>
10852
10853 * c-valprint.c (c_val_print): Pass a proper valaddr to
10854 cp_print_class_method.
10855 * valops.c (search_struct_method): If there is only one method
10856 and args is NULL, return that method.
10857
493d28d5
DJ
108582002-02-03 Daniel Jacobowitz <[email protected]>
10859
10860 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10861 accessing tag_name directly.
10862
7495dfdb
DJ
108632002-02-03 Daniel Jacobowitz <[email protected]>
10864
10865 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10866 of accessing tag_name directly.
10867
dd6bda65
DJ
108682002-02-03 Daniel Jacobowitz <[email protected]>
10869
10870 PR gdb/280
10871 * gdbtypes.c (replace_type): New function.
10872 * gdbtypes.h (replace_type): Add prototype.
10873 * stabsread.c (read_type): Use replace_type.
10874
88fe217c
RE
108752002-02-03 Richard Earnshaw <[email protected]>
10876
10877 * Makefile.in (memattr.o): Add missing dependencies rule.
10878
e5d66720
PS
108792002-02-03 Peter Schauer <[email protected]>
10880
10881 * breakpoint.c (break_at_finish_command): Really export.
10882 (break_at_finish_at_depth_command): Ditto.
10883 (tbreak_at_finish_command): Ditto.
10884 * hppa-tdep.c: Include completer.h.
10885 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10886 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10887
fffee0be
AC
108882002-02-01 Andrew Cagney <[email protected]>
10889
10890 * utils.c (do_write): New function.
10891 (error_stream): Rewrite combining the code from error_begin and
10892 verror.
10893 (verror): Rewrite using error_stream.
10894 (error_begin): Delete function.
10895
255e7dbf
AC
108962002-02-01 Andrew Cagney <[email protected]>
10897
10898 * utils.c (error_begin): Make static.
10899 * defs.h (error_begin): Delete declaration.
10900
10901 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10902 (decode_line_1): Use cplusplus_error instead of error_begin,
10903 cplusplus_hint and return_to_top_level.
10904 * coffread.c (coff_symfile_read): Use error instead of error_begin
10905 and return_to_top_level.
10906 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10907
ddfe3c15
AC
109082002-02-01 Andrew Cagney <[email protected]>
10909
10910 * language.h (type_error, range_error): Make string parameter
10911 constant.
10912 * language.c (warning_pre_print): Delete extern declaration.
10913 * dwarfread.c (warning_pre_print): Ditto.
10914 * language.c (type_error, range_error): Rewrite to use verror and
10915 vwarning instead of warning_begin.
10916
03ac34d5
MS
109172002-02-01 Michael Snyder <[email protected]>
10918
261c4ca2
MS
10919 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10920 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10921
e00d1dc8
AC
109222002-02-01 Andrew Cagney <[email protected]>
10923
10924 * command.h (NO_FUNCTION): Delete macro.
10925 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10926 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10927 * tracepoint.c (_initialize_tracepoint): Ditto.
10928 * cli/cli-decode.c (add_set_cmd): Ditto.
10929 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10930
76b79d6e
DJ
109312002-02-01 Daniel Jacobowitz <[email protected]>
10932
10933 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10934 Update ``this'' pointer when calling virtual functions.
10935
799f9e91
MS
109362002-02-01 Michael Snyder <[email protected]>
10937
c7bd442c 10938 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10939 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10940
3cf384d4
DJ
109412002-02-01 Daniel Jacobowitz <[email protected]>
10942
10943 * regformats/reg-arm.dat: New file.
10944 * regformats/reg-i386.dat: New file.
10945 * regformats/reg-ia64.dat: New file.
10946 * regformats/reg-m68k.dat: New file.
10947 * regformats/reg-mips.dat: New file.
10948 * regformats/reg-ppc.dat: New file.
10949 * regformats/reg-sh.dat: New file.
10950 * regformats/regdef.h: New file.
10951 * regformats/regdat.sh: New file.
10952
0defa245
RE
109532002-02-01 Richard Earnshaw <[email protected]>
10954
10955 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10956 (arm_frame_args_address, arm_frame_locals_address): New functions.
10957 (arm_frame_num_args): New function.
10958 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10959 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10960 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10961
405f26e6
MS
109622002-01-31 Michael Snyder <[email protected]>
10963
502fd408
MS
10964 * breakpoint.c (break_at_finish_command): Export.
10965 (break_at_finish_at_depth_command): Export.
10966 (tbreak_at_finish_command): Export.
d6020d45 10967 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 10968 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 10969 "txbreak" commands, which are HPPA specific.
502fd408 10970
7d35e135
MS
10971 * printcmd.c (disassemble_command): Remove an ancient
10972 artifact of an old merge.
10973
aaa38bb5 10974 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10975 Define enum constant values for overlay mode.
10976 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10977 (overlay_is_mapped, overlay_auto_command,
10978 overlay_manual_command): Ditto.
d874f1e2 10979
aaa38bb5
AJ
10980 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10981 breakpoint_here_p, breakpoint_inserted_here_p,
10982 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10983 describe_other_breakpoints, check_duplicates, clear_command):
10984 Coding standard fixes.
10985
8add0441 10986 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10987 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10988 code: check bfd SEC_READONLY flag for section.
10989
e351066e
AC
109902002-01-31 Andrew Cagney <[email protected]>
10991
7d35e135 10992 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10993
8a48e967
DJ
109942002-01-30 Daniel Jacobowitz <[email protected]>
10995
10996 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10997 data symbols, since we search based on textlow and texthigh.
10998 (find_pc_sect_symtab): Likewise.
10999
f5a96129
AC
110002002-01-30 Andrew Cagney <[email protected]>
11001
11002 * defs.h (vwarning): Declare.
f5a96129
AC
11003 * utils.c (vwarning): New function.
11004 (warning): Call vwarning.
11005 (warning_begin): Delete function.
11006
11007 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11008 the warning message.
11009 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11010 warning_begin.
11011
cefd4ef5
MS
110122002-01-30 Michael Snyder <[email protected]>
11013
1a703748
MS
11014 * NEWS: Mention "set trust-readonly-sections" command.
11015 Mention generate-core-file command.
cefd4ef5 11016
3a11626d
MS
110172002-01-15 Michael Snyder <[email protected]>
11018
11019 * target.c: New command, "set trust-readonly-sections on".
11020 (do_xfer_memory): Honor the suggestion to trust readonly sections
11021 by reading them from the object file instead of from the target.
11022 (initialize_targets): Register command "set trust-readonly-sections".
11023
d1c7e53b
AC
110242002-01-29 Andrew Cagney <[email protected]>
11025
11026 * parse.c (target_map_name_to_register): Simplify, search regs and
11027 pseudo-regs using a single loop.
11028
e2c9a72c
AC
110292002-01-30 Andrew Cagney <[email protected]>
11030
11031 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11032
69824b4e
MK
110332002-01-15 Rodney Brown <[email protected]>
11034
11035 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11036 * config/i386/i386v42mp.mh: Add i387-nat.o .
11037 * i386v4-nat.c: Include i387-nat.h.
11038 (supply_fpregset): Use i387_supply_fsave.
11039 (fill_fpregset): Use i387_fill_fsave.
11040
6eb69eab
RE
110412002-01-30 Richard Earnshaw <[email protected]>
11042
11043 * arm-tdep.c (arm_call_dummy_words): Define.
11044 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11045 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11046 (CALL_DUMMY_WORDS): Define.
11047 (arm_call_dummy_words): Declare.
11048 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11049 (arm_linux_call_dummy_words): Declare.
11050
9852326a
AS
110512002-01-30 Andreas Schwab <[email protected]>
11052
11053 * m68klinux-nat.c: Fix last change to use regcache_collect
11054 instead of referencing registers[] directly.
11055
977a3030
AC
110562002-01-29 Andrew Cagney <[email protected]>
11057
11058 * parse.c (target_map_name_to_register): Delete code wrapped in
11059 #ifdef REGISTER_NAME_ALIAS_HOOK.
11060
2076c72b
MS
110612002-01-28 Michael Snyder <[email protected]>
11062
11063 * regcache.c (legacy_read_register_gen): Need to be able to
11064 read pseudo-register as well as real register.
11065 (legacy_write_register_gen): Ditto.
11066
8fcc723b
AC
110672002-01-28 Andrew Cagney <[email protected]>
11068
11069 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11070 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11071 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11072 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11073 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11074 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11075 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11076 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11077 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11078 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11079 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11080 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11081 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11082 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11083 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11084 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11085 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11086 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11087 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11088 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11089
afe64c1a
AC
110902002-01-28 Andrew Cagney <[email protected]>
11091
11092 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11093 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11094 (initialize_current_architecture): Update target_byte_order using
11095 information from BFD.
aaa38bb5 11096 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
11097 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11098
75bc7ddf
AC
110992002-01-28 Andrew Cagney <[email protected]>
11100
11101 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11102 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11103
11104 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11105 #ifdef INVALID_FLOAT.
11106 * infcmd.c (do_registers_info): Ditto.
11107 * values.c (unpack_double): Ditto. Add comment.
11108
11109 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11110 already commented out.
11111
0280a90a
AS
111122002-01-26 Andreas Schwab <[email protected]>
11113
11114 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11115 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11116 registers and add support for PTRACE_GETREGS.
11117
7072a954
AC
111182002-01-24 Andrew Cagney <[email protected]>
11119
11120 GDB 5.1.1 released from 5.1 branch.
11121 * NEWS: Add 5.1.1 news.
11122 * README: Sync with 5.1 branch.
11123
86f902e0
FF
111242002-01-23 Fred Fish <[email protected]>
11125
11126 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11127 stabstring on initial malloc. Reallocing will copy it for us,
11128 if necessary.
11129
8af51c36
EZ
111302002-01-23 Elena Zannoni <[email protected]>
11131
aaa38bb5 11132 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
11133 (HFILES_NO_SRCDIR): Remove hpread.h.
11134 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11135 (hpread.o): Update dependencies.
11136 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11137
11138 * hp-psymtab-read.c: Remove file.
11139 * hp-symtab-read.c: Remove file.
11140 * hpread.h: Remove file.
11141
11142 * hpread.c: Merge all contents of hp-psymtab-read.c,
11143 hp-symtab-read.c and hpread.h into this file, as it was prior to
11144 January 1999.
11145
11146 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 11147 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
11148 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11149 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11150
dc5cfeb6
EZ
111512002-01-23 Elena Zannoni <[email protected]>
11152
11153 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11154 fill_gregset): Call gdbarch_tdep() just once, assign result to
11155 variable and use that, instead of calling the function several
11156 times.
11157
ea87b71b
AO
111582002-01-24 Alexandre Oliva <[email protected]>
11159
11160 * configure.host: Accept sparcv9 as alias for sparc64.
11161 * configure.tgt: Likewise.
11162
13fc0c2f
KB
111632002-01-22 Kevin Buettner <[email protected]>
11164
11165 * solib-aix5.c (build_so_list_from_mapfile)
11166 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11167 arguments is not reversed.
11168 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11169 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 11170
7bd872fe
EZ
111712002-01-22 Elena Zannoni <[email protected]>
11172
11173 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11174 modified version of obsolete sh_fetch_pseudo_register.
11175 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11176 (sh4_register_read): New function.
11177 (sh_pseudo_register_write): New function. Renamed and modified
11178 version of obsolete sh_store_pseudo_register.
11179 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11180 (sh4_register_write): New function.
11181 (sh_gdbarch_init): Remove setting of gdbarch function
11182 fetch_pseudo_register and store_pseudo_register. Remove setting of
11183 register_convert_to_raw, register_convert_to_virtual,
11184 register_convertible.
11185 (sh_sh4_register_convertible): Delete. No longer needed. All is
11186 taken care by architecture specific functions
11187 register_read/register_write.
11188 (sh_sh4_register_convert_to_virtual): Make static.
11189 (sh_sh4_register_convert_to_raw): Ditto.
11190
069e84fd
AC
111912002-01-22 Andrew Cagney <[email protected]>
11192
11193 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11194 (floatformat_is_nan, floatformat_mantissa): Ditto.
11195
11196 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11197 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11198 builtin_type_ieee_double_little,
11199 builtin_type_ieee_double_littlebyte_bigword,
11200 builtin_type_m68881_ext, builtin_type_i960_ext,
11201 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11202 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11203 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11204 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11205
211a4f69
CV
112062002-01-22 Corinna Vinschen <[email protected]>
11207
11208 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11209 parameter. Set frameless flag if it exists and depended of
11210 whether the scanned function is frameless or not.
11211 (xstormy16_skip_prologue): If function is frameless, return
11212 result of xstormy16_scan_prologue().
11213 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11214 call.
11215
f81353e4
EZ
112162002-01-21 Elena Zannoni <[email protected]>
11217
11218 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11219 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11220 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11221 sh_sh4_register_byte, sh_sh4_register_raw_size,
11222 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11223 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11224 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11225 sh_store_pseudo_register, sh_do_pseudo_register): Call
11226 gdbarch_tdep() just once, assign result to variable and use that,
11227 instead of calling the function several times.
11228
63c73a17
MK
112292002-01-20 Mark Kettenis <[email protected]>
11230
11231 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11232 macros instead of LAST_FPU_CTRL_REGNUM.
11233 (store_register): Likewise.
11234
39ad761d
JB
112352002-01-21 Jim Blandy <[email protected]>
11236
11237 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11238 is up-to-date before running the program, not just when a program
11239 exits.
11240
3d74b771
FF
112412002-01-21 Fred Fish <[email protected]>
11242
11243 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11244 when we have found all instructions we are looking for.
11245
966fbf70
RE
112462002-01-21 Richard Earnshaw <[email protected]>
11247
11248 * arm-tdep.c (arm_register_name): New function.
11249 (arm_registers_names): Make static.
11250 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11251 (arm_register_name): Declare.
11252 (REGISTER_NAME): Use it.
11253
c3b4394c
RE
112542002-01-21 Richard Earnshaw <[email protected]>
11255 Kevin Buettner <[email protected]>
11256
11257 Convert arm targets to new FRAME interface.
11258 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11259 (arm_frame_find_save_regs): Delete.
11260 (arm_frame_init_saved_regs): New.
11261 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11262 Allocate extra_info as required. Convert all uses of fsr.regs
11263 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11264 to use extra_info.
11265 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11266 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11267 (check_prologue_cache, save_prologue_cache): Likewise.
11268 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11269 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11270 (FRAME_FIND_SAVED_REGS): Delete.
11271 (arm_frame_find_saved_regs): Delete prototype.
11272 (arm_frame_init_saved_regs): New prototype.
11273 (FRAME_INIT_SAVED_REGS): Define.
11274
61d99182
AC
112752002-01-20 Andrew Cagney <[email protected]>
11276
11277 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11278
6aaea291
AC
112792002-01-20 Andrew Cagney <[email protected]>
11280
11281 From Jeff Law <[email protected]>:
11282 * infttrace.c: Include <sys/pstat.h>.
11283 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11284 exec file if the ttrace equivalent fails.
11285
15f698d2
AC
112862002-01-20 Andrew Cagney <[email protected]>
11287
11288 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11289 (closeLogFile): Ditto.
11290
f86ddd7c
MC
112912002-01-20 Michael Chastain <[email protected]>
11292
11293 * top.c (print_gdb_version): Bump copyright year to 2002.
11294
904507ce
AC
112952002-01-20 Andrew Cagney <[email protected]>
11296
11297 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11298 Zannoni and Eli Zaretskii.
11299
d7f0b9ce
DJ
113002002-01-20 Daniel Jacobowitz <[email protected]>
11301
11302 * buildsym.c: Update copyright years.
11303 * c-typeprint.c: Likewise.
11304 * dwarf2read.c: Likewise.
11305 * f-typeprint.c: Likewise.
11306 * gdbtypes.c: Likewise.
11307 * gdbtypes.h: Likewise.
11308 * hp-symtab-read.c: Likewise.
11309 * hpread.c: Likewise.
11310 * mdebugread.c: Likewise.
11311 * p-typeprint.c: Likewise.
11312
3fd3d7d2
AC
113132002-01-20 Andrew Cagney <[email protected]>
11314
11315 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11316 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11317 byte-order selectable.
11318 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11319 * arch-utils.c: Ditto.
11320 (set_endian): Ditto.
11321 (set_endian_from_file): Ditto.
11322 * gdbserver/low-sim.c (create_inferior): Ditto.
11323 * gdbarch.sh: Ditto.
11324 * gdbarch.h: Re-generate.
aaa38bb5
AJ
11325 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11326 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11327 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11328 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11329 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11330 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11331 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
11332 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11333 macro definition.
11334 * config/mips/tm-wince.h: Remove #undef of macro
11335 TARGET_BYTE_ORDER_SELECTABLE.
11336 * config/sh/tm-wince.h: Ditto.
11337
b02dede2
DJ
113382002-01-20 Daniel Jacobowitz <[email protected]>
11339
11340 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11341 member function fields. Add accessor macro
11342 TYPE_FN_FIELD_ARTIFICIAL.
11343 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11344 * c-typeprint.c (c_type_print_base): Skip artificial member
11345 functions.
11346
c3643761
DJ
113472002-01-20 Daniel Jacobowitz <[email protected]>
11348
11349 * f-typeprint.c: Delete unused function f_type_print_args.
11350 * p-typeprint.c: Delete unused function pascal_type_print_args.
11351
8176bb6d
DJ
113522002-01-20 Daniel Jacobowitz <[email protected]>
11353
11354 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11355 comment. Add ``artificial'' to ``union field_location''.
11356
11357 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11358
11359 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11360 * mdebugread.c (parse_symbol): Likewise.
11361 * stabsread.c (define_symbol): Likewise.
11362 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11363 initializing TYPE_FIELD_BITPOS to n (obsolete).
11364 (hpread_doc_function_type): Likewise.
11365 * hpread.c (hpread_function_type): Likewise.
11366
7fd60527
AC
113672002-01-20 Andrew Cagney <[email protected]>
11368
11369 * configure.in (host_makefile_frag): Only require a host makefile
11370 fragment when a native build.
11371 * configure: Re-generate.
11372
c2f05ac9
AC
113732002-01-20 Andrew Cagney <[email protected]>
11374
11375 * doublest.h (floatformat_from_type): Declare.
11376 * doublest.c (floatformat_from_type): New function.
11377 (convert_typed_floating): Use.
11378
11379 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11380 call to function floatformat_from_type.
11381
11382 * gdbarch.sh (IEEE_FLOAT): Delete.
11383 * gdbarch.h, gdbarch.c: Re-generate.
11384 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11385 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11386 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11387 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11388 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11389 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11390 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11391 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11392 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11393 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11394 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
11395 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11396
11397 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11398 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11399 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11400 * sh-tdep.c (sh_gdbarch_init): Ditto.
11401 * mips-tdep.c (mips_gdbarch_init): Ditto.
11402 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11403 * cris-tdep.c (cris_gdbarch_init): Ditto.
11404
abf22e64
AJ
114052002-01-20 Jiri Smid <[email protected]>
11406
11407 * configure.host, configure.tgt: Support x86-64.
11408 * NEWS: Note new target x86-64.
11409
b7c4cbf8
AJ
11410 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11411 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11412 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11413 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11414 x86-64-linux-nat.o): Fix dependencies.
11415
82600034
AC
114162002-01-19 Andrew Cagney <[email protected]>
11417
11418 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11419 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11420 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11421 * config/sparc/xm-sun4os4.h: Delete file.
11422 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 11423
bbe5c628
AC
114242002-01-19 Andrew Cagney <[email protected]>
11425
11426 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11427 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11428 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11429 * config/i386/i386lynx.mh (XM_FILE): Delete.
11430 * config/rs6000/xm-rs6000ly.h: Delete file.
11431 * config/sparc/xm-sparclynx.h: Delete file.
11432 * config/m68k/xm-m68klynx.h: Delete file.
11433 * config/i386/xm-i386lynx.h: Delete file.
11434 * config/xm-lynx.h: Delete file.
11435 * config/djgpp/fnchange.lst: Update.
11436
f8453e34
JT
114372002-01-19 Jason Thorpe <[email protected]>
11438
11439 * alpha-tdep.c (alpha_register_byte): New function.
11440 (alpha_register_raw_size): Ditto.
11441 (alpha_register_virtual_size): Ditto.
11442 (alpha_skip_prologue_internal): Renamed from
11443 alpha_skip_prologue.
11444 (alpha_skip_prologue): New version that calls
11445 alpha_skip_prologue_internal.
11446 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11447 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11448 second argument from alpha_skip_prologue.
11449 (REGISTER_BYTE): Use alpha_register_byte.
11450 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11451 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11452 (FRAMELESS_FUNCTION_INVOCATION): Use
11453 generic_frameless_function_invocation_not.
11454 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11455 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11456
52d9e613
AC
114572002-01-19 Andrew Cagney <[email protected]>
11458
11459 * config/mips/xm-news-mips.h: Delete file.
11460 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11461
11462 * config/m88k/xm-m88k.h: Delete file.
11463 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11464 * config/m88k/xm-delta88v4.h: Ditto.
11465 * config/m88k/xm-delta88.h: Ditto.
11466
11467 * config/alpha/xm-fbsd.h: Delete file.
11468 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11469
11470 * config/sparc/xm-sparc.h: Delete file.
11471 * Makefile.in (xm-sun4os4.h): Delete dependency.
11472 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11473 * config/sparc/xm-sun4os4.h: Ditto.
11474 * config/sparc/xm-linux.h: Ditto.
11475
11476 * config/i386/xm-windows.h: Delete file.
11477
2d1b2124
AC
114782002-01-19 Andrew Cagney <[email protected]>
11479
11480 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11481 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11482
ee1f65f0
JT
114832002-01-19 Jason Thorpe <[email protected]>
11484
11485 * alpha-tdep.c (alpha_call_dummy_words): New.
11486 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11487 (CALL_DUMMY_P): Define.
11488 (CALL_DUMMY_WORDS): Define.
11489 (SIZEOF_CALL_DUMMY_WORDS): Define.
11490
98081e55
PB
114912002-01-19 Per Bothner <[email protected]>
11492
11493 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11494 isn't NULL, which can happen with some gcj-3.x-produced code.
11495
0d056799
JT
114962002-01-19 Jason Thorpe <[email protected]>
11497
11498 * alpha-tdep.c (alpha_register_virtual_type): New function.
11499 (alpha_init_frame_pc_first): Ditto.
11500 (alpha_fix_call_dummy): Ditto.
11501 (alpha_store_struct_return): Ditto.
11502 (alpha_extract_struct_value_address): Ditto.
11503 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11504 alpha_register_virtual_type.
11505 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11506 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11507 alpha_extract_struct_value_address.
11508 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11509 (INIT_FRAME_PC): Use init_frame_pc_noop.
11510 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11511
4604bcad
MK
115122002-01-19 Mark Kettenis <[email protected]>
11513
11514 * i386gnu-nat.c: Include "i386-tdep.h".
11515 (fetch_fpregs): Simplify code dealing with uninitialized floating
11516 point states such that it doesn't require FP7_REGNUM.
11517
140f9984
JT
115182002-01-18 Jason Thorpe <[email protected]>
11519
abf22e64
AJ
11520 * alpha-tdep.c (frame_extra_info): New.
11521 (alpha_find_saved_regs): Make static. Use
140f9984
JT
11522 frame->extra_info.
11523 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
11524 (alpha_frame_saved_pc): Use frame->extra_info.
11525 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11526 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
11527 (init_extra_frame_info): Rename to...
11528 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 11529 (alpha_print_extra_frame_info): New function.
140f9984
JT
11530 (alpha_frame_locals_address): Ditto.
11531 (alpha_frame_args_address): Ditto.
abf22e64 11532 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
11533 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11534 alpha_frame_args_address.
abf22e64 11535 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 11536 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
11537 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11538 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
11539 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11540 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11541
d734c450
JT
115422002-01-18 Jason Thorpe <[email protected]>
11543
11544 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11545 (alpha_cannot_fetch_register): Ditto.
11546 (alpha_cannot_store_register): Ditto.
11547 (alpha_register_convertible): Ditto.
11548 (alpha_use_struct_convention): Ditto.
11549 * config/alpha/tm-alpha.h: Update copyright years.
11550 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11551 (INNER_THAN): Use core_addr_lessthan.
11552 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11553 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11554 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11555 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11556 (FRAME_CHAIN): Remove unnecessary cast.
11557
b4ceaee6
AC
115582002-01-18 Andrew Cagney <[email protected]>
11559
11560 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11561 obsolete.
11562
0a65a603
AC
115632002-01-18 Andrew Cagney <[email protected]>
11564
11565 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11566 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11567 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11568 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11569 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11570 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11571 * x86-64-linux-nat.c: Ditto.
11572
636a6dfc
JT
115732002-01-18 Jason Thorpe <[email protected]>
11574
abf22e64 11575 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
11576 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11577 (REGISTER_NAME): Define.
11578
acceddb6
JT
115792002-01-18 Jason Thorpe <[email protected]>
11580
11581 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11582
ec32e4be
JT
115832002-01-18 Jason Thorpe <[email protected]>
11584
11585 * alpha-tdep.c: Update copyright years.
11586 (alpha_next_pc): New function.
11587 (alpha_software_single_step): Ditto.
11588 * config/alpha/tm-alpha.h: Add prototype for
11589 alpha_software_single_step.
11590
e771a871
JT
115912002-01-18 Jason Thorpe <[email protected]>
11592
11593 * alphabsd-nat.c: Update copyright years.
11594 (fill_gregset): Use regcache_collect.
11595 (fill_fpregset): Likewise.
11596 (fetch_inferior_registers): Only fetch integer registers
11597 if requested to do so.
11598 (store_inferior_registers): Only store integer registers
11599 if requested to do so.
11600
7708fa01
AC
116012002-01-17 Andrew Cagney <[email protected]>
11602
11603 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11604 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11605 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11606 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11607 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11608 * config/arm/linux.mh (XDEPFILES): Delete.
11609 * config/arm/nbsd.mh (XDEPFILES): Delete.
11610 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11611 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11612 * config/i386/i386m3.mh (XDEPFILES): Delete.
11613 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11614 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11615 * config/i386/fbsd.mh (XDEPFILES): Delete.
11616 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11617 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11618 * config/i386/i386v4.mh (XDEPFILES): Delete.
11619 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11620 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11621 * config/i386/i386aix.mh (XDEPFILES): Delete.
11622 * config/i386/go32.mh (XDEPFILES): Delete.
11623 * config/i386/cygwin.mh (XDEPFILES): Delete.
11624 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11625 * config/i386/i386mach.mh (XDEPFILES): Delete.
11626 * config/i386/i386v32.mh (XDEPFILES): Delete.
11627 * config/i386/linux.mh (XDEPFILES): Delete.
11628 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11629 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11630 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11631 * config/i386/i386sco.mh (XDEPFILES): Delete.
11632 * config/i386/i386v.mh (XDEPFILES): Delete.
11633 * config/i386/nbsd.mh (XDEPFILES): Delete.
11634 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11635 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11636 * config/i386/symmetry.mh (XDEPFILES): Delete.
11637 * config/i386/obsd.mh (XDEPFILES): Delete.
11638 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11639 * config/ia64/linux.mh (XDEPFILES): Delete.
11640 * config/ia64/aix.mh (XDEPFILES): Delete.
11641 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11642 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11643 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11644 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11645 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11646 * config/m68k/linux.mh (XDEPFILES): Delete.
11647 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11648 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11649 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11650 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11651 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11652 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11653 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11654 * config/m88k/delta88.mh (XDEPFILES): Delete.
11655 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11656 * config/m88k/m88k.mh (XDEPFILES): Delete.
11657 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11658 * config/mips/linux.mh (XDEPFILES): Delete.
11659 * config/mips/irix6.mh (XDEPFILES): Delete.
11660 * config/mips/irix5.mh (XDEPFILES): Delete.
11661 * config/mips/irix4.mh (XDEPFILES): Delete.
11662 * config/mips/irix3.mh (XDEPFILES): Delete.
11663 * config/mips/decstation.mh (XDEPFILES): Delete.
11664 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11665 (NATDEPFILES): Move core-aout.o to here.
11666 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11667 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11668 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11669 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11670 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11671 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11672 * config/pa/hpux11.mh (XDEPFILES): Delete.
11673 * config/powerpc/aix.mh (XDEPFILES): Delete.
11674 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11675 * config/powerpc/linux.mh (XDEPFILES): Delete.
11676 * config/romp/rtbsd.mh: Rename XDEPFILES.
11677 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11678 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11679 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11680 * config/s390/s390.mh (XDEPFILES): Delete.
11681 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11682 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11683 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11684 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11685 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11686 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11687 * config/sparc/linux.mh (XDEPFILES): Delete.
11688 * config/vax/vaxult.mh (XDEPFILES): Delete.
11689 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11690 * Makefile.in (DEPFILES): Remove XDEPFILES.
11691
375fc983
AC
116922002-01-17 Andrew Cagney <[email protected]>
11693
11694 * utils.c (internal_verror): Fix comments, default is yes not no.
11695 Update queries to match. Default to quit and dump core.
11696
8926118c
AC
116972002-01-17 Andrew Cagney <[email protected]>
11698
11699 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11700 copyright.
11701 * defs.h, event-top.c, gdbcmd.h: Ditto.
11702 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11703 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11704 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11705 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11706 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11707 * mi/mi-main.c:Ditto.
11708
11709 * stack.c, symfile.c: Update copyright.
11710
45b7b345
DJ
117112002-01-17 Daniel Jacobowitz <[email protected]>
11712
db728ff7
DJ
11713 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11714 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11715 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11716 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11717
db728ff7
DJ
117182002-01-17 Daniel Jacobowitz <[email protected]>
11719
11720 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11721 * gdbserver/low-lynx.c (myattach): Likewise.
11722 * gdbserver/low-nbsd.c (myattach): Likewise.
11723 * gdbserver/low-sim.c (myattach): Likewise.
11724 * gdbserver/low-sparc.c (myattach): Likewise.
11725 * gdbserver/low-sun3.c (myattach): Likewise.
11726
11727 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11728
db728ff7 11729 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11730 (main): Handle "--attach".
11731
8de3c354
AC
117322002-01-16 Andrew Cagney <[email protected]>
11733
11734 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11735 maintainer.
11736
b0129042
DJ
117372002-01-15 Daniel Jacobowitz <[email protected]>
11738
11739 * c-typeprint.c (is_type_conversion_operator): Add additional
11740 check for non-conversion operators.
11741
ba8679fb 117422002-01-15 Michael Snyder <[email protected]>
2bf543a6
MS
11743
11744 * linux-proc.c: Add "info proc" command, a la procfs.c.
11745 (read_mapping): New function, abstract and re-use code.
11746 (linux_find_memory_regions): Use new func read_mapping.
11747 (linux_info_proc_cmd): New function, implement "info proc".
11748 (_initialize_linux_proc): Add new command "info proc".
11749
e4f9b4d5
MS
117502002-01-15 Michael Snyder <[email protected]>
11751
11752 * symfile.c (generic_load): Use bfd_map_over_sections method
11753 instead of manipulating bfd structure members directly.
11754 (add_section_size_callback): New function, bfd sections callback
11755 used by generic_load.
11756 (load_sections_callback): New function, bfd sections callback
11757 used by generic_load.
11758
08cf96df
EZ
117592002-01-15 Elena Zannoni <[email protected]>
11760
abf22e64 11761 [Based on work by Jim Blandy]
08cf96df
EZ
11762 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11763 (builtin_type_vec128): Export.
11764 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11765 types.
11766 (builtin_type_vec128): New builtin type for 128 bit vector
11767 registers.
11768 (build_gdbtypes): Initialize builtin_type_v16qi and
11769 builtin_type_v8hi. Create the vec128 register builtin type
11770 structure.
11771 (build_builtin_type_vec128): New function.
abf22e64 11772 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11773 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11774 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11775 AltiVec register to new builtin type.
11776
d7242108
DJ
117772001-01-15 Daniel Jacobowitz <[email protected]>
11778
11779 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11780 to make_cv_type.
11781
4ee3352d
AC
117822002-01-14 Andrew Cagney <[email protected]>
11783
11784 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11785 CLEAN_UP_REGISTER_VALUE.
11786 * regcache.c (supply_register): Update only call.
11787
f015b2e7
AC
117882002-01-14 Andrew Cagney <[email protected]>
11789
11790 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11791 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11792 a29k-*-vxworks* targets as obsolete.
11793
356ae49d
MS
117942002-01-14 Michael Snyder <[email protected]>
11795
11796 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11797 until we can resolve portability issues.
11798 * gregset.h: Remove references to fpxregs.
11799 * gcore.c (gcore_command): Initialize note_sec to NULL.
11800
ade8f45e
AC
118012002-01-13 Andrew Cagney <[email protected]>
11802
11803 * signals.c (target_signal_to_name): Rewrite. Only use
11804 signals[].name when in bounds and non-NULL.
abf22e64 11805
89c49e7a
AC
118062002-01-13 Andrew Cagney <[email protected]>
11807
11808 From Petr Ledvina <[email protected]>:
11809 * signals.c (target_signal_to_name): Verify that SIG is within the
11810 bounds of the signals array.
11811
4daa9f9f
AC
118122002-01-13 Andrew Cagney <[email protected]>
11813
11814 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11815
ba4bbdcb
KS
118162002-01-13 Keith Seitz <[email protected]>
11817
11818 * stack.c (print_frame_info_base): Print the frame's pc
11819 only if when print_frame_info_listing_hook is not defined.
11820
575bbeb6
KS
118212002-01-13 Keith Seitz <[email protected]>
11822
11823 * varobj.c (varobj_set_value): Make sure that there were no
11824 errors evaluating the object before attempting to set its
11825 value.
11826 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11827 so this offset adjustment is no longer necessary.
11828 (create_child): Don't set the error flag if the child is
11829 a CPLUS_FAKE_CHILD.
11830 (value_of_child): If value_fetch_lazy fails, return NULL
11831 so that callers will be notified that an error occurred.
11832 (c_value_of_variable): Delay check of variable's validity
11833 until later. We actually want all structs and unions to have
11834 the value "{...}".
11835 Do not return "???" for variables which could not be evaluated.
11836 This error condition must be returned to the caller so that it
11837 can get the error condition from gdb.
11838 (cplus_name_of_child): Adjust index for vptr before figuring
11839 out the name of the child.
11840 (cplus_value_of_child): If a child's (real) parent is not valid,
11841 don't even bother trying to give a value for it. Just return
11842 an error. Change all instances in this function.
11843 (cplus_type_of_child): If our parent is one of the "fake"
11844 parents, we need to get at the type of the real parent, and
11845 derive the child's true type using this information.
11846
b76898ab
AC
118472002-01-13 Andrew Cagney <[email protected]>
11848
11849 From 2002-01-09 John Marshall <[email protected]>:
11850 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11851 sources.redhat.com, and tweak some related URLs which had
11852 suffered from linkrot.
11853
b6649e88
AC
118542002-01-13 Andrew Cagney <[email protected]>
11855
11856 From Jeff law:
11857 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11858 structures passed in registers.
11859
82cc5033
EZ
118602002-01-13 Eli Zaretskii <[email protected]>
11861
11862 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11863 white space which prevented compilation. Reported by DSK
11864 <[email protected]>.
11865
ba5f2f8a
MS
118662002-01-11 Michael Snyder <[email protected]>
11867
fbd35540
MS
11868 * symfile.c (build_section_addr_info_from_section_tab):
11869 Use bfd access method instead of manipulating bfd directly.
11870 (syms_from_objfile): Ditto.
11871 (simple_overlay_update_1): Ditto.
11872 (simple_overlay_update): Ditto.
11873 (generic_load): Ditto.
11874 (overlay_unmapped_address): FIXME comment, bfd access methods.
11875 (sections_overlap): FIXME comment, bfd access methods.
11876 (pc_in_mapped_range): FIXME comment, bfd access methods.
11877 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11878 (section_is_mapped): FIXME comment, bfd access methods.
11879 (section_is_overlay): FIXME comment, bfd access methods.
11880
ba5f2f8a
MS
11881 * symfile.c (generic_load): Whitespace and long line cleanups.
11882 Remove duplicate variable, change several local variables to
11883 more appropriate data types.
11884 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11885
17df2af6
AC
118862002-01-12 Andrew Cagney <[email protected]>
11887
11888 From Peter Schauer:
11889 * language.c (longest_local_hex_string_custom): Use phex_nz to
11890 convert NUM to a hex string.
11891
ec920329
EZ
118922002-01-12 Elena Zannoni <[email protected]>
11893
11894 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11895 the function.
538a76d6 11896 Update Copyright year.
ec920329 11897
3abd2e01
AC
118982002-01-12 Andrew Cagney <[email protected]>
11899
11900 * language.c (longest_raw_hex_string): Delete unused function.
11901
b21b22e0
PS
119022002-01-11 Petr Sorfa <[email protected]>
11903
11904 * MAINTAINERS (write-after-approval): Add myself.
11905 * dwarf2read.c (read_tag_string_type): Handling of
11906 DW_AT_byte_size.
11907 (read_tag_string_type): FORTRAN fix to prevent propagation of
11908 first string size.
11909 (set_cu_language): Handling of DW_LANG_Fortran95
11910
747fe712
RE
119112002-01-11 Richard Earnshaw <[email protected]>
11912
11913 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11914 GETPID(inferior_ptid).
11915 (store_inferior_registers): Likewise.
11916
f1bea926
JM
119172002-01-10 Jason Merrill <[email protected]>
11918
11919 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11920 Fix DW_OP_minus.
11921
ae940673
AC
119222002-01-10 Andrew Cagney <[email protected]>
11923
11924 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11925 and bfd/elf32-sh-nbsd.c.
11926
00546b04
MS
119272002-01-10 Michael Snyder <[email protected]>
11928
352ed7b4
MS
11929 * NEWS: Mention --pid and corefile/proc-id behavior change.
11930
c18be923
MS
11931 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11932 * gcore.c: Include cli/cli-decode.h instead of command.h.
11933
00546b04
MS
11934 * main.c (captured_main): Add new command line option "--pid".
11935 If the second command line argument (following the symbol-file)
11936 begins with a digit, try to attach to it before trying to open
11937 it as a corefile.
11938 (print_gdb_help): Document the "--pid" argument.
11939
db60ec62
EZ
119402002-01-10 Eli Zaretskii <[email protected]>
11941
11942 * completer.c (command_completer): New function.
11943
11944 * completer.h <command_completer>: Add prototype.
11945
11946 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11947 completer for the "help" command.
11948
39c22d1a
JM
119492002-01-09 Jason Merrill <[email protected]>
11950
11951 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11952
c564377f
MS
119532002-01-09 Michael Snyder <[email protected]>
11954
975aec09
MS
11955 * i386-linux-nat.c (fill_fpxregset): Make global.
11956 (store_fpxregset): Ditto.
11957
db4a10fa
MS
11958 * gregset.h (gdb_fpxregset_t): Define.
11959 (supply_fpxregset): Prototype.
11960 (fill_fpxregset): Prototype.
11961
c564377f
MS
11962 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11963
c3d45d70
RE
119642002-01-09 Richard Earnshaw <[email protected]>
11965
11966 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11967 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11968 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11969
fcc87af1
AC
119702002-01-09 Andrew Cagney <[email protected]>
11971
11972 * MAINTAINERS: Update target maintainer rules so that any
11973 Maintainer can approve a tested patch for a maintenance-only
11974 target.
11975
dd96c05b
RE
119762002-01-09 Richard Earnshaw <[email protected]>
11977
d4297db9 11978 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11979
d4297db9 11980 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11981 IN_SIGTRAMP.
11982
145fdc6e
MS
119832002-01-08 Michael Snyder <[email protected]>
11984
11985 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11986 real name of the executable, rather than the /proc name.
11987
be4d1333
MS
119882002-01-03 Michael Snyder <[email protected]>
11989
11990 Implement a "generate-core-file" command in gdb, save target state.
11991 * gcore.c: New file. Implement new command 'generate-core-file'.
11992 Save a corefile image of the current state of the inferior.
11993 * linux-proc.c: Add linux-specific code for saving corefiles.
11994 * target.h (struct target_ops): Add new target vectors for saving
11995 corefiles; to_find_memory_regions and to_make_corefile_notes.
11996 (target_find_memory_regions): New macro.
11997 (target_make_corefile_notes): New macro.
11998 * target.c (update_current_target): Inherit new target methods.
11999 (dummy_find_memory_regions): New place-holder method.
12000 (dummy_make_corefile_notes): New place-holder method.
12001 (init_dummy_target): Initialize new dummy target vectors.
12002 * exec.c (exec_set_find_memory_regions): New function.
12003 Allow the exec_ops vector for memory regions to be taken over.
12004 (exec_make_note_section): New function, target vector method.
12005 * defs.h (exec_set_find_memory_regions): Export prototype.
12006 * procfs.c (proc_find_memory_regions): New function, corefile method.
12007 (procfs_make_note_section): New function, corefile method.
12008 (init_procfs_ops): Set new target vector pointers.
12009 (find_memory_regions_callback): New function.
12010 (procfs_do_thread_registers): New function.
12011 (procfs_corefile_thread_callback): New function.
12012 * sol-thread.c (sol_find_memory_regions): New function.
12013 (sol_make_note_section): New function.
12014 (init_sol_thread_ops): Initialize new target vectors.
12015 * inftarg.c (inftarg_set_find_memory_regions): New function.
12016 Allow to_find_memory_regions vector to be taken over.
12017 (inftarg_set_make_corefile_notes): New function.
12018 Allow to_make_corefile_notes vector to be taken over.
12019 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12020 interface layer if not target_has_execution (may be a corefile).
12021 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12022 * config/sparc/sun4sol2.mh: Ditto.
12023 * config/alpha/alpha-linux.mh: Ditto.
12024 * config/arm/linux.mh: Ditto.
12025 * config/i386/x86-64linux.mh: Ditto.
12026 * config/ia64/linux.mh: Ditto.
12027 * config/m68k/linux.mh: Ditto.
12028 * config/mips/linux.mh: Ditto.
12029 * config/powerpc/linux.mh: Ditto.
12030 * config/sparc/linux.mh: Ditto.
12031
c6b92abd
MS
120322002-01-07 Michael Snyder <[email protected]>
12033
12034 * arm-linux-nat.c: Remove references to regcache.c internal data
12035 (registers[] and register_valid[]).
12036
4b09dc8c
MS
120372002-01-07 Michael Snyder <[email protected]>
12038
abf22e64
AJ
12039 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12040 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
12041 symbol file and shlibs.
12042 * Makefile.in: Add rule for linux-proc.o.
12043 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12044 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12045 * config/arm/linux.mh: Ditto.
12046 * config/i386/linux.mh: Ditto.
12047 * config/i386/x86-64linux.mh: Ditto.
12048 * config/ia64/linux.mh: Ditto.
12049 * config/m68k/linux.mh: Ditto.
12050 * config/mips/linux.mh: Ditto.
12051 * config/powerpc/linux.mh: Ditto.
12052 * config/sparc/linux.mh: Ditto.
12053
c25b74ac
PM
120542002-01-06 Pierre Muller <[email protected]>
12055
12056 * win32-nat.c: Add i386-tdep.h dependency.
12057
94cd915f
MS
120582002-01-07 Michael Snyder <[email protected]>
12059
c7cccb76
MS
12060 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12061 instead of bfd_get_arch_size. Don't bail out just because
12062 there's no exec_bfd.
abf22e64 12063
34c0bd93
MS
12064 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12065 * p-valprint.c (pascal_object_print_value): Ditto.
12066 * somread.c (som_symtab_read): Ditto.
12067 * symfile.c (simple_free_overlay_region_table): Ditto.
12068 * valops.c (value_assign): Ditto.
12069
21c1c920
MS
12070 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12071 use tilde_expand and strerror for opening save-tracepoints file.
12072
5bbd998e
MS
12073 * thread-db.c (thread_db_new_objfile): Indendation fix.
12074
94cd915f
MS
12075 * infptrace.c (GDB_MAX_ALLOCA): New define.
12076 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 12077 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
12078 can be overridden with whatever value is appropriate to the host).
12079 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12080 alloca to allocate potentially large buffer.
12081 * rs6000-nat.c (child_xfer_memory): Ditto.
12082 * symm-nat.c (child_xfer_memory): Ditto.
12083 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12084
494e8a93
JSC
120852002-01-07 Jackie Smith Cashion <[email protected]>
12086
12087 From Nick Clifton <[email protected]>
12088 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12089
d0e1d48e
MS
120902002-01-07 Michael Snyder <[email protected]>
12091
abf22e64 12092 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
12093 Don't use exec_bfd if it's NULL.
12094
290b2c7a
MK
120952002-01-06 Mark Kettenis <[email protected]>
12096
abf22e64 12097 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 12098
aef21287
AC
120992002-01-06 Andrew Cagney <[email protected]>
12100
12101 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12102 * gnu-nat.c: Ditto.
12103
30efa627
AC
121042002-01-06 Andrew Cagney <[email protected]>
12105
12106 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12107 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12108 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12109 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12110 z8k-coff have not been multi-arched. Update z8k-coff build
12111 status.
12112
9b4ff276
AC
121132002-01-06 Andrew Cagney <[email protected]>
12114
12115 * MAINTAINERS: Mark a29k target as obsolete.
12116 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12117 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12118 comments.
12119 * NEWS: Note that a29k targets are obsolete.
12120 * a29k-tdep.c: Mark as obsolete.
12121 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12122 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12123 a29k-*-vxworks* targets as obsolete.
12124 * remote-adapt.c: Obsolete.
12125 * remote-eb.c: Obsolete.
12126 * remote-mm.c: Obsolete.
12127 * remote-udi.c: Obsolete.
12128 * config/a29k/a29k-udi.mt: Obsolete.
12129 * config/a29k/a29k.mt: Obsolete.
12130 * config/a29k/tm-a29k.h: Obsolete.
12131 * config/a29k/tm-vx29k.h: Obsolete.
12132 * config/a29k/vx29k.mt: Obsolete.
12133
a9011d31
AC
121342002-01-05 Andrew Cagney <[email protected]>
12135
12136 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12137 with BFD_ENDIAN_BIG.
12138
9299404e
AC
121392002-01-05 Andrew Cagney <[email protected]>
12140
12141 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12142 * configure, config.in: Re-generate.
12143 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12144 * defs.h: Do not include <endian.h>.
12145
7e89e357
JT
121462002-01-05 Jason Thorpe <[email protected]>
12147
12148 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12149 * config.in: Regenerate.
12150 * configure.in: Update copyright years.
12151 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12152 * configure: Regenerate.
12153 * i386bsd-nat.c: Update copyright years.
12154 (fill_gregset): Use regcache_collect.
12155 (fetch_inferior_registers): Only fetch integer registers
12156 if requested to do so. Add support for XMM registers
12157 using PT_GETXMMREGS.
12158 (store_inferior_registers): Only store integer registers
12159 if requested to do so. Add support for XMM registers
12160 using PT_SETXMMREGS.
12161 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12162 (store_inferior_registers): Remove.
12163 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12164 (fetch_elfcore_registers): New function.
12165 (i386nbsd_elfcore_fns): New.
12166 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12167 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12168 i386bsd-nat.o.
12169 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12170 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12171 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12172 * config/i386/tm-nbsd.h: Update copyright years.
12173 (HAVE_SSE_REGS): Define.
12174 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12175 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12176 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12177 (SIGCONTEXT_PC_OFFSET): Remove.
12178 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12179
a752853e
AC
121802002-01-05 Andrew Cagney <[email protected]>
12181
12182 * configure.tgt: Remove powerpc-*-macos* target.
12183 * config/m68k/xm-mpw.h: Delete file.
12184 * config/xm-mpw.h: Delete file.
12185 * ser-mac.c: Delete file.
12186 * mpw-make.sed: Delete file.
12187 * mpw-config.in: Delete file.
12188 * mac-xdep.c: Delete file.
12189 * mac-gdb.r: Delete file.
12190 * mac-defs.h: Delete file.
12191 * mac-nat.c: Delete file.
12192 * config/powerpc/macos.mh: Delete file.
12193 * config/powerpc/macos.mt: Delete file.
12194 * config/powerpc/nm-macos.h: Delete file.
12195 * config/powerpc/tm-macos.h: Delete file.
12196 * source.c (openp, open_source_file): Remove obsolete code.
12197 * top.c (gdb_readline): Ditto.
12198 * utils.c (query): Ditto.
12199 * event-top.c (display_gdb_prompt): Ditto.
12200 * Makefile.in (ser-mac.o): Delete obsolete target.
12201 * NEWS: Update.
12202
d7449b42
AC
122032002-01-04 Andrew Cagney <[email protected]>
12204
12205 * defs.h (BIG_ENDIAN): Delete macro definition.
12206 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12207 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12208 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12209 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12210 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12211 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12212 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12213 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12214 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12215 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12216 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12217 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12218 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12219 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12220 * gdbarch.c: Re-generate.
12221
356374e8
DJ
122222002-01-04 Daniel Jacobowitz <[email protected]>
12223
12224 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12225 for core files.
12226
a2b8f8f8
JT
122272002-01-04 Jason Thorpe <[email protected]>
12228
12229 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12230
12466af9
AC
122312002-01-04 Andrew Cagney <[email protected]>
12232
12233 * value.h (value_ptr): Delete typedef.
12234
3549ab40
JT
122352002-01-04 Jason Thorpe <[email protected]>
12236
12237 * i386nbsd-nat.c: Update copyright years.
12238 Include i386-tdep.h.
12239
fedbd091
EZ
122402002-01-04 Elena Zannoni <[email protected]>
12241
12242 * stabsread.c: Update copyright years.
12243
12244 From Debashis Mahata <[email protected]>:
12245 (read_struct_fields): Deal with Sun C compiler erroneous stab
12246 output for structs and unions.
fec8b34f 12247 Fix PR gdb/269.
fedbd091 12248
eb43544b
DJ
122492002-01-04 Daniel Jacobowitz <[email protected]>
12250
12251 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12252 prototype.
12253
1514d34e
DJ
122542002-01-04 Daniel Jacobowitz <[email protected]>
12255
12256 * cp-abi.c: Fix whitespace.
12257 (baseclass_offset): New wrapper function.
12258 * cp-abi.h (baseclass_offset): Add prototype.
12259 (struct cp_abi_ops): Add baseclass_offset pointer.
12260
12261 * valops.c (vb_match): Move to...
12262 * gnu-v2-abi.c (vb_match): here.
12263 * valops.c (baseclass_offset): Move to...
12264 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12265
12266 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12267
12268 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12269 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12270 * hpacc-abi.c (init_hpacc_ops): Likewise.
12271
7f8c9282
DJ
122722002-01-04 Daniel Jacobowitz <[email protected]>
12273
12274 * valops.c (find_overload_match): Accept obj as a
12275 reference parameter. Update it before returning.
12276 * value.h (find_overload_match): Update prototype.
12277 * eval.c (evaluate_subexp_standard): Pass object to
12278 find_overload_match by reference.
12279
f23631e4
AC
122802002-01-03 Andrew Cagney <[email protected]>
12281
12282 * valarith.c: Replace value_ptr with struct value pointer. Remove
12283 register attribute from value declarations.
12284 * valops.c: Ditto.
12285 * value.h: Ditto.
12286 * scm-lang.c (scm_lookup_name): Ditto.
12287
79e10fab 122882002-01-03 Michael Snyder <[email protected]>
abf22e64 12289
79e10fab
AC
12290 Abstract the functionality of iterating over mapped memory
12291 regions into a general purpose iterator function.
abf22e64 12292 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
12293 iterator for memory sections.
12294 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12295 (solib_mappings_callback): New function, callback for above.
12296 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12297 (info_mappings_callback): New function, callback for above.
12298
12299 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12300
c5ad026a
MK
123012002-01-01 Mark Kettenis <[email protected]>
12302
d2a7c97a
MK
12303 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12304 * i386-tdep.c: Include "elf-bfd.h".
12305 (process_note_abi_tag_sections): New function.
12306 (i386_gdbarch_init): Add code to recognize various OS/ABI
12307 combinations.
12308
c5ad026a
MK
12309 * maint.c (_initialize_maint_cmds): Add missing \ in
12310 string-literal.
12311
a1a5b71e 12312For older changes see ChangeLog-2001
c906108c
SS
12313\f
12314Local Variables:
12315mode: change-log
12316left-margin: 8
12317fill-column: 74
12318version-control: never
12319End:
This page took 2.203512 seconds and 4 git commands to generate.