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