* maint.c (_initialize_maint_cmds): Add missing in
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c5ad026a
MK
12002-01-01 Mark Kettenis <kettenis@gnu.org>
2
3 * maint.c (_initialize_maint_cmds): Add missing \ in
4 string-literal.
5
902d0061
MS
62001-12-30 Michael Snyder <msnyder@redhat.com>
7
8 * sparc-tdep.c (sparc-store-return-value): Whitespace fix-up.
9
1fcc0bb8
EZ
102001-12-29 Elena Zannoni <ezannoni@redhat.com>
11
12 * Makefile.in (rs6000-tdep.o): Add dependency on parser-defs.h.
13
14 * rs6000-tdep.c: Include parser-defs.h.
15 (rs6000_register_virtual_type): Rewrite, including handling of
16 AltiVec regs type.
17 (altivec_register_p): New function.
18 (rs6000_do_altivec_registers): New function.
19 (rs6000_altivec_registers_info): New function.
20 (rs6000_do_registers_info): New function.
21 (R16): Define.
22 (PPC_ALTIVEC_REGS): Define.
23 (registers_powerpc): Add AltiVec registers.
24 (registers_7400): Define.
25 (variants): Add 7400 machine.
26 (rs6000_gdbarch_init): Set the numbers of AltiVec registers.
27 Initialize gdbarch_do)_registers_info.
28 (rs6000_info_power_command): New function.
29 (info_power_cmdlist): New static variable.
30 (_initialize_rs6000_tdep): Add new 'info powerpc altivec' command.
31
32 * ppc-tdep.h (struct gdbarch_tdep): Add altivec regnum fields.
33 (altivec_register_p): Export.
34
ec80a8ea
MK
352001-12-29 Mark Kettenis <kettenis@gnu.org>
36
2c48bda3
MK
37 * i386bsd-nat.c (reg_offset): Fix typo.
38
ec80a8ea
MK
39 * i386-tdep.c (i386_push_dummy_frame): Don't write back the
40 modified frame pointer until the old frame pointer has been saved.
41
428721aa
AC
422001-12-30 Andrew Cagney <ac131313@redhat.com>
43
44 * arch-utils.c (initialize_current_architecture): Test byte_order
45 against BFD_ENDIAN_UNKNOWN.
46 (gdbarch_info_init): Initialize byte_order to BFD_ENDIAN_UNKNOWN.
47 * gdbarch.sh: Update comments on default value of byte_order.
48 (verify_gdbarch, gdbarch_update_p): Test byte_order against
49 BFD_ENDIAN_UNKNOWN.
50 * gdbarch.h, gdbarch.c: Re-generate.
51
b01d807c
MS
522001-12-27 Michael Snyder <msnyder@redhat.com>
53
c3833324
MS
54 * i386-linux-nat.c: Include i386-tdep.h.
55
b01d807c
MS
56 * maint.c (match_substring): GNU coding standards fixes.
57 (print_bfd_section_info): Ditto.
58 (print_objfile_section_info): Ditto.
59
473e38f3
MK
602001-12-27 Mark Kettenis <kettenis@gnu.org>
61
62 * maint.c (match_substring): Make parameters `string' and `substr'
63 const. Make local variable `tok' const.
64
96297dab
MK
652001-12-27 Mark Kettenis <kettenis@gnu.org>
66
67 * config/i386/tm-i386.h (FP7_REGNUM, FIRST_FPU_CTRL_REGNUM,
68 FCTRL_REGNUM, FPC_REGNUM, FSTAT_REGNUM, FTAG_REGNUM, FCS_REGNUM,
69 FCOFF_REGNUM, FDS_REGNUM, FDOFF_REGNUM, FOP_REGNUM,
70 LAST_FPU_CTRL_REGNUM, XMM0_REGNUM, XMM7_REGNUM, MXCSR_REGNUM,
71 IS_FP_REGNUM, IS_SSE_REGNUM): Removed.
72 (FP0_REGNUM): Define conditionally depending on HAVE_I387_REGS.
73 (SIZEOF_FPU_CTRL_REGS): Hardcode value.
74 * i386-tdep.h (struct gdbarch_tdep): Change such that it contains
75 a single member `num_xmm_regs'.
76 (FPC_REGNUM): New macro.
77 (FIRST_FPU_REGNUM, LAST_FPU_REGNUM, FISRT_XMM_REGNUM,
78 LAST_XMM_REGNUM, MXCSR_REGNUM, FIRST_FPU_CTRL_REGNUM,
79 LAST_FPU_CTRL_REGNUM): Removed.
80 (FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM, FOP_REGNUM, XMM0_REGNUM,
81 MXCSR_REGNUM): Define unconditionally. Change macros to match the
82 comment describing the register layout.
83 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM): New macros.
84 (FP_REGNUM_P, FPC_REGNUM_P, SSE_REGNUM_P): New macros.
85 (IS_FP_REGNUM, IS_FPU_CTRL_REGNUM, IS_SSE_REGNUM): Make obsolete,
86 unconditionally define in terms of FP_REGNUM_P, FPC_REGNUM_P and
87 SSE_REGNUM_P).
88 (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM, FDOFF_REGNUM): Make
89 obsolete, unconditionally define in terms of FISEG_REGNUM,
90 FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM.
91 * i386-tdep.c (i386_gdbarch_init): Initialize `num_xmm_regs'
92 member of `struct gdbarch_tdep'.
93 * x86-64-tdep.c (i386_gdbarch_init): Change initialization of
94 `struct gdbarch_tdep'.
95 * i387-nat.c (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM, FDOFF_REGNUM):
96 Replace with FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM and
97 FOOFF_REGNUM. Use FPC_REGNUM instead of FIRST_FPU_CTRL_REGNUM.
98 Use XMM0_REGNUM instead of LAST_FPU_CTRL_REGNUM.
99
f976f6d4
AC
1002001-12-25 Andrew Cagney <ac131313@redhat.com>
101
102 * cli/cli-script.c (execute_control_command): Replace value_ptr
103 with a struct value pointer.
104 * ch-lang.c (evaluate_subexp_chill): Ditto.
105 * printcmd.c (printf_command): Ditto.
106 * tracepoint.c (set_traceframe_context): Ditto.
107 (encode_actions): Ditto.
108 * eval.c (evaluate_subexp_standard): Ditto.
109
06b25f14
AC
1102001-12-25 Andrew Cagney <ac131313@redhat.com>
111
112 * gdbarch.sh: When an int variable, print value using %d instead
113 of %ld.
114 * gdbarch.c: Re-generate.
115
dfea300e
TR
1162001-12-24 Tom Rix <trix@redhat.com>
117
118 * config/powerpc/aix.mt (TDEPFILES): Add xcoffread.o to fix a build
119 failure.
120
388faa48
MS
1212001-12-21 Michael Snyder <msnyder@redhat.com>
122
123 * procfs.c (info_proc_cmd): Add the 'mappings' sub-command that
124 was dropped a few years ago, when procfs.c was rewritten.
125 (info_proc_mappings): New function, implement 'info proc mappings'.
126 (mappingflags): New function.
127 (_initialize_procfs): Document new option to 'info proc' command.
128
58d370e0
TT
1292001-12-21 Tom Tromey <tromey@redhat.com>
130
131 * configure, config.in: Rebuilt.
132 * configure.in: Check for realpath.
133 * defs.h (gdb_realpath): Declare.
134 * symtab.h (partial_symtab): Added fullname field.
135 * source.c (openp): Use gdb_realpath.
136 (forget_cached_source_info): Clear full name of each partial
137 symtab.
138 * utils.c (gdb_realpath): New function.
139 * symtab.c (lookup_symtab): Removed.
140 (lookup_symtab_1): Renamed to lookup_symtab.
141 (lookup_symtab): Look for real path.
142 (lookup_partial_symtab): Likewise.
143
a532ca62
MS
1442001-12-21 Michael Snyder <msnyder@redhat.com>
145
146 * maint.c (match_substring): New function. Tokenizer for
147 maint info sections command arguments.
148 (match_bfd_flag): Use match_substring.
149 (print_bfd_section_info): Use match_substring.
150 (print_objfile_section_info): Use match_substring.
151 (maintenance_info_sections): Use match_substring.
152
dbbff683
OF
1532001-12-21 Orjan Friberg <orjanf@axis.com>
154
155 * configure.tgt: Delete CRIS from multi-arch targets.
156
157 * config/cris/tm-cris.h: New file.
158
159 * config/cris/cris.mt (TDEPFILES): Add corelow.o solib.o solib-svr4.o.
160 (TM_FILE): New macro.
161
162 * cris-tdep.c (cris_examine): Correct check for srp register.
163 (supply_gregset, fetch_core_registers,
164 cris_linux_svr4_fetch_link_map_offsets, cris_fpless_backtrace):
165 New functions.
166 (_initialize_cris_tdep): Add core functions and new command.
167 (cris_gdbarch_init): Define link map offsets.
168
9b3128c4
JL
169Thu Dec 20 16:42:30 2001 Jeffrey A Law (law@cygnus.com)
170
171 * somsolib.c (som_solib_add): Ignore the solib limit threshhold
172 if AUTO_SOLIB_LIMIT is not greater than zero.
173
174 * somsolib.c (som_solib_create_inferior_hook): No longer warn
175 about missing __d_pid symbol.
176
45229ea4
EZ
1772001-12-20 Elena Zannoni <ezannoni@redhat.com>
178
179 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register):
180 New function.
181 (fetch_register): New function.
182 (fetch_ppc_registers): New function.
183 (fetch_inferior_registers): New function.
184 (store_register): New function.
185 (store_ppc_registers): New function.
186 (store_inferior_registers): New function.
187 (ppc_register_u_addr): Eliminate ustart parameter and its
188 uses. Make static.
189 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE): Define if needed.
190 Include sys/ptrace.h.
191
192 * config/powerpc/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
193 (U_REGS_OFFSET, REGISTER_U_ADDR): Delete.
194
195 * config/powerpc/linux.mh (NATDEPFILES): Delete core-aout.o.
196
2a18e3d9
EZ
1972001-12-20 Elena Zannoni <ezannoni@redhat.com>
198
199 * rs6000-nat.c (fetch_register): Don't error out unless the
200 register number is really bogus.
201
e3d3bfda
MS
2022001-12-20 Michael Snyder <msnyder@redhat.com>
203
204 * maint.c (maintenance_info_sections): Accept new argument
205 'ALLOBJ', iterate over all object files.
206 (print_section_table): Delete. Replaced by:
207 (print_section_info): New function.
208 (print_bfd_section_info): New function.
209 (print_objfile_section_info): New function.
210 (_initialize_maint_commands): Add help for new features.
211
f079148d
KB
2122001-12-20 Kevin Buettner <kevinb@redhat.com>
213
214 * arm-tdep.c (arm_init_extra_frame_info): Add special case for
215 call dummies.
216 (arm_frame_saved_pc): Likewise.
217 (arm_push_dummy_frame): Make sure all of the GPRs are saved.
218 (arm_pop_frame): Eliminate special case for call dummies. It
219 is no longer needed now that the frame info is being properly
220 initialized.
221
d4473757
KB
222 * arm-tdep.c (arm_scan_prologue): Don't require "mov ip, sp"
223 to be the first instruction in the prologue. Also, revise
224 the way the frame offset is computed for frameless functions.
225
43155bc1
MS
2262001-12-20 Michael Snyder <msnyder@redhat.com>
227
228 * maint.c (maintenance_info_sections): Pass string argument to
229 print_section_table, so that it can be used to select sections.
230 (print_section_table): Change PTR to void *. Look at string arg
231 to select sections by name and by flag attributes.
232 (match_bfd_flags): New function.
233 (print_bfd_flags): New function.
234
47724592
JL
235Thu Dec 20 11:37:50 2001 Jeffrey A Law (law@redhat.com)
236
237 * cli/cli-decode.c (add_cmd): Initialize pre_show_hook in
238 the new command.
239
b323314b
AC
2402001-12-20 Andrew Cagney <ac131313@redhat.com>
241
242 * remote.c (struct packet_reg): Add field in_g_packet.
243 (struct remote_state): Rename field g_packet to regs;
244 (free_remote_state): Update.
245 (init_remote_state): Add pseudo-registers to table. Initialize
246 in_g_packet. Drop sentinal from table.
247 (packet_reg_from_regnum, packet_reg_from_pnum): Update.
248 (remote_fetch_registers): Handle registers not in the g-packet.
249 (remote_store_registers): Ditto.
250
2c283bc4
AC
2512001-12-20 Andrew Cagney <ac131313@redhat.com>
252
253 * gdbarch.sh (TARGET_CHAR_SIGNED): Do not specify the print
254 format.
255
2e7db62a
JB
2562001-12-19 Jim Blandy <jimb@redhat.com>
257
1a889ea5
JB
258 * s390-tdep.c (s390_pop_frame_regular): Make sure the saved_regs
259 array is actually set before we try to use it.
260
529765f4
JB
261 * s390-tdep.c (s390_frame_saved_pc_nofix): If we get the saved PC
262 out of the return address register, cache that in the frame's
263 extra info, just as if we'd gotten it from the saved regs array;
264 that way, it's not a lie to set the saved_pc_valid flag.
265
76cc2cf0
JB
266 * s390-tdep.c (s390_get_frame_info): Give orig_sp a reasonable
267 value, even when fextra_info->stack_bought can't be trusted,
268
c5e243bb
JB
269 * s390-tdep.c (s390_readinstruction): Don't call
270 info->read_memory_func to read zero bytes. Some targets'
271 xfer_memory functions can't cope with that.
272
2e7db62a
JB
273 * gdbarch.sh (TARGET_CHAR_SIGNED): New macro.
274 * gdbarch.c, gdbarch.h: Regenerated.
275 * gdbtypes.c (build_gdbtypes): If TARGET_CHAR_SIGNED is zero,
276 set the TYPE_FLAG_UNSIGNED bit on the type.
277 * s390-tdep.c (s390_gdbarch_init): On the S/390, characters
278 are unsigned by default.
279 * rs6000-tdep.c (rs6000_gdbarch_init): Same for PowerPC and
280 RS6000.
281
16a0f3e7
EZ
2822001-12-19 Elena Zannoni <ezannoni@redhat.com>
283
284 * corefile.c (do_captured_read_memory_integer,
285 safe_read_memory_integer): New functions.
286 * gdbcore.h (safe_read_memory_integer): Export.
287 * arm-tdep.c (arm_scan_prologue): Use safe_read_memory_integer,
288 to read the frame value, to capture calls to error().
289
23b7362f
JB
2902001-12-19 Jim Blandy <jimb@redhat.com>
291
b09677dc
JB
292 * s390-tdep.c (s390_register_name): S390_LAST_REGNUM is, in fact,
293 the last register number, not one greater than the last register
294 number.
295
296 * s390-tdep.c (s390_register_virtual_type): Replace clever but
297 incorrect range comparison with correct, legible equivalent.
298
23b7362f
JB
299 * s390-tdep.c (s390_register_raw_size): Replace unnecessarily
300 obscure range comparison with legible equivalent.
301
6c482b87
JL
302Wed Dec 19 12:18:57 2001 Jeffrey A Law (law@redhat.com)
303
1cdb71fe
JL
304 * config/pa/tm-hppa.h (STORE_RETURN_VALUE): Use hppa_store_return_value.
305 (EXTRACT_RETURN_VALUE): Similarly.
306 * hppa-tdep.c (hppa_store_return_value): New function.
307 (hppa_extract_return_value): New function.
308
309 * infttrace.c (child_acknowledge_created_inferior): Pass
6c482b87
JL
310 correct argument to add_thread.
311 (update_thread_state_after_attach): Likewise.
312
80fcf3f0
FN
3132001-12-19 Fernando Nasser <fnasser@redhat.com>
314
315 * config/arm/tm-arm.h: Properly define SOFTWARE_SINGLE_STEP_P.
316 Always define SOFTWARE_SINGLE_STEP.
317 * config/arm/tm-embed.h: Properly define SOFTWARE_SINGLE_STEP_P.
318 * arm-tdep.c (arm_get_next_pc, thumb_get_next_pc, bitcount,
319 shifted_reg_val): Always compile these functions.
320 (arm_software_single_step): Fix second argument in function calls.
321
fb6ecb0f
AC
3222001-12-19 Andrew Cagney <ac131313@redhat.com>
323
324 * arch-utils.h (gdbarch_info_init): Declare.
325 * arch-utils.c: Include "arch-utils.h".
326 (gdbarch_info_init): Define.
327 (set_endian, set_architecture, set_gdbarch_from_file)
328 (initialize_current_architecture): Use gdbarch_info_init.
329 * rs6000-nat.c (set_host_arch): Ditto.
330 * cris-tdep.c (cris_version_update, cris_mode_update)
331 (cris_abi_update): Ditto.
332
ae23c7a3
JB
3332001-12-19 Jim Blandy <jimb@redhat.com>
334
335 * c-lang.c (c_emit_char): Print ASCII 11 as '\v', to match
336 ISO C, and our parser. Print ASCII 0 as '\0', since that's what
337 people are used to seeing.
338
c0d4a49f
JB
3392001-12-18 Jim Blandy <jimb@redhat.com>
340
78a51202
JB
341 * c-lang.c (c_printstr, c_builtin_types, cplus_builtin_types):
342 Fix indentation.
343
c0d4a49f
JB
344 * Makefile.in (c-exp.tab.o): Delete duplicate build rule. Fix
345 dependency list on remaining build rule.
346
67a59bc0
MH
3472001-12-18 Martin M. Hunt <hunt@redhat.com>
348
349 * ser-tcp.c (tcp_open): Disable Nagle algorithm which
350 improves performance in some cases.
351
de7dd7a9
BH
3522001-12-17 Ben Harris <bjh21@netbsd.org>
353
354 * armbsd-nat.c: Remove file, renamed to armnbsd-nat.c.
355 * armnbsd-nat.c: New file, renamed from armbsd-nat.c.
356 * Makefile.in: Rename armbsd-nat.c to armnbsd-nat.c.
357 * config/arm/nbsd.mh: Likewise.
358
c9f63e6b
CV
3592001-12-17 Corinna Vinschen <vinschen@redhat.com>
360
361 * NEWS: Note new target XStormy16.
362 * MAINTAINERS: Add -Werror to XStormy16.
363
c5c586ed
FN
3642001-12-17 Fernando Nasser <fnasser@redhat.com>
365
366 From Richard Earnshaw <rearnsha@arm.com>:
9512d7fd
FN
367 * arm-tdep.c (arm_software_single_step): New function. Implements
368 software single-stepping for ARM targets.
369 (arm_get_next_pc, thumb_get_next_pc, bitcount, shifted_reg_val): Only
370 needed for software single-stepping.
371 * config/arm/tm-arm.h: Activate SOFTWARE_SINGLE_STEP_P.
372
3732001-12-17 Fernando Nasser <fnasser@redhat.com>
374
375 From Richard Earnshaw <rearnsha@arm.com>:
376 * config/arm/nbsd.mh, config/arm/nbsd.mt, config/arm/tm-nbsd.h,
377 config/arm/nm-nbsd.h, config/arm/xm-nbsd.h: New files.
378 * armbsd-nat.c: New file.
379 * Makefile.in: Build it.
380 * configure.host, configure.tgt: Support NetBSD/arm.
c5c586ed 381
7c0a2a0a
CV
3822001-12-17 Corinna Vinschen <vinschen@redhat.com>
383
384 * MAINTAINERS: Add myself as XStormy16 maintainer.
385
2d5177f3
KB
3862001-12-15 Kevin Buettner <kevinb@redhat.com>
387
388 * config/rs6000/tm-rs6000.h (solib.h): Conditionally include.
389
33cce468
AC
3902001-12-15 Andrew Cagney <ac131313@redhat.com>
391
392 * gdbarch.c: Re-generate.
393
8dacb7ef
AC
3942001-12-15 Andrew Cagney <ac131313@redhat.com>
395
396 * MAINTAINERS: Remove powerpcle-eabi and rs6000-ibm-aix3.2 from
397 target list.
398
778eb05e
AC
3992001-12-15 Andrew Cagney <ac131313@redhat.com>
400
401 * defs.h (LITTLE_ENDIAN): Delete definition.
402 * arch-utils.c, cris-tdep.c, d10v-tdep.c, defs.h, gdbarch.c,
403 gdbarch.sh, remote-rdp.c, remote-sim.c, sh-tdep.c, sparc-tdep.c,
404 config/alpha/tm-alpha.h, config/arm/tm-arm.h,
405 config/i386/tm-i386.h, config/i960/tm-i960.h,
406 config/ia64/tm-ia64.h, config/mcore/tm-mcore.h,
407 config/mips/tm-wince.h, config/mn10200/tm-mn10200.h,
408 config/ns32k/tm-umax.h, config/powerpc/tm-ppcle-eabi.h,
409 config/sh/tm-wince.h, config/v850/tm-v850.h, config/vax/tm-vax.h,
410 doc/gdbint.texinfo: Replace LITTLE_ENDIAN with BFD_ENDIAN_LITTLE.
411
a6c47c14
AC
4122001-12-15 Andrew Cagney <ac131313@redhat.com>
413
414 * ui-out.c (struct ui_out_table): Add field entry_level.
415 (verify_field): New function.
416 (verify_field_proper_position): Delete function.
417 (verify_field_alignment): Delete function.
418 (ui_out_field_int): Update to use verify_field.
419 (ui_out_field_skip): Ditto.
420 (ui_out_field_string): Ditto.
421 (ui_out_field_fmt): Ditto.
422 (ui_out_table_begin): Initialize table.entry_level.
423 (ui_out_table_end): Clear table.entry_level.
424 (ui_out_begin): Call verify_field before pushing the new tuple or
425 list onto the stack. Use table.entry_level.
426
2d6f4d15
CV
4272001-12-14 Corinna Vinschen <vinschen@redhat.com>
428
429 * config/djgpp/fnchange.lst: Add entries for opcodes/xstormy16-* files.
430
ef8570de
AC
4312001-12-13 Andrew Cagney <ac131313@redhat.com>
432
433 * arch-utils.c (generic_register_virtual_size): Return TYPE_LENGTH
434 of register's type.
435
e6ccd35f
JSC
4362001-12-13 Jackie Smith Cashion <jsmith@redhat.com>
437
438 * cli/cli-script.c (print_command_lines): Remove extra
439 "if", "else", "while", and "end" from show user output.
440
5d003c95
KB
4412001-12-13 Kevin Buettner <kevinb@redhat.com>
442
443 * i387-nat.c (i387_fill_fxsave): Change type of ``val'' from char
444 to short so that we don't memcpy() beyond the end of this buffer.
445 Also, change shift value used in computing val to account for the
446 fact that only eight bits are used.
447
0c884e17
CV
4482001-12-13 Corinna Vinschen <vinschen@redhat.com>
449
450 * Makefile.in: Add support for xstormy16.
451 * configure.tgt: Ditto.
452 * xstormy16-tdep.c: New file.
453 * config/xstormy16/xstormy16.mt: New file.
454
49d5aff7
AS
4552001-12-13 Andreas Schwab <schwab@suse.de>
456
457 * MAINTAINERS (write-after-approval): Add myself.
458
68c42665
JB
4592001-12-12 Jim Blandy <jimb@redhat.com>
460
29e472bc
JB
461 * Makefile.in (c-exp.tab.o): Add missing dependencies.
462
68c42665
JB
463 * Makefile.in (c_lang_h): New variable. Use it in dependency
464 lists, instead of `c-lang.h' itself.
465
74a9bb82
FF
4662001-12-11 Fred Fish <fnf@redhat.com>
467
468 * c-typeprint.c (c_type_print_base): Use type flags access macros
469 to test bits.
470 * ch-typeprint.c (chill_type_print_base): Ditto.
471 * ch-valprint.c (chill_val_print): Ditto.
472 * d10v-tdep.c (d10v_pointer_to_address): Ditto.
473 * dwarf2read.c (dwarf2_add_member_fn): Ditto.
474 * dwarfread.c (read_structure_scope): Ditto.
475 * gdbtypes.c (create_range_type): Dittol
476 (create_set_type): Ditto.
477 (check_typedef): Ditto.
478 * jv-typeprint.c (java_type_print_base): Ditto.
479 * p-typeprint.c (pascal_type_print_base): Ditto
480 * p-valprint.c (pascal_val_print): Ditto.
481 * stabsread.c (read_cfront_member_functions): Ditto.
482 (read_member_functions): Ditto.
483 (cleanup_undefined_types): Ditto.
484 * valprint.c (val_print): Ditto.
485
486 * valops.c (hand_function_call): Remove is_prototyped
487 variable and just use type flag test macro directly.
488
e9e79dd9
FF
4892001-12-11 Fred Fish <fnf@redhat.com>
490
491 * gdbtypes.c (print_bound_type): New function.
492 (recursive_dump_type): Print type struct code values
493 TYPE_CODE_BITSTRING, TYPE_CODE_COMPLEX, TYPE_CODE_TEMPLATE,
494 and TYPE_CODE_TEMPLATE_ARG.
495 (recursive_dump_type): Print type struct members
496 upper_bound_type, lower_bound_type, cv_type, and as_type.
497 Also always print the tagname member, even when it is NULL.
498
0e7c5946
MS
4992001-12-11 Michael Snyder <msnyder@redhat.com>
500
501 * d10v-tdep.c (d10v_register_virtual_size): Delete.
502 (d10v_gdbarch_init): Use generic_register_virtual_size.
503 * rs6000-tdep.c (rs6000_register_virtual_size): Delete.
504 (rs6000_gdbarch_init): Use generic_register_virtual_size.
505 * x86-64-tdep.c (x86_64_register_virtual_size): Delete.
506 (i386_gdbarch_init): Use generic_register_virtual_size.
507
5ae326fa
AC
5082001-12-11 Andrew Cagney <ac131313@redhat.com>
509
510 * values.c: Include "gdb_assert.h".
511 (value_fn_field): Rearange to avoid -Wuninitialized warning.
512
0478d61c
FF
5132001-12-10 Fred Fish <fnf@redhat.com>
514
515 * values.c (value_fn_field): Add physname variable. Use a minimal
516 symbol if we don't find a full symbol. Remove setting of the new
517 value's type since that was already done by allocate_value().
518 Remove obsolete commented out error call since callees need to
519 handle a NULL return, which is possible result not an error.
520 * eval.c (evaluate_subexp_standard): Move check for inlined
521 functions to precede attempt to dereference a NULL argvec[0].
522
9b27852e
FF
5232001-12-10 Fred Fish <fnf@redhat.com>
524
525 * arm-linux-tdep.c (skip_hurd_resolver): Use NULL rather than
526 zero in args to lookup_minimal_symbol.
527 * linespec.c (decode_line_1): Ditto.
528 * i386-linux-tdep.c (skip_hurd_resolver): Ditto.
529 * minsyms.c (find_stab_function_addr): Ditto.
530 * symfile.c (simple_read_overlay_table): Ditto.
531 (simple_read_overlay_region_table): Ditto.
532
ce29138a
MS
5332001-12-10 Michael Snyder <msnyder@redhat.com>
534
535 * arch-utils.c (generic_register_virtual_size): New function.
536 * arch-utils.h: Export generic version of register_virtual_size.
537 * gdbarch.sh (REGISTER_VIRTUAL_SIZE): Use new function as default.
538 * gdbarch.c: Regenerate.
539
762a036f
FF
5402001-12-09 Fred Fish <fnf@redhat.com>
541
542 * gdbtypes.c (TYPE_FLAG_UNSIGNED, TYPE_FLAG_STUB): Use
543 TYPE_UNSIGNED and TYPE_NOSIGN to determine when to print these
544 rather than testing the bits directly.
545 (TYPE_FLAG_NOSIGN, TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC,
546 TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_PROTOTYPED,
547 TYPE_FLAG_INCOMPLETE, TYPE_FLAG_CODE_SPACE, TYPE_FLAG_DATA_SPACE,
548 TYPE_FLAG_VARARGS): Test for and print these bits as well.
549
34a2fedd
FF
5502001-12-09 Fred Fish <fnf@redhat.com>
551
552 * gdbtypes.c (build_gdbtypes): For builtin_type_char, pass
553 TYPE_FLAG_NOSIGN to init_type() rather than setting it after the
554 type is created.
555
aa468c60
FF
5562001-12-09 Fred Fish <fnf@redhat.com>
557
558 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_CONST,
559 TYPE_VOLATILE, TYPE_INCOMPLETE): Move macros that test the
560 bits to location in file where the bits are defined.
561 (TYPE_STUB, TYPE_TARGET_STUB, TYPE_STATIC, TYPE_PROTOTYPED,
562 TYPE_CODE_SPACE, TYPE_DATA_SPACE): New test macros.
563
7e956337
FF
5642001-12-09 Fred Fish <fnf@redhat.com>
565
566 * gdbtypes.c (allocate_stub_method): Replace hand crafted type
567 initialization with call to the init_type() function.
568
46cd78fb
AC
5692001-12-09 Andrew Cagney <ac131313@redhat.com>
570
571 * arch-utils.c (generic_register_raw_size): New function.
572 * gdbarch.sh (REGISTER_RAW_SIZE): Use generic_register_raw_size as
573 the static default.
574 * gdbarch.c: Regenerate.
575 * arch-utils.h (generic_register_raw_size): Declare.
576
577 * config/mips/tm-mips.h (REGISTER_RAW_SIZE): Delete macro.
578 * mips-tdep.c (mips_register_raw_size): Make function static.
579 (mips_gdbarch_init): Initialize register_raw_size.
580
2f038fcb
FF
5812001-12-08 Fred Fish <fnf@redhat.com>
582
583 * dwarf2read.c (read_typedef): Replace hand crafted type
584 initialization with a call to the init_type() function, which
585 is how the rest of gdb creates types.
586
0b3d7c6d
FF
5872001-12-09 Fred Fish <fnf@redhat.com>
588
589 * mdebugread.c (cross_ref): Pass TYPE_FLAG_STUB to init_type()
590 rather than setting it after the type is created.
591
2188cbdd
EZ
5922001-12-09 Elena Zannoni <ezannoni@redhat.com>
593
594 * config/rs6000/tm-rs6000.h (STAB_REG_TO_REGNUM): Remove
595 definition, it is now multiarched.
596 * ppc-tdep.h (struct gdbarch_tdep): Move from rs6000-tdep.c. Add
597 fields for special register numbers.
598 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize new tdep special
599 regnum fields.
600 (rs6000_saved_pc_after_call): Use gdbarch_tdep registers fields
601 instead of hardcoded macros.
602 (branch_dest, rs6000_pop_frame, rs6000_fix_call_dummy,
603 ppc_push_return_address, rs6000_frame_saved_pc,
604 frame_get_saved_regs, rs6000_frame_chain,
605 rs6000_store_return_value): Ditto.
606 (rs6000_stab_reg_to_regnum): New function.
607 * ppcnbsd-nat.c (fetch_inferior_registers,
608 store_inferior_registers, fetch_core_registers): Ditto.
609 * ppc-linux-tdep.c (ppc_linux_in_sigtramp,
610 ppc_linux_frame_init_saved_regs): Ditto.
611 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
612 fill_gregset): Ditto.
613 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
614 Ditto.
615
6edc140f
FF
6162001-12-08 Fred Fish <fnf@redhat.com>
617
618 * c-lang.c (c_create_fundamental_type): For FT_CHAR, pass
619 TYPE_FLAG_NOSIGN to init_type() rather than setting it after the
620 type is created.
621
878ac530
FF
6222001-12-08 Fred Fish <fnf@redhat.com>
623
624 * dwarf2read.c (TYPE_FLAG_VARARGS): Remove from here.
625 * gdbtypes.h (TYPE_FLAG_VARARGS): Add here and change value to
626 not collide with other flag bits.
627
f5ef7c67
FF
6282001-12-08 Fred Fish <fnf@redhat.com>
629
630 * dwarf2read.c (read_base_type): Rename is_unsigned to type_flags.
631 For unsigned types set TYPE_FLAG_UNSIGNED and pass it to
632 init_type().
633
1e8e5c2a
DJ
6342001-12-08 Daniel Jacobowitz <drow@mvista.com>
635
636 * Makefile.in (cp-valprint.o): Add dependency on $(cp_abi_h).
637
fa4baff1
JB
6382001-12-08 Jim Blandy <jimb@redhat.com>
639
640 * config/s390/s390.mh: Don't use the linux-thread.o module;
641 thread-db.o, lin-lwp.o, and proc-service.o should work just fine.
642
6b325864
AC
6432001-12-07 Andrew Cagney <ac131313@redhat.com>
644
645 * PROBLEMS: New file.
646 * README: Move known problems to PROBLEMS file.
647
23abb74e
DJ
6482001-12-07 Daniel Jacobowitz <drow@mvista.com>
649
650 * stabsread.c (read_member_functions): Skip member functions which
651 are duplicates of the callable constructor/destructor.
652
03a013f4
JB
6532001-12-07 Jim Blandy <jimb@redhat.com>
654
655 * s390-tdep.c (s390_store_return_value): Don't convert float
656 values to double format when returning them; just return them in
657 the first half of the FP register, as the ABI specifies.
658
76b2e19d
DJ
6592001-12-07 Daniel Jacobowitz <drow@mvista.com>
660
661 * valops.c (hand_function_call): Check for method arguments in
662 TYPE_ARG_TYPES(), not in TYPE_FIELD ().
663
b9d652ac
DJ
6642001-12-07 Daniel Jacobowitz <drow@mvista.com>
665
666 * cp-valprint.c (cp_print_value): Preserve offset if
667 the virtual base is outside of this object.
668
a02fd225
DJ
6692001-12-07 Daniel Jacobowitz <drow@mvista.com>
670
671 * gdbtypes.c (finish_cv_type): New function.
672 (check_typedef): Remove ``register'' keyword from argument.
673 Preserve const and volatile attributes across filling in
674 opaque types.
675 * gdbtypes.h (finish_cv_type): Add prototype.
676
677 * hp-symtab-read.c (hpread_read_struct_type): Call finish_cv_type.
678 * stabsread.c (read_struct_type): Likewise.
679 * dwarf2read.c (read_structure_scope): Likewise. Remove redundant
680 assignment to die->type.
681
f4697836
JB
6822001-12-07 Jim Blandy <jimb@redhat.com>
683
684 * printcmd.c (print_scalar_formatted): Compare the length of the
685 value against the lengths of the target's floating-point types,
686 not the host's. Add support for `long double'.
687
0cf3e697
MH
6882001-12-07 Martin M. Hunt <hunt@redhat.com>
689
690 * configure.in: Check for sys/filio.h
691 * configure: Rebuild.
692 * config.in: Add HAVE_SYS_FILIO_H
693 * ser-tcp.c: Conditionally include sys/filio.h.
694
bafdd3b3
AC
6952001-12-07 Andrew Cagney <ac131313@redhat.com>
696
697 * ui-out.c (ui_out_table_begin): Initialize body_flag.
698 (struct ui_out_table): New structure. Move table fields to here.
699 Rename headercurr to headernext.
700 (struct ui_out): Remove table specific fields. Add field table.
701 (ui_out_table_begin, ui_out_table_body, ui_out_table_end): Update.
702 (ui_out_table_header, ui_out_begin): Update.
703 (verify_field_proper_position, verify_field_alignment): Update.
704 (ui_out_new, clear_header_list, append_header_to_list): Update.
705 (get_next_header): Rename get_curr_header. Update comments and
706 code.
707
1c8649cd
AC
7082001-12-06 Andrew Cagney <ac131313@redhat.com>
709
710 * regcache.c (XCALLOC): Delete macro that should not have been
711 added.
712
b6af0555
JS
7132001-12-07 Jiri Smid <smid@suse.cz>
714
715 * dwarf2cfi.c: New file.
716 * dwarf2cfi.h: New file.
717 * dwarf2read.c (dwarf_frame_offset, dwarf_frame_size): New variables.
718 (dwarf_eh_frame_offset, dwarf_eh_frame_size): New variables.
719 (dwarf2_read_section): Change to non static.
720 (dwarf2_locate_sections): Add .debug_frame and .eh_frame section
721 recognition.
722 (FRAME_SECTION, EH_FRAME_SECTION): New define.
723 * elfread.c (elf_symfile_read): Add call of frame informations build.
724 * frame.h (frame_info): Add pointer to unwind_context.
725 * symfile.h (dwarf2_build_frame_info): Add declaration.
726 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Add.
727 * gdbarch.h, gdbarch.c: Regenerate.
728 * Makefile.in: Add dwarf2cfi_h, dwarf2cfi.o
729 * x86-64-tdep.c (i386_gdbarch_init): Initialize target vector to
730 use debug frame info.
731
ed1801df
AC
7322001-12-06 Andrew Cagney <ac131313@redhat.com>
733
734 * defs.h: Do not include "mmalloc.h".
735 (mcalloc, mmalloc, mrealloc, mfree): Delete declaration.
736 * objfiles.c: Include "mmalloc.h".
737 * utils.c: Include "mmalloc.h".
738 (mmalloc, mfree, mrealloc, mmalloc): Make static, change PTR to
739 void pointer.
740
31e9866e
AC
7412001-12-06 Andrew Cagney <ac131313@redhat.com>
742
743 * regcache.c (store_register, fetch_register): Only use
744 fetch/store pseudo-register when function is present. Assume
745 target can handle all registers.
746 (registers_changed): Simplify invalidate loop.
747 (registers_fetched): Add comments.
748 (register_buffer): Add regnum range assertion. Remove code
749 handling -ve regnum.
750 (build_regcache): Make space for pseudo-registers when computing
751 sizeof_registers. Initialize register_offset.
752
753 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Change to a function with
754 predicate.
755 (STORE_PSEUDO_REGISTER): Ditto.
756 * gdbarch.h, gdbarch.c: Re-generate.
757
08ea3996
JB
7582001-12-06 Jim Blandy <jimb@redhat.com>
759
760 * config/s390/nm-linux.h: Watchpoints are either continuable or
761 steppable, not both. The S/390 has continuable watchpoints, so
762 delete the #definition of HAVE_STEPPABLE_WATCHPOINT.
763
284a190e
PM
7642001-12-04 Pierre Muller <muller@ics.u-strasbg.fr>
765
766 * go32-nat.c (go32_fetch_registers): Remove call to register_buffer
767 (which is now a static function in regcache.c)
768 and use regcache_collect instead.
769
09227b3e
AC
7702001-12-05 Andrew Cagney <cagney@redhat.com>
771
772 * target.c (cleanup_target): Do not initialize to_query to
773 return_zero.
774
12bffad7
JB
7752001-12-05 Jim Blandy <jimb@redhat.com>
776
777 * s390-tdep.c (s390_get_frame_info): Recognize argument register
778 spills that use the `stm' instruction.
779 (is_arg_reg): New function.
780
ae45a35b 7812001-12-03 Keith Walker <keith.walker@arm.com>
584e692d
AC
782
783 * gdbserver/low-linux.c (arm_register_u_addr): Added.
784 (initialize_arch): Added for ARM target.
785 * config/arm/nm-linux.h (U_REGS_OFFSET): Defined.
786 (REGISTER_U_ADDR): Defined.
787 * config/arm/tm-linux.h (ARM_GNULINUX_TARGET): Defined.
ae45a35b 788
50f6fb4b
CV
7892001-12-04 Corinna Vinschen <vinschen@redhat.com>
790
791 * arm-tdep.c (arm_skip_prologue): Always skip prologue by scanning
792 the prologue if source is assembler.
793
02da6206
JSC
7942001-12-04 Jackie Smith Cashion <jsmith@redhat.com>
795
796 * MAINTAINERS (write-after-approval): Add self.
797
798 * d10v-tdep.c (d10v_gdbarch_init): Change size of long long to 8 bytes.
799
800 From Andrew Cagney <cagney@redhat.com>:
801 * d10v-tdep.c (d10v_frame_chain_valid): Check if the caller's PC
802 is in the entry function.
803 (d10v_use_struct_convention): Store multi-field struct and union
804 return values on the stack.
805
6df29de2
JB
8062001-12-04 Jim Blandy <jimb@redhat.com>
807
7666f43c
JB
808 * s390-tdep.c (s390_get_frame_info): Recognize spills of reg
809 arguments into their stack slots.
810
7286245e
JB
811 * s390-tdep.c (s390_get_frame_info): More doc fixes.
812
6df29de2
JB
813 * s390-tdep.c (s390_get_frame_info): Doc fixes.
814
2a9ecef2
OF
8152001-12-04 Orjan Friberg <orjanf@axis.com>
816
817 * cris-tdep.c (cris_regnums): Add DCCR_REGNUM for completeness.
818 (cris_examine): Add comment about solib prologue parsing.
819 (bdap_prefix): Read offset with correct signedness and size.
820 (move_to_preg_op): Don't rely on register numbering for register size.
821 (none_reg_mode_move_from_preg_op): Ditto.
822
ba5f0d88
OF
8232001-12-04 Orjan Friberg <orjanf@axis.com>
824
825 * solib.c (solib_open): Make path relative if search for absolute path
826 failed. If search for relative path in solib_search_path failed, fall
827 back to search for basename only.
828
7c7a201a
MH
8292001-12-03 Martin M. Hunt <hunt@redhat.com>
830
831 * serial.h: Add a note to serial_open.
832
833 * ser-tcp.c (tcp_open): Rewrite to use a non-blocking connect.
834 Allow UI and CLI to abort connect. Instead of trying 15 times
835 with very long timeouts, just try one connect with a maximum timeout
836 of 15 seconds.
837
e01e171d
KB
8382001-12-03 Kevin Buettner <kevinb@redhat.com>
839
840 * config/powerpc/tm-macos.h (solib.h): Include.
841 * config/powerpc/tm-ppc-eabi.h (solib.h): Include.
842
045f55a6
MS
8432001-12-03 Michael Snyder <msnyder@redhat.com>
844
845 * symtab.c (search_symbols): Make sure alloca size is big enough.
846
fdce7414
AC
8472001-12-03 Andrew Cagney <ac131313@redhat.com>
848
849 * MAINTAINERS: Prune m68k targets down to just m68k-elf.
850
386e4208
JB
8512001-12-03 Jim Blandy <jimb@redhat.com>
852
853 * s390-tdep.c (s390_get_frame_info): Don't used fextra_info to set
854 orig_sp if it's not initialized.
855
14e534aa
PM
8562001-11-30 Pierre Muller <muller@ics.u-strasbg.fr>
857
858 * findvar.c (locate_var_value): Specify in which register a register
859 variable is stored.
860
441532d7
PM
8612001-11-30 Pierre Muller <muller@ics.u-strasbg.fr>
862
863 * win32-nat.c (mappings): Correct position of XMM registers,
864 based on FXSAVE instruction structure.
865
4c178295
AC
8662001-12-02 Andrew Cagney <ac131313@redhat.com>
867
753edfef
AC
868 * jv-lang.c (get_java_class_symtab): Use xmmalloc instead of
869 mmalloc.
870
aac7f4ea
AC
871 * coffread.c, dbxread.c, elfread.c, hp-psymtab-read.c, hpread.c,
872 nlmread.c, objfiles.c, os9kread.c, somread.c, source.c, symfile.c,
873 symmisc.c, xcoffread.c: Use xmfree instead of mfree.
874
4c178295
AC
875 * jv-lang.c (add_class_symtab_symbol): Use xmrealloc instead of
876 mrealloc.
877
22797942
AC
8782001-12-02 Andrew Cagney <ac131313@redhat.com>
879
880 * i386-tdep.c (i386go32_frame_saved_pc): New function.
881 * config/i386/tm-go32.h (i386go32_frame_saved_pc): Declare.
882 (FRAME_SAVED_PC): Redefine to i386go32_frame_saved_pc.
883
2607059c
AC
8842001-12-01 Andrew Cagney <ac131313@redhat.com>
885
886 * defs.h: Update comment on HOST_BYTE_ORDER.
887 * config/xm-aix4.h: Delete definition of HOST_BYTE_ORDER.
888 * config/xm-nbsd.h, config/alpha/xm-alphalinux.h: Ditto.
889 * config/alpha/xm-alphaosf.h, config/alpha/xm-fbsd.h: Ditto.
890 * config/arm/xm-linux.h, config/i386/xm-cygwin.h: Ditto.
891 * config/i386/xm-i386bsd.h, config/i386/xm-i386gnu.h: Ditto.
892 * config/i386/xm-i386lynx.h, config/i386/xm-i386m3.h: Ditto.
893 * config/i386/xm-i386mach.h, config/i386/xm-i386v.h: Ditto.
894 * config/i386/xm-ptx.h, config/i386/xm-symmetry.h: Ditto.
895 * config/ia64/xm-aix.h, config/ia64/xm-linux.h: Ditto.
896 * config/m68k/xm-3b1.h, config/m68k/xm-apollo68b.h: Ditto.
897 * config/m68k/xm-apollo68v.h, config/m68k/xm-delta68.h: Ditto.
898 * config/m68k/xm-dpx2.h, config/m68k/xm-hp300bsd.h: Ditto.
899 * config/m68k/xm-hp300hpux.h, config/m68k/xm-m68k.h: Ditto.
900 * config/m68k/xm-m68klynx.h, config/m68k/xm-sun2.h: Ditto.
901 * config/m68k/xm-sun3.h, config/m88k/xm-dgux.h: Ditto.
902 * config/m88k/xm-m88k.h, config/mips/xm-irix3.h: Ditto.
903 * config/mips/xm-irix5.h, config/mips/xm-linux.h: Ditto.
904 * config/mips/xm-mips.h, config/mips/xm-mipsm3.h: Ditto.
905 * config/mips/xm-mipsv4.h, config/mips/xm-news-mips.h: Ditto.
906 * config/mips/xm-riscos.h, config/pa/xm-hppab.h: Ditto.
907 * config/pa/xm-hppah.h, config/powerpc/xm-linux.h: Ditto.
908 * config/romp/xm-rtbsd.h, config/rs6000/xm-rs6000.h: Ditto.
909 * config/rs6000/xm-rs6000ly.h, config/s390/xm-linux.h: Ditto.
910 * config/sparc/xm-sparc.h, config/sparc/xm-sparclynx.h: Ditto.
911 * config/vax/xm-vax.h: Ditto.
912
913 * config/a29k/tm-vx29k.h: Add #error as file depends on
914 HOST_BYTE_ORDER.
915 * config/a29k/tm-a29k.h: Ditto.
916 * MAINTAINERS (a29k-amd-udi): Document as broken.
917
7bc65f05
AC
9182001-12-01 Andrew Cagney <ac131313@redhat.com>
919
3680c638
AC
920 * Makefile.in (tm-news.h, tm-isi.h, xm-news1000.h): Delete.
921 (ALLDEPFILES): Delete news-xdep.c.
922 (news-xdep.o): Delete.
923 (isi-xdep.o): Delete.
924 * configure.tgt: Delete m68*-isi-*, m68*-sony-*, m68*-rom68k-*,
925 m68*-*bug-*, m68*-monitor-* and m68*-est-* targets.
926 * configure.host: Delete m68030-sony-*, m68*-isi-* and m68*-sony-*
927 Hosts.
928 * m68k-tdep.c (isi_skip_prologue): Delete function.
929 * news-xdep.c: Delete file.
930 * isi-xdep.c: Delete file.
931 * config/m68k/isi.mh: Delete file.
932 * config/m68k/isi.mt: Delete file.
933 * config/m68k/news.mh: Delete file.
934 * config/m68k/news.mt: Delete file.
935 * config/m68k/news1000.mh: Delete file.
936 * config/m68k/nm-news.h: Delete file.
937 * config/m68k/tm-isi.h: Delete file.
938 * config/m68k/tm-news.h: Delete file.
939 * config/m68k/xm-isi.h: Delete file.
940 * config/m68k/xm-news.h: Delete file.
941 * config/m68k/xm-news1000.h: Delete file.
942
ccb25a8a
AC
943 * kdb-start.c: Delete file.
944 * stuff.c: Delete file.
945
9b567150
AC
946 * NEWS: Note that a29k-nyu-sym1 and a29k-*-kern* were deleted.
947 * configure.host: Delete a29k-*-* host.
948 * configure.tgt: Delete a29k-*-kern* and a29k-*-sym1* targets.
949 * config/a29k/a29k-kern.mt: Delete file.
950 * config/a29k/nm-ultra3.h: Delete file.
951 * config/a29k/tm-ultra3.h: Delete file.
952 * config/a29k/ultra3.mh: Delete file.
953 * config/a29k/ultra3.mt: Delete file.
954 * config/a29k/xm-ultra3.h: Delete file.
955
7e24f0b1
AC
956 * NEWS: Note that i[3456]86-*-sunos* was deleted.
957 * Makefile.in (sun386-nat.o): Delete.
958 * configure.tgt: Delete i[3456]86-*-sunos* target.
959 * configure.host: Delete i[3456]86-*-sunos* host.
960 * sun386-nat.c: Delete.file.
961 * config/i386/nm-sun386.h: Delete file.
962 * config/i386/sun386.mh: Delete file.
963 * config/i386/sun386.mt: Delete file.
964 * config/i386/tm-sun386.h: Delete file.
965 * config/i386/xm-sun386.h: Delete file.
966
1406caf7
AC
967 * NEWS: Note that ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv*
968 and ns32k-utek-* were deleted.
969 * Makefile.in (ultra3-nat.o, ultra3-xdep.o): Delete.
970 (umax-xdep.o, ns32km3-nat.o): Delete.
971 * configure.tgt: Delete ns32k-*-mach3*, ns32k-utek-sysv* and
972 ns32k-utek-* targets.
973 * configure.host: Delete ns32k-*-mach3*, ns32k-umax-* and
974 ns32k-utek-sysv* hosts.
975 * ultra3-nat.c: Delete file.
976 * ultra3-xdep.c: Delete file.
977 * umax-xdep.o: Delete file.
978 * ns32km3-nat: Delete file.
979 * config/ns32k/merlin.mh: Delete file.
980 * config/ns32k/merlin.mt: Delete file.
981 * config/ns32k/nm-umax.h: Delete file.
982 * config/ns32k/ns32km3.mh: Delete file.
983 * config/ns32k/ns32km3.mt: Delete file.
984 * config/ns32k/tm-merlin.h: Delete file.
985 * config/ns32k/tm-ns32km3.h: Delete file.
986 * config/ns32k/umax.mh: Delete file.
987 * config/ns32k/umax.mt: Delete file.
988 * config/ns32k/xm-merlin.h: Delete file.
989 * config/ns32k/xm-ns32km3.h: Delete file.
990 * config/ns32k/xm-umax.h: Delete file.
991
5e734e1f
AC
992 * NEWS: Note that m88*-harris-cxux* was deleted.
993 * configure.host: Delete m88*-harris-cxux* host.
994 * configure.tgt: Delete m88*-harris-cxux* target.
995 * config/m88k/cxux.mh: Delete file.
996 * config/m88k/cxux.mt: Delete file.
997 * config/m88k/nm-cxux.h: Delete file.
998 * config/m88k/tm-cxux.h: Delete file.
999 * config/m88k/xm-cxux.h: Delete file.
1000
7768dd6c
AC
1001 * NEWS: Note that powerpc-*-netware*, powerpcle-*-cygwin* and
1002 powerpcle-*-solaris* were deleted.
1003 * configure.host: Delete powerpcle-*-cygwin* and
1004 powerpcle-*-solaris* hosts.
1005 * configure.tgt: Delete powerpc-*-netware*, powerpcle-*-cygwin*
1006 and powerpcle-*-solaris* targets.
1007 * config/powerpc/cygwin.mh: Delete file.
1008 * config/powerpc/cygwin.mt: Delete file.
1009 * config/powerpc/nm-solaris.h: Delete.file.
1010 * config/powerpc/ppc-nw.mt: Delete file.
1011 * config/powerpc/solaris.mh: Delete file.
1012 * config/powerpc/solaris.mt: Delete file.
1013 * config/powerpc/tm-cygwin.h: Delete file.
1014 * config/powerpc/tm-ppc-nw.h: Delete file.
1015 * config/powerpc/tm-solaris.h: Delete file.
1016 * config/powerpc/xm-cygwin.h: Delete file.
1017 * config/powerpc/xm-mpw.h: Delete file.
1018 * config/powerpc/xm-solaris.h: Delete file.
1019
7bc65f05
AC
1020 * NEWS, MAINTAINERS: Note that w65-*-* was deleted.
1021 * configure.tgt: Delete w65-*-*.
1022 * Makefile.in (w65-tdep.o): Delete.
1023 * config/w65/tm-w65.h: Delete file.
1024 * config/w65/w65.mt: Delete file.
1025 * w65-tdep.c: Delete file.
1026
e2caac18
AC
1027 * NEWS: Mention deleted tic80-*-*.
1028 * configure.tgt: Delete tic80-*-*.
1029 * Makefile.in (tic80-tdep.o): Delete.
1030 * config/tic80/tic80.mt: Delete.
1031 * config/tic80/tm-tic80.h: Delete.
1032 * tic80-tdep.c: Delete.
1033 * MAINTAINERS: Note that tic80 was deleted.
1034
6ded7999
KB
10352001-11-30 Kevin Buettner <kevinb@redhat.com>
1036
1037 * ppc-linux-tdep.c (solib-svr4.h): Include.
1038 (ppc_linux_svr4_fetch_link_map_offsets): New function.
1039 * ppc-tdep.h (ppc_linux_svr4_fetch_link_map_offsets): Declare.
1040 * rs6000-tdep.c (solib-svr4.h): Include.
1041 (rs6000_gdbarch_init): Set up ppc_linux_svr4_fetch_link_map_offsets()
1042 as the link map offsets fetcher.
1043
1044 * config/powerpc/aix.mt (TDEPFILES): Add solib-svr4.o.
1045 * config/powerpc/macos.mt (TDEPFILES): Likewise.
1046 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
1047 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
1048 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
1049 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
1050 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
1051 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
1052 * config/rs6000/aix4.mt (TDEPFILES): Likewise.
1053 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
1054 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
1055
a42dd537
KB
10562001-11-30 Kevin Buettner <kevinb@redhat.com>
1057
1058 From Louis Hamilton <hamilton@redhat.com>:
1059 * arm-tdep.c (solib-svr4.h): Include.
1060 (arm_linux_svr4_fetch_link_map_offsets): New function.
1061 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Define.
1062 (arm_linux_svr4_fetch_link_map_offsets): Declare.
1063
21cfb3b6
DJ
10642001-11-30 Daniel Jacobowitz <drow@mvista.com>
1065
1066 * values.c (value_primitive_field): Add embedded_offset to the
1067 address of structure members.
1068 * gnu-v3-abi.c (gnuv3_rtti_type): Cast to base type before
1069 attempting to access vtable pointer. Set using_enc_p if we cast.
1070 (gnuv3_virtual_fn_field): Call value_cast with structure rather than
1071 structure pointer. Cast to base type before attempting to access
1072 vtable pointer.
1073
16333c4f
EZ
10742001-11-29 Elena Zannoni <ezannoni@redhat.com>
1075
1076 * Makefile.in (ppc-linux-nat.o): Add dependency on ppc-tdep.h.
1077
1078 * ppc-tdep.h (PPC_GPLAST_REGNUM): Define.
1079
1080 * ppc-linux-nat.c: Include ppc-tdep.h.
1081 (ppc_register_u_addr): Don't use the static array regmap[],
1082 dynamically define the mapping instead.
1083 (supply_gregset): Ditto.
1084 (fill_gregset): Ditto.
1085 (COPY_REG): Delete macro defintion.
1086 (regmap): Delete array.
1087
aead120c
JB
10882001-11-29 Jim Blandy <jimb@redhat.com>
1089
c8f9d51c
JB
1090 Tighten up GDB's support for returning structs by value.
1091 * s390-tdep.c (s390_use_struct_convention): New function.
1092 (s390_gdbarch_init): Register it as the S/390's
1093 USE_STRUCT_CONVENTION method. Register
1094 generic_cannot_extract_struct_value_address as our
1095 EXTRACT_STRUCT_VALUE_ADDRESS method.
1096 * arch-utils.c (generic_cannot_extract_struct_value_address): New
1097 function.
1098 * arch-utils.h: Add corresponding prototype.
1099
aead120c
JB
1100 * values.c (value_being_returned): Make error message a proper
1101 sentence.
1102
a8329558 11032001-11-27 Keith Walker <keith.walker@arm.com>
aead120c 1104
a8329558
KW
1105 * dwarf2read.c (read_attribute_value): New function to handle
1106 DW_FORM_indirect
1107 (read_attribute): uses read_attribute_value
1108
d0ad30c9
JB
11092001-11-29 Jim Blandy <jimb@redhat.com>
1110
1111 * s390-tdep.c (s390_frame_saved_pc_nofix): If the prologue didn't
1112 save the return address register, assume that the return address
1113 is still in there.
1114
54c92070
AC
11152001-11-27 Andrew Cagney <ac131313@redhat.com>
1116
1117 * MAINTAINERS: Clarify obvious fix a little (as suggested by Eli
1118 Zaretskii).
1119
62f81eda
JB
11202001-11-25 Jim Blandy <jimb@redhat.com>
1121
1122 * mn10300-tdep.c (mn10300_analyze_prologue): Doc fixes.
1123
4ed90530
JB
11242001-11-27 Jim Blandy <jimb@redhat.com>
1125
5c3cf190
JB
1126 * s390-tdep.c: Get frame chains and saved pc values properly from
1127 dummy frames.
1128 (s390_frame_saved_pc_nofix): if `*fi' is a dummy frame, get the
1129 saved PC from the dummy frame's registers.
1130 (s390_frame_chain): Same for the saved SP.
1131 (s390_gdbarch_init): Register `generic_save_dummy_frame_tos' as
1132 the `SAVE_DUMMY_FRAME_TOS' method, so the dummy frame's `top' gets
1133 set correctly.
1134
31c4d430
JB
1135 * s390-tdep.c (s390_frame_chain): Remember that the SP's element
1136 of the frame's saved_regs array is special.
1137
4ed90530
JB
1138 * s390-tdep.c (register_names): Call the general-purpose registers
1139 `r0' -- `r15', and the floating-point registers `f0' -- `f15', to
1140 match the assembly language.
1141
97da3b20
CF
11422001-11-26 Pierre Muller <muller@ics.u-strasbg.fr>
1143
1144 * config/i386/tm-cygwin.h: Define HAVE_SSE_REGS if
1145 HAVE_CONTEXT_EXTENDED_REGISTERS is defined.
1146 * win32-nat.c: Define CONTEXT_DEBUGGER_DR that will also include
1147 extended registers if HAVE_SSE_REGS is defined.
1148 (mappings array): Add offset of extended registers.
1149 (thread_rec): Use new CONTEXT_DEBUGGER_DR macro.
1150
467d8519
TT
11512001-11-26 Tom Tromey <tromey@redhat.com>
1152
1153 * NEWS: Updated.
1154 * event-loop.c (start_event_loop): Call
1155 after_char_processing_hook.
1156 * event-top.h (after_char_processing_hook): Declare.
1157 * event-top.c (rl_callback_read_char_wrapper): Call
1158 after_char_processing_hook.
1159 (after_char_processing_hook): New global.
1160 * top.c (operate_saved_history): New global.
1161 (gdb_rl_operate_and_get_next): New function.
1162 (init_main): Add the operate-and-get-next defun.
1163 (gdb_rl_operate_and_get_next_completion): New function.
1164
c2a727fa
TT
11652001-11-26 Tom Tromey <tromey@redhat.com>
1166
1167 * NEWS: Update for --args.
1168 * infcmd.c (construct_inferior_arguments): Moved from ...
1169 * fork-child.c: ... here.
1170
b77b1eb7
JB
11712001-11-26 Jim Blandy <jimb@redhat.com>
1172
1173 * symtab.c (find_pc_sect_line): Revert change of 2001-11-13; add
1174 comment explaining that hand-written assembly code can have line
1175 number info but no debug info for an enclosing function.
1176
7d69eeec
JJ
11772001-11-26 Jakub Jelinek <jakub@redhat.com>
1178
1179 * sparc-nat.c (fetch_inferior_registers): Don't rely
1180 on CORE_ADDR being 32-bit.
1181 (store_inferior_registers): Likewise.
1182
1f5dc670
EZ
11832001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
1184
c64a2835
EZ
1185 * config/djgpp/config.sed: Fix an error in etc/ at "make install"
1186 time on non-LFN systems where standards*.inf* expands to nothing.
1187
1f5dc670
EZ
1188 * go32-nat.c (save_npx): Avoid a warning from GCC 3.x.
1189
d3ff4a77
CF
11902001-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1191 Christopher Faylor <cgf@redhat.com>
1192
1193 * win32-nat.c (struct so_stuff): Add objfile *objfile field needed to
1194 be able to remove the DLL when unloaded. Remove unused last field.
1195 (handle_unload_dll): New function to handle unloading of DLL.
1196 (solib_symbols_add): Change return type to struct objfile *.
1197 (get_child_debug_event): Call handle_unload_dll function.
1198
2a3d5645
CF
11992001-11-24 Christopher Faylor <cgf@redhat.com>
1200
1201 * win32-nat.c (_initialize_check_for_gdb_ini): New function.
1202 * config/i386/xm-cygwin.h: Remove obsolete handling of __CYGWIN32__.
1203 (GDBINIT_FILENAME): Remove.
1204
eb7cedd9
MK
12052001-11-23 Mark Kettenis <kettenis@gnu.org>
1206
1207 Add x86 OpenBSD native configuration.
1208 * config/i386/obsd.mt, config/i386/tm-obsd.h, config/i386/obsd.mh,
1209 config/i386/nm-obsd.h: New files.
1210 * configure.host (i[3456]86-*-openbsd*): New host.
1211 * configure.tgt (i[3456]86-*-openbsd*): New target.
1212 * NEWS: Update.
1213
172d914f
AC
12142001-11-21 GDB Administrator <gdbadmin@sourceware.cygnus.com>
1215
1216 * GDB 5.1 was released.
1217
552c04a7
TT
12182001-11-21 Tom Tromey <tromey@redhat.com>
1219
1220 Fix for PR gdb/209, PR gdb/156:
1221 * gdbarch.c, gdbarch.h: Rebuilt.
1222 * gdbarch.sh: Added `construct_inferior_arguments'.
1223 * cli/cli-decode.h (cmd_list_element): Added pre_show_hook.
1224 Typo fix.
1225 * cli/cli-setshow.c (do_setshow_command): Call the pre_show_hook.
1226 * infcmd.c (_initialize_infcmd): Set sfunc on `set args' command.
1227 (inferior_argc, inferior_argv): New globals.
1228 (notice_args_set): New function.
1229 (set_inferior_args): Clear inferior_argc and inferior_argv.
1230 (set_inferior_args_vector): New function.
1231 (get_inferior_args): Handle inferior argument vector.
1232 (run_command): Use get_inferior_args().
1233 (notice_args_read): New function.
1234 (_initialize_infcmd): Don't call set_inferior_args.
1235 * command.h: Typo fix.
1236 (cmd_list_element): Added pre_show_hook.
1237 * main.c (captured_main): Added --args option.
1238 (print_gdb_help): Document --args.
1239 * inferior.h (construct_inferior_arguments): Declare.
1240 (set_inferior_args_vector): Likewise.
1241 * fork-child.c (construct_inferior_arguments): New function.
1242
da9c7185
KB
12432001-11-21 Kevin Buettner <kevinb@redhat.com>
1244
1245 * lin-lwp.c (lin_lwp_attach_lwp): Make sure SIGCHLD is in set of
1246 blocked signals.
1247
1248 * lin-lwp.c (lin_lwp_attach_lwp): Mark main thread as stopped.
1249
98eedd63
JB
12502001-11-20 Jim Blandy <jimb@redhat.com>
1251
1252 * target.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT): Delete
1253 default definition; this is never used.
1254
5bbc1a8e
KS
12552001-11-20 Keith Seitz <keiths@redhat.com>
1256
1257 * varobj.c (c_value_of_child): Release memory for "name" when
1258 finshed using it.
1259 (c_type_of_child): Likewise.
1260 (cplus_value_of_child): Isolate the use of name_of_child to
1261 one case that needs it.
1262 Release memory for "name" when finished using it.
1263
1ad24239
KS
12642001-11-20 Keith Seitz <keiths@redhat.com>
1265
1266 * top.c (gdb_init): Call init_ui_hook before initializing
1267 the default UI.
1268
4cb0dbef
EZ
12692001-11-19 Elena Zannoni <ezannoni@redhat.com>
1270
1271 * config/powerpc/nm-linux.h (ppc_register_u_addr): Add extern
1272 declaration.
1273
f00d3753
EZ
12742001-11-19 Elena Zannoni <ezannoni@redhat.com>
1275
1276 * ppc-linux-nat.c (COPY_REG): Use regcache_collect instead of
1277 accessing registers[].
1278 (fill_fpregset): Ditto.
1279
8b6f1f3a
EZ
12802001-11-19 Elena Zannoni <ezannoni@redhat.com>
1281
1282 * infptrace.c (fetch_register): Dynamically allocate buffer for
1283 register.
1284 (store_register): Use regcache_collect, instead of accessing the
1285 register buffer directly.
1286
479412cd
DJ
12872001-11-19 Daniel Jacobowitz <drow@mvista.com>
1288
1289 * mips-tdep.c (find_proc_desc): Add cur_frame argument. Pass
1290 cur_frame to heuristic_proc_desc.
1291 (heuristic_proc_desc): Add cur_frame argument. Do not read SP
1292 if cur_frame == 0.
1293 (after_prologue): Pass cur_frame == 0 to find_proc_desc.
1294 (mips_frame_chain): Pass cur_frame == 1 to find_proc_desc.
1295 (mips_init_extra_frame_info): Likewise.
1296
ab290c52
AC
12972001-11-19 Andrew Cagney <ac131313@redhat.com>
1298
1299 * defs.h (return_to_top_level): Comment.
1300
22e04375
AC
1301Mon Nov 19 14:58:52 2001 Andrew Cagney <cagney@redhat.com>
1302
1303 * remote.c (remote_open_1, remote_async_open_1): Use ISO C string
1304 concatenation for error parameter.
1305 (remote_cisco_open): Ditto.
1306
30c6b1fb
KS
13072001-11-19 Keith Seitz <keiths@redhat.com>
1308
1309 * varobj.c (c_value_of_child): Use the wrapper function,
1310 gdb_value_struct_elt.
1311 (cplus_value_of_child): Likewise.
1312
bd1ef5d2
AC
13132001-11-18 Andrew Cagney <ac131313@redhat.com>
1314
1315 * i386-tdep.c (i386_gdbarch_init): Initialize num_regs.
1316 * config/i386/tm-i386.h (NUM_REGS): Delete.
1317
76fb44f4
KB
13182001-11-18 Kevin Buettner <kevinb@redhat.com>
1319
1320 * i386-linux-nat.c (fill_gregset): Fix botched regcache_collect()
1321 conversion for I386_LINUX_ORIG_EAX_REGNUM.
1322
ed909a0d
AC
13232001-11-18 Andrew Cagney <ac131313@redhat.com>
1324
1325 * config/i386/embed.mt (TM_FILE): Set to tm-i386.h.
1326 * config/i386/tm-embed.h: Delete.
1327
4edb848c
AC
13282001-11-17 Andrew Cagney <ac131313@redhat.com>
1329
1330 * Makefile.in (distclean): Explicitly delete Makefile et.al. in
1331 gdbserver sub directory.
1332
f87ece4d
AC
13332001-11-17 Andrew Cagney <ac131313@redhat.com>
1334
1335 * README: Mention need for alloca(). Mention problems with
1336 alpha-dec-osf4.0e. Clarify that comments refer to GDB 5.1.
1337
8a406745
KB
13382001-11-17 Kevin Buettner <kevinb@redhat.com>
1339
1340 * i386-linux-nat.c (fill_gregset): Use regcache_collect() instead
1341 of accessing registers[] directly.
1342
7dd945fa
KB
13432001-11-17 Kevin Buettner <kevinb@redhat.com>
1344
1345 * i386-linux-nat.c (fill_gregset): Don't invoke read_register_gen()
1346 when fetching ORIG_EAX.
1347
c2152441
DJ
13482001-11-17 Daniel Jacobowitz <drow@mvista.com>
1349
1350 * arm-linux-nat.c: Don't include <asm/ptrace.h>.
1351 (fetch_register): Use elf_gregset_t instead of struct pt_regs.
1352 (fetch_regs): Likewise.
1353 (store_register): Likewise.
1354 (store_regs): Likewise.
1355
b0677c2e
DJ
13562001-11-17 Daniel Jacobowitz <drow@mvista.com>
1357
1358 * sparc-linux-nat.c (fill_gregset): Replace read_register_gen
1359 with regcache_collect.
1360 (fill_fpregset): Likewise.
1361
d2b57b94
DJ
13622001-11-17 Daniel Jacobowitz <drow@mvista.com>
1363
1364 * Makefile.in: Add mips-linux-nat.c, mips-linux-tdep.c,
1365 and sparc-linux-nat.c to ALLDEPFILES. Add dependencies.
1366 * config/sparc/linux.mh: Add sparc-linux-nat.o to NATDEPFILES.
1367 * sparc-linux-nat.c: New file, from Mark Kettenis.
1368
4bdf3d34
JJ
13692001-11-16 Jakub Jelinek <jakub@redhat.com>
1370
1371 * dwarf2read.c (dwarf_str_buffer): New.
1372 (struct dwarf2_pinfo): Add dwarf_str_buffer and dwarf_str_size.
1373 (DWARF_STR_BUFFER, DWARF_STR_SIZE): Define.
1374 (dwarf2_has_info): Clear dwarf_str_offset.
1375 (dwarf2_build_psymtabs): Read .debug_str section if present.
1376 (dwarf2_build_psymtabs_hard): Save DWARF_STR_BUFFER and
1377 DWARF_STR_SIZE.
1378 (psymtab_to_symtab_1): Restore DWARF_STR_BUFFER and DWARF_STR_SIZE.
1379 (read_attribute): Handle DW_FORM_strp.
1380 (read_n_bytes, read_string): Remove HOST_CHAR_BIT != 8
1381 handling code.
1382 (read_indirect_string): New.
1383 (dump_die): Handle DW_FORM_strp.
1384
20a940cc
JB
13852001-11-16 Jim Blandy <jimb@redhat.com>
1386
1387 * s390-tdep.c: Tweak argument-passing to match GCC bugs.
1388 (is_float_singleton, is_struct_like, is_float_like): New
1389 functions, that isolate the weirdness.
1390 (is_double_or_float, is_simple_arg, pass_by_copy_ref,
1391 is_double_arg): Use is_struct_like and is_float_like, rather than
1392 testing the type codes ourselves.
1393 (s390_push_arguments): When passing args on the stack, align each
1394 on to a four-byte boundary, regardless of what the type itself
1395 needs.
1396
e5d63811
BH
13972001-11-16 Ben Harris <bjh21@netbsd.org>
1398
1399 * Makefile.in (os9kread.o): Replace $< with autoconf-approved
1400 $(srcdir)/....
1401 (procfs.o): Ditto.
1402 (z8k-tdep.o): Ditto.
1403
1005d5ef
BH
14042001-11-16 Ben Harris <bjh21@netbsd.org>
1405
1406 * MAINTAINERS (write-after-approval): Add self.
1407
a1677dfb
JB
14082001-11-15 Jim Blandy <jimb@redhat.com>
1409
1410 * s390-tdep.c (is_simple_arg): Structs and unions exactly eight
1411 bytes long should be handled as DOUBLE_ARGs; don't recognize them
1412 as SIMPLE_ARGs.
1413
ad10f812
AC
14142001-11-12 Andrew Cagney <ac131313@redhat.com>
1415
1416 * remote.c (struct packet_reg): Declare.
1417 (struct remote_state): Add fields sizeof_g_packet and g_packet.
1418 (init_remote_state): Initialize sizeof_g_packet and g_packet.
1419 (free_remote_state): Free g_packet.
1420 (packet_reg_from_pnum, packet_reg_by_regnum): New functions.
1421 (remote_wait): Use above instead of gdbarch methods
1422 REGISTER_RAW_SIZE and REGISTER_BYTES.
1423 (remote_async_wait): Ditto.
1424 (remote_fetch_registers, remote_store_registers): Ditto.
1425 (store_register_using_P): Ditto.
1426
9525aa90
AC
14272001-11-15 Andrew Cagney <ac131313@redhat.com>
1428
1429 * remote.c (_initialize_remote): Don't multi-arch swap tty_input.
1430 Second attempt.
1431
faf833ca
AC
14322001-11-15 Andrew Cagney <ac131313@redhat.com>
1433
1434 * utils.c (phex_nz): For default case, set str to phex_nz return
1435 value.
45a1e866 1436 (phex): Ditto.
faf833ca 1437
193cb69f
AC
14382001-11-15 Andrew Cagney <ac131313@redhat.com>
1439
1440 * TODO (register_buffer): Delete.
1441 * regcache.c (register_buffer): Make static.
1442 (regcache_collect): New function.
1443 * regcache.h (register_buffer): Delete declaration.
1444 (regcache_collect): Declare.
1445 * remote.c (store_register_using_P): Rewrite using
1446 regcache_collect.
1447 (remote_store_registers): Ditto.
1448 * go32-nat.c (store_register): Ditto.
1449
d01949b6
AC
14502001-11-14 Andrew Cagney <ac131313@redhat.com>
1451
1452 * remote.c (struct remote_state): Declare.
1453 (get_remote_state): New function.
1454 (init_remote_state): New function.
1455 (remote_gdbarch_data_handle): New global.
1456 (build_remote_packet_sizes): Delete function, moved to
1457 init_remote_state.
1458 (register_remote_packet_sizes): Delete function.
1459 (actual_register_packet_size, remote_packet_size): Moved to
1460 ``struct remote_state''.
1461 (PBUFSIZE): Delete. Replaced by rs->remote_packet_size.
1462 (free_remote_state): New function.
1463 (get_memory_packet_size, get_memory_read_packet_size)
1464 (set_thread, remote_unpack_thread_info_response)
1465 (remote_get_threadinfo, parse_threadlist_response)
1466 (remote_get_threadlist, remote_current_thread)
1467 (remote_threads_info, remote_threads_extra_info)
1468 (extended_remote_restart, get_offsets)
1469 (get_offsets, remote_check_symbols, remote_open_1)
1470 (remote_async_open_1, remote_detach, remote_async_detach)
1471 (remote_resume, remote_async_resume, remote_wait)
1472 (remote_async_wait, remote_fetch_registers)
1473 (store_register_using_P, remote_store_registers)
1474 (check_binary_download, putpkt_binary)
1475 (remote_insert_breakpoint, remote_remove_breakpoint)
1476 (remote_insert_watchpoint, remote_remove_watchpoint)
1477 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
1478 (compare_sections_command, remote_query)
1479 (remote_rcmd, remote_rcmd, packet_command)
1480 (remote_info_process): Update.
1481
1ff9c3d6
AC
14822001-11-14 Andrew Cagney <ac131313@redhat.com>
1483
1484 * remote.c: Include "gdb_assert.h".
1485 (tty_input): Wire buffer to 400 bytes.
1486 (readsocket): Check tty_input doesn't overflow.
1487 (build_remote_gdbarch_data, _initialize_remote): Don't multi-arch
1488 tty_input.
1489
86884b37
MS
14902001-11-14 Michael Snyder <msnyder@redhat.com>
1491
1492 * d10v-tdep.c (d10v_pointer_to_address): Use new type flag
1493 TYPE_FLAG_CODE_SPACE to recognize a pointer that has been cast
1494 into the instruction address space.
1495 * Makefile.in (doublest.o): Add dependency on gdbtypes.h.
1496
47663de5
MS
14972001-11-14 Michael Snyder <msnyder@redhat.com>
1498 Add address space identifiers to expression language for types.
1499 * c-exp.y (space_identifier, cv_with_space_id,
1500 const_or_volatile_or_space_identifier_noopt,
1501 const_or_volatile_or_space_identifier): New terminals.
1502 (ptype): Accept const_or_volatile_or_space_identifier.
1503 (typebase): Accept const_or_volatile_or_space_identifier.
1504 * c-typeprint.c (c_type_print_cv_qualifier): Rename to
1505 c_type_print_modifier. Handle address space modified types.
1506 * gdbtypes.h (TYPE_FLAG_CODE_SPACE, TYPE_FLAG_DATA_SPACE):
1507 New type flags.
1508 (struct type): Add new field as_type for addr-space qualified types.
1509 (TYPE_AS_TYPE): New macro, retrieves the chain of types that are
1510 identical to this one except for address-space qualification.
1511 * gdbtypes.c (alloc_type): Initialize new field 'as_type'.
1512 (address_space_name_to_int): New function.
1513 (address_space_int_to_name): New function.
1514 (make_type_with_address_space): New function.
1515 (make_cv_type): Handle as_type field of new struct type object.
1516 * parse.c (check_type_stack_depth): New function.
1517 (push_type_address_space): New function.
1518 (follow_types): Handle types with address-space qualifier.
1519 * parser-defs.h (enum type_pieces): Add enum tp_space_identifier.
1520
0d43edd1
JB
15212001-11-14 Jim Blandy <jimb@redhat.com>
1522
9a1befc9
JB
1523 * s390-tdep.c (s390_pop_frame_regular): On the S/390, the frame
1524 pointer and the SP are often the same, so we can't pop the frame
1525 by setting the SP to the FP; we need to get the old SP from
1526 saved_regs.
1527
f2c6cfba
JB
1528 * s390-tdep.c (s390_extract_return_value): Returned `float' values
1529 can simply be copied bitwise from the registers into the value
1530 object's buffer.
1531
09025237
JB
1532 * s390-tdep.c (s390_get_frame_info): Initialize SP's element of
1533 the frame's saved_regs array correctly.
1534
0d43edd1
JB
1535 * symfile.c (simple_read_overlay_table): Make sure we can find
1536 both `_novlys' and `_ovly_table' before we try anything else;
1537 print a helpful error message.
1538 (simple_overlay_update): No need to print error message here.
1539
befc81ac
MS
15402001-11-14 Michael Snyder <msnyder@redhat.com>
1541
1542 * Makefile.in (doublest.o): Add dependency on gdbtypes.h.
1543
032758dc
AC
15442001-11-10 Andrew Cagney <ac131313@redhat.com>
1545
1546 * arm-tdep.c (arm_register_type): New function.
1547 (arm_register_convertible): Delete.
1548 (arm_register_convert_to_virtual): Delete.
1549 (arm_register_convert_to_raw): Delete.
1550 * config/arm/tm-arm.h (REGISTER_CONVERTIBLE): Delete.
1551 (REGISTER_CONVERT_TO_VIRTUAL): Delete.
1552 (REGISTER_CONVERT_TO_RAW): Delete.
1553 (REGISTER_VIRTUAL_TYPE): Redefine as call to arm_register_type.
1554 (arm_register_type): Declare.
1555
8b982acf
EZ
15562001-11-13 Elena Zannoni <ezannoni@redhat.com>
1557
1558 From Andrew Cagney <cagney@redhat.com>:
1559 * gdbtypes.h (builtin_type_int128, builtin_type_uint128): Declare.
1560 * gdbtypes.c (_initialize_gdbtypes, build_gdbtypes): Initialize
1561 new builtin types.
1562
648f4f79
JB
15632001-11-13 Jim Blandy <jimb@redhat.com>
1564
78f8b424
JB
1565 * s390-tdep.c: Rewrite inferior function call code. This may
1566 break zSeries support; that should be fixed soon.
1567 #include "gdb_assert.h".
1568 (is_integer_like, is_pointer_like, is_simple_arg,
1569 pass_by_copy_ref, extend_simple_arg, is_double_arg, round_up,
1570 round_down, alignment_of): New functions.
1571 (s390_push_arguments): Rewritten to handle passing large arguments
1572 by value, and to make more readable.
1573
4c8287ac
JB
1574 * s390-tdep.c (s390_pop_frame): Call generic_pop_current_frame, to
1575 interact correctly with generic dummy frames.
1576 (s390_pop_frame_regular): Move the guts of the frame-popping code
1577 to here, to be called by generic_pop_current_frame. Use the
1578 frame's saved_regs array; this works for `return' as well as
1579 inferior function calls.
1580
0adb2aba
JB
1581 * s390-tdep.c (s390_gdbarch_init): Register the function
1582 `standard_coerce_float_to_double', since GCC for the S/390 follows
1583 the standard rules for passing floats.
1584
641225a4
JB
1585 * valops.c (default_coerce_float_to_double,
1586 standard_coerce_float_to_double): Doc fixes.
1587
648f4f79
JB
1588 Patch from Peter Schauer:
1589
1590 * symtab.c (find_pc_sect_line): If we can't find the function
1591 containing PC, we certainly won't have line number information for
1592 that location, so return zero immediately.
1593
0cb2e7c5
AC
15942001-11-10 Andrew Cagney <ac131313@redhat.com>
1595
1596 * config/i960/tm-nindy960.h (REGISTER_CONVERTIBLE)
1597 (REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL): Delete
1598 undef.
1599 * i960-tdep.c (i960_register_type): New function.
1600 * config/i960/tm-i960.h (REGISTER_CONVERTIBLE): Delete.
1601 (REGISTER_CONVERT_TO_VIRTUAL): Delete.
1602 (REGISTER_CONVERT_TO_RAW): Delete.
1603 (REGISTER_VIRTUAL_TYPE): Update. Call i960_register_type.
1604
2c10d744
AC
16052001-11-10 Andrew Cagney <ac131313@redhat.com>
1606
1607 * m88k-tdep.c (m88k_register_type): New function.
1608 * config/m88k/tm-m88k.h (REGISTER_CONVERTIBLE): Delete.
1609 (REGISTER_CONVERT_TO_VIRTUAL): Delete.
1610 (REGISTER_CONVERT_TO_RAW): Delete.
1611 (m88k_register_type): Declare.
1612 (REGISTER_VIRTUAL_TYPE): Update. Call m88k_register_type.
1613
226271d3
MK
16142001-11-11 Mark Kettenis <kettenis@elgar.my.domain>
1615
1616 * i386-tdep.h (FPU_REG_RAW_SIZE): Define unconditionally.
1617 * i387-nat.c, i387-tdep.c: Unconditionally include "i386-tdep.h".
1618 * config/i386/tm-i386.h (FPU_REG_RAW_SIZE): Removed.
1619 (SIZEOF_FPU_REGS): Don't use FPU_REG_RAW_SIZE here.
1620
c2636352
JB
16212001-11-12 Jim Blandy <jimb@redhat.com>
1622
1623 Patch from Andreas Schwab <schwab@suse.de>:
1624 * eval.c (evaluate_subexp_standard): Fix memory leak: use alloca
1625 instead of xmalloc.
1626
c26e4683
JB
16272001-11-12 Jim Blandy <jimb@redhat.com>
1628
1629 * corefile.c (write_memory_unsigned_integer,
1630 write_memory_signed_integer): New functions.
1631 (write_memory): Move to be with other write_memory_* functions.
1632 * gdbcore.h (write_memory_unsigned_integer,
1633 write_memory_signed_integer): New declarations.
1634
9aa1fe7e
GK
16352001-11-11 Geoffrey Keating <geoffk@redhat.com>
1636
1637 * dwarf2read.c (dwarf_decode_lines): Properly deal with
1638 unknown standard opcodes.
1639
5b582da3
AC
16402001-11-11 Andrew Cagney <ac131313@redhat.com>
1641
1642 * README (alpha-dec-osf5.1): Mention -DUSE_LDR_ROUTINES.
1643 (sparcv9-sun-solars2.8): Mention problem with 64 bit GCC 3.0.x.
1644 (i586-sco-sysv5uw7.1.1): Mention problem with threads.
1645
b18c45ed
AC
16462001-11-11 Andrew Cagney <ac131313@redhat.com>
1647
1648 From Mark Kettenis <kettenis@gnu.org>:
1649 * breakpoint.c (breakpoint_re_set_one): Don't discard SHLIB
1650 breakpoints when they fail.
1651
3d6d86c6
AC
16522001-11-10 Andrew Cagney <ac131313@redhat.com>
1653
1654 * printcmd.c, valprint.c, language.c, linespec.c, infcmd.c,
1655 gnu-nat.c, findvar.c, expprint.c, typeprint.c, stack.c, top.c:
1656 Replace value_ptr with struct value.
1657
6943961c
AC
16582001-11-10 Andrew Cagney <ac131313@redhat.com>
1659
1660 * c-valprint.c, ch-lang.c, ch-valprint.c, cp-valprint.c,
1661 p-valprint.c, scm-exp.c, scm-lang.c, scm-valprint.c: Replace
1662 value_ptr with struct value.
1663
61051030
AC
16642001-11-10 Andrew Cagney <ac131313@redhat.com>
1665
1666 * eval.c: Replace most occurances of value_ptr with struct value.
1667
f312f057
JB
16682001-11-09 Jim Blandy <jimb@redhat.com>
1669
d4d0c21e
JB
1670 * s390-tdep.c: Don't use a call dummy.
1671 (s390_fix_call_dummy, s390_pc_in_call_dummy): Delete.
1672 (s390_push_return_address): Put the address of the inferior call
1673 breakpoint in r14.
1674 (s390_gdbarch_init):
1675 - Provide trivial definition of s390_call_dummy_words; register it
1676 with the gdbarch appropriately.
1677 - Delete S390x_call_dummy_words.
1678 - Gather inferior-call-related settings into a group.
1679 - Use generic dummy frames.
1680 - Put the inferior call breakpoint at the entry point.
1681 - Use generic gdbarch methods: pc_in_call_dummy_at_entry_point,
1682 generic_push_dummy_frame, generic_fix_call_dummy.
1683 - There is a call dummy breakpoint offset; it's zero.
1684
f7aaef7d 1685 * s390-tdep.c: (s390_push_arguments): Write a back chain pointer
01c464e9
JB
1686 into the dummy frame, to help us get backtraces.
1687
f312f057
JB
1688 * values.c (value_as_address): If VAL is a function or method,
1689 just return its address; don't let COERCE_ARRAY convert its
1690 address to a pointer, and then have unpack_long convert it back to
1691 an address.
1692
5598ce11
PM
16932001-11-06 Pierre Muller <muller@ics.u-strasbg.fr>
1694
1695 * p-lang.c (is_pascal_string_type): New function to determine if a
1696 type is a string type.
1697 * p-lang.h: Add prototype for is_pascal_string_type.
1698 * p-valprint.c (pascal_val_print) : Use is_pascal_string_type function
1699 to display strings nicely.
1700
94a716bf
PM
17012001-11-06 Pierre Muller <muller@ics.u-strasbg.fr>
1702
1703 * p-exp.y (yylex): Only change case of expression if symbol is found.
1704 Also check for GPC standard name form.
1705
f6a9480e
AC
17062001-11-08 Andrew Cagney <ac131313@redhat.com>
1707
1708 * gdb_indent.sh: New file.
1709
64f9bb98
JB
17102001-11-08 Jim Blandy <jimb@redhat.com>
1711
1712 * s390-tdep.c (s390_get_frame_info): Initialize got_load_addr and
1713 got_load_len, to placate compiler.
1714
cd3c07fc
MK
17152001-11-08 Mark Kettenis <kettenis@gnu.org>
1716
1717 * i386-tdep.c (i386_gdbarch_init): Fix typo.
1718
4c801202
JB
17192001-11-08 Jim Blandy <jimb@redhat.com>
1720
8001d1e4
JB
1721 * s390-tdep.c (s390_gdbarch_init): Use func_frame_chain_valid, not
1722 file_frame_chain_valid.
1723
8ac0e65a
JB
1724 * s390-tdep.c (s390_get_frame_info): If the prologue loads r12
1725 from the constant pool, but doesn't add in the constant pool's
1726 address to it, then this function probably isn't using r12 as a
1727 GOT pointer, and that load probably wasn't part of the prologue.
1728
4c801202
JB
1729 * s390-tdep.c (s390_gdbarch_init): Use the default
1730 prepare_to_proceed function established by config/nm-linux.h;
1731 don't try to set it to linuxthreads_prepare_to_proceed.
1732
a62cc96e
AC
1733Wed Nov 7 20:38:14 2001 Andrew Cagney <cagney@redhat.com>
1734
1735 * i386-tdep.c: Include "i386-tdep.h".
1736 (XMALLOC): Define.
1737 (i386_gdbarch_init): New function.
1738 (_initialize_i386_tdep): Register bfd_arch_i386.
1739 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Define as
1740 GDB_MULTI_ARCH_PARTIAL.
1741 * i386-tdep.h: When partially multi-arch, conditionally define
1742 all macros.
1743
8ea43c6d
AC
1744Wed Nov 7 20:45:32 2001 Andrew Cagney <cagney@redhat.com>
1745
1746 * i386-tdep.c (set_disassembly_flavor): Delete function.
1747 (set_disassembly_flavor_sfunc): Delete function.
1748
6a34fd2f
EZ
17492001-11-07 Elena Zannoni <ezannoni@redhat.com>
1750
1751 * dbxread.c (set_namestring): New function, replacing the
1752 SET_NAMESTRING macro.
1753 (SET_NAMESTRING, CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE,
1754 CUR_SYMBOL_STRX, DBXREAD_ONLY, START_PSYMTAB, END_PSYMTAB): Delete
1755 definitions.
1756 (read_dbx_symtab): Don't include partial-stab.h any more. Don't
1757 reuse code in partial-stab.h, include the code directly, instead.
1758
1759 * Makefile.in (dbxread.o): Remove dependency on partial-stab.h.
1760 (HFILES_NO_SRCDIR): Remove partial-stab.h.
1761
1762 * partial-stab.h: Remove file.
1763
a72293e2
AC
17642001-11-07 Andrew Cagney <ac131313@redhat.com>
1765
1766 * gdbarch.sh: For multi-arch functions, check there is a
1767 predefault and use it as the static default.
1768 * gdbarch.c: Re-generate.
1769
8cf03c4c
MK
17702001-11-08 Mark Kettenis <kettenis@gnu.org>
1771
1772 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Define in
1773 terms of NUM_GREGS, NUM_FREGS and NUM_SSE_REGS instead of
1774 hardcoding the register number.
1775
56f12751
AC
17762001-11-07 Andrew Cagney <ac131313@redhat.com>
1777
1778 * gdbarch.sh (USE_STRUCT_CONVENTION): Default to
1779 generic_use_struct_convention.
1780 * gdbarch.h, gdbarch.c: Regenerate.
1781 * values.c (USE_STRUCT_CONVENTION): Delete definition, moved to
1782 gdbarch.h.
1783
a4a7d16f
AC
17842001-11-06 Andrew Cagney <ac131313@redhat.com>
1785
1786 * gdbarch.sh (PC_IN_CALL_DUMMY): Require a value.
1787 * gdbarch.c: Regenerate.
1788
4dc13854
FF
17892001-11-06 Fred Fish <fnf@redhat.com>
1790
1791 * complaints.c (info_verbose): Remove unneeded decl, is in defs.h.
1792 * dbxread.c: Ditto
1793 * dwarf2read.c: Ditto.
1794 * dwarfread.c: Ditto.
1795 * exec.c: Ditto.
1796 * hpread.c: Ditto.
1797 * hpread.h: Ditto.
1798 * mdebugread.c: Ditto.
1799 * os9kread.c: Ditto.
1800 * stack.c: Ditto.
1801 * symfile.c: Ditto.
1802 * tracepoint.c: Ditto.
1803
7fe4d0d2
AC
18042001-11-06 Andrew Cagney <ac131313@redhat.com>
1805
1806 * MAINTAINERS: Update Andrew Cagney's responsibilities. Mention
1807 David Taylor and Nick Duffek in past maintainers.
1808
d3119d1e
EZ
18092001-11-06 Elena Zannoni <ezannoni@redhat.com>
1810
1811 * mdebugread.c (CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB,
1812 END_PSYMTAB, SET_NAMESTRING, HANDLE_RBRAC): Delete definitions.
1813 (parse_partial_symbols): Don't include partial-stab.h any
1814 more. Don't reuse code in partial-stab.h, include the code
1815 directly, instead. Simplify code from partial-stab.h eliminating
1816 ifdef DBXREAD_ONLY code.
1817
1818 * Makefile.in (mdebugread.o): Remove dependency on partial-stab.h.
1819
e2d46a8c
JB
18202001-11-06 Jim Blandy <jimb@redhat.com>
1821
3ecc0ae2
JB
1822 * s390-nat.c: #include "regcache.h", to get declaration for
1823 `supply_register'. (The last change already added the dependency
1824 of s390-nat.o on regcache.h. Oops.)
1825
e81b020b
JB
1826 * Makefile.in (ALLDEPFILES): Add s390-tdep.c and s390-nat.c.
1827 (s390-tdep.o, s390-nat.o): New rules.
1828
38937755 1829 * s390-nat.c (s390_register_u_addr): Pass proper arguments to
e2d46a8c
JB
1830 internal_error.
1831
a985cd41
AC
18322001-11-06 Andrew Cagney <ac131313@redhat.com>
1833
1834 * gdbarch.sh (CALL_DUMMY_LOCATION): Require a value.
1835 * gdbarch.c: Regenerate.
1836
e6b47f07
AC
18372001-11-06 Andrew Cagney <ac131313@redhat.com>
1838
1839 * blockframe.c (get_prev_frame): Replace #ifdef
1840 INIT_EXTRA_FRAME_INFO with run-time test.
1841
69a0d5f4
AC
18422001-11-05 Andrew Cagney <ac131313@redhat.com>
1843
1844 * gdbarch.sh (push_return_address): Change to a function with
1845 predicate.
1846 * gdbarch.h, gdbarch.c: Re-generate.
1847 * valops.c (hand_function_call): Replace #ifdef
1848 PUSH_RETURN_ADDRESS with run-time test of PUSH_RETURN_ADDRESS_P.
1849
c12260ac
CV
18502001-11-06 Corinna Vinschen <vinschen@redhat.com>
1851
1852 * arch-utils.c (generic_in_function_epilogue_p): New function.
1853 * arch-utils.h (generic_in_function_epilogue_p): Declare extern.
1854 * breakpoint.c (watchpoint_check): Add test whether the pc is
1855 currently in the epilogue of a function.
1856 * gdbarch.c: Autogenerated from gdbarch.sh.
1857 * gdbarch.h: Ditto.
1858 * gdbarch.sh (function_list): Add `in_function_epilogue_p' definition.
1859
c4620205
JB
18602001-11-05 Jim Blandy <jimb@redhat.com>
1861
8114216b
JB
1862 * config/s390/s390.mh (NATDEPFILES): Don't split this across
1863 several lines with backslashes; the `sed' command in
1864 configure.in's AC_OUTPUT clause that comments out the NATDEPFILES
1865 assignment doesn't handle lines extended with backslashes.
1866
c4620205
JB
1867 * configure.in (AC_OUTPUT): Handle assignments to NATDEPFILES
1868 using `+=' as well as `='.
1869 * configure: Regenerated.
1870
5fdff426
AC
18712001-11-05 Andrew Cagney <ac131313@redhat.com>
1872
1873 * gdbarch.sh (init_extra_frame_info): Change to a function with
69a0d5f4 1874 predicate.
5fdff426
AC
1875 * gdbarch.h, gdbarch.c: Re-generate.
1876 * blockframe.c (create_new_frame): Replace #ifdef
1877 INIT_EXTRA_FRAME_INFO with run-time test of
1878 INIT_EXTRA_FRAME_INFO_P.
1879
f16a1923
AC
18802001-11-05 Andrew Cagney <ac131313@redhat.com>
1881
1882 * gdbarch.sh (verify_gdbarch): Use a mem_file to accumulate all
1883 error messages. Print in a single batch.
1884 * gdbarch.c: Re-generate.
1885
0fc087fe
MK
18862001-11-04 Mark Kettenis <kettenis@gnu.org>
1887
3fb1c838
MK
1888 * i386-linux-nat.c (GETREGS_SUPPLIES, supply_gregset,
1889 fill_gregset): Add support for "orig_eax" register.
1890
6441c4a0
MK
1891 Add support for "orig_eax" pseudo register on Linux/x86.
1892 * i386-linux-tdep.c: Include "inferior.h".
1893 (i386_linux_register_name, i386_linux_register_byte,
1894 i386_linux_register_raw_size): New functions.
1895 (i386_linux_write_pc): New function.
1896 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): New define.
1897 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
1898 REGISTER_BYTE, REGISTER_RAW_SIZE): Define to deal with additional
1899 register.
1900 (i386_linux_register_name, i386_linux_register_byte,
1901 i386_linux_register_raw_size): New prototypes.
1902 (TARGET_WRITE_PC): New define.
1903 (i386_linux_write_pc): New prototype.
1904
1a11ba71
MK
1905 * i386-tdep.c (i386_register_offset): Renamed from
1906 i386_register_byte. Made static.
1907 (i386_register_size): Renamed from i386_register_raw_size. Made
1908 static.
1909 (i386_register_virtual_size): Removed.
1910 (i386_register_byte, i386_register_raw_size,
1911 i386_register_virtual_size): New functions.
1912 (_initialize_i386_tdep): Initialize i386_register_offset instead
1913 of i386_register_byte. Remove code to initialize
1914 i386_register_virtual_size.
1915 * config/i386/tm-i386.h (REGISTER_BYTE): Redefine to use
1916 i386_register_byte function.
1917 (REGISTER_RAW_SIZE): Redefine to use i386_register_raw_size
1918 function.
1919 (REGISTER_VIRTUAL_SIZE): Redefine to use
1920 i386_register_virtual_size function.
1921 (i386_register_byte, i386_register_raw_size,
1922 i386_register_virtual_size): New functions.
1923
0fc087fe
MK
1924 * Makefile.in (ALLDEPFILES): Add i387-nat.c.
1925 (i387-nat.o): Add dependencies.
1926
1396e6f1
AC
19272001-11-02 Andrew Cagney <ac131313@redhat.com>
1928
1929 * README: Mention problem with alpha-dec-osf5.1.
1930
5c7dd748
AC
19312001-11-02 Andrew Cagney <ac131313@redhat.com>
1932
1933 * utils.c (internal_verror): Restore calls to abort().
1934 Fix PR gdb/219.
1935
3559696c
MC
19362001-11-02 Michael Chastain <mec@shout.net>
1937
1938 * MAINTAINERS: Update my entry.
1939
53e8ad3d
MS
19402001-11-01 Michael Snyder <msnyder@redhat.com>
1941
1942 * symtab.c (operator_chars): Allow '*' and '[' to be quoted in
1943 operator names, to avoid regexp expansion.
1944 (search_symbols): Alloca buffer is too small, may get clobbered.
1945
990f9fe3
FF
19462001-11-01 Fred Fish <fnf@redhat.com>
1947
1948 * coff-solib.c (coff_solib_add): Add new readsyms arg.
1949 * irix5-nat.c (solib_add): Ditto.
1950 * osfsolib.c (solib_add): Ditto.
1951 * pa64solib.c (pa64_solib_add): Ditto.
1952 * pa64solib.c (add_to_solist): Ditto.
1953 * pa64solib.c (read_dld_descriptor): Ditto.
1954 * solib.c (solib_add): Ditto.
1955 * somsolib.c (som_solib_add): Ditto.
1956 * win32-nat.c (child_solib_add): Ditto.
1957 * xcoffsolib.c (solib_add): Ditto.
1958
1959 * coff-solib.h (coff_solib_add): Add new readsyms arg to prototype.
1960 * pa64solib.c (add_to_solist): Ditto.
1961 * pa64solib.c (read_dld_descriptor): Ditto.
1962 * pa64solib.h (pa64_solib_add): Ditto.
1963 * solib.h (solib_add): Ditto.
1964 * somsolib.h (som_solib_add): Ditto.
1965 * config/i386/tm-cygwin.h (child_solib_add): Ditto.
1966
1967 * coff-solib.c (coff_solib_add): If readsyms is zero don't read
1968 symbols but do any other needed work for shared libs.
1969 * irix5-nat.c: Ditto.
1970 * osfsolib.c (solib_add): Ditto.
1971 * solib.c (solib_add): Ditto.
1972 * win32-nat.c (child_solib_add): Ditto.
1973 * xcoffsolib.c (solib_add): Ditto.
1974
1975 * irix5-nat.c (sharedlibrary_command): Pass 1 as readsyms to
1976 solib_add to force reading of shared library symbols.
1977 * osfsolib.c (sharedlibrary_command;): Ditto.
1978 * pa64solib.c (pa64_solib_sharedlibrary_command): Ditto.
1979 * solib.c (sharedlibrary_command): Ditto.
1980 * somsolib.c (som_solib_sharedlibrary_command): Ditto.
1981 * xcoffsolib.c (sharedlibrary_command): Ditto.
1982
1983 * coff-solib.c (coff_solib_create_inferior_hook): Call solib_add
1984 unconditionally with auto_solib_add.
1985 * irix5-nat.c (solib_create_inferior_hook): Ditto.
1986 * osfsolib.c (solib_create_inferior_hook): Ditto.
1987 * solib.c (solib_create_inferior_hook): Ditto.
1988 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
1989 * solib-svr4.c (enable_break): Ditto.
1990 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
1991
1992 * corelow.c (solib_add_stub): Add auto_solib_add to args passed
1993 via SOLIB_ADD.
1994 * sol-thread.c (sol_thread_attach): Ditto.
1995 * config/rs6000/nm-rs6000.h (SOLIB_ADD): Ditto.
1996
1997 * infcmd.c (attach_command): Remove auto_solib_add decl.
1998 Call SOLIB_ADD directly with auto_solib_add.
1999 * infrun.c (handle_inferior_event): Ditto.
2000
2001 * coff-solib.h (SOLIB_ADD): Add readsyms arg.
2002 * pa64solib.h (SOLIB_ADD): Ditto.
2003 * solib.h (SOLIB_ADD): Ditto.
2004 * somsolib.h (SOLIB_ADD): Ditto.
2005 * config/i386/tm-cygwin.h (SOLIB_ADD): Ditto.
2006
2007 * fork-child.c (clone_and_follow_inferior): Remove unused
2008 auto_solib_add decl.
2009
2010 * pa64solib.c (pa64_solib_add): Call add_to_solist with readsyms.
2011 (read_dld_descriptor): Ditto.
2012 (pa64_solib_add): Call read_dld_descriptor with readsyms.
2013 (pa64_solib_in_dynamic_linker): Ditto.
2014
2015 * corelow.c (symfile.h): Need this for auto_solib_add declaration.
2016 * sol-thread.c (symfile.h): Ditto.
2017
1de2edba
AC
20182001-10-31 Andrew Cagney <ac131313@redhat.com>
2019
2020 * s390-nat.c (s390_remove_watchpoint): Use xfree.
2021 (s390_insert_watchpoint): Use xmalloc.
2022
30b28db1
AC
20232001-10-31 Andrew Cagney <ac131313@redhat.com>
2024
2025 * varobj.c: Replace value_ptr with ``struct value *''.
2026
72330bd6
AC
20272001-10-31 Andrew Cagney <ac131313@redhat.com>
2028
2029 * varobj.c: Re-indent.
2030
d45fc520
AC
20312001-10-31 Andrew Cagney <ac131313@redhat.com>
2032
2033 * x86-64-tdep.c (value_push, x86_64_push_arguments): Replace
2034 ``value_ptr'' with ``struct value *''.
2035 * s390-tdep.c (s390_push_arguments): Ditto.
2036
3a1c5313
AC
20372001-10-30 Andrew Cagney <ac131313@redhat.com>
2038
2039 * ppc-tdep.h: Add #ifndef wrapper. Replace value_ptr with
2040 ``struct value *''.
2041 (struct frame_info, struct value): Add opaque declarations.
2042
68e9cc94
CV
20432001-10-31 Corinna Vinschen <vinschen@redhat.com>
2044
2045 * arch-utils.c (generic_in_solib_call_trampoline): New function.
2046 * arch-utils.h (generic_in_solib_call_trampoline): Extern declaration.
2047 * gdbarch.c: Regenerated from gdbarch.sh.
2048 * gdbarch.h: Ditto.
2049 * gdbarch.sh (function_list): Add `IN_SOLIB_CALL_TRAMPOLINE' definition.
2050 * infrun.c (IN_SOLIB_CALL_TRAMPOLINE): Remove macro.
2051
60e6cc42
AC
20522001-10-31 Andrew Cagney <ac131313@redhat.com>
2053
2054 From DJ Barrow.
2055 * s390-tdep.c: (s390_gdbarch_init): Don't initialize
2056 find_solib_trampoline_target.
2057
61387159
AC
20582001-10-31 Andrew Cagney <ac131313@redhat.com>
2059
2060 * remote-vx.c (net_wait): Fix typo from PIDGET change.
2061
fc633446
MK
20622001-10-31 Mark Kettenis <kettenis@gnu.org>
2063
2064 * config/i386/tm-i386.h (REGISTER_NAMES): Remove.
2065 (REGISTER_NAME): New define.
2066 (i386_register_name): New prototype.
2067 * i386-tdep.c (i386_register_names): New variable.
2068 (i386_register_name): New function.
2069 * config/i386/tm-i386os9k.h, config/i386/tm-ptx.h,
2070 config/i386/tm-symmetry.h: Undefine REGISTER_NAME instead of
2071 REGISTER_NAMES.
2072
3f8ad85b
CF
20732001-10-31 Christopher Faylor <cgf@redhat.com>
2074
2075 * win32-nat.c (register_loaded_dll): Attempt to ensure that the case of
2076 the loaded DLL matches the on-disk case since the debugging API does
2077 not seem to ensure this. Calculate max name length here.
2078 (handle_load_dll): Move max name length calculation to
2079 register_loaded_dll.
2080
433144fb
DJ
20812001-10-31 Daniel Jacobowitz <drow@mvista.com>
2082
2083 * arm-linux-nat.c: Include <asm/ptrace.h> explicitly.
2084
ddc54292
KS
20852001-10-30 Keith Seitz <keiths@redhat.com>
2086
2087 * wrapper.h (gdb_value_struct_elt): New function.
2088 * wrapper.c (gdb_value_struct_elt): Ditto.
2089 (do_captured_value_struct_elt): Ditto.
2090
34f47bc4
AC
20912001-10-30 Andrew Cagney <ac131313@redhat.com>
2092
2093 * README, NEWS: Update for 5.1.
2094
4536bbc6
AC
20952001-10-30 Andrew Cagney <ac131313@redhat.com>
2096
2097 * configure.in (WERROR_CFLAGS): Use AC_TRY_COMPILE to test the
2098 -W... flags.
2099 * configure: Re-generate.
2100
c3c057c8
FF
21012001-10-30 Fred Fish <fnf@redhat.com>
2102
2103 * somsolib.c (som_solib_add): A megabyte is 1024*1024 bytes.
2104 * pa64solib.c (add_to_solist): Ditto.
2105 * win32-nat.c (_initialize_inftarg): Remove unnecessary
2106 initialization of auto_solib_add, it defaults to 1.
2107
b7209cb4
FF
21082001-10-27 Fred Fish <fnf@redhat.com>
2109
2110 * symfile.c (auto_solib_add): Update comment to note that
2111 this variable is now just used as a boolean to control shlib
2112 autoloading, and clarify when it is used.
2113 * symfile.h (auto_solib_add): Ditto.
2114
2115 * symfile.c (auto_solib_limit): New variable that holds the
2116 autoloading threshold instead of overloading auto_solib_add.
2117 * symfile.h (auto_solib_limit): Ditto.
2118
2119 * irix5-nat.c (_initialize_solib): Change auto-solib-add
2120 variable from var_zinteger to var_boolean and update help.
2121 * osfsolib.c (_initialize_solib): Ditto.
2122 * pa64solib.c (_initialize_pa64_solib): Ditto.
2123 * solib.c (_initialize_solib): Ditto.
2124 * somsolib.c (_initialize_som_solib): Ditto.
2125 * xcoffsolib.c (_initialize_solib): Ditto.
2126
2127 * pa64solib.c (pa64_solib_total_st_size): Update comment to
2128 note that the new auto_solib_limit variable is used instead
2129 of overloading auto_solib_add variable.
2130 (_initialize_pa64_solib): Ditto.
2131 * somsolib.c (som_solib_total_st_size): Ditto.
2132 (_initialize_som_solib): Ditto.
2133
2134 * pa64solib.c (_initialize_pa64_solib): Add new set/show
2135 commands for auto-solib-limit variable.
2136 * somsolib.c (_initialize_som_solib): Ditto
2137
2138 * pa64solib.c (add_to_solist): Check that auto_solib_add is
2139 set and use auto_solib_limit as the threshold size instead
2140 of auto_solib_add.
2141 * somsolib.c (som_solib_add): Ditto, and also change warning
2142 text about size threshold exceeded.
2143
dec66fe5
MK
21442001-10-21 Mark Kettenis <kettenis@gnu.org>
2145
2146 * config/i386/tm-i386v.h: Don't include "regcache.h".
2147 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, FRAME_CHAIN,
2148 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_NUM_ARGS):
2149 Remove macros. The versions from "tm-i386.h" should work fine
2150 (and in most cases even better).
2151
c6ba6f0d
MK
21522001-10-30 Mark Kettenis <kettenis@gnu.org>
2153
2154 * i386-tdep.c (i386_extract_return_value): Use
2155 convert_typed_floating to extract floating-point value from
2156 register buffer.
2157 (i386_store_return_value): Use convert_typed_floating to store
2158 floating-point return balue in register buffer
2159 (i386_register_virtual_type): Change type of floating-point
2160 registers to builtin_type_i387_ext.
2161 (i386_register_convert_to_virtual): Use convert_typed_floating to
2162 do the conversion.
2163 (i386_register_convert_to_raw): Likewise.
2164
43686d64
MK
21652001-10-29 Mark Kettenis <kettenis@gnu.org>
2166
2167 * doublest.h (convert_typed_floating): New prototype.
2168 * doublest.c (convert_typed_floating): New function.
2169
87ffba60
MK
21702001-10-28 Mark Kettenis <kettenis@gnu.org>
2171
2172 * doublest.c: Improve comments a bit.
2173 (floatformat_from_length): New function.
2174 (NAN): Define to 0.0 if not already defined.
2175 (extract_floating): Rewrite to use floatformat_from_length. Warn
2176 instead of error if LEN doesn't match a known floating-point type,
2177 and return NaN (or 0.0 if NaN isn't available) in that case.
2178 (store_floating): Likewise, but zero out the target byte-stream if
2179 LEN doesn't match a known floating-point type.
2180 (extract_typed_floating): Reformat a bit.
2181 (store_typed_floating): Reformat a bit. Add comment about zeroing
2182 out padding in the target buffer.
2183 * doublest.h (extract_floating, store_floating): Fix comment about
2184 deprecation of these functions. Add parameter names to prototypes.
2185
e371b258
MK
21862001-10-28 Mark Kettenis <kettenis@gnu.org>
2187
4583280c
MK
2188 * i387-tdep.c (print_i387_value): Use extract_typed_floating to
2189 convert RAW to a DOUBLEST instead of extract_floating.
2190
e371b258
MK
2191 * gdbtypes.c (_initialize_gdbtypes): Set floating-point type for
2192 builtin_type_i387_ext to floatformat_i387_ext.
2193
17fd1ad9
DJ
21942001-10-24 Daniel Jacobowitz <drow@mvista.com>
2195
2196 * arm-linux-nat.c (fill_gregset): Do not check register_valid[].
2197 (fill_fpregset): Likewise.
2198
fa4e4598
OF
21992001-10-26 Orjan Friberg <orjanf@axis.com>
2200
2201 * cris-tdep.c (constraint): Loop through the whole cris_spec_regs
2202 struct, not just the NUM_SPECREGS first entries.
2203 (bdap_prefix): Read PC before autoincrement.
2204
02cc9f49
CV
22052001-10-24 Corinna Vinschen <vinschen@redhat.com>
2206
2207 * win32-nat.c (DebugSetProcessKillOnExit): New static function
2208 pointer to Windows' DebugSetProcessKillOnExit() function.
2209 (DebugActiveProcessStop): Ditto for DebugActiveProcessStop().
2210 (has_detach_ability): New function.
2211 (child_attach): If system has detach ability, enable it.
2212 (child_detach): If system has detach ability, actually
2213 detach from process.
2214 Change tty output to Linux format.
2215
3973eadd
JB
22162001-10-23 Jim Blandy <jimb@redhat.com>
2217
2218 Isolate STABS readers' use of the `textlow' and `texthigh' fields
2219 of `struct partial_symtab' to only a few locations. This change
2220 is not supposed to affect the way the values are computed, only
2221 where they live.
2222
2223 * dbxread.c (struct symloc): Add `textlow' and `texthigh' fields
2224 to the reader-specific structure.
2225 * mdebugread.c (struct symloc): Same.
2226 * dbxread.c (TEXTLOW, TEXTHIGH): New accessor macros.
2227 * mdebugread.c (TEXTLOW, TEXTHIGH): Same.
2228 * dbxread.c (dbx_symfile_read): After we've built all our partial
2229 symbol tables, set each partial symtab's `textlow' and `texthigh'
2230 fields from our reader-specific structure.
2231 * mdebugread.c (mdebug_build_psymtabs): Same.
2232 * dbxread.c (start_psymtab): Initialize the reader-specific
2233 structure's `textlow' and `texthigh' from the new psymtab's.
2234 * mdebugread.c (parse_partial_symbols, new_psymtab): Same.
2235 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab): Use
2236 the reader-specific `textlow' and `texthigh', not the generic
2237 psymtab fields.
2238 * mdebugread.c (parse_lines, parse_partial_symbols,
2239 psymtab_to_symtab_1): Same.
2240 * partial-stab.h: Same.
2241
ce414844
AC
2242Tue Oct 23 18:59:42 2001 Andrew Cagney <cagney@redhat.com>
2243
2244 * hp-psymtab-read.c, hppah-nat.c, hppa-tdep.c: Fix -Wformat
2245 problems.
2246
8f236061
AC
2247Tue Oct 23 14:16:10 2001 Andrew Cagney <cagney@redhat.com>
2248
2249 * somsolib.c (som_solib_add): Use core_addr_to_host_pointer.
2250 (som_solib_desire_dynamic_linker_symbols): Compare integers with
2251 zero not NULL.
2252 * hp-psymtab-read.c (hpread_call_pxdb): Make parameter constant.
2253
d20bf2e8
AC
22542001-10-21 Andrew Cagney <ac131313@redhat.com>
2255
2256 * top.c (print_gdb_version): Do not print ``(MI_OUT)''. MI
2257 interface is always enabled.
2258
17732724
AC
22592001-10-21 Andrew Cagney <ac131313@redhat.com>
2260
2261 * Makefile.in: Replace top.h with $(top_h). Replace expression.h
2262 with $(expression_h). Replace command.h with $(command_h).
2263 (language_h): Define. Replace language.h with $(language_h).
2264 Replace call-cmds.h with $(call_cmds_h). Replace varobj.h with
2265 $(varobj_h).
2266 (wrapper_h, valprint_h, objfiles_h, complaints_h): Ditto.
2267 (serial_h, hpread_h, buildsym_h, stabsread_h): Ditto.
2268 (xcoffsolib_h, gdb_stabs_h, linespec_h): Ditto.
2269 (bcache_h, gdb_events_h, monitor_h): Ditto.
2270 (ser_unix_h, source_h): Ditto.
2271 (varobj_h): Update list.
2272
2273 * call-cmds.h: Add CALL_CMDS_H macro wrapper.
2274 * solist.h: Add SOLIST_H macro wrapper.
2275 * monitor.h: Add MONITOR_H macro wrapper.
2276 * typeprint.h: Add TYPEPRINT_H macro wrapper.
2277 * xcoffsolib.h: Add XCOFFSOLIB_H macro wrapper.
2278 * valprint.h: Add VALPRINT_H macro wrapper.
2279 * top.h: Add TOP_H macro wrapper.
2280
fd0407d6
AC
22812001-10-21 Andrew Cagney <ac131313@redhat.com>
2282
2283 * config/a29k/tm-vx29k.h, i386-tdep.c: Include "value.h".
2284 * arm-tdep.c, exec.c, ia64-tdep.c, infrun.c: Ditto.
2285 * ppc-linux-tdep.c, remote-es.c, remote.c: Ditto.
2286 * rs6000-tdep.c, s390-tdep.c, x86-64-tdep.c: Ditto.
2287 * Makefile.in (arm-tdep.o, exec.o, i386-tdep.o, ia64-tdep.o)
2288 (infrun.o, ppc-linux-tdep.o, remote.o, rs6000-tdep.o)
2289 (x86-64-tdep.o): Update dependencies.
2290 * gdbarch.sh [!GDB_MULTI_ARCH]: Include "value.h".
2291 * gdbarch.h, gdbarch.c: Re-generate.
2292
3c2fb7bd
MK
22932001-10-21 Mark Kettenis <kettenis@gnu.org>
2294
2295 * infptrace.c (child_xfer_memory): Fix a few coding standards
2296 violations.
2297
c4282e67
EZ
22982001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
2299
2300 * config/djgpp/README: Fix a typo and tweak for GDB 5.1.
2301
c9847381
AC
23022001-10-20 Andrew Cagney <ac131313@redhat.com>
2303
75c9979e
AC
2304 * jv-lang.h: Add #ifndef JV_LANG_H wrapper.
2305 (struct value): Add opaque declaration. Replace value_ptr with
2306 ``struct value *''.
2307 * jv-valprint.c, jv-lang.c: Replace value_ptr with equivalent
2308 struct.
2309
c9847381
AC
2310 * wrapper.h (struct value): Add opaque declaration. Replace
2311 value_ptr with ``struct value *''.
2312 * wrapper.c: Replace value_ptr with ``struct value *''.
278cd55f 2313 * breakpoint.h, breakpoint.c: Ditto.
e933e538 2314 * cp-abi.h, hpacc-abi.c, gnu-v2-abi.c, cp-abi.c: Ditto.
c9847381 2315
f1e3ec29
AC
23162001-10-20 Andrew Cagney <ac131313@redhat.com>
2317
2318 * alpha-nat.c: Include <alpha/coreregs.h> instead of
2319 <machine/reg.h>.
2320 (fetch_osf_core_registers): Define core_reg_mapping in a way that
2321 works on OSF5 as well as previous OSF versions.
2322
83413c55
CF
23232001-10-20 Christopher Faylor <cgf@redhat.com>
2324
2325 * win32-nat.c (handle_load_dll): Avoid strlwr'ing loaded DLLs or cygwin
2326 may not be able to read them in certain situations.
2327
457174f6
AC
23282001-10-18 Andrew Cagney <ac131313@redhat.com>
2329
2330 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Define.
2331 * config/powerpc/linux.mt (SIM, SIM_OBS): Ditto
2332
4bb5d567
AC
23332001-10-18 Andrew Cagney <ac131313@redhat.com>
2334
2335 * README: Mention problems with HP/UX.
2336
03dd37c3
AC
23372001-10-16 Andrew Cagney <ac131313@redhat.com>
2338
2339 Based on code by John Moore <jmore@redhat.com>:
2340
2341 * utils.c (core_addr_to_string): New function for conversion of
2342 CORE_ADDR to string.
2343 (string_to_core_addr): New function to convert from string to
2344 CORE_ADDR.
2345 * defs.h: Added extern statements for the above.
2346
1ba7c32c
JM
23472001-10-17 Jason Molenda (jason-cl@molenda.com)
2348
2349 * symtab.c (lookup_block_symbol): Break out of linear search
2350 if we're past the range of possible matches.
2351
7470a420
CF
23522001-10-16 Christopher Faylor <cgf@redhat.com>
2353
2354 * win32-nat.c (safe_symbol_file_add_stub): Improve logic for avoiding
2355 load of already loaded DLL.
2356 (register_loaded_dll): Convert loaded DLL name to "posix" format or it
2357 will confuse subsequent opening of the filename due to dos paths.
2358 (dll_symbol_command): Pass from_tty parameter to safe_symbol_file_add.
2359
8cc1c882
EZ
23602001-10-15 Elena Zannoni <ezannoni@redhat.com>
2361
2362 * symtab.c (lookup_block_symbol): Update comment.
2363
1aa20aa8
AC
23642001-10-15 Andrew Cagney <ac131313@redhat.com>
2365
2366 * value.h (value_as_address): Rename value_as_pointer.
2367 * eval.c, findvar.c, gnu-v2-abi.c, gnu-v3-abi.c, jv-lang.c,
2368 jv-valprint.c, printcmd.c, stack.c, top.c, valarith.c, valops.c,
2369 values.c: Update.
2370
dbbd9c57
AC
2371202001-10-15 Jim Ingham <jingham@inghji.apple.com>
2372
2373 * valarith.c (value_sub): Don't pass a raw type to
2374 value_from_pointer, it has to go through check_typedef first.
2375
73d3c16e
AC
23762001-10-15 Andrew Cagney <ac131313@redhat.com>
2377
2378 * gdbarch.sh (fallbackdefault): Set to one when predefault is
2379 empty.
2380 * gdbarch.h: Regenerate.
2381
fc0c74b1
AC
23822001-10-15 Andrew Cagney <ac131313@redhat.com>
2383
2384 * mips-tdep.c (mips_integer_to_address): New function.
2385 (mips_gdbarch_init): Initialize pointer_to_address,
2386 address_to_pointer and integer_to_address.
2387
2388 * config/mips/tm-mips.h (POINTER_TO_ADDRESS): Delete
2389 (ADDRESS_TO_POINTER): Delete.
2390
2391 * d10v-tdep.c (d10v_integer_to_address): New function.
2392 (d10v_gdbarch_init): Initialize integer_to_address.
2393
2394 * values.c (value_as_pointer): Use INTEGER_TO_ADDRESS when
2395 available.
2396
2397 * gdbarch.sh (INTEGER_TO_ADDRESS): New predicate and function.
2398 * gdbarch.h, gdbarch.c: Regenerate.
2399
cacab7c4
MK
24002001-10-14 Mark Kettenis <kettenis@gnu.org>
2401
39024782
MK
2402 * config/s390/nm-linux.h: Don't include <signal.h>.
2403 (lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
2404 GET_THREAD_SIGNAL): Remove.
2405
dc17571d
MK
2406 * config/nm-linux.h (struct objfile): Remove forward declaration.
2407 (linuxthreads_new_objfile): Remove prototype.
2408 (linuxthreads_pid_to_str): Remove prototype.
2409 (PREPARE_TO_PROCEED): Redefine in terms of
2410 lin_lwp_prepare_to_proceed.
2411 (struct target_waitstatus): Forward declaration.
2412 (child_wait): New prototype.
2413 (CHILD_WAIT): Define.
2414 (lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
2415 GET_THREAD_SIGNAL): Moved here from arch-specific files.
2416 * config/alpha/nm-linux.h, config/arm/nm-linux.h,
2417 config/ia64/nm-linux.h, config/mips/nm-linux.h,
2418 config/powerpc/nm-linux.h: Don't include <signal.h>.
2419 (lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
2420 GET_THREAD_SIGNAL): Remove.
2421 * config/i386/nm-linux.h: Likewise.
2422 (struct target_waitstatus, child_wait, CHILD_WAIT): Remove.
2423 * config/m68k/linux.mh, config/sparc/linux.mh (NATDEPFILES):
2424 Remove linux-thread.o. Add proc-service.o, thread-db.o and
2425 lin-lwp.o.
2426 (LOADLIBES): New variable.
2427
8e4d17db
MK
2428 * sparc-nat.c (fetch_core_registers): Remove redundant prototype.
2429
c987d8c0
MK
2430 * proc-service.c (BUILD_LWP): Redefine in terms of ptid_build.
2431
cacab7c4
MK
2432 Fix attaching to cloned processes. This fixes PR gdb/61.
2433 * lin-lwp.c (struct lwp_info): Add new member `cloned'.
2434 (is_cloned) Removed.
2435 (lin_lwp_attach_lwp): Don't call stop_wait_callback. Instead call
2436 waitpid explicitly. Mark the LWP as cloned if waitpid fails and
2437 retry with __WCLONE flag.
2438 (lin_lwp_attach): Likewise. Warn if attaching to a cloned process.
2439 (detach_callback): Replace use of is_cloned with explicit check on
2440 LWP id and process id.
2441 (stop_wait_callback): Replace use of is_cloned with check if LWP
2442 is marked as cloned.
2443 [CHILD_WAIT] (child_wait): New function.
2444 (lin_lwp_wait): Replace use of is_cloned with check if LWP is
2445 marked as cloned. Mark newly detected LWPs as cloned if detected
2446 by waitpid with __WCLONE flag.
2447 (kill_wait_callback): Replace use of is_cloned with check if LWP
2448 is marked as cloned.
2449 * config/i386/nm-linux.h (struct target_waitstatus): Add forward
2450 declaration.
2451 (child_wait): Add prototype.
2452 (CHILD_WAIT): Define.
2453
5769d3cd
AC
24542001-10-13 Andrew Cagney <ac131313@redhat.com>
2455
2456 S/390 31 & 64 bit target and GNU/Linux native support.
2457 Contributed by D.J. Barrow <djbarrow@de.ibm.com> of IBM.
2458 * s390-nat.c, s390-tdep.c: New file.
2459 * config/s390/nm-linux.h, config/s390/s390.mh: New file.
2460 * config/s390/s390.mt, config/s390/s390x.mt: New file.
2461 * config/s390/tm-linux.h, config/s390/tm-s390.h: New file.
2462 * config/s390/xm-linux.h: New file.
2463 * NEWS: Update.
2464 * MAINTAINERS: Update.
2465
83e6b173
AC
24662001-10-13 Andrew Cagney <ac131313@redhat.com>
2467
2468 From 2001-07-09 D.J. Barrow <djbarrow@de.ibm.com>:
2469 * gdbarch.sh: Fixed CALL_DUMMY_BREAKPOINT_OFFSET to check
2470 CALL_DUMMY_BREAKPOINT_OFFSET_P.
2471 * gdbarch.c: Regenerate.
2472
21bf60fe
MK
24732001-10-13 Mark Kettenis <kettenis@gnu.org>
2474
2475 * thread-db.c: Fix a few formatting mistakes.
2476
fefd0a37
CF
24772001-10-12 Christopher Faylor <cgf@redhat.com>
2478
2479 * win32-nat.c (safe_symbol_file_add_stub): Properly initialize linked
2480 list pointer to beginning rather than one beyond beginning.
2481
e88c90f2
DJ
24822001-10-12 Daniel Jacobowitz <drow@mvista.com>
2483
2484 * symtab.h (struct block): (ALL_BLOCK_SYMBOLS): New macro.
2485
2486 * symtab.c (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2487 (make_symbol_completion_list): Likewise.
2488 (make_symbol_overload_list): Likewise.
2489 * buildsym.c (finish_block): Likewise.
2490 * breakpoint.c (get_catch_sals): Likewise.
2491 * mdebugread.c (mylookup_symbol): Likewise.
2492 * objfiles.c (objfile_relocate): Likewise.
2493 * printcmd.c (print_frame_args): Likewise.
2494 * stack.c (print_block_frame_locals): Likewise.
2495 (print_block_frame_labels): Likewise.
2496 (print_frame_arg_vars): Likewise.
2497 * symmisc.c (dump_symtab): Likewise.
2498 * tracepoint.c (add_local_symbols): Likewise.
2499 (scope_info): Likewise.
2500
375f3d86
DJ
25012001-10-12 Daniel Jacobowitz <drow@mvista.com>
2502
2503 * minsyms.c (msymbol_hash): Use better hash function.
2504 (msymbol_hash_iw): Likewise. Terminate loop at '(' properly.
2505
2506 * objfiles.h: Increase MINIMAL_SYMBOL_HASH_SIZE to match modern
2507 binaries.
2508
55159471
DJ
25092001-10-12 Daniel Jacobowitz <drow@mvista.com>
2510
2511 * printcmd.c (print_frame_args): Move symbol iteration explicitly
2512 inside the func != NULL block.
2513
30ef99d1
FN
25142001-10-12 Fernando Nasser <fnasser@redhat.com>
2515
2516 * MAINTAINERS (Misc): Add Ian Roxborough as tcl/, tk/ and itcl/
2517 maintainer.
2518
02e423b9
CF
25192001-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
2520
d60dc82a 2521 * config/i386/tm-cygwin.h: Include tm-i386.h instead of tm-i386v.h.
02e423b9
CF
2522 This fixes errors in "long long" handling for 'finish' and 'return'
2523 commands.
2524
25252001-10-12 Christopher Faylor <cgf@redhat.com>
2526
2527 * win32-nat.c (safe_symbol_file_add_stub): Avoid adding a shared
2528 library if it has already been loaded.
2529 (safe_symbol_file_add_cleanup): Don't mess with stderr or we won't see
2530 any error messages.
2531 (safe_symbol_file_add): Ditto.
2532 (solib_symbols_add): Make static. Accept 'from_tty' parameter. Pass
2533 it to safe_symbol_file_add.
2534 (core_dll_symbols_add): Accomodate extra solib_symbols_add parameter.
2535 (child_solib_add): Ditto.
2536
2537 * win32-nat.c (handle_exception): Don't print "first chance"
2538 exceptions.
2539 (get_child_debug_event): Continue from exceptions if !handle_exception.
2540
1b15f1fa
TT
25412001-10-11 Tom Tromey <tromey@redhat.com>
2542
2543 * symtab.c (lookup_symtab): Removed.
2544 (lookup_symtab_1): Renamed to lookup_symtab.
2545
700b351b
CF
25462001-10-10 Christopher Faylor <cgf@redhat.com>
2547
2548 * win32-nat.c (get_child_debug_event): Close file handles created after
2549 process creation and DLL load.
2550 (child_create_inferior): Close unneeded process/thread handle after
2551 thread creation.
2552
4eab1e18
JB
25532001-10-10 Jim Blandy <jimb@redhat.com>
2554
2555 * mn10300-tdep.c (mn10300_analyze_prologue): Doc fixes.
2556
4abb499e
KS
25572001-10-10 Keith Seitz <keiths@redhat.com>
2558
2559 * varobj.c (cplus_value_of_child): Deal with a failure
2560 to dereference a pointer object.
2561
8b2797db
JB
25622001-10-08 J. Brobecker <brobecker@gnat.com>
2563
2564 * hpux-thread.c: rewrite find_active_thread() and find_tcb()
2565 to use ptid_t, instead of overloading the thread and the pid
2566 into the same 32-bit value. Make associated necessary adaptations.
2567 Also remove unused variable cached_active_thread.
2568
420effb8
ND
25692001-10-08 Nicholas Duffek <nsd@redhat.com>
2570
2571 * MAINTAINERS (powerpc, SCO/Unixware, Solaris/x86): Remove my
2572 entries.
2573
3eb970a8
MK
25742001-10-06 Mark Kettenis <kettenis@beast.freebsd.org>
2575
2576 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Define.
2577
78f49586
TT
25782001-10-04 Tom Tromey <tromey@redhat.com>
2579
2580 * main.c (enable_external_editor): Don't declare.
2581 (captured_main): Don't set enable_external_editor.
2582
ab31aa69
KB
25832001-10-02 Kevin Buettner <kevinb@redhat.com>
2584
2585 * Makefile.in (ALLDEPFILES): Add solib-svr4.c and solib-sunos.c
2586 to this list.
2587 (solib-sunos.o): Add dependencies.
2588 (solib-svr4.o): Revise dependencies.
2589 * solib-svr4.c: Remove SunOS shared library support.
2590 * solib-sunos.c: New file, created from solib-svr4.c, which still
2591 contains SunOS shared library support, but no SVR4 support.
2592
2593 * config/i386/nbsd.mh (NATDEPFILES): Remove solib-svr4.o and
2594 solib-legacy.o from this list. Add solib-sunos.o.
2595 * config/i386/sun386.mt (TDEPFILES): Likewise.
2596 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
2597 * config/m68k/sun2os4.mt (TDEPFILES): Likewise.
2598 * config/m68k/sun3os4.mt (TDEPFILES): Likewise.
2599 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
2600 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
2601 * config/sparc/sun4os4.mt (TDEPFILES): Likewise.
2602
39ae698d
EZ
26032001-10-01 Elena Zannoni <ezannoni@redhat.com>
2604
2605 * Makefile.in (mipsread.o): Remove old dependency on partial-stab.h.
2606
d5d0a62f
EZ
26072001-10-01 Elena Zannoni <ezannoni@redhat.com>
2608
2609 * xcoffread.c (N_UNDF, N_ABS, N_TEXT, N_DATA, N_BSS, N_COMM, N_FN,
2610 N_EXT, N_INDR, N_SETA, N_SETT, N_SETD, N_SETB, N_SETV,
2611 CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB, END_PSYMTAB,
2612 SET_NAMESTRING): Delete definitions.
2613 Don't include language.h any more.
2614 Don't include partial-stab.h any more.
2615 (scan_xcoff_symtab): Don't jump through hoops to reuse code in
2616 partial-stab.h, include the code directly, instead.
2617
2618 * Makefile.in (xcoffread.o): Remove dependency on partial-stab.h.
2619
447aa9a6
AC
26202001-10-01 Andrew Cagney <ac131313@redhat.com>
2621
2622 * infcmd.c (do_registers_info): Delete code dumping large
2623 registers. Handled by val_print.
2624
85de9627
AC
26252001-09-30 Andrew Cagney <ac131313@redhat.com>
2626
2627 * gdbarch.sh (gdbarch_alloc): Name the new architecture
2628 ``current_gdbarch'' so that it, and not the identically named
2629 global is refered to by macros.
2630 * gdbarch.c: Regenerate.
2631
f3796e26
AC
26322001-09-29 Andrew Cagney <ac131313@redhat.com>
2633
2634 * cli/cli-decode.c (add_set_boolean_cmd): Define.
2635 * cli/cli-decode.h (add_set_boolean_cmd): Declare.
2636 * command.h (add_set_boolean_cmd): Ditto.
2637 * remote.c (_initialize_remote): Use add_set_boolean_cmd for "set
2638 remotebreak"
2639
08e45a40
AC
26402001-09-29 Andrew Cagney <ac131313@redhat.com>
2641
2642 * gdbarch.sh (gdbarch_dump): Sort output.
2643 * gdbarch.c: Regenerate.
2644
e712c1cf
AC
26452001-09-29 Andrew Cagney <ac131313@redhat.com>
2646
2647 * rs6000-tdep.c (rs6000_gdbarch_init): Don't use the previous
2648 architecture to infer the wordsize. Previous architecture may not
2649 be a PowerPC.
2650
d68f31a9
JB
26512001-09-27 J. Brobecker <brobecker@gnat.com>
2652
2653 * infttrace.c (kill_inferior): Issue a TT_PROC_EXIT request rather
2654 than a TT_PROC_STOP request to kill the inferior and its child
2655 processes. Otherwise, the inferior is not killed on HPUX 11.0.
2656 Removed the code that detaches the child processes since we just
2657 killed them.
2658
e3abfe1d
AC
26592001-09-26 Andrew Cagney <ac131313@redhat.com>
2660
2661 * serial.c (serial_set_cmdlist, serial_show_cmdlist): New
2662 variables.
2663 (serial_set_cmd, serial_show_cmd): New functions.
2664 (_initialize_serial): Add "set/show serial" command.
2665
ff1da24e
AC
26662001-09-26 Andrew Cagney <ac131313@redhat.com>
2667
2668 * CONTRIBUTE: Update.
2669
e5e2b9ff
KB
26702001-09-26 Kevin Buettner <kevinb@redhat.com>
2671
2672 * solib-svr4.h (set_solib_svr4_fetch_link_map_offsets): Add
2673 argument ``gdbarch''.
2674 * solib-svr4.c (SVR4_FETCH_LINK_MAP_OFFSETS): Change default value.
2675 (default_svr4_fetch_link_map_offsets): Rename to
2676 legacy_fetch_link_map_offsets().
2677 (svr4_fetch_link_map_offsets): New function.
2678 (fetch_link_map_offsets, fetch_link_map_offsets_init): Deleted.
2679 (fetch_link_map_offsets_gdbarch_data): New static global.
2680 (set_solib_svr4_fetch_link_map_offsets): Add argument ``gdbarch''.
2681 Revise to invoke set_gdbarch_data().
2682 (init_fetch_link_map_offsets): Change return type and add an
2683 argument so that it may be used as a gdbarch_data initializer.
2684 (_initialize_svr4_solib): Eliminate use of gdbarch swap mechanism.
2685 Use gdbarch data mechanism instead.
2686
86ed34a9 26872001-09-25 Jiri Smid <smid@suse.cz>
c74ae012
JS
2688
2689 * x86-64-linux-tdep.c (LINUX_SIGINFO_SIZE): Add.
2690 (x86_64_linux_sigcontext_addr): Replace `sizeof (struct siginfo)'
2691 by LINUX_SIGINFO_SIZE.
2692
4f337972
AC
26932001-09-24 Andrew Cagney <ac131313@redhat.com>
2694
2695 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2696 variables.
2697 (maintenance_set_profile_cmd): New function.
2698 (maintenance_show_cmd, maintenance_set_cmd): New functions.
2699 (_initialize_maint_cmds): Add "maintenance set" and "maintenance
2700 show" and, commented out, "maintenance set/show profile" commands.
2701
f76febae
AC
27022001-09-24 Andrew Cagney <ac131313@redhat.com>
2703
2704 * findvar.c (read_var_value): For LOC_INDIRECT and LOC_REF_ARG
2705 convert the pointer into a CORE_ADDRs.
2706
96d2f608
AC
27072001-09-24 Andrew Cagney <ac131313@redhat.com>
2708
2709 * doublest.h (store_floating, extract_floating): Add comment
2710 indicating these functions are deprecated.
2711 (extract_typed_floating, store_typed_floating): Declare.
2712 * doublest.c: Include "gdbtypes.h".
2713 (extract_typed_floating, store_typed_floating): Define.
2714
2715 * stabsread.c (define_symbol): Use store_typed_floating.
2716 * valarith.c (value_binop): Ditto.
2717 * values.c (unpack_long): Use extract_typed_floating.
2718 (unpack_double): Ditto.
2719
7ab98e9e
OF
27202001-09-24 Orjan Friberg <orjanf@axis.com>
2721
2722 * cris-tdep.c (reg_mode_add_sub_cmp_and_or_move_op): Fetch operand1
2723 from correct register.
2724
1dbeeb7b
MK
27252001-09-22 Mark Kettenis <kettenis@gnu.org>
2726
2727 * x86-64-linux-tdep.c (STRUCT_OFFSET): Removed.
2728
c4d82c96
JS
27292001-09-21 Jiri Smid <smid@suse.cz>
2730
2731 * config/i386/x86-64linux.mh: New file.
2732 * config/i386/x86-64linux.mt: New file.
2733 * config/i386/nm-x86_64.h: New file.
2734 * x86-64-linux-tdep.c: New file.
2735 * x86-64-linux-nat.c: New file.
2736 * x86-64-tdep.c: New file.
2737 * x86-64-tdep.h: New file.
2738 * i386-tdep.h: New file.
2739 * i387-nat.c: Include i386-tdep.h when multiarch.
2740 * i387-tdep.c: Ditto.
2741 * config/djgpp/fnchange.lst: Add entries for x86_64-linux-tdep.c
2742 and x86_64-linux-nat.c
2743 * Makefile.in: Add x86_64-linux-tdep.o, x86_64-tdep.o,
2744 x86_64-linux-tdep.o, x86_64-nat.o, update dependencies.
2745
cab16195
JS
27462001-09-21 Jiri Smid <smid@suse.cz>
2747
2748 * MAINTAINERS: Add myself to the write-after-approval list.
2749 * i386-nat.c (TARGET_HAS_DR_LEN_8, DR_LEN_8): Declare.
2750 (i386_length_and_rw_bits, i386_handle_nonaligned_watchpoint,
2751 i386_insert_watchpoint, i386_remove_watchpoint): Add support for
2752 8-byte wide watchpoints.
2753 (i386_show_dr): Debug message format string change.
2754
3e9986d2
MS
27552001-09-21 Michael Snyder <msnyder@redhat.com>
2756
2757 * c-exp.y (typebase): Accept (signed long long) as a type expr.
2758
56e2d25a
MS
27592001-09-20 Michael Snyder <msnyder@redhat.com>
2760 Changes by Daniel Berlin <dan@cgsoftware.com>, to support
2761 better parsing of const and volatile type expressions.
2762 * c-exp.y (const_and_volatile, const_or_volatile_noopt,
2763 const_or_volatile): New non-terminals.
2764 (ptype): Use new rule for const_or_volatile.
2765 (typebase): Use new rule for const_or_volatile_noopt.
2766 * parser-defs.h (enum type_pieces): New values tp_const, tp_volatile.
2767 * parse.c (follow_types): Handle tp_const and tp_volatile on the
2768 type stack: call make_cv_type to create new const/volatile type.
2769
1c4dcb57
KB
27702001-09-20 Kevin Buettner <kevinb@redhat.com>
2771
2772 * solib-svr4.c (fetch_link_map_offsets): Add comment.
2773 (fetch_link_map_offsets_init): New static global.
2774 (set_solib_svr4_fetch_link_map_offsets, init_fetch_link_map_offsets):
2775 Revise implementation to use ``fetch_link_map_offsets_init''
2776 instead of ``fetch_link_map_offsets''.
2777
3a42e9d0
AM
27782001-09-20 Alan Modra <amodra@bigpond.net.au>
2779
2780 * coffread.c: Replace all occurrences of bfd_read with bfd_bread.
2781 * dbxread.c: Likewise.
2782 * dwarf2read.c: Likewise.
2783 * dwarfread.c: Likewise.
2784 * somread.c: Likewise.
2785 * ultra3-nat.c: Likewise.
2786 * xcoffread.c: Likewise.
2787
e0441cf0
AC
27882001-09-19 Andrew Cagney <ac131313@redhat.com>
2789
8535cb38
AC
2790 * cris-tdep.c (cris_get_signed_offset): Change return type to an
2791 explicitly signed char.
2792
e0441cf0
AC
2793 * config/mcore/tm-mcore.h (mcore_virtual_frame_pointer): Update
2794 function signature to match recent tracepoint.c:encode_actions
2795 changes.
2796 * mcore-tdep.c (mcore_virtual_frame_pointer): Ditto.
2797
2b65245e
AC
27982001-09-18 Andrew Cagney <ac131313@redhat.com>
2799
2800 * thread.c (do_captured_thread_select): Add uiout parameter.
2801 (do_captured_list_thread_ids): Ditto.
2802 * breakpoint.c (do_captured_breakpoint_query): Ditto.
2803
2804 * breakpoint.c (gdb_breakpoint_query): Update. Use
2805 catch_exceptions.
2806 * thread.c (gdb_list_thread_ids): Ditto.
2807 (gdb_thread_select): Ditto.
2808 (thread_command): Pass uiout to gdb_thread_select.
2809
2810 * gdb.h (gdb_breakpoint_query): Add parameter ui_out.
2811 (gdb_thread_select, gdb_list_thread_ids): Ditto.
2812
2069d78d
KB
28132001-09-13 Kevin Buettner <kevinb@redhat.com>
2814
2815 From Ilya Golubev <gin@mo.msk.ru>:
2816 * solib.c (clear_solib): Call `remove_target_sections' to fix
2817 stale pointers in `struct target_ops'.
2818 * irix5-nat.c (clear_solib): Likewise.
2819 * osfsolib.c (clear_solib): Likewise.
2820
348d75a5
JB
28212001-09-13 Jim Blandy <jimb@redhat.com>
2822
e8816aac
JB
2823 * monitor.c (monitor_load): Don't delete symtab users, or reset
2824 inferior_ptid.
2825
348d75a5
JB
2826 * monitor.c (monitor_load): Fix indentation.
2827
28282001-09-11 Jim Blandy <jimb@redhat.com>
2829
2830 * printcmd.c (print_scalar_formatted): Compare the length of the
2831 value against the lengths of the target's floating-point types,
2832 not the host's. Add support for `long double'.
2833
2834 * printcmd.c (print_scalar_formatted): Fix indentation.
2835
a5666cc9
JB
28362001-09-10 Jim Blandy <jimb@redhat.com>
2837
2838 * rom68k-rom.c (init_rom68k_cmds): Set the flag indicating that
2839 programs running on the board can produce output.
2840
6d6b80e5
JM
28412001-09-10 Jason Molenda (jmolenda@apple.com)
2842
2843 * NEWS: "ANS/ISO C" -> "ISO C".
2844 * MAINTAINERS (write-after-approval): Update my entry.
2845
7fc73f38
MK
28462001-09-08 Mark Kettenis <kettenis@gnu.org>
2847
df5fdb3d
MK
2848 * config/xm-aix4.h (MEM_FNS_DECLARED): Removed.
2849
4ad318e6
MK
2850 * config/arm/xm-linux.h, config/ia64/xm-linux.h,
2851 config/m68k/xm-linux.h, config/mips/xm-linux.h,
2852 config/powerpc/xm-linux.h, config/sparc/xm-linux.h: Remove
2853 redundant inclusion of <unistd.h>.
2854
7fc73f38
MK
2855 * gdbtypes.h (struct block): Add forward declaration.
2856
f9c696d2
AC
28572001-09-07 Andrew Cagney <ac131313@redhat.com>
2858
2859 * defs.h (enum return_reason): Renumber so that all values are
2860 negative.
2861 (RETURN_MASK): Negate reason.
2862 (catch_exception_ftype): Declare.
2863 (catch_exceptions): Declare.
2864 * top.c (catcher): New function, based on catch_errors. Add in
2865 parameter func_uiout and out parameters func_val, func_caught and
2866 func_cleanup. Change type of func to catch_exceptions_ftype.
2867 Save/restore uiout.
2868 (struct catch_errors_args): Define.
2869 (do_catch_errors): New function.
2870 (catch_errors): Rewrite, use do_catch_errors and catcher.
2871 (catch_exceptions): New function, use catcher.
2872
a2e2dd80
JB
28732001-09-07 Jim Blandy <jimb@redhat.com>
2874
2875 Correctly parse register values provided by the monitor.
2876 * rom68k-rom.c: #include "value.h".
2877 (is_hex_digit, hex_digit_value, is_whitespace,
2878 rom68k_supply_one_register): New static functions.
2879 (rom68k_supply_register): Call rom68k_supply_one_register, instead
2880 of monitor_supply_register; the latter was incorrectly parsing
2881 the values.
2882 * Makefile.in (rom68k-rom.o): Note that this now #includes value.h.
2883
93befcf3
MK
28842001-09-07 Mark Kettenis <kettenis@gnu.org>
2885
2886 * config/rs6000/xm-rs6000.h (setpgrp): Remove macro. GDB defaults
2887 to using setpgid if available now.
2888
b381d62d
KS
28892001-09-06 Keith Seitz <keiths@redhat.com>
2890
2891 From Ian Roxborough <irox@redhat.com>
2892 * configure.in: Use ITCL_LIB_FULL_PATH and
2893 ITK_LIB_FULL_PATH to set Itcl and Itk dependancies
2894 for gdb.
2895 * configure: Regenerated.
2896
9a058a09
KB
28972001-09-06 Kevin Buettner <kevinb@redhat.com>
2898
2899 * dbxread.c (process_one_symbol): Don't use error result from
2900 find_stab_function_addr().
2901 * partial-stab.h (case 'F'): Likewise.
2902
2903 * partial-stab.h (case 'f'): Make SOFUN_ADDRESS_MAYBE_MISSING
2904 code match that used for case 'F'. This fixes the divergence
2905 that was introduced by my 1999-09-14 changes to partial-stab.h.
2906
2bf0cb65
EZ
29072001-09-05 Elena Zannoni <ezannoni@redhat.com>
2908
2909 * gdbarch.sh: Move include of dis-asm.h so it is generated earlier
2910 in gdbarch.h.
2911 (TARGET_PRINT_INSN): Multiarch.
2912 * gdbarch.h: Regenerate.
2913 * gdbarch.c: Regenerate.
2914
2915 * arch-utils.c (legacy_print_insn): New function.
2916 * arch-utils.h (legacy_print_insn): Export.
2917
2918 * cris-tdep.c (cris_delayed_get_disassembler): Use
2919 TARGET_PRINT_INSN, instead of tm_print_insn.
2920 * d10v-tdep.c (print_insn): Ditto.
2921 * d30v-tdep.c (print_insn): Ditto.
2922 * m32r-tdep.c (dump_insn): Ditto.
2923 * v850-tdep.c (v850_scan_prologue): Ditto.
2924 * mcore-tdep.c (mcore_dump_insn): Ditto.
2925 * sh-tdep.c (sh_gdbarch_init): Set print_insn gdbarch field.
2926
6369010f
JB
29272001-09-05 Jim Blandy <jimb@redhat.com>
2928
2929 * gdbtypes.h (struct type): Doc fix.
2930
d3d55eeb
EZ
29312001-09-04 Elena Zannoni <ezannoni@redhat.com>
2932
2933 From Daniel Jacobowitz <drow@mvista.com>
2934 * dbxread.c (free_header_files): Make global.
2935 (init_header_files): Likewise.
2936 * stabsread.h (free_header_files): Add prototype.
2937 (init_header_files): Likewise.
2938 * mdebugread.c (mdebug_build_psymtabs): Initialize
2939 properly before using the stabs debug reader.
2940
16db6055 29412001-09-04 Elena Zannoni <ezannoni@redhat.com>
ef96bde8
EZ
2942
2943 From Daniel Jacobowitz <drow@mvista.com>
2944 * dbxread.c (dbx_symfile_read): Only reinitialize
2945 the psymbol list if mainline or if both static
2946 and global lists are empty.
2947 * dwarf2read.c (dwarf2_build_psymtabs): Likewise.
2948 * dwarfread.c (dwarf_build_psymtabs): Likewise.
2949 * xcoffread.c (xcoff_initial_scan): Likewise.
2950 * os9kread.c (os9k_symfile_read): Likewise.
16db6055 2951
ef96bde8
EZ
29522001-09-04 Elena Zannoni <ezannoni@redhat.com>
2953
16db6055
EZ
2954 From Daniel Jacobowitz <drow@mvista.com>
2955 * mdebugread.c (psymtab_to_symtab_1): Handle N_SO stabs without
2956 a name specially.
2957
f77b92bf
MK
29582001-09-01 Mark Kettenis <kettenis@gnu.org>
2959
2960 Make GDB use libiberty regex implementation.
2961 * gdb_regex.h: Normalize protection against multiple inclusion.
2962 Include "xregex.h" instead of "gnu-regex.h".
2963 * cli/cli-cmds.c: Include "gdb_regex.h" instead of "gnu-regex.h".
2964 * cli/cli-decode.c: Likewise.
2965 * Makefile.in (REGEX): Remove.
2966 (GDB_CFLAGS): Remove reference to gnu-regex.h in comment.
2967 (ADD_FILES, ADD_DEPS): Remove $(REGEX).
2968 (POSSLIBS): Remove.
2969 (TAGFILES_NO_SRCDIR): Remove $(POSSLIBS).
2970 (irix5-nat.o, solib.o, solib-svr4.o, source.o, symtab.o,
2971 xcoffsolib.o, cli-decode.o, cli-cmd.o): Replace gnu-regex.h with
2972 gdb_regex.h in list of dependencies.
2973 (gnu-regex.o): Remove rule.
2974 * gnu-regex.c, gnu-regex.h: Remove files.
2975
a4f30b31
MS
29762001-08-31 Jason Molenda (jmolenda@apple.com)
2977
2978 * c-valprint.c (c_val_print): Second call to check_typedef ()
2979 is no longer necessary.
2980
902d7086
KB
29812001-08-31 Kevin Buettner <kevinb@redhat.com>
2982
2983 * ia64-tdep.c (examine_prologue): Don't let a branch unit nop
2984 terminate the prologue scan.
2985
2889e661
JB
29862001-08-30 Jim Blandy <jimb@redhat.com>
2987
9ec8e6a0
JB
2988 * symfile.c (sections_overlap): New function.
2989 (map_overlay_command): Call sections_overlap, instead of using
2990 incorrect logic to recognize overlapping sections.
2991
2889e661
JB
2992 * symfile.c (load_command): Invalidate the overlay cache.
2993
cd903d53
MK
29942001-08-30 Mark Kettenis <kettenis@gnu.org>
2995
2996 * config/i386/xm-i386.h (HOST_BYTE_ORDER): Removed.
2997
8ad2fcde
KB
29982001-08-29 Kevin Buettner <kevinb@redhat.com>
2999
3000 From 2001-08-07 Daniel Jacobowitz <drow@mvista.com>:
3001 * solib-svr4.c (enable_break): Check the inferior link map
3002 before assuming the inferior PC is at the start of the dynamic
3003 loader.
3004
e8759349
AC
30052001-08-28 Andrew Cagney <cagney@toribio.toronto.redhat.com>
3006
3007 * frame.h (struct frame_info): Fix documentation on fields
3008 saved_regs, next and prev.
3009
46711df8
MK
30102001-08-23 Mark Kettenis <kettenis@gnu.org>
3011
3012 * event-top.c (async_stop_sig) [HAVE_SIGPROCMASK]: Some
3013 gratuitious whitespace changes.
3014 [!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is defined.
3015 * top.c: Remove redundant logic to define HAVE_SIGSETMASK.
3016 (sigsetmask) Don't define macro.
3017 (stop_sig) [HAVE_SIGPROCMASK]: Add bit of code snatched from
3018 async_stop_sig from event-top.c.
3019 [!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is
3020 defined.
3021 * configure.in (AC_CHECK_FUNCS): Put functions in alphabetical
3022 order. Add sigsetmask.
3023 (AC_FUNC_VFORK, AC_FUNC_ALLOCA): Reorder such that they're in
3024 alphabetical order.
3025 * config/xm-aix4.h, config/alpha/xm-alphalinux.h,
3026 config/i386/xm-cygwin.h, config/rs6000/xm-rs6000.h
3027 (HAVE_SIGSETMASK): Remove.
964840f7 3028 * aclocal.m4, config.in, configure: Regenerated.
46711df8 3029
526eeb95
AC
30302001-08-26 Andrew Cagney <ac131313@redhat.com>
3031
3032 From 2001-06-29 Andrew Cagney <ac131313@redhat.com>:
3033 * config/powerpc/nbsd.mh (XM_FILE): Delete.
3034
c16ac28f
AC
30352001-08-21 Andrew Cagney <ac131313@redhat.com>
3036
3037 * doublest.h (HOST_FLOAT_FORMAT): Delete macro.
3038 (HOST_DOUBLE_FORMAT): Delete macro.
3039
ceacb162
MK
30402001-08-24 Mark Kettenis <kettenis@gnu.org>
3041
3042 * config/xm-lynx.h, config/xm-nbsd.h, config/xm-sysv4.h,
3043 config/i386/xm-i386aix.h, config/m68k/xm-dpx2.h: Remove redundant
3044 inclusion of <limits.h>.
3045
275f450c
AC
30462001-08-24 Andrew Cagney <ac131313@redhat.com>
3047
3048 * regcache.c (read_register_bytes): When REGISTER_NAME indicates
3049 that a register should be ignored, supply a value for the register
3050 from the raw registers[] buffer.
3051
12a498f3
AC
30522001-08-24 Andrew Cagney <ac131313@redhat.com>
3053
3054 * go32-nat.c (go32_create_inferior): Use xfree instead of free.
3055 * config/djgpp/fnchange.lst: Add entries for i386bsd-tdep.c and
3056 i386bsd-nat.c.
3057
598f52df
AC
30582001-08-21 Andrew Cagney <ac131313@redhat.com>
3059
3060 * gdbtypes.h (builtin_type_ieee_single_big)
3061 (builtin_type_ieee_single_little, builtin_type_ieee_double_big)
3062 (builtin_type_ieee_double_little)
3063 (builtin_type_ieee_double_littlebyte_bigword)
3064 (builtin_type_i387_ext, builtin_type_m68881_ext)
3065 (builtin_type_i960_ext, builtin_type_m88110_ext)
3066 (builtin_type_m88110_harris_ext, builtin_type_arm_ext_big)
3067 (builtin_type_arm_ext_littlebyte_bigword)
3068 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
3069 (builtin_type_ia64_quad_big)
3070 (builtin_type_ia64_quad_little): Declare.
3071 * gdbtypes.c (builtin_type_ieee_single_big)
3072 (builtin_type_ieee_single_little, builtin_type_ieee_double_big)
3073 (builtin_type_ieee_double_little)
3074 (builtin_type_ieee_double_littlebyte_bigword)
3075 (builtin_type_i387_ext, builtin_type_m68881_ext)
3076 (builtin_type_i960_ext, builtin_type_m88110_ext)
3077 (builtin_type_m88110_harris_ext, builtin_type_arm_ext_big)
3078 (builtin_type_arm_ext_littlebyte_bigword)
3079 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
3080 (builtin_type_ia64_quad_big)
3081 (builtin_type_ia64_quad_little): Define.
3082 (_initialize_gdbtypes): Initialize builtin floatformat types.
3083
1a6fae3c
MK
30842001-08-23 Mark Kettenis <kettenis@gnu.org>
3085
3086 * tracepoint.c (read_actions): Add FIXME for code depending on
3087 STOP_SIGNAL.
3088
7829b833
MH
30892001-08-23 Martin M. Hunt <hunt@redhat.com>
3090
3091 * remote-mips.c (pmon_load_fast): Add ui_load_progress_hook
3092 to download loop.
3093 (mips_load_srec): Ditto.
3094
701c159d
AC
30952001-08-22 Andrew Cagney <ac131313@redhat.com>
3096
3097 * gdbtypes.c (build_gdbtypes): Initialize TYPE_FLOATFORMAT field
3098 of builtin_type_float, builtin_type_double and
3099 builtin_type_long_double.
3100 (recursive_dump_type): Print the floatformat name.
3101 * gdbtypes.h (struct type): Add type_specific field floatformat.
3102 (TYPE_FLOATFORMAT): Define
3103
99a6d8ba
KS
31042001-08-21 Keith Seitz <keiths@redhat.com>
3105
3106 * printcmd.c (print_insn): Use the given stream for
3107 output.
3108
a37b3cc0
AC
31092001-07-24 Andrew Cagney <ac131313@redhat.com>
3110
3111 * arm-tdep.c (convert_from_extended, convert_to_extended): Delete
3112 assembler version of function.
3113 (convert_from_extended, convert_to_extended): Rewrite. Use
3114 floatformat_to_doublest, floatformat_from_doublest,
3115 floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword.
3116 (arm_push_arguments): Use extract_floating and store_floating to
3117 perform floating point conversions.
3118 (SWAP_TARGET_AND_HOST): Delete macro.
3119 * arm-linux-tdep.c (arm_linux_push_arguments): Use
3120 extract_floating and store_floating to perform floating point
3121 conversions.
3122
1c72f9b0
AC
31232001-08-20 Andrew Cagney <ac131313@redhat.com>
3124
3125 * gdbtypes.h (struct type): Clarify meaning of field ``length''.
3126
705da579
KS
31272001-08-17 Keith Seitz <keiths@redhat.com>
3128
3129 * varobj.c (varobj_update): Change first parameter to
3130 pointer to struct varobj*. This function can delete
3131 varobjs, so we need to give callers the new varobj
3132 when this happens.
3133 (value_of_root): Update "var", too, if "var_handle"
3134 changes.
3135 * varobj.h (varobj_update): Likewise.
3136
2bf63d86
KS
31372001-08-17 Keith Seitz <keiths@redhat.com>
3138
3139 * Makefile.in (varobj_h): Define.
3140 (mi-cmd-var.o): Depends on varobj_h.
3141 (gdbtk-varobj.o): Change varobj.h to $(varobj_h).
3142
d1c3b63a
KS
31432001-08-16 Keith Seitz <keiths@redhat.com>
3144
3145 * configure.in (GDBTK_SRC_DIR): We must have autoconf
3146 give us the absolute path to the source directory.
3147 * configure: Regenerated.
3148 * Makefile.in (GDBTK_SRC_DIR): Add variable so that
3149 autoconf can substitue it in for us.
3150 (gdbtk.o): Pass in GDBTK_SRC_DIR instead of srcdir. We
3151 really do need an absolute pathname.
3152
f0b743a9
KS
31532001-08-15 Keith Seitz <keiths@redhat.com>
3154
3155 * Makefile.in (GDBTK_VERSION): Set a version number.
3156 (GDBTK_LIBRARY): New variable to point to location where
3157 gdbtk will install its tcl library. Changed all refereneces
3158 to $(datadir)/insight1.0 to $(GDBTK_LIBRARY).
3159 (SUBDIR_GDBTK_ALL): Remove "all-gdbtk". No longer needed.
3160 (SUBDIR_GDBTK_CLEAN): Remove "clean-gdbtk". No longer needed.
3161 (all-gdbtk): Remove.
3162 (install-gdbtk): Remove.
3163 (gdbtk.o): Pass srcdir to file when compiling.
3164
31652001-08-15 Ian Roxborough <irox@redhat.com>
3166
3167 * Makefile.in: Changed all references to the install directory
3168 "gdbtcl" to read "insight1.0".
3169
bdcd319a
CV
31702001-08-15 Corinna Vinschen <vinschen@redhat.com>
3171
3172 * arch-utils.c (generic_skip_trampoline_code): New function.
3173 * arch-utils.h (generic_skip_trampoline_code): Declare external.
3174 * gdbarch.c: Regeberated from gdbarch.sh.
3175 * gdbarch.h: Ditto.
3176 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Multi-arch.
3177 * infrun.c: Remove default setting of SKIP_TRAMPOLINE_CODE macro.
3178
40b3352b
L
31792001-08-14 Daniel Jacobowitz <drow@mvista.com>
3180 H.J. Lu (hjl@gnu.org)
3181
3182 * partial-stab.h: valu should be a CORE_ADDR.
3183
31842001-08-14 H.J. Lu (hjl@gnu.org)
3185
3186 * dbxread.c (SWAP_SYMBOL): Removed.
3187 (INTERNALIZE_SYMBOL): Check sign extended vma.
3188
ae9d9b96
CF
31892001-08-13 Christopher Faylor <cgf@cygnus.com>
3190
3191 * top.c (SIGSETJMP): Protect env argument with parentheses.
3192 (SIGLONGJMP): Protect env argument with parentheses.
3193
6ca173e3
AC
31942001-08-11 Andrew Cagney <ac131313@redhat.com>
3195
3196 * config/mn10300/mn10300.mt (TM_FILE): Delete.
3197 * configure.tgt: Add mn10300 to list of mulit-arch targets.
3198 * config/mn10300/tm-mn10300.h: Delete file. Move contents ...
3199 * mn10300-tdep.c: To here.
3200
5ea92dfe
AC
32012001-08-11 Andrew Cagney <ac131313@redhat.com>
3202
3203 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_VIRTUAL): Make
3204 val a DOUBLEST. Use floatformat_to_doublest.
3205 (REGISTER_CONVERT_TO_RAW): Ditto. Use foatformat_from_doublest.
3206 * config/m88k/tm-m88k.h (REGISTER_CONVERT_TO_VIRTUAL): Ditto.
3207 (REGISTER_CONVERT_TO_RAW): Ditto.
3208
a15525c1
AC
32092001-08-11 Andrew Cagney <ac131313@redhat.com>
3210
3211 * config/mn10300/tm-mn10300.h (PC_REGNUM, SP_REGNUM): Delete.
3212 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize pc_regnum and
3213 sp_regnum.
3214
c422e771
AC
32152001-08-11 Andrew Cagney <ac131313@redhat.com>
3216
3217 * doublest.c (convert_doublest_to_floatformat): Rename
3218 floatformat_from_doublest. Make static.
3219 (convert_floatformat_to_doublest): Rename floatformat_to_doublest.
3220 Make static.
3221 (floatformat_to_doublest): New function.
3222 (floatformat_from_doublest): New function.
3223 (host_float_format, host_double_format, host_long_double_format):
3224 New static variables.
3225 (store_floating, extract_floating): Always use
3226 floatformat_to_doublest and floatformat_from_doublest.
3227 * doublest.h (HOST_LONG_DOUBLE_FORMAT): Delete macro.
3228
f096a152
AC
32292001-08-11 Andrew Cagney <ac131313@redhat.com>
3230
3231 * config/mn10300/tm-mn10300.h (INIT_FRAME_PC): Delete.
3232 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize init_frame_pc.
3233
39d4ef09
AC
32342001-08-07 Andrew Cagney <ac131313@redhat.com>
3235
3236 * target.h (TARGET_VIRTUAL_FRAME_POINTER): Delete, multi-arched.
3237 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Add.
3238 * gdbarch.h, gdbarch.c: Regenerate.
3239
3240 * arch-utils.h (legacy_virtual_frame_pointer): Declare.
3241 * arch-utils.c: Include "gdb_assert.h".
3242 (legacy_virtual_frame_pointer): Define.
3243 * Makefile.in (arch-utils.o): Depends on gdb_assert.h.
3244
3245 * tracepoint.c (encode_actions): Make frame_reg an int. Make
3246 frame_offset a LONGEST.
3247 * ax-gdb.c (gen_frame_args_address): Ditto.
3248 (gen_frame_locals_address): Ditto.
3249 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize
3250 virtual_frame_pointer.
3251 (mn10300_virtual_frame_pointer): Make static. Update parameter
3252 list to match function signature.
3253 * config/mn10300/tm-mn10300.h (TARGET_VIRTUAL_FRAME_POINTER): Delete.
3254
67c2c32c
KS
32552001-08-10 Keith Seitz <keiths@redhat.com>
3256
3257 * gdb-events.sh: Add architecture_changed event.
3258 * gdbarch.sh: Include gdb-event.h.
3259 (gdbarch_update_p): Notify UIs when architecture changes.
3260 * gdb-events.h: Regenerated.
3261 * gdb-events.c: Regenerated.
3262 * gdbarch.c: Regenerated.
3263
1297a2f0
MS
32642001-08-10 Michael Snyder <msnyder@redhat.com>
3265
3266 * regcache.c (legacy_write_register_gen): Don't 'optimize out'
3267 a write_register to a pseudo-reg. Target_store_pseudo_register
3268 needs to get called, because these regs may be computed and may
3269 have side-effects.
3270
fd969be2
KS
32712001-08-10 Keith Seitz <keiths@redhat.com>
3272
3273 * gdb-events.sh: Deal with event notifications with no
3274 arguments.
3275
fb6e5c55
OF
32762001-08-10 Orjan Friberg <orjanf@axis.com>
3277
3278 * remote.c (read_frame): Correct off-by-one error in condition.
3279
a1bab801
DH
32802001-08-08 Don Howard <dhoward@redhat.com>
3281
3282 * stabsread.c (read_type): Add support for const and volatile
3283 modifiers.
3284
455ecc72
DJ
32852001-08-02 Daniel Jacobowitz <drow@mvista.com>
3286
3287 * core-regset.c (fetch_core_registers): Remove HAVE_GREGSET_T
3288 and HAVE_FPREGSET_T checks. Use gdb_gregset_t and gdb_fpregset_t.
3289
a5cedf2f
KS
32902001-08-02 Keith Seitz <keiths@redhat.com>
3291
3292 * defs.h (SLASH_STRING): If not defined, set
3293 to "/", regardless of _WIN32, __CYGWIN__, or
3294 whatnot.
3295
d7275149
MK
32962001-08-02 Mark Kettenis <kettenis@gnu.org>
3297
cc6dd2c0
MK
3298 * cli/cli-decode.h: Include "gdb_regex.h" instead of
3299 "gnu-regex.h".
3300
d7275149
MK
3301 * NEWS: Update.
3302
40cd916f
EZ
33032001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
3304
3305 * config/i386/xm-go32.h: Include xm-i386.h.
3306 (HOST_BYTE_ORDER, HOST_LONG_DOUBLE_FORMAT): Remove definitions.
3307
b5de0fa7
EZ
33082001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
3309
3310 The following changes avoid polluting global namespace with the
3311 `enable' and `disable' identifiers, because some platforms define
3312 in their system headers symbols with global scope that go by those
3313 names.
3314
3315 * breakpoint.h (enum enable_state): Rename from `enum enable'.
3316 Also rename all the enum members to have the "bp_" prefix.
3317 (struct breakpoint): Rename the `enable' member to `enable_state'.
3318 (enum bpdisp): Rename all members to have the "disp_" prefix.
3319
3320 * breakpoint.c: All users of `enum enable' and `enum bpdisp'
3321 changed.
3322 (args_for_catchpoint_enable): Rename the `enable' member to
3323 `enable_p'. All users changed.
3324
3325 * tracepoint.h (enum enable): Remove.
3326 (struct tracepoint): The member `enabled' is now `int enabled_p'.
3327
3328 * tracepoint.c: All users of the `enabled' member changed.
3329
3330 * printcmd.c (struct display): The `status' member is now an int.
3331
3332 * memattr.h (struct mem_region): Rename the `status' member to
3333 `enabled_p'.
3334 (enum enable): Remove.
3335
3336 * memattr.c: Change all users of the `status' member of struct
3337 mem_region to use `enabled_p' instead.
3338
3339 * infcmd.c (run_stack_dummy): Use disp_del instead of del.
3340
3341 * go32-nat.c: Remove the kludgey work-around for conflicts between
3342 <dos.h> and "breakpoint.h".
3343
ad4571f3
CV
33442001-08-02 Corinna Vinschen <vinschen@redhat.com>
3345
3346 * MAINTAINERS: Add myself to the write-after-approval list.
3347 * ser-tcp.c (tcp_open): Use `localhost' as default host if no
3348 hostname is given.
3349
64f6fcad
AC
33502001-08-01 Andrew Cagney <ac131313@redhat.com>
3351
3352 * doublest.h (store_floating, floatformat_to_doublest): Make IN
3353 paramter a const void pointer.
3354 (floatformat_from_doublest): Make IN const, Make OUT a void
3355 pointer.
3356 * doublest.c (floatformat_to_doublest): Update.
3357 (floatformat_from_doublest): Update.
3358 (extract_floating): Update.
3359
d16aafd8
AC
33602001-07-31 Andrew Cagney <ac131313@redhat.com>
3361
3362 * defs.h (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3363 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3364 (HOST_LONG_DOUBLE_FORMAT, DOUBLEST)
3365 (floatformat_to_doublest, floatformat_from_doublest)
3366 (floatformat_is_negative, floatformat_is_nan)
3367 (floatformat_mantissa, store_floating)
3368 (extract_floating): Move declaration from here.
3369 * doublest.h: To here. New file.
3370 * utils.c (get_field, floatformat_to_doublest, put_field)
3371 (ldfrexp, floatformat_from_doublest, floatformat_is_negative)
3372 (floatformat_is_nan, floatformat_mantissa)
3373 (FLOATFORMAT_CHAR_BIT): Move from here.
3374 * doublest.c: To here. New file.
3375 * findvar.c (store_floating, extract_floating): Move from here.
3376 * doublest.c: To here.
3377 * Makefile.in (SFILES): Add doublest.c.
3378 (COMMON_OBS): Add doublest.o.
3379 (doublest.o): Specify dependencies.
3380 (doublest_h): Define.
3381
3382 * config/m88k/tm-m88k.h: Include "doublest.h".
3383 * config/i960/tm-i960.h: Ditto.
3384 * config/i386/tm-symmetry.h: Ditto.
3385 * rs6000-tdep.c, valarith.c: Ditto.
3386 * valprint.c, stabsread.c, sh-tdep.c: Ditto.
3387 * ia64-tdep.c, i387-tdep.c, i386-tdep.c: Ditto.
3388 * values.c, arm-tdep.c, arm-linux-tdep.c: Ditto.
3389 * alpha-tdep.c, ax.h, expression.h: Ditto.
3390 * sh-tdep.c, parse.c, top.c, value.h: Ditto.
3391
3392 * Makefile.in (arm-tdep.o): Add $(doublest_h).
3393 (i386-tdep.o, i387-tdep.o, ia64-tdep.o): Ditto.
3394 (rs6000-tdep.o, stabsread.o, valarith.o): Ditto.
3395 (values.o, valprint.o, arm-linux-tdep.o): Ditto.
3396 (alpha-tdep.o, ax_h, parse.o, top.o, value_h): Ditto.
3397 (parser_defs_h): Ditto.
3398 (expression_h): Add $(doublest_h) and $(symtab_h).
3399
1b0cad1c
AC
34002001-08-01 Andrew Cagney <ac131313@redhat.com>
3401
3402 * Makefile.in: Sort header definitions.
3403 (parser_defs_h, dis_asm_h, annotate_h, gdbthread_h): Define.
3404 Replace parser-defs.h with $(parser_defs_h). Replace $(dis-asm_h)
3405 and $(dis-asm.h) with $(dis_asm_h). Replace annotate.h with
3406 $(annotate_h). Replace target.h with $(target_h). Replace
3407 gdbthread.h with $(gdb_thread_h). Replace symfile.h with $(symfile_h).
3408
1ca66634
MK
34092001-07-31 Mark Kettenis <kettenis@gnu.org>
3410
3411 * config/i386/xm-i386.h: New file.
3412 * config/i386/xm-fbsd.h: Removed.
3413 * config/i386/xm-linux.h: Removed.
3414 * config/i386/fbsd.mh: Reorganize a bit.
3415 (XM_FILE): Set to xm-i386.h instead of xm-fbsd.h.
3416 * config/i386/linux.mh (XM_FILE): Set to xm-i386.h insread of
3417 xm-linux.h.
3418
9e84cbde
JB
34192001-07-30 Jim Blandy <jimb@redhat.com>
3420
3421 * dwarf2read.c (dwarf2_build_psymtabs_hard): Doc fix.
3422
72473524
DJ
34232001-07-27 Daniel Jacobowitz <drow@mvista.com>
3424
3425 * configure.in: Only invoke AC_FUNC_SETPGRP if not cross-compiling.
3426 Check for SETPGRP_VOID separately if cross-compiling and ISO C
3427 headers are available.
3428
8d7f6b4a
MK
34292001-07-30 Mark Kettenis <kettenis@gnu.org>
3430
4b418e06
MK
3431 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Redefine to call
3432 i386_dwarf_reg_to_regnum.
3433
8d7f6b4a
MK
3434 * i386-tdep.c (i386_register_convert_to_virtual): Replace
3435 assertion with a warning if we're asked to convert towards a
3436 non-floating-point type. Zero out the the buffer where the data
3437 is supposed to be stored in that case.
3438
6c56c069
EZ
34392001-07-29 Eli Zaretskii <eliz@is.elta.co.il>
3440
f959bc41
EZ
3441 * config/djgpp/djconfig.sh: Unset CDPATH.
3442
a3b9cbb3
EZ
3443 * go32-nat.c (get_cr3): Temporary disable support for page tables
3444 in UMBs, as it is incomplete.
3445
6c56c069
EZ
3446 Support for stepping through longjmp in DJGPP programs:
3447
3448 * config/i386/tm-go32.h (JB_ELEMENT_SIZE, JB_PC): New macros.
3449 (GET_LONGJMP_TARGET): Define to call get_longjmp_target.
3450 (get_longjmp_target): Add prototype.
3451
de6ee558
AC
34522001-07-28 Andrew Cagney <ac131313@redhat.com>
3453
3454 Fix some PID/TPID fallout for HP/UX.
3455 From 2001-07-22 Rodney Brown <rbrown64@csc.com.au>:
3456 * infttrace.c (ptrace_wait): Match external declaration,
3457 and match target_post_wait declaration.
3458
93755ae6
AC
34592001-07-28 Andrew Cagney <ac131313@redhat.com>
3460
3461 * MAINTAINERS: Add Orjan Friberg as cris target maintainer.
158ff1e6 3462 (cris): Set --enable-gdb-build-warnings flag to -w.
93755ae6 3463
16f769f3
AC
34642001-07-28 Andrew Cagney <ac131313@redhat.com>
3465
3466 From 2001-07-23 Andreas Schwab <schwab@suse.de>:
3467 * config/m68k/tm-m68k.h (TARGET_LONG_DOUBLE_FORMAT): Define.
3468 (TARGET_LONG_DOUBLE_BIT): Define.
3469 (REGISTER_VIRTUAL_SIZE): Return 12 for floating point registers.
3470 (MAX_REGISTER_VIRTUAL_SIZE): Increase to 12.
3471 (REGISTER_VIRTUAL_TYPE): Return builtin_type_long_double for
3472 floating point registers.
3473 (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL)
3474 (REGISTER_CONVERT_TO_RAW): Remove.
3475 * config/m68k/xm-linux.h (HOST_LONG_DOUBLE_FORMAT): Define.
3476
5b7f31a4
AC
34772001-07-26 Andrew Cagney <ac131313@redhat.com>
3478
3479 * thread.c, breakpoint.c: Include "gdb.h".
3480 * Makefile.in (gdb_h): Define.
3481 (HFILES_NO_SRCDIR): Add gdb.h.
3482 (mi-cmd-break.o, mi-main.o, thread.o)
3483 (breakpoint.o): Add dependency on $(gdb_h).
3484
3485 * defs.h (enum gdb_rc, gdb_breakpoint_query)
3486 (gdb_breakpoint, gdb_thread_select)
3487 (gdb_list_thread_ids): Move declaration from here ...
3488 * gdb.h: To here. New file.
3489
8aaf581c
SC
34902001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3491
3492 * Makefile.in (SUBDIR_TUI_OBS): Add tui-out.o, tui-hooks.o.
3493 (SUBDIR_TUI_SRCS): Add tui-out.c tui-hooks.c
3494 (SFILES): Likewise.
3495 (tui-out.o): Define dependencies.
3496 (tui-hooks.o): Likewise.
3497
f9e2d830
AC
34982001-07-28 Andrew Cagney <ac131313@redhat.com>
3499
3500 * MAINTAINERS: Update e-mail address of active @cygnus.com
3501 maintainers to @redhat.com.
3502
de6ed73f
AC
35032001-07-28 Andrew Cagney <ac131313@redhat.com>
3504
3505 * README (Known bugs): Delete section.
3506 (Kernel debugging): Delete section.
3507 (Languages other than C): Delete section.
3508 (Host/target specific installation notes) New section.
3509
3d261580
MK
35102001-07-28 Mark Kettenis <kettenis@gnu.org>
3511
85540d8c
MK
3512 * config/i386/tm-i386.h (STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3513 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): New defines.
3514 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): New
3515 prototypes.
3516 * config/i386/tm-fbsd.h, config/i386/tm-i386gnu.h,
3517 config/i386/tm-linux.h (STAB_REG_TO_REGNUM): Redefine to call
3518 i386_dwarf_reg_to_regnum.
3519 * i386-tdep.c (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum):
3520 New functions.
3521
3d261580
MK
3522 * i386-tdep.c: Include "gdb_assert.h"
3523 (i386_register_convert_to_virtual): Fix such that it can handle
3524 conversion to any floating-point type. Assert that we are dealing
3525 with a floating-point first.
3526 (i386_register_convert_to_raw): Assert that TYPE is a
3527 floating-point type with length 12.
3528
2db5ca22
JM
35292001-07-27 John R. Moore <jmoore@redhat.com>
3530
3531 * configure.in: Added dependency of gdb on tcl/tk libraries.
3532 * Makefile.in: Likewise.
3533 * configure: Regenerated with the above using autoconf.
3534
88e04cc1
EZ
35352001-07-26 Elena Zannoni <ezannoni@redhat.com>
3536
3537 * sh-tdep.c (sh_gdbarch_init): Use SH_DEFAULT_NUM_REGS instead of
3538 NUM_REGS.
3539 (SH_DEFAULT_NUM_REGS): Define.
3540
2033c18a
EZ
35412001-07-26 Eli Zaretskii <eliz@is.elta.co.il>
3542
3543 * go32-nat.c (read_memory_region): Make sure the segment limit was
3544 indeed set, to work around a Windows 2000 bug.
3545
9f30d7f5
DJ
35462001-07-25 Daniel Jacobowitz <drow@mvista.com>
3547
3548 * infptrace.c (child_xfer_memory): Add cast to CORE_ADDR.
3549 * infttrace.c (child_xfer_memory): Likewise.
3550 * symm-nat.c (child_xfer_memory): Likewise.
3551 * gdbserver/low-hppabsd.c (read_inferior_memory): Likewise.
3552 (write_inferior_memory): Likewise.
3553 * gdbserver/low-linux.c (read_inferior_memory): Likewise.
3554 (write_inferior_memory): Likewise.
3555 * gdbserver/low-lynx.c (read_inferior_memory): Likewise.
3556 (write_inferior_memory): Likewise.
3557 * gdbserver/low-nbsd.c (read_inferior_memory): Likewise.
3558 (write_inferior_memory): Likewise.
3559 * gdbserver/low-sparc.c (read_inferior_memory): Likewise.
3560 (write_inferior_memory): Likewise.
3561 * gdbserver/low-sun3.c (read_inferior_memory): Likewise.
3562 (write_inferior_memory): Likewise.
3563
e23194cb
EZ
35642001-07-25 Eli Zaretskii <eliz@is.elta.co.il>
3565
966beb0f
EZ
3566 * README: Mention how to make gdb.pdf.
3567
e23194cb
EZ
3568 * NEWS: Update.
3569
7c542009
SS
35702001-07-24 Stephen P. Smith <ischis2@home.com>
3571
a3f3e535
SS
3572 * MAINTAINERS (Stephen P. Smith): Added to write after approval
3573 list.
3574
675fb869
AC
35752001-07-23 Andrew Cagney <ac131313@redhat.com>
3576
3577 * mips-tdep.c (mips_push_arguments): Add comment explaining
3578 problem with LE o32 GCC.
3579
a7019e23
EZ
35802001-07-23 Elena Zannoni <ezannoni@redhat.com>
3581
3582 * config/powerpc/aix.mh (MH_LDFLAGS): Don't set these, the Gnu linker
3583 doesn't understand them.
3584
ab35b611
EZ
35852001-07-23 Elena Zannoni <ezannoni@redhat.com>
3586
3587 * memattr.c (mem_info_command): Reformat output to look more like
3588 'info break' output.
3589 (_initialize_mem): Improve help.
3590
0200359f
MK
35912001-07-23 Mark Kettenis <kettenis@gnu.org>
3592
3593 * configure.in (AC_CHECK_FUNCS): Add setpggrp.
3594 (AC_FUNC_SETPGRP): Add.
3595 * aclocal.m4, configure, config.in: Regenerated.
3596 * inflow.c (gdb_setpgid): Get rid of NEED_POSIX_SETPGID and
3597 SETPGRP_ARGS. Always use setpgid if it is available, fall back on
3598 setpgrp if it isn't. Use SETPGRP_VOID (defined by autoconf) to
3599 distinguish between the two setpgrp flavours.
3600 * config/xm-sysv4.h, config/arm/xm-linux.h,
3601 config/i386/xm-i386aix.h, config/i386/xm-sco.h,
3602 config/i386/xm-linux.h, config/i386/xm-ptx.h,
3603 config/m68k/xm-linux.h, config/powerpc/xm-linux.h,
3604 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h,
3605 config/ia64/xm-linux.h (NEED_POSIX_SETPGID): Remove.
3606 * config/rs6000/xm-rs6000.h (SETPGRP_ARGS): Remove.
3607
9f20bf26
EZ
36082001-07-23 Eli Zaretskii <eliz@is.elta.co.il>
3609
3610 * go32-nat.c (read_memory_region): Set the granularity bit of the
3611 allocated segment according to its size, and adjust the limit to
3612 be page-aligned if the segment is page-granular.
3613
3614 * (get_cr3, get_pde, get_pte, display_ptable_entry, go32_pde)
3615 (display_page_table, go32_pte, go32_pte_for_address): New functions.
3616 (_initialize_go32_nat): Initialize and document them.
3617
383d750b
MK
36182001-07-22 Mark Kettenis <kettenis@gnu.org>
3619
3620 * i386gnu-nat.c: Include "i387-nat.h".
3621 (struct env387): Removed.
3622 (reg_offset): Fix comment.
3623 (fetch_fpregs): Use FCTRL_REGNUM and FOP_REGNUM instead of
3624 FIRST_FPU_CONTROL_REGNUM and LAST_FPU_CONTROL_REGNUM. Rewrite to
3625 use i387_supply_fsave.
3626 (gnu_fetch_registers): Remove spurious whitespace.
3627 (convert_to_env387): Remove.
3628 (store_fpregs): Add argument regno. Use i387_fill_fsave instead
3629 of convert_to_env387.
3630 (gnu_store_registers): Remove spurious whitespace. Pass REGNO to
3631 store_fpregs.
3632 * config/i386/i386gnu.mt (TDEPFILES): Add i387-tdep.o.
3633 * config/i386/i386gnu.mh (XDEPFILES): Remove i387-tdep.o.
3634 (NATDEPFILES): Add i387-nat.o.
3635
1a12f22f
SC
36362001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3637
3638 * Makefile.in (ALLDEPFILES): Add m68hc11-tdep.c.
3639 (m68hc11-tdep.o): Define dependencies.
3640
7d32ba20
SC
36412001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3642
3643 * m68hc11-tdep.c (m68hc11_gdbarch_init): Define int at 16-bits.
3644
5ecb1806
SC
36452001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3646
3647 * utils.c (init_page_info): Use tui_get_command_dimension.
3648 * printcmd.c (disassemble_command): Simplify tui specific code,
3649 use tui_is_window_visible, tui_show_assembly.
3650
25630444
MK
36512001-07-21 Mark Kettenis <kettenis@gnu.org>
3652
3653 * i386bsd-nat.c: Do not include <sys/sysctl.h>.
3654 (_initialize_i386bsd_nat) [KERN_PS_STRINGS]: Move FreeBSD-specific
3655 code to ...
3656 * i386fbsd-nat.c: ... here. New file.
3657 * config/i386/fbsd.mh (NATDEPFILES): Add i386-fbsd.o.
3658 * config/i386/nm-fbsd.h (CHILD_RESUME): Define.
3659 * Makefile.in (ALLDEPFILES): Add i386fbsd-nat.c.
3660 (i386fbsd-nat.o): Add dependencies.
3661
0150732f
DJ
36622001-07-19 Daniel Jacobowitz <drow@mvista.com>
3663
3664 * signals.c: New file.
3665 * Makefile.in: Add signals.o.
3666 * target.c (struct signals, target_signal_to_name)
3667 (target_signal_from_name, target_signal_from_host)
3668 (do_target_signal_to_host, target_signal_to_host_p)
3669 (target_signal_to_host, target_signal_from_command): Move to
3670 signals.c.
3671 (initialize_targets): Move check of struct signals to...
3672 * signals.c (_initialize_signals): Here.
3673
e36118e7
AC
36742001-07-19 Andrew Cagney <ac131313@redhat.com>
3675
3676 * MAINTAINERS: Add Michael Chastain as C++ testsuite maintainer.
3677
b4fc7a30
AC
36782001-07-19 Andrew Cagney <ac131313@redhat.com>
3679
3680 From Stephen Smith:
3681 * configure.tgt (i*86-*-pe*): New target.
3682
4b048bc0
AC
36832001-07-19 Andrew Cagney <ac131313@redhat.com>
3684
3685 From 2001-07-16 Rodney Brown <rbrown64@csc.com.au>:
3686 * infttrace.c (child_thread_alive): Fix gdb_tid typo.
3687 * somsolib.c (no_shared_libraries): Provide stub.
3688 * xcoffsolib.c (no_shared_libraries): Provide stub.
3689
227288a0
SC
36902001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3691
3692 * Makefile.in (COMMON_OBS): Remove tui-file.o.
3693 (SUBDIR_TUI_OBS): Add it here.
3694 (SUBDIR_TUI_SRCS): Move tui-file.c and tui-file.h here.
3695 (main.o): Remove dependency with tui-file.h.
3696
f9eb4b01
EZ
36972001-07-17 Elena Zannoni <ezannoni@redhat.com>
3698
3699 * Makefile.in (tui-file.o): Update dependencies.
3700
d0c8cdfb
EZ
37012001-07-17 Elena Zannoni <ezannoni@redhat.com>
3702
3703 * top.c (catch_errors): Convert PTR to void * in parameters list.
3704 (quit_cover): Ditto.
3705
063190b6
SC
37062001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3707
3708 * source.c (find_source_lines): Remove tui test, must be replaced
3709 by appropriate warning hook.
3710 (print_source_lines): Remove tui hacks, must be replaced by cli.
3711 (forward_search_command): Remove tui hacks, can be replaced by
3712 appropriate calls to identify_source_line when tui scrolls.
3713 (reverse_search_command): Likewise.
3714
cf759d3b
ND
37152001-07-16 Nick Duffek <nsd@redhat.com>
3716
3717 * remote.c (init_remote_ops, init_remote_cisco_ops,
3718 init_remote_async_ops): Set to_pid_to_str and
3719 to_extra_thread_info correctly and in the same order as declared
3720 in target.h.
3721
0caabb7e
AC
37222001-07-16 Andrew Cagney <ac131313@redhat.com>
3723
3724 * remote.c: Revert below. Included more than intended.
3725
943b3971
ND
37262001-07-16 Nick Duffek <nsd@redhat.com>
3727
3728 * remote.c (init_remote_ops, init_remote_cisco_ops,
3729 init_remote_async_ops): Set to_pid_to_str and
3730 to_extra_thread_info correctly and in the same order as declared
3731 in target.h.
3732
9ed10b08
ND
37332001-07-16 Nick Duffek <nsd@redhat.com>
3734
3735 * findvar.c (read_var_value): Apply value_as_pointer() to
3736 addresses retrieved from the target for LOC_BASEREG and
3737 LOC_BASEREG_ARG variables.
3738
24be5c34
OF
37392001-07-16 Orjan Friberg <orjanf@axis.com>
3740
3741 * NEWS: New target CRIS.
3742
314b6fb7
EZ
37432001-07-16 Elena Zannoni <ezannoni@redhat.com>
3744
3745 * top.c (show_commands): Remove extern decl of history_get, it's
3746 already in readline/history.h.
3747
210661e7
EZ
37482001-07-16 Elena Zannoni <ezannoni@redhat.com>
3749
3750 * top.c (is_complete_command, init_cmd_lists, init_cli_cmds,
3751 execute_user_command, do_setshow_command, get_prompt, init_proc,
3752 serial_log_command): Remove extern declarations. Include
3753 cli/cli-cmds.h, cli/cli-script.h, cli/cli-setshow.h, serial.h.
3754 * gdbcmd.h (execute_user_command): Remove declaration, it's already
3755 in cli/cli-script.h.
3756 * command.h (do_setshow_command): Remove declaration, it's already
3757 in cli/cli-setshow.h.
3758 * infrun.c: Include "cli/cli-script.h" for execute_user_command.
3759 * Makefile.in (infrun.o): Update dependencies.
3760 (top.o): Ditto.
3761 * cli/cli-setshow.h: Add comment for do_setshow_command.
3762
2584159e
EZ
37632001-07-16 Eli Zaretskii <eliz@is.elta.co.il>
3764
3765 * cli/cli-cmds.c (shell_escape) [GLOBAL_CURDIR]: Condition the
3766 call to chdir on this symbol rather than on __DJGPP__.
3767 (CANT_FORK) [__MSDOS__]: Move from here...
3768 * defs.h (CANT_FORK) [__MSDOS__]: ...to here.
3769 (GLOBAL_CURDIR) [__MSDOS__]: Define.
3770
cf54db79
OF
37712001-07-16 Orjan Friberg <orjanf@axis.com>
3772
3773 * configure.tgt: Recognise the CRIS architecture.
3774 * config/cris/cris.mt: New file for CRIS target.
3775 * cris-tdep.c: New file for CRIS target.
3776
64cdedad
EZ
37772001-07-15 Elena Zannoni <ezannoni@redhat.com>
3778
3779 * top.c (quit_cover, float_handler): Move definition up before use.
3780 (gdb_init): Move to end of file, to avoid calls to not yet defined
3781 functions.
3782 Delete prototypes.
3783
2cd58942
AC
37842001-07-14 Andrew Cagney <ac131313@redhat.com>
3785
3786 * serial.h (SERIAL_ASYNC): Delete.
3787 (DEPRECATED_SERIAL_FD): Delete.
3788 (SERIAL_DEBUG): Delete.
3789 (SERIAL_DEBUG_P): Delete.
3790 (SERIAL_DRAIN_OUTPUT): Delete.
3791 (SERIAL_FLUSH_OUTPUT): Delete.
3792 (SERIAL_FLUSH_INPUT): Delete.
3793 (SERIAL_SEND_BREAK): Delete.
3794 (SERIAL_RAW): Delete.
3795 (SERIAL_GET_TTY_STATE): Delete.
3796 (SERIAL_SET_TTY_STATE): Delete.
3797 (SERIAL_PRINT_TTY_STATE): Delete.
3798 (SERIAL_NOFLUSH_SET_TTY_STATE): Delete.
3799 (SERIAL_SETBAUDRATE): Delete.
3800 (SERIAL_SETSTOPBITS): Delete.
3801 (SERIAL_CAN_ASYNC_P): Delete.
3802 (SERIAL_IS_ASYNC_P): Delete.
3803 (SERIAL_UN_FDOPEN): Delete.
3804 (SERIAL_READCHAR): Delete.
3805 (SERIAL_CLOSE): Delete.
3806 (SERIAL_FDOPEN): Delete.
3807 (SERIAL_OPEN): Delete.
3808 * ser-unix.c: Update.
3809 * sparclet-rom.c: Update.
3810 * remote-bug.c: Update.
3811 * dsrec.c: Update.
3812 * xmodem.c: Update.
3813 * nindy-share/ttyflush.c: Update.
3814 * nindy-share/Onindy.c: Update.
3815 * utils.c: Update.
3816 * serial.c: Update.
3817 * remote-nindy.c: Update.
3818 * inflow.c: Update.
3819 * sparcl-tdep.c: Update.
3820 * sh3-rom.c: Update.
3821 * remote.c: Update.
3822 * remote-utils.c: Update.
3823 * remote-st.c: Update.
3824 * remote-sds.c: Update.
3825 * remote-rdp.c: Update.
3826 * remote-os9k.c: Update.
3827 * remote-nrom.c: Update.
3828 * remote-mips.c: Update.
3829 * remote-es.c: Update.
3830 * remote-e7000.c: Update.
3831 * remote-array.c: Update.
3832 * ocd.c: Update.
3833 * nindy-share/nindy.c: Update.
3834 * monitor.c: Update.
3835
ea7c478f
AC
38362001-07-14 Andrew Cagney <ac131313@redhat.com>
3837
3838 * mn10200-tdep.c: Replace value_ptr with ``struct value *''.
3839 * mcore-tdep.c: Ditto.
3840 * sparc-tdep.c: Ditto.
3841 * sh-tdep.c: Ditto.
3842 * rs6000-tdep.c: Ditto.
3843 * ppc-linux-tdep.c: Ditto.
3844 * m68hc11-tdep.c: Ditto.
3845 * ia64-tdep.c: Ditto.
3846 * i386-tdep.c: Ditto.
3847 * arm-linux-tdep.c: Ditto.
3848 * hppa-tdep.c: Ditto.
3849 * h8500-tdep.c: Ditto.
3850 * fr30-tdep.c: Ditto.
3851 * arm-tdep.c: Ditto.
3852 * alpha-tdep.c: Ditto.
3853 * d30v-tdep.c: Ditto.
3854 * d10v-tdep.c: Ditto.
3855 * m32r-tdep.c: Ditto.
3856 * mips-tdep.c: Ditto.
3857 * v850-tdep.c: Ditto.
3858
d75b5104
EZ
38592001-07-15 Elena Zannoni <ezannoni@redhat.com>
3860
3861 * top.c (readline_line_completion_function, noop_completer): Move
3862 from here...
3863 * completer.c (readline_line_completion_function, noop_completer):
3864 ...to here.
3865 * gdbcmd.h (readline_line_completion_function, noop_completer):
3866 Move declarations from here...
3867 * completer.h (readline_line_completion_function, noop_completer):
3868 ...to here.
3869 * corefile.c: Include completer.h.
3870 * source.c: Ditto.
3871 * symfile.c: Ditto.
3872 * Makefile.in: Update dependencies.
3873
150985e3
EZ
38742001-07-15 Eli Zaretskii <eliz@is.elta.co.il>
3875
3876 * go32-nat.c (go32_create_inferior): Support command lines longer
3877 than 126 characters.
3878
def90278
SC
38792001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3880
3881 * NEWS: New target 68HC11/68HC12.
3882
37767e42
SC
38832001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3884
3885 * utils.c (query): Remove tui hacks; tui must use the query_hook.
3886 * top.c (command_loop): Remove tui insert_mode hacks; don't call
3887 tuiCleanUp because this must be made with atexit by tui.
3888 * symfile.c (symbol_file_command): Remove call to TUIDO
3889 * stack.c (show_and_print_stack_frame_stub): Remove tui check;
3890 not necessary when using the selected frame hooks.
3891 (print_stack_frame_stub): Likewise.
3892 (print_frame_info_base): Likewise.
3893 (print_frame_info): Likewise.
3894 (up_silently_command): Likewise.
3895 (down_silently_command): Likewise.
3896 (show_stack_frame): Likewise for TUIDO.
3897 (select_frame): Likewise.
3898 (select_and_print_frame): Likewise.
3899 (stack_publish_stopped_with_no_frame): Remove.
3900 (select_and_maybe_print_frame): Remove.
3901 * main.c (captured_main): Remove tui_fileopen and tuiInit; tui
3902 must use the initialize ui hook.
3903 * infrun.c (normal_stop): Remove call to TUIDO; tui must use the
3904 selected frame hooks.
3905 * event-top.c (command_handler): Remove tui insert_mode hack.
3906 * defs.h: Remove TUIDO; Only include tui.h.
3907 * breakpoint.c (mention): Remove calls to TUIDO.
3908 (delete_breakpoint): Remove tui hacks; tui must install
3909 the breakpoint hooks.
3910
0123ceaf
MK
39112001-07-14 Mark Kettenis <kettenis@gnu.org>
3912
1fe7ac85
MK
3913 * config/i386/xm-linux.h (KERNEL_U_ADDR): Move from here...
3914 * config/i386/nm-linux.h: ...to here. Change comments about user
3915 area/struct a bit.
3916
d0f3ce3c
MK
3917 * config/i386/xm-linux.h (HAVE_TERMIOS): Really remove.
3918
0123ceaf
MK
3919 * Makefile.in (ALLDEPFILES): Add i386bsd-nat.c and i386bsd-tdep.c
3920 (i386bsd-tdep.o, i386bsd-nat.o): New targets.
3921
4902674b
EZ
39222001-07-13 Elena Zannoni <ezannoni@redhat.com>
3923
3924 * remote-e7000.c (fetch_regs_from_dump): If register set is null,
3925 generate an internal error.
3926 (e7000_fetch_registers): Initialize variable 'wanted'.
3927 (e7000_wait): Initialize variable 'wanted_nopc'.
3928 (e7000_store_register): Fix sprintf compiler warnings.
3929 (sub2_from_pc): Ditto.
3930 (e7000_open): Close the descriptor, not the name.
3931 (e7000_load): Fix compiler warnings.
3932 (sub2_from_pc): Ditto.
3933 * Makefile.in (remote-e7000.o): Can now compile with -Werror.
3934
b7247919
MK
39352001-07-13 Mark Kettenis <kettenis@gnu.org>
3936
3937 * i386bsd-nat.c: Include <signal.h>, <stddef.h> and
3938 <sys/sysctl.h>.
3939 (store_inferior_registers): Wrap long line.
3940 (i386bsd_dr_get_status): Fix typo in comment.
3941 (_initialize_i386bsd_nat): New function. * i386bsd-tdep.c: New
3942 file. * config/i386/tm-fbsd.h (IN_SIGTRAMP): New define.
3943 (i386bsd_in_sigtramp): New prototype.
3944 (SIGTRAMP_START, SIGTRAMP_END): Redefine in terms...
3945 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): ...these new
3946 (external) variables.
3947 (SIGCONTEXT_PC_OFFSET): Removed.
3948 (FRAME_SAVED_PC): New define.
3949 (i386bsd_frame_saved_pc): New function. * config/i386/fbsd.mt
3950 (TDEPFILES): Add i386bsd-tdep.o.
3951
d1bacddc
DJ
39522001-07-12 Daniel Jacobowitz <drow@mvista.com>
3953
3954 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Use ISO C
3955 definition.
3956
9a973a8f
MK
39572001-07-13 Mark Kettenis <kettenis@gnu.org>
3958
3959 * lin-lwp.c (lin_lwp_wait): Avoid check for resumed LWPs if there
3960 are no registered LWPs yet.
3961
6ef7fa21
DJ
39622001-07-12 Daniel Jacobowitz <drow@mvista.com>
3963
3964 * config/i386/nm-linux.h (CANNOT_FETCH_REGISTER): Call the right
3965 function.
3966 (CANNOT_STORE_REGISTER): Likewise.
3967
75e266ac
KS
39682001-07-12 Keith Seitz <keiths@redhat.com>
3969
3970 * remote-rdp.c: Include "serial.h"
3971
d0608e50
DJ
39722001-07-12 Daniel Jacobowitz <drow@mvista.com>
3973
3974 * gdbserver/remote-utils.c (remote_open): Set VMIN to 1
3975 in HAVE_TERMIO/HAVE_TERMIOS cases.
3976
1e4fac59
MK
39772001-07-12 Mark Kettenis <kettenis@gnu.org>
3978
de4ca854
MK
3979 * lin-lwp.c (stop_wait_callback): Add support for flushing
3980 signals. Use that in favour of the old code to get rid of
3981 superfluous SIGINTs.
3982 (lin_lwp_wait): Use the new support in stop_wait_callback to
3983 flush all but one SIGINT.
3984
635b0cc1
MK
3985 * i386-tdep.c (i386_extract_return_value): Undo 2001-07-11 changes
3986 to comment.
3987 (i386_store_return_value): Improve comments about storing
3988 floating-point return values.
3989
1e4fac59
MK
3990 * config/arm/xm-linux.h, config/i386/xm-linux.h,
3991 config/m68k/xm-linux.h, config/powerpc/xm-linux.h,
3992 config/sparc/xm-linux.h, config/ia64/xm-linux.h (HAVE_TERMIOS):
3993 Removed. Taken care of by autoconf and terminal.h.
3994
49e790b0
DJ
39952001-07-12 Daniel Jacobowitz <drow@mvista.com>
3996
3997 * mips-tdep.c (mips_type_needs_double_align): New function.
3998 (mips_push_arguments): Align o32 structs to even argument
3999 registers if necessary.
4000
e7df8212
DJ
40012001-07-11 Daniel Jacobowitz <drow@mvista.com>
4002
4003 * config/djgpp/fnchange.lst: Add entries for
4004 mips-linux-nat.c and mips-linux-tdep.c.
4005
2b2d558c
MK
40062001-07-12 Mark Kettenis <kettenis@gnu.org>
4007
9e158af1
MK
4008 * config/powerpc/xm-linux.h: Fix corrupted file.
4009
2b2d558c
MK
4010 * configure.in: Add check for sigsetjmp.
4011 * config/m68k/xm-linux.h (HAVE_SIGSETJMP): Removed.
4012 * config/xm-sysv4.h (HAVE_SIGSETJMP): Removed.
4013 * configure, config.in: Regenerated.
4014
3bbfbb92
EZ
40152001-07-11 Elena Zannoni <ezannoni@redhat.com>
4016
4017 * config/sh/tm-sh.h (struct gdbarch_tdep): Add
4018 FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
4019 PR_REGNUM fields.
4020
4021 * sh-tdep.c (sh_skip_prologue_hard_way): Rename from
4022 skip_prologue_hard_way().
4023 (skip_prologue_hard_way): Make it a function pointer.
4024 (sh_print_register): Use function pointer do_pseudo_register,
4025 instead of sh_do_pseudo_register.
4026 (sh_do_registers_info): Ditto.
4027 (sh_gdbarch_init): Initialize do_pseudo_register.
4028 (IS_MOV_TO_R14): Rename from IS_MOV_R14.
4029 (skip_prologue_hard_way): Update.
4030 (sh_gdbarch_init): Move setting of frame_chain,
4031 get_saved_register, init_extra_frame_info, push_arguments,
4032 extract_return_value, pop_frame, store_struct_return,
4033 extract_struct_value_address, use_struct_convention,
4034 init_extra_frame_info to before target specific settings.
4035 (sh_gdbarch_init): Initialize new tdep fields
4036 FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
4037 PR_REGNUM.
4038 (sh_push_arguments): Use new gdbarch_tdep fields
4039 {ARG0,ARGLAST}_REGNUM.
4040 (sh_saved_pc_after_call, sh_nofp_frame_init_saved_regs,
4041 sh_init_extra_frame_info, sh_push_return_address,
4042 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
4043 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs): Update to use
4044 gdbarch_tdep->PR_REGNUM.
4045 (dr_reg_base_num, fv_reg_base_num): Move to earlier in the file.
4046
e64c0717
DJ
40472001-07-11 Daniel Jacobowitz <drow@mvista.com>
4048
4049 * config/mips/tm-linux.h: Include "tm-linux.h" instead of copying
4050 from it. Move definitions of REALTIME_LO and REALTIME_HI above
4051 include.
4052
6c8e04b5
DJ
40532001-07-11 Daniel Jacobowitz <drow@mvista.com>
4054
4055 * MAINTAINERS: List myself for MIPS/Linux
4056 port.
4057
94dfea5d
DJ
40582001-07-11 Daniel Jacobowitz <drow@mvista.com>
4059
4060 * gdbserver/remote-utils.c (remote_open): Only
4061 check for F_SETOWN if we had F_SETFL and FASYNC.
4062
f175af98
DJ
40632001-07-11 Daniel Jacobowitz <drow@mvista.com>
4064
4065 From Michael Fedrowitz <michael.fedrowitz@informatik.uni-ulm.de>:
4066
4067 * config/m68k/linux.mh: Remove core-regset.o.
4068 * m68klinux-nat.c: Fix comment.
4069 (supply_gregset): Change argument to elf_gregset_t *.
4070 (supply_fpregset): Change argument to elf_fpregset_t *.
4071 (fetch_core_registers): New function.
4072 (linux_elf_core_fns): Define.
4073 (_initialize_m68k_linux_nat): New function.
4074
21624696
AC
40752001-07-11 Andrew Cagney <ac131313@redhat.com>
4076
4077 * configure.tgt: Mark d10v as pure multi-arch.
4078 * config/d10v/tm-d10v.h: Delete file.
4079 * config/d10v/d10v.mt (TM_FILE): Delete.
4080
819cc324
AC
40812001-07-10 Andrew Cagney <ac131313@redhat.com>
4082
4083 * serial.h (typedef serial_t): Delete. Replace all references to
4084 serial_t with `struct serial *'.
4085 * serial.c: Update.
4086 * nindy-share/ttyflush.c: Update.
4087 * nindy-share/ttyflush.c: Update.
4088 * nindy-share/Onindy.c: Update.
4089 * nindy-share/nindy.c: Update.
4090 * remote-rdp.c: Update.
4091 * remote-sds.c: Update.
4092 * remote-st.c: Update.
4093 * remote-nindy.c: Update.
4094 * remote-mips.c: Update.
4095 * remote-e7000.c: Update.
4096 * remote-os9k.c: Update.
4097 * remote-nrom.c: Update.
4098 * remote-es.c: Update.
4099 * remote-array.c: Update.
4100 * ocd.c: Update.
4101 * mon960-rom.c: Update.
4102 * dsrec.c: Update.
4103 * inflow.c: Update.
4104 * ser-e7kpc.c: Update.
4105 * sparclet-rom.c: Update.
4106 * srec.h: Update.
4107 * ser-tcp.c: Update.
4108 * ser-go32.c: Update.
4109 * sparcl-tdep.c: Update.
4110 * w89k-rom.c: Update.
4111 * utils.c: Update.
4112 * sh3-rom.c: Update.
4113 * remote.c: Update.
4114 * ser-pipe.c: Update.
4115 * ser-unix.c: Update.
4116 * ser-unix.h: Update.
4117 * xmodem.c: Update.
4118 * xmodem.h: Update.
4119
30120c46
AC
41202001-07-11 J.T. Conklin <jtc@redback.com>
4121
4122 From Greg McGary <greg@mcgary.org>:
cf30a8e1
C
4123 * gdbserver/remote-utils.c (remote_open): Set gdbserver as "owner"
4124 of SIGIO.
4125 (input_interrupt): Don't block on read, in case we got redundant
4126 SIGIO. Don't gripe about redundant SIGIO.
4127 * gdbserver/low-hppabsd.c (mywait): Use waitpid(). Enable SIGIO
4128 handler while waiting.
4129 * gdbserver/low-linux.c (mywait): Likewise.
4130 * gdbserver/low-nbsd.c (mywait): Likewise.
4131 * gdbserver/low-sparc.c (mywait): Likewise.
4132
84c6c83c
KS
41332001-07-11 Keith Seitz <keiths@redhat.com>
4134
4135 * infrun.c (print_stop_reason): Add missing uiout field
4136 "reason" for SIGNAL_RECEIVED case.
4137
e6da861e
MK
41382001-07-11 Mark Kettenis <kettenis@gnu.org>
4139
82de0203
MK
4140 * config/alpha/nm-linux.h (TARGET_ELF64, PSIGNAL_IN_SIGNAL_H):
4141 Remove unused macro's.
4142
e6da861e
MK
4143 * config/powerpc/nm-linux.h (NO_SYS_REG_H): Remove, it's no longer
4144 used.
4145
d8c852a1
EZ
41462001-07-11 Eli Zaretskii <eliz@is.elta.co.il>
4147
4148 * go32-nat.c (info_dos_cmdlist): New variable.
4149 (go32_info_dos_command): New function.
4150 (_initialize_go32_nat): Convert all DOS-specific commands into
4151 subcommands of "info dos". Suggested by Andrew Cagney
4152 <ac131313@redhat.com>.
4153
f8d13125
MK
41542001-07-11 Mark Kettenis <kettenis@gnu.org>
4155
11d18042
MK
4156 * config/nm-linux.h: Fix comments.
4157
936742ab
MK
4158 * thread-db.c (enable_thread_event_reporting): Correct warning
4159 message about getting thread death breakpoint.
4160 Reported by John S Kallal <jskallal@home.com>.
4161
ccb945b8
MK
4162 * i386-tdep.c (i386_extract_return_value): "Fix" comment.
4163 (i386_store_return_value): Frob FPU status and tag word to make
4164 sure the return value is the only value on the FPU stack.
4165
f8d13125
MK
4166 * config/tm-linux.h: Do not include <signal.h>. Instead provide
4167 reasonable defaults for REALTIME_LO and REALTIME_HI if they're not
4168 already defined.
4169 * config/nm-linux.h: Include <signal.h>.
4170 [__SIGRTMIN] (REALTIME_LO, REALTIME_HI): Define to __SIGRTMIN and
4171 (__SIGRTMAX + 1) respectively.
4172
56ff796a
AC
41732001-07-10 Andrew Cagney <ac131313@redhat.com>
4174
4175 * mcore-rom.c: Include "serial.h".
4176 * Makefile.in (mcore-rom.o): Depends on "serial.h".
4177
899ff3a2
AC
41782001-07-10 Andrew Cagney <ac131313@redhat.com>
4179
4180 * Makefile.in (remote-bug.o): Depends on serial.h.
4181 * remote-bug.c: Include "serial.h".
4182 * MAINTAINERS: Mark m88k target as buildable.
4183 * TODO: Update.
4184
2bf1f4a1
JB
41852001-07-10 Jim Blandy <jimb@redhat.com>
4186
75af7f68
JB
4187 Clean up the D10V port so that GDB and the target program no
4188 longer disagree on how big pointers are.
4189 * findvar.c (value_from_register): Remove special case code for D10V.
4190 * printcmd.c (print_frame_args): Same.
4191 * valops.c (value_at, value_fetch_lazy): Same.
4192 * values.c (unpack_long): Same.
4193 * gdbarch.sh: Changes to effect the following:
4194 * gdbarch.h (GDB_TARGET_IS_D10V, D10V_MAKE_DADDR,
4195 gdbarch_d10v_make_daddr_ftype, gdbarch_d10v_make_daddr,
4196 set_gdbarch_d10v_make_daddr, D10V_MAKE_IADDR,
4197 gdbarch_d10v_make_iaddr_ftype, gdbarch_d10v_make_iaddr,
4198 set_gdbarch_d10v_make_iaddr, D10V_DADDR_P,
4199 gdbarch_d10v_daddr_p_ftype, gdbarch_d10v_daddr_p,
4200 set_gdbarch_d10v_daddr_p, D10V_IADDR_P,
4201 gdbarch_d10v_iaddr_p_ftype, gdbarch_d10v_iaddr_p,
4202 set_gdbarch_d10v_iaddr_p, D10V_CONVERT_DADDR_TO_RAW,
4203 gdbarch_d10v_convert_daddr_to_raw_ftype,
4204 gdbarch_d10v_convert_daddr_to_raw,
4205 set_gdbarch_d10v_convert_daddr_to_raw, D10V_CONVERT_IADDR_TO_RAW,
4206 gdbarch_d10v_convert_iaddr_to_raw_ftype,
4207 gdbarch_d10v_convert_iaddr_to_raw,
4208 set_gdbarch_d10v_convert_iaddr_to_raw): Delete declarations.
4209 * gdbarch.c: Delete the corresponding definitions.
4210 (struct gdbarch): Delete members d10v_make_daddr,
4211 d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
4212 d10v_convert_daddr_to_raw, and d10v_convert_iaddr_to_raw.
4213 (startup_gdbarch): Remove initializers for the above.
4214 (verify_gdbarch, gdbarch_dump): Don't verify or dump them any
4215 more.
4216 * d10v-tdep.c (d10v_register_virtual_type): Rather that
4217 claiming the stack pointer and PC are 32 bits long (which they
4218 aren't), say that the stack pointer is an int16_t, and the
4219 program counter is a function pointer. This allows the rest
4220 of GDB to make the appropriate conversions between the code
4221 pointer format and real addresses.
4222 (d10v_register_convertible, d10v_register_convert_to_virtual,
4223 d10v_register_convert_to_raw): Delete function; no registers
4224 are convertible now, so we use
4225 generic_register_convertible_not instead.
4226 (d10v_address_to_pointer, d10v_pointer_to_address): New gdbarch
4227 methods.
4228 (d10v_push_arguments, d10v_extract_return_value): Remove special
4229 cases for code and data pointers.
4230 (d10v_gdbarch_init): Set gdbarch_ptr_bit to 16, so that GDB and
4231 the target agree on how large pointers are. Say that addresses
4232 are 32 bits long. Register the address_to_pointer and
4233 pointer_to_address conversion functions. Since no registers are
4234 convertible now, register generic_register_convertible_not as the
4235 gdbarch_register_convertible method instead of
4236 d10v_register_convertible. Remove registrations for
4237 d10v_register_convert_to_virtual,
4238 d10v_register_convert_to_raw, gdbarch_d10v_make_daddr,
4239 gdbarch_d10v_make_iaddr, gdbarch_d10v_daddr_p,
4240 gdbarch_d10v_iaddr_p, gdbarch_d10v_convert_daddr_to_raw, and
4241 gdbarch_d10v_convert_iaddr_to_raw.
4242
ef166cf4
JB
4243 * printcmd.c (print_scalar_formatted): If we are printing an
4244 address, remember that TARGET_ADDR_BIT is not always equal to
4245 TARGET_PTR_BIT.
4246
2bf1f4a1
JB
4247 * valops.c (value_cast): When casting a pointer to an integer,
4248 don't convert it to an address.
4249
ba3a8523
AC
42502001-07-10 Andrew Cagney <ac131313@redhat.com>
4251
4252 * remote-utils.h (struct serial): Declare as opaque. Remove
4253 include of "serial.h".
4254 * Makefile.in (remote_utils_h): Update.
4255
4256 * monitor.h (struct serial): Declare as opaque. Remove include of
4257 "serial.h".
4258 (struct monitor_ops): Replace serial_t with `struct serial *'.
4259 * monitor.c (monitor_desc): Ditto.
4260
2aa830e4
DJ
42612001-07-10 Daniel Jacobowitz <drow@mvista.com>
4262
4263 * mips-linux-tdep.c: New file.
4264 * mips-linux-nat.c: New file.
4265 * config/mips/linux.mh: New file.
4266 * config/mips/linux.mt: New file.
4267 * config/mips/xm-linux.h: New file.
4268 * config/mips/nm-linux.h: New file.
4269 * config/mips/tm-linux.h: New file.
4270 * configure.host: Recognize mips*-*-linux*.
4271 * configure.tgt: Likewise.
4272 * NEWS: Mention mips*-*-linux* port.
4273
65e2f740
AC
42742001-07-09 Andrew Cagney <ac131313@redhat.com>
4275
4276 * serial.h (struct serial): Rename `struct _serial_t'.
4277 * serial.c (XMALLOC): Define.
4278 (serial_open): Update. Use XMALLOC.
4279 (serial_fdopen): Ditto.
4280
090a2205
AC
42812001-07-07 Andrew Cagney <ac131313@redhat.com>
4282
4283 * gdbtypes.h (builtin_type_void_data_ptr): Rename
4284 builtin_type_ptr.
4285 * gdbtypes.c (builtin_type_void_data_ptr): Update.
4286 (build_gdbtypes): Update.
4287 (_initialize_gdbtypes): Update.
4288 * values.c (value_as_pointer): Update.
4289 * utils.c (host_pointer_to_address): Update.
4290 (address_to_host_pointer): Update.
4291
8059d5aa
AC
42922001-07-08 Andrew Cagney <ac131313@redhat.com>
4293
4294 * remote-udi.c (udi_wait): Make type, instead of name, of first
4295 parameter a ptid_t.
4296
cc61049c
AC
42972001-07-07 Andrew Cagney <ac131313@redhat.com>
4298
4299 * ser-mac.c: Make obsolete.
4300 * Makefile.in (ser-mac.o): Ditto.
4301
10ba702d
EZ
43022001-07-08 Eli Zaretskii <eliz@is.elta.co.il>
4303
4304 * go32-nat.c (go32_get_windows_version, print_mem, go32_sysinfo)
4305 (read_memory_region, get_descriptor, display_descriptor)
4306 (go32_sldt, go32_sgdt, go32_sidt): New functions.
4307 (top-level): Include ctype.h, utsname.h, dos.h, and go32.h. Ifdef
4308 away `disable' from dos.h, since breakpoint.h defines an enum
4309 member of the same name, and GCC 2.7.2 barfs.
4310 (_initialize_go32_nat): Provide new commands dos-sysinfo, dos-ldt,
4311 dos-gdt, and dos-idt, all of them in the "info" class
4312
44312dba
KB
43132001-07-07 Kevin Buettner <kevinb@redhat.com>
4314
4315 * procfs.c (create_procinfo): Allocate space for saved_entryset
4316 and saved_exitset.
4317 (destroy_one_procinfo): Free space allocated to saved_entryset
4318 and saved_exitset.
4319
5329c756
AC
43202001-07-07 Andrew Cagney <ac131313@redhat.com>
4321
4322 * TODO (5.1): Update.
4323
51cc5b07
AC
43242001-07-07 Andrew Cagney <ac131313@redhat.com>
4325
4326 * symtab.c (main_name): New function.
4327 (set_main_name): New function.
4328 * symtab.h: Declare.
4329 * TODO: Update
4330
4331 From 2000-03-05 Anthony Green <green@redhat.com>:
4332 * dbxread.c (process_one_symbol): Handle the N_MAIN stab by
4333 setting main_name.
4334 * blockframe.c (inside_main_func): Use main_name instead of
4335 "main".
4336 * symtab.c (find_main_psymtab): Ditto.
4337 * source.c (select_source_symtab): Ditto.
4338 * nlmread.c (nlm_symfile_read): Ditto.
4339 * rs6000-tdep.c (skip_prologue): Ditto.
4340
56ddd993
AC
43412001-07-07 Andrew Cagney <ac131313@redhat.com>
4342
4343 * TODO: Convert most items into PRs.
4344
58eeadba
MK
43452001-07-07 Mark Kettenis <kettenis@gnu.org>
4346
4347 * lin-lwp.c (status_to_str): New function.
4348 (lin_lwp_wait): Use it to print debug messages where appropriate.
4349
7f1659e6
MC
43502001-07-06 Michael Chastain <chastain@redhat.com>
4351
4352 * i387-tdep.c (print_i387_value): Fix pointer glitch.
4353
00d4fce6
MK
43542001-07-07 Mark Kettenis <kettenis@gnu.org>
4355
4356 * lin-lwp.c (count_events_callback): Fix formatting. Turn check
4357 commented with "paranoia" into gdb_assert.
4358 (select_event_lwp_callback): Likewise.
4359 (cancel_breakpoints_callback): Bail out early if LP is the event
4360 LWP. Add comment about backup up breakpoints. Fix formatting and
4361 debug message.
4362 (select_event_lwp): Make solely repsonsible for switching event
4363 LWP. Fix formatting and remove bogus "ERROR" debug message.
4364 Don't backup breakpoints from here.
4365 (lin_lwp_wait): Don't touch LP->status, let select_event_lwp
4366 handle that. Only call select_event_lwp if we're not waiting for
4367 a specific LWP, i.e. when PID == -1. Backup breakpoints from here.
4368
7de45904
MS
43692001-07-06 Michael Snyder <msnyder@redhat.com>
4370
4371 * procfs.c (procfs_resume): Silence noisy warning.
4372
b1aeb4c5
MS
43732001-06-12 Michael Snyder <msnyder@redhat.com>
4374
4375 * lin-lwp.c: Prevent thread starvation by using a monte carlo
4376 method to choose which of several event threads to handle next.
4377
4378 (stop_wait_callback): Defer pushback of breakpoint events until
4379 later; add SIGTRAP events to the queue of unhandled events.
4380 Keep calling waitpid until SIGSTOP retrieved. If more than one
4381 non-SIGSTOP event is retrieved, push them back onto the process
4382 queue using kill.
4383 (count_events_callback, select_singlestep_lwp_callback,
4384 select_event_lwp_callback, cancel_breakpoints_callback,
4385 select_event_lwp): New functions. Implement monte carlo method
4386 for selecting which of several SIGTRAP threads to handle next.
4387 Push back the breakpoint event for all threads other than the
4388 selected one.
4389 (lin_lwp_wait): Call select_event_lwp to decide which of several
4390 sigtrapped lwps to handle next.
4391 (resume_callback): Disable code that attempts to handle
4392 step_resume breakpoints. Let core gdb handle this.
4393
ee3a7b7f
JB
43942001-07-06 Jim Blandy <jimb@redhat.com>
4395
4396 * gdbtypes.h (builtin_type_void_func_ptr): New builtin type.
4397 * gdbtypes.c (builtin_type_void_func_ptr): Define the variable.
4398 (build_gdbtypes): Initialize it.
4399 (_initialize_gdbtypes): Swap it.
4400
e135b889 44012001-07-04 Daniel Jacobowitz <drow@mvista.com>
ee3a7b7f 4402
e135b889
DJ
4403 * mips-tdep.c (mips32_op): Correct offset.
4404 (itype_op): Likewise.
4405 (itype_rs): Fix formatting.
4406 (itype_immediate): Fix formatting.
4407 (jtype_op): Correct offset.
4408 (jtype_target): Fix formatting.
4409 (rtype_op): Correct offset.
4410 (rtype_rs): Fix formatting.
4411 (rtype_rt): Likewise.
4412 (rtype_rd): Likewise.
4413 (rtype_shamt): Likewise.
4414 (rtype_funct): Likewise.
4415
4416 (mips32_next_pc): Fix formatting and comments. Recognize
4417 coprocessor 1 branches. Check the correct field for BLT family
4418 branches. Use itype_rt instead of itype_rs for the second register
4419 of a BNE or BNEL branch. Move (unreachable) default case.
4420
9dc5e2a9
AC
44212001-07-04 Andrew Cagney <ac131313@redhat.com>
4422
4423 * ui-out.h (struct ui_out_impl): Add field is_mi_like_p.
4424 (ui_out_is_mi_like_p): Declare.
4425 * ui-out.c (ui_out_is_mi_like_p): Define.
4426 (default_ui_out_impl): Initialize is_mi_like_p to zero.
4427 * cli-out.c (cli_ui_out_impl): Ditto.
4428 * breakpoint.c (print_it_typical): Use ui_out_is_mi_like_p.
4429 (watchpoint_check, print_one_breakpoint, mention): Ditto.
4430 * infrun.c (print_stop_reason, normal_stop): Ditto.
4431
9022177c
DJ
44322001-07-05 Daniel Jacobowitz <drow@mvista.com>
4433
4434 * mips-tdep.c (mips_software_single_step): New function.
4435 * config/mips/tm-mips.h: Add prototype for
4436 mips_software_single_step.
4437
2ac44c70
DJ
44382001-07-05 Daniel Jacobowitz <drow@mvista.com>
4439
4440 * ppc-linux-nat.c (supply_gregset): Use elf_greg_t instead
4441 of greg_t.
4442 (fill_gregset): Likewise.
4443
bdda63b0
AC
44442001-07-05 Andrew Cagney <ac131313@redhat.com>
4445
4446 * objfiles.c (open_mapped_file): Use lbasename instead of
4447 basename.
4448
af703f96
JB
44492001-07-05 Jim Blandy <jimb@redhat.com>
4450
7b570125
JB
4451 * d10v-tdep.c (d10v_frame_chain, d10v_frame_init_saved_regs,
4452 show_regs, d10v_read_pc, d10v_write_pc, d10v_read_sp,
4453 d10v_write_sp, d10v_write_fp, d10v_read_fp,
4454 d10v_push_return_address): Call the functions d10v_make_daddr,
4455 d10v_make_iaddr, d10v_convert_iaddr_to_raw, and
4456 d10v_convert_daddr_to_raw, not the global macros D10V_MAKE_DADDR,
4457 D10V_MAKE_IADDR, D10V_CONVERT_IADDR_TO_RAW, and
4458 D10V_CONVERT_DADDR_TO_RAW.
4459
af703f96
JB
4460 * dwarf2read (dwarf2_build_psymtabs_hard): Doc fix.
4461
e087d0d6
MK
44622001-07-05 Mark Kettenis <kettenis@gnu.org>
4463
4464 * config/i386/xm-go32.h (HOST_I386): Removed.
4465 * config/i386/xm-linux.h (HOST_I386): Removed.
4466
c96646d0
MK
44672001-07-04 Mark Kettenis <kettenis@gnu.org>
4468
4469 * i387-tdep.c (print_i387_value): Add extra space after final full
4470 stop in comment.
4471
af6c57ea
AC
44722001-07-04 Andrew Cagney <ac131313@redhat.com>
4473
4474 * TODO (5.1): Update. Doco changes committed.
4475
9da8e4f8
AC
44762001-06-29 Andrew Cagney <ac131313@redhat.com>
4477
4478 * config/arm/tm-arm.h: Include "floatformat.h".
4479
d0df8472
AC
44802001-06-29 Andrew Cagney <ac131313@redhat.com>
4481
4482 * i387-tdep.c: Include "gdb_assert.h".
4483 (print_i387_value): Use extract_floating to extract the FP value
4484 from a zero padded local buffer.
4485
291903b1
AC
44862001-06-28 Andrew Cagney <ac131313@redhat.com>
4487
4488 * TODO: Delete all thread items. The thread code was overhauled.
4489
80629b1b
EZ
44902001-07-04 Elena Zannoni <ezannoni@redhat.com>
4491
2ed3d0b5
EZ
4492 * memattr.c (create_mem_region): Move n to next memory region,
4493 to avoid infinite loop.
4494
80629b1b
EZ
4495 * memattr.h: Add copyright statement.
4496 * memattr.c: Ditto.
4497
2541c7cf
JB
44982001-07-04 Jim Blandy <jimb@redhat.com>
4499
0b010bcc
JB
4500 * dwarf2read.c (struct partial_die_info): New member: has_pc_info.
4501 (read_partial_die): Delete fourth argument; we return this info in
4502 the struct partial_die_info object itself now.
4503 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Use the
4504 has_pc_info field of the partial die struct, rather than passing a
4505 variable by reference to read_partial_die.
4506
2541c7cf 4507 * dwarf2read.c (dwarf2_build_psymtabs_hard): Remove extraneous
9faef8a7 4508 code in loop condition.
2541c7cf 4509
5d12882f
MS
45102001-07-03 Michael Snyder <msnyder@redhat.com>
4511
4512 * thread_db (find_new_threads_callback, thread_db_thread_alive,
4513 attach_thread): Update comments.
4514
00783ba9
MS
45152001-06-29 Ken Whaley <ken@believe.com>
4516
4517 * thread-db.c (attach_thread): Check for TD_THR_ZOMBIE in addition
4518 to TD_THR_UNKNOWN when looking for defunct zombie threads.
4519 (thread_db_thread_alive): Ditto.
4520 (find_new_threads_callback): Ditto.
4521
f7856c8f 45222001-07-02 Daniel Jacobowitz <drow@mvista.com>
2740bf6c
DJ
4523
4524 * MAINTAINERS: Add myself to the write-after-approval list.
4525
45262001-07-02 Daniel Jacobowitz <drow@mvista.com>
4527
f7856c8f
DJ
4528 * solib-svr4.c: Include "elf/mips.h".
4529 (elf_locate_base): Make DT_MIPS_RLD_MAP block unconditional.
4530
f9aca02d
JB
45312001-07-02 Jim Blandy <jimb@redhat.com>
4532
4533 * dwarf2read.c (read_comp_unit, sibling_die, dump_die,
4534 dump_die_list, store_in_ref_table, follow_die_ref): Make these
4535 static; they're private functions.
4536
42a076f0
EZ
45372001-07-01 Mark Elbrecht <snowball@bigfoot.com>
4538
4539 * coffread.c (coff_symfile_read): Parse DWARF2 info if present.
4540
77467810
EZ
45412001-06-28 Elena Zannoni <ezannoni@redhat.com>
4542
4543 * TODO: Add import of readline 4.2 as a gdb 5.2 task.
4544
85593179
AC
45452001-06-29 Andrew Cagney <ac131313@redhat.com>
4546
4547 * config/djgpp/fnchange.lst: Sort.
4548
cde2d0fb
AC
45492001-06-28 Andrew Cagney <ac131313@redhat.com>
4550
4551 * config/djgpp/fnchange.lst: Rename mi0-var-block.exp,
4552 mi0-var-cmd.exp, mi0-var-child.exp and mi0-var-display.exp.
4553
37965979
AJ
45542001-06-29 Andreas Jaeger <aj@suse.de>
4555
4556 * MAINTAINERS: Add myself to the write-after-approval list.
4557
a1337894
AC
45582001-06-28 Andrew Cagney <ac131313@redhat.com>
4559
4560 * remote-array.c (SWAP_TARGET_AND_HOST): Delete macro.
4561 (get_hex_word): Don't use HOST_BYTE_ORDER.
4562 (array_fetch_registers): Add variable ``reg''. Use
4563 store_unsigned_integer to byte-swap the register. Delete unused
4564 local ``regs''.
4565
aa8aac68
AC
45662001-06-28 Andrew Cagney <ac131313@redhat.com>
4567
4568 * MAINTAINERS: Add Per Bothner to Java maintainers.
4569
a8016339
AC
45702001-06-28 Andrew Cagney <ac131313@redhat.com>
4571
4572 * rdi-share/unixcomm.c (SERIAL_PREFIX): Always provide a default.
4573 * rdi-share/hostchan.h (__unix): Hack, provide a default value.
4574 * rdi-share/host.h (__unix): Hack, define when __NetBSD__.
4575 * TODO: Update.
4576 * MAINTAINERS: Update. arm-elf builds.
4577
f5e1cf12
JB
45782001-06-28 Jim Blandy <jimb@redhat.com>
4579
bf93dfed
JB
4580 * d10v-tdep.c (d10v_ts2_dmap_register): Doc fix.
4581
4582 * d10v-tdep.c (d10v_frame_chain_valid, d10v_use_struct_convention,
f5e1cf12
JB
4583 d10v_breakpoint_from_pc, d10v_register_byte,
4584 d10v_register_raw_size, d10v_register_virtual_size,
4585 d10v_register_virtual_type, d10v_register_convertible,
4586 d10v_register_convert_to_virtual, d10v_register_convert_to_raw,
4587 d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
4588 d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw,
4589 d10v_store_struct_return, d10v_store_return_value,
4590 d10v_extract_struct_value_address, d10v_frame_saved_pc,
4591 d10v_saved_pc_after_call, d10v_pop_frame, d10v_skip_prologue,
4592 d10v_frame_chain, d10v_frame_init_saved_regs,
4593 d10v_init_extra_frame_info, d10v_read_pc, d10v_write_pc,
4594 d10v_read_sp, d10v_write_sp, d10v_write_fp, d10v_read_fp,
4595 d10v_push_return_address, d10v_push_arguments,
4596 d10v_extract_return_value): Make these functions static.
4597
100a02e1
AC
45982001-06-28 Andrew Cagney <ac131313@redhat.com>
4599
4600 From Fernando Nasser:
4601 * infrun.c (handle_inferior_event): Handle "nexti" inside function
4602 prologues.
4603
80b34fab
MS
46042001-06-28 Michael Snyder <msnyder@redhat.com>
4605
4606 * infrun.c (handle_inferior_event): Replace prev_pc test in all
4607 calls to bpstat_stop_status (removed in 1999-09-24). This test
4608 helps distinguish stepping over a breakpoint trap from stepping
4609 thru a jump to the instruction after a breakpoint trap.
4610 (handle_inferior_event): Don't bother writing the PC if
4611 DECR_PC_AFTER_BREAK is zero (optimization).
4612 * breakpoint.c (bpstat_stop_status): Add comment explaining the
4613 purpose and usage of the "not_a_breakpoint" argument in computing
4614 the breakpoint address.
4615
1456ad8e
AC
46162001-06-28 Andrew Cagney <ac131313@redhat.com>
4617
4618 From 2000-12-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
4619 * monitor.c (setmem_resp_delim_pattern): New regexp pattern.
4620 (setreg_resp_delim_pattern): Likewise.
4621 (setmem_resp_delim_fastmap): New buffer.
4622 (setreg_resp_delim_fastmap): Likewise.
4623 (monitor_open): Initialize above regexp if they are defined.
4624 (monitor_write_memory): Use regexp to check the result of write.
4625 (monitor_store_register): Likewise to check result of register set.
4626
399371f6
AC
46272001-06-28 Andrew Cagney <ac131313@redhat.com>
4628
4629 From 2000-06-14 John Marshall <john_w_marshall@palm.com>:
4630 * coff-solib.c: Include symfile.h and objfiles.h to make
4631 OBJF_SHARED visible.
4632
b0e2e90a
AC
46332001-06-28 Andrew Cagney <ac131313@redhat.com>
4634
4635 * configure.in (--enable-gdbmi): Enable by default.
4636 * configure: Regenerate.
4637 * TODO: Update.
4638 * NEWS: Update
4639
ad98fdaf
JB
46402001-06-28 Joel Brobecker <brobecker@act-europe.fr>
4641
4642 * solib-osf.c (osf_in_dynsym_resolve_code): Add a comment
4643 explaining the consequences of always returning zero. No code
4644 change.
4645
49dd83ba
AC
46462001-06-28 Andrew Cagney <ac131313@redhat.com>
4647
4648 From 2001-06-08 Daniel Jacobowitz <djacobowitz@mvista.com>:
4649 * defs.h (enum target_signal): Add TARGET_SIGNAL_REALTIME_65
4650 to TARGET_SIGNAL_REALTIME_127.
4651 * target.c (struct signals): Add SIG63 to SIG127.
4652 (target_signal_from_host): Handle up to 127 signals.
4653 (do_target_signal_to_host): Likewise.
4654
29372230
AC
46552001-06-27 Andrew Cagney <ac131313@redhat.com>
4656
4657 * remote-sds.c (sds_start_remote): Change type of ``c'' to int
4658 from possibly unsigned char.
4659
a196c81c
AC
46602001-06-27 Andrew Cagney <ac131313@redhat.com>
4661
4662 * ser-ocd.c: Delete file.
4663 * Makefile.in (ALLDEPFILES): Remove ser-ocd.c
4664 (ser-ocd.o): Delete target.
4665 * TODO: Update.
4666 * NEWS: Update.
4667
e7745bde
AC
46682001-06-27 Andrew Cagney <ac131313@redhat.com>
4669
4670 * MAINTAINERS (Write After Approval): Sort.
f4c100a7 4671 (Past Maintainers): Daniel Berlin stepped down as C++ maintainer.
e7745bde 4672
d7faa9e7
AC
46732001-06-26 Andrew Cagney <ac131313@redhat.com>
4674
4675 * breakpoint.c (breakpoint_1): Always output the breakpoint
4676 headings. Leave it to ui-out to decide which
4677
68c81b54
AC
46782001-06-25 Andrew Cagney <ac131313@redhat.com>
4679
4680 * stack.c (print_frame): For ui_out, output a list of arguments.
4681
834091c8
KB
46822001-06-25 Kevin Buettner <kevinb@redhat.com>
4683
4684 * MAINTAINERS (paper trail): Update.
4685
ef5cf84e
MS
46862001-06-25 Michael Snyder <msnyder@redhat.com>
4687
4688 * infrun.c: Eliminate the "thread_step_needed" state variable,
4689 and replace it with a relatively simple test in resume.
4690 (resume): Replace thread_step_needed logic with a test for
4691 stepping, breakpoint_here_p and breakpoints_inserted.
4692 Move CANNOT_STEP_BREAKPOINT logic to after thread_step logic.
4693 (proceed): Discard thread_step_needed logic.
4694 (wait_for_inferior, fetch_inferior_event, handle_inferior_event):
4695 Discard thread_step_needed logic.
4696
cb90e81a
FN
46972001-06-24 Fernando Nasser <fnasser@redhat.com>
4698
4699 * remote-rdi.c (arm_rdi_wait): Fix return type in prototype.
4700 * rdi-share/host.h: Add missing parenthesis in conditional.
4701
39812ceb
C
47022001-06-22 J.T. Conklin <jtc@redback.com>
4703
4704 * configure.in: include nlist.h when checking for member som_addr
4705 in struct so_map.
4706 * configure: regenerate.
4707
8d2139f3
KS
47082001-06-21 Keith Seitz <keiths@redhat.com>
4709
4710 * cli-out.c (cli_out_new): Initialize new structure member
4711 "suppress_output".
4712
b25959ec
AC
47132001-06-20 Andrew Cagney <ac131313@redhat.com>
4714
4715 * ui-out.h (ui_out_table_header): Add parameter ``col_name''.
4716 (table_header_ftype): Ditto.
4717 * cli-out.c (cli_table_header): Update.
4718 * ui-out.c (ui_out_table_header): Update.
4719 (uo_table_header): Update.
4720 (default_table_header): Update.
4721 (append_header_to_list): Update.
4722 (struct ui_out_header): Add field ``col_name''.
4723 (append_header_to_list): Use xstrdup. Initialize col_name.
4724 * breakpoint.c (breakpoint_1): Pass COL_NAME to
4725 ui_out_table_header.
4726
698384cd
AC
47272001-06-19 Andrew Cagney <ac131313@redhat.com>
4728
4729 * cli-out.c: Include "gdb_assert.h'.
4730 (struct ui_out_data): Add field ``suppress_output.
4731 (cli_table_begin): When NR_ROWS is zero, suppress_output.
4732 (cli_table_end): Clear suppress_output.
4733 (cli_table_body): Check suppress_output.
4734 (cli_table_header, cli_begin): Ditto.
4735 (cli_end, cli_field_int, cli_field_skip): Ditto.
4736 (cli_field_string, cli_field_fmt, cli_spaces): Ditto.
4737 (cli_text, cli_message, cli_wrap_hint): Ditto.
4738 * breakpoint.c (breakpoint_1): Close the ui_out table before
4739 printing the breakpoint not found message.
4740
d63f1d40
AC
47412001-06-18 Andrew Cagney <ac131313@redhat.com>
4742
4743 * ui-out.c (ui_out_table_begin): Add parameter ``nr_rows''.
4744 (default_table_begin): Ditto.
4745 (uo_table_begin): Ditto.
4746 * cli-out.c (cli_table_begin): Ditto.
4747 * ui-out.h (ui_out_table_begin): Update
4748 (table_begin_ftype): Update.
4749 * breakpoint.c (breakpoint_1): Pass nr_printable_breakpoints to
4750 ui_out_table_begin.
4751
7f3b0473
AC
47522001-06-16 Andrew Cagney <ac131313@redhat.com>
4753
4754 * breakpoint.c (breakpoint_1): Restructure. Compute the
4755 nr_printable_breakpoints. Move the header output to before the
4756 main print breakpoints loop.
4757 (user_settable_breakpoint): New function.
4758
b30bf9ee
AC
47592001-06-18 Andrew Cagney <ac131313@redhat.com>
4760
4761 * infrun.c, breakpoint.c: Use strncmp as the "mi" test. Allow,
4762 "mi", "mi0" and "mi1".
4763
83905903
AC
47642001-06-17 Andrew Cagney <ac131313@redhat.com>
4765
4766 * gdbarch.sh: Generate an error when conflicting macro
4767 definitions. Generate an error when both pure multi-arch and
4768 "tm.h".
4769 * gdbarch.h, gdbarch.c: Regenerate.
4770 * defs.h (GDB_MULTI_ARCH_TM): Rewrite definition.
4771
c2202abf
AC
47722001-06-17 Andrew Cagney <ac131313@redhat.com>
4773
4774 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Down grade to
4775 GDB_MULTI_ARCH_PARTIAL from two.
4776
0d70f41b
FN
47772001-06-17 Fernando Nasser <fnasser@redhat.com>
4778
4779 From 2001-06-15 Eirik Fuller <eirik@hackrat.com>
4780 * cli/cli-script.c (free_command_lines): Reset list pointer.
4781
7824d2f2
AC
47822001-06-16 Andrew Cagney <ac131313@redhat.com>
4783
4784 * arch-utils.c (init_frame_pc_default): New function
4785 * arch-utils.h (init_frame_pc_default): Declare.
4786 * gdbarch.sh (INIT_FRAME_PC): Default to init_frame_pc_default and
4787 not init_frame_pc_noop.
4788 * gdbarch.h, gdbarch.c: Re-generate.
4789 * blockframe.c (INIT_FRAME_PC): Delete macro definition.
4790 * mips-tdep.c (mips_gdbarch_init): Set init_frame_pc to
4791 init_frame_pc_noop.
4792
1622c8f7
AC
47932001-06-16 Andrew Cagney <ac131313@redhat.com>
4794
4795 * gdbarch.c: Regenerate. Out-of-sync with gdbarch.sh.
4796
01fb7433
AC
47972001-06-15 Andrew Cagney <ac131313@redhat.com>
4798
4799 * gdbarch.sh (CANNOT_FETCH_REGISTER): Multi-arch.
4800 (CANNOT_STORE_REGISTER): Ditto.
4801 * infptrace.c (CANNOT_FETCH_REGISTER): Delete definition.
4802 (CANNOT_STORE_REGISTER): Ditto.
4803 * regcache.c (CANNOT_STORE_REGISTER): Ditto.
4804 * lynx-nat.c (CANNOT_STORE_REGISTER): Ditto.
4805 * arch-utils.h (cannot_register_not): Define.
4806 * arch-utils.c (cannot_register_not): Declare.
4807
10312cc4
AC
48082001-06-15 Andrew Cagney <ac131313@redhat.com>
4809
4810 * gdbarch.sh: Clarify pre/post default
4811 (INIT_FRAME_PC_FIRST, INIT_FRAME_PC): Multiarch.
4812 * blockframe.c (get_prev_frame): Remove #ifdef from around
4813 INIT_FRAME_PC_FIRST call.
4814 * arch-utils.c (init_frame_pc_noop): Define.
4815 * arch-utils.h (init_frame_pc_noop): Declare.
4816 * config/mips/tm-mips.h (INIT_FRAME_PC_FIRST): Delete.
4817 (INIT_FRAME_PC, mips_init_frame_pc_first): Ditto.
4818 * mips-tdep.c (mips_init_frame_pc_first): Make static.
4819 (mips_gdbarch_init): Initialize init_frame_pc_first.
4820 (mips_dump_tdep): Update.
4821
dd80620e
MS
48222001-06-15 Michael Snyder <msnyder@redhat.com>
4823
4824 * infrun.c (context_switch): New function. Abstract the operation
4825 of saving and restoring infrun's state when switching threads.
4826 (handle_inferior_event): Normalize the handling of the 'thread hop'
4827 event (when the wrong thread hits a thread-specific breakpoint,
4828 and we need to solo-step that thread past the breakpoint).
4829 Call keep_going, instead of target_resume. Handle the subsequent
4830 singlestep-trap as a normal event instead of just resuming.
4831
875e1767
AC
48322001-06-15 Andrew Cagney <ac131313@redhat.com>
4833
4834 * arch-utils.c (core_addr_identity): New function. Rename
4835 default_convert_from_func_ptr_addr.
4836 * gdbarch.sh (CONVERT_FROM_FUNC_PTR_ADDR): Update.
4837 (ADDR_BITS_REMOVE): Define. Default to core_addr_identity.
4838 * defs.h (ADDR_BITS_REMOVE): Delete macro definition.
4839 * config/mips/tm-mips.h (ADDR_BITS_REMOVE): Delete definition.
4840 * mips-tdep.c (mips_addr_bits_remove): Make static.
4841 (mips_gdbarch_init): Initialize addr_bits_remove.
4842
4009c677
AC
48432001-06-15 Andrew Cagney <ac131313@redhat.com>
4844
4845 From 2001-02-26 D.J. Barrow <djbarrow@de.ibm.com>:
4846 * configure.tgt: Add S/390 31 & 64 bit target configuration.
4847 * configure.host: Ditto for host.
4848
d6dd581e
AC
48492001-06-15 Andrew Cagney <ac131313@redhat.com>
4850
4851 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS_P): Delete definition.
4852 (EXTRACT_STRUCT_VALUE_ADDRESS): Change to a function with
4853 predicate.
4854 * gdbarch.h, gdbarch.c: Regenerate.
4855 * values.c (value_being_returned): Change the reference to
4856 EXTRACT_STRUCT_VALUE_ADDRESS_P to a function call.
4857
09843d7f
JB
48582001-06-15 Joel Brobecker <brobecker@act-europe.fr>
4859
4860 * MAINTAINERS: Add Paul Hilfinger and Joel Brobecker to the
4861 Write After Approval list.
4862
dc8acb97
MS
48632001-06-14 Michael Snyder <msnyder@redhat.com>
4864
4865 * remote.c (show_remote_protocol_qSymbol_packet_cmd,
4866 set_remote_protocol_qSymbol_packet_cmd): New functions.
4867 (init_all_packet_configs, show_remote_cmd): Add qSymbol packet.
4868 (remote_check_symbols): New function. Implement qSymbol packet,
4869 allowing target to request symbol lookup service from gdb.
4870 (remote_open_1, remote_async_open_1): Call remote_check_symbols,
4871 allowing symbol lookup from exec_bfd on connection to target.
4872 (remote_new_objfile): New function. Catch new objfile notifications
4873 from shared library module, and call remote_check_symbols.
4874 (_initialize_remote): Hook remote_new_objfile into the shared
4875 library notification chain. Add "set remote symbol-lookup" command.
4876
578c1fe6
KS
48772001-06-14 Keith Seitz <keiths@redhat.com>
4878
4879 * tracepoint.c (trace_command): We now have tracepoint
4880 events. Get rid of those ugly hooks.
4881 (tracepoint_operation): Likewise.
4882 (trace_pass_command): Likewise.
4883
6c0d3f6a
MS
48842001-06-13 Michael Snyder <msnyder@redhat.com>
4885
4886 * gdbthread.h (struct thread_info): Add new fields:
4887 current_line, current_symtab, step_sp, for saved infrun state.
4888 * thread.c (save_infrun_state, load_infrun_state): Save and
4889 restore current_line, current_symtab, and step_sp.
4890 (add_thread): Rather than adding assignments to initialize
4891 the new fields, just use memset (tp, 0, sizeof (*tp).
4892 This way future new fields will not be overlooked.
4893 * infrun.c (handle_inferior_event): Save and restore save_sp,
4894 current_line, and current_symtab when switching threads.
4895
16075ace
EZ
48962001-06-13 Elena Zannoni <ezannoni@redhat.com>
4897
4898 * MAINTAINERS: Add Andrew Cagney as co-maintainer of
4899 testsuite/gdb.mi.
4900
31889e00
AC
49012001-06-11 Andrew Cagney <ac131313@redhat.com>
4902
4903 * symtab.c (lookup_symtab_1): Replace basename with lbasename.
4904 (lookup_partial_symtab, file_matches): Ditto.
4905 (make_source_files_completion_list): Ditto.
4906 (make_file_symbol_completion_list): Ditto. Make local char*
4907 variable ``tail'' constant.
4908 (make_source_files_completion_list): Ditto with ``base_name''.
4909 * source.c (open_source_file): Use lbasename. Make ``p'' const
4910 char *.
4911
4ac40b29
EZ
49122001-06-13 Eli Zaretskii <eliz@is.elta.co.il>
4913
4914 * config/i386/xm-go32.h (SLASH_P, ROOTED_P, SLASH_CHAR)
bfefb583 4915 (SLASH_STRING): Remove unused definitions.
4ac40b29
EZ
4916 * config/i386/xm-cygwin.h: Likewise.
4917
6b28c186
AC
49182001-06-12 Andrew Cagney <ac131313@redhat.com>
4919
4920 * ui-out.c (ui_out_list_begin): Add parameter ``id''.
4921 (make_cleanup_ui_out_list_begin_end): Ditto. Open the list.
4922 * ui-out.h: Update declarations.
4923
1f8cc6db
AC
4924Mon Jun 11 17:26:43 2001 Andrew Cagney <cagney@b1.cygnus.com>
4925
4926 * source.c (openp): Make parameters ``path'' and ``string''
4927 constant.
4928 (openp): Use alloca to safely duplicate ``string''. Make local
4929 variables ``p'' and ``p1'' constant. Delete char* casts.
4930 * defs.h: Update.
4931
4932 * symtab.c (lookup_symtab_1): Make parameter ``name'' constant.
4933 (lookup_symtab, lookup_partial_symtab): Ditto.
4934 * symtab.h (lookup_symtab, lookup_partial_symtab): Update.
4935
88379baf
AC
49362001-06-11 Andrew Cagney <ac131313@redhat.com>
4937
4938 * ui-out.h (ui_out_table_begin): Make char* parameters constant.
4939 (ui_out_table_header, ui_out_field_int): Ditto.
4940 (ui_out_field_core_addr, ui_out_field_string): Ditto.
4941 (ui_out_field_stream, ui_out_field_fmt): Ditto.
4942 (ui_out_field_skip, ui_out_text, ui_out_message): Ditto.
4943 * ui-out.c (ui_out_table_begin, ui_out_table_header): Update.
4944 (ui_out_field_core_addr, ui_out_field_stream): Update.
4945 (ui_out_field_string, ui_out_field_fmt): Update.
4946 (ui_out_text, ui_out_message): Update.
4947 (append_header_to_list): Make char* parameters constant.
4948 (uo_table_header, uo_table_begin): Ditto.
4949 (uo_field_int, uo_field_skip): Ditto.
4950 (uo_field_string, uo_field_fmt): Ditto.
4951 (uo_text, uo_message): Ditto.
4952
c94fdfd0
EZ
49532001-06-11 Eli Zaretskii <eliz@is.elta.co.il>
4954
4955 * completer.c (gdb_completer_loc_break_characters): New variable.
4956 (line_completion_function): If we are completing on locations,
4957 back up the start of word pointer past all characters which can
4958 appear in a location spec.
4959 (location_completer): New function.
4960
4961 * completer.h: Add prototype for location_completer.
4962
4963 * symtab.c (make_source_files_completion_list)
4964 (add_filename_to_list, not_interesting_fname): New functions.
4965 (filename_seen): New function, body extracted from
4966 output_source_filename.
4967 (output_source_filename): Call filename_seen to check if the file
4968 was already printed.
4969 (make_symbol_completion_list): If TEXT includes a
4970 double-quoted string, return an empty list, not NULL.
4971 (make_file_symbol_completion_list): New function, similar to
4972 make_symbol_completion_list but with an additional argument
4973 SRCFILE.
4974
4975 * symtab.h (make_file_symbol_completion_list)
4976 (make_source_files_completion_list): Add prototypes.
4977
4978 * breakpoint.c (_initialize_breakpoint): Make location_completer
4979 be the completion function for all commands which set breakpoints
4980 and watchpoints.
4981 (top-level): #include "completer.h".
4982
4983 * tracepoint.c (_initialize_tracepoint): Make location_completer
4984 be the completion function for the "trace" command.
4985 (top-level): #include "completer.h".
4986
4987 * printcmd.c (_initialize_printcmd): Make location_completer be
4988 the completion function for the "print", "inspect", "call", and
4989 "disassemble" commands.
4990 (top-level): #include "completer.h".
4991
4992 * infcmd.c (_initialize_infcmd): Make location_completer be the
4993 completion function for the "go", "jump", and "until" commands.
4994 (top-level): #include "completer.h".
4995
0b6a968e
CF
49962001-06-10 Christopher Faylor <cgf@redhat.com>
4997
4998 * gnu-regex.c: Eliminate obsolete check for _MSC_VER.
4999 * utils.c (notice_quit): Remove dummy function only used for _MSC_VER.
5000 * values.c (unpack_double): Remove obsolete check for _MSC_VER.
5001 * defs.h: Ditto.
5002 * m32r-rom.c: Ditto.
5003 * p-exp.y: Ditto.
5004 * ser-e7kpc.c: Ditto. Define WIN32_LEAN_AND_MEAN under _WIN32, for
5005 faster compilation.
5006 (get_ds_base): Remove _MSC_VER version of this function.
67bfdb89
CF
5007 * nindy-share/ttyflush.c: Ditto.
5008 * rdi-share/host.h: Ditto.
0b6a968e
CF
5009 * ser-go32.c (dos_readchar): Remove call to obsolete function.
5010 * remote-sim.c (gdb_os_poll_quit): Ditto.
5011 * remote-e7000.c (expect): Remove obsolete #if 0'ed code.
5012
5013 * main.c (captured_main): Eliminate special Cygwin checks.
5014 * ser-tcp.c: Remove unneeded __CYGWIN__ guard against system include.
5015
e2e11a41
AC
50162001-06-09 Andrew Cagney <ac131313@redhat.com>
5017
bf5efbab
AC
5018 * Makefile.in (gdbcmd_h): Add ui_out_h.
5019 (breakpoint.o, infcmd.o, main.o, printcmd.o, stack.o): Ditto.
5020 (thread.o, top.o): Ditto.
5021
e2e11a41
AC
5022 * ui-out.h (table_begin_ftype): Make string parameters constant.
5023 (table_header_ftype): Ditto.
5024 (field_int_ftype): Ditto.
5025 (field_skip_ftype): Ditto.
5026 (field_string_ftype): Ditto.
5027 (field_fmt_ftype): Ditto.
5028 (text_ftype): Ditto.
5029 (message_ftype): Ditto.
5030 * cli-out.c (cli_table_begin): Ditto.
5031 (cli_table_header): Ditto.
5032 (cli_field_int): Ditto.
5033 (cli_field_skip): Ditto.
5034 (cli_field_string): Ditto.
5035 (cli_field_fmt): Ditto.
5036 (cli_text): Ditto.
5037 (cli_message): Ditto.
5038 (out_field_fmt): Ditto.
5039 * ui-out.c (default_table_begin): Ditto.
5040 (default_table_header): Ditto.
5041 (default_field_int): Ditto.
5042 (default_field_skip): Ditto.
5043 (default_field_string): Ditto.
5044 (default_field_fmt): Ditto.
5045 (default_text): Ditto.
5046 (default_message): Ditto.
5047
2e663524
MS
50482001-06-08 Michael Snyder <msnyder@redhat.com>
5049
5050 * breakpoint.c (delete_breakpoint): Pass mark_inserted to
5051 remove_breakpoint, so that the subsequent test for
5052 bpt->inserted will succeed, and duplicates will be fixed up.
5053
bebd888e
PB
50542001-06-08 Per Bothner <per@bothner.com>
5055
5056 * dwarf2read.c (set_cu_language): Handle DW_LANG_Java.
5057
8f45b7fe
KS
50582001-06-07 Keith Seitz <keiths@redhat.com>
5059
5060 * tracepoint.c (tracepoint_opertation): Add ui event
5061 notifications.
5062 (trace_pass_command): Ditto.
5063
b76a2a57
AC
50642001-06-07 Andrew Cagney <ac131313@redhat.com>
5065
5066 * MAINTAINERS (Write After Approval): Note the entry criteria.
a4f1e24f 5067 (HP/PA): Jeff Law stepped down
b76a2a57 5068
72e74a21
JB
50692001-06-07 Jim Blandy <jimb@redhat.com>
5070
5071 * gdbarch.sh: Make sure that '[' doesn't interpret interesting
5072 variable values as operators.
5073
8c6ee715
KS
50742001-06-07 Keith Seitz <keiths@redhat.com>
5075
5076 * gdb-events.sh: Fix quote escaping which was obsoleted
5077 by last patch.
5078
9e791099
KS
50792001-06-07 Keith Seitz <keiths@redhat.com>
5080
5081 * gdb-events.sh: Make if statements and tests
5082 a little more portable.
5083 Don't use shell's echo command to put strings containing
5084 escaped characeters into a file -- different flavors of /bin/sh
5085 require differnt levels of escaping. Use cat <<EOF instead.
5086 Our internal field separator is a colon. Change all
5087 commands which assume it is a space.
5088
fce0e6e1
MK
50892001-06-06 Mark Kettenis <kettenis@gnu.org>
5090
5091 * lin-lwp.c (struct lwp_info): Add member `resumed'.
5092 (iterate_over_lwps): Make sure we can handle CALLBACK deleting the
5093 LWP it's called for.
5094 (lin_lwp_attach): Mark LWP as resumed to make sure the fake
5095 SIGSTOP is reported.
5096 (resume_clear_callback): New function.
5097 (resume_set_callback): New function.
5098 (lin_lwp_resume): Mark all LWP's that we're going to resume as
5099 resumed, and unmark all others.
5100 (status_callback): Only report a pending wait status if we pretend
5101 that LP has been resumed.
5102 (resumed_callback): New function.
5103 (lin_lwp_wait): Add assertions to check that LWP's are properly
5104 marked as resumed. Partially revert 2001-05-25 patch by Michael
5105 Snyder: do not resume all threads. Add comment explaining the
5106 problems associated with this bit of code.
5107
54403c59
KS
51082001-06-07 Keith Seitz <keiths@redhat.com>
5109
5110 * MAINTAINTERS: Syd Polk is stepping down from
5111 maintaining libgui. I am replacing him.
5112
1d06468c
EZ
51132001-06-07 Eli Zaretskii <elis@is.elta.co.il>
5114
5115 * config/mips/tm-irix6.h: New file.
5116
5117 * config/mips/irix6.mh: New file.
5118
5119 * config/mips/irix6.mt: New file.
5120
5121 * config/mips/xm-irix6.h: New file.
5122
5123 * config/mips/nm-irix6.h: New file.
5124
5125 * mips-tdep.c (mips_gdbarch_init) <MIPS_ABI_N32>: Set up the
5126 disassembler info in tm_print_insn_info as appropriate for the N32
5127 ABI. Force N32 ABI to be the default if the CPU is R8000 or
5128 R10000.
5129
5130 * configure.tgt (mips*-sgi-irix6*): Map to irix6.
5131
5132 * configure.host (mips*-sgi-irix6*): Ditto.
5133
3d499020
AC
51342001-06-07 Andrew Cagney <ac131313@redhat.com>
5135
5136 * gnu-v3-abi.c: Include "gdb_assert.h".
5137 (build_gdb_vtable_type): Replace abort() with gdb_assert().
5138
ceaa8edf
JB
51392001-06-06 Jim Blandy <jimb@redhat.com>
5140
c5f5341b
JB
5141 * cp-abi.h: Rearrange code to put documentation comments above the
5142 functions we export. The actual function table itself simply
5143 refers to those functions. Minor doc fixes.
5144
ceaa8edf
JB
5145 * gdbarch.sh: Changes to effect the following:
5146 * gdbarch.c (initialize_non_multiarch): New function.
5147 * gdbarch.h (initialize_non_multiarch): New declaration.
5148 * arch-utils.c (initialize_current_architecture): For
5149 non-multiarch configurations, call initialize_non_multiarch.
5150
0cd64fe2
AC
51512001-06-06 Andrew Cagney <ac131313@redhat.com>
5152
5153 * symfile.c (compare_psymbols): Replace PTR with void*. Delete
5154 declaration.
5155 (compare_symbols): Ditto.
5156
8849f47d
JL
51572001-06-06 Jonathan Larmour <jlarmour@redhat.com>
5158
5159 * arch-utils.c (generic_prepare_to_proceed): Allow for having
5160 stopped due to a Ctrl-C as well as breakpoints.
5161
5162 * hppa-tdep.c (hppa_prepare_to_proceed): Add FIXME as this may not
5163 support thread switches after Ctrl-C.
5164 * lin-lwp.c (lin_lwp_prepare_to_proceed): Ditto.
5165 * linux-thread.c (linuxthreads_prepare_to_proceed): Ditto.
5166 * m3-nat.c (mach3_prepare_to_proceed): Ditto.
5167
b3cc3077
JB
51682001-06-06 Jim Blandy <jimb@redhat.com>
5169
5170 * gdbarch.sh, gdbarch.c: Revert change of 2001-06-01; all
5171 per-architecture data should be registered at initialization time,
5172 before any gdbarch objects get used, so the generality is
5173 unnecessary.
5174
ba9fe036
KS
51752001-06-06 Keith Seitz <keiths@redhat.com>
5176
5177 * gdb-events.sh (function_list): Add tracepoint_create,
5178 tracepoint_delete, and tracepoint_modify events.
5179 * gdb-events.c: Regenerated.
5180 * gdb-events.h: Regenerated.
5181
e28f816a
KS
51822001-06-06 Keith Seitz <keiths@redhat.com>
5183
5184 * gdb-events.sh: Update copyrights.
5185 Change free to xfree.
5186 * gdb-events.c: Regenerated.
5187 * gdb-events.h: Regenerated.
5188
c3690141
EZ
51892001-06-06 Eli Zaretskii <eliz@is.elta.co.il>
5190
5191 * source.c (mod_path, openp): Use #ifdef HAVE_DOS_BASED_FILE_SYSTEM
5192 instead of #if HAVE_DOS_BASED_FILE_SYSTEM.
5193 * completer.c: Ditto.
5194 * cli/cli-cmds.c (cd_command): Ditto.
5195
37ba1196
EZ
51962001-06-04 Eli Zaretskii <eliz@is.elta.co.il>
5197
1012bd0e
EZ
5198 * mips-tdep.c (show_mipsfpu_command): Remove unused variable msg.
5199 (mips_set_processor_type_command): Remove unused variable j.
5200 (mips_breakpoint_from_pc): Declare breakpoint instruction
5201 sequences as unsigned char, to avoid compiler warnings.
5202
fe4e3eb8
EZ
5203 * source.c (mod_path, openp): Use HAVE_DOS_BASED_FILE_SYSTEM
5204 instead of system-specific define's like _WIN32 and __MSDOS__.
5205 Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH instead of SLASH_P and
5206 ROOTED_P.
5207 (top-level): #include "filenames.h".
5208
5209 * solib.c (solib_open): Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH
5210 instead of SLASH_CHAR, ROOTED_P and SLASH_P.
5211 (top-level): #include "filenames.h".
5212
5213 * defs.h (SLASH_P, SLASH_CHAR, ROOTED_P): Remove definitions.
5214 (SLASH_STRING): Define only for _WIN32.
5215
5216 * completer.c: Use HAVE_DOS_BASED_FILE_SYSTEM instead of
5217 __MSDOS_.
5218
5219 * cli/cli-cmds.c (cd_command): Use IS_DIR_SEPARATOR and
5220 IS_ABSOLUTE_PATH instead of SLASH_P and ROOTED_P. Replace
5221 system-specific ifdefs with HAVE_DOS_BASED_FILE_SYSTEM.
5222 (top-level): #include "filenames.h".
5223
37ba1196
EZ
5224 * go32-nat.c (go32_wait): Change the return value to ptid_t.
5225
5226 * config/djgpp/fnchange.lst: Add two new files in the
5227 gdb/testsuite/gdb.c++/ directory to the remapped names.
5228
5229 * config/djgpp/djconfig.sh (lt_cv_sys_max_cmd_len): Set to 12KB.
5230
3c875b6f
JB
52312001-06-01 Jim Blandy <jimb@redhat.com>
5232
5233 Expand the gdbarch per-architecture data vector as needed, rather
5234 than requiring that all per-architecture data be registered before
5235 the first gdbarch object is allocated.
5236 * gdbarch.sh: Changes to effect the following:
5237 * gdbarch.c (alloc_gdbarch_data, init_gdbarch_data): Delete
5238 declarations and definitions.
5239 (check_gdbarch_data): New function, and declaration.
5240 (gdbarch_alloc): Don't call alloc_gdbarch_data; leaving the fields
5241 zero is good enough.
5242 (free_gdbarch_data): Tolerate a null data pointer. Free only
5243 those data items gdbarch->data actually has allocated.
5244 (set_gdbarch_data, gdbarch_data): Call check_gdbarch_data.
5245 (gdbarch_update_p): No need to call init_gdbarch_data.
5246
98f96ba1
KB
52472001-06-01 Kevin Buettner <kevinb@redhat.com>
5248
5249 * ia64-tdep.c (is_float_or_hfa_type_recurse): Call check_typedef()
5250 on types that we wish to recurse on.
5251 (slot_alignment_is_next_even): New function.
5252 (ia64_push_arguments): Call slot_alignment_is_next_even() to
5253 examine the type in order to decide if it's necessary to skip
5254 an odd slot.
5255
c6ad9598
MS
52562001-06-01 Michael Snyder <msnyder@redhat.com>
5257
8601f500
MS
5258 * thread.c (delete_step_resume_breakpoint): New function.
5259 Maintain internal consistency of the thread list while deleting
5260 a step_resume_breakpoint.
5261 * gdbthread.h (delete_step_resume_breakpoint): Export.
5262 * breakpoint.c (bpstat_find_step_resume_breakpoint):
5263 Make thread-aware: don't return a step_resume_breakpoint
5264 for the wrong thread.
5265 * infrun.c (wait_for_inferior): Call delete_step_resume_breakpoint
5266 instead of delete_breakpoint_current_contents.
5267 (fetch_inferior_event): Ditto.
5268 (handle_inferior_event): Call delete_step_resume_breakpoint
5269 instead of delete_breakpoint.
c6ad9598
MS
5270 * infrun.c (handle_inferior_event): After singlestepping over a
5271 thread-specific breakpoint, use currently_stepping() to decide
5272 whether to step or continue.
5273
531017df
JB
52742001-06-01 Jim Blandy <jimb@redhat.com>
5275
b27b8843
JB
5276 * gnu-v3-abi.c (gnu_v3_abi_ops, vtable_type_gdbarch_data): Make
5277 these static --- there's no reason other files should use these.
5278
d0bbfec7
JB
5279 * partial-stab.h (case N_FUN: case 'f':, case N_FUN: case 'F':)
5280 Fix memory leak.
5281
531017df
JB
5282 * partial-stab.h: New complaint: function_outside_compilation_unit.
5283 (case N_FUN: case 'f':, case N_FUN: case 'F':): If pst is zero,
5284 complain, and don't try to set pst's start address.
5285
d469a809
KB
52862001-05-31 Kevin Buettner <kevinb@redhat.com>
5287
5288 * ia64-linux-tdep.c (IA64_LINUX_SIGCONTEXT_OFFSET): Revise to
5289 match the location at which the kernel is placing the sigcontext
5290 struct.
5291
58ab00f9
KB
5292 * ia64-tdep.c (max_skip_non_prologue_insns): New static global.
5293 (refine_prologue_limit): New function.
5294 (examine_prologue): Further limit number of instructions
5295 scanned by calling refine_prologue_limit(). Revise way in
5296 which the end of prologue address is computed for frameless
5297 functions.
5298
9fd7143a
CF
52992001-05-29 Christopher Faylor <cgf@redhat.com>
5300
5301 * partial-stab.h: Revert previous patch.
5302
34a7837a
CF
53032001-05-29 Christopher Faylor <cgf@redhat.com>
5304
5305 * partial-stab.h: Consistently guard against pst being NULL.
5306
ad53e288
AO
53072001-05-29 Alexandre Oliva <aoliva@redhat.com>
5308
5309 * symfile.c (compare_psymbols, compare_symbols): Declare using
5310 PTR, as in the definition.
09d011c5
AO
5311 * minsyms.c (compare_minimal_symbols): Likewise.
5312 * coffread.c (find_targ_sec): Likewise.
5313 * elfread.c (free_elfinfo, elf_locate_sections): Likewise.
5314 * mipsread.c (alphacoff_locate_sections): Likewise.
5315 * mdebugread.c (compare_blocks): Likewise.
ad53e288 5316
b41be06e
ND
53172001-05-25 Nick Duffek <nsd@redhat.com>
5318
5319 * solib.c (update_solib_list): Move target_resize_to_sections()
5320 into solib_map_sections() loop.
5321 (info_sharedlibrary_command): Try bfd_arch_bits_per_address() if
5322 bfd_get_arch_size() fails.
5323
a1cd1908
ND
53242001-05-25 Nick Duffek <nsd@redhat.com>
5325
5326 * Makefile.in (osfsolib.c, osfsolib.o): Rename to solib-osf.c and
5327 solib-osf.o.
5328 * config/alpha/alpha-osf1.mh (NATDEPFILES): Replace osfsolib.o
5329 with solib-osf.o and solib.o.
5330 * config/alpha/alpha-osf2.mh: Likewise.
5331 * config/alpha/alpha-osf3.mh: Likewise.
5332 * solib-osf.c: New file, renamed and largely rewritten from
5333 osfsolib.c.
5334
aa6c0017
MS
53352001-05-25 Michael Snyder <msnyder@redhat.com>
5336
c4365b19
MS
5337 * lin-lwp.c (lin_lwp_attach_lwp): Call stop_wait_callback,
5338 to consume the SIGSTOP generated by PTRACE_ATTACH.
5339 (stop_wait_callback): If a SIGTRAP or a SIGINT event is consumed,
5340 try again to get the SIGSTOP event.
5341 (lin_lwp_wait): Resume all threads when ignoring a signal.
5342 This will insure that newly attached threads get resumed.
5f885618 5343 * lin-lwp.c (stop_wait_callback): Discard redundant SIGINT events.
aa6c0017
MS
5344 * remote.c (remote_write_bytes): Update 'p' packet pointer.
5345
4b1fedf1
JB
53462001-05-25 Jim Blandy <jimb@redhat.com>
5347
5348 * gnu-v2-abi.c (gnuv2_virtual_fn_field): There's no need to clear
5349 VALUE_POINTED_TO_OFFSET here; if value_cast doesn't return a
5350 useful value, then we should fix that instead.
5351
fa3b51d2
ND
53522001-05-24 Nick Duffek <nsd@redhat.com>
5353
5354 * solist.h (struct so_list): Document the requirement that
5355 current_sos initialize some fields to 0.
5356
2747183e
MK
53572001-05-24 Mark Kettenis <kettenis@gnu.org>
5358
5359 * gnu-nat.c: Include <ctype.h>.
5360 (gnu_pid_to_exec_file): Add PID parameter.
5361 (set_sig_thread_cmd): Use PIDGET on return value from
5362 thread_id_to_pid.
5363 (proc_string): Use MERGEPID to construct argument to
5364 pid_to_thread_id.
5365
e4f237da
KB
53662001-05-22 Kevin Buettner <kevinb@redhat.com>
5367
5368 * breakpoint.c (breakpoint_address_is_meaningful): New function.
5369 (check_duplicates): Don't compare non-meaningful addresses.
5370
5fd913cc
MS
53712001-05-22 Michael Snyder <msnyder@redhat.com>
5372
5373 * thread-db.c: Allow for defunct zombie threads.
5374 (attach_thread): Do not attempt to attach zombie thread.
5375 (thread_db_thread_alive): Return false for defunct zombie thread.
5376 (find_new_threads_callback): Don't add defunct zombie thread to list.
5377
7ed49443
JB
53782001-05-22 Jim Blandy <jimb@redhat.com>
5379
5380 Add support for the GNU V3 C++ ABI.
5381 (Includes changes by Dan Berlin.)
5382
5383 * gnu-v3-abi.c: New file.
5384 * minsyms.c: #include "value.h" and "cp-abi.h".
5385 (install_minimal_symbols): Check the minimal symbol table for
5386 symbols that look mangled in the V3 style, and select the V3 ABI
5387 if we find any.
5388 * Makefile.in (SFILES): Add gnu-v3-abi.c.
5389 (COMMON_OBS): Add gnu-v3-abi.o.
5390 (gnu-v3-abi.o): Add new rule.
5391 (minsyms.o): Depend on $(cp_abi_h) and $(value_h).
5392
a44999d5
JB
53932001-05-21 Jim Blandy <jimb@redhat.com>
5394
8d65888a
JB
5395 * values.c (value_primitive_field): If we're extracting a base
5396 class, then the type of the result should be the base class being
5397 extracted, not the type of which it is a base class.
5398
a44999d5
JB
5399 * value.h (struct value): Doc fix, and rearrange members to place
5400 them near their explanations.
5401
6c3f2dbf
MS
54022001-05-21 Michael Snyder <msnyder@redhat.com>
5403
5404 * remote.c (remote_async_wait): Added new variable fieldsize.
5405 Add fieldsize (return value of hex2bin) to string pointer p.
5406
b4fa4770
SC
54072001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5408
5409 * m68hc11-tdep.c (m68hc11_pop_frame): Fix stack pointer computation.
5410 (m68hc11_analyze_instruction): Update the pc correctly.
5411 (m68hc11_guess_from_prologue): Take into account the stack correction
5412 for the saving address.
5413
2b127877
DB
54142001-05-07 Daniel Berlin <dan@cgsoftware.com>
5415
5416 Changes by Jim Ingham:
5417
5418 * values.c (value_change_enclosing_type): New function. If the
5419 new enclosing type is larger than the old one, we need to allocate
5420 more space.
5421 * value.h: Add value_change_enclosing_type prototype.
5422 * valops.c (value_cast): Use it.
5423 (value_assign): Use it.
5424 (value_addr): Use it.
5425 (value_ind): Use it.
5426 (value_full_object): Use it.
5427
54282001-05-07 Daniel Berlin <dan@cgsoftware.com>
5429
984e377c
JB
5430 * values.c (value_static_field): Handle static fields that have a
5431 constant value.
2b127877 5432
736d0890
MS
54332001-05-17 Michael Snyder <msnyder@redhat.com>
5434
5435 * blockframe.c (create_new_frame): Zero all the fields via memset,
5436 rather than zeroing them one by one.
5437
a577b05c
EZ
54382001-05-17 Eli Zaretskii <eliz@is.elta.co.il>
5439
5440 * top.c (user_args): Remove unused declaration.
5441
b8adfa9f
MS
54422001-05-16 Michael Snyder <msnyder@redhat.com>
5443
5444 * infcmd.c (do_registers_info): Move alloca outside of loop.
5445
97345198
MS
54462001-05-15 John S Kallal <jskallal@home.com>
5447
5448 * remote.c (remote_wait): Added new variable fieldsize.
5449 Add fieldsize (return value of hex2bin) to string pointer p.
5450
aca21d9a
MK
54512001-05-15 Mark Kettenis <kettenis@gnu.org>
5452
5453 * sparc-tdep.c (sparc_gdbarch_init): Get the architecture from
5454 info.bfd_arch_info.
5455
b08cfdb6
KB
54562001-05-14 Kevin Buettner <kevinb@redhat.com>
5457
5458 * lin-lwp.c (detach_callback, lin_lwp_wait, lin_lwp_pid_to_str):
5459 Adjust format strings for printing LWPs to account for the fact
5460 that the type returned by GET_LWP() is now a long instead of an
5461 int.
5462
ca6724c1
KB
54632001-05-14 Kevin Buettner <kevinb@redhat.com>
5464
5465 * inferior.h (null_ptid, minus_one_ptid): New variable declarations.
5466 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
5467 (ptid_get_tid, ptid_equal): New function declarations.
5468 * infrun.c (null_ptid, minus_one_ptid): New variables.
5469 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
5470 (ptid_get_tid, ptid_equal): New functions.
5471 (_initialize_infrun): Initialize null_ptid, minus_one_ptid,
5472 inferior_ptid, and target_last_wait_ptid.
5473
5474 * defs.h (ptid_t): Redefine to be a struct rather than an int.
5475 (pid_to_ptid, null_ptid, ptid_equal): Delete these macros.
5476 (PIDGET, TIDGET, MERGEPID): Redefine these macros using the
5477 new ptid accessors and constructor.
5478
5479 * config/i386/tm-i386v42mp.h (PIDGET, TIDGET, LIDGET, MERGEPID,
5480 MKLID, MKTID, ISTID): Provide new definitions for these macros.
5481 The old macros are retained, but disabled via #if 0 in order
5482 to aid in future restructuring. See FIXME.
5483
5484 * arm-linux-nat.c (PIDGET, TIDGET): Delete macro definitions.
5485 * i386-linux-nat.c (PIDGET, TIDGET): Likewise.
5486 * infptrace.c (PIDGET, TIDGET): Likewise.
5487 * lin-lwp.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
5488 * lin-thread.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
5489 * proc-service.c (MERGEPID): Likewise.
5490 * procfs.c (PIDGET, TIDGET, MERGEPID): Likewise.
5491 * thread-db.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
5492 * config/nm-linux.h (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
5493 * config/i386/tm-i386sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
5494 Likewise.
5495 * config/sparc/tm-sun4sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
5496 Likewise.
5497
5498 * lin-lwp.c (THREAD_FLAG): Delete macro definition.
5499 (GET_LWP): Redefine in terms of ptid_get_lwp().
5500 (GET_PID): Redefine in terms of ptid_get_pid().
5501 (is_lwp): Redefine without the need for THREAD_FLAG.
5502 (BUILD_LWP): Redefine in terms of ptid_build().
5503 * lin-thread.c (THREAD_FLAG): Delete macro definition.
5504 (GET_LWP): Redefine in terms of ptid_get_lwp().
5505 (GET_PID): Redefine in terms of ptid_get_pid().
5506 (GET_THREAD): Redefine in terms of ptid_get_tid().
5507 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
5508 (is_lwp, is_thread): Redefine.
5509 (linux_child_wait, check_all_signal_numbers)
5510 (linuxthreads_discard_global_state, attach_thread): Declare these
5511 functions to squash warnings about missing declarations.
5512 * sol-thread.c (THREAD_FLAG): Delete macro definition.
5513 (GET_PID): Redefine in terms of ptid_get_pid().
5514 (GET_LWP): Redefine in terms of ptid_get_lwp().
5515 (GET_THREAD): Redefine in terms of ptid_get_tid().
5516 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
5517 (is_lwp, is_thread): Redefine.
5518 * thread-db.c (THREAD_FLAG): Delete macro definition.
5519 (GET_PID): Redefine in terms of ptid_get_pid().
5520 (GET_LWP): Redefine in terms of ptid_get_lwp().
5521 (GET_THREAD): Redefine in terms of ptid_get_tid().
5522 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
5523 (is_lwp, is_thread): Redefine.
5524
5525 * corelow.c (add_to_thread_list, get_core_register_section):
5526 Eliminate hacks needed to prevent regressions when inferior_ptid
5527 wasn't wide enough to hold the core file thread id in the pid
5528 component of inferior_ptid.
5529
234fa6d1
MS
55302001-05-14 Michael Snyder <msnyder@redhat.com>
5531
5532 * remote.c (hex2bin): Make first argument const.
5533 Require explicit count, don't accept null-terminated str.
5534 (remote_resume, remote_async_resume): White space fix-up.
5535 (remote_write_bytes): Set nr_bytes to return value of bin2hex.
5536
caadab2c
MK
55372001-05-13 Mark Kettenis <kettenis@gnu.org>
5538
5539 * symtab.c (lookup_symtab_1): Use lbasename (NAME) instead of
5540 basename (NAME). The FreeBSD basename returns a pointer to a
5541 static buffer, even if it's simply returning a string identical to
5542 its argument.
5543 (lookup_partial_symtab): Likewise.
5544
2644f393
MS
55452001-05-14 Michael Snyder <msnyder@redhat.com>
5546
cb0ba49e 5547 * solib.c, solib.h: Add comment for function no_shared_libraries.
2644f393 5548
183a2f1a
KB
55492001-05-14 Kevin Buettner <kevinb@redhat.com>
5550
5551 * solib.h (no_shared_libraries): Make declaration match definition
5552 in solib.c.
5553
1dd1751e
AC
55542001-05-14 Andrew Cagney <ac131313@redhat.com>
5555
5556 * remote.c (remote_write_bytes): Set nr_bytes before returning it.
5557 * solib.h (no_shared_libraries): Declare.
5558
b732d07d
AC
55592001-05-12 Andrew Cagney <ac131313@redhat.com>
5560
5561 * gdbarch.sh (struct gdbarch_info): Delete field bfd_architecture.
5562 (gdbarch_update_p): Rewrite logic filling in INFO struct. Use
5563 user specified values when available.
5564 * rs6000-tdep.c (rs6000_gdbarch_init): Update. Get the
5565 architecture from info.bfd_arch_info.
5566 * gdbarch.c, gdbarch.h: Regenerate.
5567
67dd5ca6
FN
55682001-05-12 Fernando Nasser <fnasser@redhat.com>
5569
5570 * remote-e7000.c (e7000_open): Check for bad baud rate.
5571 * remote-st.c (st2000_open): Ditto.
5572
529acb48
JB
55732001-05-11 Jim Blandy <jimb@redhat.com>
5574
f8e42d24
JB
5575 * thread.c (do_captured_list_thread_ids): Use ui_out_tuple_begin
5576 and ui_out_tuple_end instead of ui_out_list_begin and
5577 ui_out_list_end.
5578
529acb48
JB
5579 * Makefile.in (gnu-v2-abi.o): Add $(demangle_h) to list of
5580 dependencies. Reorder dependencies to match #includes in file,
5581 for easier verification.
5582
666547aa
AC
5583Fri May 11 13:32:50 2001 Andrew Cagney <cagney@b1.cygnus.com>
5584
5585 * breakpoint.c: Replace ui_out_list_begin, ui_out_list_end and
5586 make_cleanup_ui_out_list_end with ui_out_tuple_begin,
5587 ui_out_tuple_end and make_cleanup_ui_out_tuple_begin_end.
5588 * cli/cli-setshow.c: Ditto.
5589 * printcmd.c: Ditto.
5590 * stack.c: Ditto.
5591
5592 * ui-out.h (enum ui_out_type): Fix tipo - tupple -> tuple.
5593 * ui-out.c (ui_out_list_begin): Delete ``lstid'' parameter.
5594 (ui_out_tuple_begin): New function.
5595 (ui_out_tuple_end): New function.
5596 (ui_out_tuple_begin_end): New function.
5597 (make_cleanup_ui_out_list_begin_end): Replace
5598 make_cleanup_ui_out_list_end function.
5599 * ui-out.h (ui_out_list_begin): Update declaration.
5600 (make_cleanup_ui_out_list_begin_end): Replace
5601 make_cleanup_ui_out_list_end declaration.
5602 (ui_out_tuple_begin, ui_out_tuple_end): Declare.
5603 (ui_out_tuple_begin_end): Declare.
5604
30c98d84
JB
56052001-05-11 Jim Blandy <jimb@redhat.com>
5606
5607 * gnu-v2-abi.c: Don't #include "gdb_regex.h". We don't use it.
5608
1faa59a8
AC
56092001-05-11 Andrew Cagney <ac131313@redhat.com>
5610
5611 From 2001-03-26 Rodney Brown <RodneyBrown@mynd.com>
5612 * config/pa/tm-hppa.h: Remove trigraph.
5613 * hp-symtab-read.c (hpread_type_translate): Provide return value.
5614 (hpread_read_struct_type): Remove trigraph. Add parameter in
5615 `warning'.
5616 (hpread_read_array_type): Provide return value.
5617 (hpread_type_lookup): Avoid ambiguous `else'. Provide return
5618 value.
5619 * hppa-tdep.c (initialize_hp_cxx_exception_support): Remove
5620 trigraph.
5621
99567b1b
JB
56222001-05-11 Jim Blandy <jimb@redhat.com>
5623
5624 * mips-tdep.c (mips_store_return_value,
5625 mips_extract_return_value): Pass arguments to
5626 return_value_location in the proper order.
5627
d3814881
AC
56282001-05-11 Andrew Cagney <ac131313@redhat.com>
5629
5630 * Makefile.in (VERSION): Delete. Moved to file ``version.in''.
5631 (version.c): Depends on file ``version.in''. Extract version
5632 number from ``version.in'' file.
5633 (clean mostlyclean): Update.
5634 * version.in: New file.
5d6640b1 5635 * NEWS: Update.
d3814881 5636
4d28f7a8
KB
56372001-05-11 Kevin Buettner <kevinb@redhat.com>
5638
5639 * breakpoint.c (set_raw_breakpoint): Add new parameter
5640 representing the breakpoint's type. Adjust all callers.
5641 (create_longjmp_breakpoint, create_temp_exception_breakpoint)
5642 (create_thread_event_breakpoint): Don't test for zero return
5643 value from set_raw_breakpoint(). It can never be zero.
5644 (create_exception_catchpoint, watch_command_1): Move logic
5645 which calculates the breakpoint type prior to the call to
5646 set_raw_breakpoint().
5647
08b4f080
FN
56482001-05-11 Fernando Nasser <fnasser@redhat.com>
5649
5650 * ser-unix.c (rate_to_code): Issue warning if baud rate is invalid.
5651 (hardwire_setbaudrate): Set errno to EINVAL and return with error
5652 if the conversion of the baud rate to code fails.
5653
127431f9
AC
56542001-05-10 Andrew Cagney <ac131313@redhat.com>
5655
5656 * ui-out.h (make_cleanup_ui_out_begin_end): Declare.
5657 * ui-out.c (struct ui_out_end_cleanup_data): Define.
5658 (do_cleanup_end): New function. Replace do_list_end.
5659 (make_cleanup_ui_out_end): New function.
5660 (make_cleanup_ui_out_begin_end): New function.
5661 (make_cleanup_ui_out_list_end): Use make_cleanup_ui_out_end.
5662
5dbc5e5f
EZ
56632001-05-10 Elena Zannoni <ezannoni@redhat.com>
5664
5665 * MAINTAINERS: Declare xcoffread.c open to all maintainers,
5666 and make Kevin Buettner (kevinb@redhat.com) the reference person.
5667
8e40d292
EZ
56682001-05-10 Elena Zannoni <ezannoni@redhat.com>
5669
5670 * proc-api.c (ioctl_with_trace): Fix uninitialized variable.
5671
5a703563
FN
56722001-05-10 Fernando Nasser <fnasser@redhat.com>
5673
5674 * MAINTAINERS: Add testsuite subdirectory co-maintainers.
5675
6311b07d
AC
5676Thu May 10 16:26:47 2001 Andrew Cagney <cagney@b1.cygnus.com>
5677
5678 * Makefile.in (mi-main.o): Compile with -Werror.
5679
30559e10
MS
56802001-05-10 Michael Snyder <msnyder@redhat.com>
5681
f78f6cf1
MS
5682 * remote.c (remote_open_1): Call no_shared_libraries, so that
5683 symbols for shared libraries can be reloaded per session.
5684 (remote_async_open_1): Ditto.
30559e10
MS
5685 * remote.c (bin2hex, hex2bin): New functions. Factor out these
5686 two conversions which are coded for repeatedly in this module.
5687 (remote_threads_extra_info, remote_wait, remote_async_wait,
5688 store_register_using_P, remote_store_registers, remote_write_bytes,
5689 remote_read_bytes, remote_rcmd): Use bin2hex and hex2bin instead
5690 of coding the conversions inline.
5691 (fromhex): Not exported, change from extern to static.
5692
0a1d9791
AC
56932001-05-10 Andrew Cagney <ac131313@redhat.com>
5694
5695 * arch-utils.c (initialize_current_architecture): Delete obsolete
5696 ``info architecture'' command.
5697 (info_architecture): Delete function.
5698
ee055267
AC
56992001-05-10 Andrew Cagney <ac131313@redhat.com>
5700
5701 * TODO (5.1, 5.2): Update.
5702
85886af6
AC
57032001-05-09 Andrew Cagney <ac131313@redhat.com>
5704
5705 * MAINTAINERS: Jim Ingham is no longer maintaining Arm related
5706 stuff.
30559e10 5707
ecb9ce7e
KS
57082001-05-10 Keith Seitz <keiths@cygnus.com>
5709
5710 * Makefile.in (SUBDIR_GDBTK_OBS): Add gdbtk-bp.o, gdbtk-register.o
5711 and gdbtk-stack.o.
5712 (SUBDIR_GDBTK_SRCS): Ditto for the sources.
5713 (gdbtk-bp.o): New rule.
5714 (gdbtk-register.o): New rule.
5715 (gdbtk-stack.o): New rule.
5716 (gdbtk-cmds.o): Update dependencies.
5717 (gdbtk.o): Ditto.
5718 (gdbtk-hooks.o): Ditto.
5719 (gdbtk-varobj.o): Ditto.
5720
f7635dd9
FN
57212001-05-10 Fernando Nasser <fnasser@redhat.com>
5722
5723 * varobj.c (c_number_of_children): Fix memory leak. Delete unwanted old
5724 variables, not just unregister them.
5725
0755e6c1
FN
57262001-05-10 Fernando Nasser <fnasser@redhat.com>
5727
5728 * varobj.c (c_number_of_children): Check for target type of void*,
5729 not the target type name. Allow dereferencing char*.
5730
d7db6da9
FN
57312001-05-10 Fernando Nasser <fnasser@redhat.com>
5732
5733 * symfile.c (symbol_file_add_main_1): New static function.
5734 Passes the flags arguments to symbol_file_add() and takes care
5735 of any necessary reinitializations.
5736 (symbol_file_command): Call symbol_file_add_main_1() instead of
5737 symbol_file_add().
5738 (symbol_file_add_main): Ditto.
5739
3d6e28e2
KB
57402001-05-09 Kevin Buettner <kevinb@redhat.com>
5741
5742 * lin-lwp.c (lin_lwp_pid_to_str): Revert inadvertent format
5743 string change in 2001-05-03 changes.
5744 (lin_lwp_wait): Revert GET_LWP coercion introduced in 2001-05-03
5745 changes.
5746
01263b57
KB
57472001-05-09 Kevin Buettner <kevinb@redhat.com>
5748
5749 * lin-lwp.c (lin_lwp_attach): Use PIDGET() to fetch the pid
5750 component from inferior_ptid.
5751 (lin_lwp_detach): Use pid_to_ptid() to convert from a pid to a
5752 ptid.
5753
74a151fa
EZ
57542001-05-09 Elena Zannoni <ezannoni@redhat.com>
5755
5756 * sh3-rom.c (_initialize_sh3_rom): Get rid of specific _WINDOWS
5757 conditional for help with connections through parallel ports,
5758 given that the actual code for downloading through a parallel port
5759 is not conditionalized.
5760
5761 * sh-tdep.c: Remove WIN32_WCE conditional. The wince sh target is
5762 unmaintaned, and probably on its way to obsolescence.
5763
d7a0d72c
MK
57642001-05-09 Mark Kettenis <kettenis@gnu.org>
5765
0d17c81d
MK
5766 * i386-tdep.c (i386_frame_saved_pc): New function.
5767 * config/i386/tm-i386.h (FRAME_SAVED_PC): Redefine in terms of
5768 i386_frame_saved_pc.
5769 (i386_frame_saved_pc): New prototype.
5770
d7a0d72c
MK
5771 * i386-tdep.c (i386_register_virtual_type): New function.
5772 (i386_register_convertible): New function.
5773 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE): Redefine in terms
5774 of i386_register_virtual_type.
5775 (REGISTER_CONVERTIBLE): Redefine in terms of
5776 i386_register_convertible.
5777 (i386_register_virtual_type, i386_register_convertible): New
5778 prototypes.
5779
ad8fe2ce
JB
57802001-05-08 Jim Blandy <jimb@redhat.com>
5781
33757489
JB
5782 * Makefile.in (mn10300-tdep.o): New rule.
5783
5784 * Makefile.in (gdb_string_h): Define. Use it throughout.
5785 Some rules were already using this, even though it isn't defined.
5786
c2c197ae
JB
5787 * Makefile.in (obstack_h, target_h): Define; these are already
5788 used elsewhere, but have been expanding to the empty string.
5789 (memattr_h): Define; needed by target_h.
5790
c064f384
JB
5791 * mn10300-tdep.c (mn10300_extract_return_value): Mark this as
5792 static. (This was accidentally omitted from the earlier patch.)
5793
23436510
JB
5794 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): New function.
5795 (mn10300_gdbarch_init): Register it as the architecture's
5796 dwarf2_reg_to_regnum method.
5797
ae83b20d
JB
5798 Correct and expand handling of `movm' instruction, and register
5799 saves in general.
5800 * config/mn10300/tm-mn10300.h (D0_REGNUM, A0_REGNUM, MDRQ_REGNUM,
5801 MCRH_REGNUM, MCRL_REGNUM, MCVF_REGNUM): New definitions.
5802 (enum movm_register_bits): New enum.
5803 * mn10300-tdep.c (set_movm_offsets): Use symbolic names for the
5804 bits, not hex literals. Handle the `other', `exreg0', and
5805 `exother' bits. Correct handling of `exreg1': it saves r4, r5,
5806 r6, and r7, not r2, r3, r4, and r5.
5807 (saved_regs_size): New function.
5808 (mn10300_frame_chain, mn10300_frame_saved_pc): Use it, instead
5809 of computing the same thing inline, incorrectly.
5810
bf4b70a5
JB
5811 * mn10300-tdep.c (mn10300_gdbarch_init): We do have a
5812 dummy_breakpoint_offset; it's zero.
5813
ee9f9641
JB
5814 * mn10300-tdep.c (mn10300_pop_frame): Split the mn10300-specific
5815 stuff out into mn10300_pop_frame_regular, and use
5816 generic_pop_current_frame. This lets us share code, and also
5817 makes this function's prototype match that expected by gdbarch.
5818 Make this function static.
5819 (mn10300_pop_frame_regular): New function.
5820 (mn10300_gdbarch_init): Register mn10300_pop_frame as the
5821 gdbarch's pop_frame method.
5822 * config/mn10300/tm-mn10300.h (POP_FRAME): Delete definition.
5823 (mn10300_pop_frame): Delete declaration.
5824
2ac51b36
JB
5825 * mn10300-tdep.c (mn10300_saved_pc_after_call,
5826 mn10300_extract_return_value,
5827 mn10300_extract_struct_value_address, mn10300_store_return_value,
5828 mn10300_use_struct_convention, mn10300_breakpoint_from_pc,
5829 mn10300_frame_chain, mn10300_skip_prologue,
5830 mn10300_push_arguments, mn10300_push_return_address,
5831 mn10300_store_struct_return, mn10300_frame_saved_pc,
5832 mn10300_init_extra_frame_info, mn10300_frame_init_saved_regs):
5833 Make these functions static; they should only be visible to the
5834 outside world as gdbarch methods.
5835
af4e72e9
JB
5836 * config/mn10300/tm-mn10300.h (mn10300_find_callers_reg): Delete
5837 unused declaration.
5838
584f96a8
JB
5839 * mn10300-tdep.c (mn10300_gdbarch_init): Put the gdbarch methods
5840 in some rational order.
5841
82d983b6
JB
5842 * mn10300-tdep.c (mn10300_gdbarch_init): Rather than using
5843 generic_pc_in_call_dummy, use pc_in_call_dummy_at_entry_point.
5844
ad8fe2ce
JB
5845 Use gdbarch for most target parameters for the MN10300, rather
5846 than the tm-*.h file.
5847 * config/mn10300/tm-mn10300.h (MAX_REGISTER_VIRTUAL_SIZE,
5848 REGISTER_BYTES, FP_REGNUM, BREAKPOINT_FROM_PC,
5849 FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK, INNER_THAN,
5850 SAVED_PC_AFTER_CALL, INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS,
5851 FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC,
5852 EXTRACT_RETURN_VALUE, EXTRACT_STRUCT_VALUE_ADDRESS,
5853 STORE_RETURN_VALUE, STORE_STRUCT_RETURN, SKIP_PROLOGUE,
5854 FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5855 FRAME_NUM_ARGS, POP_FRAME, USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY,
5856 CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5857 CALL_DUMMY_LOCATION, FIX_CALL_DUMMY, CALL_DUMMY_ADDRESS,
5858 TARGET_READ_FP, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5859 SAVE_DUMMY_FRAME_TOS, PUSH_ARGUMENTS, PC_IN_CALL_DUMMY,
5860 REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER):
5861 Delete definitions. We register gdbarch methods for these now.
5862 (struct frame_info, struct type, struct value): Delete forward
5863 declarations of these types; they're no longer necessary, since we
5864 don't have function declarations here any more.
5865 * mn10300-tdep.c: #include "arch-utils.h", to get declarations for
5866 some default gdbarch methods.
5867 (mn10300_store_struct_return): Return void, as expected by
5868 gdbarch.
5869 (mn10300_init_extra_frame_info): Take initial `fromleaf' argument,
5870 as expected by gdbarch.
5871 (mn10300_frame_init_saved_regs): Provide dummy definition for
5872 this, as required by gdbarch.
5873 (mn10300_gdbarch_init): Add mn10300_call_dummy_words, as expected
5874 by gdbarch. Register gdbarch methods or values for all the stuff
5875 removed from tm-10300.h, listed above.
5876
631ec795
AC
58772001-05-08 Andrew Cagney <ac131313@redhat.com>
5878
5879 * cli-out.c (cli_begin, cli_end): Replace cli_list_begin and
5880 cli_list_end.
5881 (cli_ui_out_impl): Update.
5882
5883 * ui-out.c (default_begin, default_end): Replace
5884 default_list_begin and default_list_end.
5885 (default_ui_out_impl): Update.
5886 (uo_begin, uo_end): Replace ou_list_begin and uo_list_end.
5887 (ui_out_begin, ui_out_end): Replace ui_out_list_begin and
5888 ui_out_list_end.
5889 (ui_out_list_begin, ui_out_list_end): New. Compatibility
5890 functions.
5891 (struct ui_out_level): Add field type.
5892 (push_level, pop_level): Update. Add type parameter.
5893
5894 * ui-out.h (enum ui_out_type): Declare.
5895 (ui_out_begin, ui_out_end): Declare.
5896 (ui_out_begin_ftype, ui_out_end_ftype): Replace list_begin_ftype
5897 and list_end_ftype.
5898 (struct ui_out_impl): Update.
5899
80f49b30
AC
59002001-05-07 Andrew Cagney <ac131313@redhat.com>
5901
5902 * ui-out.h (list_begin_ftype, list_end_ftype): Rename argument
5903 ``list_flag'' to ``depth''.
5904 * ui-out.c (default_list_begin, default_list_end): Update.
5905 (uo_list_begin, uo_list_end): Update.
5906 (MAX_UI_OUT_LEVELS): Define.
5907 (struct ui_out_level): Define.
5908 (top-level): Include "gdb_assert.h".
5909 (struct ui_out): Add fields ``level'' and ``levels''. Delete
5910 fields ``list_flag'' and ``field_count''.
5911 (ui_out_new): Update.
5912 (verify_field_proper_position): Update.
5913 (current_level, push_level, pop_level): New functions.
5914 (ui_out_list_begin): Use push_level.
5915 (ui_out_list_end): Use pop_level.
5916 (ui_out_field_int): Use current_level.
5917 (ui_out_field_skip): Ditto.
5918 (ui_out_field_fmt): Ditto.
5919
7aedc9f8
MS
59202001-05-08 Michael Snyder <msnyder@redhat.com>
5921
5922 * language.c (longest_local_hex_string_custom): Strlen test is
5923 inverted -- reverse the sense of the test.
5924
c6ec85d6
MK
59252001-05-08 Mark Kettenis <kettenis@gnu.org>
5926
5927 * config/i386/tm-i386v.h (struct frame_info, struct
5928 frame_saved_regs): Remove declarations.
5929 (i386_frame_num_args): Remove prototype.
5930
f938fa6a
AC
59312001-05-07 Andrew Cagney <ac131313@redhat.com>
5932
5933 * MAINTAINERS: I'm no longer actively maintaining the mn10300
5934 target.
5935
fb106663
AC
59362001-05-04 Andrew Cagney <ac131313@redhat.com>
5937
5938 * main.c (captured_main): Delete #ifndef _WIN32 conditional for
5939 WinGDB.
5940
ce696e05
KB
59412001-05-06 Kevin Buettner <kevinb@redhat.com>
5942
5943 * inferior.h (save_inferior_ptid): Declare.
5944 * infrun.c (save_inferior_ptid, restore_inferior_ptid): Define.
5945
5946 * hpux-thread.c (save_inferior_ptid, restore_inferior_ptid):
5947 Delete these functions.
5948 * lin-lwp.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
5949 * lin-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
5950 * linux-thread.c (save_inferior_ptid, restore_inferior_ptid):
5951 Likewise.
5952 * proc-service.c (save_inferior_ptid, restore_inferior_ptid):
5953 Likewise.
5954 * sol-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
5955 * thread-db.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
5956
5957 * somsolib.c (reset_inferior_ptid): Delete.
5958 (som_solib_remove_inferior_hook): Use save_inferior_ptid() to
5959 build the cleanup struct.
5960
5961 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
5962 a cleanup to save/restore inferior_ptid.
5963
c194fbe1
MK
59642001-05-06 Mark Kettenis <kettenis@gnu.org>
5965
5966 Implement attach/detach for multi-threaded programs on Linux.
5967 * thread-db.c (keep_thread_db): Adjust comment.
5968 (deactivate_target): Removed.
5969 (thread_db_new_objfile): Don't call deactivate_target. Implement
5970 guts of deactivate_target inline instead.
5971 (attach_thread): Call ATTACH_LWP unconditionally if defined.
5972 (thread_db_attach): New function.
5973 (thread_db_detach): Don't call deactivate_target. Do necessary
5974 cleanup inline instead. Set inferior_ptid to LWP corresponding to
5975 the current user-level thread.
5976 (thread_db_kill): Set inferior_ptid to LWP corresponding to the
5977 current user-level thread.
5978 (thread_db_create_inferior): Deactivate target vector if
5979 KEEP_THREAD_DB is zero.
5980 (thread_db_mourn_inferior): Don't call deactivate_target. Do
5981 necessary cleanup inline instead.
5982 (init_thread_db_ops): Initialize to_attach field to
5983 thread_db_attach.
5984 * lin-lwp.c (lin_lwp_mourn_inferior): Remove prototype.
5985 (stop_wait_callback): Add prototype.
5986 (init_lwp_list): Add comment about when to re-initialize the LWP
5987 list.
5988 (lin_lwp_attach_lwp): Only call ptrace for cloned processes.
5989 Avoid adding publicates to the LWP list. Only mark an LWP as
5990 signalled if it doesn't correspond to a cloned process.
5991 (lin_lwp_attach): Add initial process to the LWP list. Make sure
5992 it's stopped and fake a SIGSTOP.
5993 (detach_callback): New function.
5994 (lin_lwp_detach): Implement.
5995 (lin_lwp_create_inferior): Don't re-initialize LWP list here.
5996 Call child_ops.to_create_inferior directly instead of via
5997 target_beneath local.
5998 (lin_lwp_mourn_inferior): Call child_ops.to_mourn_inferior
5999 directly instead of via target_beneath local.
6000
a7fdf62f
EZ
60012001-05-06 Eli Zaretskii <eliz@is.elta.co.il>
6002
6003 * symtab.c (lookup_symtab_1, lookup_partial_symtab): Use basename
6004 instead of non-portable search for `/'. Use FILENAME_CMP instead
6005 of STREQ, to account for case-insensitive filesystems.
6006 (top-level): #include "filenames.h".
6007
9f60f21b
JB
60082001-05-05 Jim Blandy <jimb@redhat.com>
6009
644a1fe1
JB
6010 * breakpoint.c (check_duplicates): Use the breakpoint's type, not
6011 its address, to decide whether it's a watchpoint or not. Zero
6012 is a valid code address.
6013 (update_breakpoints_after_exec): Admonishing comments.
6014 * breakpoint.h (struct breakpoint): Doc fixes.
6015
9f60f21b
JB
6016 * breakpoint.c (check_duplicates): Take a breakpoint object as an
6017 argument, rather than an address and section. All callers changed.
6018
39f77062
KB
60192001-05-03 Kevin Buettner <kevinb@redhat.com>
6020
6021 * defs.h (ptid_t): New typedef.
6022 (pid_to_ptid, null_ptid, minus_one_ptid, ptid_equal): New macros.
6023
6024 * a68v-nat.c, alphabsd-nat.c, arch-utils.c, arm-linux-nat.c,
6025 blockframe.c, breakpoint.c, breakpoint.h,
6026 config/i386/nm-i386sol2.h, config/i386/tm-i386sco5.h,
6027 config/ia64/nm-linux.h, config/m68k/nm-hp300bsd.h,
6028 config/mips/nm-irix4.h, config/mips/nm-irix5.h,
6029 config/pa/nm-hppah.h, config/pa/tm-hppa.h,
6030 config/rs6000/nm-rs6000.h, config/sparc/nm-sun4sol2.h,
6031 corelow.c, cxux-nat.c, d10v-tdep.c, dink32-rom.c,
6032 dve3900-rom.c, fork-child.c, frame.c, gnu-nat.c, go32-nat.c,
6033 hp300ux-nat.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c,
6034 hpux-thread.c, i386-linux-nat.c, i386aix-nat.c, i386b-nat.c,
6035 i386bsd-nat.c, i386gnu-nat.c, i386mach-nat.c, i386nbsd-nat.c,
6036 infcmd.c, inferior.h, inflow.c, infptrace.c, infrun.c,
6037 inftarg.c, infttrace.c, lin-lwp.c, lin-thread.c,
6038 linux-thread.c, lynx-nat.c, m3-nat.c, m32r-rom.c,
6039 m68knbsd-nat.c, m88k-nat.c, mac-nat.c, mips-nat.c,
6040 mon960-rom.c, monitor.c, ns32knbsd-nat.c, ocd.c, ppc-bdm.c,
6041 ppcnbsd-nat.c, proc-service.c, procfs.c, ptx4-nat.c,
6042 regcache.c, remote-adapt.c, remote-array.c, remote-bug.c,
6043 remote-e7000.c, remote-es.c, remote-mips.c, remote-mm.c,
6044 remote-nindy.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
6045 remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
6046 remote-vx.c, remote.c, rs6000-nat.c, sol-thread.c,
6047 solib-aix5.c, solib-svr4.c, somsolib.c, sparc-nat.c,
6048 standalone.c, sun3-nat.c, sun386-nat.c, symm-nat.c, target.c,
6049 target.h, thread-db.c, thread.c, top.c, ultra3-nat.c,
6050 uw-thread.c, v850ice.c, win32-nat.c, wince.c, xcoffsolib.c
6051 (inferior_pid): Rename to inferior_ptid everywhere - even in
6052 comments and obsolete ports. In cases where this variable
6053 really is supposed to be used as a process id, use PIDGET() to
6054 extract the process id component from inferior_ptid. The
6055 other cases, either involving other variables whose types had
6056 to be changed or functions whose signatures had to changed
6057 are listed separately below.
6058
6059 * arm-linux-nat.c (get_thread_id): Change type of argument
6060 representing a combined process/thread id from ``int'' to
6061 ``ptid_t''. Also change parameter name to ptid.
6062 * breakpoint.h, breakpoint.c (breakpoint_thread_match): Likewise.
6063 * corelow.c (core_file_thread_alive): Likewise.
6064 * d10v-tdep.c (d10v_read_pc, d10v_write_pc): Likewise.
6065 * defs.h (*target_wait_hook): Likewise.
6066 * gdbthread.h (thread_info, delete_thread, pid_to_thread_id)
6067 (find_thread_pid, save_infrun_state, load_infrun_state): Likewise.
6068 * gnu-nat.c (gnu_thread_alive, gnu_pid_to_str, gnu_wait)
6069 (gnu_resume): Likewise.
6070 * go32-nat.c (go32_wait, go32_resume): Likewise.
6071 * h8500-tdep.c (h8500_read_pc, h8500_write_pc): Likewise.
6072 * hppa-tdep.c (target_read_pc, target_write_pc): Likewise.
6073 * hppah-nat.c (child_pid_to_str, hppa_tid_to_str,
6074 (hppa_pid_or_tid_to_str, child_post_startup_inferior)
6075 (child_thread_alive): Likewise.
6076 * hpux-thread.c (hpux_thread_notice_signals, hpux_thread_alive)
6077 (hpux_pid_to_str, hpux_thread_wait, hpux_thread_resume): Likewise.
6078 * i386-linux-nat.c (child_resume): Likewise.
6079 * ia64-linux-nat.c (enable_watchpoints_in_psr, fetch_debug_register)
6080 (store_debug_register, fetch_debug_register_pair)
6081 (store_debug_register_pair, ia64_linux_insert_watchpoint)
6082 (ia64_linux_remove_watchpoint, ia64_linux_stopped_by_watchpoint):
6083 Likewise.
6084 * ia64-tdep.c (ia64_read_pc, ia64_write_pc): Likewise.
6085 * inferior.h (read_pc_pid, generic_target_read_pc, write_pc_pid)
6086 (generic_target_write_pc, ptrace_wait, child_resume)
6087 (get_last_target_status): Likewise.
6088 * infptrace.c (ptrace_wait, child_resume): Likewise.
6089 * inftarg.c (child_wait, child_post_wait, child_thread_live)
6090 (child_pid_to_str): Likewise.
6091 * infttrace.c (ptrace_wait, child_thread_alive, child_resume)
6092 (hppa_pid_or_tid_to_str, child_post_startup_inferior): Likewise.
6093 * lin-lwp.c (add_lwp, delete_lwp, find_lwp_pid, lin_lwp_attach_lwp)
6094 (lin_lwp_resume, lin_lwp_wait, lin_lwp_thread_alive)
6095 (lin_lwp_pid_to_str): Likewise.
6096 * lin-thread.c (thread_db_alive, thread_db_pid_to_str)
6097 (thread_db_resume, thread_db_wait): Likewise.
6098 * linux-thread.c (linuxthreads_thread_alive, linuxthreads_pid_to_str)
6099 (linuxthreads_resume, linuxthreads_wait): Likewise.
6100 * lynx-nat.c (child_wait, child_thread_alive, child_resume)
6101 (child_pid_to_str): Likewise.
6102 * m3-nat.c (mach_really_wait, m3_resume): Likewise.
6103 * mac-nat.c (child_wait, child_resume): Likewise.
6104 * mips-tdep.c (mips_read_pc): Likewise.
6105 * monitor.c (monitor_wait, monitor_resume): Likewise.
6106 * ocd.c, ocd.h (ocd_thread_alive, ocd_resume): Likewise.
6107 * ppc-bdm.c (bdm_ppc_wait): Likewise.
6108 * procfs.c (do_attach, procfs_wait, procfs_resume)
6109 (procfs_notice_signals, procfs_thread_alive, procfs_pid_to_str)
6110 (procfs_set_watchpoint, procfs_stopped_by_watchpoint)
6111 (procfs_find_LDT_entry): Likewise.
6112 * regcache.c (read_register_pid, read_signed_register_pid)
6113 (write_register_pid, generic_target_read_pc, read_pc_pid)
6114 (generic_target_write_pc, write_pc_pid): Likewise.
6115 * regcache.h (read_register_pid, read_signed_register_pid)
6116 (write_register_pid): Likewise.
6117 * remote-adapt.c (adapt_wait, adapt_resume): Likewise.
6118 * remote-array.c (array_wait, array_resume): Likewise.
6119 * remote-bug.c (bug_wait, bug_resume): Likewise.
6120 * remote-e7000.c (e7000_wait, e7000_resume): Likewise.
6121 * remote-eb.c (eb_wait, eb_resume): Likewise.
6122 * remote-es.c (es1800_wait, es1800_resume): Likewise.
6123 * remote-mips.c (mips_wait, mips_resume): Likewise.
6124 * remote-mm.c (mm_wait, mm_resume): Likewise.
6125 * remote-nindy.c (nindy_wait, nindy_resume): Likewise.
6126 * remote-os9k.c (rombug_wait, rombug_resume): Likewise.
6127 * remote-rdi.c (arm_rdi_wait, arm_rdi_resume): Likewise.
6128 * remote-rdp.c (remote_rdp_resume, remote_rdp_wait): Likewise.
6129 * remote-sds.c (sds_wait, sds_resume): Likewise.
6130 * remote-sim.c (gdbsim_wait, gdbsim_resume): Likewise.
6131 * remote-st.c (st2000_wait, st2000_resume): Likewise.
6132 * remote-udi.c (udi_wait, udi_resume): Likewise.
6133 * remote-vx.c (vx_wait, vx_resume): Likewise.
6134 * remote.c (remote_current_thread, remote_resume, remote_wait)
6135 (remote_async_resume, remote_async_wait, remote_cisco_wait)
6136 (remote_thread_alive): Likewise.
6137 * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_resume)
6138 (sol_thread_wait, sol_thread_notice_signals, sol_thread_alive)
6139 (solaris_pid_to_str): Likewise.
6140 * symm-nat.c (child_wait, child_resume): Likewise.
6141 * target.c (debug_to_resume, debug_to_wait, debug_to_post_wait)
6142 (debug_to_notice_signals, debug_to_thread_alive)
6143 (normal_target_post_startup_inferior, normal_pid_to_str)
6144 (debug_to_post_startup_inferior): Likewise.
6145 * target.h (to_resume, to_wait, to_post_wait)
6146 (to_post_startup_inferior, to_notice_signals, to_thread_alive)
6147 (to_pid_to_str [all in struct target_ops]): Likewise.
6148 (child_post_wait, child_thread_alive, normal_pid_to_str): Likewise.
6149 * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait)
6150 (attach_thread, detach_thread, thread_db_resume, check_event)
6151 (thread_db_post_startup_inferior, thread_db_thread_alive)
6152 (thread_db_pid_to_str): Likewise.
6153 * thread.c (add_thread, delete_thread, find_thread_pid)
6154 (pid_to_thread_id, in_thread_list, load_infrun_state)
6155 (save_infrun_state, switch_to_thread, restore_current_thread)
6156 (make_cleanup_restore_current_thread): Likewise.
6157 * top.c (target_wait_hook): Likewise.
6158 * uw-thread.c (dbgpid, thr_to_lwp, lwp_to_thr, add_thread_uw)
6159 (uw_thread_resume, libtrhead_stub, uw_thread_wait, uw_thread_alive)
6160 (uw_thread_pid_to_str): Likewise.
6161 * v850ice.c (v850ice_wait, v850ice_resume): Likewise.
6162 * win32-nat.c (child_wait, child_resume, win32_child_thread_alive)
6163 (cywin_pid_to_str): Likewise.
6164 * wince.c (child_wait, child_resume, win32_child_thread_alive):
6165 Likewise.
6166 * config/nm-linux.h (linuxthreads_pid_to_str): Likewise.
6167 * config/nm-lynx.h (child_wait, lynx_pid_to_str): Likewise.
6168 * config/alpha/nm-linux.h (lin_lwp_attach_lwp): Likewise.
6169 * config/arm/nm-linux.h (lin_lwp_attach_lwp): Likewise.
6170 * config/h8500/tm-h8500.h (h8500_read_pc, h8500_write_pc): Likewise.
6171 * config/i386/nm-i386sol2.h (procfs_stopped_by_watchpoint)
6172 (procfs_set_watchpoint): Likewise.
6173 * config/i386/nm-linux.h (lin_lwp_attach_lwp): Likewise.
6174 * config/i386/nm-ptx4.h (child_wait): Likewise.
6175 * config/i386/nm-symmetry.h (child_wait): Likewise.
6176 * config/i386/tm-cygwin.h (cygwin_pid_to_str): Likewise.
6177 * config/ia64/nm-linux.h (ia64_linux_stopped_by_watchpoint)
6178 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
6179 (lin_lwp_attach_lwp): Likewise.
6180 * config/mips/nm-irix4.h, config/mips/nm-irix5.h
6181 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Likewise.
6182 * config/pa/nm-hppah.h (child_pid_to_str, hppa_tid_to_str)
6183 (hppa_pid_or_tid_to_str): Likewise.
6184 * config/pa/tm-hppa.h (target_read_pc, target_write_pc): Likewise.
6185 * config/powerpc/nm-linux.h (lin_lwp_attach_lwp): Likewise.
6186 * config/sparc/nm-sun4sol2.h (procfs_stopped_by_watchpoint)
6187 (procfs_set_watchpoint): Likewise.
6188
6189 * gdbthread.h (thread_id_to_pid): Change return type which
6190 represents a combined process/thread id from ``int'' to
6191 ``ptid_t''.
6192 * gnu-nat.c (gnu_wait): Likewise.
6193 * go32-nat.c (go32_wait): Likewise.
6194 * hpux-thread.c (hpux_thread_wait): Likewise.
6195 * inferior.h (procfs_first_available): Likewise.
6196 * inftarg.c (child_wait): Likewise.
6197 * infttrace.c (ptrace_wait): Likewise.
6198 * lin-lwp.c (lin_lwp_wait): Likewise.
6199 * lin-thread.c (thread_db_wait): Likewise.
6200 * linux-thread.c (linuxthreads_wait): Likewise.
6201 * lynx-nat.c (child_wait): Likewise.
6202 * m3-nat.c (mach_really_wait): Likewise.
6203 * mac-nat.c (child_wait): Likewise.
6204 * monitor.c (monitor_wait): Likewise.
6205 * ppc-bdm.c (bdm_ppc_wait): Likewise.
6206 * procfs.c (do_attach, procfs_wait, procfs_first_available): Likewise.
6207 * remote-adapt.c (adapt_wait): Likewise.
6208 * remote-array.c (array_wait): Likewise.
6209 * remote-bug.c (bug_wait): Likewise.
6210 * remote-e7000.c (e7000_wait): Likewise.
6211 * remote-eb.c (eb_wait): Likewise.
6212 * remote-es.c (es1800_wait): Likewise.
6213 * remote-mips.c (mips_wait): Likewise.
6214 * remote-mm.c (mm_wait): Likewise.
6215 * remote-nindy.c (nindy_wait): Likewise.
6216 * remote-os9k (rombug_wait): Likewise.
6217 * remote-rdi.c (arm_rdi_wait): Likewise.
6218 * remote-rdp.c (remote_rdp_wait): Likewise.
6219 * remote-sds.c (sds_wait): Likewise.
6220 * remote-sim.c (gdbsim_wait): Likewise.
6221 * remote-st.c (st2000_wait): Likewise.
6222 * remote-udi.c (udi_wait): Likewise.
6223 * remote-vx.c (vx_wait): Likewise.
6224 * remote.c (remote_wait, remote_async_wait, remote_current_thread)
6225 (remote_cisco_wait): Likewise.
6226 * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_wait):
6227 Likewise.
6228 * symm-nat.c (child_wait): Likewise.
6229 * target.c (debug_to_wait): Likewise.
6230 * target.h (to_wait [in struct target_ops]): Likewise.
6231 * thread.c (thread_id_to_pid): Likewise.
6232 * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait):
6233 Likewise.
6234 * top.c (*target_wait_hook): Likewise.
6235 * uw-thread.c (lwp_to_thr, uw_thread_wait): Likewise.
6236 * v850ice.c (v850ice_wait): Likewise.
6237 * win32-nat.c (child_wait): Likewise.
6238 * wince.c (child_wait): Likewise.
6239 * config/nm-lynx.h (child_wait): Likewise.
6240 * config/i386/nm-ptx4.h (child_wait): Likewise.
6241 * config/i386/nm-symmetry.h (child_wait): Likewise.
6242
6243 * arch-utils.c (generic_prepare_to_proceed): Rename wait_pid
6244 to wait_ptid and change its type from ``int'' to ``ptid_t''.
6245 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Likewise,
6246 but rename saved_inferior_pid to saved_inferior_ptid.
6247 * d10v-tdep.c (d10v_read_pc, d10_write_pc): Likewise, but rename
6248 save_pid to save_ptid.
6249 * gdbthread.h (struct thread_info): Likewise, but rename pid to ptid.
6250 * hppah-nat.c (child_pid_to_exec): Likewise, but rename
6251 saved_inferior_pid to saved_inferior_ptid.
6252 * hpux-thread.c (main_ptid): Likewise, but rename from main_pid.
6253 * infrun.c (previous_inferior_pid [static global]): Likewise,
6254 but rename to previous_inferior_ptid.
6255 (resume): Likewise, but rename resume_pid to resume_ptid.
6256 (struct execution_control_state): Likewise, but rename
6257 pid to ptid, saved_inferior_pid to saved_inferior_ptid,
6258 and waiton_pid to waiton_ptid.
6259 (target_last_wait_pid): Likewise, but rename to
6260 target_last_wait_ptid.
6261 * infttrace.c (saved_real_pid): Likewise, but rename to
6262 saved_real_ptid.
6263 (child_pid_to_exec_file): Likewise, but rename saved_inferior_pid
6264 to saved_inferior_ptid.
6265 * lin-lwp.c (struct lwp_info): Likewise, but rename pid to ptid.
6266 (trap_ptid): Likewise, but renamed from trap_pid.
6267 * lin-thread.c (handle_new_thread): Likewise, but rename gdb_pid
6268 to gdb_ptid.
6269 * linux-thread.c (detach_thread): Likewise, but rename pid to ptid.
6270 (thread_db_wait): Likewise, but rename ret_pid to retptid.
6271 * procfs.c (procfs_wait): Likewise, for retval whose name
6272 doesn't change. Also, ``temp'' becomes two separate variables,
6273 one named temp_tid (an int) and the other temp_ptid.
6274 (procfs_notice_thread): Likewise (type change) for gdb_threadid
6275 whose name does not change.
6276 * regcache.c (registers_ptid): Likewise, but renamed from
6277 registers_pid.
6278 (read_register_pid, read_signed_register_pid, write_register_pid):
6279 Likewise, but rename save_pid to save_ptid.
6280 (read_pc_pid, write_pc_pid): Likewise, but rename saved_inferior_pid
6281 to saved_inferior_ptid.
6282 * remote.c (remote_newthread_step): Likewise, but rename pid to ptid.
6283 * sol-thread.c (struct ps_prochandle): Likewise.
6284 (sol_thread_resume): Likewise, for save_pid which becomes save_ptid.
6285 (sol_thread_wait): Likewise, for rtnval whose name does not
6286 change, and for save_pid which becomes save_ptid.
6287 (solaris_pid_to_str): Likewise for lwp whose name does not change.
6288 (sol_find_new_threads_callback): Likewise, for pid which becomes
6289 ptid.
6290 * target.h (target_resume, target_wait, target_post_wait)
6291 (target_post_startup_inferior, target_notice_signals)
6292 (target_thread_alive): Likewise.
6293 * thread.c (info_threads_command): Likewise, but rename
6294 current_pid to current_ptid.
6295 (struct current_thread_cleanup): Likewise, but rename field
6296 inferior_pid to inferior_ptid.
6297 * thread-db.c (find_new_threads_callback): Likewise, but rename
6298 pid to ptid.
6299 * uw-thread.c (thr_to_lwp): Likewise for lid whose name does not
6300 change.
6301 (lwp_to_tr): Likewise fo tid whose name remains unchanged.
6302 (thr_infpid, lwp_infpid, notice_thread, libthread_stub): Likewise,
6303 but rename pid to ptid.
6304 * config/alpha/nm-linux.h (ATTACH_LWP): Likewise.
6305 * config/arm/nm-linux.h (ATTACH_LWP): Likewise.
6306 * config/i386/nm-linux.h (ATTACH_LWP): Likewise.
6307 * config/ia64/nm-linux.h (ATTACH_LWP): Likewise.
6308 * config/pa/nm-hppah.h (target_tid_to_str): Likewise.
6309 * config/powerpc/nm-linux.h (ATTACH_LWP): Likewise.
6310
6311 * arch-utils.c (generic_prepare_to_proceed): Test for the
6312 "zero" ptid by using ptid_equal() to test to see if variable
6313 in question is the same as null_ptid. This replaces a direct
6314 test against zero.
6315 * cxux-nat.c (add_shared_symbol_files): Likewise.
6316 * i386aix-nat.c, i386b-nat.c (i386_float_info): Likewise.
6317 * infcmd.c (run_command): Likewise.
6318 * inflow.c (kill_command): Likewise.
6319 * infttrace.c (call_ttrace): Likewise.
6320 * lin-lwp.c (lin_lwp_prepare_to_proceed): Likewise.
6321 * lin-thread.c (thread_db_kill): Likewise.
6322 * procfs.c (procfs_kill_inferior, procfs_mourn_inferior): Likewise.
6323 * remote-es.c (es1800_kill): Likewise.
6324 * sol-thread.c (sol_thread_create_inferior): Likewise.
6325 * solib.c (locate_base): Likewise.
6326 * target.c (nosupport_runtime): Likewise.
6327 * thread-db.c (thread_db_wait): Likewise.
6328 * top.c (quit_confirm, quit_force): Likewise.
6329 * uw-thread (lwp_infpid, uw_thread_resume): Likewise.
6330
6331 * infrun.c (handle_inferior_event, stop_stepping, normal_stop):
6332 Use ptid_equal to compare value of process/thread ids instead of
6333 ``=='' and ``!='' operators.
6334 lin-lwp.c (delete_lwp, lin_lwp_prepare_to_proceed)
6335 (stop_wait_callback, lin_lwp_wait): Likewise.
6336 * procfs.c (procfs_wait): Likewise.
6337 * regcache.c (read_register_bytes, read_register_gen)
6338 (write_register_gen, read_register, read_register_pid)
6339 (read_signed_register, read_signed_register_pid, write_register)
6340 (write_register_pid, supply_register): Likewise.
6341 * remote-vx.c (vx_resume): Likewise.
6342 * sol-thread.c (sol_thread_wait): Likewise.
6343 * symm-nat.c (kill_inferior): Likewise.
6344 * thread.c (delete_thread, find_thread_pid, pid_to_thread_id)
6345 (in_thread_list, info_threads_command, switch_to_thread)
6346 (restore_current_thread): Likewise.
6347 * uw-thread (libtread_stub): Likewise.
6348
6349 * arm-linux-nat.c (GET_THREAD_ID): Change PID to PTID.
6350
6351 * corelow.c (add_to_thread_list): Convert argument in add_thread()
6352 call to a ptid_t.
6353 * gnu-nat.c (inf_validate_procs): Likewise.
6354 * linux-thread.c (stop_thread, update_stop_threads): Likewise.
6355 * remote.c (record_currthread, remote_threads_info): Likewise.
6356 * win32-nat.c (child_add_thread): Likewise.
6357
6358 * hpux-thread.c (save_inferior_pid, restore_inferior_pid): Rename,
6359 respectively, to save_inferior_ptid() and restore_inferior_ptid().
6360 Adjust implementations to operate on ``ptid_t'' instead of ``int''.
6361 * lin-lwp.c (save_inferior_pid, restore_inferior_pid): Likewise.
6362 * lin-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
6363 * linux-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
6364 * proc-service.c (save_inferior_pid, restore_inferior_pid): Likewise.
6365 * sol-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
6366 * thread-db.c (save_inferior_pid, restore_inferior_pid): Likewise.
6367
6368 * infrun.c (RESUME_ALL): New macro representing the -1 ptid
6369 to be passed to target_resume() when all threads should resume.
6370 (resume): Set resume_ptid to RESUME_ALL rather than -1.
6371 (handle_inferior_event): Invoke target_resume() with RESUME_ALL
6372 instead of -1.
6373 * irix5-nat.c (solib_create_inferior_hook): Convert -1 to
6374 a ptid_t in target_resume() call.
6375 * osfsolib.c (solib_create_inferior_hook): Likewise.
6376 * solib-svr4.c (solib_create_inferior_hook): Likewise.
6377
6378 * lin-lwp.c (PIDGET, PIDGET0): Rename original PIDGET macro to
6379 PIDGET0. Define new PIDGET macro which uses PIDGET0, the only
6380 difference being that the 0xffff pattern will be interpreted
6381 as -1.
6382 * lin-thread.c (PIDGET, PIDGET0): Likewise.
6383 * thread-db.c (PIDGET, PIDGET0): Likewise.
6384 * config/nm-linux.h (PIDGET, PIDGET0): Likewise.
6385 * config/i386/tm-i386sol2.h (PIDGET, PIDGET0): Likewise.
6386 * config/i386/tm-i386v42mp.h (PIDGET, PIDGET0): Likewise.
6387 * config/sparc/tm-sun4sol2.h (PIDGET, PIDGET0): Likewise.
6388
6389 * m3-nat.c (init_m3_ops): Fix typo; initialize to_wait field to
6390 mach_really_wait rather than mach_really__wait.
6391 * lin-thread.c (check_for_thread_event): Fix warning; make function
6392 actually return a value.
6393
6394 * gdbarch.sh (TARGET_READ_PC, TARGET_WRITE_PC): Change type of
6395 ``pid'' arguments from ``int'' to ``ptid_t''. Also renamed
6396 pid to ptid.
6397 * gdbarch.h, gdbarch.c: Regenerated.
6398
31e28849
JL
63992001-05-03 Jonathan Larmour <jlarmour@redhat.com>
6400
6401 * rdi-share/devsw.c: Include <time.h> for struct tm
6402
8d341142
EZ
64032001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
6404
6405 * config/djgpp/fnchange.lst: Add mappings for the new
6406 opcodes/openrisc-* files.
6407
9572d2b6
MS
64082001-05-01 Michael Snyder <msnyder@redhat.com>
6409
9085700c 6410 * lin-lwp.c: Change printf to fprintf_unfiltered.
9572d2b6
MS
6411 * Makefile.in: Add rules for thread-db.o, lin-lwp.o, proc-service.o.
6412
977adac5
ND
64132001-05-01 Nicholas Duffek <nsd@redhat.com>
6414
6415 * config/rs6000/tm-rs6000.h (IN_SOLIB_RETURN_TRAMPOLINE): Define.
6416 (rs6000_in_solib_return_trampoline): Declare.
6417 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): New
6418 function.
6419 (rs6000_skip_trampoline_code): Skip bigtoc fixup code.
6420 * xcoffread.c (read_xcoff_symtab): Perform the ISFCN function
6421 check after the CSECT check rather than before it. Allocate
6422 separate symtabs for CSECTs whose names begin with '@'.
6423 (scan_xcoff_symtab): Don't ignore symbols beginning with '@'.
6424 Activate the misc_func_recorded mechanism for whose names begin
6425 with '@'.
6426
6d799331
C
64272001-04-30 J.T. Conklin <jtc@redback.com>
6428
6429 * ppcnbsd-nat.c (fetch_inferior_registers)
6430 (store_inferior_registers, fetch_core_registers): Changed to use
6431 fpreg[] instead of r_regs[] to access floating point registers.
6432
7f4dbe94
EZ
64332001-04-30 Elena Zannoni <ezannoni@redhat.com>
6434
6435 * sh-tdep.c: Get rid of the function prototypes.
6436 (sh_sh4_build_float_register_type): Move earlier in file.
6437 (fv_reg_base_num): Ditto.
6438 (dr_reg_base_num): Ditto.
6439
540af400
MS
64402001-04-30 Michael Snyder <msnyder@redhat.com>
6441
6442 * thread-db.c: Revert 2001-04-26 change for debugging output.
7ca673cd
MS
6443 * lin-lwp.c: Ditto.
6444 * lin-lwp.c: Add set/show debug lin-lwp command. Use this
6445 command to turn extra debugging output on / off.
540af400 6446
f5a6fc05
EZ
64472001-04-30 Eli Zaretskii <eliz@is.elta.co.il>
6448
6449 * buildsym.c (start_subfile): Use FILENAME_CMP instead of STREQ.
6450 (top-level): #include filenames.h.
6451
6452 * dwarf2read.c (dwarf2_start_subfile): Use IS_ABSOLUTE_PATH and
6453 FILENAME_CMP, to DTRT on non-Posix platforms.
6454 (top-level): #include filenames.h.
6455
6456
502dcf4e
AC
64572001-04-27 Andrew Cagney <ac131313@redhat.com>
6458
6459 * gdbtypes.c (check_stub_method): Always initialize ``p''.
6460
cc3f9cbb
AC
64612001-04-27 Andrew Cagney <ac131313@redhat.com>
6462
6463 * configure.host: Delete romp host.
6464 * TODO: Update.
6465
ed9c5cf2
AC
64662001-04-27 Andrew Cagney <ac131313@redhat.com>
6467
6468 * TODO: Updates to 5.1. No more targets to obsolete.
6469
d1a310e7
DH
64702001-04-27 Don Howard <dhoward@redhat.com>
6471
128437e6
DH
6472 (Changes from Kevin Buettner, with minor update by Don Howard.)
6473
6474 * i387-nat.c (i387_supply_fxsave, i387_fill_fxsave, i387_tag): Fix
6475 typos in which hexadecimal constants were really intended to be
6476 binary constants.
6477 (i387_tag): Swap logic regarding zero vs non-zero exponents.
d1a310e7
DH
6478 * MAINTAINERS (Misc): Added myself to the write-after-approval
6479 list.
6480
015a42b4
JB
64812001-04-26 Jim Blandy <jimb@redhat.com>
6482
6483 (Changes from Daniel Berlin, with revisions by Jim Blandy.)
6484
6485 Abstract out operations specific to particular C++ ABI's, and
6486 invoke them through a function table. This removes the C++ ABI
6487 dependencies scattered throughout the code, and allows us to
6488 cleanly add support for new C++ ABI's.
6489 * cp-abi.h, cp-abi.h, gnu-v2-abi.c, hpacc-abi.c: New files.
6490 * c-typeprint.c, c-valprint.c, dbxread.c, eval.c, gdbtypes.c,
6491 jv-typeprint.c, linespec.c, symtab.c, typeprint.c, valops.c:
6492 #include "cp-abi.h". These files all use functions now declared
6493 there.
6494 * symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P):
6495 Deleted. These services are now provided by functions declared in
6496 cp-abi.h.
6497 * value.h (value_rtti_type, value_virtual_fn_field): Same.
6498 * values.c (value_virtual_fn_field): Same, for this definition.
6499 * valops.c (value_rtti_type): Same.
6500 * c-typeprint.c (c_type_print_base): Use the functions from
6501 "cp-abi.h", instead of the old macros, or hard-coded ABI-specific
6502 tests.
6503 * dbxread.c (record_minimal_symbol): Same.
6504 * gdbtypes.c (get_destructor_fn_field, virtual_base_index,
6505 virtual_base_index_skip_primaries): Same.
6506 * jv-typeprint.c (java_type_print_base): Same.
6507 * linespec.c (find_methods, decode_line_1): Same.
6508 * symtab.c (gdb_mangle_name): Same.
6509 * Makefile.in (SFILES): Add the new .c files mentioned above.
6510 (cp_abi_h): New variable.
6511 (COMMON_OBS): Add gnu-v2-abi.o, hpacc-abi.o, and cp-abi.o.
6512 (cp-abi.o, gnu-v2-abi.o, hpacc-abi.o): New targets.
6513 (c-typeprint.o, c-valprint.o, dbxread.o, eval.o, gdbtypes.o,
6514 jv-typeprint.o, symtab.o, linespec.o, typeprint.o, valops.o): Add
6515 dependency on $(cp_abi_h).
6516
f3fb8c85
MS
65172001-04-26 Michael Snyder <msnyder@redhat.com>
6518
20b8570d
MS
6519 * thread-db.c (_initialize_thread_db): Add set/show command
6520 "debug-linux-threads" for debugging output.
6521 * lin-lwp.c (various): Use global "debug_linux_threads to
6522 turn on extra debugging output.
4c8de859 6523 * lin-lwp.c: Minor cleanups in comments.
f3fb8c85
MS
6524 * target.c (normal_pid_to_str): Get rid of an ancient hack.
6525 * remote.c (remote_pid_to_str): New function for remote target.
6526
7f0b5c30
JB
65272001-04-24 Jim Blandy <jimb@redhat.com>
6528
6529 * c-typeprint.c (c_type_print_cv_qualifier): Don't print `const'
6530 qualifier on C++ references; all references are innately const.
6531
0af5533d
MK
65322001-04-20 Mark Kettenis <kettenis@gnu.org>
6533
6534 * event-top.h: Fix formatting.
6535
d036b4d9
AC
65362001-04-17 Andrew Cagney <ac131313@redhat.com>
6537
6538 * source.c (openp): Obsolete #ifdef MPW code.
6539 (open_source_file): Ditto.
6540 * event-top.c (display_gdb_prompt): Ditto.
6541 * utils.c (query): Ditto.
6542 (init_page_info): Ditto.
6543 (init_page_info): Delete #ifndef MPW.
6544 * top.c (gdb_readline): Ditto.
6545 * mac-xdep.c: Obsolete.
6546 * mac-gdb.r: Obsolete.
6547 * config/powerpc/xm-mpw.h: Obsolete.
6548 * config/xm-mpw.h: Obsolete.
6549 * mpw-make.sed: Obsolete.
6550 * mpw-config.in: Obsolete.
6551 * TODO: Update
6552 * NEWS: Update
6553
539ffe0b
MK
65542001-04-19 Mark Kettenis <kettenis@gnu.org>
6555
6556 * i386-tdep.c (i386_frameless_function_invocation): New function.
6557 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION): Redefine
6558 in terms of i386_frameless_function_invocation. Adjust comment.
6559 (i386_frameless_function_invocation): New prototype.
6560
67e1e03a
MH
65612001-04-18 Martin M. Hunt <hunt@redhat.com>
6562
6563 * top.c (gdb_init): Don't call cli_out_new() to
6564 create global uiout if init_ui_hook is set. uiout will
6565 have to be initialized there.
6566
fbec36e2
AC
65672001-04-18 Andrew Cagney <ac131313@redhat.com>
6568
6569 * arch-utils.c: Include "regcache.h".
6570
ed84f6c1
MK
65712001-04-18 Mark Kettenis <kettenis@gnu.org>
6572
6573 * i386-tdep.c (i386_saved_pc_after_call): New function.
6574 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Redefine in terms
6575 of i386_saved_pc_after_call.
6576 (i386_saved_pc_after_call): New prototype.
6577
c60a7562
MS
65782001-04-17 Michael Snyder <msnyder@redhat.com>
6579
c9e030cf 6580 * i386-nat.c: Fix typo in comment.
c60a7562
MS
6581 * solib.c (no_shared_libraries): New function. Discard all symbols
6582 from shared libraries.
6583 (_initialize_solib): Add command "nosharedlibrary" as complement
6584 to the command "sharedlibrary". Unloads symbols for all solibs.
6585
514e603d
AC
65862001-04-16 Andrew Cagney <ac131313@redhat.com>
6587
6588 * configure.host (m68030-sony-*, m68*-isi-*, m68*-sony-*):
6589 * configure.tgt (m68*-rom68k-*, m68*-*bug-*, m68*-monitor-*)
6590 (m68*-est-*, m68*-sony-*, m68*-isi-*):
6591 * Makefile.in (xm-news1000.h, tm-news.h, xm-news.h): Obsolete..
6592 * config/m68k/xm-news.h: Obsolete.
6593 * config/m68k/tm-news.h:
6594 * config/m68k/xm-news1000.h: Obsolete.
6595 * config/m68k/news.mh: Obsolete.
6596 * config/m68k/news.mt: Obsolete.
6597 * config/m68k/nm-news.h: Obsolete.
6598 * config/m68k/news1000.mh: Obsolete.
6599 * news-xdep.c: Obsolete.
6600 * Makefile.in (isi-xdep.o): Obsolete.
6601 (ALLDEPFILES): Delete isi-xdep.c.
6602 (tm-isi.h): Obsolete.
6603 * m68k-tdep.c (altos_skip_prologue): Update comments.
6604 (isi_skip_prologue): Obsolete.
6605 * isi-xdep.c: Obsolete.
6606 * config/m68k/xm-isi.h: Obsolete.
6607 * config/m68k/isi.mh: Obsolete.
6608 * config/m68k/tm-isi.h: Obsolete.
6609 * config/m68k/isi.mt: Obsolete.
6610
6611 * TODO: Update.
6612 * NEWS: Update.
6613
6240bebf
MS
66142001-04-17 Michael Snyder <msnyder@redhat.com>
6615
6616 * remote.c (remote_open_1): On opening the remote target, activate
6617 the solib_create_inferior_hook, so that it can detect when the
6618 target loads shared libraries.
6619 (remote_async_open_1): Ditto.
6620
75ac9d7b
MS
66212001-04-17 Michael Snyder <msnyder@redhat.com>
6622
6623 * breakpoint.c (print_one_breakpoint): Handle 64-bit addresses.
6624 * tracepoint.c (tracepoints_info): Handle 64-bit addresses.
6625 * testsuite/gdb.trace/deltrace.exp: Allow for 64-bit addresses.
6626 * testsuite/gdb.trace/infotrace.exp: Ditto.
6627 * testsuite/gdb.trace/passcount.exp: Ditto.
6628 * testsuite/gdb.trace/while-stepping.exp: Ditto.
6629
b9569773
MS
66302001-04-17 Michael Snyder <msnyder@redhat.com>
6631
6632 * thread-db.c (check_thread_signals): When looping over all
6633 signals, ignore signal zero.
6634 (disable_thread_signals): Ditto.
6635
81490ea1
MS
66362001-04-17 Eirik Fuller <eirik@netapp.com>
6637
6638 * thread.c (do_captured_thread_select): Allow the argument to the
6639 thread command to be an expression rather than a literal integer.
6640
e5434c3d
MK
66412001-04-17 Mark Kettenis <kettenis@gnu.org>
6642
6643 * i386-linux-tdep.c (i386_linux_saved_pc_after_call): Use
6644 read_memory_unsigned_integer instead of read_memory_integer.
6645
00c7912d
KB
66462001-04-16 Kevin Buettner <kevinb@redhat.com>
6647
6648 * solib-aix5.c (map_index_vs_section_name_okay): New function.
6649 (aix5_relocate_main_executable): Don't use file offsets for
6650 determining corresponding sections and map file entries. Call
6651 map_index_vs_section_name_okay() to do this instead.
6652
4d1bcd09
KB
66532001-04-16 Kevin Buettner <kevinb@redhat.com>
6654
6655 * procfs.c (open_with_retry): New function.
6656 (open_procinfo_files, load_syscalls, proc_iterate_over_mappings)
6657 (proc_get_LDT_entry): Call open_with_retry() instead of open().
6658
097e5c0b 66592001-04-16 Kevin Buettner <kevinb@redhat.com>
1186f287
KB
6660
6661 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Adjust
6662 comparison against TRAP_HWBKPT constant yet again to account
6663 for the various values used by different kernel versions.
6664
9e0c176c
DB
66652001-04-16 Daniel Berlin <dan@cgsoftware.com>
6666
6667 * demangle.c (_initialize_demangler): Use xcalloc on the
6668 demangling_style_names, and make it a null terminated array of
6669 names, to avoid a crash.
6670
c833a37e
MK
66712001-04-16 Mark Kettenis <kettenis@gnu.org>
6672
6673 * i386-tdep.c (i386_frame_chain): New function.
6674 * config/i386/tm-i386.h (FRAME_CHAIN): Redefine in terms of
6675 i386_frame_chain.
6676 (i386_frame_chain): New prototype.
6677
46c6cdcf
C
66782001-04-14 J.T. Conklin <jtc@redback.com>
6679
6680 * target.h (target_ops): Removed to_core_file_to_sym_file vector
6681 function.
6682 * corelow.c (core_ops): Updated for above change.
6683 * gnu-nat.c (core_ops): Likewise.
6684 * inftarg.c (child_ops): Likewise.
6685 * monitor.c (monitor_ops): Likewise.
6686 * ppc-bdm.c (bdm_ppc_ops): Likewise.
6687 * remote-adapt.c (adapt_ops): Likewise.
6688 * remote-bug.c (bug_ops): Likewise.
6689 * remote-e7000.c (e7000_ops): Likewise.
6690 * remote-eb.c (eb_ops): Likewise.
6691 * remote-es.c (es1800_ops, es1800_child_ops): Likewise.
6692 * remote-mm.c (mm_ops): Likewise.
6693 * remote-nindy.c (nindy_ops): Likewise.
6694 * remote-nrom.c (nrom_ops): Likewise.
6695 * remote-os9k.c (rombug_ops): Likewise.
6696 * remote-rdp.c (remote_rdp_ops): Likewise.
6697 * remote-sim.c (gdbsim_ops): Likewise.
6698 * remote-st.c (st2000_ops): Likewise.
6699 * v850ice.c (v850ice_ops): Likewise.
6700 * target.c (cleanup_target): Likewise
6701 (update_current_target): Likewise.
6702 (setup_target_debug): Likewise
6703 (debug_to_core_file_to_sym_file): Removed.
6704
6705 * corefile.c (core_file_command) [HPUXHPPA]: Removed code that
6706 sets symbol file from information obtained from the core file.
6707 * corelow.c (core_file_to_sym_file): Removed.
6708
d1566ff5
FN
67092001-04-13 Fernando Nasser <fnasser@redhat.com>
6710
6711 From Adam Mirowski <Adam.Mirowski@Sun.COM>
6712 Fixed Insight on Solaris. It was not possible to debug a process
6713 because of EINTR "errors".
6714 * procfs.c: (procfs_wait): if proc_wait_for_stop() fails
6715 with EINTR, retry the call.
6716
6c98e688
KB
67172001-04-12 Kevin Buettner <kevinb@redhat.com>
6718
6719 * solib-aix5.c (enum maptype): Delete.
6720 (struct lm_info): Add new member ``nmappings''. Make ``mapping''
6721 member a pointer instead of a statically sized array.
6722 (build_so_list_from_mapfile): Dynamically allocate ``mapping''
6723 array.
6724 (aix5_relocate_main_executable, aix5_relocate_section_addresses,
6725 aix5_find_global_pointer): Search for correct mapping to use
6726 based on file offset instead of knowledge of whether the section
6727 is read-only or read/write.
6728 (aix5_find_gate_addresses): Use the first mapping instead of
6729 the (now defunct) MT_READONLY mapping.
6730
49282387
ND
67312001-04-12 Nicholas Duffek <nsd@redhat.com>
6732
6733 * xcoffread.c (scan_xcoff_symtab): Ignore symbols beginning with
6734 "@".
6735
7f6b83a5
KB
67362001-04-12 Kevin Buettner <kevinb@redhat.com>
6737
6738 * config/i386/fbsd.mh (NATDEPFILES): Add i386-nat.o.
6739
24f89b68
AC
67402001-04-09 Andrew Cagney <ac131313@redhat.com>
6741
6742 Obsolete i[3456]86-*-sunos* (aka Sun386) host and target.
6743 * config/i386/sun386.mh: Obsolete.
6744 * config/i386/sun386.mt: Obsolete.
6745 * config/i386/xm-sun386.h: Obsolete.
6746 * config/i386/tm-sun386.h: Obsolete.
6747 * config/i386/nm-sun386.h: Obsolete.
6748 * Makefile.in (ALLDEPFILES): Delete sun386-nat.c.
6749 (sun386-nat.o): Target is obsolete.
6750 * sun386-nat.c: Obsolete.
6751 * configure.tgt (i[3456]86-*-sunos*): Obsolete.
6752 * configure.host (i[3456]86-*-sunos*): Obsolete.
6753 * NEWS: Update.
6754 * TODO: Update.
6755
c114dcd5
C
67562001-04-10 J.T. Conklin <jtc@redback.com>
6757
6758 * maint.c: Fix typo in comment.
6759
6755f5ad
KS
67602001-04-09 Keith Seitz <keiths@cygnus.com>
6761
6762 * MAINTAINERS: Swap with Syd Polk as a gdbtk maintainer.
6763
7700434b
KB
67642001-04-08 Kevin Buettner <kevinb@redhat.com>
6765
6766 * fork-child.c (fork_inferior, clone_and_follow_inferior):
6767 Document fact that apparent call to vfork() might actually be
6768 a call to fork() instead.
6769 * ser-pipe.c (pipe_open): Likewise.
6770
d493eb33
KB
67712001-04-08 Kevin Buettner <kevinb@redhat.com>
6772
6773 * printcmd.c (print_frame_args): Use a cleanup to invoke
6774 ui_out_list_end() so that the list count nesting flag will
6775 be decremented properly when an error occurs.
6776 * stack.c (print_frame): Likewise.
6777
af471f3c
C
67782001-04-06 J.T. Conklin <jtc@redback.com>
6779
c839c4db
C
6780 * dcache.c (dcache_write_line): Fixed bugs where cache line was
6781 not written to target correctly.
6782
af471f3c
C
6783 * gdbserver/low-hppabsd.c (read_inferior_memory): Add explicit
6784 void return value;
6785 * gdbserver/low-nbsd.c: Likewise.
6786 * gdbserver/low-sparc.c: Likewise.
6787 * gdbserver/low-sun3.c: Likewise.
6788
d8e275b4
GK
67892001-04-06 Geoffrey Keating <geoffk@redhat.com>
6790
6791 * config/rs6000/nm-rs6000.h (PTRACE_ATTACH): Don't define.
6792 (PTRACE_DETACH): Don't define.
6793
e02bc4cc
DS
67942001-04-06 David Smith <dsmith@redhat.com>
6795
6796 * arch-utils.c (default_prepare_to_proceed)
6797 (generic_prepare_to_proceed): Added new functions.
6798 * arch-utils.h: New function declarations for
6799 default_prepare_to_proceed() and generic_prepare_to_proceed().
6800 * gdbarch.sh: Added PREPARE_TO_PROCEED.
6801 * gdbarch.c: Regenerated.
6802 * gdbarch.h: Regenerated.
6803 * inferior.h: Added get_last_target_status() declaration.
6804 * infrun.c (get_last_target_status): Added new function.
6805 (handle_inferior_event): Saves last pid and waitstatus, which will
6806 get returned by get_last_target_status().
6807
6808 * hppa-tdep.c (prepare_to_proceed): Added comment stating that
6809 prepare_to_proceed() is potentially redundant since
6810 default_prepare_to_proceed() has been added.
6811 * linux-thread.c (prepare_to_proceed): Ditto.
6812 * lin-lwp.c (prepare_to_proceed): Ditto.
6813 * m3-nat.c (prepare_to_proceed): Ditto.
6814
1b2b2c16
AC
68152001-04-05 Andrew Cagney <ac131313@redhat.com>
6816
6817 Obsolete powerpcle-*-cygwin* and powerpcle-*-solaris* platforms
6818 and powerpc-*-netware* target.
6819 * configure.host (powerpcle-*-cygwin*, powerpcle-*-solaris*):
6820 Obsolete.
6821 * configure.tgt (powerpc-*-netware*, powerpcle-*-cygwin*)
6822 (powerpcle-*-solaris*): Obsolete.
6823 * config/powerpc/tm-cygwin.h: Obsolete.
6824 * config/powerpc/cygwin.mt: Obsolete.
6825 * config/powerpc/xm-cygwin.h: Obsolete.
6826 * config/powerpc/cygwin.mh: Obsolete.
6827 * config/powerpc/nm-solaris.h: Obsolete.
6828 * config/powerpc/xm-solaris.h: Obsolete.
6829 * config/powerpc/tm-solaris.h: Obsolete.
6830 * config/powerpc/solaris.mt: Obsolete.
6831 * config/powerpc/tm-ppc-nw.h: Obsolete.
6832 * config/powerpc/ppc-nw.mt: Obsolete.
6833 * TODO: Update.
6834 * NEWS: Update.
6835
063fd668
FN
68362001-04-06 Fernando Nasser <fnasser@redhat.com>
6837
6838 * buildsym.c (record_line): Turn off unused addr bits.
6839
a250df2e
FN
68402001-04-06 Fernando Nasser <fnasser@redhat.com>
6841
6842 From David Deephanphongs <deephan@telocity.com>
6843 * inferior.h: Fix declarations of get_inferior_args and
6844 set_inferior_args, which were missing the trailing 's'.
6845
1fcef334
JH
68462001-04-05 Jeff Holcomb <jeffh@redhat.com>
6847
6848 * monitor.c (monitor_supply_register): Only report an error if we
6849 don't get a valid value.
6850
f032fb6e
EZ
68512001-04-05 Eli Zaretskii <eliz@is.elta.co.il>
6852
6853 * README: Don't mention gdba.el.
6854
0191bed7
EZ
68552001-04-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6856
6857 From Jimmy Guo <guo@cup.hp.com>
6858 * top.c (init_main): set prompt if annotation_level>1,
6859 this is necessary when annotation_level is set to 2 via
6860 --annotate=2 command line option.
6861
4a1968f4
AC
68622001-04-04 Andrew Cagney <ac131313@redhat.com>
6863
6864 Obsolete a29k-*-* host and a29k-*-sym1* and a29k-*-kern* targets.
6865 * configure.tgt (a29k-*-sym1*, a29k-*-kern*): Obsolete.
6866 * configure.host (a29k-*-*): Obsolete.
6867 * Makefile.in (ALLDEPFILES): Remove ultra3-nat.c and
6868 ultra3-xdep.c.
6869 (ultra3-nat.o, ultra3-xdep.o): Obsolete.
6870 * config/a29k/tm-ultra3.h: Obsolete.
6871 * config/a29k/ultra3.mt: Obsolete.
6872 * config/a29k/ultra3.mh: Obsolete.
6873 * config/a29k/nm-ultra3.h: Obsolete.
6874 * config/a29k/xm-ultra3.h: Obsolete.
6875 * ultra3-xdep.c: Obsolete.
6876 * ultra3-nat.c: Obsolete.
6877 * config/a29k/a29k-kern.mt: Obsolete.
6878 * NEWS: Update.
6879 * TODO: Update.
6880
608506ed
CF
6881Wed Apr 4 21:48:42 2001 Christopher Faylor <cgf@cygnus.com>
6882
6883 * main.c: Remove windows.h use.
6884 (gdbtk_test): Use PATH_MAX for home var calculation.
6885 * remote-e7000.c (e7000_parse_device): Accomodate Cygwin as well as
6886 Win32 in colon test.
6887 * ser-tcp.c: Use modern __CYGWIN__ conditional.
6888 * source.c (mod_path): Add __CYGWIN__ conditional to WIN32 test.
6889 (openp): Ditto.
6890 * symfile.c (symfile_bfd_open): Ditto.
608506ed 6891
6457bd47
MH
68922001-04-04 Martin M. Hunt <hunt@redhat.com>
6893
6894 * main.c (captured_main): For GDBtk, don't use tui_fileopen().
6895 Handle all stream setup in gdbtk_init
6896
3df1b9b4
MK
68972001-04-04 Mark Kettenis <kettenis@gnu.org>
6898
6899 * i386-tdep.c (i386_extract_return_value): Don't return the return
6900 value of a void function.
6901 (i386_store_return_value): Likewise.
6902
76f4ea53
AC
69032001-04-03 Andrew Cagney <ac131313@redhat.com>
6904
6905 Obsolete w65-*-* target.
6906 * configure.tgt (w65-*-*): Obsolete.
6907 * config/w65/w65.mt: Obsolete.
6908 * config/w65/tm-w65.h: Obsolete.
6909 * w65-tdep.c: Obsolete.
6910 * NEWS: Update. Fix TiC80 description.
6911 * TODO: Update.
6912
52071915
AC
69132001-04-03 Andrew Cagney <ac131313@redhat.com>
6914
6915 Obsolete tic80-*-* target.
6916 * configure.tgt (tic80-*-*): Obsolete.
6917 * config/tic80/tic80.mt: Obsolete.
6918 * config/tic80/tm-tic80.h: Obsolete.
6919 * tic80-tdep.c: Obsolete.
6920 * TODO: Update
6921 * NEWS: Update.
6922
44eaed12
C
69232001-04-02 J.T. Conklin <jtc@redback.com>
6924
ba79cc81
C
6925 * remote-mips.c (S_IROTH): Moved definition from here.
6926 * gdb_stat.h (S_IROTH): to here.
6927
44eaed12
C
6928 * remote.c (remote_protocol_e, remote_protocol_E): Define.
6929 (set_remote_protocol_e_packet_cmd)
6930 (set_remote_protocol_E_packet_cmd)
6931 (show_remote_protocol_e_packet_command)
6932 (show_remote_protocol_E_packet_command): New functions.
6933 (init_all_packet_configs): Initialize remote_protocol_e and
6934 remote_protocol_E.
6935 (remote_resume, remote_async_resume): Support e/E command
6936 packets.
6937 (show_remote_cmd): Show state of remote_protocol_e and
6938 remote_protocol_E.
6939 (_initialize_remote): Add "set remote step-over-range-packet"
6940 and "set remote step-over-range-w-signal-packet" to CLI.
6941
bb19ff3b
AC
69422001-04-01 Andrew Cagney <ac131313@redhat.com>
6943
6944 Obsolete ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv* and
6945 ns32k-utek-*.
6946 * Makefile.in (ALLDEPFILES): Delete umax-xdep.c and ns32km3-nat.c.
6947 (umax-xdep.o, ns32km3-nat.o): Obsolete.
6948 * configure.tgt (ns32k-*-mach3*, ns32k-utek-sysv*, ns32k-utek-*):
6949 Obsolete.
6950 * configure.host (ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv*):
6951 Obsolete.
6952 * config/ns32k/merlin.mh: Obsolete.
6953 * config/ns32k/merlin.mt: Obsolete.
6954 * config/ns32k/xm-merlin.h: Obsolete.
6955 * config/ns32k/tm-merlin.h: Obsolete.
6956 * config/ns32k/nm-umax.h: Obsolete.
6957 * config/ns32k/umax.mh: Obsolete.
6958 * config/ns32k/umax.mt: Obsolete.
6959 * config/ns32k/xm-umax.h: Obsolete.
6960 * umax-xdep.c: Obsolete.
6961 * config/ns32k/ns32km3.mh: Obsolete.
6962 * config/ns32k/ns32km3.mt: Obsolete.
6963 * config/ns32k/tm-ns32km3.h: Obsolete.
6964 * config/ns32k/xm-ns32km3.h: Obsolete.
6965 * ns32km3-nat.c: Obsolete.
6966 * ns32k-tdep.c (merlin_skip_prologue): Obsolete.
6967 (merlin_frame_num_args): Ditto.
6968 * NEWS: Update.
6969 * TODO: Update.
6970
d6259d75
EZ
69712001-04-02 Eli Zaretskii <eliz@is.elta.co.il>
6972
6973 * config/djgpp/fnchange.lst: Tweak due to
6974 expect/example/chesslib.c.
6975
971ff545
KB
69762001-04-02 Kevin Buettner <kevinb@redhat.com>
6977
6978 * m88k-tdep.c (examine_prologue): Change type of ``insn'' from
6979 unsigned int to unsigned long. Also, fix format string.
6980 (pop_frame): Fix PC_IN_CALL_DUMMY() call so that it doesn't
6981 use an undeclared variable. Also, delete declaration and
6982 initialization of ``fp'' because it is otherwise unused.
6983 * remote-bug.c (sleep): Delete declaration.
6984 (bug_store_register, bug_write_memory, bug_read_memory)
6985 (bug_insert_breakpoint, bug_remove_breakpoint): Fix sprintf()
6986 format statements and cast certain sprintf() arguments to
6987 eliminate warnings.
6988 (bug_load): Likewise for call to printf_filtered().
6989 * config/m88k/tm-m88k.h (FIX_CALL_DUMMY): Eliminate
6990 assignment to ``pc''. The necessary assignment is done in
6991 hand_function_call() after the invocation of FIX_CALL_DUMMY().
6992
4e4f46a1
DB
69932001-03-20 Daniel Berlin <dberlin@redhat.com>
6994
6995 * symtab.c (completion_list_add_name): Remove duplicate string checks,
6996 readline already does this, and it's much faster at it, too.
6997
ba8629a9
EZ
69982001-04-01 Eli Zaretskii <eliz@is.elta.co.il>
6999
7000 * go32-nat.c: Minor tweaks, to pacify the ari script.
7001
7bf0983e
MK
70022001-04-01 Mark Kettenis <kettenis@gnu.org>
7003
f7af9647
MK
7004 * i386-tdep.c (i386_extract_struct_value_address): New function.
7005 * config/i386/tm-i386.h (EXTRACT_STRUCT_VALUE_ADDRESS): Redefine
7006 in terms of i386_extract_struct_value_address.
7007 (i386_extract_struct_value_address): New prototype.
7008
7bf0983e
MK
7009 * i386-linux-nat.c (i386_linux_dr_get): Change type of return
7010 value to `unsigned long'. Change type of `value' to `unsigned
7011 long'.
7012 (i386_linux_dr_set): Change type of second argument to `unsigned
7013 long'.
7014 (i386_linux_dr_set_control): Change type of first argument to
7015 `unsigned long'.
7016 (i386_linux_dr_get_status): Change type of return value to
7017 unsigned long.
7018 * config/i386/nm-linux.h (i386_linux_dr_set_control,
7019 i386_linux_dr_get_status): Adjust prototypes accordingly.
7020
6e4862ff
KB
70212001-03-31 Kevin Buettner <kevinb@redhat.com>
7022
7023 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Change
7024 TRAP_HWBKPT constant to match that in the kernel headers for
7025 Linux/IA-64.
521f1f96 7026
1e8d0a7b
MK
70272001-03-31 Mark Kettenis <kettenis@gnu.org>
7028
0afdd437
MK
7029 * i386bsd-nat.c: Include "gdb_assert.h".
7030 [HAVE_PT_GETDBREGS] (DBREG_DRX): Define if not
7031 already defined.
7032 [HAVE_PT_GETDBREGS] (i386bsd_dr_set, i386bsd_dr_set_control,
7033 i386bsd_dr_set_addr, i386bsd_dr_reset_addr,
7034 i386bsd_dr_get_status): New functions.
7035 * config/i386/nm-fbsd.h [HAVE_PT_GETDBREGS]
7036 (I386_USE_GENERIC_WATCHPOINTS): Define.
7037 Include "i386/nm-i386.h".
7038 (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
7039 I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
7040 (i386bsd_dr_set_control, i386bsd_dr_set_addr,
7041 i386bsd_dr_reset_addr, i386bsd_dr_get_status): New prototypes.
7042 * acconfig.h (HAVE_PT_GETDBREGS): New configure macro.
7043 * configure.in: Cleanup a few comments. Check for PT_GETDBREGS
7044 ptrace request.
7045 * config.in, configure: Regenerate.
7046
4bcc3944
MK
7047 * i386-nat.c (i386_insert_aligned_watchpoint): Set address
7048 register before enabling it by setting the control register.
7049 (i386_remove_aligned_watchpoint): Reset address register after
7050 disabling it by setting the control register.
7051
1e8d0a7b
MK
7052 * i386-tdep.c (i386_extract_return_value): If the type of the
7053 return value is TYPE_STRUCT and the number of fields is one, call
7054 ourselves with TYPE set tp the type of the first field.
7055 (i386_store_return_value): Likewise.
7056 This fixes a problem with returning structs consisting of a single
7057 `float' or `double' on *BSD.
7058
95a85621
MK
70592001-03-30 Mark Kettenis <kettenis@gnu.org>
7060
40564aca
MK
7061 * lin-lwp.c (lin_lwp_resume): Don't mark LWP as not stopped until
7062 we're absolutely sure we're going to resume it.
7063
95a85621
MK
7064 * thread-db.c (check_event): Don't report an error if we encounter
7065 a thread creation event for a thread that's already in the thread
7066 list, since that may legitemately happen. Instead only call
7067 attach_thread if it's not already in the thread list.
7068
2e94c453
AC
70692001-03-28 Andrew Cagney <ac131313@redhat.com>
7070
7071 * config/pa/xm-hppah.h (malloc): Really delete declaration
7072 (MALLOC_INCOMPATIBLE): Really delete macro.
7073 * cli/cli-cmds.c (apropos_command): Use xcalloc.
7074
93d56215
AC
70752001-03-28 Andrew Cagney <ac131313@redhat.com>
7076
7077 * configure.in (build_warnings): Add -Wuninitialized.
7078 * configure: Regenerate.
7079
7080 * v850-tdep.c (v850_scan_prologue): Initialize ``insn2''.
7081 * sparc-tdep.c (sparc64_push_arguments): Add default case to
7082 switch.
7083 * sh-tdep.c (sh_do_fp_register): Replace ``?:'' printf format
7084 expression with if statement.
7085 * mn10200-tdep.c (mn10200_analyze_prologue): Initialize
7086 ``stack_size''.
7087 * mips-tdep.c (show_mipsfpu_command): Add default case to switch.
7088 (mips_dump_tdep): Fix setting of ef_mips_arch.
7089 * mcore-tdep.c (mcore_analyze_prologue): Initialize ``fp_regnum''.
7090 * dsrec.c (make_srec): Always initialize ``binbuf''.
7091 * monitor.c (monitor_read_memory_single): Do not pass an
7092 uninitialized buffer to monitor_error. Make ``i'' more local.
7093
381bab78
AC
70942001-03-28 Andrew Cagney <ac131313@redhat.com>
7095
7096 * MAINTAINERS: Change ns32k target to ,-Werror.
7097
7098 * ns32k-tdep.c: Include "gdbcore.h"
7099 (flip_bytes): Change first argument to void*. Add forward
7100 declaration.
7101 (sign_extend): Add declaration.
7102 (merlin_frame_num_args): Add final else clause to if-else chain.
7103 (umax_frame_num_args): Ditto.
7104 * config/ns32k/tm-umax.h (ns32k_localcount): Declare.
7105 (flip_bytes): Ditto.
7106
b9511b9a
MK
71072001-03-28 Mark Kettenis <kettenis@gnu.org>
7108
b05f2432
MK
7109 * i386-linux-tdep.c (FRAMELESS_SIGNAL): Moved here from
7110 config/i386/nm-linux.h (including comment).
7111 (i386_linux_frame_chain): New function implementing guts of the
7112 former FRAME_CHAIN macro, but using read_memory_unsigned_integer
7113 instead of read_memory_integer.
7114 (i386_linux_frame_saved_pc): Removed doc pointing to
7115 i386/tm-linux.h for an explanation of FRAMELESS_SIGNAL since that
7116 now lives in this file.
7117 * config/i386/tm-linux.h (FRAMELESS_SIGNAL): Moved to
7118 i386-linux-tdep.c (including comment).
7119 (FRAME_CHAIN): Redefined in terms of i386_linux_frame_chain.
7120 (i386_linux_frame_chain): New prototype.
7121
0eebe06a
MK
7122 * gdbserver/low-linux.c [I386_GNULINUX_TARGET]: Cleanup code and
7123 make it work again.
7124 (NUM_FREGS): Redefine to 0.
7125 (NUM_REGS): Redefine as NUM_GREGS.
7126 (i386_register_byte, i386_register_raw_size): Update from
7127 i386-tdep.c. Add comment about their origin.
7128 (regmap, register_u_addr): Take these from i386-linux-nat.c.
7129 (i386_register_u_addr): Removed.
7130
b9511b9a
MK
7131 * i386-linux-nat.c (i386_linux_dr_get): Return 0 if ptrace call
7132 fails instead of calling perror_with_name. This should fix
7133 debugging remote i386 targets with a native Linux/x86 GDB. Add
7134 FIXME for this hack.
7135
3172dc30
C
71362001-03-19 J.T. Conklin <jtc@redback.com>
7137
7138 * arch-utils.c (#include "gdbthread.h"): Removed.
7139 (#include "symfile.h"): Removed.
7140 (XMALLOC): Removed unused macro.
7141 * breakpoint.c (tbreak_command): Removed local declaration.
7142 (awatch_command, do_enable_breakpoint, set_breakpoint_count):
7143 Remove duplicate declarations.
7144 (bpstat_should_step, bpstat_have_active_hw_watchpoints)
7145 (remove_solib_event_breakpoints): Fix indentation botch.
7146 * c-typeprint.c (#include "command.h"): Removed.
7147 (#include "gdbcmd.h"): Removed.
7148 * ch-exp.c (ch_terminal_match_float_literal, parse_expr)
7149 (parse_primval, parse_untyped_expr, parse_opt_untyped_expr):
7150 Removed duplicate declarations.
7151 * ch-typeprint.c (#include "command.h"): Removed.
7152 (#include "gdbcmd.h"): Removed.
7153 * corefile.c (#include "frame.h"): Removed
7154 (#include "symfile.h"): Removed.
7155 (#include "language.h"): Removed.
7156 * dbxread.c (#include "command.h"): Removed.
7157 * environ.c (#include "gdbcore.h"): Removed.
7158 * event-loop.c (#include "top.h"): Removed.
7159 * f-typeprint.c (#include "command.h"): Removed.
7160 (#include "gdbcmd.h"): Removed.
7161 (#include "language.h"): Removed.
7162 (#include "typeprint.h"): Removed.
7163 (#include "frame.h"): Removed.
7164 * gdbtypes.h (print_type_scalar): Removed declaration.
7165 * infcmd.c (#include "completer.h"): Removed.
7166 * language.c (#include "frame.h"): Removed.
7167 * m2-typeprint.c (#include "command.h"): Removed.
7168 (#include "gdbcmd.h"): Removed.
7169 (#include "language.h"): Removed.
7170 * m2-valprint.c (#include "valprint.h"): Removed.
7171 * p-typeprint.c (#include "command.h"): Removed.
7172 (#include "gdbcmd.h"): Removed.
7173 * p-valprint.c (#include "typeprint.h"): Removed.
7174 * parse.c (#include "linespec.h"): Removed.
7175 * regcache.c (#include "frame.h"): Removed.
7176 * remote.c (#include "frame.h"): Removed.
7177 (getpkt_sane): Make static.
7178 * source.c (#include "completer.h"): Removed.
7179 * stack.c (#include "symfile.h"): Removed.
7180 (#include "objfiles.h"): Removed.
7181 * symfile.c (#include "completer.h"): Removed.
7182 * tracepoint.c (#include "completer.h"): Removed.
7183 * values.c (#include "frame.h"): Removed.
7184 * varobj.c (#include "valprint.h"): Removed.
7185 * wrapper.c (#include "frame.h"): Removed.
7186
7187 * memattr.c (create_mem_region): Removed unused variable.
7188 * remote-nrom.c: Removed spurious semicolon after init_nrom_ops.
7189
397b41ad
NC
71902001-03-27 Nick Clifton <nickc@redhat.com>
7191
7192 * remote-rdp.c (rdp_set_command_line): Add missing double quote.
7193
ed817e68
KB
71942001-03-27 Kevin Buettner <kevinb@redhat.com>
7195
7196 * solib-aix5.c (build_so_lib_from_mapfile): Use xfree() instead
7197 of free().
7198
b75e0a6b
EZ
71992001-03-27 Eli Zaretskii <eliz@is.elta.co.il>
7200
7201 * TODO (Cleanups): Remove the item about converting docs to GFDL.
7202
2fc3ac7e
KB
72032001-03-26 Kevin Buettner <kevinb@redhat.com>
7204
7205 * ia64-tdep.c (slotN_contents, replace_slotN_contents): Change
7206 type of ``bundle'' from unsigned char * to char *.
7207 (ia64_get_saved_register): Use alloca() to allocate register
7208 buffers.
7209
224d8953
KB
7210 * solib-aix5.c (build_so_lib_from_mapfile): Fix xasprintf() usage.
7211
37de36c6
KB
72122001-03-26 Kevin Buettner <kevinb@redhat.com>
7213
7214 * proc-utils.h (procfs_ctl_t): New typedef.
7215 * proc-api.c (write_with_trace): Change type of ``opcode'' from
7216 long to procfs_ctl_t. Don't assume that the target has defined
7217 BREAKPOINT. Handle case in which PCRESET is the same as PCUNSET.
7218 * proc-events.c (sys/syscall.h, sys/fault.h): Include conditionally.
7219 * procfs.c (sys/fault.h, sys/syscall.h): Include conditionally.
7220 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t, gdb_premptysysset)
7221 (gdb_praddsysset, gdb_prdelsysset, gdb_pr_issyssetmember):
7222 Conditionally define as appropriate for AIX/non-AIX systems. Use
7223 these defines/typedefs as appropriate elsewhere in file.
7224 (struct procinfo): Change type of saved_sigset and saved_sighold
7225 from sigset_t to gdb_sigset_t. Make saved_exitset and
7226 saved_entryset pointer variables. Add two new fields, num_syscalls
7227 and syscall_names.
7228 (DYNAMIC_SYSCALLS): Define when HAVE_PRSYSENT_T is defined.
7229 (sysset_t_size, sysset_t_alloc): New functions.
7230 (load_syscalls, free_syscalls, find_syscall): New functions for
7231 platforms which define DYNAMIC_SYSCALLS.
7232 (create_procinfo): Call load_syscalls.
7233 (destroy_one_procinfo): Call free_syscalls.
7234 (GDBRESET): Don't define twice.
7235 (proc_modify_flag): Change type of operation code array `arg'
7236 from long to procfs_ctl_t.
7237 (proc_stop_process, proc_wait_for_stop, proc_run_process)
7238 (proc_set_traced_signals, proc_set_traced_faults)
7239 (proc_set_traced_sysentry, proc_set_traced_sysexit)
7240 (proc_set_held_signals, proc_clear_current_fault)
7241 (proc_set_current_signal, proc_clear_current_signal, proc_set_gregs)
7242 (proc_set_fpregs, proc_kill, proc_set_watchpoint): Likewise for `cmd'.
7243 (proc_set_traced_sysentry): Dynamically allocate variable sized
7244 struct gdb_proc_ctl_pcsentry. Also, free it at function exit.
7245 (proc_set_traced_sysexit): Dynamically allocate variable
7246 sized struct gdb_proc_ctl_pcsexit. Also, free it at
7247 function exit.
7248 (proc_get_traced_sysentry, proc_get_traced_sysexit): Add new code
7249 for reading the sysset_t struct on AIX5.
7250 (procfs_debug_inferior): Don't assume that SYS_exit will be
7251 defined. Add new code for finding certain syscalls on AIX5.
7252 (syscall_is_lwp_exit, syscall_is_exit, syscall_is_exec)
7253 (syscall_is_lwp_create): New functions.
7254 (procfs_wait): Restructured code which checks for certain
7255 system calls to use the new syscall_is_... functions.
7256 (procfs_notice_signals): Account for the fact that saved_entryset
7257 and saved_exitset in struct procinfo are now pointers.
7258
25d53da1
KB
72592001-03-26 Kevin Buettner <kevinb@redhat.com>
7260
7261 * symtab.c (find_pc_sect_line): Revise method used for finding
7262 the ending pc.
7263
50e27f84
MK
72642001-03-26 Mark Kettenis <kettenis@gnu.org>
7265
7266 * i386-linux-tdep.c (i386_linux_sigtramp_saved_pc,
7267 i386_linux_sigtramp_saved_sp): Make static.
7268 (i386_linux_frame_saved_pc): New function based on the old
7269 FRAME_SAVED_PC macro, but use read_memory_unsigned_integer instead
7270 of read_memory_integer.
7271 * config/i386/tm-linux.h (sigtramp_saved_pc): Remove definition.
7272 (i386_linux_sigtramp_saved_pc): Remove prototype.
7273 (FRAME_SAVED_PC): Redefine in terms of i386_linux_frame_saved_pc.
7274 (i386_linux_frame_saved_pc): New prototype.
7275
1a5cef06
AC
72762001-03-26 Andrew Cagney <ac131313@redhat.com>
7277
7278 * MAINTAINERS: Document m88k as a ``Known problem in 5.1''.
7279 * TODO (GDB 5.1 - Cleanups): Update.
7280
af802127
AC
72812001-03-26 Andrew Cagney <ac131313@redhat.com>
7282
7283 * fork-child.c (clone_and_follow_inferior): Delete #ifdef
7284 HAVE_VFORK.
7285
22f8ba57
MK
72862001-03-26 Mark Kettenis <kettenis@gnu.org>
7287
5b31405b
MK
7288 * config/i386/tm-symmetry.h (PUSH_ARGUMENTS): #undef.
7289
22f8ba57
MK
7290 * i386-tdep.c (i386_push_arguments, i386_store_struct_return): New
7291 functions.
7292 * config/i386/tm-i386.h (PUSH_ARGUMENTS): New macro.
7293 (STORE_STRUCT_RETURN): Redefine in terms of
7294 i386_store_struct_return.
7295 (i386_push_arguments, i386_store_struct_return): New prototypes.
7296 * config/i386/tm-i386v.h (STORE_STRUCT_RETURN): Remove. It's
7297 definition was identical to the definition in "i386/tm-i386.h" so
7298 the new definition should suffice too.
7299
49baf819 73002001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
4d277981 7301
b78a4f26
EZ
7302 * event-loop.c (toplevel) [!HAVE_POLL] [NO_FD_SET]: Remove unused
7303 definitions for SELECT, NBBY, FD_SETSIZE, NFDBITS, and MASK_SIZE.
7304
4d277981
EZ
7305 * config/djgpp/djconfig.sh: Add copyright notice.
7306
7307 * ser-go32.c (rawclock): Remove prototype; include time.h instead.
7308 (ISR, dos_hookirq, isr_t): Convert K&R definition to ANSI C.
7309 (top level) <string.h>: Include gdb_string.h instead.
7310 (dos_noop, dos_raw, dos_noflush_set_tty_state)
7311 (dos_print_tty_state, dos_info): Remove ATTRIBUTE_UNUSED.
7312
7313 * go32-nat.c (go32_create_inferior): Move the declaration of
7314 `environ' to here from the top level.
7315 (top level) <_initialize_go32_nat>: Remove redundant prototype.
7316 <gdb_string.h>: Include it instead of string.h.
7317 (store_register): Call register_buffer instead of accessing
7318 registers[] directly.
7319 (redir_cmdline_delete, redir_cmdline_parse, redir_to_debugger)
7320 (redir_to_debugger, redir_debug_init) [__DJGPP_MINOR__ < 3]: Put
7321 the function names at the start of the line.
7322 (go32_set_dr): Throw internal_error if the argument is not a valid
7323 debug register number.
7324 (go32_open, go32_close, go32_attach, go32_detach, go32_resume)
7325 (go32_wait, go32_xfer_memory, go32_files_info)
7326 (go32_terminal_info): Remove ATTRIBUTE_UNUSED.
7327
8f3ee2ae
JB
73282001-03-25 Jim Blandy <jimb@redhat.com>
7329
7330 * mips-tdep.c (mips_gdbarch_init): Tweak indentation.
7331
6ec4c4bd
EZ
73322001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7333
7334 From Andrew Cagney <ac131313@redhat.com>
7335
7336 * coffread.c: Include "gdb_assert.h".
7337 (coff_symtab_read): Cast the integer s_sclass to a long before
7338 casting it to a pointer.
7339
b9179dbc
EZ
73402001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7341
7342 From Andrew Cagney <ac131313@redhat.com>
7343
7344 * coffread.c (coff_symtab_read): Initialize
7345 ``fcn_first_line_addr''. Check that the ``.bf'' always preceeds
7346 the ``.ef'' info.
7347 * dbxread.c (find_text_range): Initialize ``start'' and ``end''.
7348
64c4637f
AC
73492001-03-23 Andrew Cagney <ac131313@redhat.com>
7350
7351 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Down grade to
7352 GDB_MULTI_ARCH_PARTIAL from two. SOFTWARE_SINGLE_STEP is not
7353 multi-arch.
7354
7355 * gdbarch.sh (SOFTWARE_SINGLE_STEP): Add.
7356 * gdbarch.h, gdbarch.c: Re-generate.
7357
7358 * target.h (SOFTWARE_SINGLE_STEP_P)
7359 (SOFTWARE_SINGLE_STEP): Delete macro definitions.
7360
61a0eb5b
AC
73612001-03-23 Andrew Cagney <ac131313@redhat.com>
7362
7363 * gdbarch.sh (gdbarch_register_read, gdbarch_register_write): Add.
7364 * gdbarch.h, gdbarch.c: Regenerate.
7365
7366 * regcache.h (regcache_read, regcache_write): Declare.
7367 (registers, register_valid, register_buffer): Add note that these
7368 interfaces are deprecated.
7369
7370 * regcache.c: Include "gdb_assert.h".
7371 (legacy_write_register_gen): Rename write_register_gen.
7372 (legacy_read_register_gen): Rename read_register_gen.
7373 (regcache_read, regcache_write): New function.
7374 (read_register_gen, write_register_gen): New function.
7375 (write_register): Simplify. Use write_register_gen.
7376 (read_register): Ditto using read_register_gen.
7377 (read_signed_register): Ditto.
7378 (read_register_bytes): Ditto!!!!
7379 (supply_register): Add note that CLEANUP_REGISTER_VALUE is being
7380 replaced by gdbarch_register_read.
7381
7382 * TODO (GDB 5.2 - Cleanups): Add list of gdbarch methods to
7383 deprecate.
7384
c2bd2ed9
JB
73852001-03-23 Jim Blandy <jimb@redhat.com>
7386
f34754ee
JB
7387 Fix from Dan Berlin:
7388
c2bd2ed9
JB
7389 * stabsread.c (read_cpp_abbrev): Properly construct the names of
7390 virtual function table pointer fields.
7391
c0e61796
AC
73922001-03-19 Andrew Cagney <ac131313@redhat.com>
7393
7394 * defs.h (xfree, mcalloc, mmalloc, mrealloc, mfree, xmmalloc,
7395 xmrealloc): Move existing declarations to the one place and
7396 re-order to be consistent.
7397 (xmcalloc, xmfree): Declare.
7398 (xmmalloc, xmrealoc): Assume ISO-C - use size_t and void* in
7399 declaration.
7400
7401 * utils.c (size_t): Delete #ifdef defining size_t.
7402 (mmalloc, mrealloc, mcalloc, mfree): Re-order.
7403 (mmalloc, mrealloc, mcalloc): Document as only calls in GDB
7404 corresponding malloc, realloc, calloc.
7405 (mfree): Call free directly.
7406 (xmmalloc, xmrealloc): Clean up. Assume ISO-C.
7407 (xmcalloc, xmfree): New functions. Copy old xcalloc and xfree
7408 function bodies to here.
7409 (xcalloc, xfree): Call xmcalloc and xmfree respectfully.
7410
c65ecaf3
AC
74112001-03-23 Andrew Cagney <ac131313@redhat.com>
7412
7413 * fork-child.c (fork_inferior): Make ``argv'', ``exec_file'' and
7414 ``shell_file'' static locals.
7415
7416 * jv-lang.c (java_link_class_type): Initialize ``field'' and
7417 ``method''.
7418
7419 * jv-valprint.c (java_value_print): Initialize ``next_element''.
7420
207e433e
MK
74212001-03-23 Mark Kettenis <kettenis@gnu.org>
7422
7423 * config/i386/nm-i386.h: Fix formatting and change reference to
7424 i386-tdep.c to i386-nat.c.
7425
6c5cfe5b
DS
74262001-03-23 David Smith <dsmith@redhat.com>
7427
7428 * configure.in: Corrected spelling errors.
7429 * configure: Regenerated.
7430
5300940c
AC
74312001-03-22 Andrew Cagney <ac131313@redhat.com>
7432
7433 * TODO (GDB 5.1 - Cleanups): Add more targets to obsolete.
7434
17e78a56
AC
74352001-03-22 Andrew Cagney <ac131313@redhat.com>
7436
7437 * Makefile.in (NTSSTART): Delete.
7438 (NTSOBS): Delete.
7439 (kdb): Delete target.
7440 * kdb-start.c, stuff.c: Mark as obsolete.
7441 * NEWS: Update.
7442
41899c04
AC
74432001-03-22 Andrew Cagney <ac131313@redhat.com>
7444
7445 * config/pa/xm-hppah.h (HPPA_COMPILER_BUG): Delete. GDB only
7446 compiles using an ISO-C compiler.
7447 (MALLOC_INCOMPATIBLE): Ditto.
7448 * linespec.c (decode_line_1): Delete hack to work around
7449 HPPA_COMPILER_BUG.
7450
88665544
AC
74512001-03-22 Andrew Cagney <ac131313@redhat.com>
7452
7453 * exec.c (xfer_memory): Always initialize section.
7454 * infrun.c (normal_stop): Always initialize source_flag.
7455
a2061976
AC
74562001-03-22 Andrew Cagney <ac131313@redhat.com>
7457
7458 * TODO (Remote Protocol Support): Review. Add notes about ``!'',
7459 non-use of a continue address and typical use of ``q'' packet.
7460
e24d4c64
EZ
74612001-03-22 Eli Zaretskii <eliz@is.elta.co.il>
7462
7463 Make DJGPP use the new unified support for hardware
7464 breakpoints and watchpoints on x86 targets:
7465
7466 * config/i386/nm-go32.h <top level>: Don't include nm-i386v.h,
7467 include nm-i386.h instead.
7468 (TARGET_HAS_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT)
7469 (TARGET_CAN_USE_HARDWARE_WATCHPOINT, STOPPED_BY_WATCHPOINT)
7470 (TARGET_REGION_OK_FOR_HW_WATCHPOINT, DECR_PC_AFTER_HW_BREAK)
7471 (target_stopped_data_address, target_insert_watchpoint)
7472 (target_remove_watchpoint, target_insert_hw_breakpoint)
7473 (target_remove_hw_breakpoint): Don't define.
7474 (I386_USE_GENERIC_WATCHPOINTS, I386_DR_LOW_SET_CONTROL)
7475 (I386_DR_LOW_SET_ADDR, I386_DR_LOW_RESET_ADDR)
7476 (I386_DR_LOW_GET_STATUS): Define to call appropriate go32_*
7477 functions from go32-nat.c.
7478
7479 * config/i386/go32.mh (NATDEPFILES): Add i386-nat.o.
7480
7481 * go32-nat.c <top level>: Remove prototypes for watchpoint-
7482 related functions. Remove definitions of watchpoint-related
7483 macros.
7484 (go32_mourn_inferior): Call i386_cleanup_dregs instead of the
7485 private cleanup_dregs function.
7486 (cleanup_dregs, go32_insert_watchpoint)
7487 (go32_insert_aligned_watchpoint, go32_handle_nonaligned_watchpoint)
7488 (go32_remove_watchpoint, go32_remove_aligned_watchpoint)
7489 (go32_region_ok_for_watchpoint, go32_stopped_by_watchpoint)
7490 (go32_remove_hw_breakpoint, go32_insert_hw_breakpoint): Remove.
7491 (go32_set_dr, go32_set_dr7, go32_get_dr6): New functions.
7492
c26e1c2b
KB
74932001-03-21 Kevin Buettner <kevinb@redhat.com>
7494
7495 * ia64-tdep.c (fetch_instruction): Warn about slot numbers greater
7496 than two instead of generating an error.
7497
272ba48f
JB
74982001-03-21 Jim Blandy <jimb@redhat.com>
7499
7500 * cp-valprint.c: Reformat to bring into line with GNU coding
7501 standards.
7502
84346e11
MK
75032001-03-21 Mark Kettenis <kettenis@gnu.org>
7504
7505 Make Linux use the new unified support for hardware breakpoints
7506 and watchpoints on x86 targets.
7507 * i386-linux-nat.c: Doc fixes. Include "gdb_assert.h".
7508 [HAVE_SYS_DEBUGREG_H]: Include <sys/debugreg.h>.
7509 (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS, DR_CONTROL): Define to
7510 appropriate value if not already defined.
7511 (register_u_addr): New function.
7512 (kernel_u_size): New function.
7513 (i386_linux_dr_get, i386_linux_dr_set): New functions.
7514 (i386_linux_dr_set_control, i386_linux_dr_set_addr,
7515 i386_linux_reset_addr, i386_linux_dr_get_status): New functions.
7516 * config/i386/nm-linux.h: Don't include "nm-i386v.h".
7517 (I386_USE_GENERIC_WATCHPOINTS): Define and include "nm-i386.h".
7518 (TARGET_HAS_HARDWARE_WATCHPOINTS,
7519 TARGET_CAN_USE_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT,
7520 STOPPED_BY_WATCHPOINT, target_insert_watchpoint,
7521 target_remove_watchpoint): Remove macros.
7522 (i386_stopped_by_watchpoint, i386_insert_watchpoint,
7523 i386_remove_watchpoint): Remove prototypes.
7524 (register_u_addr): New prototype.
7525 (REGISTER_U_ADDR): Define in terms of register_u_addr.
7526 (i386_linux_dr_set_control, i386_linux_dr_set_addr,
7527 i386_linux_reset_addr, i386_linux_dr_get_status): New prototypes.
7528 (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
7529 I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
7530 * config/i386/linux.mh (NATDEPFILES): Replace i386v-nat.o with
7531 i386-nat.o.
7532
13b57657
JB
75332001-03-21 Jim Blandy <jimb@redhat.com>
7534
f34754ee
JB
7535 Fix from Dan Berlin:
7536
13b57657
JB
7537 * linespec.c (find_methods): Whitespace differences aren't
7538 significant in *un*mangled method names. Use strcmp_iw to compare
f34754ee 7539 them, not STREQ.
13b57657 7540
eee30e78
AC
75412001-03-21 Andrew Cagney <ac131313@redhat.com>
7542
7543 * gdbarch.sh: Allow a non- multi-arch target to override a
7544 predicate.
7545 * gdbarch.h: Regenerate.
7546
b77be6cf
AC
75472001-03-21 Andrew Cagney <ac131313@redhat.com>
7548
7549 * gdbarch.sh: Avoid use of ``!''.
7550
379d08a1
AC
75512001-03-20 Andrew Cagney <ac131313@redhat.com>
7552
7553 * target.h (enum target_signal): Move definition from here.
7554 * defs.h (enum target_signal): To here.
7555
7556 * config/arc/tm-arc.h (arc_software_single_step): Change type of
7557 first parameter to enum target_signal.
7558 * config/rs6000/tm-rs6000.h (rs6000_software_single_step): Ditto.
7559 * config/sparc/tm-sparc.h (sparc_software_single_step): Ditto.
7560 * rs6000-tdep.c (rs6000_software_single_step): Update.
7561
64485362
AC
75622001-03-20 Andrew Cagney <ac131313@redhat.com>
7563
7564 * frame.h (SIZEOF_FRAME_SAVED_REGS): Report an error if macro
7565 already defined.
7566
7567 From 2000-08-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
7568 * stabsread.c (define_symbol): A parameter ('R'), a local ('r'),
7569 or a reference ('a') can be in a pseudo register.
7570 * infcmd.c (do_registers_info): Must take into account the pseudo
7571 registers to print their value.
7572 (registers_info): Likewise.
7573 * stack.c (frame_info): Likewise.
7574 * frame.h (SIZEOF_FRAME_SAVED_REGS): Save the pseudo registers.
7575
52b98211
EZ
75762001-03-21 Eli Zaretskii <eliz@is.elta.co.il>
7577
7578 Unified support for hardware breakpoints and watchpoints on
7579 x86 targets:
7580
7581 * config/i386/nm-i386.h: New file.
7582
7583 * config/i386/nm-i386.h: (i386_cleanup_dregs)
7584 (i386_insert_watchpoint, i386_remove_watchpoint)
7585 (i386_region_ok_for_watchpoint, i386_stopped_by_hwbp)
7586 (i386_stopped_data_address, i386_insert_hw_breakpoint)
7587 (i386_remove_hw_breakpoint): Declare prototypes.
7588 [I386_USE_GENERIC_WATCHPOINTS] (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
7589 Define if not already defined.
7590 (TARGET_REGION_OK_FOR_HW_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT)
7591 (STOPPED_BY_WATCHPOINT, target_stopped_data_address)
7592 (target_insert_watchpoint, target_remove_watchpoint)
7593 (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Define
7594 to call the appropriate i386_* functions.
7595
7596 * i386-nat.c: New file.
7597
7598 * i386-nat.c (I386_DR_CONTROL_MASK, I386_DR_LOCAL_ENABLE)
7599 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
7600 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): New macros.
7601 (dr_mirror, dr_status_mirror, dr_control_mirror, dr_ref_count)
7602 (maint_show_dr): New variables.
7603 (i386_cleanup_dregs, i386_show_dr, i386_length_and_rw_bits)
7604 (i386_insert_aligned_watchpoint, i386_remove_aligned_watchpoint)
7605 (i386_handle_nonaligned_watchpoint, i386_insert_watchpoint)
7606 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
7607 (i386_stopped_data_address, i386_stopped_by_hwbp)
7608 (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): New
7609 functions.
7610 (_initialize_i386_nat): New function.
7611 [I386_USE_GENERIC_WATCHPOINTS]: Add new maint command
7612 `show-debug-regs', sets maint_show_dr to non-zero value and
7613 activates debugging print-outs in functions which insert, remove,
7614 and test watchpoints and hardware breakpoints.
7615
7616 * Makefile.in (i386-nat.o): New target.
7617 (ALLDEPFILES): Add i386-nat.o.
7618
28e9e0f0
MK
76192001-03-21 Mark Kettenis <kettenis@gnu.org>
7620
7621 * i386-tdep.c: Add back _initialize_i386_tdep prototype with
7622 appropriate comment.
7623
e40eccb4
KB
76242001-03-20 Kevin Buettner <kevinb@redhat.com>
7625
7626 * config/alpha/alpha-linux.mh (NATDEPFILES): Use proc-service.o,
7627 thread-db.o, and lin-lwp.o for thread support instead of
7628 linux-thread.o and lin-thread.o.
7629 * config/alpha/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS)
7630 (ATTACH_LWP): Define to use the following lin-lwp.c functions...
7631 (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals)
7632 (lin_lwp_attach_lwp): Declare.
7633
bea7bb93
JB
76342001-03-20 Jim Blandy <jimb@redhat.com>
7635
f34754ee
JB
7636 Fix from Dan Berlin:
7637
bea7bb93
JB
7638 * Makefile.in: Clean up dependencies on ../include/demangle.h.
7639 (demangle_h): New variable.
7640 (jv-typeprint.o, jv-valprint.o, linespec.o): Use it.
7641
b0ed3589
AC
76422001-03-20 Andrew Cagney <ac131313@redhat.com>
7643
7644 * target.h (SOFTWARE_SINGLE_STEP_P): Add empty parameter list.
7645 * breakpoint.c (bpstat_stop_status): Update.
7646 * infrun.c (handle_inferior_event): Ditto.
7647 * mips-tdep.c (mips_dump_tdep): Ditto.
7648 * infrun.c (resume): Ditto.
7649 * infptrace.c (child_resume): Ditto.
7650 * config/mips/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
7651 * config/sh/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
7652 * config/sparc/tm-sparc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
7653 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP_P): Ditto.
7654 * config/arm/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
7655 * config/arc/tm-arc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
7656 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
7657
df087c62
AC
76582001-03-20 Andrew Cagney <ac131313@redhat.com>
7659
7660 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Replace abort
7661 with internal_error.
7662
8bd1f2c6
JB
76632001-03-20 Jim Blandy <jimb@redhat.com>
7664
f34754ee
JB
7665 Fix from Dan Berlin:
7666
8bd1f2c6
JB
7667 * linespec.c (find_methods): Just call CHECK_TYPEDEF on t, rather
7668 than asking for sym_class's type; that's circuitous. Remove
7669 sym_class, since the last use of it is gone.
7670
c97fe386
EZ
76712001-03-20 Eli Zaretskii <eliz@is.elta.co.il>
7672
7673 * breakpoint.c (print_it_typical) <bp_access_watchpoint> [UI_OUT]:
7674 Correct the order of calls to ui_out_field_string and
7675 ui_out_list_begin when bs->old_val is NULL.
7676
486363b6
KB
76772001-03-19 Kevin Buettner <kevinb@redhat.com>
7678
7679 * configure.in (AC_CHECK_HEADERS): Check for existence of nlist.h.
7680 * configure: Regenerate.
7681 * config.in: Regenerate.
7682 * solib-legacy.c (nlist.h): Include if HAVE_NLIST_H is defined.
7683
087bb2e2
KB
76842001-03-19 Kevin Buettner <kevinb@redhat.com>
7685
7686 * config/i386/i386v42mp.mh (NATDEPFILES): List all files on
7687 same line to avoid problems with Unixware 7's make when building
7688 a cross debugger.
7689
3c37485b
AC
76902001-03-19 Andrew Cagney <ac131313@redhat.com>
7691
7692 * defs.h (malloc): Move declaration from here.
7693 * utils.c (malloc): To here.
7694 * config/pa/xm-hppah.h (malloc): Delete declaration.
7695
7696 * gnu-nat.c (make_proc): Use xmalloc instead of malloc.
7697 * hp-psymtab-read.c (hpread_call_pxdb): Ditto.
7698 (hpread_quick_traverse): Ditto.
7699 * infttrace.c (create_thread_info): Ditto.
7700 (kill_inferior): Ditto.
7701 * gnu-nat.c (make_inf): Ditto, and don't check return value.
7702 * procfs.c (proc_update_threads): Ditto.
7703 * valprint.c (print_decimal_chars): Ditto.
7704 * gdbtypes.c (cfront_mangle_name): Use xasprintf instead of
7705 malloc and sprintf.
7706 * remote-rdp.c (rdp_set_command_line): Ditto.
7707
0e52036f
AC
77082001-03-19 Andrew Cagney <ac131313@redhat.com>
7709
7710 * defs.h (realloc): Move declaration from here.
7711 * utils.c (realloc): To here.
7712 * config/pa/xm-hppah.h (realloc): Delete declaration.
7713 * lin-thread.c (insert_thread): Use xrealloc instead of realloc.
7714 * symfile.c (add_filename_language): Ditto.
7715 * event-loop.c (create_file_handler): Ditto.
7716
81b8eb80
AC
77172001-03-19 Andrew Cagney <ac131313@redhat.com>
7718
7719 * defs.h (free): Move declaration from here.
7720 * utils.c (free): To here.
7721 (xfree): Document as the only call to free().
7722 * config/pa/xm-hppah.h (free): Delete declaration.
7723
8cca004a
KB
77242001-03-19 Kevin Buettner <kevinb@redhat.com>
7725
7726 * config/ia64/linux.mh (NATDEPFILES): Add proc-service.o to
7727 this list.
7728
cf4eee44
AC
77292001-03-19 Andrew Cagney <ac131313@redhat.com>
7730
7731 * eval.c (evaluate_subexp): Remove #ifdef __STDC__ and ``inline''.
7732 * config/mips/xm-mips.h (offsetof): Define when !GNUC not !STDC.
7733 * cli/cli-cmds.c (init_cli_cmds): Remove #ifdef __STDC__
7734
1c5b31ef
AC
77352001-03-19 Andrew Cagney <ac131313@redhat.com>
7736
7737 * TODO: List known problems with TUI.
7738
3a0c66d4
AC
77392001-03-19 Andrew Cagney <ac131313@redhat.com>
7740
7741 * MAINTAINERS: Jimmy Guo stepped down as a maintiner (TUI,
7742 gdb.hp).
7743
ce359b09
AC
77442001-03-19 Andrew Cagney <ac131313@redhat.com>
7745
7746 * remote.c (remote_cisco_section_offsets): Do not cast result from
7747 bfd_get_section_name.
7748 (compare_sections_command): Ditto.
7749 (remote_cisco_section_offsets): Make ``p'' a const pointer.
7750 (compare_sections_command): Ditto for ``sectname''.
7751
0b3f98d3
AC
77522001-03-19 Andrew Cagney <ac131313@redhat.com>
7753
7754 From Mon Nov 20 13:59:29 2000 Andrew Cagney <cagney@b1.cygnus.com>:
7755 * valops.c (hand_function_call): Simplify computation of the
7756 address of the pushed argument.
7757
7451d027
AC
77582001-03-17 Andrew Cagney <ac131313@redhat.com>
7759
7760 * p-exp.y (parse_number): Avoid shift overflow when ``long''.
7761 Code copied from c-exp.y.
7762
fb70ab0c
KB
77632001-03-18 Kevin Buettner <kevinb@redhat.com>
7764
7765 * acconfig.h (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
7766 (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
7767 (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New configure macros.
7768 * configure.in (HAVE_STRUCT_LINK_MAP32): Move this test out
7769 of the Solaris procfs testing section. Instead, group with...
7770 (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
7771 (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
7772 (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New <link.h> tests.
7773 * configure: Regenerate.
7774 * config.in: Regenerate.
7775
7776 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Use
7777 new configure macros to choose which (if any) code to
7778 compile in. Added code to explicitly handle *BSD systems;
7779 these systems were previously handled only through macro
7780 redefinition. Also, due to the way the autoconf tests are set
7781 up, this function will no longer return a non-zero value when
7782 GDB is configured as a cross debugger. I.e, cross debuggers
7783 will no longer be able to "accidentally" get the host system's
7784 link map offsets.
7785
8aa16b78
KB
77862001-03-18 Kevin Buettner <kevinb@redhat.com>
7787
7788 * config/i386/nbsd.mh (NATDEPFILES): List all files on the same
7789 line to avoid build problem on NetBSD 1.4.
7790
559e75c0
MC
77912001-03-17 Michael Chastain <chastain@redhat.com>
7792
7793 * win32-nat.c (child_attach): check args for NULL before passing
7794 to strtoul. This fixes PR gdb/43.
7795
fc338970
MK
77962001-03-17 Mark Kettenis <kettenis@gnu.org>
7797
7daede3b
MK
7798 * i387-nat.h: Doc Fix.
7799
fc338970
MK
7800 * i386-tdep.c: Fix formatting.
7801 (i386_get_frame_setup, i386_follow_jump, codestream_read,
7802 codestream_seek, codestream_fill, skip_trampoline_code,
7803 gdb_print_insn_i386, _initialize_i386_tdep): Remove redundant
7804 prototypoes.
7805
e3c6d36d
MK
78062001-03-17 Mark Kettenis <kettenis@gnu.org>
7807
7808 * config/i386/tm-linux.h (TARGET_ANALYZE_FLOATING): Remove. It's
7809 no longer used. Also remove associated FIXME.
7810
4a5c6a1d
AC
78112001-03-16 Andrew Cagney <ac131313@redhat.com>
7812
7813 * gdbarch.sh: Add classes ``m'' and ``M'' for pure multi-arch. Do
7814 not generate macro wrappers for multi-arch functions or
7815 predicates.
7816 (class_is_info_p, class_is_predicate_p): Update.
7817 (class_is_function_p, class_is_variable_p): Ditto.
7818 (class_is_multiarch_p): New class function.
7819
7256e1a5
C
78202001-03-16 J.T. Conklin <jtc@redback.com>
7821
7822 * config/h8300/tm-h8300.h (FRAME_ARGS_ADDRESS): Changed to use
7823 h8300_frame_args_address from frame_args_address.
7824 (FRAME_LOCALS_ADDRESS): Changed to use h8300_frame_locals_address
7825 from frame_locals_address.
7826 (PRINT_REGISTER_HOOK): Changed to use h8300_print_register_hook
7827 from print_register_hook.
7828 (h8300_frame_args_address): Declare.
7829 (h8300_frame_find_saved_regs): Declare.
7830 (h8300_frame_locals_address): Declare.
7831 (h8300_frame_saved_pc): Declare.
7832 (h8300_pop_frame): Declare.
7833 (h8300_print_register_hook): Declare.
7834 * h8300-tdep.c (h8300_frame_find_saved_regs): Removed declaration.
7835 (h8300_frame_args_address): Renamed from frame_args_address.
7836 (h8300_frame_locals_address): Renamed from frame_locals_address.
7837 (h8300_pop_frame): Renamed from pop_frame.
7838 (h8300_print_register_hook): Renamed from print_register_hook.
7839
435b259c
KB
78402001-03-16 Kevin Buettner <kevinb@redhat.com>
7841
7842 * solib-svr4.c (bfd_lookup_symbol): Change type of
7843 ``storage_needed'' from unsigned int to long in order to
7844 match return type of bfd_get_symtab_upper_bound() and
7845 bfd_get_dynamic_symtab_upper_bound().
7846 * solib-aix5.c (bfd_lookup_symbol): Likewise. Also, eliminate
7847 REASONABLE_LIMIT hack which had been added to work around this
7848 problem.
7849
80117be2
KB
78502001-03-15 Kevin Buettner <kevinb@redhat.com>
7851
7852 * solib-aix5.c (bfd_lookup_symbol, build_so_list_from_mapfile)
7853 (aix5_relocate_main_executable, aix5_clear_solib): Replace calls
7854 to free() with calls to xfree().
7855 (bfd_lookup_symbol): Eliminate use of PTR.
7856 (build_so_list_from_mapfile): Use xasprintf() instead of sprintf().
7857
77cd5909
MH
78582001-03-15 Martin Hunt <hunt@redhat.com>
7859
7860 * linespec.c (decode_line_1): Remove trailing quote
7861 when parsing double quotes.
7862
f7f5a202
KB
78632001-03-15 Kevin Buettner <kevinb@redhat.com>
7864
7865 * uw-thread.c (read_thr_debug, read_map, read_lwp, thread_iter)
7866 (libthread_stub, libthread_init): Pass NULL for the mem_attrib
7867 argument in the to_xfer_memory calls.
7868
0d35ddba
AC
78692001-03-15 Andrew Cagney <ac131313@redhat.com>
7870
7871 * MAINTAINERS: Fix typo - w65 not w64. Still doesn't build.
7872 * TODO (GDB 5.1 - Cleanups): Add status of targets being obsoleted.
7873
043780a1
AC
78742001-03-15 Andrew Cagney <ac131313@redhat.com>
7875
7876 * wince.c (child_xfer_memory): Add attrib parameter.
7877 * symm-nat.c (child_xfer_memory): Ditto.
7878 * mac-nat.c (child_xfer_memory): Ditto.
7879 * infttrace.c (child_xfer_memory): Ditto.
7880 * procfs.c (procfs_xfer_memory): Ditto.
7881 * lin-thread.c (thread_db_xfer_memory): Ditto.
7882 * gnu-nat.c (gnu_xfer_memory): Ditto.
7883
9b9c068d
AC
78842001-03-14 Andrew Cagney <ac131313@redhat.com>
7885
7886 * NEWS: Mention that Harris/CXUX m88k is obsolete.
7887
f88e2c52
AC
78882001-03-13 Andrew Cagney <ac131313@redhat.com>
7889
7890 * config/mips/tm-mips.h: Include "regcache.h" for macros refering
7891 to regcache functions.
7892 * config/m68k/tm-m68k.h: Ditto.
7893 * config/i386/tm-i386v.h: Ditto.
7894 * config/mcore/tm-mcore.h: Ditto.
7895 * config/m88k/tm-m88k.h: Ditto.
7896 * config/m68k/tm-news.h: Ditto.
7897 * config/m68k/tm-linux.h: Ditto.
7898 * config/m68k/tm-delta68.h: Ditto.
7899 * config/m68k/nm-sun3.h: Ditto.
7900 * config/m32r/tm-m32r.h: Ditto.
7901 * config/i386/tm-symmetry.h: Ditto.
7902 * config/i386/tm-sun386.h: Ditto.
7903 * config/i386/tm-i386.h: Ditto.
7904 * config/i386/nm-symmetry.h: Ditto.
7905 * config/i386/nm-sun386.h: Ditto.
7906 * config/i386/nm-ptx4.h: Ditto.
7907 * config/i386/nm-i386mach.h: Ditto.
7908 * config/h8500/tm-h8500.h: Ditto.
7909 * config/h8300/tm-h8300.h: Ditto.
7910 * config/fr30/tm-fr30.h: Ditto.
7911 * config/d30v/tm-d30v.h: Ditto.
7912 * config/arm/tm-arm.h: Ditto.
7913 * config/arc/tm-arc.h: Ditto.
7914 * config/alpha/tm-alpha.h: Ditto.
7915 * config/a29k/tm-vx29k.h: Ditto.
7916 * config/a29k/tm-a29k.h: Ditto.
7917 * config/w65/tm-w65.h: Ditto.
7918 * config/vax/tm-vax.h: Ditto.
7919 * config/v850/tm-v850.h: Ditto.
7920 * config/tic80/tm-tic80.h: Ditto.
7921 * config/sparc/tm-sparclite.h: Ditto.
7922 * config/sparc/tm-sparclet.h: Ditto.
7923 * config/sparc/tm-sparc.h: Ditto.
7924 * config/sparc/nm-sun4sol2.h: Ditto.
7925 * config/sparc/nm-sun4os4.h: Ditto.
7926 * config/sparc/nm-nbsd.h: Ditto.
7927 * config/powerpc/nm-solaris.h: Ditto.
7928 * config/pa/tm-hppao.h: Ditto.
7929 * config/pa/tm-hppa.h: Ditto.
7930 * config/pa/nm-hppab.h: Ditto.
7931 * config/ns32k/tm-umax.h: Ditto.
7932 * config/ns32k/tm-merlin.h: Ditto.
7933 * config/nm-m3.h: Ditto.
7934 * config/nm-gnu.h: Ditto.
7935
0981ead9
AC
79362001-03-14 Andrew Cagney <ac131313@redhat.com>
7937
7938 * MAINTAINERS: Update list of targets. Mark arm-* and v850-elf as
7939 broken. Mark sh-*, ia64-linux and ns32k-netbsd as buildable.
7940 Specify an m88k target. Include sample GAWK script to generate
7941 target list. Delete non-existant romp target.
7942 * TODO (GDB 5.1 - Cleanups): Update.
7943
91c1720e
KS
79442001-03-14 Keith Seitz <keiths@cygnus.com>
7945
7946 * linespec.c (decode_line_1): Skip argptr over a leading
7947 double quote. Prevents alloc of 0 bytes and memcpy of -1 bytes.
7948
3cc122b3
KB
79492001-03-14 Kevin Buettner <kevinb@redhat.com>
7950
7951 * config/djgpp/fnchange.lst (ia64-aix-nat.c): Add entry.
7952
5bb367b1
AC
79532001-03-13 Andrew Cagney <ac131313@redhat.com>
7954
7955 * ui-out.h: Remove #if __STDC__, assume an ISO-C compiler.
7956 * m3-nat.c: Ditto.
7957 * p-lang.h: Ditto.
7958 * printcmd.c (printf_command): Ditto.
7959 * ch-exp.c (match_integer_literal): Ditto.
7960 * scm-tags.h: Ditto.
7961 * ser-go32.c: Ditto.
7962 * hppa-tdep.c (unwind_command): Ditto.
7963 * defs.h (volatile): Delete macro definition. Assume __STDC__.
7964 * remote-adapt.c (volatile): Ditto.
7965 * remote-eb.c (volatile): Ditto.
7966 * remote-mm.c (volatile): Ditto.
7967 * defs.h (alloca): Assume __STDC__, declare returning void *.
7968
a728f042
AC
79692001-03-08 Andrew Cagney <ac131313@redhat.com>
7970
7971 * inferior.h (ARCH_NUM_REGS): Delete definition.
7972 * stack.c (frame_info): Use NUM_REGS, not ARCH_NUM_REGS.
7973 * regcache.c (registers_changed): Ditto.
7974 (registers_fetched): Ditto.
7975 * infptrace.c (fetch_inferior_registers): Ditto.
7976 (store_inferior_registers): Ditto.
7977 * infcmd.c (do_registers_info): Ditto.
7978 (registers_info): Ditto.
7979 * i386-linux-nat.c (old_fetch_inferior_registers): Ditto.
7980 (old_store_inferior_registers): Ditto.
7981 * gdbserver/low-linux.c (register_addr): Ditto.
7982 * gdbserver/low-hppabsd.c (register_addr): Ditto.
7983 * core-aout.c: Don't include "inferior.h".
7984 (fetch_core_registers): Use NUM_REGS not ARCH_NUM_REGS.
7985 (register_addr): Ditto.
7986
f48ff60a
FN
79872001-03-13 Fernando Nasser <fnasser@redhat.com>
7988
7989 From Steven Johnson <sjohnson@neurizon.net>
7990 * cli/cli-script.c (define_command): Fix setting of post hooks.
7991
305d65ca
MK
79922001-03-13 Mark Kettenis <kettenis@gnu.org>
7993
7994 * i386-linux-tdep.c: Fix formatting and clarify comments.
7995 (i386_linux_svr4_fetch_link_map_offsets): Use NULL instead of 0
7996 where appropriate.
7997
bf62e5b4
AC
79982001-03-12 Andrew Cagney <ac131313@redhat.com>
7999
8000 * gnu-nat.c: Include "gdb_assert.h" instead of <assert.h>.
8001 (proc_update_sc): Use gdb_assert instead of assert.
8002 (proc_abort): Ditto.
8003 (inf_set_step_thread): Ditto.
8004 (gnu_wait): Ditto.
8005 (S_exception_raise_request): Ditto.
8006 (gnu_terminal_init_inferior): Ditto.
8007
21479ded
KB
80082001-03-09 Kevin Buettner <kevinb@redhat.com>
8009
8010 * Makefile.in (solib-svr4.o): Depend on solib-svr4.c, not solib.c.
8011 (solib-legacy.o): New makefile target.
8012 * solib-legacy.c: New file.
8013 * solib-svr4.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
8014 (default_svr4_fetch_link_map_offsets): Delete.
8015 (set_solib_svr4_fetch_link_map_offsets): Declare.
8016 (legacy_svr4_fetch_link_map_offsets_hook): Declare.
8017 * solib-svr4.c (elf/common.h): Include.
8018 (link.h): Only include for SunOS shared library support.
8019 (_SYSCALL32): Don't define.
8020 (SVR4_FETCH_LINK_MAP_OFFSETS): Define.
8021 (default_svr4_fetch_link_map_offsets): Made static; added forward
8022 declaration.
8023 (fetch_link_map_offsets): New static global.
8024 (legacy_svr4_fetch_link_map_offsets_hook): New global variable.
8025 (default_svr4_fetch_link_map_offsets): Rewritten. The guts
8026 of what used to be in this function now reside in
8027 legacy_svr4_fetch_link_map_offsets() in solib-legacy.c.
8028 (open_symbol_file_object): Fix declaration in SunOS section
8029 of the code.
8030 (set_solib_svr4_fetch_link_map_offsets): New extern function.
8031 (init_fetch_link_map_offsets): New static function.
8032 (_initialize_svr4_solib): Put static global fetch_link_map_offsets
8033 under multiarch control.
8034
8035 * config/alpha/alpha-linux.mt (TDEPFILES): Add solib-legacy.o to
8036 list.
8037 * config/alpha/fbsd.mh (NATDEPFILES): Likewise.
8038 * config/arm/linux.mt (TDEPFILES): Likewise.
8039 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
8040 * config/i386/i386dgux.mh (NATDEPFILES): Likewise.
8041 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8042 * config/i386/i386sco5.mh (NATDEPFILES): Likewise.
8043 * config/i386/i386sol2.mt (TDEPFILES): Likewise.
8044 * config/i386/i386v4.mh (NATDEPFILES): Likewise.
8045 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8046 * config/i386/linux.mt (TDEPFILES): Likewise.
8047 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8048 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8049 * config/i386/ncr3000.mt (TDEPFILES): Likewise.
8050 * config/i386/ptx4.mh (XDEPFILES): Likewise.
8051 * config/i386/sun386.mt (TDEPFILES): Likewise.
8052 * config/ia64/linux.mt (TDEPFILES): Likewise.
8053 * config/m68k/linux.mt (TDEPFILES): Likewise.
8054 * config/m68k/m68kv4.mh (NATDEPFILES): Likewise.
8055 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8056 * config/m68k/sun2os4.mt (TDEPFILES): Likewise.
8057 * config/m68k/sun3os4.mt (TDEPFILES): Likewise.
8058 * config/m88k/delta88v4.mh (NATDEPFILES): Likewise.
8059 * config/mips/mipsv4.mh (NATDEPFILES): Likewise.
8060 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8061 * config/powerpc/linux.mt (TDEPFILES): Likewise.
8062 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8063 * config/powerpc/solaris.mh (NATDEPFILES): Likewise.
8064 * config/sh/linux.mt (TDEPFILES): Likewise.
8065 * config/sparc/linux.mt (TDEPFILES): Likewise.
8066 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8067 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8068 * config/sparc/sp64linux.mt (TDEPFILES): Likewise.
8069 * config/sparc/sun4os4.mt (TDEPFILES): Likewise.
8070 * config/sparc/sun4sol2.mh (NATDEPFILES): Likewise.
8071
d7fa9de0
KB
80722001-03-09 Kevin Buettner <kevinb@redhat.com>
8073
8074 * utils.c (xmrealloc, xcalloc): Return NULL for zero-sized requests.
8075
f8241bd1
AC
80762001-03-09 Andrew Cagney <ac131313@redhat.com>
8077
8078 * MAINTAINERS (Write After Approval): Update Philip Blundell.
8079
e6b4b0c2
KS
80802001-03-09 Keith Seitz <keiths@cygnus.com>
8081
8082 * MAINTAINERS: Add myself to write after approval list.
8083
96836138
MK
80842001-03-09 Mark Kettenis <kettenis@gnu.org>
8085
8086 * i387-tdep.c (print_i387_status_word): Fix printing of Stack
8087 fault flag. It is bit 6 of the x87 FPU status word, not bit 7.
8088
1b594327
AC
80892001-03-08 Andrew Cagney <ac131313@redhat.com>
8090
8091 * configure.host (m88*-harris-cxux*): Mark as obsolete.
8092 * configure.tgt: Ditto.
8093 * config/m88k/xm-cxux.h: Ditto.
8094 * config/m88k/tm-cxux.h: Ditto.
8095 * config/m88k/nm-cxux.h: Ditto.
8096 * config/m88k/cxux.mt: Ditto.
8097 * config/m88k/cxux.mh: Ditto.
8098
4a32a1e4
AC
80992001-03-08 Andrew Cagney <ac131313@redhat.com>
8100
8101 * Makefile.in: Delete rules for obsolete files.
8102
ec9a3449
DT
8103Thu Mar 8 15:43:40 2001 David Taylor <taylor@redhat.com>
8104
8105 * stack.c (parse_frame_specification): For one argument case,
8106 handle the situation where the argument is an integer, not an
8107 address -- arguably the most common case. This matters on
8108 targets where pointers and addresses are different.
8109
a50c34dc
AC
81102001-03-08 Andrew Cagney <ac131313@redhat.com>
8111
8112 * TODO: Revise 5.1 list. Delete PARAMS task. Add coding standard
8113 review. Clarify GNU/LINUX/sparc. Move other tasks to 5.2 or
8114 general.
8115
cfc046cf
AC
81162001-03-07 Andrew Cagney <ac131313@redhat.com>
8117
8118 * TODO (GDB 5.1 Known Problems): Document problem of building GDB
8119 with SID on Solaris 8.
8120
39424bef
MK
81212001-03-07 Mark Kettenis <kettenis@gnu.org>
8122
8123 * defs.h: Provide prototypes for floatformat_is_negative,
8124 floatformat_is_nan and floatformat_mantissa.
8125 * utils.c: Include "gdb_assert.h".
8126 (floatformat_is_negative): New function.
8127 (floatformat_is_nan): New function.
8128 (floatformat_mantissa): New function.
8129 * valprint.c: Include "floatformat.h".
8130 (print_floating): Get rid of the Linux-specific
8131 TARGET_ANALYZE_FLOATING macro and rewrite NaN detection with the
8132 help these new functions. Print NaN's in a format conforming to
8133 ISO C99.
8134
7a1bd56a
EZ
81352001-03-07 Eli Zaretskii <eliz@is.elta.co.il>
8136
8137 * top.c (init_main): Make `set history file name' complete on file
8138 names.
8139
5565b556
C
81402001-03-06 J.T. Conklin <jtc@redback.com>
8141
21a12a30
C
8142 * Makefile.in (LINTFLAGS): Update to contain all of the macros
8143 which define include paths used when compiling.
8144
8145 * util.c (savestring, msavestring): Change type of length argument.
8146 * defs.h (savestring, msavestring): Update to match.
8147
5565b556
C
8148 * symtab.h (decode_line_1): Removed declaration.
8149
8150 * symfile.c (#include <assert.h>): Removed.
8151
8152 * arch-utils.c (#include <ctype.h>): Removed.
8153 * c-typeprint.c: Likewise.
8154 * dbxread.c: Likewise.
8155 * gdbtypes.c: Likewise.
8156 * target.c: Likewise.
8157 * os9kread.c: Likewise.
8158
8159 * c-valprint.c (#include "demangle.h"): Removed.
8160 * ch-typeprint.c: Likewise.
8161 * eval.c: Likewise.
8162 * f-typeprint.c: Likewise.
8163 * f-valprint.c: Likewise.
8164 * m2-typeprint.c: Likewise.
8165 * typeprint.c: Likewise.
8166 * p-typeprint.c: Likewise.
8167 * valarith.c: Likewise.
8168 * valprint.c: Likewise.
8169
8170 * m2-typeprint.c (#include "gdb_string.h"): Removed.
8171 * nlmread.c: Likewise.
8172
8173 * mdebugread.c (#include "gdb-stabs.h"): Removed.
8174 * minsyms.c: Likewise.
8175 * mipsread.c: Likewise.
8176 * nlmread.c: Likewise.
8177
8178 * m2-typeprint.c (#include "obstack.h"): Removed.
8179 * m2-valprint.c: Likewise.
8180
8181 * event-loop.c (#include <setjmp.h>): Removed.
8182
e8be95ae
SS
81832001-03-06 Stan Shebs <shebs@apple.com>
8184
8185 * MAINTAINERS: Remove self from specific maintenance domains
8186 (macos, gdbserver, documentation, testsuite).
8187
b6ba6518
KB
81882001-03-06 Kevin Buettner <kevinb@redhat.com>
8189
8190 * 29k-share/udi/udip2soc.c, Makefile.in, a29k-tdep.c,
8191 a68v-nat.c, abug-rom.c, aclocal.m4, alpha-nat.c, alpha-tdep.c,
8192 annotate.c, annotate.h, arc-tdep.c, arch-utils.c,
8193 arch-utils.h, arm-tdep.c, ax-gdb.c, ax-gdb.h, ax-general.c,
8194 ax.h, bcache.c, bcache.h, blockframe.c, breakpoint.c,
8195 breakpoint.h, buildsym.c, buildsym.h, c-exp.y, c-lang.c,
8196 c-lang.h, c-typeprint.c, c-valprint.c, call-cmds.h, ch-exp.c,
8197 ch-lang.c, ch-lang.h, ch-typeprint.c, ch-valprint.c,
8198 cli/cli-cmds.h, cli/cli-decode.c, cli/cli-decode.h,
8199 cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.h,
8200 cli/cli-utils.h, cli-out.c, cli-out.h, coff-solib.c,
8201 coff-solib.h, coffread.c, command.h, complaints.c,
8202 complaints.h, completer.c, completer.h,
8203 config/a29k/nm-ultra3.h, config/a29k/tm-a29k.h,
8204 config/a29k/tm-ultra3.h, config/a29k/tm-vx29k.h,
8205 config/a29k/xm-ultra3.h, config/alpha/nm-fbsd.h,
8206 config/alpha/nm-linux.h, config/alpha/nm-osf.h,
8207 config/alpha/nm-osf2.h, config/alpha/nm-osf3.h,
8208 config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h,
8209 config/alpha/xm-alphalinux.h, config/alpha/xm-alphaosf.h,
8210 config/alpha/xm-fbsd.h, config/arc/tm-arc.h,
8211 config/arm/nm-linux.h, config/arm/tm-arm.h,
8212 config/arm/tm-embed.h, config/d10v/tm-d10v.h,
8213 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
8214 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
8215 config/i386/nm-fbsd.h, config/i386/nm-gnu.h,
8216 config/i386/nm-i386bsd.h, config/i386/nm-i386mach.h,
8217 config/i386/nm-i386sco.h, config/i386/nm-i386sol2.h,
8218 config/i386/nm-i386v.h, config/i386/nm-i386v4.h,
8219 config/i386/nm-i386v42mp.h, config/i386/nm-linux.h,
8220 config/i386/nm-nbsd.h, config/i386/nm-nbsdelf.h,
8221 config/i386/nm-ptx4.h, config/i386/nm-sun386.h,
8222 config/i386/nm-symmetry.h, config/i386/tm-cygwin.h,
8223 config/i386/tm-fbsd.h, config/i386/tm-i386.h,
8224 config/i386/tm-i386aix.h, config/i386/tm-i386bsd.h,
8225 config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h,
8226 config/i386/tm-i386m3.h, config/i386/tm-i386mk.h,
8227 config/i386/tm-i386nw.h, config/i386/tm-i386os9k.h,
8228 config/i386/tm-i386sco5.h, config/i386/tm-i386sol2.h,
8229 config/i386/tm-i386v.h, config/i386/tm-i386v4.h,
8230 config/i386/tm-i386v42mp.h, config/i386/tm-linux.h,
8231 config/i386/tm-nbsd.h, config/i386/tm-ptx.h,
8232 config/i386/tm-ptx4.h, config/i386/tm-sun386.h,
8233 config/i386/tm-symmetry.h, config/i386/tm-vxworks.h,
8234 config/i386/xm-fbsd.h, config/i386/xm-i386bsd.h,
8235 config/i386/xm-i386gnu.h, config/i386/xm-i386m3.h,
8236 config/i386/xm-i386mach.h, config/i386/xm-i386mk.h,
8237 config/i386/xm-i386sco.h, config/i386/xm-i386v4.h,
8238 config/i386/xm-linux.h, config/i386/xm-nbsd.h,
8239 config/i386/xm-ptx.h, config/i386/xm-ptx4.h,
8240 config/i386/xm-sun386.h, config/i386/xm-symmetry.h,
8241 config/i960/tm-i960.h, config/i960/tm-mon960.h,
8242 config/i960/tm-nindy960.h, config/i960/tm-vx960.h,
8243 config/ia64/nm-aix.h, config/ia64/nm-linux.h,
8244 config/ia64/tm-aix.h, config/ia64/tm-ia64.h,
8245 config/ia64/tm-linux.h, config/ia64/xm-aix.h,
8246 config/ia64/xm-linux.h, config/m68k/nm-apollo68b.h,
8247 config/m68k/nm-delta68.h, config/m68k/nm-dpx2.h,
8248 config/m68k/nm-hp300bsd.h, config/m68k/nm-hp300hpux.h,
8249 config/m68k/nm-linux.h, config/m68k/nm-sun3.h,
8250 config/m68k/tm-apollo68b.h, config/m68k/tm-cisco.h,
8251 config/m68k/tm-dpx2.h, config/m68k/tm-es1800.h,
8252 config/m68k/tm-hp300bsd.h, config/m68k/tm-hp300hpux.h,
8253 config/m68k/tm-isi.h, config/m68k/tm-linux.h,
8254 config/m68k/tm-m68k.h, config/m68k/tm-m68kv4.h,
8255 config/m68k/tm-mac.h, config/m68k/tm-monitor.h,
8256 config/m68k/tm-nbsd.h, config/m68k/tm-news.h,
8257 config/m68k/tm-os68k.h, config/m68k/tm-sun3.h,
8258 config/m68k/tm-vx68.h, config/m68k/xm-3b1.h,
8259 config/m68k/xm-apollo68b.h, config/m68k/xm-dpx2.h,
8260 config/m68k/xm-hp300bsd.h, config/m68k/xm-hp300hpux.h,
8261 config/m68k/xm-linux.h, config/m68k/xm-m68kv4.h,
8262 config/m68k/xm-mpw.h, config/m68k/xm-news.h,
8263 config/m68k/xm-sun2.h, config/m68k/xm-sun3.h,
8264 config/m68k/xm-sun3os4.h, config/m88k/nm-delta88v4.h,
8265 config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h,
8266 config/m88k/tm-m88k.h, config/m88k/xm-cxux.h,
8267 config/m88k/xm-delta88.h, config/m88k/xm-delta88v4.h,
8268 config/m88k/xm-dgux.h, config/mcore/tm-mcore.h,
8269 config/mips/nm-irix3.h, config/mips/nm-irix4.h,
8270 config/mips/nm-irix5.h, config/mips/nm-mips.h,
8271 config/mips/nm-news-mips.h, config/mips/tm-bigmips.h,
8272 config/mips/tm-embed.h, config/mips/tm-embed64.h,
8273 config/mips/tm-embedl.h, config/mips/tm-embedl64.h,
8274 config/mips/tm-irix3.h, config/mips/tm-irix5.h,
8275 config/mips/tm-mips.h, config/mips/tm-mips64.h,
8276 config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h,
8277 config/mips/tm-tx39.h, config/mips/tm-tx39l.h,
8278 config/mips/tm-vr4100.h, config/mips/tm-vr4300.h,
8279 config/mips/tm-vr4300el.h, config/mips/tm-vr4xxx.h,
8280 config/mips/tm-vr4xxxel.h, config/mips/tm-vr5000.h,
8281 config/mips/tm-vr5000el.h, config/mips/xm-irix3.h,
8282 config/mips/xm-irix4.h, config/mips/xm-irix5.h,
8283 config/mips/xm-mips.h, config/mips/xm-mipsm3.h,
8284 config/mips/xm-mipsv4.h, config/mips/xm-news-mips.h,
8285 config/mips/xm-riscos.h, config/mn10200/tm-mn10200.h,
8286 config/mn10300/tm-mn10300.h, config/nm-gnu.h,
8287 config/nm-linux.h, config/nm-lynx.h, config/nm-m3.h,
8288 config/nm-sysv4.h, config/none/nm-none.h,
8289 config/none/tm-none.h, config/none/xm-none.h,
8290 config/ns32k/nm-nbsd.h, config/ns32k/nm-umax.h,
8291 config/ns32k/tm-merlin.h, config/ns32k/tm-nbsd.h,
8292 config/ns32k/tm-ns32km3.h, config/ns32k/tm-umax.h,
8293 config/ns32k/xm-merlin.h, config/ns32k/xm-ns32km3.h,
8294 config/pa/nm-hppab.h, config/pa/nm-hppah.h,
8295 config/pa/nm-hppao.h, config/pa/tm-hppa.h,
8296 config/pa/tm-hppa64.h, config/pa/tm-hppah.h,
8297 config/pa/xm-hppab.h, config/pa/xm-hppah.h,
8298 config/powerpc/nm-aix.h, config/powerpc/nm-linux.h,
8299 config/powerpc/nm-macos.h, config/powerpc/nm-nbsd.h,
8300 config/powerpc/tm-cygwin.h, config/powerpc/tm-linux.h,
8301 config/powerpc/tm-macos.h, config/powerpc/tm-ppc-aix.h,
8302 config/powerpc/tm-ppc-eabi.h, config/powerpc/tm-ppc-nw.h,
8303 config/powerpc/tm-ppcle-eabi.h, config/powerpc/tm-solaris.h,
8304 config/powerpc/xm-aix.h, config/powerpc/xm-linux.h,
8305 config/powerpc/xm-mpw.h, config/rs6000/nm-rs6000.h,
8306 config/rs6000/tm-rs6000.h, config/rs6000/tm-rs6000ly.h,
8307 config/rs6000/xm-aix4.h, config/rs6000/xm-rs6000.h,
8308 config/sh/tm-linux.h, config/sh/tm-sh.h, config/sh/tm-wince.h,
8309 config/sparc/nm-linux.h, config/sparc/nm-nbsd.h,
8310 config/sparc/nm-nbsdelf.h, config/sparc/nm-sparclynx.h,
8311 config/sparc/nm-sun4os4.h, config/sparc/nm-sun4sol2.h,
8312 config/sparc/tm-linux.h, config/sparc/tm-sp64.h,
8313 config/sparc/tm-sp64sim.h, config/sparc/tm-sparc.h,
8314 config/sparc/tm-sparclet.h, config/sparc/tm-sparclite.h,
8315 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
8316 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
8317 config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h,
8318 config/tic80/tm-tic80.h, config/tm-linux.h, config/tm-lynx.h,
8319 config/tm-sysv4.h, config/v850/tm-v850.h, config/vax/tm-vax.h,
8320 config/w65/tm-w65.h, config/xm-aix4.h, config/xm-lynx.h,
8321 config/xm-mpw.h, config/xm-nbsd.h, config/xm-sysv4.h,
8322 config/z8k/tm-z8k.h, configure.in, core-aout.c, core-regset.c,
8323 core-sol2.c, corefile.c, corelow.c, cp-valprint.c,
8324 cpu32bug-rom.c, cxux-nat.c, d10v-tdep.c, d30v-tdep.c,
8325 dbug-rom.c, dbxread.c, dcache.c, dcache.h, defs.h,
8326 delta68-nat.c, demangle.c, dink32-rom.c, dpx2-nat.c, dsrec.c,
8327 dstread.c, dve3900-rom.c, dwarf2read.c, dwarfread.c,
8328 elfread.c, environ.c, environ.h, eval.c, event-loop.c,
8329 event-loop.h, event-top.c, exec.c, expprint.c, f-exp.y,
8330 f-lang.c, f-lang.h, f-typeprint.c, f-valprint.c, findvar.c,
8331 fork-child.c, fr30-tdep.c, frame.c, frame.h, gdb-events.c,
8332 gdb-events.h, gdb-events.sh, gdb-stabs.h, gdb.1, gdb_string.h,
8333 gdb_thread_db.h, gdbcmd.h, gdbcore.h, gdbserver/Makefile.in,
8334 gdbserver/gdbreplay.c, gdbserver/gdbserver.1,
8335 gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
8336 gdbserver/low-lynx.c, gdbserver/low-nbsd.c,
8337 gdbserver/low-sim.c, gdbserver/low-sparc.c,
8338 gdbserver/low-sun3.c, gdbserver/remote-utils.c,
8339 gdbserver/server.c, gdbserver/server.h, gdbserver/utils.c,
8340 gdbthread.h, gdbtypes.c, gdbtypes.h, gnu-nat.c, gnu-nat.h,
8341 gnu-regex.c, gnu-regex.h, h8300-tdep.c, h8500-tdep.c,
8342 hp-psymtab-read.c, hp-symtab-read.c, hp300ux-nat.c,
8343 hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c, hpread.c,
8344 hpread.h, hpux-thread.c, i386-tdep.c, i386aix-nat.c,
8345 i386b-nat.c, i386gnu-nat.c, i386ly-tdep.c, i386m3-nat.c,
8346 i386mach-nat.c, i386nbsd-nat.c, i386nbsd-tdep.c, i386v-nat.c,
8347 i386v4-nat.c, i387-tdep.c, i960-tdep.c, infcmd.c, inferior.h,
8348 inflow.c, infptrace.c, infrun.c, inftarg.c, infttrace.c,
8349 irix4-nat.c, irix5-nat.c, isi-xdep.c, jv-exp.y, jv-lang.c,
8350 jv-lang.h, jv-typeprint.c, jv-valprint.c, kdb-start.c,
8351 kod-cisco.c, kod.c, language.c, language.h, lin-thread.c,
8352 linespec.c, linespec.h, linux-thread.c, lynx-nat.c, m2-exp.y,
8353 m2-lang.c, m2-lang.h, m2-typeprint.c, m2-valprint.c, m3-nat.c,
8354 m32r-rom.c, m32r-tdep.c, m68k-tdep.c, m68klinux-nat.c,
8355 m68knbsd-nat.c, m88k-nat.c, m88k-tdep.c, mac-nat.c,
8356 mac-xdep.c, main.c, maint.c, mcore-rom.c, mcore-tdep.c,
8357 mdebugread.c, mem-break.c, minimon.h, minsyms.c, mips-nat.c,
8358 mips-tdep.c, mipsm3-nat.c, mipsread.c, mipsv4-nat.c,
8359 mn10200-tdep.c, mn10300-tdep.c, mon960-rom.c, monitor.c,
8360 monitor.h, news-xdep.c, nindy-share/env.h, nindy-tdep.c,
8361 nlm/Makefile.in, nlmread.c, ns32k-tdep.c, ns32km3-nat.c,
8362 ns32knbsd-nat.c, objfiles.c, objfiles.h, ocd.c, ocd.h,
8363 op50-rom.c, os9kread.c, osfsolib.c, p-exp.y, pa64solib.c,
8364 pa64solib.h, parse.c, parser-defs.h, partial-stab.h,
8365 ppc-bdm.c, ppc-linux-nat.c, ppc-linux-tdep.c, ppcbug-rom.c,
8366 ppcnbsd-nat.c, printcmd.c, proc-api.c, proc-events.c,
8367 proc-flags.c, proc-utils.h, proc-why.c, procfs.c, ptx4-nat.c,
8368 rdi-share/Makefile.in, rdi-share/aclocal.m4, regcache.c,
8369 regcache.h, remote-adapt.c, remote-array.c, remote-bug.c,
8370 remote-e7000.c, remote-eb.c, remote-es.c, remote-est.c,
8371 remote-hms.c, remote-mips.c, remote-mm.c, remote-nindy.c,
8372 remote-nrom.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
8373 remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
8374 remote-utils.c, remote-utils.h, remote-vx.c, remote.c,
8375 remote.h, reply_mig_hack.awk, rom68k-rom.c, rs6000-nat.c,
8376 rs6000-tdep.c, scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h,
8377 scm-valprint.c, ser-e7kpc.c, ser-mac.c, ser-ocd.c, ser-pipe.c,
8378 ser-tcp.c, ser-unix.c, serial.c, serial.h, sh-tdep.c,
8379 sh3-rom.c, sol-thread.c, solib-aix5.c, solib-svr4.c, solib.c,
8380 solib.h, solist.h, somread.c, somsolib.c, somsolib.h,
8381 source.c, sparc-nat.c, sparc-tdep.c, sparcl-tdep.c,
8382 sparclet-rom.c, srec.h, stabsread.c, stabsread.h, stack.c,
8383 standalone.c, stop-gdb.c, stuff.c, sun3-nat.c, sun386-nat.c,
8384 symfile.c, symfile.h, symm-nat.c, symm-tdep.c, symmisc.c,
8385 symtab.c, symtab.h, target.c, target.h, terminal.h, thread.c,
8386 tic80-tdep.c, top.c, top.h, tracepoint.c, tracepoint.h,
8387 typeprint.c, ui-file.c, ui-file.h, ui-out.h, ultra3-nat.c,
8388 ultra3-xdep.c, umax-xdep.c, utils.c, v850-tdep.c, v850ice.c,
8389 valarith.c, valops.c, valprint.c, value.h, values.c, varobj.h,
8390 vax-tdep.c, version.h, vx-share/vxWorks.h, vx-share/xdr_ld.c,
8391 vx-share/xdr_ptrace.c, vx-share/xdr_ptrace.h,
8392 vx-share/xdr_rdb.c, w65-tdep.c, w89k-rom.c, win32-nat.c,
8393 wrapper.c, wrapper.h, xcoffread.c, xcoffsolib.c, xcoffsolib.h,
8394 xmodem.c, xmodem.h, z8k-tdep.c: Update/correct copyright
8395 notices.
8396
596c9d4b
KB
83972001-03-05 Kevin Buettner <kevinb@redhat.com>
8398
8399 * acconfig.h (HAVE_PRSYSENT_T, HAVE_PR_SIGSET_T,
8400 HAVE_PR_SIGACTION64_T, HAVE_PR_SIGINFO64_T): New configure
8401 macros.
8402 * configure.in (prsysent_t, pr_sigset_t, pr_sigaction64_t,
8403 pr_siginfo64_t): Test for these typedefs in <sys/procfs.h>.
8404 (sys/fault.h, sys/select.h): Test for presence of these
8405 header files.
8406 (ia64-*-aix*): Define NEW_PROC_API for this host.
8407 * configure: Regenerate.
8408 * config.in: Regenerate.
8409
8410 * configure.host (ia64-*-aix*): New host.
8411 * configure.tgt (ia64-*-aix*): New target.
8a5c92d3 8412
eccbb20d
AC
84132001-03-05 Andrew Cagney <ac131313@redhat.com>
8414
8415 * TODO (GDB 5.1 Known Problems): Document z8k as broken.
8416
9ff2efe5
CF
8417Mon Mar 5 11:56:09 2001 Christopher Faylor <cgf@cygnus.com>
8418
8419 * wince.c: Change realloc to xrealloc throughout.
61e2d1f3 8420 (handle_load_dll): Use void * rather than PTR in argument.
9ff2efe5 8421
58841d58
AC
84222001-03-04 Andrew Cagney <ac131313@redhat.com>
8423
8424 * ocd.h (ocd_xfer_memory): Add ``attrib'' parameter.
8425 * ocd.c (ocd_xfer_memory): Ditto.
8426 * ser-ocd.c (ocd_setstopbits): New function. Add to ocd_ops.
8427 * MAINTAINERS: Document powerpc-eabi and powerpcle-eabi as
8428 buildable with ,-Werror.
8429
8430 * Makefile.in (symfile_h): Define.
8431 (mcore-tdep.o): Add $(symfile_h), $(gdbcore_h) and $(inferior_h).
8432 * mcore-tdep.c: Include "symfile.h", "gdbcore.h" and "inferior.h".
8433 * MAINTAINERS: Document mcore-elf and mcore-pe as buildable with
8434 ,-Werror.
8435
8436 * dsrec.c (make_srec): Fix internal_error fmt arg.
8437 * MAINTAINERS: Document i960-coff as buildable with ,-Werror.
8438
3cad1ac9
KB
84392001-03-03 Kevin Buettner <kevinb@redhat.com>
8440
8441 * solib-aix5.c (aix5_relocate_main_executable): Don't use ANOFFSET
8442 as an lvalue.
8443
b9fa2e73
AC
84442001-03-02 Andrew Cagney <ac131313@redhat.com>
8445
130c39e6
AC
8446 * MAINTAINERS (paper trail): Update.
8447
b9fa2e73
AC
8448 * CONTRIBUTE: Update note on ``Fix PR gdb/4706'' convention.
8449
c53efe6e
AC
84502001-03-02 Andrew Cagney <ac131313@redhat.com>
8451
8452 From 2001-03-01 Tom Rix <trix@redhat.com>:
8453 * mn10200-tdep.c (mn10200_frame_chain): Pass 0 for ``pc''
8454 parameter to mn10200_analyze_prologue.
8455
8456 * config/mn10200/tm-mn10200.h: Include "regcache.h".
8457 * MAINTAINERS: Document that mn10200-elf target is buildable.
8458
52b5c2eb
KB
84592001-03-02 Kevin Buettner <kevinb@redhat.com>
8460
8461 * config/ia64/xm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): Move defines
8462 from here...
8463 * config/ia64/nm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): ...to here.
8464 (MONTEREY): Don't define.
8465 (AIX5): Define.
8466
2edb46b1
MH
84672001-03-02 Matt Hiller <hiller@redhat.com>
8468
8469 * config/mn10300/tm-mn10300.h (E0_REGNUM): Correct to 15.
8470
92c71a3e
KB
84712001-03-02 Kevin Buettner <kevinb@redhat.com>
8472
82a2886f 8473 * sparc-nat.c (sparc-nat.c): Don't include self.
92c71a3e 8474
e2a4c6c1
C
84752001-03-01 J.T. Conklin <jtc@redback.com>
8476
3a644c8d
C
8477 * defs.h (__CYGWIN__): Moved conditional which defines __CYGWIN__
8478 if __CYGWIN32__ is set from here.
8479 * config/i386/xm-cygwin.h: To here.
8480 * config/powerpc/xm-cygwin.h: To here.
8481
e2a4c6c1
C
8482 * i386-stub.c (handle_exception): Use 'T' response packet.
8483
4b33390a
MS
84842001-03-01 Michael Snyder <msnyder@mvstp600e.cygnus.com>
8485
8486 * m32r-tdep.c: Fix cut and paste error in comment.
8487
84882001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
8489
8490 * symtab.c (print_msymbol_info): Print addresses by portable method
8491 longest_local_hex_string_custom. Allow for 64-bit addresses.
8492
ba41d549
C
84932001-03-01 J.T. Conklin <jtc@redback.com>
8494
8495 * gdbtypes.h (builtin_type_f_integer): Removed duplicate declaration.
8496 (MAX_OF_TYPE): Wrap macro definition in parenthesis.
8497 (MIN_OF_TYPE): Likewise.
8498
8499 * memattr.h (mem_access_mode): Removed extraneous trailing comma.
8500
088d891f
AC
85012001-03-01 Andrew Cagney <ac131313@redhat.com>
8502
8503 * Makefile.in (os9kread.o): Do not compile with WERROR_CFLAGS.
8504 * os9kread.c (os9k_process_one_symbol): Add assert to detect
8505 ``loses if sizeof (char *) > sizeof (int)''.
8506
38266776
AC
85072001-03-01 Andrew Cagney <ac131313@redhat.com>
8508
8509 * gdb_assert.h: Document pragmatics behind gdb_assert's case.
8510
2ad43c4f
AC
85112001-03-01 Andrew Cagney <ac131313@redhat.com>
8512
8513 * Makefile.in (gdbtk-cmds.o): Add $(regcache_h) to dependency
8514 lists.
8515 (mi-main.o): Ditto.
8516
367e21d8
AC
85172001-03-01 Andrew Cagney <ac131313@redhat.com>
8518
8519 * Makefile.in (regcache_h): Define. Add $(regcache_h) to
8520 dependency lists.
8521
d85310f7
MS
85222001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
8523
c0d8fd9a
MS
8524 * printcmd.c (print_address_numeric): Update comments to refer
8525 to sizeof addr, not sizeof pointer.
8526 (x_command): Remove needless whitespace (shorten long line).
8527
d85310f7
MS
8528 * breakpoint.c (print_one_breakpoint): Formatting clean-up.
8529 (read_memory_nobpt): Ditto.
8530 (ep_is_catchpoint): Ditto.
8531 (ep_is_shlib_catchpoint): Ditto.
8532 (ep_is_exception_catchpoint): Ditto.
8533 (describe_other_breakpoints): Ditto.
8534
97900206
AC
8535Wed Feb 28 20:37:36 2001 Andrew Cagney <ac131313@redhat.com>
8536
8537 * regcache.h (register_valid): Fix comment documenting valid
8538 states.
8539
4e052eda
AC
8540Tue Feb 27 23:56:23 2001 Andrew Cagney <ac131313@redhat.com>
8541
8542 From Steven Johnson:
8543 * regcache.h: New file.
8544
8545 * value.h (read_register_bytes, read_register_gen)
8546 (write_register_gen, write_register_bytes)
8547 (read_register, read_register_pid)
8548 (read_signed_register, read_signed_register_pid)
8549 (write_register, write_register_pid)
8550 (register_cached, set_register_cached)
8551 (register_changed, register_buffer)
8552 (registers_changed, supply_register): Move declaration from here.
8553 * regcache.h: To here.
8554 * gdbcore.h (registers_fetched): Ditto.
8555 * inferior.h (registers, registers_valid): Ditto.
8556
8557 * regcache.c (generic_target_read_pc, read_pc_pid, read_pc,
8558 generic_target_write_pc, write_pc_pid, write_pc,
8559 generic_target_read_sp, read_sp, generic_target_write_sp,
8560 write_sp, generic_target_read_fp, read_fp,
8561 generic_target_write_fp, write_fp): Add note that these functions
8562 will be moved from this file.
8563
8564 * a29k-tdep.c: Include "regcache.h".
8565 * a68v-nat.c: Ditto.
8566 * abug-rom.c: Ditto.
8567 * alpha-nat.c: Ditto.
8568 * alpha-tdep.c: Ditto.
8569 * alphabsd-nat.c: Ditto.
8570 * arc-tdep.c: Ditto.
8571 * arm-linux-nat.c: Ditto.
8572 * arm-linux-tdep.c: Ditto.
8573 * arm-tdep.c: Ditto.
8574 * blockframe.c: Ditto.
8575 * core-aout.c: Ditto.
8576 * core-sol2.c: Ditto.
8577 * corelow.c: Ditto.
8578 * cpu32bug-rom.c: Ditto.
8579 * cxux-nat.c: Ditto.
8580 * d10v-tdep.c: Ditto.
8581 * d30v-tdep.c: Ditto.
8582 * dbug-rom.c: Ditto.
8583 * dink32-rom.c: Ditto.
8584 * dve3900-rom.c: Ditto.
8585 * findvar.c: Ditto.
8586 * fr30-tdep.c: Ditto.
8587 * frame.c: Ditto.
8588 * go32-nat.c: Ditto.
8589 * h8300-tdep.c: Ditto.
8590 * h8500-tdep.c: Ditto.
8591 * hp300ux-nat.c: Ditto.
8592 * hppa-tdep.c: Ditto.
8593 * hppab-nat.c: Ditto.
8594 * hppah-nat.c: Ditto.
8595 * hppam3-nat.c: Ditto.
8596 * hpux-thread.c: Ditto.
8597 * i386-linux-nat.c: Ditto.
8598 * i386-linux-tdep.c: Ditto.
8599 * i386-tdep.c: Ditto.
8600 * i386aix-nat.c: Ditto.
8601 * i386b-nat.c: Ditto.
8602 * i386bsd-nat.c: Ditto.
8603 * i386gnu-nat.c: Ditto.
8604 * i386ly-tdep.c: Ditto.
8605 * i386m3-nat.c: Ditto.
8606 * i386mach-nat.c: Ditto.
8607 * i386nbsd-nat.c: Ditto.
8608 * i386v4-nat.c: Ditto.
8609 * i387-nat.c: Ditto.
8610 * i387-tdep.c: Ditto.
8611 * i960-tdep.c: Ditto.
8612 * ia64-aix-nat.c: Ditto.
8613 * ia64-linux-nat.c: Ditto.
8614 * ia64-tdep.c: Ditto.
8615 * infptrace.c: Ditto.
8616 * infrun.c: Ditto.
8617 * irix4-nat.c: Ditto.
8618 * irix5-nat.c: Ditto.
8619 * lin-lwp.c: Ditto.
8620 * lin-thread.c: Ditto.
8621 * lynx-nat.c: Ditto.
8622 * m3-nat.c: Ditto.
8623 * m32r-rom.c: Ditto.
8624 * m32r-tdep.c: Ditto.
8625 * m68hc11-tdep.c: Ditto.
8626 * m68k-tdep.c: Ditto.
8627 * m68klinux-nat.c: Ditto.
8628 * m68knbsd-nat.c: Ditto.
8629 * m68knbsd-tdep.c: Ditto.
8630 * m88k-nat.c: Ditto.
8631 * m88k-tdep.c: Ditto.
8632 * mac-nat.c: Ditto.
8633 * mcore-rom.c: Ditto.
8634 * mcore-tdep.c: Ditto.
8635 * mi/mi-main.c: Ditto.
8636 * mips-nat.c: Ditto.
8637 * mips-tdep.c: Ditto.
8638 * mipsm3-nat.c: Ditto.
8639 * mipsv4-nat.c: Ditto.
8640 * mn10200-tdep.c: Ditto.
8641 * mn10300-tdep.c: Ditto.
8642 * monitor.c: Ditto.
8643 * ns32km3-nat.c: Ditto.
8644 * ns32knbsd-nat.c: Ditto.
8645 * ocd.c: Ditto.
8646 * pa64solib.c: Ditto.
8647 * ppc-bdm.c: Ditto.
8648 * ppc-linux-nat.c: Ditto.
8649 * ppc-linux-tdep.c: Ditto.
8650 * ppcbug-rom.c: Ditto.
8651 * ppcnbsd-nat.c: Ditto.
8652 * ptx4-nat.c: Ditto.
8653 * regcache.c: Ditto.
8654 * remote-adapt.c: Ditto.
8655 * remote-array.c: Ditto.
8656 * remote-bug.c: Ditto.
8657 * remote-e7000.c: Ditto.
8658 * remote-eb.c: Ditto.
8659 * remote-es.c: Ditto.
8660 * remote-est.c: Ditto.
8661 * remote-hms.c: Ditto.
8662 * remote-mips.c: Ditto.
8663 * remote-mm.c: Ditto.
8664 * remote-nindy.c: Ditto.
8665 * remote-os9k.c: Ditto.
8666 * remote-rdi.c: Ditto.
8667 * remote-rdp.c: Ditto.
8668 * remote-sds.c: Ditto.
8669 * remote-sim.c: Ditto.
8670 * remote-st.c: Ditto.
8671 * remote-udi.c: Ditto.
8672 * remote-utils.c: Ditto.
8673 * remote-vx.c: Ditto.
8674 * remote-vx29k.c: Ditto.
8675 * remote-vx68.c: Ditto.
8676 * remote-vx960.c: Ditto.
8677 * remote-vxmips.c: Ditto.
8678 * remote-vxsparc.c: Ditto.
8679 * remote.c: Ditto.
8680 * rom68k-rom.c: Ditto.
8681 * rs6000-nat.c: Ditto.
8682 * rs6000-tdep.c: Ditto.
8683 * sh-tdep.c: Ditto.
8684 * sh3-rom.c: Ditto.
8685 * sol-thread.c: Ditto.
8686 * solib-svr4.c: Ditto.
8687 * somsolib.c: Ditto.
8688 * sparc-nat.c: Ditto.
8689 * sparc-tdep.c: Ditto.
8690 * sparcl-tdep.c: Ditto.
8691 * sparclet-rom.c: Ditto.
8692 * sun3-nat.c: Ditto.
8693 * sun386-nat.c: Ditto.
8694 * symm-nat.c: Ditto.
8695 * target.c: Ditto.
8696 * thread-db.c: Ditto.
8697 * thread.c: Ditto.
8698 * tic80-tdep.c: Ditto.
8699 * tracepoint.c: Ditto.
8700 * ultra3-nat.c: Ditto.
8701 * umax-xdep.c: Ditto.
8702 * uw-thread.c: Ditto.
8703 * v850-tdep.c: Ditto.
8704 * v850ice.c: Ditto.
8705 * valops.c: Ditto.
8706 * w65-tdep.c: Ditto.
8707 * w89k-rom.c: Ditto.
8708 * win32-nat.c: Ditto.
8709 * wince.c: Ditto.
8710 * z8k-tdep.c: Ditto.
8711
07d48ebc
MH
87122001-02-28 Matt Hiller <hiller@redhat.com>
8713
8714 * MAINTAINERS: Add Matt Hiller to Write After Approval list.
8715
2edb46b1
MH
87162001-02-27 Matt Hiller <hiller@redhat.com>
8717
8718 * mn10300-tdep.c (mn10300_stab_reg_to_regnum): New function.
8719 (mn10300_gdbarch_init): Set appropriate elements of gdbarch to
8720 mn10300_stab_reg_to_regnum.
8721
993f3aa5
DT
8722Tue Feb 27 16:56:13 2001 David Taylor <taylor@redhat.com>
8723
8724 * symtab.c (search_symbols): Fix off by one error in test for
8725 error.
8726
86168def
AC
87272001-02-23 Andrew Cagney <ac131313@redhat.com>
8728
8729 * config/sparc/sp64linux.mt: New file.
8730 * configure.tgt: Recognize sparc64-*-linux* as a sp64linux target.
8731 * configure.host: Recognize sparc64-*-linux* as a linux host.
8732
8733 From 2000-03-17 Jakub Jelinek <jakub@redhat.com>:
8734 * config/sparc/tm-sp64linux.h: New file.
8735
e1e9e218
KB
87362001-02-24 Kevin Buettner <kevinb@redhat.com>
8737
8738 * buildsym.c (push_subfile, pop_subfile): Replace call to abort()
8739 with call to internal_error().
8740 * dbxread.c (process_one_symbol): Likewise.
8741 * exec.c (build_section_table, xfer_memory): Likewise.
8742 * h8500-tdep.c (h8500_register_size, h8500_register_virtual_type):
8743 Likewise.
8744 * hpread.c (hpread_type_translate, hpread_read_array_type)
8745 (hpread_type_lookup): Likewise.
8746 * i386-tdep.c (gdb_print_insn_i386): Likewise.
8747 * i960-tdep.c (mem): Likewise
8748 * inflow.c (set_sigio_trap, clear_sigio_trap): Likewise.
8749 * infptrace.c (child_resume): Likewise.
8750 * infttrace.c (_initialize_infttrace): Likewise.
8751 * language.c (binop_result_type, add_language): Likewise.
8752 * lynx-nat.c (store_inferior_registers): Likewise.
8753 * m3-nat.c (port_chain_insert, m3_trace_me): Likewise.
8754 * mdebugread.c (parse_partial_symbols): Likewise.
8755 * monitor.c (monitor_printf_noecho, monitor_printf)
8756 (monitor_dump_regs): Likewise.
8757 * ocd.c (stu_put_packet): Likewise.
8758 * printcmd.c (decode_format, print_scalar_formatted): Likewise.
8759 * remote-bug.c (bug_open): Likewise.
8760 * remote-e7000.c (fetch_regs_from_dump, e7000_wait): Likewise.
8761 * remote-es.c (es1800_read_bytes): Likewise.
8762 * remote-mips.c (common_breakpoint): Likewise.
8763 * remote-rdp.c (send_rdp): Likewise.
8764 * remote-sds.c (putmessage): Likewise.
8765 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
8766 Likewise.
8767 * sparcl-tdep.c (sparclite_download): Likewise.
8768 * symtab.c (lookup_partial_symbol): Likewise.
8769 * target.c (push_target, pop_target, initialize_targets): Likewise.
8770 * utils.c (internal_verror, malloc_botch, wrap_here, decimal2str):
8771 Likewise.
8772 * valprint.c (print_decimal, print_longest, print_longest)
8773 (strcat_longest): Likewise.
8774 * w65-tdep.c (init_frame_pc, w65_push_dummy_frame): Likewise.
8775 * xmodem.c (xmodem_send_packet): Likewise.
8776 * z8k-tdep.c (init_frame_pc, z8k_push_dummy_frame): Likewise.
8777 * config/h8500/tm-h8500.h (STORE_STRUCT_RETURN): Likewise.
8778 * config/mn10200/tm-mn10200.h (EXTRACT_RETURN_VALUE)
8779 (STORE_RETURN_VALUE): Likewise.
8780 * config/ns32k/nm-umax.h (REGISTER_U_ADDR): Likewise.
8781 * config/ns32k/xm-merlin.h (REGISTER_U_ADDR): Likewise.
8782 * config/z8k/tm-z8k.h (STORE_STRUCT_RETURN, STORE_RETURN_VALUE):
8783 Likewise.
8784
17fceda3
AC
87852001-02-23 Andrew Cagney <ac131313@redhat.com>
8786
2126d5fb
AC
8787 * CONTRIBUTE: Document how to cite a problem report.
8788 * TODO: Note need to replace CONTRIBUTE with generated file.
8789
17fceda3
AC
8790 * CONTRIBUTE: Mention that patches do not need to include the
8791 generated files gdbarch.h and gdbarch.c.
8792
60edd51d
AC
87932001-02-21 Andrew Cagney <ac131313@redhat.com>
8794
8795 * value.h (get_saved_register): Move from here.
8796 * frame.h: To here.
8797
d7fa2ae2
KB
87982001-02-21 Kevin Buettner <kevinb@redhat.com>
8799
8800 * solib.h (in_svr4_dynsym_resolve_code): Delete declaration.
8801 (in_solib_dynsym_resolve_code): Add declaration.
8802 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Changed define to invoke
8803 in_solib_dynsym_resolve_code() rather than
8804 in_svr4_dynsym_resolve_code(). Also, removed the ifdefs
8805 which caused this macro to only be defined when
8806 SVR4_SHARED_LIBS is defined.
8807 * solib.c (in_solib_dynsym_resolve_code): New function.
8808 * solist.h (struct target_so_ops): Add new member
8809 in_dynsym_resolve_code.
8810 * solib-aix5.c (aix5_in_dynsym_resolve_code): Renamed from
8811 in_svr4_dynsym_resolve_code. Also, made static.
8812 (_initialize_aix5_solib): Initialize in_dynsym_resolve_code
8813 member in aix5_so_ops.
8814 * solib-svr4.c (svr4_in_dynsym_resolve_code): Renamed from
8815 in_svr4_dynsym_resolve_code. Also, added second version
8816 of this function which will be used when SVR4_SHARED_LIBS
8817 is not defined.
8818 (_initialize_svr4_solib): Initialize in_dynsym_resolve_code
8819 member in svr4_so_ops.
8820
8821 * ia64-aix-nat.c, ia64-aix-tdep.c, config/ia64/aix.mh,
8822 config/ia64/aix.mt, config/ia64/nm-aix.h, config/ia64/tm-aix.h,
8823 config/ia64/xm-aix.h: New files.
8824 * ia64-tdep.c (_initialize_ia64_tdep): Remove declaration.
8825 (ia64_aix_sigcontext_register_address): New declaration.
aacc1edd 8826 (ia64_gdbarch_init): Provide for initialization of
d7fa2ae2
KB
8827 sigcontext_register_address member of struct tdep when
8828 on target is detected to be running AIX.
8829 * config/ia64/linux.mt (TDEPFILES): Add ia64-aix-tdep.o to
8830 this list.
8831
fbad0893
KB
88322001-02-20 Kevin Buettner <kevinb@redhat.com>
8833
8834 * ia64-tdep.c (ia64_frameless_function_invocation): Implement.
8835 * config/ia64/linux.mh (NATDEPFILES): Use thread-db.o and lin-lwp.o
8836 for thread support instead of linux-thread.o and lin-thread.o.
8837 * config/ia64/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS,
8838 ATTACH_LWP): Define to use the following lin-lwp.c functions...
8839 (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals,
8840 lin_lwp_attach_lwp): Declare.
8841
1adad886
AC
88422001-02-20 Andrew Cagney <ac131313@redhat.com>
8843
8844 * mips-tdep.c (do_fp_register_row, do_fp_register_row): Fix printf
8845 formatting.
8846
0579d647
KB
88472001-02-20 Kevin Buettner <kevinb@redhat.com>
8848
8849 * solib-aix5.c (solib-svr4.h): Remove include.
8850 (solib_break_names): Delete names which aren't actually
8851 used by AIX5.
8852 (bkpt_names): Remove.
8853 (aix5_relocate_main_executable, bfd_lookup_symbol): Replace calls
8854 to STREQ() with equivalent calls to strcmp().
8855 (in_svr4_dynsym_resolve_code, enable_break, bfd_lookup_symbol,
8856 aix5_solib_create_inferior_hook): Revise comments.
8857 (enable_break): Remove old ``bkpt_names'' code.
8858
d65fe839
AC
88592001-02-19 Andrew Cagney <ac131313@redhat.com>
8860
8861 * Makefile.in (SFILES): Add frame.c .
8862 (COMMON_OBS): Add frame.o .
8863 (frame.o): New target.
8864
8865 * frame.c (find_saved_register):
8866 (default_get_saved_register):
8867 (get_saved_register):
8868 (read_relative_register_raw_bytes_for_frame):
8869 (read_relative_register_raw_bytes): Moved to here.
8870 * regcache.c: From here.
8871
60cf7a85
KB
88722001-02-20 Kevin Buettner <kevinb@redhat.com>
8873
8874 * solib-aix5.c: New file.
8875
291b7e04
MH
88762001-02-20 Martin M. Hunt <hunt@redhat.com>
8877
a43ad351
MH
8878 * solib.c (info_sharedlibrary_command): Don't assume pointers
8879 are the same size of long, call longest_local_hex_string_custom().
8880
58bc91c9
MH
8881 * solib-svr4.c (LM_ADDR): LM_ADDR is a signed offset, so
8882 extract_signed_integer() should be called instead of
8883 extract_address().
8884
88852001-02-20 Martin M. Hunt <hunt@redhat.com>
8886
291b7e04
MH
8887 * MAINTAINERS: Add Martin Hunt to Write After Approval list.
8888
d02ee681
AC
88892001-02-19 Andrew Cagney <ac131313@redhat.com>
8890
8891 Frm 2001-02-09 Jim Kingdon <jkingdon@engr.sgi.com>:
8892 * mips-tdep.c (mips_register_raw_size): If FP_REGISTER_DOUBLE,
8893 then floating point registers are 8 bytes.
8894
a858089e
MS
88952001-02-19 Michael Snyder <msnyder@mvstp600e.cygnus.com>
8896
8897 * parse.c (write_exp_msymbol): Make the type CORE_ADDR, to
8898 accomodate 64-bit addresses.
8899
23cc649f
EZ
89002001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8901
8902 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>
8903 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux, not
8904 lookup_symbol, when trying to find a symbol with a mangled name,
8905 to avoid infinite recursion.
8906
0db23c95
AC
89072001-02-18 Andrew Cagney <ac131313@redhat.com>
8908
8909 * TODO (5.2): Mention G++ 3.0 ABI. General cleanups.
8910
911413e6
JL
89112001-02-19 Jonathan Larmour <jlarmour@redhat.com>
8912
8913 * arm-tdep.c (check_prologue_cache): Fix off by 1 error.
8914 (save_prologue_cache): Ditto.
8915
8d1de4b7
EZ
89162001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8917
8918 From: innadadadavida@yahoo.com:
8919 * partial-stab.h (switch): Check that pst is not null
8920 before dereferencing it.
8921
3017564a
EZ
89222001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8923
8924 From Andrew Cagney <cagney@b1.cygnus.com>:
8925 * symfile.c (add_symbol_file_command): Always initialize
8926 my_cleanup using a NULL cleanup.
8927
fa58ee11
EZ
89282001-02-19 Eli Zaretskii <eliz@is.elta.co.il>
8929
8930 * demangle.c (demangling_style_names): New variable.
8931 (_initialize_demangler): Fill demangling_style_names with the
8932 names of known demangling styles from libiberty_demanglers[]. Use
8933 add_set_enum_cmd instead of add_set_cmd, to get completion on
8934 demangling style names.
8935
8936 * proc-api.c (_initialize_proc_api): Make `procfs-file' use
8937 file-name completion.
8938
8939 * remote-rdi.c (_initialize_remote_rdi): Ditto for `rdilogfile'.
8940
8941 * solib.c (_initialize_solib): Ditto for `solib-search-path' and
8942 `solib-absolute-prefix'.
8943
8944 * tracepoint.c (_initialize_tracepoint): Ditto for
8945 `save-tracepoints'.
8946
8947 * win32-nat.c (_initialize_inftarg): Ditto for `dll-symbols'.
8948
8949 * cli/cli-cmds.c (init_cli_cmds): Make `shell' and `make' use
8950 file-name completion.
8951
8952 * infcmd.c (_initialize_infcmd): Make the following commands use
8953 the file-name completer: `tty', `args', `path', `paths', and
8954 `run'.
8955
7830cf6f
EZ
89562001-02-18 Eli Zaretskii <eliz@is.elta.co.il>
8957
89dea5aa
EZ
8958 * go32-nat.c: Include i387-nat.h.
8959 (fetch_register): New function, uses some of the guts of
8960 go32_fetch_registers and calls i387_supply_register.
8961 (go32_fetch_registers): Most of the code moved into
8962 fetch_register. Use i387_supply_fsave.
8963 (store_register): Use i387_fill_fsave instead of custom code.
8964 (go32_store_registers): Use i387_fill_fsave.
8965
8966 * Makefile.in (go32-nat.o): Depend on i387-nat.h.
8967
8968 * config/i386/go32.mh (NATDEPFILES): Add i387-nat.o.
8969
7830cf6f
EZ
8970 * completer.c (gdb_completer_file_name_break_characters): Remove
8971 slash from file-name break characters.
8972 [__MSDOS__]: Special definition for DOS/Windows file names.
8973 (line_completion_function): When completing on file names, bump
8974 `p' to the first file-name constituent character of `word', before
8975 invoking the completer.
8976
f31e928c
MK
89772001-02-17 Mark Kettenis <kettenis@gnu.org>
8978
8979 * i387-nat.c: Include "i387-nat.h". Use regnum instead of regno
8980 consistently for parameter names. Fix comments accordingly.
8981 (i387_supply_register): New function.
8982 (i387_supply_fsave): Implement using i387_supply_register.
8983 * i387-nat.h: Use regnum instead of regno consistently for
8984 parameter names. Fix comments accordingly.
8985 (i387_supply_register): New prototype.
8986
d696208f
MS
89872001-02-16 Michael Snyder <msnyder@mvstp600e.cygnus.com>
8988
8989 * remote.c (build_remote_gdbarch_data): Use new TARGET_ADDR_BIT
8990 instead of TARGET_PTR_BIT (to support Harvard architectures).
8991
971429b4
AC
89922001-02-16 Andrew Cagney <ac131313@redhat.com>
8993
8994 From 2001-02-11 Paul Hilfinger <hilfingr@lisbon.int.act-europe.fr>
8995 * hpux-thread.c (hpux_thread_xfer_memory): Add mem_attrib
8996 argument to parameter list and to call in order to conform to
8997 to_xfer_memory field of struct target_ops.
8998
9ca0e47c
MC
89992001-02-12 Michael Chastain <chastain@redhat.com>
9000
da7dd56f 9001 * somsolib.c (som_solib_add_solib_objfile): Do not use
9ca0e47c
MC
9002 section relocation feature of syms_from_objfile. Do my own
9003 section relocation, offsetting each section of the som by
9004 either text_addr - text_link_addr or data_start.
9005
7d65bd2d
AC
90062001-02-16 Andrew Cagney <ac131313@redhat.com>
9007
9008 * TODO (5.1): Move ``Hardware watchpint problems'' out of 5.1.
9009
e33e9692
AC
90102001-02-16 Andrew Cagney <ac131313@redhat.com>
9011
9012 * MAINTAINERS (paper trail): Update.
9013
17dee195
MK
90142001-02-16 Mark Kettenis <kettenis@gnu.org>
9015
9016 * target.h (target_fetch_registers): Fix comment.
9017
0f6e1ba6
AC
90182001-02-15 Andrew Cagney <ac131313@redhat.com>
9019
9020 * f-exp.y: Include <ctype.h>.
9021 (parse_number): Ensure that ``i'' is always initialized.
9022
9a069618
JK
90232001-02-14 Jim Kingdon <jkingdon@engr.sgi.com>
9024
9025 * MAINTAINERS: Add myself to paper trail section.
9026
fc24370e
MS
90272001-02-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
9028
9029 * configure.in (AC_CHECK_HEADERS): Add sys/file.h.
9030 * configure, config.in: Regenerate.
9031 * corelow.c: Include <sys/file.h> if present.
9032
4b69c284
AC
90332001-02-14 Andrew Cagney <ac131313@redhat.com>
9034
9035 * inflow.c (terminal_ours_1): Initialize ``osigtou''. Only
9036 declare when have SIGTTOU.
9037
7904f322
EZ
90382001-02-14 Eli Zaretskii <eliz@is.elta.co.il>
9039
9040 * config/djgpp/fnchange.lst: Add entries for gdb/gdbtk/*/ChangeLog-*.
9041
9e798668
JK
90422001-02-12 Jim Kingdon <jkingdon@engr.sgi.com>
9043
9044 * MAINTAINERS: Update my email address.
9045
65d5a54a
EZ
90462001-02-11 Eli Zaretskii <eliz@is.elta.co.il>
9047
9048 * NEWS: Document that "info symbol" works with COFF debug info and
9049 its variants.
9050
9051 * minsyms.c (lookup_minimal_symbol_by_pc_section): Don't skip
9052 symbols whose SYMBOL_BFD_SECTION is NULL.
9053
0cff82d9 90542001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
a8079a9b
PS
9055
9056 Get rid of AIX specific PC_LOAD_SEGMENT, replace with PC_SOLIB.
9057 * xcoffsolib.c (xcoff_solib_address): Renamed from
9058 pc_load_segment_name. Return NULL if address is not in a shared
9059 library. Cleanup shared library name construction, using xasprintf.
9060 Format shared library member names consistent with format in exec.c.
9061 (solib_info): Format shared library member names consistent with
9062 format in exec.c.
9063 * config/rs6000/nm-rs6000.h: Replace PC_LOAD_SEGMENT with PC_SOLIB,
9064 using xcoff_solib_address for PC_SOLIB definition.
9065 * stack.c (print_frame): Remove PC_LOAD_SEGMENT code, no longer
9066 needed.
9067
0cff82d9 90682001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4b2e4867
PS
9069
9070 * mipsread.c (read_alphacoff_dynamic_symtab): Replace alloca calls
9071 with xmalloc calls and cleanups.
9072
0cff82d9 90732001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
d737ece6
PS
9074
9075 * rs6000-nat.c (child_xfer_memory): Add missing parameter
9076 'struct mem_attrib *' required by 2001-01-23 change.
9077
c5bb1243
JK
90782001-02-08 Jim Kingdon <jkingdon@engr.sgi.com>
9079
9080 Updates to "make TAGS":
9081 * Makefile.in (ALLDEPFILES): Remove altos-xdep.c arm-convert.s
9082 arm-xdep.c convex-tdep.c convex-xdep.c pyr-tdep.c pyr-xdep.c
9083 tahoe-tdep.c.
9084 (TAGFILES_NO_SRCDIR): Add $(SUBDIR_CLI_SRCS).
9085
c799ae7b
EZ
90862001-02-08 Eli Zaretskii <eliz@is.elta.co.il>
9087
9088 * config/djgpp/fnchange.lst: Remove extraneous "too many dots".
9089
12685e01
AC
9090Wed Feb 7 22:39:26 2001 Andrew Cagney <cagney@redhat.com>
9091
9092 From Dean Luick <luick@cray.com>:
9093 * defs.h (continuation): Remove unused global variable.
9094
7fcca85b
AC
9095Wed Feb 7 22:28:31 2001 Andrew Cagney <cagney@redhat.com>
9096
9097 * configure.tgt: Remove references to convex, pyramid, altos and
9098 tahoe.
9099 * configure.host: Ditto.
9100 * MAINTAINERS: Ditto.
9101 * NEWS: Update.
9102
9103 * tahoe-tdep.c: Delete obsolete file.
9104 * pyr-xdep.c: Ditto.
9105 * pyr-tdep.c: Ditto.
9106 * convex-tdep.c: Ditto.
9107 * convex-xdep.c: Ditto.
9108 * config/tahoe/xm-tahoe.h: Ditto.
9109 * config/tahoe/tm-tahoe.h: Ditto.
9110 * config/tahoe/tahoe.mt: Ditto.
9111 * config/tahoe/tahoe.mh: Ditto.
9112 * config/pyr/xm-pyr.h: Ditto.
9113 * config/pyr/tm-pyr.h: Ditto.
9114 * config/pyr/pyramid.mt: Ditto.
9115 * config/pyr/pyramid.mh: Ditto.
9116 * config/m68k/xm-altos.h: Ditto.
9117 * config/m68k/tm-altos.h: Ditto.
9118 * config/m68k/altos.mt: Ditto.
9119 * config/m68k/altos.mh: Ditto.
9120 * config/convex/xm-convex.h: Ditto.
9121 * config/convex/tm-convex.h: Ditto.
9122 * config/convex/convex.mt: Ditto.
9123 * config/convex/convex.mh: Ditto.
9124 * config/convex/Convex.notes: Ditto.
9125 * config/arm/xm-arm.h: Ditto.
9126 * config/arm/nm-arm.h: Ditto.
9127 * config/arm/arm.mt: Ditto.
9128 * config/arm/arm.mh: Ditto.
9129 * arm-convert.s: Ditto.
9130 * arm-xdep.c: Ditto.
9131 * altos-xdep.c: Ditto.
9132
8e65ff28
AC
9133Wed Feb 7 19:41:21 2001 Andrew Cagney <cagney@redhat.com>
9134
9135 * defs.h (internal_error, internal_verror): Add __FILE__ and
9136 __LINE__ parameter.
9137 * utils.c (internal_error, internal_verror): Update.
9138
9139 * v850-tdep.c: Update calls to internal_error.
9140 * utils.c: Ditto.
9141 * ui-out.c: Ditto.
9142 * ui-file.c: Ditto.
9143 * target.h: Ditto.
9144 * symtab.h: Ditto.
9145 * symm-nat.c: Ditto.
9146 * sparc-tdep.c: Ditto.
9147 * source.c: Ditto.
9148 * serial.c: Ditto.
9149 * rs6000-tdep.c: Ditto.
9150 * rs6000-nat.c: Ditto.
9151 * remote.c: Ditto.
9152 * remote-vx.c: Ditto.
9153 * remote-sim.c: Ditto.
9154 * remote-mips.c: Ditto.
9155 * regcache.c: Ditto.
9156 * objfiles.h: Ditto.
9157 * objfiles.c: Ditto.
9158 * mn10300-tdep.c: Ditto.
9159 * mips-tdep.c: Ditto.
9160 * maint.c: Ditto.
9161 * m68k-tdep.c: Ditto.
9162 * m3-nat.c: Ditto.
9163 * language.c: Ditto.
9164 * infptrace.c: Ditto.
9165 * inferior.h: Ditto.
9166 * infcmd.c: Ditto.
9167 * ia64-tdep.c: Ditto.
9168 * i386-tdep.c: Ditto.
9169 * i386-linux-nat.c: Ditto.
9170 * hppah-nat.c: Ditto.
9171 * go32-nat.c: Ditto.
9172 * findvar.c: Ditto.
9173 * f-lang.c: Ditto.
9174 * elfread.c: Ditto.
9175 * event-loop.c: Ditto.
9176 * dwarf2read.c: Ditto.
9177 * dsrec.c: Ditto.
9178 * d30v-tdep.c: Ditto.
9179 * d10v-tdep.c: Ditto.
9180 * cli/cli-setshow.c: Ditto.
9181 * cli/cli-script.c: Ditto.
9182 * ch-exp.c: Ditto.
9183 * breakpoint.c: Ditto.
9184 * ax-gdb.c: Ditto.
9185 * arch-utils.c: Ditto.
9186 * a29k-tdep.c: Ditto.
9187 * gdb_assert.h: Ditto.
9188 * gdbarch.sh: Ditto.
9189 * gdbarch.h, gdbarch.c: Re-generate.
9190
72290732
AC
91912001-02-07 Andrew Cagney <ac131313@redhat.com>
9192
9193 From Mark Kettenis <kettenis@gnu.org>:
9194 * event-top.h [!STOP_SIGNAL]: #include <signal.h>.
9195
a6da1910
AC
91962001-02-07 Andrew Cagney <ac131313@redhat.com>
9197
9198 * remote-sim.c (dump_mem): Cleanup printf format argument.
9199 * MAINTAINERS: Update, mn10300-elf now builds.
9200
153f9905
MK
92012001-02-07 Mark Kettenis <kettenis@gnu.org>
9202
9203 * event-top.c: Remove duplicate #include <signal.h>.
9204
f042532c
AC
92052001-02-06 Andrew Cagney <ac131313@redhat.com>
9206
9207 * sol-thread.c (restore_inferior_pid): Save the PID in a freshly
9208 allocated buffer.
9209 (save_inferior_pid): Restore the PID from that tempoary
9210 buffer. Delete the buffer.
9211 * utils.c (make_cleanup_close, do_close_cleanup): Ditto for FD.
9212
58cfabe6
AC
92132001-02-06 Andrew Cagney <ac131313@redhat.com>
9214
9215 * MAINTAINERS: Add ``The Obvious Fix Rule''.
9216
ea8a41b8
AC
92172001-02-06 Andrew Cagney <ac131313@redhat.com>
9218
9219 * MAINTAINERS: Add Michael Snyder to Solaris/SPARC list.
9220
95160752
AC
92212001-02-06 Andrew Cagney <ac131313@cygnus.com>
9222
9223 * gdbarch.sh: Include "gdb_assert.h".
9224 (struct gdbarch): Change ``nr_data'' to unsigned.
9225 (alloc_gdbarch_data, free_gdbarch_data): New functions.
9226 (gdbarch_free): Free the data-pointer vector. Use xfree to delete
9227 architecture vector.
9228 (struct gdbarch_data, struct gdbarch_data_registration): Move init
9229 method to gdbarch_data. Add free method, make index unsigned.
9230 (struct gdbarch_data_registry): Make nr unsigned.
9231 (register_gdbarch_data): Add free parameter. Store in
9232 gdbarch_data.
9233 (init_gdbarch_data): Use set_gdbarch_data.
9234 (set_gdbarch_data): New function.
9235
9236 * gdbarch.h, gdbarch.c: Re-generate.
9237
64122a8b
MS
92382001-02-06 Michael Sokolov <msokolov@ivan.Harhan.ORG>
9239
9240 * ser-unix.c (hardware_print_tty_state) [HAVE_SGTTY]: Call
9241 fprintf_filtered with correct arguments.
9242
e6cbd02a
MS
92432001-02-06 Michael Snyder <msnyder@makita.cygnus.com>
9244 Submitted by Paul Hilfinger (hilfingr@gnat.com)
9245 and Andrei Petrov (and@genesyslab.com).
9246 * findvar.c: Buffers of size MAX_REGISTER_RAW_SIZE or REGISTER_BYTES
9247 must be allocated dynamically, since these are no longer constants.
9248 * infcmd.c: Ditto.
9249 * regcache.c: Ditto.
9250 * remote.c: Ditto.
9251 * sol-thread.c: Ditto.
9252 * valops.c: Ditto.
9253 * config/sparc/sun4sol2.mh (MH_CFLAGS): Add -I/usr/include/v9, as a
9254 work-around for a missing Sun header file in solaris for sparc64.
9255
713f0374
PB
92562001-02-04 Philip Blundell <philb@gnu.org>
9257
9258 * config/arm/linux.mh (NATDEPFILES): Add proc-service.o,
9259 thread-db.o, lin-lwp.o; remove lin-thread.o, linux-thread.o.
9260 * config/arm/nm-linux.h (PREPARE_TO_PROCEED, ATTACH_LWP,
9261 GET_THREAD_SIGNALS): Define.
9262 * arm-linux-nat.c (fill_gregset): Correct type of argument.
9263 (supply_gregset): Likewise.
9264 (fill_fpregset): Likewise.
9265 (supply_fpregset): Likewise.
9266
4603e466
DT
9267Tue Feb 6 11:58:57 2001 David Taylor <taylor@redhat.com>
9268
9269 * valops.c (value_cast): If casting a scalar to a pointer, do not
9270 issue a message about truncation unless it exceeds the length of
9271 an address, not the length of a pointer. This is because what the
9272 user gives us is an address, not a pointer, and we will ultimately
9273 convert it (via ADDRESS_TO_POINTER) to a pointer, not truncate it
9274 to a pointer. This allows things like "print *(int *)0x01000234"
9275 to work without generating a misleading message on a target having
9276 two byte pointers and four byte addresses.
9277
554cb486
CF
92782001-02-05 Christopher Faylor <cgf@cygnus.com>
9279
9280 * win32-nat.c: Change PTR to void * throughout.
9281
042be3a9
C
92822001-02-05 J.T. Conklin <jtc@redback.com>
9283
9284 * signals.h: Removed.
9285 * event-top.c (#include <signal.h>): Changed from signals.h.
9286 * inflow.c: Likewise.
9287 * mac-xdep.c: Likewise.
9288 * ser-pipe.c: Likewise.
9289 * ser-tcp.c: Likewise.
9290 * standalone.c: Likewise.
9291 * top.c: Likewise.
9292 * utils.c: Likewise.
9293 * Makefile.in: Removed signals.h from dependencies.
9294
a4acd088
CF
92952001-02-05 Christopher Faylor <cgf@cygnus.com>
9296
9297 Change suggested by Dean Luick <luick@cray.com>
9298 * inferior.h (step_over_calls_kind): Remove trailing comma from
9299 last enum element.
9300 (step_over_calls): Declare as extern rather than global.
9301
3116c80a
EZ
93022001-02-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
9303
9304 * sh-tdep.c: Update copyright.
9305 (sh_extract_return_value): Rewrite.
9306 (sh3e_sh4_extract_return_value): New function.
9307 (sh_gdbarch_init): Initialize gdbarch_extract-return_value to new
9308 version of the function for sh3e and sh4 CPUs.
9309
240be855
MC
93102001-02-05 Michael Chastain <chastain@redhat.com>
9311
9312 * hppah-nat.c (child_xfer_memory): Add parameter 'struct mem_attrib *'
9313 to conform with interface change.
9314
a17b5c4e
EZ
93152001-02-04 Eli Zaretskii <eliz@is.elta.co.il>
9316
32fe0950
EZ
9317 * config/djgpp/fnchange.lst: Tweak to make consistent with the
9318 new files.
9319
619cbaf7
EZ
9320 * config/djgpp/djconfig.sh: Use explicit absolute file name when
9321 invoking `find'.
9322
cd42d3a8
EZ
9323 * ser-go32.c (dos_write) [UART_FIFO_WORKS]: Use outportsb only if
9324 UART_FIFO_WORKS is defined. Otherwise use outportb.
9325 From Francisco Pastor <fpastor.etra-id@etra.es>
9326
a17b5c4e
EZ
9327 * go32-nat.c (go32_xfer_memory): Make the argument list consistent
9328 with target.h's `to_xfer_memory' member.
9329
86ddecc5
C
93302001-02-02 J.T. Conklin <jtc@redback.com>
9331
9332 * ppc-bdm.c (#include <signal.h>): Removed.
9333 * remote-array.c: Likewise.
9334 * remote-bug.c: Likewise.
9335 * remote-e7000.c: Likewise.
9336 * remote-mips.c: Likewise.
9337 * remote-os9k.c: Likewise.
9338 * remote-st.c: Likewise.
9339 * remote-udi.c: Likewise.
9340 * remote-vx29k.c: Likewise.
9341 * remote-vx68.c: Likewise.
9342 * remote-vx960.c: Likewise.
9343 * remote-vxmips.c: Likewise.
9344 * remote-vxsparc.c: Likewise.
9345
338d7c5c
JM
93462001-02-02 John Moore <jmoore@redhat.com>
9347
9348 * remote-utils.h (sr_set_device): Changed free() to xfree() where
9349 appropriate. Also changed Copyright to include 2001.
9350 * symtab.h (obstack_chunk_free, SYMBOL_INIT_DEMANGLED_NAME): Likewise.
9351 * value.h (value_free): Likewise.
9352 * gdbarch.sh (gdbarch_free): Likewise.
9353 * gdbarch.c, gdbarch.h: Regenerated.
9354
2b5436af
JM
93552001-02-02 John Moore <jmoore@redhat.com>
9356
9357 * cli/cli-cmds.c (apropos_command): Changed occurance of free() to
338d7c5c 9358 xfree(). Also changed Copyright to include 2001.
2b5436af 9359
82467003
C
93602001-02-02 J.T. Conklin <jtc@redback.com>
9361
9362 * monitor.c (#include "gdb_wait.h"): Removed.
9363 * ocd.c: Likewise.
9364 * ppc-bdm.c: Likewise.
9365 * remote-adapt.c: Likewise.
9366 * remote-array.c: Likewise.
9367 * remote-bug.c: Likewise.
9368 * remote-e7000.c: Likewise.
9369 * remote-eb.c: Likewise.
9370 * remote-es.c: Likewise.
9371 * remote-mips.c: Likewise.
9372 * remote-mm.c: Likewise.
9373 * remote-nindy.c: Likewise.
9374 * remote-os9k.c: Likewise.
9375 * remote-rdi.c: Likewise.
9376 * remote-rdp.c: Likewise.
9377 * remote-sds.c: Likewise.
9378 * remote-sim.c: Likewise.
9379 * remote-st.c: Likewise.
9380 * remote-udi.c: Likewise.
9381 * remote-vx.c: Likewise.
9382 * remote-vx29k.c: Likewise.
9383 * remote-vx68.c: Likewise.
9384 * remote-vx960.c: Likewise.
9385 * remote-vxmips.c: Likewise.
9386 * remote-vxsparc.c: Likewise.
9387 * remote.c: Likewise.
9388 * ser-pipe.c: Likewise.
9389 * ser-unix.c: Likewise.
9390 * Makefile.in: Updated dependencies.
9391
27b82ed2
DS
93922001-01-31 David Smith <dsmith@redhat.com>
9393
9394 * event-loop.c: Change inclusion of string.h to gdb_string.h and
9395 updated the copyright notice.
9396 * ser-pipe.c: Ditto.
9397 * mi/mi-cmds.c: Ditto.
9398 * mi/mi-console.c: Ditto.
9399 * mi/mi-getopt.c: Ditto.
9400 * mi/mi-parse.c: Ditto.
9401
ab9cc815
DS
94022001-01-31 David Smith <dsmith@redhat.com>
9403
9404 * MAINTAINERS: Add David Smith to Write After Approval list.
9405
d1f4cff8
AC
9406Tue Jan 30 15:43:08 2001 Andrew Cagney <cagney@cygnus.com>
9407
9408 * cli/cli-utils.c (putchar_filtered): Move function from here.
9409 * utils.c (putchar_filtered): To here.
9410 * cli/cli-utils.h (putchar_filtered): Move declaration from here.
9411 * defs.h (putchar_filtered): To here.
9412
74c1b268
AC
9413Tue Jan 30 17:27:11 2001 Andrew Cagney <cagney@redhat.com>
9414
9415 * configure.in (AC_CHECK_FUNCS): Replace vfork test with
9416 AC_FUNC_VFORK macro.
9417 * config.in, configure: Re-generate.
9418
9419 * gdb_vfork.h: New file.
9420 * ser-pipe.c (pipe_open): Update. Include "gdb_vfork.h".
9421 * fork-child.c (fork_inferior): Ditto.
9422
4fcf66da
AC
9423Tue Jan 30 17:09:07 2001 Andrew Cagney <cagney@redhat.com>
9424
9425 * defs.h (strsave): Delete declaration.
9426 * utils.c (strsave): Delete definition.
9427 * TODO (strsave): Update
9428
9429 * mac-xdep.c (tilde_expand): Replace strsave with xstrdup.
9430 * sparcl-tdep.c (sparclite_open): Ditto.
9431 * mips-tdep.c (mips_set_processor_type_command): Ditto.
9432 (_initialize_mips_tdep): Ditto.
9433 * solib.c (solib_open): Ditto.
9434 * symfile.c (add_filename_language): Ditto.
9435 (set_ext_lang_command): Ditto.
9436 * source.c (init_source_path): Ditto.
9437 (mod_path): Ditto.
9438 * sh3-rom.c (sh3_open): Ditto.
9439 (sh3e_open): Ditto.
9440 * serial.c (serial_open): Ditto.
9441 * remote-mips.c (common_open): Ditto.
9442 * monitor.c (monitor_open): Ditto.
9443 * m32r-rom.c (m32r_upload_command): Ditto.
9444 * infcmd.c (path_command): Ditto.
9445 * f-exp.y (parse_number): Ditto.
9446 * breakpoint.c (create_longjmp_breakpoint): Ditto.
9447 (create_thread_event_breakpoint): Ditto.
9448 * arc-tdep.c (arc_set_cpu_type_command): Ditto.
9449 (_initialize_arc_tdep): Ditto.
9450
e191e0ab
AC
9451Tue Jan 30 15:14:26 2001 Andrew Cagney <cagney@skil>
9452
9453 * cli/cli-script.c (define_command): Check for a bad hook value in
9454 switch statement.
9455
10214f55
C
94562001-01-30 J.T. Conklin <jtc@redback.com>
9457
9458 * configure/sh/embed.mt: New file.
9459 * configure/sh/linux.mt: New file.
9460 * configure/sh/sh.mt: Removed.
9461 * configure.tgt (sh-*-hms,sh-*-coff*,sh-*-elf*,sh-*-linux): New targets.
9462 (sh-*-*): Removed.
9463
c9049fc9
MC
94642001-01-29 Michael Chastain <chastain@redhat.com>
9465
a4f30b31 9466 * symtab.c (lookup_block_symbol): Use 'namespace' parameter in
c9049fc9
MC
9467 symbol comparisons in binary search.
9468
0cff82d9 94692001-01-27 Christopher Faylor <cgf@cygnus.com>
aea02b6b
CF
9470
9471 * win32-nat.c (child_xfer_memory): Add missing argument required by
9472 2001-01-23 change.
9473
e6e0bfab
MK
94742001-01-27 Mark Kettenis <kettenis@gnu.org>
9475
9476 * ui-out.c (do_list_end): New function.
9477 (make_cleanup_ui_out_list_end): New function.
9478 * ui-out.h: Provide prototype for make_cleanup_ui_out_list_end.
9479 * stack.c (print_frame) [UI_OUT]: Call
9480 make_cleanup_ui_out_list_end to make sure we mark the end of the
9481 list if we do a non-local exit. At the end of the function,
9482 instead of calling ui_out_list_end directly, let do_cleanups
9483 handle it.
9484
1adeb98a
FN
94852001-01-26 Fernando Nasser <fnasser@redhat.com>
9486
9487 Fix double parsing of filenames passed as command line arguments
9488 to GDB (causes weird handling of escape characters).
9489 Also, remove dependencies on the CLI from libgdb.
9490 * call-cmds.h: Remove declaration of exec_file_command().
9491 * gdbcore.h: Remove declaration of exec_file_command().
9492 Add declarations for exec_open() and exec_file_clear().
9493 * symfile.h: Add declarations for symbol_file_add_main() and
9494 symbol_file_clear().
9495 * exec.c (exec_open): New function. Implements to_open for exec
9496 targets.
9497 (exec_file_clear): New function. Makes GDB forget about a previously
9498 specified executable file.
9499 (exec_file_attach): Move parsing of arguments from here ...
9500 (exec_file_command): ... to here.
9501 (init_exec_ops): Use exec_open(), not exec_file_command() to
9502 implement to_open for exec targets.
9503 * symfile.c (symbol_file_add_main): New function. Call symbol_file_add()
9504 with default values. Used when the file name has already been parsed.
9505 (symbol_file_clear): New function. Makes GDB forget about previously
9506 read symbols.
9507 (symbol_file_command): Call the above function instead of inline code.
9508 * main.c: Include "symfile.h" and "gdbcore.h" instead of the deprecated
9509 "call-cmds.h".
9510 (captured_main): Call exec_file_attach() and symbol_file_add_main()
9511 instead of exec_file_command() and symbol_file_command().
9512 (captured_main): Add comment.
9513 * corefile.c: Include "symfile.h".
9514 (core_file_command): Call symbol_file_add_main() instead of
9515 symbol_file_command().
9516 (reopen_exec_file): Call exec_open() instead of exec_file_command().
9517 * infcmd.c: Include "symfile.h".
9518 (attach_command): Call symbol_file_add_main() instead of
9519 symbol_file_command().
9520 * infrun.c: Remove comment about the inclusion of "symfile.h",
9521 not any longer appropriate.
9522 (follow_exec): Call symbol_file_add_main() instead of
9523 symbol_file_command().
9524 * remote-es.c: Include "symfile.h".
9525 (es1800_load): Call symbol_file_add_main() instead of
9526 symbol_file_command().
9527 * remote-vx.c: Remove comment about the inclusion of "symfile.h",
9528 not any longer appropriate.
9529 (vx-wait): Call symbol_file_add_main() instead of
9530 symbol_file_command().
9531 * solib-svr4.c (open_symbol_file_object): Call symbol_file_add_main()
9532 instead of symbol_file_command().
9533 * v850ice.c (ice_file): Call exec_open(), exec_file_attach() and
9534 symbol_file_add_main() instead of exec_file_command() and
9535 symbol_file_command().
9536 * Makefile.in: Update dependencies.
9537
5b616ba1
JH
95382001-01-26 Jeff Holcomb <jeffh@redhat.com>
9539
9540 * remote-udi.c (udi_open): Change strdup to xstrdup.
9541 * thread.c (thread_apply_all_command): Change strdup to xstrdup.
9542 Update copyright message.
9543 * varobj.c (delete_variable_1): Likewise.
9544
9545 * gdb_string.h: Remove declaration of strdup. Update copyright
9546 message.
9547 * config/xm-mpw.h: Likewise.
9548 * config/i386/xm-i386mach.h: Likewise.
9549 * config/m68k/xm-apollo68b.h: Likewise.
9550 * config/m68k/xm-hp300bsd.h: Likewise.
9551 * config/rs6000/xm-rs6000.h: Likewise.
9552 * config/vax/xm-vaxult.h: Remove declaration of strdup.
9553 * config/vax/xm-vaxult2.h: Likewise.
9554
b91d87cf
JH
95552001-01-26 Jeff Holcomb <jeffh@redhat.com>
9556
9557 * MAINTAINERS: Add Jeff Holcomb to Write After Approval list.
9558
873406a6
C
95592001-01-25 J.T. Conklin <jtc@redback.com>
9560
9561 * target.c (target_xfer_memory_partial): Return -1 on failure due
9562 to invalid access mode attribute.
9563
0613c401
CF
95642001-01-25 Christopher Faylor <cgf@cygnus.com>
9565
9566 * win32-nat.c (_initialize_core_win32): Prototype correctly.
9567
efd59e3f
MK
95682001-01-25 Mark Kettenis <kettenis@gnu.org>
9569
9570 * config/alpha/tm-fbsd.h: Update copyright.
9571 (USE_STRUCT_CONVENTION): Define in terms of
9572 alphabsd_use_struct_convention.
9573 * config/alpha/fbsd.mt (TDEPFILES): Add alphafbsd-tdep.c.
9574 * alphafbsd-tdep.c: New file.
9575
388e1ff2
FN
95762001-01-24 Fernando Nasser <fnasser@redhat.com>
9577
9578 * top.c (print_gdb_version): Update Copyright year.
9579
f4d650ec
C
95802001-01-24 J.T. Conklin <jtc@redback.com>
9581
9582 * dcache.c (dcache_write_line): Fix typo.
9583
9584 * memattr.c (delete_mem_region): Replace free() with xfree().
9585 (mem_number): Add explicit type.
9586
9587 * sol-thread.c (sol_thread_xfer_memory): Add attrib argument.
9588 (rw_common): Likewise.
9589
07091751
FN
95902001-01-24 Fernando Nasser <fnasser@redhat.com>
9591
9592 * infcmd.c (get_inferior_args, set_inferior_args): Accessor functions
9593 for the inferior program arguments.
9594 (run_command, run_no_args_command, init_infcmd)): Use accessor
9595 functions to set the inferior program arguments.
9596 * inferior.h: Add definitions to the accessor functions above.
9597
090c42a4
JB
95982001-01-23 Jim Blandy <jimb@redhat.com>
9599
9600 * dwarf2read.c (read_tag_const_type, read_tag_volatile_type):
9601 Implement these correctly, using make_cv_type.
9602
f29d9b6d 96032001-01-23 J.T. Conklin <jtc@redback.com>
29e57380
C
9604
9605 * exec.c (xfer_memory): Add attrib argument.
9606 * infptrace.c (child_xfer_memory): Likewise.
e5da8f38 9607 * lin-lwp.c (lin_lwp_xfer_memory): Likewise.
29e57380
C
9608 * monitor.c (monitor_xfer_memory): Likewise.
9609 * remote-adapt.c (adapt_xfer_inferior_memory): Likewise.
9610 * remote-array.c (array_xfer_memory): Likewise.
9611 * remote-bug.c (bug_xfer_memory): Likewise.
9612 * remote-e7000.c (e7000_xfer_inferior_memory): Likewise.
9613 * remote-eb.c (eb_xfer_inferior_memory): Likewise.
9614 * remote-es.c (es1800_xfer_inferior_memory): Likewise.
9615 * remote-mips.c (mips_xfer_memory): Likewise.
9616 * remote-mm.c (mm_xfer_inferior_memory): Likewise.
9617 * remote-nindy.c (nindy_xfer_inferior_memory): Likewise.
9618 * remote-os9k.c (rombug_xfer_inferior_memory): Likewise.
9619 * remote-rdi.c (arm_rdi_xfer_memory): Likewise.
9620 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Likewise.
9621 * remote-sds.c (sds_xfer_memory): Likewise.
9622 * remote-sim.c (gdbsim_xfer_inferior_memory): Likewise.
9623 * remote-st.c (st2000_xfer_inferior_memory): Likewise.
9624 * remote-udi.c (udi_xfer_inferior_memory): Likewise.
9625 * remote-vx.c (vx_xfer_memory): Likewise.
9626 * remote.c (remote_xfer_memory): Likewise.
9627 * target.c (debug_to_xfer_memory, do_xfer_memory): Likewise.
9628 * target.h (child_xfer_memory, do_xfer_memory, xfer_memory): Likewise.
e5da8f38 9629 * thread-db.c (thread_db_xfer_memory): Likewise.
29e57380
C
9630
9631 * target.h (#include "memattr.h"): Added.
9632 (target_ops.to_xfer_memory): Add attrib argument.
9633
9634 * wince.c (_initialize_inftarg): Removed call to set_dcache_state.
9635 * dcache.h (set_dcache_state): Removed declaration.
9636 * dcache.c (set_dcache_state): Removed definition
9637
9638 * dcache.c: Update module comment, as dcache is now enabled and
9639 disabled with memory region attributes instead of by the global
9640 variable "remotecache". Add comment describing the interaction
9641 between dcache and memory region attributes.
9642 (dcache_xfer_memory): Add comment describing benefits of moving
9643 cache writeback to a higher level.
9644 (dcache_struct): Removed cache_has_stuff field. This was used to
9645 record whether the cache had been accessed in order to invalidate
9646 it when it was disabled. However, this is not needed because the
9647 cache is write through and the code that enables, disables, and
9648 deletes memory regions invalidate the cache. Add comment which
9649 suggests that we could be more selective and only invalidate those
9650 cache lines containing data from those memory regions.
9651 (dcache_invalidate): Updated.
9652 (dcache_xfer_memory): Updated.
f29d9b6d 9653
29e57380
C
9654 (dcache_alloc): Don't abort() if dcache_enabled_p is clear.
9655 (dcache_xfer_memory): Removed code that called do_xfer_memory() to
9656 perform a uncached transfer if dcache_enabled_p was clear. This
9657 function is now only called if caching is enabled for the memory
9658 region.
9659 (dcache_info): Always print cache info.
9660
9661 * target.c (do_xfer_memory): Add attrib argument.
9662 (target_xfer_memory, target_xfer_memory_partial): Break transfer
9663 into chunks defined by memory regions, pass region attributes to
9664 do_xfer_memory().
9665 * dcache.c (dcache_read_line, dcache_write_line): Likewise.
9666
9667 * Makefile.in (SFILES): Add memattr.c.
9668 (COMMON_OBS): Add memattr.o.
9669 (dcache.o): Add target.h to dependencies.
9670 * memattr.c: New file.
9671 * memattr.h: Likewise.
9672
f29d9b6d
C
9673 * config/m32r/m32r.mt (GDBSERVER_LIBS): Added ../../intl/libintl.a.
9674 * config/mips/vr5000.mt (GDBSERVER_LIBS): Likewise.
9675 * config/tic80/tic80.mt (GDBSERVER_LIBS): Likewise.
9676 * gdbserver/low-sim.c (#include "defs.h"): Removed.
9677 (mygeneric_load): Rename from generic_load.
9678
9679 * gdbserver/low-hppabsd.c (#include "server.h"): Added.
9680 (#include "defs.h"): Removed.
9681 (inferior_pid, perror_with_name): Remove declarations.
9682 * gdbserver/low-linux.c: Likewise.
9683 * gdbserver/low-nbsd.c: Likewise.
9684 * gdbserver/low-sparc.c: Likewise.
9685 * gdbserver/low-sun3.c: Likewise.
9686
9687 * i386-stub.c: Re-indent.
9688 * m68k-stub.c: Re-indent.
9689
58d5518e
ND
96902001-01-22 Nicholas Duffek <nsd@redhat.com>
9691
9692 * gdbarch.sh (PARM_BOUNDARY): Define.
9693 * gdbarch.c: Regenerate.
9694 * gdbarch.h: Regenerate.
9695
f6427ade
C
96962001-01-22 J.T. Conklin <jtc@redback.com>
9697
9698 * ns32k-tdep.c: #include "frame.h"
9699 * config/ns32k/tm-umax.h (FRAME_FIND_SAVED_REGS): Restore. It
9700 appears to have been inadvertantly removed sometime in May 1999.
9701
9702 * Revert 2000-11-09 changes where shared library objects were
9703 moved from NATDEPFILES to TDEPFILES on NetBSD targets. While
9704 we'd like to be able to debug dynamically linked executables,
9705 this makes it impossible to build a cross debugger on a many
9706 hosts.
9707
9708 * config/i386/nbsd.mt: Remove solib.o, solib-svr4.o from TDEPFILES.
9709 * config/i386/nbsdelf.mt: Likewise.
9710 * config/m68k/nbsd.mt: Likewise.
9711 * config/ns32k/nbsd.mt: Likewise.
9712 * config/powerpc/nbsd.mt: Likewise.
9713 * config/sparc/nbsd.mt: Likewise.
9714 * config/sparc/nbsdelf.mt: Likewise.
9715 * config/i386/nbsd.mh: Add solib.o, solib-svr4.o to NATDEPFILES.
9716 * config/i386/nbsdelf.mh: Likewise.
9717 * config/m68k/nbsd.mh: Likewise.
9718 * config/ns32k/nbsd.mh: Likewise.
9719 * config/powerpc/nbsd.mh: Likewise.
9720 * config/sparc/nbsd.mh: Likewise.
9721
8052a17a
JM
97222001-01-19 Jason Merrill <jason@redhat.com>
9723
9724 * dbxread.c (read_ofile_symtab): Stay with AUTO_DEMANGLING for G++.
9725 (process_one_symbol): Likewise.
9726 * dwarfread.c (handle_producer): Likewise.
9727
21a6f6bb
AC
9728Thu Jan 18 12:08:57 2001 Andrew Cagney <cagney@b1.cygnus.com>
9729
9730 * configure.in (build_warnings): Disable -Wuninitialized until GDB
9731 compiles with -Wuninitialized,-Werror.
9732 * configure: Regenerate.
9733
9734 * MAINTAINERS: Add list of buildable targets.
9735
494b7ec9
AC
9736Thu Jan 18 12:48:04 2001 Andrew Cagney <cagney@b1.cygnus.com>
9737
9738 * defs.h (STRCMP): Delete macro.
9739
9740 * objfiles.c (objfile_relocate): Replace STRCMP with call to
9741 strcmp.
9742 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9743 * symfile.c (compare_symbols): Ditto.
9744 * standalone.c (open): Ditto.
9745 * remote-es.c (verify_break): Ditto.
9746 * cli/cli-decode.c (add_cmd, add_show_from_set): Ditto.
9747
9748 * symfile.c (compare_psymbols): Delete comment refering to STRCMP.
9749
8038e1e2
AC
9750Thu Jan 18 12:25:06 2001 Andrew Cagney <cagney@b1.cygnus.com>
9751
9752 * varobj.c (FREEIF): Delete macro.
9753 (varobj_set_value, free_variable): Replace FREEIF with ``xfree''
9754 call.
9755
ea8d0b28
NC
97562001-01-18 Nick Clifton <nickc@redhat.com>
9757
9758 * arc-tdep.c (arc_cpu_type_table): Add new arc core numbers.
9759 (arc_print_insn): No bfd available, so pass NULL to
9760 arc_get_disassembler.
9761
5dbd9048
JB
97622001-01-09 James Ingham <jingham@inghji.apple.com>
9763
9764 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux to lookup
9765 a mangled symbol rather than recursing into lookup_symbol, since
9766 this will just re-unmangle the name & call lookup_symbol_aux -
9767 leading to an infinite recursion.
9768
28ae27b1
MK
97692001-01-18 Mark Kettenis <kettenis@gnu.org>
9770
9771 * infcmd.c (print_return_value): Restore another space lost by
9772 switch to UIOUT. ``$NN='' should be ``$NN =''.
9773
6ab3a9c9
AC
9774Fri Jan 19 02:31:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
9775
9776 * target.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
9777 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Wrap macro
9778 definition in parenthesis.
9779
ad6525fc
AC
9780Fri Jan 19 02:13:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
9781
9782 From 2000-10-27 Mark Salter <msalter@redhat.com>:
9783 * remote.c (remote_remove_hw_breakpoint): Add 'len' field to Z
9784 packet.
9785 (remote_insert_hw_breakpoint): Ditto.
9786
6259c7e2
C
97872001-01-17 J.T. Conklin <jtc@redback.com>
9788
9789 * config/m68k/tm-nbsd.h (USE_STRUCT_CONVENTION): Define.
9c95b27f 9790 (BPT_VECTOR, REMOTE_BPT_VECTOR): Change to 0xf.
6259c7e2
C
9791 * config/m68k/nbsd.mt (TDEPFILES): Add m68knbsd-tdep.o.
9792 * m68knbsd-tdep.c: New file.
9793
9794 * i386nbsd-tdep.c: Remove #if 0'd out #includes.
9795
9796 * m68knbsd-nat.c: #include gdbcore.h.
9797
abdcb2a5
AC
9798Wed Jan 17 09:41:58 2001 Andrew Cagney <cagney@b1.cygnus.com>
9799
9800 * MAINTAINERS: Add J.T. Conklin to Blanket Write Privs.
9801
e7a8479f
MS
98022001-01-16 Michael Snyder <msnyder@cleaver.cygnus.com>
9803
aaeb7efa
MS
9804 * procfs.c (procfs_stopped_by_watchpoint): Don't die if process
9805 goes away -- just return false (ie. not stopped by watchpoint).
e7a8479f
MS
9806 * source.c (openp): Fix typo in comment.
9807
7036d6ce
ND
98082001-01-12 Nicholas Duffek <nsd@redhat.com>
9809
9810 * blockframe.c (generic_get_saved_register): Spelling fix.
9811 * frame.h (FRAME_FP): Spelling fix.
9812
9549d9c1
AC
9813Fri Jan 12 18:29:46 2001 Andrew Cagney <cagney@b1.cygnus.com>
9814
9815 * infcmd.c (print_return_value): Restore space lost by switch to
9816 UIOUT. ``$NN='' should be ``$NN =''.
9817
7302a204
ND
98182001-01-08 Nicholas Duffek <nsd@redhat.com>
9819
9820 * regcache.c (set_register_cached, register_buffer,
9821 real_register, pseudo_register fetch_register, store_register):
9822 New functions.
9823 (register_changed, read_relative_register_raw_bytes_for_frame,
9824 registers_changed, registers_fetched, read_register_bytes,
9825 read_register_gen, write_register_gen, read_register,
9826 read_signed_register, write_register, supply_register): Replace
9827 register_valid[] with register_cached() and
9828 set_register_cached().
9829 (read_register_bytes, read_register_gen, write_register_gen,
9830 read_register, read_signed_register, write_register,
9831 supply_register): Replace registers[] with register_buffer().
9832 (read_register_bytes, read_register_gen, read_register,
9833 read_signed_register): Call fetch_register().
9834 (write_register_gen, write_register): Call real_register() and
9835 store_register().
9836 (write_register_bytes): Call store_register().
9837 * value.h (set_register_cached, register_buffer): Prototype.
9838 * remote.c (remote_fetch_registers): Allocate regs[] with a
9839 run-time size. Replace register_valid[] with
9840 set_register_cached().
9841 (store_register_using_P, remote_store_registers): Replace
9842 registers[] with register_buffer().
9843
5ebd2499
ND
98442001-01-08 Nicholas Duffek <nsd@redhat.com>
9845
9846 * regcache.c: Change "write-back" comment to "write-through".
9847 Change "regno" to "regnum".
9848 (read_register, read_signed_register): Remove "raw" from return
9849 value description.
9850 (supply_register): Spelling fix.
9851 * value.h: Change "regno" to "regnum".
9852
1302fd5e
FN
98532001-01-08 Fernando Nasser <fnasser@redhat.com>
9854
9855 * Makefile.in (install-gdbtk): Add .itcl files to the list of files
9856 to be installed.
9857
9dcb560c
MS
98582001-01-04 Michael Snyder <msnyder@mvstp600e.cygnus.com>
9859
9860 * mips-tdep.c (mips_coerce_float_to_double): Fix typo in comment.
9861
0e2fb98e
ND
98622001-01-04 Nicholas Duffek <nsd@redhat.com>
9863
9864 * valops.c (VALUE_SUBSTRING_START): Delete.
9865
12cf3f1b
ND
98662001-01-04 Nicholas Duffek <nsd@redhat.com>
9867
9868 * Makefile.in (SUBDIR_CLI_OBS): Add cli/cli-utils.o.
9869 (SUBDIR_CLI_SRCS): Add cli/cli-utils.c.
9870 (cli_utils_h): New variable.
9871 (cli/cli-utils.o): New rule.
9872 * cli/cli-utils.c: New file.
9873 * cli/cli-utils.h: New file.
9874
cc533b9d
ND
98752001-01-04 Nicholas Duffek <nsd@redhat.com>
9876
9877 * config/i386/tm-i386.h (REGISTER_CONVERT_TO_VIRTUAL,
9878 REGISTER_CONVERT_TO_RAW): Delete trailing semicolon.
9879
ad2a4d09
C
98802001-01-03 J.T. Conklin <jtc@redback.com>
9881
9882 * alphabsd-nat.c, i386-linux-nat.c, i386bsd-nat.c: Fix typo in
9883 comment.
9884
8140e7ac
MS
98852001-01-02 Michael Snyder <msnyder@cleaver.cygnus.com>
9886
3116c80a
EZ
9887 * sh-tdep.c (sh_default_store_return_value): Allow for small return type.
9888 (sh3e_sh4_store_return_value): Call sh_default_store_return_value for
d19b71be 9889 non-float types.
779e876b 9890 * sparc-tdep.c (sparc_frame_chain): Fix typo in comment.
72e22353
MS
9891 Update copyright notice.
9892
15f33b66 9893For older changes see ChangeLog-2000
c906108c
SS
9894\f
9895Local Variables:
9896mode: change-log
9897left-margin: 8
9898fill-column: 74
9899version-control: never
9900End:
This page took 0.636923 seconds and 4 git commands to generate.