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