2002-04-24 Michael Snyder <msnyder@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-04-24 Michael Snyder <msnyder@redhat.com>
2
3 * parser-defs.h (prev_lexptr): New external variable.
4 * parse.c (parse_exp_1): Set prev_lexptr to null before
5 calling the language-specific parser.
6 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7 (yyerror): Use prev_lexptr in error reporting.
8
9 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10
11 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
12 * gregset.h: If FILL_FPXREGSET is defined, provide
13 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
14 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
15 is defined, call fill_fpxregset.
16
17 2002-04-24 Roland McGrath <roland@frob.com>
18
19 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
20 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
21 (supply_gregset, supply_fpregset): New functions.
22
23 * gnu-nat.c (gnu_find_memory_regions): New function.
24 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
25 (gnu_xfer_memory): Add a cast.
26
27 2002-04-24 Michael Snyder <msnyder@redhat.com>
28
29 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
30 loop. Add handling for "str lr, [sp, #-4]!" and for saves
31 of argument regs ("str r(0123), [r11, #-nn"]).
32 (arm_skip_prologue): Better handling for frameless functions.
33 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
34 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
35
36 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
37
38 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
39 NUM_PSEUDO_REGS can be used.
40
41 2002-04-24 Andrew Cagney <ac131313@redhat.com>
42
43 * arch-utils.h: Update copyright.
44
45 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
46 * gdbarch.h, gdbarch.c: Re-generate.
47
48 * inferior.h (IN_SIGTRAMP): Delete definition.
49 * arch-utils.c (legacy_pc_in_sigtramp): New function.
50 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
51
52 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
53 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
54 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
55 (find_proc_framesize): Ditto.
56 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
57 (alpha_init_extra_frame_info): Ditto.
58 * infrun.c (handle_inferior_event): Ditto.
59 (handle_inferior_event): Ditto.
60 (check_sigtramp2): Ditto.
61 * blockframe.c (create_new_frame): Ditto.
62 (get_prev_frame): Ditto.
63 * ppc-linux-tdep.c: Update comments.
64 * i386-linux-tdep.c: Update comments.
65 * breakpoint.c (bpstat_what): Update comment.
66
67 2002-04-24 Michal Ludvig <mludvig@suse.cz>
68
69 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
70 (regsets_store_inferior_registers): Removed cast to int from
71 ptrace() calls.
72 * gdbserver/regcache.h: Added declaration of struct inferior_info.
73
74 2002-04-24 David S. Miller <davem@redhat.com>
75
76 * i960-tdep.c (register_in_window_p): New function.
77 (i960_find_saved_register): Use it instead of
78 REGISTER_IN_WINDOW_P.
79 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
80
81 * symtab.h (find_stab_function_addr): Kill extern.
82 * minsyms.c (find_stab_function_addr): Remove from here...
83 * dbxread.c: ... to here, and mark it static.
84
85 2002-04-20 David S. Miller <davem@redhat.com>
86
87 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
88 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
89
90 2002-04-21 David S. Miller <davem@redhat.com>
91
92 * remote-vxsparc.c (vx_read_register): Fix typo, we want
93 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
94 (vx_write_register): Likewise.
95
96 2002-04-23 J. Brobecker <brobecker@gnat.com>
97
98 * source.c (is_regular_file): New function.
99 (openp): Check wether file to open is a regular file
100 to avoid opening directories.
101
102 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
103
104 * findvar.c (extract_signed_integer): Cast printf argument
105 to suppress format warning.
106 (extract_unsigned_integer): Likewise.
107 * infcmd.c (registers_info): Likewise.
108 * top.c (get_prompt_1): Likewise.
109 * valops.c (value_assign): Likewise.
110 * valprint.c (print_decimal): Likewise.
111
112 2002-04-22 H.J. Lu (hjl@gnu.org)
113
114 * c-exp.y (typebase): Support
115
116 [long|long long|short] [signed|unsigned] [int|]
117
118 and
119
120 signed [long|long long|short] int
121
122 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
123
124 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
125 and vax-tdep.h.
126 * vax-tdep.h: New file.
127 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
128 Make several routines static.
129 (vax_get_saved_register): New function.
130 (vax_gdbarch_init): New function.
131 (_initialize_vax_tdep): Register vax_gdbarch_init.
132 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
133 Remove macros now under the control of gdbarch.
134
135 2002-04-22 Michael Snyder <msnyder@redhat.com>
136
137 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
138 Some whitespace and coding standards tweaks.
139
140 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
141
142 * vax-tdep.c: Include regcache.h.
143 (vax_call_dummy_words): New.
144 (sizeof_vax_call_dummy_words): New.
145 (vax_fix_call_dummy): New function.
146 (vax_saved_pc_after_call): Ditto.
147 * config/vax/tm-vax.h: Don't include regcache.h.
148 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
149 (CALL_DUMMY): Remove.
150 (CALL_DUMMY_WORDS): Define.
151 (SIZEOF_CALL_DUMMY_WORDS): Define.
152 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
153
154 2002-04-18 Michael Snyder <msnyder@redhat.com>
155
156 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
157
158 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
159
160 * vax-tdep.c (vax_frame_chain): New function.
161 (vax_push_dummy_frame): Ditto.
162 (vax_pop_frame): Ditto.
163 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
164 (FRAMELESS_FUNCTION_INVOCATION): Use
165 generic_frameless_function_invocation_not.
166 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
167 (POP_FRAME): Use vax_pop_frame.
168
169 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
170
171 * vax-tdep.c (vax_store_struct_return): New function.
172 (vax_extract_return_value): Ditto.
173 (vax_store_return_value): Ditto.
174 (vax_extract_struct_value_address): Ditto.
175 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
176 vax_store_struct_return.
177 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
178 (STORE_RETURN_VALUE): Use vax_store_return_value.
179 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
180
181 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
182
183 * vax-tdep.c (vax_frame_saved_pc): New function.
184 (vax_frame_args_address_correct): Ditto.
185 (vax_frame_args_address): Ditto.
186 (vax_frame_locals_address): Ditto.
187 (vax_frame_num_args): Move code to be in proximity to
188 other frame-related functions.
189 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
190 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
191 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
192 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
193 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
194
195 2002-04-22 H.J. Lu (hjl@gnu.org)
196
197 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
198 includedir.
199
200 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
201
202 * vax-tdep.c (vax_frame_init_saved_regs): New function.
203 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
204 (FRAME_INIT_SAVED_REGS): New macro.
205
206 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
207
208 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
209
210 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
211
212 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
213 where needed.
214 (fetch_osf_core_registers): Likewise.
215 (supply_gregset): Likewise.
216
217 2002-04-22 J. Brobecker <brobecker@gnat.com>
218
219 * symfile.h (get_section_index): Define.
220 * symfile.c (get_section_index): New function.
221 * mdebugread.c (SC_IS_SBSS): New macro.
222 (SC_IS_BSS): Return true for the scBss storage class only, as
223 the scSBss storage class refers to the .sbss section.
224 (parse_partial_symbols): Discard the symbols which associated
225 section does not exist.
226 Make sure to use the .sbss section index for symbols which
227 storage class is scBss, rather than using the .bss section index.
228
229 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
230
231 * vax-tdep.c: Update copyright years.
232 (vax_register_name): New function.
233 (vax_register_byte): Ditto.
234 (vax_register_raw_size): Ditto.
235 (vax_register_virtual_size): Ditto.
236 (vax_register_virtual_type): Ditto.
237 * config/vax/tm-vax.h: Update copyright years.
238 (REGISTER_NAMES): Remove.
239 (REGISTER_NAME): Define.
240 (REGISTER_BYTE): Use vax_register_byte.
241 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
242 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
243 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
244
245 2002-04-21 Andrew Cagney <ac131313@redhat.com>
246
247 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
248 declaration
249 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
250
251 2002-04-21 David S. Miller <davem@redhat.com>
252
253 * arch-utils.c (generic_prologue_frameless_p): Kill
254 SKIP_PROLOGUE_FRAMELESS_P code.
255 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
256 references.
257 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
258 * arc-tdep.c (arc_prologue_frameless_p): Implement.
259 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
260 references.
261 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
262 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
263 (sparc_gdbarch_init): Pass it to
264 set_gdbarch_prologue_frameless_p.
265
266 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
267
268 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
269 (alphabsd-nat.o): New dependency list.
270
271 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
272
273 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
274 alphafbsd-tdep.c.
275 (alpha-linux-tdep.o): New dependency list.
276 (alphafbsd-tdep.o): Likewise.
277
278 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
279
280 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
281 to here...
282 * alpha-tdep.c: ...from here.
283 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
284
285 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
286
287 * config/alpha/tm-alpha.h: Move alpha_software_single_step
288 prototype from here...
289 * alpha-tdep.h: ...to here.
290
291 2002-04-21 Andrew Cagney <ac131313@redhat.com>
292
293 * frame.h (selected_frame_level): Document as deprecated.
294 (frame_relative_level): Declare.
295 * stack.c (frame_relative_level): New function.
296 (selected_frame_level): Document as deprecated.
297 (select_frame): Do not set the selected_frame_level.
298
299 * stack.c (frame_info, record_selected_frame): Update.
300 (frame_command, current_frame_command): Update.
301 (up_silently_base, up_command, down_silently_base): Update.
302 (down_command): Update.
303 * inflow.c (kill_command): Update.
304 * tracepoint.c (finish_tfind_command): Update.
305 * corelow.c (core_open): Update.
306 * thread.c (info_threads_command): Update.
307 (do_captured_thread_select): Update.
308 * infcmd.c (finish_command): Update.
309 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
310
311 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
312
313 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
314
315 2002-04-21 Andrew Cagney <ac131313@redhat.com>
316
317 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
318 type const.
319
320 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
321
322 * alphafbsd-tdep.c: Update copyright years. Include
323 alpha-tdep.h.
324 (alphafbsd_use_struct_convention): Make static.
325 (alphafbsd_init_abi): New function.
326 (_initialize_alphafbsd_tdep): New function.
327 * config/alpha/tm-fbsd.h: Update copyright years.
328 (USE_STRUCT_CONVENTION): Remove.
329
330 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
331
332 * alpha-tdep.c (alpha_abi_handler): New structure to describe
333 an Alpha ABI variant.
334 (alpha_abi_handler_list): Declare.
335 (alpha_gdbarch_register_os_abi): New function.
336 (alpha_gdbarch_init): Give registered ABI variant handlers a
337 chance to tweak the gdbarch once we have set up defaults.
338 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
339
340 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
341
342 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
343 to standard_coerce_float_to_double.
344 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
345
346 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
347
348 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
349 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
350 from gdbarch_tdep rather than a constant.
351 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
352 the default text address for all Alpha Unix ABIs.
353 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
354 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
355
356 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
357
358 * alpha-tdep.h: New file. Includes several Alpha target constants
359 taken from...
360 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
361 let gdbarch deal with.
362 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
363 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
364 to dependency list.
365 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
366 Alpha target register names.
367 * alphabsd-nat.c: Likewise.
368 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
369 Alpha target register names. Make serveral routines static.
370 (alpha_get_saved_register): New function.
371 (alpha_abi_names): New.
372 (process_note_abi_tag_sections): New function.
373 (get_elfosabi): New function.
374 (alpha_gdbarch_init): New function.
375 (alpha_dump_tdep): New function.
376 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
377
378 2002-04-21 Andrew Cagney <ac131313@redhat.com>
379
380 * frame.c (find_saved_register): Delete #ifdef
381 HAVE_REGISTER_WINDOWS code.
382 * config/sparc/tm-sparc.h: Update comments.
383 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
384
385 2002-04-21 Andrew Cagney <ac131313@redhat.com>
386
387 * i960-tdep.c (i960_find_saved_register): New function.
388 (i960_get_saved_register): New function.
389 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
390 (i960_get_saved_register): Declare.
391 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
392
393 2002-04-20 David S. Miller <davem@redhat.com>
394
395 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
396
397 2002-04-20 Andrew Cagney <ac131313@redhat.com>
398
399 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
400 instead of NUM_PSEUDO_REGS.
401
402 2002-04-20 David S. Miller <davem@redhat.com>
403
404 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
405 GDB_MULTI_ARCH_PARTIAL
406 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
407 define, let tm-sp64.h do it.
408
409 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
410
411 * frame.c (find_saved_register): Avoid a NULL pointer
412 dereference and actually walk the frame list.
413
414 2002-04-20 Andrew Cagney <ac131313@redhat.com>
415
416 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
417 sorted in most most-recent-used order. Document.
418 * gdbarch.h, gdbarch.c: Regenerate.
419
420 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
421
422 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
423 (add_inferior): Call create_register_cache.
424 (clear_inferiors): Call free_register_cache.
425 (inferior_regcache_data, set_inferior_regcache_data): New functions.
426 * gdbserver/regcache.c (struct inferior_regcache_data): New.
427 (registers): Remove.
428 (get_regcache): New function.
429 (create_register_cache, free_register_cache): New functions.
430 (set_register_cache): Don't initialize the register cache here.
431 (registers_to_string, registers_from_string, register_data): Call
432 get_regcache.
433 * gdbserver/regcache.h: Add prototypes.
434 * gdbserver/server.h: Likewise.
435
436 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
437
438 * gdbserver/mem-break.c: New file.
439 * gdbserver/mem-break.h: New file.
440 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
441 dependencies.
442 * gdbserver/inferiors.c (struct inferior_info): Add target_data
443 member.
444 (clear_inferiors): Free target_data member if set.
445 (inferior_target_data, set_inferior_target_data): New functions.
446 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
447 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
448 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
449 (struct inferior_linux_data): New.
450 (linux_create_inferior): Use set_inferior_target_data.
451 (linux_attach): Likewise. Call add_inferior.
452 (linux_wait_for_one_inferior): New function.
453 (linux_wait): Call it.
454 (linux_write_memory): Add const.
455 (initialize_low): Call set_breakpoint_data.
456 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
457 handling members.
458 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
459 call.
460 * gdbserver/server.h: Include mem-break.h. Update inferior.c
461 prototypes.
462 * gdbserver/target.c (read_inferior_memory)
463 (write_inferior_memory): New functions.
464 * gdbserver/target.h (read_inferior_memory)
465 (write_inferior_memory): Change macros to prototypes.
466 (struct target_ops): Update comments. Add const to write_memory
467 definition.
468
469 2002-04-19 Andrew Cagney <ac131313@redhat.com>
470
471 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
472 instead of ->prev.
473 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
474 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
475 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
476 instead of ->prev.
477
478 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
479
480 Fix PR gdb/471.
481 * gdbtypes.c (init_simd_type): Rewrite using new functions.
482 (build_builtin_type_vec128): Ditto.
483 (append_composite_type_field): Fix calculation of type length in
484 union case.
485
486 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
487
488 * config/djgpp/README: Update.
489
490 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
491 compiler warnings.
492
493 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
494
495 * alpha-tdep.c (setup_arbitrary_frame): Rename...
496 (alpha_setup_arbitrary_frame): ...to this.
497 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
498 for alpha_setup_arbitrary_frame.
499
500 2002-04-18 Andrew Cagney <cagney@redhat.com>
501
502 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
503 * gdbarch.h, gdbarch.c: Regenerate.
504
505 * defs.h (breakpoint_from_pc_fn): Delete type definition.
506 * target.h (memory_breakpoint_from_pc): Update declaration.
507 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
508
509 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
510 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
511 * mem-break.c (memory_breakpoint_from_pc): Ditto.
512 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
513 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
514 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
515 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
516 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
517 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
518 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
519 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
520 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
521
522 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
523 const pointer.
524 * monitor.c (monitor_insert_breakpoint): Ditto.
525 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
526
527 * config/mcore/tm-mcore.h: Update copyright.
528 * mem-break.c: Ditto.
529 * xstormy16-tdep.c: Ditto.
530
531 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
532
533 * p-exp.y: Add precedence rule for '^' token.
534 This removes the shift/reduce conflicts.
535 Remove the comment concerning these shift/reduce conflicts.
536
537 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
538
539 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
540 (registers_powerpc_nofp): New register set for processors
541 without floating point unit.
542
543 2002-04-18 David S. Miller <davem@redhat.com>
544
545 * MAINTAINERS: Add myself to write-after-approval.
546
547 2002-04-17 Michael Snyder <msnyder@redhat.com>
548
549 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
550
551 2002-04-17 Andrew Cagney <ac131313@redhat.com>
552
553 * rs6000-tdep.c (frame_initial_stack_address): Use
554 frame_register_read to read the alloca_reg.
555
556 2002-04-17 Andrew Cagney <ac131313@redhat.com>
557
558 * frame.c (find_saved_register): Find saved registers in the next
559 not prev frame.
560 Fix PR gdb/365.
561
562 2002-04-17 Andrew Cagney <ac131313@redhat.com>
563
564 * gdbarch.sh (LANG): Set to ``c''.
565
566 2002-04-15 Andrew Cagney <ac131313@redhat.com>
567
568 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
569
570 2002-04-15 Andrew Cagney <ac131313@redhat.com>
571
572 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
573 Update copyright.
574
575 * hpread.c (hpread_get_lntt): Add declaration.
576 Also fix PR gdb/391.
577
578 2002-04-14 Andrew Cagney <ac131313@redhat.com>
579
580 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
581 * aclocal.m4, configure: Re-generate.
582 Fix PR gdb/391.
583
584 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
585
586 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
587 instead of tm_print_insn.
588
589 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
590
591 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
592
593 2002-04-14 Andrew Cagney <ac131313@redhat.com>
594
595 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
596 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
597 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
598
599 2002-04-12 Don Howard <dhoward@redhat.com>
600
601 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
602 max_user_call_depth.
603 (init_cmd_lists): Initialize the new value;
604 * cli/cli-script.c (execute_user_command): Limit the call depth of
605 user defined commands. This avoids a core-dump when user commands
606 are infinitly recursive.
607
608 2002-04-12 Kevin Buettner <kevinb@redhat.com>
609
610 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
611 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
612 from tdep struct instead of DEFAULT_LR_SAVE.
613 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
614 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
615 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
616
617 2002-04-12 Michael Snyder <msnyder@redhat.com>
618
619 * Remote.c: Spelling fix.
620 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
621 If no symbol found for "sbrk", try "_sbrk".
622 (make_output_phdrs): Use bfd_section_name.
623 (gcore_copy_callback): Use bfd_section_name.
624 * eval.c: Indentation fix-ups.
625 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
626 in case it gets applied to an address that is already
627 in the instruction space.
628 * cli/cli-decode.c (help_list): Allow long lines to wrap.
629 * symfile.c: Fix indentation, long lines.
630 * source.c: White space fix-up.
631
632 2002-04-12 Andrew Cagney <cagney@redhat.com>
633
634 * defs.h (read_relative_register_raw_bytes): Delete declaration.
635 * frame.c (frame_register_read): New function. Return non-zero on
636 success.
637 (read_relative_register_raw_bytes_for_frame): Delete.
638 (read_relative_register_raw_bytes): Delete.
639 * frame.h (frame_register_read): Declare.
640 * d30v-tdep.c: Update Copyright. Use frame_register_read.
641 * sh-tdep.c: Ditto.
642 * infcmd.c (do_registers_info): Ditto.
643 * hppa-tdep.c: Ditto.
644 * rs6000-tdep.c: Ditto.
645 * h8500-tdep.c: Ditto.
646 * mips-tdep.c: Ditto.
647 * h8300-tdep.c: Ditto.
648 * z8k-tdep.c: Ditto.
649
650 2002-04-12 Kevin Buettner <kevinb@redhat.com>
651
652 From Jimi X <jimix@watson.ibm.com>:
653 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
654 64-bit SysV ABI.
655
656 2002-04-12 Kevin Buettner <kevinb@redhat.com>
657
658 From Jimi X <jimix@watson.ibm.com>:
659 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
660 bfd info.
661
662 2002-04-12 Kevin Buettner <kevinb@redhat.com>
663
664 From Jimi X <jimix@watson.ibm.com>:
665 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
666 register sets for these processor variants.
667
668 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
669
670 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
671 registers which are allowed to fail to store.
672 * gdbserver/linux-low.h (linux_target_ops): Likewise.
673 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
674 (ppc_cannot_store_register): FPSCR may not be storable.
675 * regformats/reg-ppc.dat: Support FPSCR.
676
677 2002-04-11 Kevin Buettner <kevinb@redhat.com>
678
679 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
680 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
681 Add fpscr as an invalid/unfetchable register.
682 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
683 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
684 (fill_fpregset): Add support for register fpscr.
685 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
686 (fill_gregset): Account for the fact that register ``mq'' might
687 not exist.
688 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
689 (registers_power): Add fpscr to register set at slot 71.
690 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
691 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
692
693 2002-04-11 Michael Snyder <msnyder@redhat.com>
694
695 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
696 * configure: Regenerate.
697 * config.in: Regenerate.
698 * acconfig.h: Add define for _SYSCALL32.
699 * core-sol2.c: Remove #define _SYSCALL32.
700 * solib-legacy.c: Remove #define _SYSCALL32.
701
702 2002-04-10 Andrew Cagney <ac131313@redhat.com>
703
704 * stack.c (select_frame): Cleanup internal error message, do not
705 use %p.
706
707 2002-04-10 Andrew Cagney <ac131313@redhat.com>
708
709 * stack.c (select_frame): Check that selected_frame and the
710 specified level are as expected.
711 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
712 Update copyright.
713 * frame.h (struct frame_info): Add field `level'. Update
714 copyright.
715 Work-in-progress PR gdb/464.
716
717 2002-04-10 Andrew Cagney <ac131313@redhat.com>
718
719 * maint.c (maint_print_section_info): Rename print_section_info.
720 (print_bfd_section_info, print_objfile_section_info): Update.
721 * inferior.h (struct gdbarch): Add opaque declaration.
722 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
723 * gdbarch.h: Regenerate.
724
725 2002-04-10 Michal Ludvig <mludvig@suse.cz>
726
727 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
728 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
729 (kernel_u_size): Added.
730 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
731 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
732
733 2002-04-04 Jim Ingham <jingham@apple.com>
734
735 * valarith.c (find_size_for_pointer_math): New function, either returns
736 the size for a pointer's target, returns 1 for void *, or errors for
737 incomplete types.
738 (value_add, value_sub): use find_size_for_pointer_math.
739
740 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
741
742 * linux-low.c (linux_look_up_symbols): New hook.
743 (linux_target_ops): Add linux_look_up_symbols.
744 * remote-utils.c (decode_address): New function.
745 (look_up_one_symbol): New function.
746 * server.c (handle_query): Call target look_up_symbols hook.
747 * server.h (look_up_one_symbol): Add prototype.
748 * target.h (struct target_ops): Add look_up_symbols hook.
749
750 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
751
752 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
753 * ChangeLog: Correct paths in last ChangeLog entry.
754
755 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
756
757 * gdbserver/linux-low.h: Remove obsolete prototypes.
758 (struct linux_target_ops): New.
759 (extern the_low_target): New.
760 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
761 (register_addr): Use the_low_target explicitly.
762 (fetch_register): Likewise.
763 (usr_fetch_inferior_registers): Likewise.
764 (usr_store_inferior_registers): Likewise.
765 * gdbserver/linux-arm-low.c (num_regs): Remove.
766 (arm_num_regs): Define.
767 (arm_regmap): Renamed from regmap, made static.
768 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
769 made static.
770 (arm_cannot_store_register): Renamed from cannot_store_register,
771 made static.
772 (the_low_target): New.
773 * gdbserver/linux-i386-low.c (num_regs): Remove.
774 (i386_num_regs): Define.
775 (i386_regmap): Renamed from regmap, made static.
776 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
777 made static.
778 (i386_cannot_store_register): Renamed from cannot_store_register,
779 made static.
780 (the_low_target): New.
781 * gdbserver/linux-ia64-low.c (num_regs): Remove.
782 (ia64_num_regs): Define.
783 (ia64_regmap): Renamed from regmap, made static.
784 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
785 made static.
786 (ia64_cannot_store_register): Renamed from cannot_store_register,
787 made static.
788 (the_low_target): New.
789 * gdbserver/linux-m68k-low.c (num_regs): Remove.
790 (m68k_num_regs): Define.
791 (m68k_regmap): Renamed from regmap, made static.
792 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
793 made static.
794 (m68k_cannot_store_register): Renamed from cannot_store_register,
795 made static.
796 (the_low_target): New.
797 * gdbserver/linux-mips-low.c (num_regs): Remove.
798 (mips_num_regs): Define.
799 (mips_regmap): Renamed from regmap, made static.
800 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
801 made static.
802 (mips_cannot_store_register): Renamed from cannot_store_register,
803 made static.
804 (the_low_target): New.
805 * gdbserver/linux-ppc-low.c (num_regs): Remove.
806 (ppc_num_regs): Define.
807 (ppc_regmap): Renamed from regmap, made static.
808 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
809 made static.
810 (ppc_cannot_store_register): Renamed from cannot_store_register,
811 made static.
812 (the_low_target): New.
813 * gdbserver/linux-s390-low.c (num_regs): Remove.
814 (s390_num_regs): Define.
815 (s390_regmap): Renamed from regmap, made static.
816 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
817 made static.
818 (s390_cannot_store_register): Renamed from cannot_store_register,
819 made static.
820 (the_low_target): New.
821 * gdbserver/linux-sh-low.c (num_regs): Remove.
822 (sh_num_regs): Define.
823 (sh_regmap): Renamed from regmap, made static.
824 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
825 made static.
826 (sh_cannot_store_register): Renamed from cannot_store_register,
827 made static.
828 (the_low_target): New.
829 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
830 (the_low_target): New.
831
832 2002-04-09 Andrew Cagney <ac131313@redhat.com>
833
834 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
835 override FP_REGNUM with frame->fp. Update copyright.
836 * parse.c (num_std_regs, std_regs): Delete.
837 (target_map_name_to_register): Do not search std_regs. Update
838 function description.
839 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
840 declarations. Update copyright.
841 Fix PR gdb/251.
842
843 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
844
845 * gdbserver/Makefile.in: Add stamp-h target.
846 * gdbserver/configure.in: Create stamp-h.
847 * gdbserver/configure: Regenerated.
848
849 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
850
851 * gdbserver/inferiors.c: New file.
852 * gdbserver/target.c: New file.
853 * gdbserver/target.h: New file.
854 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
855 dependencies.
856 * gdbserver/linux-low.c (inferior_pid): New static variable,
857 moved from server.c.
858 (linux_create_inferior): Renamed from create_inferior.
859 Call add_inferior. Return 0 on success instead of a PID.
860 (linux_attach): Renamed from myattach.
861 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
862 (linux_thread_alive): Renamed from mythread_alive.
863 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
864 child dies.
865 (linux_resume): Renamed from myresume. Add missing ``return 0''.
866 (regsets_store_inferior_registers): Correct error message.
867 Add missing ``return 0''.
868 (linux_fetch_registers): Renamed from fetch_inferior_registers.
869 (linux_store_registers): Renamed from store_inferior_registers.
870 (linux_read_memory): Renamed from read_inferior_memory.
871 (linux_write_memory): Renamed from write_inferior_memory.
872 (linux_target_ops): New structure.
873 (initialize_low): Call set_target_ops ().
874 * gdbserver/remote-utils.c (unhexify): New function.
875 (hexify): New function.
876 (input_interrupt): Send signals to ``signal_pid''.
877 * gdbserver/server.c (inferior_pid): Remove.
878 (start_inferior): Update create_inferior call.
879 (attach_inferior): Call add_inferior.
880 (handle_query): New function.
881 (main): Call handle_query for `q' packets.
882 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
883 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
884
885 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
886
887 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
888 dependencies.
889 * gdbserver/configure.in: Check for <string.h>
890 * gdbserver/configure: Regenerate.
891 * gdbserver/config.in: Regenerate.
892 * gdbserver/gdbreplay.c: Include needed system headers.
893 (remote_open): Remove strchr prototype.
894 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
895 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
896 (supply_register_by_name): Likewise.
897 (collect_register): Change buf argument to void *.
898 (collect_register_by_name): Likewise.
899 * gdbserver/regcache.h: Add missing prototypes.
900 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
901 * gdbserver/server.c (handle_query): New function.
902 (attached): New static variable, moved out of main.
903 (main): Quiet longjmp clobber warnings.
904 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
905 * gdbserver/utils.c (error): Remove NORETURN.
906 (fatal): Likewise.
907
908 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
909
910 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
911 after the last symbol in a block.
912
913 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
914
915 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
916 is non zero as a found symbol.
917
918 2002-04-08 Andrew Cagney <ac131313@redhat.com>
919
920 * findvar.c: Include "builtin-regs.h".
921 (value_of_register): Call value_of_builtin_reg when applicable.
922 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
923 (target_map_name_to_register): Call
924 builtin_reg_map_name_to_regnum.
925 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
926 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
927 (builtin_regs_h): Define.
928 (builtin-regs.o): New target.
929 (findvar.o): Add $(builtin_regs_h).
930 * builtin-regs.c, builtin-regs.h: New files.
931 * std-regs.c: New file.
932 Partial fix for PR gdb/251.
933
934 2002-04-08 Kevin Buettner <kevinb@redhat.com>
935
936 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
937 it's no longer required.
938
939 2002-04-08 Andrew Cagney <ac131313@redhat.com>
940
941 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
942
943 2002-04-08 Kevin Buettner <kevinb@redhat.com>
944
945 From Jimi X <jimix@watson.ibm.com>:
946 * rs6000-tdep.c (rs6000_software_single_step): Use
947 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
948 and size. Use target_insert_breakpoint() and
949 target_remove_breakpoint() to insert and remove breakpoints
950 instead of explicit memory reads and writes.
951
952 2002-04-08 Kevin Buettner <kevinb@redhat.com>
953
954 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
955 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
956 ELF_OBJECT_FORMAT ifdef.
957
958 2002-04-08 Kevin Buettner <kevinb@redhat.com>
959
960 From Jimi X <jimix@watson.ibm.com>:
961 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
962
963 2002-04-08 Kevin Buettner <kevinb@redhat.com>
964
965 From Jimi X <jimix@watson.ibm.com>:
966 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
967 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
968
969 2002-04-07 Mark Kettenis <kettenis@gnu.org>
970
971 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
972 s/asprintf/xasprintf/.
973 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
974
975 2002-04-07 Andrew Cagney <ac131313@redhat.com>
976
977 I believe Jeff Law denies responsability for this one:
978 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
979 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
980 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
981 Work-around for PR gdb/366.
982
983 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
984
985 * remote-e7000.c (write_small, e7000_read_inferior_memory,
986 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
987 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
988
989 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
990
991 * sh-tdep.c (sh_fp_frame_init_saved_regs,
992 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
993 information.
994
995 2002-04-07 Andrew Cagney <ac131313@redhat.com>
996
997 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
998 maintainer.
999
1000 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1001
1002 * README (Reporting Bugs in GDB): Document the bug web page as the
1003 prefered way of submitting bugs.
1004 Fix PR gdb/402.
1005
1006 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1007
1008 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
1009 -1. Update comment.
1010 * gdbarch.h, gdbarch.c: Re-generate.
1011
1012 2002-04-07 Andreas Schwab <schwab@suse.de>
1013
1014 * m68klinux-nat.c (fill_fpregset): Properly pass address of
1015 buffer to regcache_collect.
1016
1017 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1018
1019 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
1020 * gdbarch.c, gdbarch.h: Re-generate.
1021
1022 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1023
1024 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
1025 declaration. Fix -Werror.
1026
1027 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
1028
1029 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
1030 * gdbarch.c: Regenerate.
1031
1032 2002-04-05 Michael Snyder <msnyder@redhat.com>
1033
1034 * breakpoint.c (clear_command): Rewrite middle section to
1035 combine two loops with identical control conditions.
1036 Add a cleanup to eliminate a memory leak.
1037 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
1038
1039 2002-04-05 H.J. Lu (hjl@gnu.org)
1040
1041 * solib-svr4.c (bkpt_names): Add "__start".
1042
1043 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1044
1045 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
1046 as test for 64 bit target.
1047
1048 2002-04-05 Andrew Cagney <ac131313@redhat.com>
1049
1050 * h8500-tdep.c (h8500_write_fp): Delete function.
1051 * dwarf2cfi.c (cfi_write_fp): Document as not used.
1052 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
1053 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
1054 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
1055 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
1056 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
1057 (s390_write_fp):
1058 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
1059 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
1060 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
1061 (d10v_write_fp): Delete function.
1062 * inferior.h (write_fp, generic_target_write_fp): Delete
1063 declarations.
1064 * regcache.c (generic_target_write_fp): Delete function.
1065 (write_fp): Delete function.
1066 * gdbarch.sh (TARGET_WRITE_FP): Delete.
1067 * gdbarch.h, gdbarch.c: Regenerate.
1068 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
1069 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
1070 (sparc64_write_fp): Delete declaration.
1071 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
1072 (h8500_write_fp): Delete declaration.
1073
1074 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1075
1076 * sparc-tdep.c (sparc64_write_fp): Delete.
1077 (sparc_push_dummy_frame): Replace write_fp call with code to store
1078 the FP directly.
1079 (sparc_gdbarch_init): Do not initialize write_fp.
1080
1081 2002-04-05 Kevin Buettner <kevinb@redhat.com>
1082
1083 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
1084 clause.
1085
1086 2002-03-29 Jim Blandy <jimb@redhat.com>
1087
1088 * stack.c (get_selected_block): Add new argument `addr_in_block',
1089 used to return the exact code address we used to select the block,
1090 not just the block.
1091 * blockframe.c (get_frame_block, get_current_block): Same.
1092 * frame.h (get_frame_block, get_current_block,
1093 get_selected_block): Update declarations.
1094 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
1095 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
1096
1097 2002-04-05 Michael Snyder <msnyder@redhat.com>
1098
1099 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
1100 warning message.
1101
1102 2002-04-05 J. Brobecker <brobecker@gnat.com>
1103
1104 * utils.c (xfullpath): New function.
1105 * defs.h (xfullpath): Add declaration.
1106 * source.c (openp): Use xfullpath in place of gdb_realpath to
1107 avoid resolving the basename part of filenames when the
1108 associated file is a symbolic link. This fixes a potential
1109 inconsistency between the filenames known to GDB and the
1110 filenames it prints in the annotations.
1111 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
1112 to be able to match a filename with either the real filename, or
1113 the name of any symbolic link to this file.
1114 (lookup_partial_symtab): Ditto.
1115
1116 2002-04-04 Michael Snyder <msnyder@redhat.com>
1117
1118 * breakpoint.c: Add support for hardware breakpoints in overlays.
1119 (overlay_events_enabled): New state variable.
1120 (insert_breakpoints): Use overlay_events_enabled to decide
1121 whether to attempt to set a breakpoint at the overlay load addr.
1122 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1123 (remove_breakpoint): Use overlay_events_enabled to decide
1124 whether breakpoints need to be removed from overlay load addr.
1125 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1126 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
1127 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
1128 disable_overlay_breakpoints): Update overlay_events_enabled.
1129
1130 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
1131
1132 * dwarf2read.c (struct function_range): New.
1133 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
1134 (check_cu_functions): New.
1135 (read_file_scope): Initialize global function lists.
1136 Call dwarf_decode_line after processing children.
1137 (read_func_scope): Add to global function list.
1138 (dwarf_decode_lines): Call check_cu_functions everywhere
1139 record_line is called. Call record_line with a linenumber
1140 of 0 to mark sequence ends.
1141
1142 2002-04-04 Michal Ludvig <mludvig@suse.cz>
1143
1144 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
1145 change sync with glibc.
1146
1147 2002-04-03 Jim Blandy <jimb@redhat.com>
1148
1149 * configure.in: Call AC_C_INLINE.
1150 * configure: Regenerated.
1151
1152 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
1153
1154 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
1155 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
1156
1157 2002-03-31 Mark Kettenis <kettenis@gnu.org>
1158
1159 * NEWS: Mention gcore support on FreeBSD/i386.
1160
1161 * fbsd-proc.c: New file.
1162 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
1163 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
1164
1165 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
1166 while statement.
1167
1168 2002-03-29 Jim Blandy <jimb@redhat.com>
1169
1170 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
1171 unescaped newlines in string literals, but newer ones don't. So
1172 escape them.
1173
1174 2002-03-26 Michael Snyder <msnyder@redhat.com>
1175 Andrew Cagney <cagney@redhat.com>
1176
1177 * cli/cli-dump.c: New file. Dump memory to file,
1178 restore file to memory.
1179 * cli/cli-dump.h: New file.
1180 * Makefile.in: Add rules, dependencies for cli-dump.o.
1181 * NEWS: Mention new commands.
1182
1183 2002-03-28 Michael Snyder <msnyder@redhat.com>
1184
1185 * symfile.c (symbol_file_add): Move test for null symbols to later.
1186
1187 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1188
1189 From veksler at il.ibm.com:
1190 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
1191 the xstrduped original path.
1192 Fix PR gdb/417.
1193
1194 2002-03-27 Michael Snyder <msnyder@redhat.com>
1195
1196 * breakpoint.c (_initialize_breakpoint): Clean up help string.
1197 * infcmd.c (_initialize_infcmd): Ditto.
1198 * language.c (_initialize_language): Ditto.
1199 * symfile.c (_initialize_symfile): Ditto.
1200 * top.c (_init_main): Ditto.
1201 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1202
1203 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
1204
1205 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
1206 vector registers handling.
1207 (skip_prologue): Handle new AltiVec instructions. Fill in new
1208 fields of frame data.
1209 (frame_get_saved_regs): Fill in information for AltiVec registers.
1210
1211 2002-03-27 Jim Blandy <jimb@redhat.com>
1212
1213 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
1214 a function; leave this macro here to invoke that function.
1215 (symbol_init_mangled_name): Declaration for that function.
1216 * symtab.c (symbol_init_mangled_name): New function.
1217
1218 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1219
1220 * valarith.c: Replace strerror with safe_strerror.
1221 * tracepoint.c: Ditto.
1222 * lin-lwp.c: Ditto.
1223 * go32-nat.c: Ditto.
1224 * inflow.c: Ditto.
1225 * gnu-nat.c: Ditto.
1226
1227 2002-03-27 Andreas Schwab <schwab@suse.de>
1228
1229 * event-top.c (command_line_handler): Remove useless if.
1230
1231 2002-03-27 Andreas Jaeger <aj@suse.de>
1232
1233 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
1234 comment.
1235
1236 2002-03-27 Michal Ludvig <mludvig@suse.cz>
1237
1238 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
1239 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
1240 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
1241 (x86_64_linux_dr_get_status, supply_gregset),
1242 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
1243 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
1244 (x86_64_register_info_table): Add.
1245 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
1246 (x86_64_register_raw_size, x86_64_register_virtual_type),
1247 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
1248 general x86_64_register_info_table.
1249 (i386_gdbarch_init): gdbarch_register_bytes is now set
1250 dynamicaly during initialization.
1251 * regformats/reg-x86-64.dat: Synced with changes to registers above.
1252 * gdbserver/linux-x86-64-low.c: Ditto.
1253
1254 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1255
1256 * gdbserver/server.c (main): Call target_signal_to_host_p
1257 and target_signal_to_host on signals received from the remote.
1258 * gdbserver/remote-utils.c (prepare_resume_reply): Call
1259 target_signal_from_host on signals sent to the remote.
1260 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
1261 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
1262
1263 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1264
1265 * signals/signals.c: Include "server.h" in gdbserver build.
1266 (target_signal_from_name): Don't use STREQ.
1267 (_initialize_signals): Likewise. Don't include function in
1268 gdbserver build.
1269
1270 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1271
1272 * signals.c: Moved to...
1273 * signals/signals.c: Here.
1274 * Makefile (signals.o): Update.
1275
1276 2002-03-26 Jeff Law (law@redhat.com)
1277
1278 * somread.c (som_symtab_read): Remove some commented out code and
1279 updated related comments. Do not set the minimal symbol table to
1280 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
1281 in a dynamic executable.
1282 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
1283 where we are unable to find the minimal symbol for the given
1284 PC value.
1285
1286 2002-03-25 Jeff Law (law@redhat.com)
1287
1288 * linux-proc.c (read_mapping): Scan up to end of line for filename.
1289
1290 2002-03-25 Michal Ludvig <mludvig@suse.cz>
1291
1292 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
1293
1294 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1295
1296 * command.h: Update copyright.
1297 (struct cmd_list_element): Replace definition with opaque
1298 declaration.
1299 (enum cmd_types): Document that it will eventually be moved to
1300 cli/cli-decode.h
1301 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
1302 (MALLOCED_REPLACEMENT): Delete macro.
1303 * Makefile.in (cli_decode_h): Add $(command_h).
1304 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
1305 * top.c: Include "cli/cli-decode.h".
1306 * completer.c: Include "cli/cli-decode.h".
1307 * maint.c: Include "cli/cli-decode.h".
1308 * cli/cli-decode.h: Include "command.h".
1309 (enum command_class): Delete.
1310 (enum cmd_types): Comment out.
1311 (enum cmd_auto_boolean): Delete.
1312 (enum var_types): Delete.
1313
1314 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1315
1316 * cli/cli-decode.c: Include "gdb_assert.h".
1317 (add_set_or_show_cmd): New static function.
1318 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
1319 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
1320 all fields, such as func, from the set command.
1321
1322 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1323
1324 * MAINTAINERS (sh-elf): Change warning flag to -w.
1325
1326 2002-03-23 Andrew Cagney <cagney@redhat.com>
1327
1328 * defs.h (error): Add printf format attribute.
1329 * thread-db.c (thread_from_lwp): Fix error format string.
1330 * stack.c (parse_frame_specification): Ditto.
1331 * cli/cli-decode.c (undef_cmd_error): Ditto.
1332 * scm-lang.c (scm_lookup_name): Ditto.
1333 * tracepoint.c (trace_error): Ditto.
1334 * remote-utils.c (usage): Ditto.
1335 * remote.c (compare_sections_command): Ditto.
1336 Fix PR gdb/328.
1337
1338 2002-03-22 Andrew Cagney <ac131313@redhat.com>
1339
1340 * gdbtypes.c (append_composite_type_field): New function.
1341 (init_composite_type): New function.
1342 * gdbtypes.h (append_composite_type_field): Declare.
1343 (init_composite_type): Ditto.
1344
1345 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
1346
1347 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
1348 function.
1349 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
1350 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
1351 structure returning convention for SYSV ABI case, but not
1352 for GNU/Linux, FreeBSD, or NetBSD.
1353
1354 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
1355
1356 * symtab.h (lookup_block_symbol): Add mangled_name argument
1357 to prototype.
1358
1359 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
1360 with new mangled_name argument.
1361 * linespec.c (decode_line_1): Likewise.
1362 * valops (value_of_this): Likewise.
1363 * symtab.c (lookup_transparent_type): Likewise.
1364 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
1365 (lookup_symbol): If we are given a mangled name, pass it down
1366 to lookup_symbol_aux.
1367 (lookup_block_symbol): If we are given a mangled name to check
1368 against, only return symbols which match it.
1369
1370 2002-03-22 Christopher Faylor <cgf@redhat.com>
1371
1372 * win32-nat.c (child_create_inferior): Check for proper shell to use
1373 here, in case the user changes it on the fly.
1374 (_initialize_inftarg): Remove shell path considerations.
1375
1376 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
1377
1378 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
1379 for gdbarch_max_register_raw_size and max_register_virtual_size.
1380 Adjust copyright year.
1381
1382 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
1383
1384 * dbxread.c (process_one_symbol): Extend the first N_SLINE
1385 in a function to cover the entire beginning of the function
1386 as well if it does not already.
1387
1388 2002-03-21 Tom Rix <trix@redhat.com>
1389
1390 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
1391 (rs6000_ptrace64): Renamed from ptrace64.
1392
1393 2002-03-20 Martin M. Hunt <hunt@redhat.com>
1394
1395 * gdbserver/remote-utils.c (remote_open): Don't call
1396 getprotobyname, we're all using TCP here so just use
1397 IPPROTO_TCP.
1398 * gdbserver/gdbreplay.c (remote_open): Ditto.
1399
1400 2002-03-20 Martin M. Hunt <hunt@redhat.com>
1401
1402 * regcache.c (_initialize_regcache): No need to call
1403 build_regcache() at this time; it gets called whenever
1404 the gdbarch changes.
1405
1406 2002-03-20 David O'Brien <obrien@FreeBSD.org>
1407
1408 * sparc-nat.c: Include sys/param.h where possible.
1409
1410 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
1411
1412 Fix PR gdb/422.
1413 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
1414 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
1415 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
1416 complex types.
1417 * stabsread.c (rs6000_builtin_type): Likewise.
1418 (read_sun_floating_type): Likewise.
1419
1420 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1421
1422 * stabsread.c (read_member_functions): Remove skip code for duplicate
1423 constructor/destructor methods. Use standard parsing for these
1424 methods and just do not chain them to the list of methods after
1425 parsing.
1426
1427 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
1428
1429 * coffread.c: Remove redundant static declarations. Replace
1430 occurrences of `PTR' with `void *'.
1431 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
1432 * top.h (quit_cover): Likewise.
1433 * defs.h (catch_errors): Likewise.
1434
1435 2002-03-18 Andrew Cagney <ac131313@redhat.com>
1436
1437 * defs.h (XMALLOC): Define.
1438 * gdb-events.sh (XMALLOC): Delete macro.
1439 * gdb-events.c, gdb-events.h: Regenerate.
1440 * gdbarch.sh (XMALLOC): Delete macro.
1441 * gdbarch.c: Regenerate.
1442 * serial.c (XMALLOC): Delete macro.
1443 * ui-file.c (XMALLOC): Ditto.
1444 * ser-unix.h (XMALLOC): Ditto.
1445 * sh-tdep.c (XMALLOC): Ditto.
1446 * ui-out.c (XMALLOC): Ditto.
1447 * utils.c (XMALLOC): Ditto.
1448 * i386-tdep.c (XMALLOC): Ditto.
1449 * gdb-events.c (XMALLOC): Ditto.
1450 * d10v-tdep.c (XMALLOC): Ditto.
1451 * cli-out.c (XMALLOC): Ditto.
1452
1453 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
1454 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
1455 * ui-file.c, ui-out.c: Ditto.
1456
1457 2002-03-18 Andrew Cagney <ac131313@redhat.com>
1458
1459 * command.h (struct cmd_list_element): Add field context.
1460 (set_cmd_context, get_cmd_context): Declare.
1461 * cli/cli-decode.h: Ditto.
1462 * cli/cli-decode.c (get_cmd_context): New function.
1463 (set_cmd_context): New function.
1464 (add_cmd): Initialize context.
1465 Part of fixing PR gdb/145 and PR gdb/146.
1466
1467 2002-03-17 Andrew Cagney <ac131313@redhat.com>
1468
1469 * cli/cli-decode.c (cmd_type): New function.
1470 * command.h (cmd_type): Declare.
1471 * infrun.c (set_schedlock_func): Call function cmd_type.
1472 * kod.c (kod_set_os): Call cmd_type.
1473 * cris-tdep.c (cris_version_update): Use function cmd_type.
1474 (cris_mode_update, cris_abi_update): Ditto.
1475
1476 * command.h: (execute_cmd_post_hook): Declare.
1477 (execute_cmd_pre_hook): Declare.
1478 * cli/cli-script.c (clear_hook_in_cleanup): New function.
1479 (execute_cmd_post_hook, execute_cmd_pre_hook): New
1480 functions. Execute pre/post hook while ensuring that afterwords
1481 hook_in is cleared.
1482 * top.c (execute_command): Use execute_cmd_post_hook, and
1483 execute_cmd_pre_hook to execute pre/post commands.
1484 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
1485 hook_stop_stub.
1486 (hook_stop_stub): Call execute_cmd_pre_hook.
1487
1488 2002-03-17 Andrew Cagney <ac131313@redhat.com>
1489
1490 * kod.c (kod_set_os): Revert previous change. Is called by ``info
1491 set'' and this leads to a core dump. Move xstrdup of
1492 operating_system to after check that it is not NULL.
1493
1494 2002-03-17 Andrew Cagney <ac131313@redhat.com>
1495
1496 * kod.c (kod_set_os): Remove unnecessary check that
1497 ``command->type'' is set_cmd.
1498
1499 * valprint.c (set_input_radix): Use input_radix.
1500 (set_output_radix): Use output_radix.
1501 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
1502 isn't reverted.
1503
1504 2002-03-16 Andrew Cagney <ac131313@redhat.com>
1505
1506 * value.h (struct value): Delete field ``substring_addr''. Change
1507 aligner fields to force_doublest_align, force_longest_align,
1508 force_core_addr_align and force_pointer_aligh.
1509
1510 * value.h (struct value): Fix typo in above change.
1511
1512 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1513
1514 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
1515 to fix internal_error from ``maintenance print architecture''.
1516
1517 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1518
1519 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
1520 for gcc versions after gcc-2.8.1.
1521
1522 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1523
1524 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
1525 for method resolution. Restore adjustment of ``this'' pointer after
1526 calling value_struct_elt, which was accidentally removed during the
1527 HP merge.
1528
1529 2002-03-15 Andrew Cagney <ac131313@redhat.com>
1530
1531 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
1532 value_of_register.
1533 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
1534 get_saved_register.
1535 * value.h (value_of_register): Update.
1536
1537 2002-03-14 Richard Henderson <rth@redhat.com>
1538
1539 * configure.in: Detect declaration for canonicalize_file_name.
1540 * utils.c (canonicalize_file_name): Declare, if needed.
1541 (gdb_realpath): Prefer realpath if available and usable.
1542 * config.in, configure: Rebuild.
1543
1544 2002-03-14 Richard Henderson <rth@redhat.com>
1545
1546 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
1547 a constant array bound.
1548
1549 * MAINTAINERS: Add myself to write-after-approval.
1550
1551 2002-03-14 Michael Snyder <msnyder@redhat.com>
1552
1553 * symfile.c (syms_from_objfile): Return immediately if no syms.
1554 (symbol_file_add): Return immediately if no syms.
1555 (find_sym_fns): Return immediately if no syms.
1556
1557 2002-03-13 Michal Ludvig <mludvig@suse.cz>
1558
1559 * gdbserver/remote-util.c (remote_open): Print remote-side's
1560 IP address when remote debugging over the network.
1561
1562 2002-03-12 David O'Brien <obrien@FreeBSD.org>
1563
1564 * config/sparc/fbsd.mh: Fix copyright.
1565 * config/sparc/fbsd.mt: Likewise.
1566
1567 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
1568
1569 * MAINTAINERS: Fix typo in name of gdb warnings option.
1570 (x86-64): Fix formating so that this can be parsed by awk.
1571
1572 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
1573
1574 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
1575 * defs.h: Include "gdb/signals.h".
1576 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
1577
1578 2002-03-10 Michal Ludvig <mludvig@suse.cz>
1579
1580 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
1581 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
1582 from x86-64-tdep.h
1583
1584 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
1585 Don Howard <dhoward@redhat.com>
1586
1587 * mips-tdep.c (ST0_FR): Define.
1588 (mips2_fp_compat): New function, temporarily disabled.
1589 (mips_read_fp_register_single): New function.
1590 (mips_read_fp_register_double): New function.
1591 (mips_print_register): Use them.
1592 (do_fp_register_row): Likewise.
1593
1594 2002-03-09 Andrew Cagney <ac131313@redhat.com>
1595
1596 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
1597 approval''.
1598
1599 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1600
1601 * stabsread.c (read_member_functions): Fix is_stub test for
1602 static member functions, improve comment.
1603
1604 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
1605
1606 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
1607 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
1608 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
1609 commands that set boolean values.
1610 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
1611 (arm_rdi_resume): Always initialize PC.
1612 (arm_rdi_open): Don't use rslt as a boolean.
1613 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
1614 (arm_rdi_fetch_registers, arm_rdi_store_registers)
1615 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
1616 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
1617
1618 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
1619
1620 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
1621 * configure: Rebuilt.
1622
1623 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1624
1625 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
1626 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
1627
1628 2002-03-06 Andrew Cagney <ac131313@redhat.com>
1629
1630 * cli/cli-decode.c (set_cmd_completer): New function.
1631 * command.h (set_cmd_completer): Declare.
1632 * cli/cli-decode.h (set_cmd_completer): Ditto.
1633
1634 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
1635 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1636 * win32-nat.c (_initialize_inftarg): Ditto.
1637 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1638 * proc-api.c (_initialize_proc_api): Ditto.
1639 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
1640 * source.c (_initialize_source): Ditto.
1641 * exec.c (_initialize_exec): Ditto.
1642 * solib.c (_initialize_solib): Ditto.
1643 * top.c (init_main): Ditto.
1644 * tracepoint.c (_initialize_tracepoint): Ditto.
1645 * symfile.c (_initialize_symfile): Ditto.
1646 * printcmd.c (_initialize_printcmd): Ditto.
1647 * infcmd.c (_initialize_infcmd): Ditto.
1648 * corefile.c (_initialize_core): Ditto.
1649
1650 2002-03-05 Andrew Cagney <ac131313@redhat.com>
1651
1652 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
1653
1654 2002-03-05 Andrew Cagney <ac131313@redhat.com>
1655
1656 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
1657
1658 2002-03-05 Andrew Cagney <ac131313@redhat.com>
1659
1660 * NEWS: Update headings, 5.2 has branched.
1661
1662 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
1663
1664 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
1665 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
1666 (register_addr, REGISTER_RAW_SIZE): Likewise.
1667 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
1668 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
1669
1670 2002-03-03 Michal Ludvig <mludvig@suse.cz>
1671
1672 * MAINTAINERS (x86-64): Add myself.
1673 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
1674 changed value_ptr -> struct value *
1675
1676 2002-03-01 David O'Brien <obrien@FreeBSD.org>
1677
1678 * configure.host (sparc64-*-freebsd): Add.
1679 * configure.tgt: Likewise.
1680 * config/sparc/fbsd.mh: New file.
1681 * config/sparc/fbsd.mt: Likewise.
1682 * config/sparc/nm-fbsd.h: Likewise.
1683 * config/sparc/tm-fbsd.h: Likewise.
1684
1685 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
1686
1687 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
1688 regformats/reg-s390x.dat.
1689
1690 2002-03-01 Andrew Cagney <ac131313@redhat.com>
1691
1692 * utils.c: Add FIXME explaining true/false problem.
1693
1694 2002-02-28 Andrew Cagney <ac131313@redhat.com>
1695
1696 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
1697
1698 2002-02-28 Michael Chastain <mec@shout.net>
1699
1700 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
1701
1702 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
1703
1704 * gdbserver/linux-s390-low.c: New file.
1705 * regformats/reg-s390.dat: New file.
1706 * regformats/reg-s390x.dat: New file.
1707 * gdbserver/configure.srv: Add S/390.
1708 * gdbserver/Makefile.in: Add S/390.
1709 * configure.tgt: Enable gdbserver for S/390.
1710
1711 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
1712
1713 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
1714 first line of the doc string for "info dos", except at the end of
1715 the sentence, since the short help stops at the first period.
1716
1717 2002-02-28 Jason Merrill <jason@redhat.com>
1718
1719 * dwarf2read.c (dwarf_cfi_name): Add new codes.
1720
1721 2002-02-27 Fred Fish <fnf@redhat.com>
1722
1723 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
1724 comment (dumy -> dummy).
1725
1726 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1727
1728 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
1729
1730 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
1731
1732 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
1733
1734 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
1735
1736 * gdbserver/acconfig.h: New file.
1737 * gdbserver/i387-fp.c: New file.
1738 * gdbserver/i387-fp.h: New file.
1739 * gdbserver/linux-x86-64.c: New file.
1740 * regformats/reg-x86-64.dat: New file.
1741 * configure.tgt: Add x86_64-*-linux* gdbserver support.
1742 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
1743 * gdbserver/configure.in: Add support for regsets.
1744 * gdbserver/config.in: Regenerate.
1745 * gdbserver/configure: Regenerate.
1746 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
1747 * gdbserver/linux-low.h: New file.
1748 * gdbserver/linux-low.c: Include "linux-low.h". Add support
1749 for regsets.
1750 * gdbserver/linux-arm-low.c: Include "linux-low.h".
1751 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
1752 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
1753 * gdbserver/linux-mips-low.c: Include "linux-low.h".
1754 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
1755 * gdbserver/linux-sh-low.c: Include "linux-low.h".
1756 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
1757 "i387-fp.h". Add PTRACE_GETREGS and friends.
1758 * gdbserver/regcache.c (supply_register): New function.
1759 (supply_register_by_name): New function.
1760 (collect_register): New function.
1761 (collect_register_by_name): New function.
1762
1763 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
1764
1765 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
1766 (config.status): Add configure.srv dependency.
1767 (server_h): Add config.h dependency.
1768
1769 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
1770
1771 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
1772 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
1773 * gdbserver/configure.srv: Change i386-*-linux* to use
1774 reg-i386-linux.o.
1775
1776 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1777
1778 * x86-64-tdep.c: Re-indent. Update copyright date.
1779
1780 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1781
1782 From Michal Ludvig <mludvig@suse.cz>:
1783 * x86-64-tdep.c (value.h): Delete.
1784 (gdb_assert.h): Include.
1785 (x86_64_register_convert_to_virtual,
1786 x86_64_register_convert_to_raw ): Add check which lets only
1787 floating-point values to be converted.
1788 (value_push): Delete.
1789 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
1790 (i386_gdbarch_init): Number of register_bytes fixed.
1791
1792 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1793
1794 * MAINTAINERS: Add x86-64 target.
1795
1796 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1797
1798 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
1799 * osfsolib.c (solib_map_sections): Ditto.
1800 * irix5-nat.c (solib_map_sections): Ditto.
1801 * corelow.c (gdb_check_format): Ditto.
1802 * symfile.c (symfile_bfd_open): Ditto.
1803 * solib.c (solib_map_sections): Ditto.
1804 Fix PR gdb/354.
1805
1806 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1807
1808 * remote.c (_initialize_remote): By default, disable ``e'' and
1809 ``E'' step out-of-range packets.
1810
1811 2002-02-26 Andreas Schwab <schwab@suse.de>
1812
1813 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
1814 m68k_linux_frame_saved_pc.
1815 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
1816 in_sigtramp.
1817 (SIGCONTEXT_PC_OFFSET): Remove.
1818 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
1819 m68k_linux_sigtramp_saved_pc): New functions.
1820 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
1821 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
1822 (UCONTEXT_PC_OFFSET): Define.
1823 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
1824 non-RT and RT signal trampolines.
1825
1826 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
1827
1828 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
1829 (TARGET_NBPG, STACK_END_ADDR): Delete
1830 (VARIABLES_INSIDE_BLOCK): Delete.
1831
1832 2002-02-25 Andrew Cagney <ac131313@redhat.com>
1833
1834 * utils.c (perror_with_name): Make string parameter constant.
1835 (print_sys_errmsg): Ditto.
1836 (query): Ditto.
1837 * defs.h (perror_with_name): Update.
1838 (print_sys_errmsg): Update.
1839 (query): Update.
1840
1841 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
1842
1843 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
1844 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
1845
1846 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1847
1848 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
1849 if it already matches the current architecture from the exec file.
1850 Include arch-utils.h for gdbarch_info_init prototype.
1851 * Makefile.in (rs6000-nat.o): Update dependencies.
1852
1853 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
1854
1855 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
1856 list of exported variables.
1857
1858 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
1859
1860 * gdbserver/configure.srv: New file.
1861 * gdbserver/configure.in: Use configure.srv instead
1862 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
1863 from it.
1864 * gdbserver/configure: Regenerated.
1865 * gdbserver/terminal.h: New file.
1866 * gdbserver/Makefile.in: Update for configure changes. Remove
1867 more unneeded include paths.
1868
1869 2002-02-24 Andrew Cagney <ac131313@redhat.com>
1870
1871 From wiz at danbala:
1872 * config/sparc/tm-sp64.h: Fix grammar and typos.
1873 Fix PR gdb/287.
1874
1875 2002-02-24 Andrew Cagney <ac131313@redhat.com>
1876
1877 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
1878 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
1879 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
1880 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
1881 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
1882 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
1883 * s390-tdep.c: Ditto.
1884 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
1885 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
1886 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
1887 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
1888 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
1889 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
1890 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
1891 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
1892 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
1893 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
1894 Fix PR gdb/378.
1895
1896 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1897
1898 * lin-thread.c: Delete file.
1899 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
1900 to gdb_proc_service.h.
1901 * configure: Re-generate.
1902
1903 * ocd.c (ocd_open): Do not try to open the "ocd" device.
1904 * serial.c (serial_open): Delete check for "ocd".
1905 Fix PR gdb/349.
1906
1907 * Makefile.in (linux-thread.o): Delete target.
1908 * linux-thread.c: Delete file.
1909
1910 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
1911 renamed SH files to be consistent.
1912
1913 * symtab.c (sort_search_symbols): Use xfree.
1914
1915 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
1916
1917 * arm-linux-tdep.c (arm_linux_init_abi): Register
1918 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
1919 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
1920 definition with undef, since we don't want the sysvr4 definition.
1921 (SKIP_TRAMPOLINE_CODE): Likewise.
1922
1923 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1924
1925 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
1926
1927 * configure.in: (AC_CHECK_FUNCS) Added test for
1928 canonicalize_file_name Regenerated.
1929 * config.in, configure: Regenerated.
1930 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
1931 defined use canonicalize_file_name.
1932
1933 2002-02-23 Michael Chastain <mec@shout.net>
1934
1935 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
1936
1937 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1938
1939 * README: Remove references to cygnus.com.
1940 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
1941 dot com'' form. Remove references to cygnus.com and sourceware.
1942
1943 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1944
1945 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
1946 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
1947 1003.1-2001 no longer allows "head -1".
1948 * gdb/Makefile.in (version.c): Likewise.
1949 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
1950 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
1951 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
1952
1953 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1954
1955 * cli/cli-decode.c (cmd_cfunc_eq): New function.
1956 * command.h (cmd_cfunc_eq): Declare.
1957 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
1958
1959 * cli/cli-cmds.h (is_complete_command): Change parameter to a
1960 ``struct cmd_list_element *''.
1961 * cli/cli-cmds.c (is_complete_command): Update. Use
1962 cmd_cfunc_eq.
1963 * top.c (execute_command): Pass the command to
1964 is_complete_command.
1965 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
1966
1967 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1968
1969 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
1970 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
1971 architecture defines.
1972 * s390-tdep.c (s390_gdbarch_init): Likewise.
1973
1974 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
1975
1976 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
1977 (arm_linux_push_arguments): Likewise.
1978 (arm_linux_init_abi): Register them. Also register linux-specific
1979 call_dummy_words.
1980 (find_minsym_and_objfile): Use strcmp, not STREQ.
1981 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
1982 (arm_linux_call_dummy_words): Delete declaration.
1983 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
1984 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
1985 declarations.
1986 (LOWEST_PC): Delete.
1987
1988 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1989
1990 * maint.c (print_section_info): Do not prepend `0x' to filepos
1991 output, it will be handled by local_hex_string_custom.
1992
1993 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
1994
1995 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
1996 (store_newfpe_double, store_newfpe_extended, store_fpregister)
1997 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
1998
1999 2002-02-22 Jim Blandy <jimb@redhat.com>
2000
2001 Indicate that the bcache functions don't change the strings
2002 they're passed.
2003 * bcache.h (bcache, hash): Add `const' keywords to declarations.
2004 * bcache.c (bcache, hash): Add `const' keywords to definitions.
2005
2006 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
2007
2008 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
2009
2010 2002-02-21 Christopher Faylor <cgf@redhat.com>
2011
2012 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
2013 find the complete path to a loaded DLL.
2014
2015 2002-02-21 Fred Fish <fnf@redhat.com>
2016
2017 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
2018 that marks the end of the range of a function, enter a line number
2019 entry that has a line number of zero and a PC offset that matches
2020 the end of the function. This starts a range of PC's for which no
2021 line number information is known.
2022 * symtab.c (find_pc_sect_line): If our best fit is in a range of
2023 PC's for which no line number info is found (line number is zero)
2024 then we didn't find any valid line information.
2025 * symtab.h: Document use of zero line number entry.
2026
2027 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
2028
2029 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
2030 (have_ptrace_getvrregs): Define for run time checks.
2031 (gdb_vrregset_t): New type for Altivec register handling.
2032 (fetch_register, store_register): Fetch/store altivec register
2033 when needed.
2034 (fetch_altivec_register, store_altivec_register): New functions.
2035 (supply_vrregset, fill_vrregset): New functions.
2036 (fetch_altivec_registers, store_altivec_registers): New functions.
2037 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
2038 registers as well.
2039
2040 2002-02-21 Jiri Smid <smid@suse.cz>
2041
2042 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
2043
2044 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2045
2046 * Makefile.in (armnbsd-nat.o): Update dependencies.
2047 * armnbsd-nat.c (supply_gregset): New function. Common code to
2048 supply the integer register set.
2049 (supply_fparegset): New function. Similar for FPA registers.
2050 (fetch_regs, fetch_fp_regs): Use them.
2051 (fetch_core_registers): Likewise.
2052 (fetch_elfcore_registers): New function.
2053 (arm_netbsd_elfcore_fns): New core-file type specification.
2054 (_initialize_arm_netbsd_nat): Register it.
2055
2056 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2057
2058 * armnbsd-nat.c: Include gdbcore.h.
2059 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
2060 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
2061 'void' to declaration, to shut up ARI.
2062 (fetch_core_registers): Make static. Rewrite using supply_register.
2063 (arm_netbsd_core_fns): New core-file type specification.
2064 (_initialize_arm_netbsd_nat): New function.
2065
2066 2002-02-21 Christopher Faylor <cgf@redhat.com>
2067
2068 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
2069 value.
2070
2071 2002-02-20 Christopher Faylor <cgf@redhat.com>
2072
2073 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
2074 fails.
2075
2076 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2077
2078 * jv-exp.y (parse_number): Change type of implicit longs
2079 to builtin_type_uint64.
2080
2081 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2082
2083 * gdbserver/linux-low.c (mywait): Change argument to waitpid
2084 to be an integer instead of a `union wait'.
2085
2086 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2087
2088 * mips-linux-nat.c: Call the operating system GNU/Linux.
2089 * mips-linux-tdep.c: Likewise.
2090 * mips-tdep.c: Likewise.
2091
2092 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2093
2094 Fix PR gdb/265.
2095 * jv-exp.y (parse_number): Handle 64-bit integers.
2096
2097 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2098
2099 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
2100 AC_STDC_HEADERS to AC_HEADER_STDC.
2101 * gdbserver/configure: Regenerated.
2102
2103 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2104
2105 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
2106 is defined.
2107 * sparc-tdep.c (get_longjmp_target): Likewise.
2108
2109 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2110
2111 * News: Add news about ARM and Multi-arch. Mention the new target
2112 arm*-*-netbsd*.
2113
2114 2002-02-19 Jim Blandy <jimb@redhat.com>
2115
2116 * stabsread.c (error_type_complaint): Improve error message.
2117
2118 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
2119
2120 * gdbserver/README: Update documentation.
2121 * gdbserver/configure.in: Update configury to match documentation.
2122 * gdbserver/Makefile.in: Likewise.
2123 * gdbserver/configure: Regenerated.
2124 * gdbserver/aclocal.m4: New file, generated by aclocal.
2125 * gdbserver/config.in: New file, generated by autoheader.
2126
2127 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2128
2129 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
2130 armnbsd-nat.c.
2131
2132 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2133
2134 * arm-tdep.h (enum arm_float_model): New enum.
2135 (struct gdbarch_tdep): Add fp_model.
2136 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
2137 up floating-point conversions until we know the floating-point model
2138 in use by the inferior. Don't complain about being unable to
2139 determine the ABI of the inferior when we don't have one.
2140 (arm_extract_return_value): Support different floating-point models.
2141 (arm_store_return_value): Likewise.
2142 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
2143 ARM_FLOAT_SOFT.
2144 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
2145
2146 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2147
2148 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
2149 of ``current_gdbarch''.
2150
2151 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2152
2153 * armnbsd-nat.c : ANSIfy all function declarations.
2154 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
2155 (fetch_inferior_registers): Re-implement in terms of above.
2156 (store_register, store_regs, store_fp_register, store_fp_regs): New.
2157 (store_inferior_registers): Re-implement in terms of above.
2158
2159 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2160
2161 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
2162 kernel.
2163 * arm-linux-tdep.c: Likewise.
2164 * config/arm/tm-linux.h: Likewise.
2165
2166 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2167
2168 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
2169 * config/arm/nbsd.mt (TM_FILE): Delete.
2170 * config/arm/tm-nbsd.h: Delete.
2171
2172 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2173
2174 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
2175 Initialize CALL_DUMMY_LENGTH.
2176
2177 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2178
2179 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
2180 function.
2181 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
2182 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
2183 defines one thing and that is incorrect for this port.
2184 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
2185
2186 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2187
2188 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
2189
2190 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2191
2192 * win32-nat.c (display_selector): New function. Displays information
2193 about the information returned by GetThreadSelectorEntry API function.
2194 (display_selectors): New function. Displays the infomation of
2195 the selector given as argument, or of CS, DS ans FS selectors
2196 if no argument is given.
2197 ( _initialize_inftarg): Add "w32" as info prefix command.
2198 Add "info w32 selector" as command calling display_selectors.
2199
2200 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
2201
2202 * i386-tdep.c (get_longjmp_target): Fix compilation failure
2203 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
2204 if not defined.
2205
2206 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2207
2208 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
2209
2210 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2211
2212 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
2213 (arm_fix_call_dummy): Call it.
2214 (arm_call_dummy_breakpoint_offset): Delete.
2215 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
2216 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2217
2218 2002-02-18 Andrew Cagney <ac131313@redhat.com>
2219
2220 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
2221 Default to func_frame_chain_valid.
2222 * gdbarch.h, gdbarch.c: Re-generate.
2223 * frame.h (FRAME_CHAIN_VALID): Delete definition.
2224
2225 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
2226
2227 * ppc-linux-nat.c: Update copyright.
2228 (fetch_register, store_register): Add tid parameter, don't compute
2229 tid here.
2230 (fetch_ppc_registers, store_ppc_registers): Add tid
2231 parameter. Pass it along to callees.
2232 (fetch_inferior_registers, store_inferior_registers): Compute tid
2233 here, and pass it to calleed functions.
2234 (fill_gregset, supply_fpregset): Clean up formatting.
2235
2236 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2237
2238 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
2239 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
2240
2241 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2242
2243 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
2244 * gdbarch.c gdbarch.h: Regenerate.
2245 * breakpoint.c (create_longjmp_breakpoint): Always compile this
2246 function.
2247 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
2248 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
2249 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
2250
2251 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
2252 * arm-tdep.c (arm_get_longjmp_target): New function.
2253 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
2254 this to a positive value register arm_get_longjmp_target as the
2255 longjmp handler.
2256 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
2257 (arm_linux_init_abi): Set up longjmp description in tdep.
2258 * armnbsd-nat.c (get_longjmp_target): Delete.
2259 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
2260 description in tdep.
2261 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
2262 (get_longjmp_target): Delete declaration.
2263 (GET_LONGJMP_TARGET): Delete.
2264 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
2265 (GET_LONGJMP_TARGET): Delete.
2266
2267 2002-02-17 Kevin Buettner <kevinb@redhat.com>
2268
2269 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
2270 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
2271 of ``current_gdbarch''.
2272
2273 2002-02-17 Tom Tromey <tromey@redhat.com>
2274
2275 * cli/cli-cmds.c (compare_strings): New function.
2276 (complete_command): Only print each unique item once.
2277 * completer.h (complete_line): Declare.
2278 * completer.c (complete_line): New function.
2279 (line_completion_function): Use it.
2280
2281 2002-02-16 Andrew Cagney <ac131313@redhat.com>
2282
2283 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
2284 * gdbarch.h, gdbarch.c: Re-generate.
2285
2286 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
2287
2288 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
2289
2290 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
2291
2292 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
2293 * valops.c (value_arg_coerce): Don't take the address of a reference
2294 to convert an argument to a reference.
2295
2296 2002-02-15 Christopher Faylor <cgf@redhat.com>
2297
2298 * win32-nat.c (get_image_name): New function.
2299 (handle_load_dll): Use get_image_name function.
2300 (get_child_debug_event): Avoid registering debug events until possibly
2301 execed process is started.
2302 (child_create_inferior): Allow invocation via shell so that command
2303 line redirection, etc. works ok.
2304 (_initialize_inftarg): Add new command: "set shell" to control whether
2305 a shell is used to start a process.
2306
2307 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
2308
2309 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
2310 instead of find_register_by_number.
2311 (cannot_store_register): Likewise.
2312
2313 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
2314
2315 * dwarf2read.c: Replace fprintf (stderr, ...) by
2316 fprintf_unfiltered (gdb_stderr, ...).
2317
2318 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
2319
2320 * gdbserver/gdbserver.1: Document --attach.
2321
2322 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
2323
2324 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
2325 descriptions.
2326 * arm-tdep.c (arm_default_arm_le_breakpoint)
2327 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
2328 (arm_default_thumb_be_breakpoint): New. Initialize them from
2329 traditional breakpoint defines.
2330 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
2331 (arm_gdbarch_init): Initialize new breakpoint variables.
2332 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
2333 (arm_linux_init_abi): Initialize linux-specific breakpoint.
2334 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
2335 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
2336 code out to ...
2337 (arm_netbsd_init_abi_common): ... here; new function.
2338 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
2339 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
2340 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
2341 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
2342
2343 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
2344
2345 * arm-tdep.h (enum arm_abi): New enum.
2346 (struct gdbarch_tdep): New structure.
2347 (LOWEST_PC): Provide a default.
2348 (arm_gdbarch_register_os_abi): Declare new function.
2349 * arm-tdep.c (arm_abi_names): New array.
2350 (process_note_abi_tag_sections): New function.
2351 (get_elfosabi): New function.
2352 (arm_gdbarch_register_os_abi): New function.
2353 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
2354 support for that ABI has been built in, then call the appropriate
2355 configuration routine. Use gdbarch_num_regs() to get the number
2356 of registers.
2357 (arm_dump_tdep): New function.
2358 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
2359 place-holder functions.
2360 (_initialize_arm_tdep): Register them.
2361 * config/arm/tm-arm.h (LOWEST_PC): Delete.
2362
2363 * armnbsd-tdep.c: New file.
2364 * Makefile.in (armnbsd-tdep.o): Add dependencies.
2365 * config/arm/nbsd.mt (TDEPFILES): Add it.
2366 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
2367
2368 * armnbsd-nat.c: Include regcache.h.
2369 * Makefile.in (armnbsd-nat.o): Update dependency list.
2370
2371 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
2372
2373 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2374
2375 * gdbserver/Makefile.in: Fix typos in target rules.
2376
2377 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2378
2379 Fix part of PR gdb/267.
2380 * linespec.c (find_methods): Handle constructors specially for now.
2381
2382 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
2383
2384 * arm-tdep.c (arm_push_arguments): Eliminate special float type
2385 handling.
2386 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
2387 standard_coerce_float_to_double().
2388
2389 2002-02-14 Christopher Faylor <cgf@redhat.com>
2390
2391 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
2392 GDBINIT_FILENAME.
2393
2394 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
2395
2396 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
2397 find_variant_by_name, because it confuses the multiarch
2398 framework. Return NULL if there isn't an architecture with the
2399 user supplied name, instead of forcing a different one without
2400 recording the change with the multiarch machinery.
2401 (find_variant_by_name): Delete.
2402
2403 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2404
2405 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
2406 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
2407
2408 2002-02-13 Martin M. Hunt <hunt@redhat.com>
2409
2410 * stack.c (print_frame_info_base): When calling
2411 print_frame_info_listing_hook, set current_source_symtab.
2412
2413 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2414
2415 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
2416 and remove unused $(INCLUDE_DIR).
2417 Add regcache.c to OBS.
2418 Add generated register protocol files to clean target.
2419 Update dependencies for new objects, obsolete old target code.
2420
2421 * gdbserver/linux-low.c: Remove all platform-specific code to
2422 new files. Remove various dead code. Update to use regcache
2423 functionality.
2424 * gdbserver/remote-utils.c (fromhex): Add return statement
2425 to quiet warning.
2426 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
2427 constant.
2428 (input_interrupt): Add integer parameter to match prototype
2429 of a signal handler.
2430 (outreg): Use register_data ().
2431 (prepare_resume_reply): Use gdbserver_expedite_regs.
2432 * gdbserver/server.c (main): Dynamically allocate own_buf because
2433 PBUFSIZ is no longer constant. Use registers_to_string () and
2434 registers_from_string ().
2435 * gdbserver/server.h: No longer include "defs.h". Add prototypes
2436 for error (), fatal (), and warning (). Update definition of
2437 PBUFSIZ to use regcache functionality. Add include guard.
2438 * gdbserver/utils.c (fatal): Add missing ``const''.
2439 (warning): New function.
2440
2441 * regformats/regdat.sh: Include "regcache.h" in generated files.
2442 Provide init_registers () function.
2443 * regformats/regdef.h: Add prototype for set_register_cache ().
2444 Add include guard.
2445
2446 * gdbserver/linux-arm-low.c: New file.
2447 * gdbserver/linux-i386-low.c: New file.
2448 * gdbserver/linux-ia64-low.c: New file.
2449 * gdbserver/linux-m68k-low.c: New file.
2450 * gdbserver/linux-mips-low.c: New file.
2451 * gdbserver/linux-ppc-low.c: New file.
2452 * gdbserver/linux-sh-low.c: New file.
2453
2454 * gdbserver/regcache.c: New file.
2455 * gdbserver/regcache.h: New file.
2456
2457 * gdbserver/low-linux.c: Removed obsolete file.
2458
2459 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2460
2461 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
2462 * config/i386/linux.mt: Likewise.
2463 * config/ia64/linux.mt: Likewise.
2464 * config/m68k/linux.mh: Likewise.
2465 * config/powerpc/linux.mh: Likewise.
2466 * config/mips/linux.mt: Likewise.
2467
2468 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
2469
2470 * config/i386/i386lynx.mh: Mark gdbserver variables
2471 as (currently) obsolete for this target.
2472 * config/i386/nbsd.mt: Likewise.
2473 * config/i386/nbsdelf.mt: Likewise.
2474 * config/m32r/m32r.mt: Likewise.
2475 * config/m68k/m68klynx.mh: Likewise.
2476 * config/m68k/nbsd.mt: Likewise.
2477 * config/m68k/sun3os4.mh: Likewise.
2478 * config/mips/vr5000.mt: Likewise.
2479 * config/ns32k/nbsd.mt: Likewise.
2480 * config/pa/hppabsd.mh: Likewise.
2481 * config/pa/hppaosf.mh: Likewise.
2482 * config/powerpc/nbsd.mt: Likewise.
2483 * config/rs6000/rs6000lynx.mh: Likewise.
2484 * config/s390/s390.mt: Likewise.
2485 * config/s390/s390x.mt: Likewise.
2486 * config/sparc/sparclynx.mh: Likewise.
2487 * config/sparc/sun4os4.mh: Likewise.
2488 * config/i386/x86-64linux.mt: Likewise.
2489 * config/sparc/linux.mh: Likewise.
2490
2491 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2492
2493 * configure.tgt: Configure gdbserver only for known working
2494 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
2495 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
2496 SUBDIRS if it is configured. Update comment for ${nativefile}.
2497 * configure: Regenerated.
2498
2499 2002-02-13 Michael Snyder <msnyder@redhat.com>
2500
2501 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
2502
2503 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
2504 (default_gcore_mach): Just return 0, work around a problem in bfd.
2505 (default_gcore_target): OK to return NULL if exec_bfd is null.
2506 (make_mem_sec): Use a cast, avoid a warning.
2507
2508 * procfs.c (find_memory_regions_callback): Use a cast instead of
2509 calling host_pointer_to_address (which complains if
2510 sizeof (host pointer) != sizeof (target pointer)).
2511 (procfs_make_note_section): Avoid overflow in psargs string.
2512
2513 * procfs.c (procfs_make_note_section): Make the default
2514 implementation return an error.
2515
2516 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
2517
2518 * procfs.c (procfs_make_note_section): Provide a default definition
2519 (for alpha-dec-osf4.0f). Fix typos.
2520
2521 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
2522
2523 * linux-proc.c: Add include of regcache.h.
2524 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
2525
2526 2002-02-13 Andrew Cagney <ac131313@redhat.com>
2527
2528 From 2002-01-18 Greg McGary <greg@mcgary.org>:
2529 * memattr.c (create_mem_region): Disallow useless empty region.
2530 Regions are half-open intervals, so allow [A..B) [B..C) as
2531 non-overlapping.
2532
2533 2002-02-13 Michael Chastain <mec@shout.net>
2534
2535 * defs.h: Kill CONST_PTR.
2536 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
2537 * c-lang.c (c_builtin_types): Likewise.
2538 * ch-lang.c (ch_builtin_types): Likewise.
2539 * f-lang.c (f_builtin_types): Likewise.
2540 * language.c (unknown_builtin_types): Likewise.
2541 * m2-lang.c (m2_builtin_types): Likewise.
2542 * p-lang.c (pascal_builtin_types): Likewise.
2543 * scm-lang.c (c_builtin_types): Likewise.
2544
2545 2002-02-13 Keith Seitz <keiths@redhat.com>
2546
2547 * arm-tdep.h (arm_get_next_pc): Add declaration.
2548
2549 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
2550
2551 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
2552 with other related struct-returning functions.
2553 (arm_extract_struct_value_address): New function.
2554 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
2555 initialize float_format, double_format and long_double_format as
2556 appropriate to the endianness of the target.
2557 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
2558 (arm_use_struct_convention): Delete declaration.
2559 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2560
2561 2002-02-13 Keith Seitz <keiths@redhat.com>
2562
2563 * defs.h (core_addr_to_string_nz): New function.
2564
2565 2002-02-13 Mark Kettenis <kettenis@gnu.org>
2566
2567 Apply missing bits of 2002-01-15 patch.
2568 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
2569 (fill_fpregset): Use i387_fill_fsave.
2570
2571 2002-02-12 Keith Seitz <keiths@redhat.com>
2572
2573 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
2574 (core_addr_to_string_nz): New function.
2575
2576 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
2577
2578 * arm-linux-nat.c: Really include arm-tdep.h.
2579 * config/arm/tm-linux.h (struct type, struct value): Declare.
2580
2581 2002-02-11 Michael Snyder <msnyder@redhat.com>
2582
2583 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
2584 (gcore section): Ifdef for Solaris and Unixware only.
2585 (procfs_do_thread_registers): Unixware needs one lwpstatus
2586 per thread (not one prstatus or pstatus).
2587 (procfs_make_note_section): Iterate only over kernel threads (lwps),
2588 not over all gdb threads. For unixware, call elfcore_write_pstatus
2589 once before iterating over threads.
2590
2591 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
2592
2593 * arm-tdep.h: New file.
2594 * arm-tdep.c: Include arm-tdep.h.
2595 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2596 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2597 (arm_print_float_info, arm_register_type, convert_to_extended)
2598 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2599 (arm_extract_return_value, arm_register_name): Make static.
2600 (arm_software_single_step): Similarly. Fix types in declaration.
2601 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
2602 (arm_store_return_value, arm_store_struct_return): New functions.
2603 (arm_gdbarch_init): Register the above functions. Also register
2604 call_dummy_start_offset, sizeof_call_dummy_words,
2605 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
2606 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
2607 max_register_virtual_size, register_size. Set up
2608 prologue_cache.saved_regs here, rather than ...
2609 (_initialize_arm_tdep): ... here.
2610 * config/arm/tm-arm.h (struct type, struct value): Delete forward
2611 declarations.
2612 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2613 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2614 (arm_print_float_info, arm_register_type, convert_to_extended)
2615 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2616 (arm_extract_return_value, arm_register_name): Delete declarations.
2617 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
2618 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
2619 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
2620 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
2621 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2622 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
2623 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
2624 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
2625 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
2626 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
2627 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
2628 (arm_get_next_pc): No-longer static -- these are needed by the RDI
2629 interface.
2630 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
2631 * remote-rdi.c remote-rdp.c: Likewise.
2632 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
2633 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
2634 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
2635 definition.
2636
2637 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
2638 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
2639 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
2640 from non-ARM_ prefixed definitions.
2641 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
2642 all uses of above.
2643 * remote-rdi.c remote-rdp.c: Likewise.
2644 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
2645
2646 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
2647
2648 * arm-tdep.c (arm_frameless_function_invocation)
2649 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2650 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2651 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2652 (arm_pop_frame, arm_get_next_pc): Make static.
2653 (arm_gdbarch_init): Register above in gdbarch structure.
2654 (arm_read_fp): Renamed from arm_target_read_fp.
2655 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
2656 * config/arm/tm-arm.h (arm_frameless_function_invocation)
2657 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2658 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2659 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2660 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
2661 (arm_pc_is_thumb_dummy): Delete declarations.
2662 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
2663 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
2664 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
2665 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
2666
2667 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2668
2669 * symtab.c (compare_search_syms): New function.
2670 (sort_search_symbols): New function.
2671 (search_symbols): Sort symbols after searching rather than
2672 before.
2673
2674 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2675
2676 * NEWS: Linux -> GNU/Linux.
2677
2678 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2679
2680 * gdbarch.sh: For for level one methods, disallow a definition
2681 when partially multi-arched. Add comments explaining rationale.
2682 * gdbarch.h: Re-generate.
2683
2684 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2685
2686 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
2687 multi-arch partial.
2688
2689 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2690
2691 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
2692 field. Use diff -u.
2693 * gdbarch.c: Re-generate.
2694
2695 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2696
2697 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
2698 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
2699 partial.
2700
2701 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2702
2703 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
2704 multi-arch partial.
2705 (PUSH_ARGUMENTS): Switch to using predefault.
2706 * gdbarch.c: Regenerate.
2707
2708 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2709
2710 * valops.c (PUSH_ARGUMENTS): Delete definition.
2711 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
2712 partial. Default to default_push_arguments.
2713 * gdbarch.h, gdbarch.c: Regenerate.
2714
2715 2002-02-09 Andrew Cagney <ac131313@redhat.com>
2716
2717 * defs.h (throw_exception): Rename return_to_top_level. Update
2718 comments.
2719 * utils.c (error_stream, internal_verror, quit): Ditto.
2720 * top.c (throw_exception, catcher): Ditto.
2721 * sparclet-rom.c (sparclet_load): Ditto.
2722 * remote.c (interrupt_query, minitelnet): Ditto.
2723 * remote-sds.c (interrupt_query): Ditto.
2724 * remote-mips.c (mips_error, mips_kill): Ditto.
2725 * ocd.c (interrupt_query): Ditto.
2726 * monitor.c (monitor_interrupt_query): Ditto.
2727 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
2728 * target.h: Update comment.
2729
2730 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
2731
2732 2002-02-09 Andrew Cagney <ac131313@redhat.com>
2733
2734 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
2735 default_double_format.
2736 * gdbarch.h, gdbarch.c: Re-generate.
2737 * findvar.c (floatformat_unknown): Delete variable definition.
2738 * doublest.h (floatformat_unknown): Delete variable declaration.
2739
2740 2002-02-09 Jim Blandy <jimb@redhat.com>
2741
2742 * stabsread.c (read_type): Add code to parse Sun's syntax for
2743 prototyped function types.
2744
2745 2002-02-09 Andrew Cagney <ac131313@redhat.com>
2746
2747 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
2748 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
2749
2750 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2751
2752 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
2753 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
2754 now _initialize_xcoffsolib gets called again and overrides the
2755 commands from solib.c in a native configuration.
2756
2757 2002-02-09 Mark Kettenis <kettenis@gnu.org>
2758
2759 * doublest.c (store_typed_floating): Don't try to return a value.
2760 Fixes PR gdb/290.
2761
2762 2002-02-08 Jim Blandy <jimb@redhat.com>
2763
2764 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
2765 is prototyped and has no arguments, print its argument list as
2766 `(void)'.
2767
2768 2002-02-08 Chris Demetriou <cgd@broadcom.com>
2769
2770 * MAINTAINERS (write-after-approval): Add myself.
2771 (paper-trail): I've escaped!
2772
2773 2002-02-08 Christopher Faylor <cgf@redhat.com>
2774
2775 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
2776 changes.
2777 (_initialize_check_for_gdb_ini): Ditto.
2778
2779 2002-02-08 Martin M. Hunt <hunt@redhat.com>
2780
2781 * win32-nat.c (cygwin_pid_to_str): Fix typo.
2782 xaprintf -> xasprintf.
2783
2784 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
2785
2786 * win32-nat.c: Remove use of printf and sprintf functions.
2787
2788 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
2789
2790 * arm-tdep.c (arm_frame_chain_valid): Make static.
2791 (arm_push_arguments): Likewise.
2792 (arm_gdbarch_init): New function.
2793 (_initialize_arm_tdep): Call it.
2794 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
2795 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
2796 (FRAME_CHAIN_VALID): Delete.
2797 (arm_frame_chain_valid): Delete declaration.
2798 (PUSH_ARGUMENTS): Delete.
2799 (arm_push_arguments): Delete declaration.
2800 (CALL_DUMMY_P): Delete.
2801
2802 2002-02-08 Andrew Cagney <ac131313@redhat.com>
2803 Corinna Vinschen <vinschen@redhat.com>
2804
2805 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
2806 on builtin float types.
2807
2808 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
2809
2810 * utils.c: Include <curses.h> before "bfd.h".
2811 * tui/tui-hooks.c: Likewise.
2812 * tui/tui.c: Likewise.
2813 * tui/tuiCommand.c: Likewise.
2814 * tui/tuiData.c: Likewise.
2815 * tui/tuiDataWin.c: Likewise.
2816 * tui/tuiDisassem.c: Likewise.
2817 * tui/tuiGeneralWin.c: Likewise.
2818 * tui/tuiIO.c: Likewise.
2819 * tui/tuiLayout.c: Likewise.
2820 * tui/tuiRegs.c: Likewise.
2821 * tui/tuiSource.c: Likewise.
2822 * tui/tuiSourceWin.c: Likewise.
2823 * tui/tuiStack.c: Likewise.
2824 * tui/tuiWin.c: Likewise.
2825
2826 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
2827
2828 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
2829 to include space for pseudoregs as well. Update loops accordingly.
2830 (sh_fp_frame_init_saved_regs): Ditto.
2831 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
2832
2833 2002-02-07 Andrew Cagney <ac131313@redhat.com>
2834
2835 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
2836 Add Richard Earnshaw to Arm maintainers.
2837
2838 2002-02-07 Andrew Cagney <ac131313@redhat.com>
2839
2840 * defs.h (warning_begin): Delete declaration.
2841
2842 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
2843 Delete macro.
2844
2845 2002-02-07 Michael Snyder <msnyder@redhat.com>
2846
2847 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
2848 Logic bug, remove misplaced else.
2849
2850 2002-02-07 Klee Dienes <klee@apple.com>
2851
2852 * fork-inferior.c (fork_inferior): Add '!' to the list of
2853 characters that need to be quoted when building a string for the
2854 shell. Quote '!' specifically with a backslash, since CSH chokes
2855 when trying to evaluate "str!str".
2856
2857 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
2858
2859 * rdi-share/host.h: Only provide a typedef for bool if it is not
2860 defined.
2861
2862 2002-02-04 Michael Snyder <msnyder@redhat.com>
2863
2864 * breakpoint.h (enum bptype): Add new overlay event bp type.
2865 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
2866
2867 * breakpoint.c (create_internal_breakpoint): New function.
2868 (internal_breakpoint_number): Moved into create_internal_breakpoint.
2869 (create_longjmp_breakpoint): Use create_internal_breakpoint.
2870 (create_thread_event_breakpoint): Ditto.
2871 (create_solib_event_breakpoint): Ditto.
2872 (create_overlay_event_breakpoint): New function.
2873 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
2874 (update_breakpoints_after_exec): Delete and re-initialize
2875 overlay event breakpoints after an exec. Add FIXME comment
2876 about longjmp breakpoint.
2877 (print_it_typical): Ignore overlay event breakpoints.
2878 (print_one_breakpoint): Ditto.
2879 (mention): Ditto.
2880 (bpstat_what): Do not stop for overlay event breakpoints.
2881 (delete_breakpoint): Don't delete overlay event breakpoints.
2882 (breakpoint_re_set_one): Delete the overlay event breakpoint.
2883 (breakpoint_re_set): Re-create overlay event breakpoint.
2884
2885 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
2886 (overlay_manual_command): Disable overlay breakpoints.
2887 (overlay_off_command): Disable overlay breakpoints.
2888
2889 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
2890
2891 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
2892 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
2893 to here from config/tm-arm.h.
2894 (coff_sym_is_thumb): Make static.
2895 (arm_elf_make_msymbol_special): New function.
2896 (arm_coff_make_msymbol_special): New function.
2897 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
2898 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
2899 (coff_sym_is_thumb): Delete declaration.
2900 (arm_elf_make_msymbol_special): Declare.
2901 (arm_coff_make_msymbol_special): Declare.
2902 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
2903 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
2904
2905 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
2906
2907 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
2908
2909 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
2910
2911 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
2912 * gdbarch.c gdbarch.h: Regenerate.
2913 * arch-utils.c (default_print_float_info): New function.
2914 * arch-utils.h (default_print_float_info): Prototype it.
2915 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
2916 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
2917 (PRINT_FLOAT_INFO): Document it.
2918
2919 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
2920 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
2921 (PRINT_FLOAT_INFO): Define.
2922
2923 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
2924
2925 * win32-nat.c (_initialize_check_for_gdb_ini):
2926 Add typecast to sprintf argument to suppress a warning.
2927
2928 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
2929
2930 * win32-nat.c (last_sig): Changed type of variable to target_signal,
2931 to allow easier handling of pass state.
2932 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
2933 that gives exception name and address.
2934 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
2935 and set last_sig value to ourstatus->value.sig. Some missing
2936 exceptions added.
2937 (child_continue): Correctly report continue_status.
2938 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
2939 TARGET_SIGNAL_0 (new default value).
2940 (child_resume): consider sig argument passed to decide if
2941 the exception should be passed to debuggee or not.
2942
2943 2002-02-05 Michael Snyder <msnyder@redhat.com>
2944
2945 * regcache.c (fetch_register): Call target_fetch_register
2946 only if we don't call FETCH_PSEUDO_REGISTER.
2947 (store_register): Call target_store_register only if we
2948 don't call STORE_PSEUDO_REGISTER.
2949
2950 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
2951
2952 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
2953 ELF_MAKE_MSYMBOL_SPECIAL.
2954 * gdbarch.c, gdbarch.h: Regenerate.
2955 * arch-utils.c (default_make_msymbol_special): New function.
2956 * arch-utils.h (default_make_msymbol_special): Export.
2957 * elfread.c (elf_symtab_read): Compile use of
2958 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
2959 multiarched.
2960 * coffread.c (coff_symtab_read): Ditto, for
2961 COFF_MAKE_MSYMBOL_SPECIAL.
2962
2963 2002-02-05 Jim Blandy <jimb@redhat.com>
2964
2965 * solib-svr4.c (svr4_truncate_ptr): New function.
2966 (svr4_relocate_section_addresses): Do the address arithmetic with
2967 the appropriate truncation for target addresses, even when
2968 CORE_ADDR is larger than a target address.
2969
2970 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2971
2972 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
2973 to (int *).
2974
2975 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2976
2977 * gdbserver/linux-low.c (kill_inferior): Remove commented out
2978 code.
2979
2980 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2981
2982 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
2983
2984 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2985
2986 * gdbserver/linux-low.c: Remove unused include files.
2987
2988 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2989
2990 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
2991 (read_inferior_memory): Use it.
2992 (write_inferior_memory): Likewise.
2993
2994 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2995
2996 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
2997 grubbing through sys_errlist.
2998
2999 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3000
3001 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
3002
3003 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3004 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
3005
3006 2002-02-04 Andrew Cagney <ac131313@redhat.com>
3007
3008 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
3009 (do_sfunc, set_cmd_sfunc): New functions.
3010
3011 * command.h (struct cmd_list_element): Add field func.
3012 * cli/cli-decode.h (struct cmd_list_element): Ditto.
3013 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
3014 * cli/cli-decode.h: Ditto.
3015
3016 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
3017 (help_all, help_cmd_list): Ditto.
3018 (find_cmd, complete_on_cmdlist): Ditto.
3019 * top.c (execute_command): Ditto.
3020
3021 * cli/cli-setshow.c (do_setshow_command): Call func instead of
3022 function.sfunc.
3023
3024 * infcmd.c (notice_args_read): Fix function signature.
3025
3026 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
3027 * cli/cli-decode.c (add_set_cmd): Ditto.
3028 * utils.c (initialize_utils): Ditto.
3029 * maint.c (_initialize_maint_cmds): Ditto.
3030 * infrun.c (_initialize_infrun): Ditto.
3031 * demangle.c (_initialize_demangler): Ditto.
3032 * remote.c (add_packet_config_cmd): Ditto.
3033 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3034 * cris-tdep.c (_initialize_cris_tdep): Ditto.
3035 * proc-api.c (_initialize_proc_api): Ditto.
3036 * kod.c (_initialize_kod): Ditto.
3037 * valprint.c (_initialize_valprint): Ditto.
3038 * top.c (init_main): Ditto.
3039 * infcmd.c (_initialize_infcmd): Ditto.
3040 * corefile.c (_initialize_core): Ditto.
3041 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3042 * arch-utils.c (initialize_current_architecture): Ditto.
3043 (_initialize_gdbarch_utils): Ditto.
3044 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3045
3046 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
3047 * wince.c (_initialize_inftarg): Ditto.
3048 * symfile.c (_initialize_symfile): Ditto.
3049 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3050 * language.c (_initialize_language): Ditto.
3051 * arc-tdep.c (_initialize_arc_tdep): Ditto.
3052
3053 2002-02-04 Michael Snyder <msnyder@redhat.com>
3054
3055 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
3056
3057 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3058
3059 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
3060 Add rules for building the register data files.
3061
3062 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3063
3064 * regformats/regdat.sh: Add braces to the definition of
3065 expedite_regs_${arch}.
3066
3067 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3068
3069 * regformats/regdef.h (struct reg): Add comment describing the
3070 requirements for offset and size fields.
3071
3072 2002-02-04 Andreas Schwab <schwab@suse.de>
3073
3074 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
3075 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
3076
3077 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
3078
3079 * gdbarch.sh (copyright): Update years in generated header.
3080 (SMASH_TEXT_ADDRESS): Add rule.
3081 * gdbarch.h, gdbarch.c: Re-generate.
3082 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
3083 * dbxread.c: Likewise.
3084 * dwarfread.c: Likewise.
3085 * elfread.c: Likewise.
3086 * somread.c: Likewise.
3087
3088 * arm-tdep.c (arm_smash_text_address): New function.
3089 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
3090
3091 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3092
3093 Add support for hardware watchpoints on win32 native.
3094 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
3095 CONTEXT_DEBUG_REGISTERS.
3096 (dr variable): New variable. Static array containing a local copy
3097 of debug registers.
3098 (debug_registers_changed): New variable. Reflects when debug registers
3099 are changed and need to be written to inferior.
3100 (debug_registers_used): New variable. Reflects when any debug register
3101 was set, used when new threads are created.
3102 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
3103 i386-nat code.
3104 (thread_rec): Set dr array if id is the thread of current_event .
3105 (child_continue, child_resume): Change the debug registers for all
3106 threads if debug_registers_changed.
3107 (child_add_thread): Change the debug registers if debug_registers_used.
3108 * config/i386/cygwin.mh: Add use of i386-nat.o file.
3109 Link nm.h to new nm-cygwin.h file.
3110 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
3111 of hardware registers.
3112
3113 2002-02-03 Andrew Cagney <ac131313@redhat.com>
3114
3115 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
3116 Restore behavour broken by 2002-01-20 Andrew Cagney
3117 <ac131313@redhat.com> IEEE_FLOAT removal.
3118
3119 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3120
3121 * c-valprint.c (c_val_print): Pass a proper valaddr to
3122 cp_print_class_method.
3123 * valops.c (search_struct_method): If there is only one method
3124 and args is NULL, return that method.
3125
3126 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3127
3128 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
3129 accessing tag_name directly.
3130
3131 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3132
3133 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
3134 of accessing tag_name directly.
3135
3136 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3137
3138 PR gdb/280
3139 * gdbtypes.c (replace_type): New function.
3140 * gdbtypes.h (replace_type): Add prototype.
3141 * stabsread.c (read_type): Use replace_type.
3142
3143 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
3144
3145 * Makefile.in (memattr.o): Add missing dependencies rule.
3146
3147 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3148
3149 * breakpoint.c (break_at_finish_command): Really export.
3150 (break_at_finish_at_depth_command): Ditto.
3151 (tbreak_at_finish_command): Ditto.
3152 * hppa-tdep.c: Include completer.h.
3153 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
3154 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
3155
3156 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3157
3158 * utils.c (do_write): New function.
3159 (error_stream): Rewrite combining the code from error_begin and
3160 verror.
3161 (verror): Rewrite using error_stream.
3162 (error_begin): Delete function.
3163
3164 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3165
3166 * utils.c (error_begin): Make static.
3167 * defs.h (error_begin): Delete declaration.
3168
3169 * linespec.c (cplusplus_error): Replace cplusplus_hint.
3170 (decode_line_1): Use cplusplus_error instead of error_begin,
3171 cplusplus_hint and return_to_top_level.
3172 * coffread.c (coff_symfile_read): Use error instead of error_begin
3173 and return_to_top_level.
3174 * infrun.c (default_skip_permanent_breakpoint): Ditto.
3175
3176 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3177
3178 * language.h (type_error, range_error): Make string parameter
3179 constant.
3180 * language.c (warning_pre_print): Delete extern declaration.
3181 * dwarfread.c (warning_pre_print): Ditto.
3182 * language.c (type_error, range_error): Rewrite to use verror and
3183 vwarning instead of warning_begin.
3184
3185 2002-02-01 Michael Snyder <msnyder@redhat.com>
3186
3187 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
3188 (set_ignore_count): Move misplaced comment back where it belongs.
3189
3190 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3191
3192 * command.h (NO_FUNCTION): Delete macro.
3193 * cli/cli-decode.h (NO_FUNCTION): Ditto.
3194 * top.c (execute_command): Replace NO_FUNCTION with NULL.
3195 * tracepoint.c (_initialize_tracepoint): Ditto.
3196 * cli/cli-decode.c (add_set_cmd): Ditto.
3197 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3198
3199 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3200
3201 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
3202 Update ``this'' pointer when calling virtual functions.
3203
3204 2002-02-01 Michael Snyder <msnyder@redhat.com>
3205
3206 * breakpoint.c (create_temp_exception_breakpoint): Delete.
3207 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
3208
3209 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3210
3211 * regformats/reg-arm.dat: New file.
3212 * regformats/reg-i386.dat: New file.
3213 * regformats/reg-ia64.dat: New file.
3214 * regformats/reg-m68k.dat: New file.
3215 * regformats/reg-mips.dat: New file.
3216 * regformats/reg-ppc.dat: New file.
3217 * regformats/reg-sh.dat: New file.
3218 * regformats/regdef.h: New file.
3219 * regformats/regdat.sh: New file.
3220
3221 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
3222
3223 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
3224 (arm_frame_args_address, arm_frame_locals_address): New functions.
3225 (arm_frame_num_args): New function.
3226 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
3227 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
3228 (FRMA_NUM_ARGS): Call arm_frame_num_args.
3229
3230 2002-01-31 Michael Snyder <msnyder@redhat.com>
3231
3232 * breakpoint.c (break_at_finish_command): Export.
3233 (break_at_finish_at_depth_command): Export.
3234 (tbreak_at_finish_command): Export.
3235 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
3236 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
3237 "tbreak" commands, which are HPPA specific.
3238
3239 * printcmd.c (disassemble_command): Remove an ancient
3240 artifact of an old merge.
3241
3242 * symfile.h (enum overlay_debugging_state):
3243 Define enum constant values for overlay mode.
3244 * symfile.c (overlay_debugging): Use enums instead of literals.
3245 (overlay_is_mapped, overlay_auto_command,
3246 overlay_manual_command): Ditto.
3247
3248 * breakpoint.c (insert_breakpoints, remove_breakpoint,
3249 breakpoint_here_p, breakpoint_inserted_here_p,
3250 breakpoint_thread_match, bpstat_stop_status,
3251 describe_other_breakpoints, check_duplicates, clear_command):
3252 Coding standard fixes.
3253
3254 * target.c (target_xfer_memory): Add spaces, coding standard.
3255 (do_xfer_memory): Add missing line to trust-readonly
3256 code: check bfd SEC_READONLY flag for section.
3257
3258 2002-01-31 Andrew Cagney <ac131313@redhat.com>
3259
3260 * PROBLEMS: Fix typo, 5.1->5.1.1.
3261
3262 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
3263
3264 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
3265 data symbols, since we search based on textlow and texthigh.
3266 (find_pc_sect_symtab): Likewise.
3267
3268 2002-01-30 Andrew Cagney <ac131313@redhat.com>
3269
3270 * defs.h (vwarning): Declare.
3271 * utils.c (vwarning): New function.
3272 (warning): Call vwarning.
3273 (warning_begin): Delete function.
3274
3275 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
3276 the warning message.
3277 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
3278 warning_begin.
3279
3280 2002-01-30 Michael Snyder <msnyder@redhat.com>
3281
3282 * NEWS: Mention "set trust-readonly-sections" command.
3283 Mention generate-core-file command.
3284
3285 2002-01-15 Michael Snyder <msnyder@redhat.com>
3286
3287 * target.c: New command, "set trust-readonly-sections on".
3288 (do_xfer_memory): Honor the suggestion to trust readonly sections
3289 by reading them from the object file instead of from the target.
3290 (initialize_targets): Register command "set trust-readonly-sections".
3291
3292 2002-01-29 Andrew Cagney <ac131313@redhat.com>
3293
3294 * parse.c (target_map_name_to_register): Simplify, search regs and
3295 pseudo-regs using a single loop.
3296
3297 2002-01-30 Andrew Cagney <ac131313@redhat.com>
3298
3299 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
3300
3301 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
3302
3303 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
3304 * config/i386/i386v42mp.mh: Add i387-nat.o .
3305 * i386v4-nat.c: Include i387-nat.h.
3306 (supply_fpregset): Use i387_supply_fsave.
3307 (fill_fpregset): Use i387_fill_fsave.
3308
3309 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
3310
3311 * arm-tdep.c (arm_call_dummy_words): Define.
3312 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
3313 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
3314 (CALL_DUMMY_WORDS): Define.
3315 (arm_call_dummy_words): Declare.
3316 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
3317 (arm_linux_call_dummy_words): Declare.
3318
3319 2002-01-30 Andreas Schwab <schwab@suse.de>
3320
3321 * m68klinux-nat.c: Fix last change to use regcache_collect
3322 instead of referencing registers[] directly.
3323
3324 2002-01-29 Andrew Cagney <ac131313@redhat.com>
3325
3326 * parse.c (target_map_name_to_register): Delete code wrapped in
3327 #ifdef REGISTER_NAME_ALIAS_HOOK.
3328
3329 2002-01-28 Michael Snyder <msnyder@redhat.com>
3330
3331 * regcache.c (legacy_read_register_gen): Need to be able to
3332 read pseudo-register as well as real register.
3333 (legacy_write_register_gen): Ditto.
3334
3335 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3336
3337 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3338 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
3339 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
3340 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
3341 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
3342 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
3343 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
3344 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
3345 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
3346 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3347 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
3348 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
3349 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
3350 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
3351 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
3352 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
3353 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
3354 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
3355 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
3356 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
3357
3358 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3359
3360 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
3361 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
3362 (initialize_current_architecture): Update target_byte_order using
3363 information from BFD.
3364 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
3365 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
3366
3367 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3368
3369 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
3370 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
3371
3372 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
3373 #ifdef INVALID_FLOAT.
3374 * infcmd.c (do_registers_info): Ditto.
3375 * values.c (unpack_double): Ditto. Add comment.
3376
3377 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
3378 already commented out.
3379
3380 2002-01-26 Andreas Schwab <schwab@suse.de>
3381
3382 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
3383 * m68klinux-nat.c: Update ptrace interface for fetching/storing
3384 registers and add support for PTRACE_GETREGS.
3385
3386 2002-01-24 Andrew Cagney <ac131313@redhat.com>
3387
3388 GDB 5.1.1 released from 5.1 branch.
3389 * NEWS: Add 5.1.1 news.
3390 * README: Sync with 5.1 branch.
3391
3392 2002-01-23 Fred Fish <fnf@redhat.com>
3393
3394 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
3395 stabstring on initial malloc. Reallocing will copy it for us,
3396 if necessary.
3397
3398 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
3399
3400 * Makefile.in (hpread_h): Delete.
3401 (HFILES_NO_SRCDIR): Remove hpread.h.
3402 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
3403 (hpread.o): Update dependencies.
3404 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
3405
3406 * hp-psymtab-read.c: Remove file.
3407 * hp-symtab-read.c: Remove file.
3408 * hpread.h: Remove file.
3409
3410 * hpread.c: Merge all contents of hp-psymtab-read.c,
3411 hp-symtab-read.c and hpread.h into this file, as it was prior to
3412 January 1999.
3413
3414 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
3415 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
3416 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
3417 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
3418
3419 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
3420
3421 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
3422 fill_gregset): Call gdbarch_tdep() just once, assign result to
3423 variable and use that, instead of calling the function several
3424 times.
3425
3426 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3427
3428 * configure.host: Accept sparcv9 as alias for sparc64.
3429 * configure.tgt: Likewise.
3430
3431 2002-01-22 Kevin Buettner <kevinb@redhat.com>
3432
3433 * solib-aix5.c (build_so_list_from_mapfile)
3434 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
3435 arguments is not reversed.
3436 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
3437 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
3438
3439 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
3440
3441 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
3442 modified version of obsolete sh_fetch_pseudo_register.
3443 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
3444 (sh4_register_read): New function.
3445 (sh_pseudo_register_write): New function. Renamed and modified
3446 version of obsolete sh_store_pseudo_register.
3447 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
3448 (sh4_register_write): New function.
3449 (sh_gdbarch_init): Remove setting of gdbarch function
3450 fetch_pseudo_register and store_pseudo_register. Remove setting of
3451 register_convert_to_raw, register_convert_to_virtual,
3452 register_convertible.
3453 (sh_sh4_register_convertible): Delete. No longer needed. All is
3454 taken care by architecture specific functions
3455 register_read/register_write.
3456 (sh_sh4_register_convert_to_virtual): Make static.
3457 (sh_sh4_register_convert_to_raw): Ditto.
3458
3459 2002-01-22 Andrew Cagney <ac131313@redhat.com>
3460
3461 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
3462 (floatformat_is_nan, floatformat_mantissa): Ditto.
3463
3464 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
3465 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
3466 builtin_type_ieee_double_little,
3467 builtin_type_ieee_double_littlebyte_bigword,
3468 builtin_type_m68881_ext, builtin_type_i960_ext,
3469 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
3470 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
3471 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
3472 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
3473
3474 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
3475
3476 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
3477 parameter. Set frameless flag if it exists and depended of
3478 whether the scanned function is frameless or not.
3479 (xstormy16_skip_prologue): If function is frameless, return
3480 result of xstormy16_scan_prologue().
3481 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
3482 call.
3483
3484 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
3485
3486 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
3487 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
3488 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
3489 sh_sh4_register_byte, sh_sh4_register_raw_size,
3490 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
3491 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
3492 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
3493 sh_store_pseudo_register, sh_do_pseudo_register): Call
3494 gdbarch_tdep() just once, assign result to variable and use that,
3495 instead of calling the function several times.
3496
3497 2002-01-20 Mark Kettenis <kettenis@gnu.org>
3498
3499 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
3500 macros instead of LAST_FPU_CTRL_REGNUM.
3501 (store_register): Likewise.
3502
3503 2002-01-21 Jim Blandy <jimb@redhat.com>
3504
3505 * infcmd.c (run_command): Check that the `exec' target layer's BFD
3506 is up-to-date before running the program, not just when a program
3507 exits.
3508
3509 2002-01-21 Fred Fish <fnf@redhat.com>
3510
3511 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
3512 when we have found all instructions we are looking for.
3513
3514 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
3515
3516 * arm-tdep.c (arm_register_name): New function.
3517 (arm_registers_names): Make static.
3518 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
3519 (arm_register_name): Declare.
3520 (REGISTER_NAME): Use it.
3521
3522 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
3523 Kevin Buettner <kevinb@redhat.com>
3524
3525 Convert arm targets to new FRAME interface.
3526 * arm-tdep.c (struct frame_extra_info): Remove fsr.
3527 (arm_frame_find_save_regs): Delete.
3528 (arm_frame_init_saved_regs): New.
3529 (arm_init_extra_frame_info): Alloacte saved_regs as required.
3530 Allocate extra_info as required. Convert all uses of fsr.regs
3531 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
3532 to use extra_info.
3533 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
3534 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
3535 (check_prologue_cache, save_prologue_cache): Likewise.
3536 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
3537 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
3538 (FRAME_FIND_SAVED_REGS): Delete.
3539 (arm_frame_find_saved_regs): Delete prototype.
3540 (arm_frame_init_saved_regs): New prototype.
3541 (FRAME_INIT_SAVED_REGS): Define.
3542
3543 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3544
3545 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
3546
3547 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3548
3549 From Jeff Law <law@redhat.com>:
3550 * infttrace.c: Include <sys/pstat.h>.
3551 (child_pid_to_exec_file): Revamp. Use pstat call to get the
3552 exec file if the ttrace equivalent fails.
3553
3554 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3555
3556 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
3557 (closeLogFile): Ditto.
3558
3559 2002-01-20 Michael Chastain <mec@shout.net>
3560
3561 * top.c (print_gdb_version): Bump copyright year to 2002.
3562
3563 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3564
3565 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
3566 Zannoni and Eli Zaretskii.
3567
3568 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3569
3570 * buildsym.c: Update copyright years.
3571 * c-typeprint.c: Likewise.
3572 * dwarf2read.c: Likewise.
3573 * f-typeprint.c: Likewise.
3574 * gdbtypes.c: Likewise.
3575 * gdbtypes.h: Likewise.
3576 * hp-symtab-read.c: Likewise.
3577 * hpread.c: Likewise.
3578 * mdebugread.c: Likewise.
3579 * p-typeprint.c: Likewise.
3580
3581 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3582
3583 * remote-sim.c (gdbsim_open): Simplify code testing the macro
3584 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
3585 byte-order selectable.
3586 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
3587 * arch-utils.c: Ditto.
3588 (set_endian): Ditto.
3589 (set_endian_from_file): Ditto.
3590 * gdbserver/low-sim.c (create_inferior): Ditto.
3591 * gdbarch.sh: Ditto.
3592 * gdbarch.h: Re-generate.
3593 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3594 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
3595 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
3596 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3597 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3598 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3599 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3600 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
3601 macro definition.
3602 * config/mips/tm-wince.h: Remove #undef of macro
3603 TARGET_BYTE_ORDER_SELECTABLE.
3604 * config/sh/tm-wince.h: Ditto.
3605
3606 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3607
3608 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
3609 member function fields. Add accessor macro
3610 TYPE_FN_FIELD_ARTIFICIAL.
3611 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
3612 * c-typeprint.c (c_type_print_base): Skip artificial member
3613 functions.
3614
3615 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3616
3617 * f-typeprint.c: Delete unused function f_type_print_args.
3618 * p-typeprint.c: Delete unused function pascal_type_print_args.
3619
3620 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3621
3622 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
3623 comment. Add ``artificial'' to ``union field_location''.
3624
3625 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
3626
3627 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
3628 * mdebugread.c (parse_symbol): Likewise.
3629 * stabsread.c (define_symbol): Likewise.
3630 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
3631 initializing TYPE_FIELD_BITPOS to n (obsolete).
3632 (hpread_doc_function_type): Likewise.
3633 * hpread.c (hpread_function_type): Likewise.
3634
3635 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3636
3637 * configure.in (host_makefile_frag): Only require a host makefile
3638 fragment when a native build.
3639 * configure: Re-generate.
3640
3641 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3642
3643 * doublest.h (floatformat_from_type): Declare.
3644 * doublest.c (floatformat_from_type): New function.
3645 (convert_typed_floating): Use.
3646
3647 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
3648 call to function floatformat_from_type.
3649
3650 * gdbarch.sh (IEEE_FLOAT): Delete.
3651 * gdbarch.h, gdbarch.c: Re-generate.
3652 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
3653 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
3654 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
3655 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
3656 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
3657 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
3658 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
3659 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
3660 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
3661 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
3662 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
3663 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
3664
3665 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
3666 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
3667 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3668 * sh-tdep.c (sh_gdbarch_init): Ditto.
3669 * mips-tdep.c (mips_gdbarch_init): Ditto.
3670 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3671 * cris-tdep.c (cris_gdbarch_init): Ditto.
3672
3673 2002-01-20 Jiri Smid <smid@suse.cz>
3674
3675 * configure.host, configure.tgt: Support x86-64.
3676 * NEWS: Note new target x86-64.
3677
3678 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
3679 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
3680 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
3681 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
3682 x86-64-linux-nat.o): Fix dependencies.
3683
3684 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3685
3686 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
3687 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
3688 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
3689 * config/sparc/xm-sun4os4.h: Delete file.
3690 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
3691
3692 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3693
3694 * config/sparc/sparclynx.mh (XM_FILE): Delete.
3695 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
3696 * config/m68k/m68klynx.mh (XM_FILE): Delete.
3697 * config/i386/i386lynx.mh (XM_FILE): Delete.
3698 * config/rs6000/xm-rs6000ly.h: Delete file.
3699 * config/sparc/xm-sparclynx.h: Delete file.
3700 * config/m68k/xm-m68klynx.h: Delete file.
3701 * config/i386/xm-i386lynx.h: Delete file.
3702 * config/xm-lynx.h: Delete file.
3703 * config/djgpp/fnchange.lst: Update.
3704
3705 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3706
3707 * alpha-tdep.c (alpha_register_byte): New function.
3708 (alpha_register_raw_size): Ditto.
3709 (alpha_register_virtual_size): Ditto.
3710 (alpha_skip_prologue_internal): Renamed from
3711 alpha_skip_prologue.
3712 (alpha_skip_prologue): New version that calls
3713 alpha_skip_prologue_internal.
3714 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
3715 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
3716 second argument from alpha_skip_prologue.
3717 (REGISTER_BYTE): Use alpha_register_byte.
3718 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
3719 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
3720 (FRAMELESS_FUNCTION_INVOCATION): Use
3721 generic_frameless_function_invocation_not.
3722 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
3723 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
3724
3725 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3726
3727 * config/mips/xm-news-mips.h: Delete file.
3728 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
3729
3730 * config/m88k/xm-m88k.h: Delete file.
3731 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
3732 * config/m88k/xm-delta88v4.h: Ditto.
3733 * config/m88k/xm-delta88.h: Ditto.
3734
3735 * config/alpha/xm-fbsd.h: Delete file.
3736 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
3737
3738 * config/sparc/xm-sparc.h: Delete file.
3739 * Makefile.in (xm-sun4os4.h): Delete dependency.
3740 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
3741 * config/sparc/xm-sun4os4.h: Ditto.
3742 * config/sparc/xm-linux.h: Ditto.
3743
3744 * config/i386/xm-windows.h: Delete file.
3745
3746 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3747
3748 * utils.c: Include <sys/param.h> for MAXPATHLEN.
3749 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
3750
3751 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3752
3753 * alpha-tdep.c (alpha_call_dummy_words): New.
3754 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
3755 (CALL_DUMMY_P): Define.
3756 (CALL_DUMMY_WORDS): Define.
3757 (SIZEOF_CALL_DUMMY_WORDS): Define.
3758
3759 2002-01-19 Per Bothner <per@bothner.com>
3760
3761 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
3762 isn't NULL, which can happen with some gcj-3.x-produced code.
3763
3764 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3765
3766 * alpha-tdep.c (alpha_register_virtual_type): New function.
3767 (alpha_init_frame_pc_first): Ditto.
3768 (alpha_fix_call_dummy): Ditto.
3769 (alpha_store_struct_return): Ditto.
3770 (alpha_extract_struct_value_address): Ditto.
3771 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
3772 alpha_register_virtual_type.
3773 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
3774 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
3775 alpha_extract_struct_value_address.
3776 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
3777 (INIT_FRAME_PC): Use init_frame_pc_noop.
3778 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
3779
3780 2002-01-19 Mark Kettenis <kettenis@gnu.org>
3781
3782 * i386gnu-nat.c: Include "i386-tdep.h".
3783 (fetch_fpregs): Simplify code dealing with uninitialized floating
3784 point states such that it doesn't require FP7_REGNUM.
3785
3786 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3787
3788 * alpha-tdep.c (frame_extra_info): New.
3789 (alpha_find_saved_regs): Make static. Use
3790 frame->extra_info.
3791 (alpha_frame_init_saved_regs): New function.
3792 (alpha_frame_saved_pc): Use frame->extra_info.
3793 (temp_saved_regs): Don't declare as struct frame_saved_regs.
3794 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
3795 (init_extra_frame_info): Rename to...
3796 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
3797 (alpha_print_extra_frame_info): New function.
3798 (alpha_frame_locals_address): Ditto.
3799 (alpha_frame_args_address): Ditto.
3800 (alpha_pop_frame): Use frame->extra_info.
3801 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
3802 alpha_frame_args_address.
3803 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
3804 (alpha_find_saved_regs): Remove prototype.
3805 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
3806 (EXTRA_FRAME_INFO): Remove.
3807 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
3808 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
3809
3810 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3811
3812 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
3813 (alpha_cannot_fetch_register): Ditto.
3814 (alpha_cannot_store_register): Ditto.
3815 (alpha_register_convertible): Ditto.
3816 (alpha_use_struct_convention): Ditto.
3817 * config/alpha/tm-alpha.h: Update copyright years.
3818 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
3819 (INNER_THAN): Use core_addr_lessthan.
3820 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
3821 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
3822 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
3823 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
3824 (FRAME_CHAIN): Remove unnecessary cast.
3825
3826 2002-01-18 Andrew Cagney <ac131313@redhat.com>
3827
3828 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
3829 obsolete.
3830
3831 2002-01-18 Andrew Cagney <ac131313@redhat.com>
3832
3833 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
3834 * monitor.c, remote-array.c, remote-bug.c: Ditto.
3835 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
3836 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
3837 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
3838 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
3839 * x86-64-linux-nat.c: Ditto.
3840
3841 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3842
3843 * alpha-tdep.c (alpha_register_name): New function.
3844 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
3845 (REGISTER_NAME): Define.
3846
3847 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3848
3849 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
3850
3851 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3852
3853 * alpha-tdep.c: Update copyright years.
3854 (alpha_next_pc): New function.
3855 (alpha_software_single_step): Ditto.
3856 * config/alpha/tm-alpha.h: Add prototype for
3857 alpha_software_single_step.
3858
3859 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3860
3861 * alphabsd-nat.c: Update copyright years.
3862 (fill_gregset): Use regcache_collect.
3863 (fill_fpregset): Likewise.
3864 (fetch_inferior_registers): Only fetch integer registers
3865 if requested to do so.
3866 (store_inferior_registers): Only store integer registers
3867 if requested to do so.
3868
3869 2002-01-17 Andrew Cagney <ac131313@redhat.com>
3870
3871 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
3872 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
3873 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
3874 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
3875 * config/alpha/fbsd.mh (XDEPFILES): Delete.
3876 * config/arm/linux.mh (XDEPFILES): Delete.
3877 * config/arm/nbsd.mh (XDEPFILES): Delete.
3878 * config/i386/i386dgux.mh (XDEPFILES): Delete.
3879 * config/i386/i386sol2.mh (XDEPFILES): Delete.
3880 * config/i386/i386m3.mh (XDEPFILES): Delete.
3881 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
3882 * config/i386/i386gnu.mh (XDEPFILES): Delete.
3883 * config/i386/fbsd.mh (XDEPFILES): Delete.
3884 * config/i386/i386bsd.mh (XDEPFILES): Delete.
3885 * config/i386/i386sco5.mh (XDEPFILES): Delete.
3886 * config/i386/i386v4.mh (XDEPFILES): Delete.
3887 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
3888 * config/i386/i386sco4.mh (XDEPFILES): Delete.
3889 * config/i386/i386aix.mh (XDEPFILES): Delete.
3890 * config/i386/go32.mh (XDEPFILES): Delete.
3891 * config/i386/cygwin.mh (XDEPFILES): Delete.
3892 * config/i386/i386lynx.mh (XDEPFILES): Delete.
3893 * config/i386/i386mach.mh (XDEPFILES): Delete.
3894 * config/i386/i386v32.mh (XDEPFILES): Delete.
3895 * config/i386/linux.mh (XDEPFILES): Delete.
3896 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
3897 * config/i386/ncr3000.mh (XDEPFILES): Delete.
3898 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
3899 * config/i386/i386sco.mh (XDEPFILES): Delete.
3900 * config/i386/i386v.mh (XDEPFILES): Delete.
3901 * config/i386/nbsd.mh (XDEPFILES): Delete.
3902 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
3903 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
3904 * config/i386/symmetry.mh (XDEPFILES): Delete.
3905 * config/i386/obsd.mh (XDEPFILES): Delete.
3906 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
3907 * config/ia64/linux.mh (XDEPFILES): Delete.
3908 * config/ia64/aix.mh (XDEPFILES): Delete.
3909 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
3910 * config/m68k/dpx2.mh (XDEPFILES): Delete.
3911 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
3912 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
3913 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
3914 * config/m68k/linux.mh (XDEPFILES): Delete.
3915 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
3916 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
3917 * config/m68k/nbsd.mh (XDEPFILES): Delete.
3918 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
3919 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
3920 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
3921 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
3922 * config/m88k/delta88.mh (XDEPFILES): Delete.
3923 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
3924 * config/m88k/m88k.mh (XDEPFILES): Delete.
3925 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
3926 * config/mips/linux.mh (XDEPFILES): Delete.
3927 * config/mips/irix6.mh (XDEPFILES): Delete.
3928 * config/mips/irix5.mh (XDEPFILES): Delete.
3929 * config/mips/irix4.mh (XDEPFILES): Delete.
3930 * config/mips/irix3.mh (XDEPFILES): Delete.
3931 * config/mips/decstation.mh (XDEPFILES): Delete.
3932 * config/mips/mipsm3.mh (XDEPFILES): Delete.
3933 (NATDEPFILES): Move core-aout.o to here.
3934 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
3935 * config/pa/hpux1020.mh (XDEPFILES): Delete.
3936 * config/pa/hppabsd.mh (XDEPFILES): Delete.
3937 * config/pa/hppahpux.mh (XDEPFILES): Delete.
3938 * config/pa/hpux11w.mh (XDEPFILES): Delete.
3939 * config/pa/hppaosf.mh (XDEPFILES): Delete.
3940 * config/pa/hpux11.mh (XDEPFILES): Delete.
3941 * config/powerpc/aix.mh (XDEPFILES): Delete.
3942 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
3943 * config/powerpc/linux.mh (XDEPFILES): Delete.
3944 * config/romp/rtbsd.mh: Rename XDEPFILES.
3945 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
3946 * config/rs6000/aix4.mh (XDEPFILES): Delete.
3947 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
3948 * config/s390/s390.mh (XDEPFILES): Delete.
3949 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
3950 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
3951 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
3952 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
3953 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
3954 * config/sparc/nbsd.mh (XDEPFILES): Delete.
3955 * config/sparc/linux.mh (XDEPFILES): Delete.
3956 * config/vax/vaxult.mh (XDEPFILES): Delete.
3957 * config/vax/vaxult2.mh (XDEPFILES): Delete.
3958 * Makefile.in (DEPFILES): Remove XDEPFILES.
3959
3960 2002-01-17 Andrew Cagney <ac131313@redhat.com>
3961
3962 * utils.c (internal_verror): Fix comments, default is yes not no.
3963 Update queries to match. Default to quit and dump core.
3964
3965 2002-01-17 Andrew Cagney <ac131313@redhat.com>
3966
3967 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
3968 copyright.
3969 * defs.h, event-top.c, gdbcmd.h: Ditto.
3970 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
3971 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
3972 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
3973 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
3974 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
3975 * mi/mi-main.c:Ditto.
3976
3977 * stack.c, symfile.c: Update copyright.
3978
3979 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
3980
3981 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
3982 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
3983 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
3984 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
3985
3986 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
3987
3988 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
3989 * gdbserver/low-lynx.c (myattach): Likewise.
3990 * gdbserver/low-nbsd.c (myattach): Likewise.
3991 * gdbserver/low-sim.c (myattach): Likewise.
3992 * gdbserver/low-sparc.c (myattach): Likewise.
3993 * gdbserver/low-sun3.c (myattach): Likewise.
3994
3995 * gdbserver/low-linux.c (myattach): New function.
3996
3997 * gdbserver/server.c (attach_inferior): New function.
3998 (main): Handle "--attach".
3999
4000 2002-01-16 Andrew Cagney <ac131313@redhat.com>
4001
4002 * MAINTAINERS (language support): Daniel Jacobwitz is C++
4003 maintainer.
4004
4005 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
4006
4007 * c-typeprint.c (is_type_conversion_operator): Add additional
4008 check for non-conversion operators.
4009
4010 2002-01-15 Michael Snyder <msnyder@redhat.com>
4011
4012 * linux-proc.c: Add "info proc" command, a la procfs.c.
4013 (read_mapping): New function, abstract and re-use code.
4014 (linux_find_memory_regions): Use new func read_mapping.
4015 (linux_info_proc_cmd): New function, implement "info proc".
4016 (_initialize_linux_proc): Add new command "info proc".
4017
4018 2002-01-15 Michael Snyder <msnyder@redhat.com>
4019
4020 * symfile.c (generic_load): Use bfd_map_over_sections method
4021 instead of manipulating bfd structure members directly.
4022 (add_section_size_callback): New function, bfd sections callback
4023 used by generic_load.
4024 (load_sections_callback): New function, bfd sections callback
4025 used by generic_load.
4026
4027 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
4028
4029 [Based on work by Jim Blandy]
4030 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
4031 (builtin_type_vec128): Export.
4032 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
4033 types.
4034 (builtin_type_vec128): New builtin type for 128 bit vector
4035 registers.
4036 (build_gdbtypes): Initialize builtin_type_v16qi and
4037 builtin_type_v8hi. Create the vec128 register builtin type
4038 structure.
4039 (build_builtin_type_vec128): New function.
4040 (_initialize_gdbtypes): Register builtin_type_v16qi and
4041 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
4042 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
4043 AltiVec register to new builtin type.
4044
4045 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
4046
4047 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
4048 to make_cv_type.
4049
4050 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4051
4052 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
4053 CLEAN_UP_REGISTER_VALUE.
4054 * regcache.c (supply_register): Update only call.
4055
4056 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4057
4058 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4059 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4060 a29k-*-vxworks* targets as obsolete.
4061
4062 2002-01-14 Michael Snyder <msnyder@redhat.com>
4063
4064 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
4065 until we can resolve portability issues.
4066 * gregset.h: Remove references to fpxregs.
4067 * gcore.c (gcore_command): Initialize note_sec to NULL.
4068
4069 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4070
4071 * signals.c (target_signal_to_name): Rewrite. Only use
4072 signals[].name when in bounds and non-NULL.
4073
4074 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4075
4076 From Petr Ledvina <ledvinap@kae.zcu.cz>:
4077 * signals.c (target_signal_to_name): Verify that SIG is within the
4078 bounds of the signals array.
4079
4080 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4081
4082 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
4083
4084 2002-01-13 Keith Seitz <keiths@redhat.com>
4085
4086 * stack.c (print_frame_info_base): Print the frame's pc
4087 only if when print_frame_info_listing_hook is not defined.
4088
4089 2002-01-13 Keith Seitz <keiths@redhat.com>
4090
4091 * varobj.c (varobj_set_value): Make sure that there were no
4092 errors evaluating the object before attempting to set its
4093 value.
4094 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
4095 so this offset adjustment is no longer necessary.
4096 (create_child): Don't set the error flag if the child is
4097 a CPLUS_FAKE_CHILD.
4098 (value_of_child): If value_fetch_lazy fails, return NULL
4099 so that callers will be notified that an error occurred.
4100 (c_value_of_variable): Delay check of variable's validity
4101 until later. We actually want all structs and unions to have
4102 the value "{...}".
4103 Do not return "???" for variables which could not be evaluated.
4104 This error condition must be returned to the caller so that it
4105 can get the error condition from gdb.
4106 (cplus_name_of_child): Adjust index for vptr before figuring
4107 out the name of the child.
4108 (cplus_value_of_child): If a child's (real) parent is not valid,
4109 don't even bother trying to give a value for it. Just return
4110 an error. Change all instances in this function.
4111 (cplus_type_of_child): If our parent is one of the "fake"
4112 parents, we need to get at the type of the real parent, and
4113 derive the child's true type using this information.
4114
4115 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4116
4117 From 2002-01-09 John Marshall <johnm@falch.net>:
4118 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
4119 sources.redhat.com, and tweak some related URLs which had
4120 suffered from linkrot.
4121
4122 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4123
4124 From Jeff law:
4125 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
4126 structures passed in registers.
4127
4128 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
4129
4130 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
4131 white space which prevented compilation. Reported by DSK
4132 <dsk@student.unsw.edu.au>.
4133
4134 2002-01-11 Michael Snyder <msnyder@redhat.com>
4135
4136 * symfile.c (build_section_addr_info_from_section_tab):
4137 Use bfd access method instead of manipulating bfd directly.
4138 (syms_from_objfile): Ditto.
4139 (simple_overlay_update_1): Ditto.
4140 (simple_overlay_update): Ditto.
4141 (generic_load): Ditto.
4142 (overlay_unmapped_address): FIXME comment, bfd access methods.
4143 (sections_overlap): FIXME comment, bfd access methods.
4144 (pc_in_mapped_range): FIXME comment, bfd access methods.
4145 (pc_in_unmapped_range): FIXME comment, bfd access methods.
4146 (section_is_mapped): FIXME comment, bfd access methods.
4147 (section_is_overlay): FIXME comment, bfd access methods.
4148
4149 * symfile.c (generic_load): Whitespace and long line cleanups.
4150 Remove duplicate variable, change several local variables to
4151 more appropriate data types.
4152 (print_transfer_performance): Use %lu instead of %ld for ulongs.
4153
4154 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4155
4156 From Peter Schauer:
4157 * language.c (longest_local_hex_string_custom): Use phex_nz to
4158 convert NUM to a hex string.
4159
4160 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
4161
4162 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
4163 the function.
4164 Update Copyright year.
4165
4166 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4167
4168 * language.c (longest_raw_hex_string): Delete unused function.
4169
4170 2002-01-11 Petr Sorfa <petrs@caldera.com>
4171
4172 * MAINTAINERS (write-after-approval): Add myself.
4173 * dwarf2read.c (read_tag_string_type): Handling of
4174 DW_AT_byte_size.
4175 (read_tag_string_type): FORTRAN fix to prevent propagation of
4176 first string size.
4177 (set_cu_language): Handling of DW_LANG_Fortran95
4178
4179 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
4180
4181 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
4182 GETPID(inferior_ptid).
4183 (store_inferior_registers): Likewise.
4184
4185 2002-01-10 Jason Merrill <jason@redhat.com>
4186
4187 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
4188 Fix DW_OP_minus.
4189
4190 2002-01-10 Andrew Cagney <ac131313@redhat.com>
4191
4192 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
4193 and bfd/elf32-sh-nbsd.c.
4194
4195 2002-01-10 Michael Snyder <msnyder@redhat.com>
4196
4197 * NEWS: Mention --pid and corefile/proc-id behavior change.
4198
4199 * Makefile.in: Add rules for gcore.o and linux-proc.o.
4200 * gcore.c: Include cli/cli-decode.h instead of command.h.
4201
4202 * main.c (captured_main): Add new command line option "--pid".
4203 If the second command line argument (following the symbol-file)
4204 begins with a digit, try to attach to it before trying to open
4205 it as a corefile.
4206 (print_gdb_help): Document the "--pid" argument.
4207
4208 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
4209
4210 * completer.c (command_completer): New function.
4211
4212 * completer.h <command_completer>: Add prototype.
4213
4214 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
4215 completer for the "help" command.
4216
4217 2002-01-09 Jason Merrill <jason@redhat.com>
4218
4219 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
4220
4221 2002-01-09 Michael Snyder <msnyder@redhat.com>
4222
4223 * i386-linux-nat.c (fill_fpxregset): Make global.
4224 (store_fpxregset): Ditto.
4225
4226 * gregset.h (gdb_fpxregset_t): Define.
4227 (supply_fpxregset): Prototype.
4228 (fill_fpxregset): Prototype.
4229
4230 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
4231
4232 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4233
4234 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
4235 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
4236 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
4237
4238 2002-01-09 Andrew Cagney <ac131313@redhat.com>
4239
4240 * MAINTAINERS: Update target maintainer rules so that any
4241 Maintainer can approve a tested patch for a maintenance-only
4242 target.
4243
4244 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4245
4246 * MAINTAINERS (write-after-approval): Add myself.
4247
4248 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
4249 IN_SIGTRAMP.
4250
4251 2002-01-08 Michael Snyder <msnyder@redhat.com>
4252
4253 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
4254 real name of the executable, rather than the /proc name.
4255
4256 2002-01-03 Michael Snyder <msnyder@redhat.com>
4257
4258 Implement a "generate-core-file" command in gdb, save target state.
4259 * gcore.c: New file. Implement new command 'generate-core-file'.
4260 Save a corefile image of the current state of the inferior.
4261 * linux-proc.c: Add linux-specific code for saving corefiles.
4262 * target.h (struct target_ops): Add new target vectors for saving
4263 corefiles; to_find_memory_regions and to_make_corefile_notes.
4264 (target_find_memory_regions): New macro.
4265 (target_make_corefile_notes): New macro.
4266 * target.c (update_current_target): Inherit new target methods.
4267 (dummy_find_memory_regions): New place-holder method.
4268 (dummy_make_corefile_notes): New place-holder method.
4269 (init_dummy_target): Initialize new dummy target vectors.
4270 * exec.c (exec_set_find_memory_regions): New function.
4271 Allow the exec_ops vector for memory regions to be taken over.
4272 (exec_make_note_section): New function, target vector method.
4273 * defs.h (exec_set_find_memory_regions): Export prototype.
4274 * procfs.c (proc_find_memory_regions): New function, corefile method.
4275 (procfs_make_note_section): New function, corefile method.
4276 (init_procfs_ops): Set new target vector pointers.
4277 (find_memory_regions_callback): New function.
4278 (procfs_do_thread_registers): New function.
4279 (procfs_corefile_thread_callback): New function.
4280 * sol-thread.c (sol_find_memory_regions): New function.
4281 (sol_make_note_section): New function.
4282 (init_sol_thread_ops): Initialize new target vectors.
4283 * inftarg.c (inftarg_set_find_memory_regions): New function.
4284 Allow to_find_memory_regions vector to be taken over.
4285 (inftarg_set_make_corefile_notes): New function.
4286 Allow to_make_corefile_notes vector to be taken over.
4287 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
4288 interface layer if not target_has_execution (may be a corefile).
4289 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
4290 * config/sparc/sun4sol2.mh: Ditto.
4291 * config/alpha/alpha-linux.mh: Ditto.
4292 * config/arm/linux.mh: Ditto.
4293 * config/i386/x86-64linux.mh: Ditto.
4294 * config/ia64/linux.mh: Ditto.
4295 * config/m68k/linux.mh: Ditto.
4296 * config/mips/linux.mh: Ditto.
4297 * config/powerpc/linux.mh: Ditto.
4298 * config/sparc/linux.mh: Ditto.
4299
4300 2002-01-07 Michael Snyder <msnyder@redhat.com>
4301
4302 * arm-linux-nat.c: Remove references to regcache.c internal data
4303 (registers[] and register_valid[]).
4304
4305 2002-01-07 Michael Snyder <msnyder@redhat.com>
4306
4307 * linux-proc.c: New file. Implement child_pid_to_exec_file,
4308 so that attaching to a pid will automatically read the process's
4309 symbol file and shlibs.
4310 * Makefile.in: Add rule for linux-proc.o.
4311 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
4312 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
4313 * config/arm/linux.mh: Ditto.
4314 * config/i386/linux.mh: Ditto.
4315 * config/i386/x86-64linux.mh: Ditto.
4316 * config/ia64/linux.mh: Ditto.
4317 * config/m68k/linux.mh: Ditto.
4318 * config/mips/linux.mh: Ditto.
4319 * config/powerpc/linux.mh: Ditto.
4320 * config/sparc/linux.mh: Ditto.
4321
4322 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
4323
4324 * win32-nat.c: Add i386-tdep.h dependency.
4325
4326 2002-01-07 Michael Snyder <msnyder@redhat.com>
4327
4328 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
4329 instead of bfd_get_arch_size. Don't bail out just because
4330 there's no exec_bfd.
4331
4332 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
4333 * p-valprint.c (pascal_object_print_value): Ditto.
4334 * somread.c (som_symtab_read): Ditto.
4335 * symfile.c (simple_free_overlay_region_table): Ditto.
4336 * valops.c (value_assign): Ditto.
4337
4338 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
4339 use tilde_expand and strerror for opening save-tracepoints file.
4340
4341 * thread-db.c (thread_db_new_objfile): Indendation fix.
4342
4343 * infptrace.c (GDB_MAX_ALLOCA): New define.
4344 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
4345 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
4346 can be overridden with whatever value is appropriate to the host).
4347 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
4348 alloca to allocate potentially large buffer.
4349 * rs6000-nat.c (child_xfer_memory): Ditto.
4350 * symm-nat.c (child_xfer_memory): Ditto.
4351 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
4352
4353 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
4354
4355 From Nick Clifton <nickc@redhat.com>
4356 * d10v-tdep.c: Set STACK_START to 0x200bffe.
4357
4358 2002-01-07 Michael Snyder <msnyder@redhat.com>
4359
4360 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
4361 Don't use exec_bfd if it's NULL.
4362
4363 2002-01-06 Mark Kettenis <kettenis@gnu.org>
4364
4365 * valops.c (value_arg_coerce): Fix formatting.
4366
4367 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4368
4369 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
4370 * gnu-nat.c: Ditto.
4371
4372 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4373
4374 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
4375 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
4376 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
4377 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
4378 z8k-coff have not been multi-arched. Update z8k-coff build
4379 status.
4380
4381 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4382
4383 * MAINTAINERS: Mark a29k target as obsolete.
4384 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
4385 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
4386 comments.
4387 * NEWS: Note that a29k targets are obsolete.
4388 * a29k-tdep.c: Mark as obsolete.
4389 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4390 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4391 a29k-*-vxworks* targets as obsolete.
4392 * remote-adapt.c: Obsolete.
4393 * remote-eb.c: Obsolete.
4394 * remote-mm.c: Obsolete.
4395 * remote-udi.c: Obsolete.
4396 * config/a29k/a29k-udi.mt: Obsolete.
4397 * config/a29k/a29k.mt: Obsolete.
4398 * config/a29k/tm-a29k.h: Obsolete.
4399 * config/a29k/tm-vx29k.h: Obsolete.
4400 * config/a29k/vx29k.mt: Obsolete.
4401
4402 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4403
4404 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
4405 with BFD_ENDIAN_BIG.
4406
4407 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4408
4409 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
4410 * configure, config.in: Re-generate.
4411 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
4412 * defs.h: Do not include <endian.h>.
4413
4414 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
4415
4416 * acconfig.h (HAVE_PT_GETXMMREGS): New.
4417 * config.in: Regenerate.
4418 * configure.in: Update copyright years.
4419 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
4420 * configure: Regenerate.
4421 * i386bsd-nat.c: Update copyright years.
4422 (fill_gregset): Use regcache_collect.
4423 (fetch_inferior_registers): Only fetch integer registers
4424 if requested to do so. Add support for XMM registers
4425 using PT_GETXMMREGS.
4426 (store_inferior_registers): Only store integer registers
4427 if requested to do so. Add support for XMM registers
4428 using PT_SETXMMREGS.
4429 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
4430 (store_inferior_registers): Remove.
4431 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
4432 (fetch_elfcore_registers): New function.
4433 (i386nbsd_elfcore_fns): New.
4434 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
4435 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
4436 i386bsd-nat.o.
4437 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4438 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
4439 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4440 * config/i386/tm-nbsd.h: Update copyright years.
4441 (HAVE_SSE_REGS): Define.
4442 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
4443 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
4444 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
4445 (SIGCONTEXT_PC_OFFSET): Remove.
4446 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
4447
4448 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4449
4450 * configure.tgt: Remove powerpc-*-macos* target.
4451 * config/m68k/xm-mpw.h: Delete file.
4452 * config/xm-mpw.h: Delete file.
4453 * ser-mac.c: Delete file.
4454 * mpw-make.sed: Delete file.
4455 * mpw-config.in: Delete file.
4456 * mac-xdep.c: Delete file.
4457 * mac-gdb.r: Delete file.
4458 * mac-defs.h: Delete file.
4459 * mac-nat.c: Delete file.
4460 * config/powerpc/macos.mh: Delete file.
4461 * config/powerpc/macos.mt: Delete file.
4462 * config/powerpc/nm-macos.h: Delete file.
4463 * config/powerpc/tm-macos.h: Delete file.
4464 * source.c (openp, open_source_file): Remove obsolete code.
4465 * top.c (gdb_readline): Ditto.
4466 * utils.c (query): Ditto.
4467 * event-top.c (display_gdb_prompt): Ditto.
4468 * Makefile.in (ser-mac.o): Delete obsolete target.
4469 * NEWS: Update.
4470
4471 2002-01-04 Andrew Cagney <ac131313@redhat.com>
4472
4473 * defs.h (BIG_ENDIAN): Delete macro definition.
4474 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
4475 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
4476 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
4477 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
4478 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
4479 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
4480 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
4481 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
4482 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
4483 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
4484 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
4485 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
4486 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4487 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4488 * gdbarch.c: Re-generate.
4489
4490 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4491
4492 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
4493 for core files.
4494
4495 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4496
4497 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
4498
4499 2002-01-04 Andrew Cagney <ac131313@redhat.com>
4500
4501 * value.h (value_ptr): Delete typedef.
4502
4503 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4504
4505 * i386nbsd-nat.c: Update copyright years.
4506 Include i386-tdep.h.
4507
4508 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
4509
4510 * stabsread.c: Update copyright years.
4511
4512 From Debashis Mahata <debashis.mahata@wipro.com>:
4513 (read_struct_fields): Deal with Sun C compiler erroneous stab
4514 output for structs and unions.
4515 Fix PR gdb/269.
4516
4517 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4518
4519 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
4520 prototype.
4521
4522 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4523
4524 * cp-abi.c: Fix whitespace.
4525 (baseclass_offset): New wrapper function.
4526 * cp-abi.h (baseclass_offset): Add prototype.
4527 (struct cp_abi_ops): Add baseclass_offset pointer.
4528
4529 * valops.c (vb_match): Move to...
4530 * gnu-v2-abi.c (vb_match): here.
4531 * valops.c (baseclass_offset): Move to...
4532 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
4533
4534 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
4535
4536 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
4537 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
4538 * hpacc-abi.c (init_hpacc_ops): Likewise.
4539
4540 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4541
4542 * valops.c (find_overload_match): Accept obj as a
4543 reference parameter. Update it before returning.
4544 * value.h (find_overload_match): Update prototype.
4545 * eval.c (evaluate_subexp_standard): Pass object to
4546 find_overload_match by reference.
4547
4548 2002-01-03 Andrew Cagney <ac131313@redhat.com>
4549
4550 * valarith.c: Replace value_ptr with struct value pointer. Remove
4551 register attribute from value declarations.
4552 * valops.c: Ditto.
4553 * value.h: Ditto.
4554 * scm-lang.c (scm_lookup_name): Ditto.
4555
4556 2002-01-03 Michael Snyder <msnyder@redhat.com>
4557
4558 Abstract the functionality of iterating over mapped memory
4559 regions into a general purpose iterator function.
4560 * procfs.c (iterate_over_mappings): New function, general purpose
4561 iterator for memory sections.
4562 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
4563 (solib_mappings_callback): New function, callback for above.
4564 (info_proc_mappings): Reimpliment using iterate_over_mappings.
4565 (info_mappings_callback): New function, callback for above.
4566
4567 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
4568
4569 2002-01-01 Mark Kettenis <kettenis@gnu.org>
4570
4571 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
4572 * i386-tdep.c: Include "elf-bfd.h".
4573 (process_note_abi_tag_sections): New function.
4574 (i386_gdbarch_init): Add code to recognize various OS/ABI
4575 combinations.
4576
4577 * maint.c (_initialize_maint_cmds): Add missing \ in
4578 string-literal.
4579
4580 For older changes see ChangeLog-2001
4581 \f
4582 Local Variables:
4583 mode: change-log
4584 left-margin: 8
4585 fill-column: 74
4586 version-control: never
4587 End:
This page took 0.124039 seconds and 4 git commands to generate.