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