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