]> Git Repo - binutils.git/blame - gdb/ChangeLog
2002-12-05 David Carlton <[email protected]>
[binutils.git] / gdb / ChangeLog
CommitLineData
f61e8913
DC
12002-12-05 David Carlton <[email protected]>
2
3 * symtab.c (lookup_symbol_aux_block): New function.
4 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
5
1e9f55d0
AC
62002-12-05 Andrew Cagney <[email protected]>
7
8 * gdbarch.sh: Dump the predicate function and macro values.
9 (read): Print error on standard error.
10 * gdbarch.c: Regenerate.
11
d1973055
KB
122002-12-04 Kevin Buettner <[email protected]>
13
14 * Makefile.in (mips_tdep_h): Define.
15 (mips-tdep.o): Add mips_tdep_h to dependency list.
16 * mips-tdep.h: New file.
17 * mips-tdep.c (mips-tdep.h): Include.
18 (enum mips_abi): Move to mips-tdep.h.
19 (mips_abi): New function.
20
f1253c7b
DC
212002-12-04 David Carlton <[email protected]>
22
23 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
24
406bc4de
DC
252002-12-04 David Carlton <[email protected]>
26
27 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
28 function.
29 (lookup_symbol_aux_minsyms): New function.
30
2a3750c5
JB
312002-12-04 J. Brobecker <[email protected]>
32
33 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
34
961d8652
JB
352002-12-04 J. Brobecker <[email protected]>
36
37 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
38 which is an obsolete macro name.
39
38c52d5a
DJ
402002-12-04 Daniel Jacobowitz <[email protected]>
41
42 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
43 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
44
d8ef46f5
DJ
452002-12-03 H.J. Lu ([email protected])
46
47 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
48 (create_breakpoints): Make sure the addr_string field is not
49 NULL.
50
02ae7771
AC
512002-12-03 Andrew Cagney <[email protected]>
52
53 * sparc-nat.c (fetch_inferior_registers)
54 (store_inferior_registers): Add comment on problem of LWP vs
55 threads.
56
57 From 2002-11-21 Daniel Jacobowitz <[email protected]>
58 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
59 (lin_lwp_store_registers): Remove.
60 (init_lin_lwp_ops): Use fetch_inferior_registers
61 and store_inferior_registers directly.
62 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
63 (store_inferior_registers): Likewise.
64 Fix PR gdb/725.
65
7a424e99
AC
662002-12-03 Andrew Cagney <[email protected]>
67
68 * frame.h (get_frame_id): Convert to a function.
69 (null_frame_id, frame_id_p): Declare.
70 (frame_id_eq, frame_id_inner): Declare.
71 (frame_id_build): New function.
72 * frame.c (get_frame_id): Update. Use null_frame_id.
73 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
74 frame_id_inner.
75 (null_frame_id, frame_id_p): Define.
76 (frame_id_eq, frame_id_inner): Define.
77 (frame_id_build): New function.
78 * varobj.c (varobj_create): Update.
79 (varobj_update): Update.
80 * valops.c (value_assign): Update.
81 (new_root_variable): Update.
82 * infrun.c (save_inferior_status): Update.
83 * breakpoint.c (watch_command_1): Update.
84
891c7f5f
JB
852002-12-03 J. Brobecker <[email protected]>
86
87 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
88 (SNAP2): Likewise.
89
144da3c1
AC
902002-12-03 Andrew Cagney <[email protected]>
91
46248966
AC
92 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
93 patch.
94
144da3c1
AC
95 * PROBLEMS: Mention PR gdb/725.
96
03c6228e
AS
972002-12-03 Andreas Schwab <[email protected]>
98
99 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
100
36e53c63
AF
1012002-12-02 Adam Fedor <[email protected]>
102 Klee Dienes <[email protected]>
103
104 * objc-lang.c (objc_printstr): Add width arg to match
105 printstr prototype.
106 (compare_selectors): Add 'const' to arg types.
107 (compare_classes): Likewise.
108 (find_imps): Cast msym pointer to avoid compiler warning.
109 (print_object_command): Validate the address before
110 passing it to the print routine.
111 (find_objc_msgcall_submethod): Change function argument to
112 return an int.
113 * objc-lang.h: Add 'extern' to all function declarations.
114 (value_nsstring): Add declaration.
115
504d5c7e
JB
1162002-12-02 J. Brobecker <[email protected]>
117
118 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
119 Fixes a build failure on HP/UX.
120
121 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
122 failure on HP/UX.
123 (hpread_has_name): Advance declaration to avoid a compilation warning.
124 (pst_syms_count): Add missing variable type. By change, the compiler
125 was defaulting to int, which seems a good choice. Fixes a compilation
126 warning.
127 (pst_syms_size): Likewise.
128
59623e27
JB
1292002-12-02 J. Brobecker <[email protected]>
130
131 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
132 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
133 later to set the proper gdbarch methods depending on the osabi.
134 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
135
a09a320d
JB
1362002-12-02 J. Brobecker <[email protected]>
137
138 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
139 * osabi.c (gdb_osabi_name): Add strings images for the two new
140 enum values.
141 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
142
8a81a99e
AC
1432002-12-02 Andrew Cagney <[email protected]>
144
145 * MAINTAINERS (Java): Global maintainers are responible for Java.
146 (Past Maintainers): Mention both Anthony Green and Per Bothner as
147 part Java maintainers.
148
7af35dad
JB
1492002-12-02 J. Brobecker <[email protected]>
150
151 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
152 Fixes a compilation failure on AiX.
153
f4ede9bc
JB
1542002-12-02 J. Brobecker <[email protected]>
155
156 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
157 why aix-thread.o is not listed.
158
ae45cd16
AC
1592002-12-01 Andrew Cagney <[email protected]>
160
161 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
162 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
163 * gdbarch.h, gdbarch.c: Re-generate.
164 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
165 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
166 * config/pa/tm-hppa.h, frame.h: Update.
167 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
168 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
169 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
170 * cris-tdep.c, alpha-tdep.c: Update.
171 * frame.c (set_unwind_by_pc, create_new_frame): Use either
172 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
173 (get_prev_frame): Ditto.
174
020cc13c
AC
1752002-11-30 Andrew Cagney <[email protected]>
176
177 * exec.c (xfer_memory): Replace boolean with int.
178 * p-exp.y: Use 0 instead of false.
179 * corelow.c (gdb_check_format): Change return type to int from
180 boolean.
181 * utils.c: Don't include <curses.h> or <term.h> first.
182
1d9b2aa8
SC
1832002-11-29 Stephane Carrez <[email protected]>
184
185 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
186 (m68hc11_register_byte): Remove.
187 (m68hc11_gdbarch_init): Don't set the above.
188
a193e397
AC
1892002-11-29 Andrew Cagney <[email protected]>
190
191 * remote-mips.c (mips_initialize): Force a selected frame rebuild
192 by calling get_selected_frame.
193 * ocd.c (ocd_start_remote): Use get_selected frame instead of
194 set_current_frame, create_new_frame, select_frame and
195 get_current_frame.
196 * remote-e7000.c (e7000_start_remote): Ditto.
197 * remote-mips.c (common_open): Ditto
198 * remote-rdp.c (remote_rdp_open): Ditto.
199
b5fc49aa
AS
2002002-11-29 Andreas Schwab <[email protected]>
201
202 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
203 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
204 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
205 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
206 read_memory_unsigned_integer instead of read_memory_integer when
207 dealing with addresses and instruction opcodes.
208 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
209 (m68k_linux_frame_saved_pc): Likewise.
210
6e7f8b9c
AC
2112002-11-29 Andrew Cagney <[email protected]>
212
213 * stack.c (selected_frame, select_frame): Move from here ...
214 * frame.c (selected_frame, select_frame): ... to here. Include
215 "language.h".
216 * Makefile.in (frame.o): Update dependencies.
217 * frame.c (get_selected_frame): New function.
218 * frame.h (get_selected_frame): Declare.
219 (deprecated_selected_frame): Rename selected_frame.
220 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
221 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
222 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
223 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
224 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
225 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
226 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
227 * z8k-tdep.c, cli/cli-cmds.c: Update.
228
805e2818
AC
2292002-11-29 Andrew Cagney <[email protected]>
230
231 * frame.h (get_selected_block): Add comments.
232
1058bca7
AC
2332002-11-28 Andrew Cagney <[email protected]>
234
235 * frame.c (pc_notcurrent): New function.
236 (find_frame_sal): New function.
237 * frame.h (find_frame_sal): Declare.
238 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
239 * stack.c (print_frame_info_base): Use find_frame_sal instead of
240 find_pc_line.
1058bca7
AC
241 (frame_info): Ditto.
242 * ada-lang.c (find_printable_frame): Ditto.
243
d92419e5
JB
2442002-11-28 J. Brobecker <[email protected]>
245
246 * configure.in: Check that the pthdebug library is recent enough
247 before enabling thread support on native AiX.
248 * configure: Regenerate.
249
250 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
251 from the list of object files as it is now appended by configure
252 if thread support is enabled.
253 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
254 if thread support is enabled.
255
8c69fc49
AC
2562002-11-28 Andrew Cagney <[email protected]>
257
258 * stack.c (get_selected_block): In-line get_current_block.
259 * frame.h (get_current_block): Delete declaration.
260 * blockframe.c (get_current_block): Delete function.
261
07555a72
AC
2622002-11-28 Andrew Cagney <[email protected]>
263
264 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
265 USE_GENERIC_DUMMY_FRAMES.
266 * gdbarch.h, gdbarch.c: Regenerate.
267 * valops.c, frame.c: Update.
268 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
269 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
270 * config/pa/tm-hppa.h, blockframe.c: Update.
271 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
272 * m68k-tdep.c, alpha-tdep.c: Ditto.
273
274 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
275 * mips-tdep.c: Ditto.
276
b99fa2d2
AC
2772002-11-27 Andrew Cagney <[email protected]>
278
279 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
280 (USE_GENERIC_DUMMY_FRAMES): Default to true.
281 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
282 * gdbarch.c, gdbarch.h: Re-generate.
283 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
284 (CALL_DUMMY_LOCATION): Delete macro definition.
285 (PC_IN_CALL_DUMMY): Delete macro definitions.
286
287 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
288 default is already generic_pc_in_call_dummy.
289 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
290 * v850-tdep.c (v850_gdbarch_init): Ditto.
291 * sh-tdep.c (sh_gdbarch_init): Ditto.
292 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
293 * mips-tdep.c (mips_gdbarch_init): Ditto.
294 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
295 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
296 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
297 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
298 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
299 * avr-tdep.c (avr_gdbarch_init): Ditto.
300
301 * arm-tdep.c (arm_gdbarch_init): Do not set
302 use_generic_dummy_frames, default is already 1.
303 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
304 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
305 * v850-tdep.c (v850_gdbarch_init): Ditto.
306 * sh-tdep.c (sh_gdbarch_init): Ditto.
307 * s390-tdep.c (s390_gdbarch_init): Ditto.
308 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
309 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
310 * mips-tdep.c (mips_gdbarch_init): Ditto.
311 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
312 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
313 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
314 * i386-tdep.c (i386_gdbarch_init): Ditto.
315 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
316 * frv-tdep.c (frv_gdbarch_init): Ditto.
317 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
318 * cris-tdep.c (cris_gdbarch_init): Ditto.
319 * avr-tdep.c (avr_gdbarch_init): Ditto.
320
321 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
322 call_dummy_location, default is already AT_ENTRY_POINT.
323 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
324 * v850-tdep.c (v850_gdbarch_init): Ditto.
325 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
326 * sh-tdep.c (sh_gdbarch_init): Ditto.
327 * s390-tdep.c (s390_gdbarch_init): Ditto.
328 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
329 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
330 * mips-tdep.c (mips_gdbarch_init): Ditto.
331 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
332 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
333 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
334 * i386-tdep.c (i386_gdbarch_init): Ditto.
335 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
336 * frv-tdep.c (frv_gdbarch_init): Ditto.
337 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
338 * cris-tdep.c (cris_gdbarch_init): Ditto.
339 * avr-tdep.c (avr_gdbarch_init): Ditto.
340 * arm-tdep.c (arm_gdbarch_init): Ditto.
341 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
342
abc0af47
AC
3432002-11-28 Andrew Cagney <[email protected]>
344
345 * frame.h: Update comments on set_current_frame, create_new_frame,
346 flush_cached_frames, reinit_frame_cache, select_frame and
347 selected_frame.
348
ed5cedc5
AC
3492002-11-27 Andrew Cagney <[email protected]>
350
351 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
352 deprecated pc_in_call_dummy function.
353 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
354 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
355 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
356 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
357 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
358
b2a1bd4f
MH
3592002-11-26 Martin M. Hunt <[email protected]>
360
361 * Makefile.in: Remove Tix dependencies.
362 * acinclude.m4: Ditto.
363 * aclocal.m4: Ditto.
364 * configure.in: Ditto.
365 * configure: Regenerated.
366
f09cffaa
AC
3672002-11-26 Andrew Cagney <[email protected]>
368
369 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
370 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
371 * gdbarch.c: Re-generate.
372
e92b0cc9
AC
3732002-11-26 Andrew Cagney <[email protected]>
374
375 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
376 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
377 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
378 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
379 pc_in_call_dummy_at_entry_point.
380 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
381 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
382 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
383 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
384 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
385 pc_in_call_dummy_on_stack.
386 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
387 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
388 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
389 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
390 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
391
b4b88177
AC
3922002-11-26 Andrew Cagney <[email protected]>
393
394 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
395 pc_in_call_dummy_before_text_end
396 (deprecated_pc_in_call_dummy_after_text_end): Rename
397 pc_in_call_dummy_after_text_end.
398 (deprecated_pc_in_call_dummy_on_stack): Rename
399 pc_in_call_dummy_on_stack.
400 (deprecated_pc_in_call_dummy_at_entry_point): Rename
401 pc_in_call_dummy_at_entry_point.
402 * m68k-tdep.c (m68k_gdbarch_init): Update.
403 * s390-tdep.c (s390_gdbarch_init): Update.
404 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
405 * vax-tdep.c (vax_gdbarch_init): Update.
406 * sparc-tdep.c (sparc_gdbarch_init): Update.
407 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
408 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
409 * i386-tdep.c (i386_gdbarch_init): Update.
410 * frv-tdep.c (frv_gdbarch_init): Update.
411 * cris-tdep.c (cris_gdbarch_init): Update.
412 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
413 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
414 (deprecated_pc_in_call_dummy_after_text_end)
415 (deprecated_pc_in_call_dummy_on_stack)
416 (deprecated_pc_in_call_dummy_at_entry_point): Update.
417 * alpha-tdep.c (alpha_gdbarch_init): Update.
418
eb784848
DJ
4192002-11-25 Daniel Jacobowitz <[email protected]>
420
421 * acconfig.h (HAVE_PREAD64): Add.
422 * configure.in: Check for pread64.
423 * config.in: Regenerated.
424 * configure: Regenerated.
425 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
426 * linux-proc.c (linux_proc_xfer_memory): New function.
427 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
428
933c6fe4
DC
4292002-11-25 David Carlton <[email protected]>
430
431 * dwarf2read.c (scan_partial_symbols): Descend into namespace
432 pdi's with no name.
433
158a8022
AC
4342002-11-25 Andrew Cagney <[email protected]>
435
436 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
437 16:32:04 1999 Andrew Cagney <[email protected]>.
438
481d0f41
JB
4392002-11-25 Jim Blandy <[email protected]>
440
e8289572
JB
441 * symfile.c (init_objfile_sect_indices): New function.
442 (default_symfile_offsets): Move the section-index-initializing
443 stuff into init_objfile_sect_indices, and call that.
444
b29c9944
JB
445 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
446 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
447
13de58df
JB
448 * symfile.c (syms_from_objfile): Adjust indentation.
449
481d0f41
JB
450 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
451 || info_verbose isn't true.
452
7d6a26a7
AC
4532002-11-24 Andrew Cagney <[email protected]>
454
455 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
456 default to get_frame_base.
457 * gdbarch.h, gdbarch.c: Regenerate.
458 * arch-utils.c (default_frame_address): Delete function.
459 * arch-utils.h (default_frame_address): Delete declaration
460
6abe1021
PM
4612002-11-24 Pierre Muller <[email protected]>
462
463 * varobj.c (find_frame_addr_in_frame_chain):
464 Use get_frame_base instead of FRAME_FP,
465 obvious fix.
466
c193f6ac
AC
4672002-11-19 Andrew Cagney <[email protected]>
468
469 * frame.h (FRAME_FP): Delete macro.
470 (get_frame_base): New function declaration.
471 * frame.c (get_frame_base): New function.
472 (get_frame_id): Use ->frame.
473 (frame_find_by_id): Rewrite to use get_frame_id.
474 * blockframe.c: Use get_frame_base instead of FRAME_FP.
475 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
476 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
477 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
478 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
479 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
480 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
481
e5d2af14
AC
4822002-11-24 Andrew Cagney <[email protected]>
483
484 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
485
931d12c6
AC
4862002-11-24 Andrew Cagney <[email protected]>
487
488 * frame.c (set_unwind_by_pc): Revert change below, use
489 PC_IN_CALL_DUMMY.
490 (get_prev_frame): Ditto.
491
5e0f933e
AC
4922002-11-24 Andrew Cagney <[email protected]>
493
494 * dummy-frame.c (pc_in_dummy_frame): New function.
495 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
496 (find_dummy_frame): Update comment.
497 (generic_pop_current_frame): Use get_frame_type.
498 * dummy-frame.h (pc_in_dummy_frame): Declare.
499 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
500 (create_new_frame): Use pc_in_dummy_frame.
501 (get_prev_frame): Use pc_in_dummy_frame.
502 (frame_saved_regs_register_unwind): Use get_prev_frame.
503 (deprecated_generic_get_saved_register): Use get_prev_frame.
504
7d8547c9
AC
5052002-11-23 Andrew Cagney <[email protected]>
506
507 * blockframe.c (find_frame_addr_in_frame_chain): Move function
508 from here ...
509 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
510 (varobj_create): Note that frame ID should be used.
511 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
512
0225421b
AC
5132002-11-23 Andrew Cagney <[email protected]>
514
515 * breakpoint.c: Include "gdb_assert.h".
516 (deprecated_frame_in_dummy): Assert that generic dummy frames are
517 not being used.
518 * Makefile.in (breakpoint.o): Update dependencies.
519 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
520 deprecated_frame_in_dummy.
521 * stack.c (print_frame_info_base): Ditto.
522 (frame_info): Ditto.
523 (print_frame_info_base): Ditto. Delete dead code.
524
32eeb91a
AS
5252002-11-23 Andreas Schwab <[email protected]>
526
527 * Makefile.in (m68k_tdep_h): Define.
528 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
529 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
530 * m68k-tdep.c: Move register number enum ...
531 * m68k-tdep.h: ... to this new file and rename the constants from
532 E_* to M68K_*. All uses changed.
533 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
534 * abug-rom.c: Include "m68k-tdep.h". Use
535 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
536 * cpu32bug-rom.c: Likewise.
537 * dbug-rom.c: Likewise.
538 * m68k-tdep.c: Likewise.
539 * m68klinux-nat.c: Likewise.
540 * remote-est.c: Likewise.
541 * rom68k-rom.c: Likewise.
542 * config/m68k/tm-linux.h: Likewise.
543
9648bac8
AC
5442002-11-23 Andrew Cagney <[email protected]>
545
546 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
547 dummy frame initialization code.
548 * mips-tdep.c (mips_gdbarch_init): Ditto.
549
91a175b3
CF
5502002-11-22 Christopher Faylor <[email protected]>
551
552 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
553 attach will hang.
554
f4ded5b1
AC
5552002-11-22 Andrew Cagney <[email protected]>
556
557 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
558 to default_frame_address.
559 * gdbarch.h, gdbarch.c: Re-generate.
560
561 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
562 or frame_locals_address to default_frame_address.
563 * m68k-tdep.c (m68k_gdbarch_init): Update.
564 * i386-tdep.c (i386_gdbarch_init): Update.
565 * frv-tdep.c (frv_gdbarch_init): Update.
566 * sh-tdep.c (sh_gdbarch_init): Update.
567 * v850-tdep.c (v850_gdbarch_init): Update.
568 * sparc-tdep.c (sparc_gdbarch_init): Update.
569 * mips-tdep.c (mips_gdbarch_init): Update.
570 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
571 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
572 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
573
574 * cris-tdep.c (cris_frame_args_address): Delete function.
575 (cris_frame_locals_address): Delete function.
576 (cris_gdbarch_init): Do not set frame_args_address or
577 frame_locals_address.
578
f7c1e0f3
MS
5792002-11-22 Michael Snyder <[email protected]>
580
581 * thread-db.c (thread_db_load): Tell the user what's going on
582 if dlopen fails on libthread_db.
583
03dac896
AS
5842002-11-23 Andreas Schwab <[email protected]>
585
586 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
587 invariant return values.
588
7a67d0fe
AS
5892002-11-22 Andreas Schwab <[email protected]>
590
591 * valops.c (value_slice): Move declaration of `offset' to avoid
592 warning.
593
5633f842
CF
5942002-11-22 Christopher Faylor <[email protected]>
595
596 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
597 (struct so_stuff): Add end_addr field.
598 (register_loaded_dll): Calculate and store end address of loaded dll.
599 (solib_address): New function.
600 (child_solib_loaded_library_pathname): Pass carefully constructed
601 section info to safe_symbol_file_add rather than ignoring it.
602 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
603 DLL is loaded.
604 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
605 (child_create_inferior): Fix a compiler warning.
606 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
607 (solib_address): Declare new function.
608
d85fe7f7
AS
6092002-11-22 Andreas Schwab <[email protected]>
610
611 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
612 and FPS registers.
613
8308e54c
DJ
6142002-11-21 Daniel Jacobowitz <[email protected]>
615
616 * maint.c (_initialize_maint_cmds): Fix typo. From
617 Francesco Potorti` <[email protected]>.
618
8997bd5e
AC
6192002-11-21 Andrew Cagney <[email protected]>
620
621 * mips-tdep.c (mips_dump_tdep): Delete references to
622 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
623 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
624 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
625 * printcmd.c (build_address_symbolic): Delete calls to
626 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
627 (address_info): Ditto.
628 Fix PR gdb/773.
629
4e87b832
KD
6302002-11-19 Klee Dienes <[email protected]>
631 Adam Fedor <[email protected]>
632
633 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
634 the ability to explicitly specify the quote characters and word
635 break characters; if NULL is specified for either, use the old
636 behavior of using the characters used by the completer.
637 (skip_chars): New function. Convenience wrapper around
638 skip_quoted_chars to provide the original skip_chars behavior.
639 * completer.h (skip_quoted_chars): Add prototype.
640
9ba8d803
AC
6412002-11-19 Andrew Cagney <[email protected]>
642
643 Problems reported by Paul Eggert.
644 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
645
0a595803
AS
6462002-11-19 Andreas Schwab <[email protected]>
647
648 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
649 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
650 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
651 (m68k_linux_frame_saved_pc): Move to ...
652 * m68klinux-tdep.c: ... here. New file.
653 * Makefile.in (m68klinux-tdep.o): Add dependencies.
654 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
655
e8afa4d7
AF
6562002-11-19 Adam Fedor <[email protected]>
657
658 * objc-exp.y: Revert to old skip_quoted usage.
659
a76c9d72
AF
6602002-11-19 Adam Fedor <[email protected]>
661
662 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
663 (objc_lang_h): Define.
664 (YYFILES): Add objc-exp.tab.c.
665 (local-maintainer-clean): Remove objc-exp.tab.c.
666 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
667
fd0e9d45
PM
6682002-11-19 Pierre Muller <[email protected]>
669
670 * p-exp.y (typecast rule): Add automatic dereference of
671 pascal classes if needed.
672 (THIS): Set current_type.
673 Automatically dereference pascal classes.
674 (typebase rule): Add ^typebase recognition.
675
82eeeb94
AF
6762002-11-18 Adam Fedor <[email protected]>
677
678 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
679 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
680 (op_name): Handle OP_OBJC_SELF.
681 * Makefile.in (expprint.o): Add additional depends.
682
646df18d
AF
6832002-11-18 Adam Fedor <[email protected]>
684
685 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
686 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
687 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
688 * objc-exp.y: Likewise.
689
379b85df
AF
6902002-11-18 Adam Fedor <[email protected]>
691
692 * gdb/parser-defs.h: (struct objc_class_str): New structure
693 for parsing ObjC classes.
694
85cf597a
AC
6952002-11-18 Andrew Cagney <[email protected]>
696
697 * stack.c (frame_relative_level): Copy function from here ...
698 * frame.c (frame_relative_level): ...to here.
699
5a203e44
AC
7002002-11-18 Andrew Cagney <[email protected]>
701
702 * frame.h (enum frame_type): Define.
703 (get_frame_type): Declare.
704 (struct frame_info): Add field `type'. Delete field
705 signal_handler_caller.
706 (deprecated_set_frame_signal_handler_caller): Declare.
707 * frame.c (get_frame_type): New function.
708 (deprecated_set_frame_type): New function.
709 (create_new_frame): Set the frame's type.
710 (get_prev_frame): Similar.
711 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
712 * s390-tdep.c: Ditto.
713 * m68klinux-nat.c: Ditto.
714 * ns32k-tdep.c: Ditto.
715 * x86-64-linux-tdep.c: Ditto.
716 * vax-tdep.c: Ditto.
717 * rs6000-tdep.c: Ditto.
718 * ppc-linux-tdep.c: Ditto.
719 * i386-interix-tdep.c: Ditto.
720 * mips-tdep.c: Ditto.
721 * m68k-tdep.c: Ditto.
722 * hppa-tdep.c: Ditto.
723 * ia64-tdep.c: Ditto.
724 * cris-tdep.c: Ditto.
725 * arm-tdep.c: Ditto.
726 * alpha-tdep.c: Ditto.
727 * i386-tdep.c: Ditto.
728 * stack.c: Ditto.
729 * ada-lang.c: Ditto.
730 * blockframe.c: Update.
731 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
732 deprecated_set_frame_type instead of signal_handler_caller.
733 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
734 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
735 * breakpoint.h: Delete FIXME suggesting get_frame_type.
736
bf4ae8b2
KD
7372002-11-18 Klee Dienes <[email protected]>
738
739 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
740
a672ef13
KD
7412002-11-18 Klee Dienes <[email protected]>
742
743 * buildsym.c (pop_context): Add comment.
744
0c5e171a
KD
7452002-11-18 Klee Dienes <[email protected]>
746
747 * buildsym.h (pop_context): Convert to function, defined in
748 buildsym.c.
749 * buildsym.c: Include gdb_assert.h.
750 (pop_context): Implement as C function. Add check for stack
751 underflow.
752 * dbxread.c (process_one_symbol): Complain and stop processing
753 that symbol if we are already at the top of the context stack for
754 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
755 when processing N_RBRAC.
756
8a1f4c4c
DJ
7572002-11-16 Daniel Jacobowitz <[email protected]>
758
759 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
760 define.
761 (struct target_waitstatus): Add opaque definition.
762 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
763 * exec.c (init_exec_ops): Likewise.
764 * fork-child.c (clone_and_follow_inferior): Remove.
765 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
766 * inferior.h (clone_and_follow_inferior): Remove prototype.
767 * infrun.c (follow_fork_mode_both): Remove.
768 (follow_fork_mode_kind_names): Remove commented out "both".
769 (follow_inferior_fork): Remove follow_fork_mode_both support.
770 * inftarg.c (child_clone_and_follow_inferior): Remove.
771 (child_post_follow_inferior_by_clone): Remove.
772 (init_child_ops): Don't set to_clone_and_follow_inferior
773 or to_post_follow_inferior_by_clone.
774 * target.c (default_clone_and_follow_inferior): Remove.
775 (cleanup_target): Don't set to_clone_and_follow_inferior
776 or to_post_follow_inferior_by_clone.
777 (find_default_clone_and_follow_inferior): Remove.
778 (init_dummy_target): Don't set to_clone_and_follow_inferior.
779 (debug_to_clone_and_follow_inferior): Remove.
780 (debug_to_post_follow_inferior_by_clone): Remove.
781 (setup_target_debug): Don't set to_clone_and_follow_inferior
782 or to_post_follow_inferior_by_clone.
783 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
784 and to_post_follow_inferior_by_clone.
785 (child_clone_and_follow_inferior): Remove prototype.
786 (child_post_follow_inferior_by_clone): Remove prototype.
787 (target_clone_and_follow_inferior): Remove macro.
788 (target_post_follow_inferior_by_clone): Remove macro.
789 (find_default_clone_and_follow_inferior): Remove prototype.
790
47932f85
DJ
7912002-11-16 Daniel Jacobowitz <[email protected]>
792
793 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
794 inferior_has_vforked, and inferior_has_execd instead of
795 target_has_forked, target_has_vforked, and target_has_execd.
796 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
797 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
798 (CHILD_WAIT): Define.
799 (child_wait): Add prototype.
800 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
801 Add prototype.
802 (hpux_has_vforked): Likewise, from child_has_vforked.
803 (hpux_has_execd): Likewise, from child_has_execd.
804 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
805 (not_same_real_pid, child_wait): New, copied from inftarg.c.
806 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
807 and hpux_has_syscall_event instead of the target hooks.
808 * infrun.c (inferior_has_forked, inferior_has_vforked)
809 (inferior_has_execd): New functions.
810 * inftarg.c (not_same_real_pid): Remove.
811 (child_wait): Remove references to not_same_real_pid,
812 target_has_forked, target_has_vforked, target_has_execd,
813 and target_has_syscall_event.
814 (child_has_forked, child_has_vforked, child_has_execd)
815 (child_has_syscall_event): Remove.
816 (init_child_ops): Remove references to child_has_forked,
817 child_has_vforked, child_has_execd, and child_has_syscall_event.
818 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
819 (hpux_has_vforked): Likewise, from child_has_vforked.
820 (hpux_has_execd): Likewise, from child_has_execd.
821 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
822 * target.c (cleanup_target): Remove references to
823 to_has_forked, to_has_vforked, to_has_execd, and
824 to_has_syscall_event.
825 (update_current_target): Likewise.
826 (setup_target_debug): Likewise.
827 (debug_to_has_forked): Remove.
828 (debug_to_has_vforked): Remove.
829 (debug_to_has_execd): Remove.
830 (debug_to_has_syscall_event): Remove.
831 * target.h (struct target_ops): Remove to_has_forked.
832 to_has_vforked, to_has_execd, and to_has_syscall_event.
833 (child_has_forked, child_has_vforked, child_has_execd)
834 (child_has_syscall_event): Remove prototypes.
835 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
836 prototypes.
837 (target_has_forked, target_has_vforked, target_has_execd)
838 (target_has_syscall_event): Remove macros.
839
4088142a
DJ
8402002-11-16 Daniel Jacobowitz <[email protected]>
841
842 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
843 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
844 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
845 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
846 * target.c (cleanup_target): Remove reference to
847 to_can_follow_vfork_prior_to_exec.
848 (update_current_target): Likewise.
849 (debug_to_can_follow_vfork_prior_to_exec): Remove.
850 (setup_target_debug): Remove reference to
851 to_can_follow_vfork_prior_to_exec.
852 * target.h (struct target_ops): Remove
853 to_can_follow_vfork_prior_to_exec.
854 (child_can_follow_vfork_prior_to_exec): Remove prototype.
855 (target_can_follow_vfork_prior_to_exec): Remove definition.
856 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
857 define.
858 * infrun.c (follow_vfork_when_exec): Remove.
859 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
860 (follow_exec): Likewise.
861 (handle_inferior_event): Likewise.
862 (keep_going): Likewise.
863
18cde8d5
AC
8642002-11-15 Andrew Cagney <[email protected]>
865
866 * frame.c (generic_unwind_get_saved_register): Make static.
867 * frame.h (generic_unwind_get_saved_register): Delete declaration.
868 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
869 defaults to generic_unwind_get_saved_register.
870 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
871 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
872 * frv-tdep.c (frv_gdbarch_init): Ditto.
873 * i386-tdep.c (i386_gdbarch_init): Ditto.
874 * s390-tdep.c (s390_gdbarch_init): Ditto.
875 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
876 * v850-tdep.c (v850_gdbarch_init): Ditto.
877 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
878 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
879 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
880
a6b063af
AC
8812002-11-15 Andrew Cagney <[email protected]>
882
883 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
884 i386-tdep.c.
885
f407986f
AC
8862002-11-15 Andrew Cagney <[email protected]>
887
888 * frame.h (sigtramp_saved_pc): Delete declaration.
889 * blockframe.c (sigtramp_saved_pc): Delete function.
890 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
891 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
892 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
893 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
894
f18c5a73
AC
8952002-11-15 Andrew Cagney <[email protected]>
896
897 * frame.c (frame_pc_unwind): New function.
898 (frame_saved_regs_pc_unwind): New function.
899 (frame_register_unwind): Pass unwind_cache instead of
900 register_unwind_cache.
901 (set_unwind_by_pc): Add unwind_pc parameter, set.
902 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
903 (get_prev_frame): Ditto.
904 * frame.h (frame_pc_unwind_ftype): Declare.
905 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
906 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
907 (frame_pc_unwind): Declare.
908 * dummy-frame.c (dummy_frame_pc_unwind): New function.
909 (struct dummy_frame): Add comment mentioning that values are for
910 previous frame.
911 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
912 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
913 (generic_file_frame_chain_valid): Ditto.
914 * stack.c (frame_info): Ditto.
915
d9285969 9162002-11-15 David Carlton <[email protected]>
0960f083
DC
917
918 * linespec.c (locate_first_half): New function.
919 (decode_line_1): Move code into locate_first_half.
920
d741b867
AC
9212002-11-15 Andrew Cagney <[email protected]>
922
923 * complaints.h: Add comment explaining how to eliminate a
924 deprecated_complain call.
24382c5c 925 * complaints.h: Fix spelling errors.
d741b867 926
82d03c99
DC
9272002-11-15 David Carlton <[email protected]>
928
929 * printcmd.c: Remove #include "disasm.h".
930
c97eb5d9
AC
9312002-11-14 Andrew Cagney <[email protected]>
932
933 * frame.h: Move the most relevant interface functions to the start
934 of the file.
935
524d7c18
AC
9362002-11-14 Andrew Cagney <[email protected]>
937
938 * regcache.h (deprecated_registers): Rename registers.
939 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
940 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
941 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
942 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
943 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
944 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
945 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
946 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
947 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
948 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
949 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
950 * v850ice.c: Update.
951
6411e720
AC
952Wed Nov 13 19:51:05 2002 Andrew Cagney <[email protected]>
953
954 * utils.c (gdb_realpath): Add comment mentioning realpath with a
955 NULL buffer.
956
73937e03
AC
9572002-11-13 Andrew Cagney <[email protected]>
958
959 * regcache.h (deprecated_read_register_bytes): Rename
960 read_register_bytes.
961 (deprecated_write_register_bytes): Rename write_register_bytes.
962 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
963 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
964 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
965 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
966 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
967 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
968 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
969 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
970 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
971 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
972 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
973 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
974 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
975 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
976
fb0cd46e
JB
9772002-11-13 Jim Blandy <[email protected]>
978
979 * findvar.c (read_var_value): Doc fix.
980
2d28509a
AC
9812002-11-13 Andrew Cagney <[email protected]>
982
983 * regcache.c (struct regcache): Replace passthough_p with
984 readonly_p.
985 (regcache_xmalloc): Initialize readonly_p.
986 (build_regcache): Initialize readonly_p.
987 (regcache_save): New function.
988 (regcache_restore): New function.
989 (regcache_cpy): Re-implement using regcache_save and
990 regcache_restore.
991 (regcache_raw_read): Update.
992 (regcache_cooked_read): When a read-only cache, checked for cached
993 pseudo register values.
994 (regcache_raw_write): Assert that the cache is not read-only.
995 Remove code handling a non-passthrough cache.
996 * regcache.h (regcache_save): Declare.
997 (regcache_restore): Declare.
998
067df2e5
AC
9992002-11-13 Andrew Cagney <[email protected]>
1000
1001 * regcache.c (struct regcache_descr): Add fields
1002 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1003 (init_legacy_regcache_descr): Compute the size of a cooked
1004 register cache and then assign that to sizeof_raw_registers. Set
1005 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1006 (init_legacy_regcache_descr): Ditto.
1007
51b1fe4e
AC
10082002-11-13 Andrew Cagney <[email protected]>
1009
1010 * regcache.c (register_buffer): Move to near start of file, update
1011 description.
1012 (regcache_raw_read): Use.
1013 (regcache_raw_write): Use.
1014 (struct regcache): Rename raw_registers to registers and
1015 raw_register_valid_p to register_valid_p.
1016 (regcache_xmalloc): Update.
1017 (regcache_xfree): Update.
1018 (register_buffer): Update.
1019 (regcache_cpy): Update.
1020 (regcache_cpy_no_passthrough): Update.
1021 (regcache_valid_p): Update.
1022 (deprecated_grub_regcache_for_registers): Update.
1023 (deprecated_grub_regcache_for_register_valid): Update.
1024 (set_register_cached): Update.
1025 (regcache_raw_write): Update.
1026
80b4c677
PM
10272002-11-13 Pierre Muller <[email protected]>
1028
1029 * p-exp.y (name_not_typename): Use copy_name to
1030 set current_type variable for fields of THIS.
1031
0f3fafde
DJ
10322002-11-12 Daniel Jacobowitz <[email protected]>
1033
1034 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1035 * monitor.c (init_base_monitor_ops): Likewise.
1036 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1037 * remote-array.c (init_array_ops): Likewise.
1038 * remote-e7000.c (init_e7000_ops): Likewise.
1039 * remote-es.c (init_es1800_ops): Likewise.
1040 (init_es1800_child_ops): Likewise.
1041 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1042 * remote-sim.c (init_gdbsim_ops): Likewise.
1043 * remote-st.c (init_st2000_ops): Likewise.
1044 * sol-thread.c (init_sol_core_ops): Likewise.
1045 (init_sol_thread_ops): Likewise.
1046 * v850ice.c (init_850ice_ops): Likewise.
1047 * win32-nat.c (init_child_ops): Likewise.
1048 * wince.c (init_child_ops): Likewise.
1049
82c0260e
AC
10502002-11-12 Andrew Cagney <[email protected]>
1051
1052 * utils.c (gdb_realpath): Make rp a constant pointer.
1053
70d35819
AC
10542002-11-12 Andrew Cagney <[email protected]>
1055
1056 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1057 a constant buffer; cannonicalize_file_name(); realpath() with a
1058 pathconf() defined buffer, xstrdup().
1059
9835a8b0
AC
10602002-11-12 Andrew Cagney <[email protected]>
1061
1062 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1063 to hang2.C; hang3.c to hang3.C.
1064
3f47be5c
EZ
10652002-11-11 Elena Zannoni <[email protected]>
1066
1067 * findvar.c (read_var_value): Reenable TLS code.
1068
10692002-11-11 Elena Zannoni <[email protected]>
1070 Jim Blandy <[email protected]>
1071
1072 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1073 * target.c (update_current_target): Add
1074 to_get_thread_local_address.
1075 * target.h (to_get_thread_local_address): Export.
1076 (target_get_thread_local_address): Define.
1077 (target_get_thread_local_address_p): Define.
1078 * thread-db.c: Include solib-svr4.h.
1079 (td_thr_tls_get_addr_p): Define.
1080 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1081 (thread_db_get_thread_local_address): New function.
1082 (init_thread_db_ops): Initialize to_get_thread_local_address.
1083 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1084 * configure: Regenerate.
1085 * config.in: Regenerate.
1086
636b1a6d
DC
10872002-11-11 David Carlton <[email protected]>
1088
1089 * linespec.c (set_flags): New function.
1090 (decode_line_1): Move code into set_flags.
1091
44fe14ab
DC
10922002-11-11 David Carlton <[email protected]>
1093
1094 * linespec.c (decode_line_1): Move chunks of code to separate
1095 functions.
1096 (initialize_defaults): New function.
1097 (decode_indirect): New function.
1098
e6f181f5
AC
10992002-11-11 Andrew Cagney <[email protected]>
1100
8971b011
AC
1101 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1102 instead of void_code_ptr.
1103 (sigtramp_saved_pc): Ditto.
1104
e6f181f5
AC
1105 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1106 i386_fp_regnum_p.
1107
01ad7f36
DJ
11082002-11-10 Daniel Jacobowitz <[email protected]>
1109
1110 * gdbtypes.h (struct main_type): Move artificial flag out of
1111 loc. New member of ``struct field'' named static_kind. Reduce
1112 overloaded meaning of bitsize.
1113 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1114 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1115 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1116
1117 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1118 new fields.
1119 (template_to_fixed_record_type, template_to_static_fixed_type)
1120 (to_record_with_fixed_variant_part): Likewise.
1121 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1122 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1123 * dwarfread.c (struct_type, enum_type): Likewise.
1124 * hpread.c (hpread_read_enum_type)
1125 (hpread_read_function_type, hpread_read_doc_function_type)
1126 (hpread_read_struct_type): Likewise.
1127 * mdebugread.c (parse_symbol): Likewise.
1128
bf1e52be
AC
11292002-11-10 Andrew Cagney <[email protected]>
1130
1131 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1132 * stack.c (print_frame_info_base): Update.
1133 (print_frame_info_base, frame_info): Update.
1134 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1135 (sparc_frame_saved_pc): Update.
1136 * ada-lang.c (find_printable_frame): Update.
1137 * breakpoint.c (deprecated_frame_in_dummy): Update.
1138
ce556f85
MK
11392002-11-09 Mark Kettenis <[email protected]>
1140
1141 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1142 defined.
1143 (regmap): Extend to cover all registers.
1144 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1145 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1146 definitions.
1147 (fetch_register, sore_register): Simplify.
1148 (old_fetch_inferior_registers, old_store_inferior_registers):
1149 Remove functions.
1150 (cannot_fetch_register, cannot_store_register): Change
1151 implementation to use regmap array to decide which registers
1152 cannot be fetched/stored. This removes $orig_eax from the
1153 registers that cannot be fetched/stored.
1154 (fetch_inferior_registers): Call fetch_register directly instead
1155 of calling old_fetch_inferior_registers.
1156 (store_inferior_registers): Call store_register directly instead
1157 of calling old_store_inferior_registers.
1158 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1159 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1160 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1161
932bb524
KD
11622002-11-09 Klee Dienes <[email protected]>
1163
1164 * i387-tdep.c (i387_supply_register): When called with NULL as a
1165 buffer, mark the register as not provided (to mirror the behavior
1166 of supply_register).
1167 (i387_supply_fxsave): Ditto.
1168 (i387_supply_fsave): Ditto (inherits the behavior from
1169 i387_supply_register).
1170
ebe68b27
KD
11712002-11-09 Klee Dienes <[email protected]>
1172
1173 * blockframe.c (sigtramp_saved_pc): Use
1174 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1175 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1176 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1177
15220c65
AC
11782002-11-09 Andrew Cagney <[email protected]>
1179
1180 * frame.c (get_prev_frame): Test prev_p to identify a previously
1181 unwound frame. Initialize prev_p.
1182 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1183 comment.
1184
95adb866
AC
11852002-11-09 Andrew Cagney <[email protected]>
1186
1187 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1188 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1189 more comments. Zap dead code.
1190
e71ecd70
MK
11912002-11-09 Mark Kettenis <[email protected]>
1192
1193 * infcmd.c (print_vector_info, print_float_info): Move code that
1194 checks whether the target has any registers and whether there is a
1195 selected frame up, such that it is also used if a target provides
1196 multi-arch definitions of these functions.
1197
c525330d
AC
11982002-11-08 Andrew Cagney <[email protected]>
1199
72bdd927
AC
1200 * Makefile.in (DESTDIR): Define.
1201 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1202 prefix.
1203
c525330d
AC
1204 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1205 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1206
38c968cf
AC
12072002-11-08 Andrew Cagney <[email protected]>
1208
1209 * i386-linux-tdep.c: Include "reggroups.h".
1210 (i386_linux_register_reggroup_p): New function.
1211 (i386_linux_init_abi): Set register_reggroup_p to
1212 i386_linux_register_reggroup_p.
1213 * i386-tdep.h (i386_register_reggroup_p): Declare.
1214 * i386-tdep.c: Include "reggroups.h".
1215 (i386_init_reggroups): New function.
1216 (i386_add_reggroups): New function.
1217 (i386_register_reggroup_p): New function.
1218 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1219 (_initialize_i386_tdep): Call i386_init_reggroups.
1220 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1221 specific reggroups.
1222
19e33363
MK
12232002-11-09 Mark Kettenis <[email protected]>
1224
371a6e84
MK
1225 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1226 request that's available in *BSD.
1227
94ba925a
MK
1228 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1229
19e33363
MK
1230 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1231 FDOFF_REGNUM.
1232
8779790c
AC
12332002-11-08 Andrew Cagney <[email protected]>
1234
1235 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1236 * dummy-frame.c (find_dummy_frame): Rename
1237 generic_find_dummy_frame, make static. Return the dummy frame
1238 instead of the regcache.
1239 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1240 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1241 (dummy_frame_register_unwind): Rename
1242 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1243 * dummy-frame.h (dummy_frame_register_unwind): Rename
1244 generic_call_dummy_register_unwind.
1245
8674b74f
MK
12462002-11-08 Mark Kettenis <[email protected]>
1247
1248 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1249 except the inclusion of "i386/tm-i386.h", to...
1250 * config/i386/nm-i386v42mp.h: ...here.
1251 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1252
4c1e7e9d
AC
12532002-11-08 Andrew Cagney <[email protected]>
1254
1255 * Makefile.in (frame.o): Update dependencies.
1256 * blockframe.c (current_frame, frame_obstack_alloc)
1257 (frame_saved_regs_zalloc, get_current_frame)
1258 (set_current_frame, create_new_frame)
1259 (set_unwind_by_pc, get_next_frame)
1260 (flush_cached_frames, reinit_frame_cache)
1261 (frame_saved_regs_register_unwind)
1262 (deprecated_generic_get_saved_register)
1263 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1264 (_initialize_blockframe): Move frame code from here...
1265 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1266 "annotate.h" and "dummy-frame.h".
1267 (_initialize_frame): New function.
1268
921e78cf
JB
12692002-11-08 Jim Blandy <[email protected]>
1270
1271 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1272 when we finish a function a context.
1273 * buildsym.h (outermost_context_p): New macro.
1274 (Bug analyzed by David Edelsohn.)
1275
9c1412c1
AC
12762002-11-08 Andrew Cagney <[email protected]>
1277
1278 * blockframe.c: Include "dummy-frame.h".
1279 (struct dummy_frame, dummy_frame_stack)
1280 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1281 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1282 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1283 (generic_save_call_dummy_addr, generic_pop_current_frame)
1284 (generic_pop_dummy_frame, generic_fix_call_dummy)
1285 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1286 dummy frame code from here...
1287 * dummy-frame.c: ...to here. New file.
1288 * dummy-frame.h: New file.
1289 (generic_call_dummy_register_unwind): Declare.
1290 (generic_find_dummy_frame): Declare.
1291 * Makefile.in (SFILES): Add dummy-frame.c.
1292 (dummy-frame.o): Specify dependencies.
1293 (dummy_frame_h): Define.
1294 (COMMON_OBS): Add dummy-frame.o.
1295 (blockframe.o): Update dependencies.
1296
208d8187
JB
12972002-11-08 Jim Blandy <[email protected]>
1298
1299 * dwarf2read.c (read_func_scope): Restore local_symbols and
1300 param_symbols after we finish the function context. (Based on a
1301 patch from David Edelsohn.)
1302
413dad4d
DC
13032002-11-08 David Carlton <[email protected]>
1304
1305 * linespec.c (symbol_found): New function.
1306 (minsym_found): New function.
1307 (decode_line_1): Separate out some code into separate functions.
1308
5512c44a
JB
13092002-11-08 Joel Brobecker <[email protected]>
1310
1311 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1312 the benefit of the interix target.
1313 * i386-tdep.h (i386_frameless_signal_p): Declare.
1314
1b33ef47
AC
13152002-11-08 Andrew Cagney <[email protected]>
1316
1317 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1318 declaration that snuck in from change below.
1319
23a34459
AC
13202002-11-06 Andrew Cagney <[email protected]>
1321
1322 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1323 all callers.
1324 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1325 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1326 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1327 (i386_mxcsr_regnum_p): new function. Use instead of
1328 MXCSR_REGNUM_P.
1329 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1330 (i386_sse_regnum_p): Declare.
1331 (i386_mxcsr_regnum_p): Declare.
1332 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1333 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1334 (IS_FP_REGNUM): Update definition.
1335 (IS_FPU_CTRL_REGNUM): Update definition..
1336 (IS_SSE_REGNUM): Update definition..
1337 * i386v-nat.c (register_u_addr): Update.
1338 * go32-nat.c (fetch_register): Update.
1339 (store_register): Update.
1340
d709c020
JB
13412002-11-07 Joel Brobecker <[email protected]>
1342
1343 Preparation work to convert the hppa targets to multiarch partial.
1344
1345 * hppa-tdep.c: Add new functions replacing macro bodies from
1346 config/pa/tm-hppa.h. These function will be used to initialize
1347 the gdbarch structure. Import some comments from tm-hppa.h,
1348 and place them where appropriate, to avoid loosing them when
1349 we cleanup this file.
1350 (hppa_reg_struct_has_addr): New function.
1351 (hppa_inner_than): New function.
1352 (hppa_stack_align): New function.
1353 (hppa_pc_requires_run_before_use): New function.
1354 (hppa_instruction_nullified): New function.
1355 (hppa_register_byte): New function.
1356 (hppa_register_virtual_type): New function.
1357 (hppa_store_struct_return): New function.
1358 (hppa_cannot_store_register): New function.
1359 (hppa_frame_args_address): New function.
1360 (hppa_frame_locals_address): New function.
1361 (hppa_smash_text_address): New function.
1362 (hppa_coerce_float_to_double): New function. Requires the inclusion
1363 of "language.h".
1364
1365 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1366
1367 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1368 gdbarch-eligible macro to a call to the new associated function
1369 created in hppa-tdep.c.
1370 (INNER_THAN): Likewise.
1371 (STACK_ALIGN): Likewise.
1372 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1373 (INSTRUCTION_NULLIFIED): Likewise.
1374 (REGISTER_BYTE): Likewise.
1375 (REGISTER_VIRTUAL_TYPE): Likewise.
1376 (STORE_STRUCT_RETURN): Likewise.
1377 (CANNOT_STORE_REGISTER): Likewise.
1378 (FRAME_ARGS_ADDRESS): Likewise.
1379 (FRAME_LOCALS_ADDRESS): Likewise.
1380 (SMASH_TEXT_ADDRESS): Likewise.
1381 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1382 (ABOUT_TO_RETURN): Delete, as no longer used.
1383
83c31e7d
FN
13842002-11-07 Fernando Nasser <[email protected]>
1385
1386 * printcmd.c (disassemble_command): Remove obsolete function.
1387 (_initialize_printcmd): Do not create disassemble command here.
1388 * cli/cli-cmds.c (disassemble_command): New function. Implements
1389 disassemble command.
1390 (init_cli_cmds): Create disassemble command here instead.
1391
0ec30a36
AC
13922002-11-07 Andrew Cagney <[email protected]>
1393
1394 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1395
e600bd34
AC
13962002-11-07 Andrew Cagney <[email protected]>
1397
1398 * regcache.h (regcache_cooked_read_using_offset_hack)
1399 (regcache_cooked_write_using_offset_hack): Delete declarations.
1400 (register_changed): Delete declaration.
1401 * regcache.c (regcache_cooked_read_using_offset_hack)
1402 (regcache_cooked_write_using_offset_hack): Delete functions.
1403 (cooked_xfer_using_offset_hack): Delete function.
1404 (register_changed): Delete function.
1405
568f8739
JB
14062002-11-07 Jim Blandy <[email protected]>
1407
1408 * macroscope.c: #include "complaints.h".
1409 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1410 but not in the macro table.
1411 * Makefile.in (macroscope.o): Record dependency.
1412
b0718b7b
JB
14132002-11-07 Joel Brobecker <[email protected]>
1414
1415 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1416
2b9e5f3f
AC
14172002-11-07 Andrew Cagney <[email protected]>
1418
1419 * regcache.c (deprecated_registers_fetched): Update.
1420 * regcache.h (deprecated_registers_fetched): Rename
1421 registers_fetched.
1422 * remote-vxsparc.c (vx_read_register): Update.
1423 * remote-vxmips.c (vx_read_register): Update.
1424 * remote-vx68.c (vx_read_register): Update.
1425 * irix5-nat.c (fetch_core_registers): Update.
1426 * mipsm3-nat.c (fetch_inferior_registers): Update.
1427 * sun3-nat.c (fetch_inferior_registers): Update.
1428 * symm-nat.c (fetch_inferior_registers): Update.
1429 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1430 (fetch_core_registers): Update.
1431 (fetch_kcore_registers): Update.
1432 * mips-nat.c (fetch_inferior_registers): Update.
1433 * corelow.c (get_core_registers): Update.
1434 * a68v-nat.c (fetch_inferior_registers): Update.
1435
e6e68f1f
JB
14362002-11-06 Joel Brobecker <[email protected]>
1437
1438 Put in place the framework necessary for multiarching the hppa targets.
1439 * hppa-tdep.c (hppa_gdbarch_init): New function.
1440 (hppa_dump_tdep): New function.
1441 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1442 tdep structure dumper.
1443 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1444 until the multi-arching conversion has partially been completed.
1445
492254e9
AC
14462002-11-06 Andrew Cagney <[email protected]>
1447
1448 * valops.c (value_assign): Merge lval_register case into
1449 lval_reg_frame_relative. Use frame_register and
1450 regcache_cooked_write instead of get_saved_register and
1451 write_register_bytes. After flushing the register cache, try to
1452 re-select the selected frame.
1453
8262ee23
AC
14542002-11-06 Andrew Cagney <[email protected]>
1455
1456 * regcache.h (deprecated_register_valid): Rename register_valid.
1457 * regcache.c: Update.
1458 * ia64-aix-nat.c: Update.
1459 * i386gnu-nat.c: Update.
1460 * alpha-nat.c: Update.
1461 * sparc-nat.c: Update.
1462 * lynx-nat.c: Update.
1463 * remote-mips.c: Update.
1464
4facf7e8
JB
14652002-11-06 Joel Brobecker <[email protected]>
1466
1467 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1468 to end of file, to be more consistent with the pratice followed
1469 by other targets.
1470
f9418c0f
AC
14712002-11-06 Andrew Cagney <[email protected]>
1472
1473 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1474 (print_float_info): Print registers in float_reggroup.
1475 (print_vector_info): Print registers in vector_reggroup.
1476 (default_print_registers_info): When all, print registers in
1477 all_reggroup. Otherwize, print registers in general_reggroup.
1478 (registers_info): Rewrite. Add support for register groups.
1479 Eliminate a goto.
1480
3fe235a7
EZ
14812002-11-06 Elena Zannoni <[email protected]>
1482
1483 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1484 ages.
1485 (symtab_symbol_info): Remove eons old ifdeffed out code.
1486 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1487 command.
1488
ef944135
TR
14892002-11-06 Theodore A. Roth <[email protected]>
1490
1491 * c-exp.y: Add missing semi-colons.
1492 * f-exp.y: Add missing semi-colons.
1493 * m2-exp.y: Add missing semi-colons.
1494 * p-exp.y: Add missing semi-colons.
1495 Add empty action to start rule to avoid a type clash error when
1496 building with bison >= 1.50.
1497
f8302a57
JB
14982002-11-06 Jim Blandy <[email protected]>
1499
1500 * macrotab.h (struct macro_source_file): Doc fix.
1501
6e382aa3
JJ
15022002-11-05 Jeff Johnston <[email protected]>
1503
1504 * varobj.c (child_exists, cplus_number_of_children): Change
1505 STREQ macro references to strcmp.
1506 (cplus_name_of_child): Change code to handle the fact that
1507 fields are not necessarily contiguous with regards to their
1508 access control. This is a fix for PR gdb/792.
1509
a216a322
AC
15102002-11-05 Andrew Cagney <[email protected]>
1511
1512 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1513 * gdbarch.h, gdbarch.c: Regnerate.
1514 * frame.h (frame_register): Declare.
1515 * frame.c (frame_register): New function.
1516 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1517 GET_SAVED_REGISTER, otherwize call
1518 generic_unwind_get_saved_register.
1519 (frame_register_read): Use frame_register instead of
1520 get_saved_register.
1521
7d5b6fdd
EZ
15222002-11-05 Elena Zannoni <[email protected]>
1523
1524 From Jim Ingham <[email protected]>:
1525 * event-top.c (gdb_disable_readline): New function.
1526 (_initialize_event_loop): Move comment.
1527
b7c64260
EZ
15282002-11-05 Elena Zannoni <[email protected]>
1529
1530 * event-loop.c (start_event_loop): Add comment.
1531 Update copyright.
1532
c2e1b8f2
AC
15332002-11-05 Andrew Cagney <[email protected]>
1534
1535 * infcmd.c (default_print_registers_info): Do not call
1536 PRINT_REGISTER_HOOK.
1537
87647bb0
AC
15382002-11-05 Andrew Cagney <[email protected]>
1539
1540 * sparc-tdep.c (sparc_print_register_hook): Make static.
1541 (sparc_print_registers_info): New function.
1542 (sparc_do_registers_info): New function.
1543 (sparclet_print_registers_info): New function.
1544 (sparclet_do_registers_info): New function.
1545 (do_sparc_print_registers_info): New function.
1546 (sparc_print_registers): New static function, clone of infcmd.c's
1547 default_print_registers_info.
1548 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1549 (sparclet_do_registers_info): Declare.
1550 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1551 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1552 Re-define.
1553 (sparc_do_registers_info): Declare.
1554 (PRINT_REGISTER_HOOK): Delete macro.
1555 (sparc_print_register_hook): Delete declaration.
1556
8155455b
DC
15572002-11-05 David Carlton <[email protected]>
1558
1559 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1560 functions.
1561 (lookup_symbol_aux_local): New function.
1562 (lookup_symbol_aux_symtabs): New function.
1563 (lookup_symbol_aux_psymtabs): New function.
1564
29924310
DC
15652002-11-05 David Carlton <[email protected]>
1566
1567 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1568 previous values of 'objfile' and 'block'.
1569
cc303028
PM
15702002-11-05 Pierre Muller <[email protected]>
1571
1572 * values.c (value_change_enclosing_type): Set
1573 enclosing_type field correctly also for the case where
1574 more memory needs to be allocated.
1575
1d70089a
MK
15762002-11-03 Mark Kettenis <[email protected]>
1577
f16a25ae
MK
1578 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1579 of puts_filtered.
1580
1d70089a
MK
1581 * i387-tdep.c (i387_print_float_info): Replace calls to
1582 register_read and deprecated_read_register_gen with calls to
1583 frame_register_read, and make the necessary adjustments to the
1584 surrounding code.
1585
7e20f3fb
AC
15862002-11-02 Andrew Cagney <[email protected]>
1587
1588 * gdbarch.sh (register_reggroup_p): Allow default value.
1589 * gdbarch.h, gdbarch.c: Regenerate.
1590
192dbe33
AC
15912002-11-02 Andrew Cagney <[email protected]>
1592
1593 * regcache.h: Add coment indicating replacements for deprecated
1594 functions.
1595
b59ff9d5
AC
15962002-11-02 Andrew Cagney <[email protected]>
1597
1598 * reggroups.h, reggroups.c: New files.
1599 * regcache.c: Include "reggroups.h".
1600 (enum regcache_dump_what): Add `regcache_dump_groups'.
1601 (regcache_dump): Contract size of the "Type" column. When
1602 specified, dump the register's groups.
1603 (maintenance_print_register_groups): New function.
1604 (_initialize_regcache): Add command `maint print register-groups'.
1605 * Makefile.in (COMMON_OBS): Add reggroups.o
1606 (SFILES): Add reggroups.c.
1607 (reggroups_h): Define.
1608 (regcache.o, gdbarch.o): Update dependencies.
1609 (reggroups.o): Specify dependencies.
1610 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1611 Add opaque declaration for `struct reggroup' in generated .h file.
1612 Include "reggroups.h" in generated .c file.
1613 gdbarch.h, gdbarch.c: Re-generate.
1614
4caf0990
AC
16152002-11-02 Andrew Cagney <[email protected]>
1616
1617 * regcache.h (deprecated_read_register_gen): Rename
1618 read_register_gen.
1619 (deprecated_write_register_gen): Rename write_register_gen.
1620 * i387-tdep.c: Update.
1621 * x86-64-linux-nat.c: Update
1622 * wince.c: Update.
1623 * thread-db.c: Update.
1624 * win32-nat.c: Update.
1625 * mips-tdep.c: Update.
1626 * d10v-tdep.c: Update.
1627 * cris-tdep.c: Update.
1628 * remote-sim.c: Update.
1629 * remote-rdi.c: Update.
1630 * remote-rdp.c: Update.
1631 * frame.c: Update.
1632 * target.c: Update.
1633 * blockframe.c: Update.
1634 * x86-64-tdep.c: Update.
1635 * xstormy16-tdep.c: Update.
1636 * sh-tdep.c: Update.
1637 * s390-tdep.c: Update.
1638 * rs6000-tdep.c: Update.
1639 * sparc-tdep.c: Update.
1640 * i386-tdep.c: Update.
1641 * dwarf2cfi.c: Update.
1642 * regcache.c: Update.
1643
7a7adcdf
JB
16442002-11-01 Joel Brobecker <[email protected]>
1645
1646 New interix-specific files:
1647 * config/i386/nm-interix.h: New file.
1648 * config/i386/interix.mh: New file.
1649 * config/i386/interix.mt: New file.
1650 * i386-interix-nat.c: New file.
1651 * i386-interix-tdep.c: New file.
1652
bdcdd535
AC
16532002-11-01 Andrew Cagney <[email protected]>
1654
1655 * frame.h (deprecated_generic_get_saved_register): Rename
1656 generic_get_saved_register.
1657 * blockframe.c (deprecated_generic_get_saved_register): Update.
1658 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1659 (xstormy16_frame_saved_register): Update.
1660 * sh-tdep.c (sh_gdbarch_init): Update.
1661 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1662 * ia64-tdep.c (ia64_get_saved_register): Update.
1663 * cris-tdep.c (cris_gdbarch_init): Update.
1664 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1665 * arm-tdep.c (arm_gdbarch_init): Update.
1666
2a4b7c45
DJ
16672002-10-31 Daniel Jacobowitz <[email protected]>
1668
1669 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1670
ef17e74b
DJ
16712002-10-31 Daniel Jacobowitz <[email protected]>
1672
1673 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1674 trampolines in sigaction.
1675
4904ba5b
AC
16762002-10-31 Andrew Cagney <[email protected]>
1677
1678 * h8300-tdep.c: Include "gdb_assert.h".
1679 (h8300_print_register): Add gdbarch, file and frame parameters.
1680 Use frame_read_unsigned_register to read the register's value.
1681 Use fprintf_filtered to display output.
1682 (h8300_print_registers_info): Replace h8300_do_registers_info.
1683 (h8300_gdbarch_init): Set print_registers_info.
1684
f908a0eb
AC
16852002-10-31 Andrew Cagney <[email protected]>
1686
1687 * frame.c (frame_read_unsigned_register): New function.
1688 (frame_read_signed_register): New function.
1689 * frame.h (frame_read_unsigned_register): Declare.
1690 (frame_read_signed_register): Declare.
1691
c5646e11
AC
16922002-10-31 Andrew Cagney <[email protected]>
1693
1694 * h8500-tdep.c (h8500_print_registers_info): New static function,
1695 clone of infcmd.c's default_print_registers_info.
1696 (h8500_do_registers_info): New funtion.
1697 (h8500_print_register_hook): Rename print_register_hook, make
1698 static.
1699
1700 * config/h8500/tm-h8500.h: Update copyright.
1701 (DEPRECATED_DO_REGISTERS_INFO): Define.
1702 (h8500_do_registers_info: Declare.
1703 (PRINT_REGISTER_HOOK): Delete macro.
1704 (print_register_hook): Delete function.
1705
0bdd672b
AC
17062002-10-31 Andrew Cagney <[email protected]>
1707
1708 * z8k-tdep.c (z8k_print_register_hook): Make static.
1709 (z8k_print_registers_info): New static function, clone of
1710 infcmd.c's default_print_registers_info.
1711 (z8k_do_registers_info): New function. Wrap
1712 z8k_print_registers_info.
1713 * config/z8k/tm-z8k.h: Update copyright.
1714 (PRINT_REGISTER_HOOK): Delete macro.
1715 (z8k_print_register_hook): Delete declaration.
1716 (DEPRECATED_DO_REGISTERS_INFO): Define.
1717 (z8k_do_registers_info): Declare.
1718
bf9c25dc
JB
17192002-10-30 Joel Brobecker <[email protected]>
1720
1721 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1722 as this is already provided by value.h, and was actually causing
1723 a compilation error because of a conflict in parameter type
1724 declaration due to a missing const keyword.
1725 (low_text_segment_addres): Fix a compilation warning.
1726
2c665b51
DJ
17272002-10-29 Daniel Jacobowitz <[email protected]>
1728
1729 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1730 registers without a name.
1731 (mips_linux_cannot_store_register): Don't store registers without
1732 a name.
1733
e70ea697
DC
17342002-10-28 David Carlton <[email protected]>
1735
1736 * symtab.c (find_addr_symbol): Delete. (It was already commented
1737 out.)
1738 * symtab.h: Delete prototype for find_addr_symbol.
1739
903ad3a6
AC
17402002-10-26 Andrew Cagney <[email protected]>
1741
1742 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1743 DO_REGISTERS_INFO.
1744 gdbarch.h, gdbarch.c: Re-generate.
1745 * infcmd.c (default_print_registers_info): Update reference.
1746 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1747 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1748 * sh-tdep.c (sh_gdbarch_init): Ditto.
1749 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1750 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1751
ab91194c
MK
17522002-10-26 Mark Kettenis <[email protected]>
1753
e3033f15
MK
1754 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1755 cfi_init_extra_frame_info.
1756 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1757 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1758
b83b026c
MK
1759 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1760 target where necessary. Add more comments and remove the ones
1761 that don't provide any useful information.
1762
267bf4bb
MK
1763 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1764 deprecated_read_register_dummy with
1765 frame_unwind_unsigned_register.
1766
751f1375
MK
1767 * i386-tdep.c (i386_extract_struct_value_address): Use
1768 regcache_raw_read_unsigned instead of
1769 regcache_cooked_read_unsigned since we know that the register
1770 we're reading isn't a pseudo register. Rename variable 'val' into
1771 the more descriptive 'addr'.
1772
26abbdc4
MK
1773 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1774 (x86_64_push_return_address): Add comment.
1775 (x86_64_pop_frame): Make static.
1776 (examine_argument): Clarify comment.
1777 (x86_64_skip_prologue): Make prolog_expact variable static.
1778
9f1549cc
MK
1779 * dwarf2cfi.c: Fix some formatting problems.
1780 (context_cpy, read_encoded_pointer): Clarify comments.
1781
ab91194c
MK
1782 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1783 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1784 i386 target back into x86_64_gdbarch_init. Add some comments and
1785 remove meaningless ones.
1786
72367fb4
AC
17872002-10-25 Andrew Cagney <[email protected]>
1788
1789 * complaints.h (struct deprecated_complaint): Rename `struct
1790 complaint'.
1791 * complaints.c (complain): Update.
1792 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1793 incorrect comment indicating that "symfile.h" was being included
1794 for the `struct complaint' definition.
1795 * remote-vx.c: Update.
1796 * objc-lang.c: Update.
1797 * xcoffread.c: Update.
1798 * hpread.c: Update.
1799 * mdebugread.c: Update.
1800 * stabsread.c: Update.
1801 * dwarf2read.c: Update.
1802 * dwarfread.c: Update.
1803 * elfread.c: Update.
1804 * coffread.c: Update.
1805 * stabsread.h: Update.
1806 * dbxread.c: Update.
1807 * buildsym.c: Update.
1808 * gdbtypes.c: Update.
1809 * macrotab.c: Update.
1810
1f2baacc
MK
18112002-10-25 Mark Kettenis <[email protected]>
1812
0c1a73d6
MK
1813 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1814 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1815 (x86_64_init_abi): ...new function.
1816
6aee4d54 1817 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
1818 * i386v-nat.c: Include "i386-tdep.h".
1819
8f9cbe01
AC
18202002-10-25 Andrew Cagney <[email protected]>
1821
5f11f355
AC
1822 * gdbtypes.c (address_space_name_to_int): Update.
1823 (address_space_int_to_name): Update.
1824 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1825 multi-arch predicate.
1826 (address_class_name_to_type_flags): Ditto.
1827 * gdbarch.h, gdbarch.c: Re-generate.
1828
8f9cbe01
AC
1829 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1830
e8d96a5d
MH
18312002-10-24 Martin M. Hunt <[email protected]>
1832
1833 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1834
fe39c653
EZ
18352002-10-24 Elena Zannoni <[email protected]>
1836
1837 * symtab.h (INIT_SAL): Delete macro.
1838 (init_sal): Export.
1839 * symtab.c (init_sal): New function.
1840
1841 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1842 to init_sal function call.
1843 (find_sal_from_funcs_and_line): Ditto.
1844 (all_sals_for_line): Ditto.
1845 * breakpoint.c (create_internal_breakpoint): Ditto.
1846 (create_fork_vfork_event_catchpoint): Ditto.
1847 (create_exec_event_catchpoint): Ditto.
1848 (parse_breakpoint_sals): Ditto.
1849 (watch_command_1): Ditto.
1850 (handle_gnu_4_16_catch_command): Ditto.
1851 (clear_command): Ditto.
1852 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1853 * infcmd.c (run_stack_dummy): Ditto.
1854 * infrun.c (process_event_stop_test): Ditto.
1855 (check_sigtramp2): Ditto.
1856 (step_over_function): Ditto.
1857 * linespec.c (decode_line_2): Ditto.
1858 (decode_line_1): Ditto.
1859 * source.c (line_info): Ditto.
1860 * symtab.c (find_pc_sect_line): Ditto.
1861
baed091b
ML
18622002-10-24 Michal Ludvig <[email protected]>
1863
1864 * dwarf2cfi.c (struct context)
1865 (struct context_reg): Moved to dwarf2cfi.h
1866 (context_alloc, frame_state_alloc, context_cpy):
1867 Made extern instead of static, removed prototypes.
1868 * dwarf2cfi.h (struct context)
1869 (struct context_reg): New, moved from dwarf2cfi.c
1870 (context_alloc, frame_state_alloc, context_cpy):
1871 New prototypes.
1872 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1873 Changed from static to extern.
1874 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1875 (LINUX_SIGCONTEXT_FP_OFFSET)
1876 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1877 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1878 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1879 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1880 set_gdbarch_*() calls now use x86-64 specific functions
1881 instead of DWARF2 CFI ones.
1882 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1883 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1884 (x86_64_init_extra_frame_info): New prototypes.
1885
c38da1af
DC
18862002-10-23 David Carlton <[email protected]>
1887
1888 * linespec.c: #include "parser-defs.h".
1889 Delete prototype for find_template_name_end.
1890 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1891
fb9b6b35
JJ
18922002-10-23 Jeff Johnston <[email protected]>
1893
1894 * NEWS: add recent mi fixes.
1895 * varobj.c (struct varobj): Add new "updated" flag.
1896 (new_variable): Default "updated" flag to 0.
1897 (varobj_set_value): Set "updated" flag to 1 if value
1898 changes.
1899 (varobj_update): Check varobj "updated" flag before
1900 comparing old and refreshed values. Fix for
1901 PR gdb/702.
1902
8da065d5
DC
19032002-10-23 David Carlton <[email protected]>
1904
1905 * parse.c (parse_exp_1): Use BLOCK_START.
1906 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1907 SYMBOL_BLOCK_VALUE.
1908 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1909
87f2f08c
DC
19102002-10-23 David Carlton <[email protected]>
1911
1912 * symtab.c: Delete cplusplus_hint.
1913 Delete prototype for find_template_name_end.
1914
88cda038
EZ
19152002-10-23 Elena Zannoni <[email protected]>
1916
1917 * symtab.h: Update comment.
1918
2625d86c
MS
19192002-10-23 Michael Snyder <[email protected]>
1920
1921 * printcmd.c (address_info): Restore quotes in output.
1922 * valops.c (value_of_local): Restore quotes in error message.
1923
9cc0d196
EZ
19242002-10-23 Elena Zannoni <[email protected]>
1925
1926 * symtab.c (symbol_demangled_name): New function.
1927 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1928 turning most of it into a function.
1929 (symbol_demangled_name): Export.
1930
19de93d0
MS
19312002-10-23 Michael Snyder <[email protected]>
1932
1933 * valops.c (value_of_local): Restore quotes in error message.
1934
89aad1f9
EZ
19352002-10-23 Elena Zannoni <[email protected]>
1936
1937 * symtab.c (symbol_init_language_specific): New function.
1938 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1939 turning most of it into a function.
1940 (symbol_init_language_specific): Export.
1941
d9fa45fe
DC
19422002-10-23 David Carlton <[email protected]>
1943
1944 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1945 (dwarf_attr_name): Ditto.
1946 (dwarf_type_encoding_name): Ditto.
1947 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1948 (process_die): Handle DW_TAG_namespace,
1949 DW_TAG_imported_declaration, DW_TAG_imported_module.
1950 (read_namespace): New function.
1951
1045b512
JB
19522002-10-22 Joel Brobecker <[email protected]>
1953
1954 * configure.in: Define NEW_PROC_API on Interix too.
1955 * configure: Regenerate.
1956
19572002-10-21 Joel Brobecker <[email protected]>
8ec41317
JB
1958
1959 * configure: Regenerate using the proper version of autoconf.
1960
3987b9d4
EZ
19612002-10-21 Elena Zannoni <[email protected]>
1962
1963 * findvar.c (read_var_value): Temporarily disable TLS code, until
1964 complete TLS support is added.
1965
9d774e44
EZ
19662002-10-21 Jim Blandy <[email protected]>
1967 Elena Zannoni <[email protected]>
1968
1969 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1970 for thread local storage locations.
1971 (struct symbol): Add objfile field.
1972 (SYMBOL_OBJFILE): Define.
1973 * dwarf2read.c (is_thread_local): New static variable.
1974 (new_symbol): If variable is in thread local fill in address class
1975 and objfile appropriately.
1976 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1977 stack operation.
1978 * printcmd.c (address_info): Print the information for thread
1979 local storage variable.
1980 * findvar.c (read_var_value): In case of thread local variable,
1981 defer to the target vector code to compute address.
1982
bc4a16ae
EZ
19832002-10-21 Elena Zannoni <[email protected]>
1984
1985 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1986 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1987
407caf07
EZ
19882002-10-21 Elena Zannoni <[email protected]>
1989
1990 * symtab.h (address_class): Rename
1991 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1992 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1993 * printcmd.c (address_info): Ditto.
1994 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1995
005328e3
MK
19962002-10-20 Mark Kettenis <[email protected]>
1997
afdb036a
MK
1998 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1999 DBREG_DRX macro to acces debug registers.
2000
ca02e098
MK
2001 * Makefile.in (i386obsd-tdep.o): New target.
2002
03cc47f7
MK
2003 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2004 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2005
005328e3
MK
2006 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2007 * config/i386/obsd.mt: New file.
2008 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2009 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2010 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2011 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2012 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2013 * i386obsd-tdep.c: New file.
2014
9c96f9f2
AF
20152002-10-19 Adam Fedor <[email protected]>
2016
2017 * objc-exp.y (name_not_typename): Fix invalid comment.
2018
ce1ed485
MK
20192002-10-20 Mark Kettenis <[email protected]>
2020
2021 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2022 to allocate partial syms and macro byte caches.
2023
1efc7aaa
DC
20242002-10-18 David Carlton <[email protected]>
2025
2026 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2027
7e1d63ec
AF
20282002-10-18 Adam Fedor <[email protected]>
2029
2030 * stabsread.c (find_name_end): New function.
2031 (define_symbol): Use it.
2032
6e8d29a9
DJ
20332002-10-18 Daniel Jacobowitz <[email protected]>
2034
2035 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2036 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2037 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2038 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2039
1efc7aaa 20402002-10-17 David Carlton <[email protected]>
63ca651f
DC
2041
2042 * symfile.h: Add opaque declaration for struct obstack.
2043 Declare obsavestring to take a const char *.
2044 * symfile.c (obsavestring): Make first argument a const char *.
2045
1aeae86e
AF
20462002-10-16 Adam Fedor <[email protected]>
2047
2048 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2049 names when matching breakpoints in current file.
2050
8b2dbe47
KB
20512002-10-16 Kevin Buettner <[email protected]>
2052
2053 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2054 (read_tag_pointer_type): Add address class support.
2055 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2056 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2057 New methods.
2058 * gdbarch.h, gdbarch.c: Regenerate.
2059 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2060 (make_type_with_address_space, recursive_type_dump): Add address
2061 class support.
2062 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2063 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2064 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2065
74451869
KD
20662002-10-16 Klee Dienes <[email protected]>
2067
2068 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2069 to get the last character of a char[] buffer, not
2070 name[sizeof(vptr_name)-1].
2071
ff4cb3e8
AF
20722002-10-14 Adam Fedor <[email protected]>
2073
2074 * symtab.h: New objc_specific struct.
2075 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2076 (SYMBOL_DEMANGLED_NAME): Likewise.
2077
da2cf7e0
AF
20782002-10-14 Adam Fedor <[email protected]>
2079
2080 * symfile.c (init_filename_language_table): Add ObjC file extension.
2081
4a351cef
AF
20822002-10-14 Adam Fedor <[email protected]>
2083
2084 * utils.c (puts_filtered_tabular): New function.
2085 (fprintf_symbol_filtered): Get ObjC demangled name.
2086 * defs.h (puts_filtered_tabular): Declared.
2087
9750e763
KB
20882002-10-14 Kevin Buettner <[email protected]>
2089
2090 * c-lang.h (c_type_print_varspec_prefix): Delete.
2091 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2092 ``need_post_space'' parameter. Adjust all callers.
2093
eee771c1
DJ
20942002-10-14 Daniel Jacobowitz <[email protected]>
2095
2096 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2097 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2098 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2099 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2100
46c82446
AF
21012002-10-13 Adam Fedor <[email protected]>
2102
2103 * source.c (print_source_lines): Update comments.
2104
d069f99d
AF
21052002-10-13 Adam Fedor <[email protected]>
2106
2107 * valops.c (value_of_local): New function.
2108 (value_of_this): Use it.
2109 * value.h (value_of_local): Declared.
2110
53c551b7
AF
21112002-10-13 Adam Fedor <[email protected]>
2112
2113 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2114 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2115
eb392fbf
AF
21162002-10-12 Adam Fedor <[email protected]>
2117
2118 * language.c (binop_result_type): Add language_objc to case.
2119 (integral_type): Likewise.
2120 (character_type): Likewise.
2121 (string_type): Likewise.
2122 (boolean_type): Likewise.
2123 (structured_type): Likewise.
2124 (binop_type_check): Likewise.
2125
e2b23ee9
AF
21262002-10-11 Adam Fedor <[email protected]>
2127
2128 * printcmd.c (address_info): Print 'self' for ObjC.
2129
b01ab485
AF
21302002-10-11 Adam Fedor <[email protected]>
2131
2132 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2133 OP_SELF.
2134
806e6073
AF
21352002-10-11 Adam Fedor <[email protected]>
2136
2137 * language.h (CAST_IS_CONVERSION): Add language_objc.
2138
50f85cdf
AF
21392002-10-11 Adam Fedor <[email protected]>
2140
2141 * defs.h (enum language): Add language_objc.
2142
0d540cdf
KD
21432002-10-11 Klee Dienes <[email protected]>
2144
69266111 2145 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
2146 * gdbcore.h (read_memory_typed_address): Add prototype.
2147 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2148 to read a value destined for a CORE_ADDR, not read_memory_integer.
2149 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2150 (f77_get_dynamic_lowerbound): Ditto.
2151
d5dc7960
MH
21522002-10-11 Martin M. Hunt <[email protected]>
2153
2154 * utils.c (string_to_core_addr): After turning string into
2155 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2156 which will do necessary sign-extension, etc.
2157
8343f86c
DJ
21582002-10-11 Daniel Jacobowitz <[email protected]>
2159
2160 * c-exp.y (THIS): Delete token and grammar rule.
2161 (yylex): Don't return THIS.
2162 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2163 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2164 * demangle.c (cplus_markers): Update comment. Put '$'
2165 first. Remove CPLUS_MARKER.
2166 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2167 * jv-exp.y (THIS): Delete token and grammar rule.
2168 (yylex): Don't return THIS.
2169 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2170 * objc-exp.y (THIS): Delete token and grammar rule.
2171 (yylex): Don't return THIS.
2172 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2173 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2174 (read_member_functions): Likewise for opname.
2175 (read_tilde_fields): Use is_cplus_marker.
2176
2177 * defs.h (CPLUS_MARKER): Don't define.
2178 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2179 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2180 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2181 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2182 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2183
2184 * config/i386/tm-i386v4.h: Delete file.
2185 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2186 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2187 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2188 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2189 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2190 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2191 * config/i386/i386v4.mt (TM_FILE): Likewise.
2192 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2193
967c0d83
MM
21942002-10-10 Marko Mlinar <[email protected]>
2195
2196 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2197 accidentially not commited 2002-10-09
2198 * gdbarch.h, gdbarch.c: Re-generate.
2199
f74fa174
MM
22002002-10-09 Marko Mlinar <[email protected]>
2201
2202 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2203 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2204 * gdbarch.h, gdbarch.c: Re-generate.
2205
57349743
JB
22062002-10-08 Petr Sorfa <[email protected]>
2207
2208 Revised and re-submitted by John Wolfe <[email protected]>
2209
2210 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2211 so we can work on more than one compilation unit at a time. This
2212 helps prepare GDB to handle inter-CU die references.
2213 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2214 the code to be defined before struct comp_unit_head.
2215 (comp_unit_head): Added new members - offset, cu_head,
2216 begin_die, next and dwarf2_abbrevs.
2217 (dwarf2_abbrevs): Removed single static var; now member of
2218 struct comp_unit_head.
2219 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2220 members.
2221 (psymtab_to_symtab_1): Changed to work with the new
2222 struct comp_unit_head.
2223 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2224 constructs the dwarf2_abbrevs[] inside the cu_header.
2225 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2226 dwarf2_abbrev table to clean up.
2227 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2228 handling of dwarf2_abbrevs inside the cu_header.
2229 (read_partial_die): Now supports the call to the new
2230 dwarf2_lookup_abbrev.
2231 (read_full_die): Now supports the call to the new
2232 dwarf2_lookup_abbrev.
2233
4092aadb
CF
22342002-10-06 Christopher Faylor <[email protected]>
2235
2236 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2237 insure that shell variables, such as "transformed_name" are propagated
2238 to later shell statements in rule.
2239
af0b2512
MK
22402002-10-06 Mark Kettenis <[email protected]>
2241
2242 * config/i386/nm-i386sco.h: Add protection against
2243 multiple-inclusion. Include "i386/nm-i386v.h".
2244 (REGISTER_U_ADDR): Remove define.
2245 (i386_register_u_addr): Remove prototype.
2246
d6020d45
MS
22472002-10-04 Michael Snyder <[email protected]>
2248
2249 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2250 before treating it as a single-step event.
2251
7248f48e
AF
22522002-10-03 Adam Fedor <[email protected]>
2253
2254 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2255 (objc_demangle): Remove assignment in if statements, Replace
2256 free with xfree.
2257 (add_msglist): Likewise.
2258 (end_msglist): Likewise.
2259 (complare_selectors): Likewise.
2260 (selectors_info): Likewise.
2261 (compare_classes): Likewise.
2262 (classes_info): Likewise.
2263 (print_object_command): Likewise.
2264 (find_objc_msgcall_submethod): Replace PTR with void *.
2265 * objc-lang.h: Remove check for __STDC__.
2266
52c6a6ac
JJ
22672002-10-03 Jeff Johnston <[email protected]>
2268
2269 * ui-out.h (ui_out_field_fmt_int): New prototype.
2270 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2271 of field width and alignment.
2272 * stack.c (print_frame_info_base): When printing frame level, use
2273 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2274 PR gdb/192
2275
7e3cec17
JJ
22762002-10-03 Jeff Johnston <[email protected]>
2277
2278 * MAINTAINERS: Add self to Write After Approval list.
2279
a58dd373
EZ
22802002-10-02 Elena Zannoni <[email protected]>
2281
2282 * infcmd.c (interrupt_target_command_wrapper): Delete.
2283 (interrupt_target_command): Make non static.
2284 (nofp_registers_info): Make static.
2285 * stack.c (return_command_wrapper): Delete.
2286 (return_command): Make non static.
2287
cee6ddeb
EZ
22882002-10-02 Elena Zannoni <[email protected]>
2289
2290 * event-top.c (gdb_setup_readline): New function. Code moved from
2291 _initialize_event_loop().
2292 (_initialize_event_loop): Call gdb_setup_readline().
2293
c4ed33b9
AC
22942002-10-02 Andrew Cagney <[email protected]>
2295
2296 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2297 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2298 * gdbarch.h, gdbarch.c: Re-generate.
2299
cef4f5dd
DJ
23002002-10-02 Daniel Jacobowitz <[email protected]>
2301
2302 Fix PR gdb/778
2303 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2304 before recursing.
2305 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2306 of fill_in_vptr_fieldno.
2307
36dc181b 23082002-10-02 Elena Zannoni <[email protected]>
cee6ddeb 2309
36dc181b
EZ
2310 * inferior.h (registers_info, stepi_command, nexti_command,
2311 continue_command, interrupt_target_command): Export from infcmd.c.
2312 * frame.h (args_info, selected_frame_level_changed_hook,
2313 return_command): Export from stack.c.
2314 * v850ice.c (stepi_command, nexti_command, continue_command): use
2315 prototypes from inferior.h.
2316 * tracepoint.c (registers_info, args_info, locals_info): Use
2317 prototypes from frame.h and inferior.h.
2318 * Makefile.in (mi-main.o): Add dependency on frame.h.
2319
6f99cb26
AC
23202002-10-02 Andrew Cagney <[email protected]>
2321
da3eff49
AC
2322 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2323 value in register 3 adjusted by ppc_gp0_regnum.
2324
6f99cb26
AC
2325 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2326
da615bee
MM
23272002-10-02 Marko Mlinar <[email protected]>
2328
2329 * MAINTAINERS: Add myself to the Write After Approval list.
2330
d154bee2
AO
23312002-10-01 Alexandre Oliva <[email protected]>
2332
62a49b2c
AO
2333 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2334 of the section for the N64 ABI, fixed.
2335
d154bee2
AO
2336 * config/mips/tm-irix6.h: Include solib.h.
2337
ed348acc
EZ
23382002-10-01 Elena Zannoni <[email protected]>
2339
2340 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2341 GNU operators.
2342
da0f9dcd
AC
23432002-10-01 Andrew Cagney <[email protected]>
2344
2345 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2346 and that "mi0" syntax has been removed.
2347
bdf64bac
DC
23482002-09-30 David Carlton <[email protected]>
2349
2350 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2351 * ppc-sysv-tdep.c: #include "gdb_string.h".
2352 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2353 pacify GCC.
2354
54c2a1e6
AC
23552002-10-01 Andrew Cagney <[email protected]>
2356
2357 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2358 "vrsave"'s register number.
2359
cedea778
AC
23602002-09-30 Andrew Cagney <[email protected]>
2361
2362 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2363 use frame_unwind_signed_register to obtain the PC.
2364 (mips_frame_chain): Handle a generic dummy frame.
2365 (mips_init_extra_frame_info): When a generic dummy frame, don't
2366 re-compute the frame base.
2367 (mips_pop_frame): Handle generic dummy frames.
2368 (mips_gdbarch_init): When generic dummy frames, set
2369 use_generic_dummy_frames, push_dummy_frame to
2370 generic_push_dummy_frame, pc_in_call_dummy to
2371 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2372 generic_save_dummy_frame_tos.
2373
68315eb8
AC
23742002-09-30 Andrew Cagney <[email protected]>
2375
2376 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2377 against TOP when TOP was explictly set.
2378 (generic_push_dummy_frame): Set TOP to zero.
2379
3b8630c3
EZ
23802002-09-30 Elena Zannoni <[email protected]>
2381
2382 * event-loop.c (start_event_loop): Rename variable 'result' to
2383 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2384
28ee05e9
KS
23852002-09-30 Keith Seitz <[email protected]>
2386
2387 * gdb-events.sh (selected_thread_changed): New event.
2388 * gdb-events.c: Regenerated.
2389 * gdb-events.h: Regenerated.
2390
6eecb1c8
HPN
23912002-09-30 Hans-Peter Nilsson <[email protected]>
2392
2393 * MAINTAINERS: Add self to Write After Approval list.
2394
92df71f0
FN
23952002-09-30 Fernando Nasser <[email protected]>
2396
3b8630c3
EZ
2397 * disasm.c: New file.
2398 * disasm.h: New file.
92df71f0
FN
2399 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2400 (compare_lines): Ditto.
2401 (dump_insns): Ditto.
3b8630c3
EZ
2402 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2403 argument.
92df71f0 2404 (do_assembly_only): Ditto.
3b8630c3
EZ
2405 (do_disassembly): Renamed to gdb_disassembly and moved to
2406 disasm.c. Sdded uiout argument.
2407 * Makefile.in: Add new files. Reorder SFILES list. Update
2408 dependencies. Include libgdb.a later in the insight executable.
92df71f0 2409
0c22854d
AC
24102002-09-29 Andrew Cagney <[email protected]>
2411
2412 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2413 bfd/elf64-alpha-fbsd.c.
2414
e67f2023
AC
24152002-09-29 Andrew Cagney <[email protected]>
2416
2417 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2418 i386gnu-tdep.c.
2419
89396210
AC
24202002-09-29 Andrew Cagney <[email protected]>
2421
2422 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2423 __FUNCTION__.
2424 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2425 function name.
2426 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2427 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2428 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2429 (S_msg_sig_post_reply): Ditto.
2430
7079c36c
CV
24312002-09-28 Corinna Vinschen <[email protected]>
2432
89396210
AC
2433 * sh-tdep.c (sh_use_struct_convention): Use definition according
2434 to ABI.
7079c36c
CV
2435 (sh_push_arguments): Store in register with correct endianess.
2436 (sh_default_store_return_value): Ditto.
2437 (sh_gdbarch_init): Set sizeof long double to 8.
2438
975ac915
MK
24392002-09-27 Mark Kettenis <[email protected]>
2440
2441 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2442 Fix some whitespace problems.
2443
9bbe19fb
DC
24442002-09-27 David Carlton <[email protected]>
2445
2446 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2447 (mcore-tdep.o): Ditto.
2448 (ns32k-tdep.o): Ditto.
2449 (ns32knbsd-tdep.o): Ditto.
2450 (sh3-rom.o): Ditto.
2451 (vax-tdep.o): Ditto.
2452 * cris-tdep.c: #include "gdb_string.h"
2453 * mcore-tdep.c: Ditto.
2454 * ns32k-tdep.c: Ditto.
2455 * ns32knbsd-tdep.c: Ditto.
2456 * sh3-rom.c: Ditto.
2457 * vax-tdep.c: Ditto.
2458
43b2fdc7
DC
24592002-09-27 David Carlton <[email protected]>
2460
2461 * config/djgpp/fnchange.lst: Add entries for
2462 gdb/testsuite/gdb.c++/m-static files.
2463
e8cfbbd9
JW
24642002-09-27 Jim Wilson <[email protected]>
2465
2466 * MAINTAINERS: Add myself to the Write After Approval list.
2467
43b2fdc7 24682002-09-26 Martin M. Hunt <[email protected]>
4e0df2df
MH
2469
2470 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2471
2472
9f3b7f07
AC
24732002-09-26 Andrew Cagney <[email protected]>
2474
2475 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2476 frame.
2477
11269d7e
AC
24782002-09-26 Andrew Cagney <[email protected]>
2479
2480 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2481 (rs6000_struct_return_address): Delete variable.
2482 (rs6000_store_struct_return): Update.
2483 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2484 deprecated_extract_struct_value_address.
2485 (rs6000_frame_align): New function.
2486 (rs6000_gdbarch_init): Set frame_align.
2487
f15ab4a7
AC
24882002-09-26 Andrew Cagney <[email protected]>
2489
2490 From Grace Sainsbury <[email protected]>:
2491 * Makefile.in (gdbtk-main.o): New target.
2492 (gdb.o): New target.
2493 (main_h): Define.
2494 (main.o): Update dependencies.
2495 (gdb$(EXEEXT)): Add gdb.o.
2496 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2497 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2498 (SUBDIR_GDBTK_CLEAN): Set.
2499 (install-gdbtk): Install the insight binary.
2500 (uninstall-gdbtk): New target.
2501 (all-gdbtk, clean-gdbtk): New rule.
2502 * top.c (use_windows): Default to zero.
2503 * main.c: Include "main.h".
2504 (main): Delete.
2505 (struct captured_main_args): Delete.
2506 (gdb_main): New function.
2507 * main.h: New file.
2508 * gdb.c: New File.
2509
e36180d7
AC
25102002-09-25 Andrew Cagney <[email protected]>
2511
2512 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2513 (frame_map_regnum_to_name): New function.
2514 (frame_map_name_to_regnum): New function.
2515 * frame.h (frame_map_name_to_regnum): Declare.
2516 (frame_map_regnum_to_name): Declare.
2517 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2518 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2519 * parse.c: Do not include "builtin-regs.h".
2520 (target_map_name_to_register): Delete function.
2521 (write_dollar_variable): Use frame_map_name_to_regnum.
2522 * parser-defs.h (target_map_name_to_register): Delete declaration.
2523 * expprint.c: Include "frame.h".
2524 (print_subexp): Use frame_map_regnum_to_name.
2525 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2526 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2527
8b69000d
AC
25282002-09-25 Andrew Cagney <[email protected]>
2529
2530 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2531 wasn't saved, and the next innermost frame is a dummy, return the
2532 dummy frame's link register.
2533
046ca86a
JB
25342002-09-24 Jim Blandy <[email protected]>
2535
2536 Fix from Paul Breed:
2537 * main.c (captured_main): Add a `break' after the case for 'b'.
2538
94b66fa7
KS
25392002-09-24 Keith Seitz <[email protected]>
2540
2541 * varobj.c (c_type_of_child): Use get_target_type instead
2542 of TYPE_TARGET_TYPE.
2543
c214a6fd
FN
25442002-09-22 Fernando Nasser <[email protected]>
2545
53cb0458
FN
2546 * source.c (get_current_or_default_source_symtab_and_line): Remove
2547 function.
2548 (set_default_source_symtab_and_line): New function. Attempts to
2549 determine a source file to list lines from if one is not currently
2550 defined.
2551 (get_current_source_symtab_and_line): Initialize sal.pc and
2552 sal.end fields.
2553 (set_current_source_symtab_and_line): Mark argument as const.
2554 * source.h: Update declarations and comments.
2555 * linespec.c (decode_line_1): Replace call to removed routine above.
2556 * stack.c (print_frame_info_base): Ditto.
2557 * cli/cli-cmds.c (edit_command): Ditto.
2558 (list_command): Ditto.
2559
25602002-09-22 Fernando Nasser <[email protected]>
2561
d6020d45 2562 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2563 sal.pc and sal.end fields.
c214a6fd
FN
2564 (get_current_or_default_source_symtab_and_line): Ditto.
2565 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2566 so we do not cause a new source symtab to be searched for (reverting an
2567 unintentional change from the 2002-09-20 patch).
2568 * scm-lang.c (scm_unpac): Ditto.
2569
cc3b68a5
AC
25702002-09-21 Andrew Cagney <[email protected]>
2571
2572 * complaints.c (symfile_explanations): Remove new-line from
2573 ``isolated_message''.
2574 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2575 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2576
5835abe7
NC
25772002-09-20 Nick Clifton <[email protected]>
2578
2579 * NEWS: Announce that V850EA ISA is no longer supported.
2580 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2581
a15ef5f5
DC
25822002-09-20 David Carlton <[email protected]>
2583
06ba1b39
DC
2584 * Makefile.in (c-lang.o): Correct dependencies.
2585 (utils.o): Gather dependencies.
2586 (charset.o): Move.
a15ef5f5
DC
2587 * c-lang.c: #include "gdb_string.h"
2588
87885426
FN
25892002-09-20 Fernando Nasser <[email protected]>
2590
2591 From 2002-07-02 George Helffrich <[email protected]>
2592 * cli/cli-cmds.c (list_command): New function. Implements the new
2593 cli edit command.
2594 (_init_cli_cmds): Add new command definition.
2595 * gdb.1: Document edit command.
2596 * doc/gdb.texinfo: Document edit command.
2597
25982002-09-20 Fernando Nasser <[email protected]>
0378c332
FN
2599
2600 * source.c: Make global variables current_source_symtab and
2601 current_source_line static.
2602 (list_command): Moved to cli/cli-cmds.c.
2603 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2604 (get_first_line_listed): New accessor function.
2605 (get_lines_to_list): New accessor function.
2606 (get_current_source_symtab_and_line): New function. Retrieves the
2607 position in the source code that we consider current.
2608 (get_current_or_default_source_symtab_and_line): New function.
2609 Like the above but attempts to determine a default position if one
2610 is not currently defined.
2611 (set_current_source_symtab_and_line): New function. Sets the source
2612 code position considered current and returns the previously set one.
2613 (clear_current_source_symtab_and_line): Reset stored information about
2614 a current source line.
2615 (_initialize_source): Remove registration for the "list" command and
2616 its alias.
2617 * source.h: Add declarations for the new functions above.
2618 * symtab.h: Remove declarations for the global variables mentioned
2619 above.
2620 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2621 obtain current source line.
2622 * linespec.c (decode_line_1): Ditto.
2623 * macroscope.c (default_macro_scope): Ditto.
2624 * scm-lang.c (scm_unpac): Ditto.
2625 * stack.c (print_frame_info_base): Ditto.
2626 * symfile.c (clear_symtab_users): Ditto.
2627 * symtab.c (decode_line_spec): Ditto.
2628 * cli/cli-cmds.c (list_command): Moved here from source.c.
2629 (ambiguous_line_spec): Moved here from source.c.
2630 (_init_cli_cmds): Add definition for "list" and its alias.
2631 * Makefile.in: Update dependencies.
2632
ddd216ea
CV
26332002-09-20 Corinna Vinschen <[email protected]>
2634
2635 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2636 with what gcc thinks is correct.
2637
6d305052
CV
26382002-09-20 Corinna Vinschen <[email protected]>
2639
2640 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2641 multiple register push instruction.
2642
234b45d4
KB
26432002-09-19 Jim Blandy <[email protected]>
2644
2645 Add support for distinct host and target character sets.
2646 * charset.c, charset.h: New files.
2647 * c-exp.y: #include "charset.h".
2648 (yylex): Convert character and string literals to the target
2649 character set, before returning them as the semantic value of the
2650 token.
2651 * c-lang.c: #include "charset.h".
2652 (c_emit_char): Use charset-specific methods to recognize
2653 characters with backslash escape forms, to decide which characters
2654 to print literally and which to print using numeric escape
2655 sequences, and to convert target characters to host characters
2656 before printing.
2657 * utils.c: #include "charset.h".
2658 (no_control_char_error): New function.
2659 (parse_escape): Use charset-specific methods to recognize
2660 backslash escapes, parse `control character' notation, and convert
2661 characters from the host character set to the target character set.
2662 * configure.in: Set the default host character set.
2663 Check where to find iconv, and what its argument types might be.
2664 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2665 * Makefile.in (SFILES): List charset.c.
2666 (COMMON_OBS): List charset.o.
2667 (charset.o): New rule.
2668 (charset_h): New header dependency variable.
2669 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2670 (LIBICONV): New variable, set by configure.
2671 (CLIBS): Include $(LIBICONV) here.
2672 * aclocal.m4, config.in, configure: Regenerated.
2673
525d6a61
JB
26742002-09-19 Joel Brobecker <[email protected]>
2675
2676 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2677 bison 1.35 warning.
2678
3ed93867
RE
26792002-09-19 Richard Earnshaw <[email protected]>
2680
2681 * gdb_mbuild.sh: New file.
2682
437666f8
AC
26832002-09-19 Andrew Cagney <[email protected]>
2684
2685 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2686
389e51db
AC
26872002-09-18 Andrew Cagney <[email protected]>
2688
2689 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2690 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2691 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2692 valops.c, value.h: Revert previous change.
2693
3b4efeaa
MS
26942002-09-18 Michael Snyder <[email protected]>
2695
2696 Preliminary support for Objective-C:
2697 * defs.h (language_objc): New enum value.
2698 (puts_filtered_tabular): Declaration only, exported from utils.c.
2699 (skip_quoted): Delete, declared in completer.h.
2700 * c-exp.y: Include completer.h.
2701 * p-exp.y: Ditto.
2702 * jv-exp.y: Ditto.
2703 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2704 New operator enum values.
2705 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2706 * language.c (binop_result_type): Handle language_objc case.
2707 (integral_type, character_type, string_type, boolean_type,
2708 structured_type, binop_type_check): Ditto.
2709 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2710 (struct objc_specific): Add to general_symbol_info.
2711 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2712 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2713 * parser-defs.h (struct objc_class_str): New struct type.
2714 (start_msglist, end_msglist, add_msglist): Declaration only,
2715 exported from objc-lang.c.
2716 * value.h (value_of_local, value_nsstring,
2717 call_function_by_hand_expecting_type): Exported from valops.c.
2718 * valops.c (find_function_addr): Export.
2719 (call_function_by_hand_expecting_type): New function.
2720 (value_of_local): New function.
2721 * symfile.c (init_filename_language_table): Add ".m" extension
2722 for Objective-C.
2723 * utils.c (puts_filtered_tabular): New function.
2724 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2725 (set/show demangle): Extend help-string to refer to ObjC.
2726 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2727 * stabsread.c (symbol_reference_defined): Objective-C symbols
2728 may contain colons: make allowances when scanning stabs strings
2729 for colons.
2730 (objc_find_colon): New function.
2731 * printcmd.c (address_info): If language == objc then print
2732 "self" instead of "this".
2733 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2734 OP_NSSTRING, and OP_SELF.
2735 (prefixify_subexp): Ditto.
2736 * source.c (print_source_lines): Mention objc in comment.
2737 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2738 method names.
2739
b9caf505
AC
27402002-09-18 Andrew Cagney <[email protected]>
2741
2742 * complaints.h: Update copyright.
2743 (struct complaints): Declare.
2744 (struct complaint): Make `message' constant.
2745 (internal_complaint): Declare.
2746 (complaint): Declare.
2747 (complaint_root): Delete declaration.
2748 (symfile_complaints): Delete declaration.
2749 (struct complaints): Add opaque declaration.
2750 (clear_complaints): Add a complaints parameter.
2751 * complaints.c: Update copyright.
2752 (enum complaint_series): Define.
2753 (complaint_root): Delete.
2754 (struct complaints): Define.
2755 (complaint_sentinel, symfile_complaint_book): New variables.
2756 (symfile_explanations, symfile_complaints): New variables.
2757 New variables.
2758 (get_complaints): New function.
2759 (vcomplaint): New function.
2760 (complaint): New function.
2761 (internal_complaint): New function.
2762 (complain): Call vcomplain with symfile_complaint.
2763 (clear_complaints): Rewrite.
2764 (_initialize_complaints): Use add_setshow_command.
2765 * Makefile.in (complaints.o): Update dependencies.
2766 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2767 to call to clear_complaints.
2768 (new_symfile_objfile, reread_symbols): Ditto.
2769 (oldsyms_complaint): Delete.
2770 (empty_symtab_complaint, unknown_option_complaint): Delete.
2771 (free_named_symtabs): Use complaint instead of complain.
2772
d2e6263c
MS
27732002-09-18 Michael Snyder <[email protected]>
2774
5fb2031a
AC
2775 Contributed by Apple Computer, Inc. Merged with current sources
2776 by Adam Fedor <[email protected]> [cagney].
2777
d2e6263c
MS
2778 * objc-lang.c: First clean-up round: comments, indentation.
2779 * objc-lang.h: Ditto.
2780 * objc-lang.y: Ditto.
2781
dec43320
AC
27822002-09-18 Andrew Cagney <[email protected]>
2783
2784 * maint.c (maintenance_internal_error): Print the parameter as the
2785 error message.
2786 (maintenance_internal_warning): New function.
2787 (_initialize_maint_cmds): Add command `maint internal-warning'.
2788
2789 * defs.h (internal_warning, internal_vwarning): Declare.
2790 * utils.c (struct internal_problem): Define.
2791 (internal_vproblem): New function.
2792 (internal_warning): New function.
2793 (internal_vwarning): New function.
2794 (internal_warning_problem, internal_error_problem): New variables.
2795 (internal_verror): Just call internal_vproblem.
2796
b81654f1
MS
27972002-09-18 Michael Snyder <[email protected]>
2798
2799 * objc-lang.c: New file, support for Objective-C.
2800 Preliminary check-in, not yet integrated into gdb.
2801 * objc-lang.h: New file.
2802 * objc-exp.y: New file.
2803
0542c381
AC
28042002-09-18 Andrew Cagney <[email protected]>
2805
7bda5e4a
AC
2806 * infrun.c (signal_stop_update): Convert definition to ISO C.
2807 (signal_print_update): Ditto.
2808 (signal_pass_update): Ditto.
2809 * inflow.c (terminal_save_ours): Ditto.
2810
5247b418
AC
2811 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2812 comments.
2813
fc60962c
AC
2814 * config/djgpp/fnchange.lst: Handle name clashes between
2815 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2816 bfd/coff-tic80.c.
2817
0542c381
AC
2818 * i386-linux-tdep.h: Fix tipo.
2819
5b924b9b
AF
28202002-09-18 Adam Fedor <[email protected]>
2821
2822 * MAINTAINERS: Add myself to the Write After Approval list.
2823
5afc051b
JB
28242002-09-18 Jim Blandy <[email protected]>
2825
2826 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2827 texthigh and textlow to reader-specific structs caused
2828 objfile_relocate to miss them. This is fixable, but the work that
2829 the change was supposed to prepare GDB for never got done anyway.
2830
eb944380
DC
28312002-09-18 David Carlton <[email protected]>
2832
2833 * MAINTAINERS: Alphabetize Write After Approval list.
2834
948e66d9
DJ
28352002-09-18 Daniel Jacobowitz <[email protected]>
2836
2837 Fix PR gdb/709
2838 * values.c (value_static_field): Call read_var_value.
2839
dc604539
AC
28402002-09-18 Andrew Cagney <[email protected]>
2841
2842 * valops.c (hand_function_call): Align the initial stack pointer
2843 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2844 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2845 return value.
2846 * mips-tdep.c (mips_frame_align): New function.
2847 (mips_gdbarch_init): Set frame_align.
2848 * gdbarch.sh (FRAME_ALIGN): New method.
2849 * gdbarch.h, gdbarch.c: Re-generate.
2850
cb7e422f
ML
28512002-09-18 Michal Ludvig <[email protected]>
2852
2853 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2854 registers.
2855
a094c6fb
AC
28562002-09-17 Andrew Cagney <[email protected]>
2857
2858 * NEWS: Mention that MIPS $fp behavior changed.
2859 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2860 reference to FP_REGNUM.
2861 (mipsnbsd_cannot_store_register): Ditto.
2862 * mips-linux-nat.c: Update copyright.
2863 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2864 (mips_linux_cannot_store_register): Ditto.
2865 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2866 * config/mips/tm-mips.h: Update copyright.
2867 (FP_REGNUM): Delete macro.
2868 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2869 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2870 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2871 (mips_r3041_reg_names, mips_r3051_reg_names)
2872 (mips_r3081_reg_names): Replace "fp" with "".
2873 Fix PR gdb/480.
2874
45cf40d1
TR
28752002-09-17 Theodore A. Roth <[email protected]>
2876
2877 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2878 generic_read_register_dummy() (PR gdb/703).
2879 (avr_push_return_address): #if 0 out unused vars.
2880 (avr_gdbarch_init): Enable use of avr_push_return_address().
2881
c7e701b5
MS
28822002-09-17 Michael Snyder <[email protected]>
2883
d76ba2a5 2884 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
2885 RTE will take care of it.
2886
20bcf01c
AC
28872002-09-17 Andrew Cagney <[email protected]>
2888
2889 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2890 invalid, return SP_REGNUM.
2891
009a9971 28922002-09-17 Michael Snyder <[email protected]>
21f87145
MS
2893
2894 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2895 point registers without sign extension.
2896
135c175f
AC
28972002-09-17 Andrew Cagney <[email protected]>
2898
2899 * blockframe.c (deprecated_read_register_dummy): Rename
2900 generic_read_register_dummy.
2901 * frame.c (frame_unwind_signed_register): New function.
2902 (frame_unwind_unsigned_register): New function.
2903 * frame.h (frame_unwind_signed_register): Declare.
2904 (frame_unwind_unsigned_register): Declare.
2905 (deprecated_read_register_dummy): Rename
2906 generic_read_register_dummy.
2907
2908 * h8300-tdep.c (h8300_frame_chain): Update.
2909 (h8300_frame_saved_pc): Update.
2910 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2911 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2912 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2913 (s390_frame_chain): Update.
2914 * v850-tdep.c (v850_find_callers_reg): Update.
2915 (v850_frame_saved_pc): Update.
2916 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2917 (m32r_find_callers_reg): Update.
2918 (m32r_frame_saved_pc): Update.
2919 * sh-tdep.c (sh_find_callers_reg): Update.
2920 (sh64_get_saved_pr): Update.
2921 (sh_init_extra_frame_info): Update.
2922 (sh_init_extra_frame_info): Update.
2923 (sh64_init_extra_frame_info): Update.
2924 (sh64_init_extra_frame_info): Update.
2925 * mcore-tdep.c (mcore_find_callers_reg): Update.
2926 (mcore_frame_saved_pc): Update.
2927 (mcore_init_extra_frame_info): Update.
2928 * i386-tdep.c (i386_frame_saved_pc): Update.
2929 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2930 (ia64_init_extra_frame_info): Update.
2931 (ia64_init_extra_frame_info): Update.
2932 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2933 * cris-tdep.c (cris_init_extra_frame_info): Update.
2934 * avr-tdep.c (avr_frame_chain): Update.
2935 (avr_init_extra_frame_info): Update.
2936 (avr_frame_saved_pc): Update.
2937 * arm-tdep.c (arm_find_callers_reg): Update.
2938 (arm_init_extra_frame_info): Update.
2939 (arm_frame_saved_pc): Update.
2940
a741e514
TT
29412002-09-17 Tom Tromey <[email protected]>
2942
2943 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2944 is "'".
2945
d1a8e808
CV
29462002-09-17 Corinna Vinschen <[email protected]>
2947
2948 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2949 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2950 NEXT_PROLOGUE_INSN.
2951 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2952 NEXT_PROLOGUE_INSN.
2953
d9025a18
JB
29542002-09-16 Joel Brobecker <[email protected]>
2955
2956 * osfsolib.c: Remove file, replaced by solib-osf.c.
2957 * Makefile.in: Remove compilation rules for osfsolib.c.
2958
1b2ef1b6
DC
29592002-09-16 David Carlton <[email protected]>
2960
2961 * cp-valprint.c (cp_print_class_method): Correct args to
2962 check_stub_method_group.
2963
928e48af
CV
29642002-09-16 Corinna Vinschen <[email protected]>
2965
2966 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2967 `set architecture'. Unify naming convention of functions.
2968 (h8300_skip_prologue): Improve prologue analysis.
2969 (h8300_push_arguments): Rewritten to more closely match GCC's
2970 bizarre argument-passing behavior, along with the comment describing
2971 said behavior.
2972 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2973 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2974 sim, remote-e7000.c, remote-hms.c and remote.c
2975
5e3397bb
MK
29762002-09-15 Mark Kettenis <[email protected]>
2977
2978 * i386-tdep.c (gdb_print_insn_i386): Removed.
2979 (i386_print_insn): New function.
2980 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2981 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2982 tm_print_insn_info.
2983
f710f4fc
MK
29842002-09-14 Mark Kettenis <[email protected]>
2985
2986 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2987 zero.
2988
db54fef4
CV
29892002-09-14 Corinna Vinschen <[email protected]>
2990
2991 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2992 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2993 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2994
2becadee
CF
29952002-09-13 Christopher Faylor <[email protected]>
2996
2997 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2998
de17c821
DJ
29992002-09-13 Daniel Jacobowitz <[email protected]>
3000
3001 * gdbtypes.c (check_stub_method): Make static.
3002 (check_stub_method_group): New function.
3003 * gdbtypes.h: Update prototypes.
3004 * cp-support.c: New file.
3005 * cp-support.h: New file.
3006
3007 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3008 (update_method_name_from_physname): New function.
3009 (read_member_functions): Correct method names for operators
3010 and v3 constructors/destructors. Separate v2 constructors and
3011 destructors.
3012 * Makefile.in (stabsread.o): Update dependencies.
3013 (SFILES): Add cp-support.c.
3014 (COMMON_OBS): Add cp-support.o.
3015 (cp_support_h, cp-support.o): Add.
3016
3017 * cp-valprint.c (cp_print_class_method): Call
3018 check_stub_method_group instead of check_stub_method. Remove
3019 extraneous QUITs.
3020 * p-valprint.c (pascal_object_print_class_method): Likewise.
3021 * valops.c (search_struct_method): Likewise.
3022 (find_method_list, value_struct_elt_for_reference): Likewise.
3023
e76cff22
AC
30242002-09-13 Andrew Cagney <[email protected]>
3025
3026 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3027 * gdbarch.h, gdbarch.c: Regenerate.
3028
905abb3f
AC
30292002-09-13 Andrew Cagney <[email protected]>
3030
3031 * frame.c (find_saved_register): Delete function.
3032 * frame.h (find_saved_register): Delete declaration.
3033 Fix PR gdb/631.
3034
64159455
AC
3035Fri Sep 13 14:59:55 2002 Andrew Cagney <[email protected]>
3036
3037 * mips-tdep.c (read_next_frame_reg): Re-hack using
3038 frame_register_unwind.
3039
795e1e11
AC
3040Fri Sep 13 07:42:09 2002 Andrew Cagney <[email protected]>
3041
3042 * mips-tdep.c (mips_get_saved_register): Re-hack using
3043 frame_register_unwind.
3044
5720643c
JB
30452002-09-12 Joel Brobecker <[email protected]>
3046
3047 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3048 vector. Will be useful for Interix.
3049 * gdbarch.h, gdbarch.c: Regenerate.
3050
3051 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3052 name of the malloc function by NAME_OF_MALLOC.
3053
3bada2a2
JB
30542002-09-12 Joel Brobecker <[email protected]>
3055
3056 * value.h (find_function_in_inferior): Add const keyword to
3057 one of the parameters. Allows us to invoke this function with
3058 a const char *.
3059 * valops.c (find_function_in_inferior): Likewise.
3060
3db26b01
JB
30612002-09-12 Joel Brobecker <[email protected]>
3062
3063 * exec.c (xfer_memory): Fix compilation warning with old versions
3064 of GCC.
3065 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3066
17c5ed2c
DC
30672002-09-12 David Carlton <[email protected]>
3068
3069 * symtab.h: Run through gdb_indent.h.
3070 Add 2002 to Copyright year list.
3071
ecd1107e
AM
30722002-09-12 Alan Modra <[email protected]>
3073
3074 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3075 mach constants.
3076 * MAINTAINERS: Add myself to write after approval list.
3077
e64f66d1
JB
30782002-09-11 J. Brobecker <[email protected]>
3079
3080 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3081
f9395794
JB
30822002-09-11 J. Brobecker <[email protected]>
3083
3084 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3085 Interix.
3086
1a303dec
MS
30872002-06-05 Paul N. Hilfinger <[email protected]>
3088
3089 * procfs.c (do_detach): Clear current signal, not just fault.
3090 Corrects problem with breakpoint trap signal leaking to detached
3091 process on Tru64.
3092
c0219d42
MS
30932002-09-10 Michael Snyder <[email protected]>
3094
3095 * buildsym.c (finish_block): Protect against null pointer.
3096
9d84ac84
AC
30972002-09-10 Andrew Cagney <[email protected]>
3098
3099 * infcmd.c (default_print_registers_info): Send all output to
3100 ``file'' instead of ``gdb_stdout''.
3101
77d8f2b4
MS
31022002-09-10 Michael Snyder <[email protected]>
3103
3104 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3105 LONGEST, and use signed register read (addresses are sign-
3106 extended for mips).
3107
99656a61
SC
31082002-09-10 Stephane Carrez <[email protected]>
3109
3110 * event-loop.c (gdb_do_one_event): Make public.
3111 * event-loop.h (gdb_do_one_event): Declare.
3112
da12f4d8
JL
31132002-09-10 Jeff Law <[email protected]>
3114
3115 * infttrace.c (child_resume): Simplify and rework to avoid
3116 TT_PROC_CONTINUE.
3117
d0aee0c4
FF
31182002-09-09 Fred Fish <[email protected]>
3119
3120 * printcmd.c (print_scalar_formatted): "len" is the number of
3121 target bytes, NOT the number of target bits.
3122
7cb3ec5e
EZ
31232002-09-09 Elena Zannoni <[email protected]>
3124
3125 From: Emmanuel Thome' <[email protected]>
3126 * top.c (init_main): Set rl_terminal_name.
3127
4dc81987
AS
31282002-09-08 Aidan Skinner <[email protected]>
3129
3130 * ada-lang.c (ada_array_bound, ada_type_match,
3131 _initialize_ada_language): Fix K&R definitions.
3132 * ada-tasks.c (get_current_task): Fix K&R definitions.
3133 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3134
842330b4
CF
31352002-09-07 Christopher Faylor <[email protected]>
3136
3137 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3138 Add XP.
3139
43156d82
MK
31402002-09-06 Mark Kettenis <[email protected]>
3141
66da5fd8
MK
3142 * i386-tdep.c (i386_register_virtual_type,
3143 i386_register_convertible, i386_register_convert_to_virtual,
3144 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3145 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3146 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3147 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3148 Don't set push_arguments twice.
3149
4b218c18
MK
3150 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3151 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3152 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3153 sigtramp_end to NULL.
3154 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3155 defines.
3156 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3157
4cc314d5
MK
3158 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3159 whitespace.
3160
43156d82
MK
3161 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3162 * gdbarch.h, gdbarch.c: Re-generate.
3163 * blockframe.c (find_pc_sect_partial_function): Convert to use
3164 SIGTRAMP_START_P predicate.
3165
6672060b
MS
31662002-09-05 Michael Snyder <[email protected]>
3167
a90c3637
MS
3168 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3169 generic_dummy_frame method and old method. Also distinguish
3170 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 3171 (arm_extract_return_value): Use new regcache method.
a90c3637 3172
6672060b
MS
3173 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3174 adjustment that doesn't conform to the ABI.
3175 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3176 saved regcache, not from current regcache.
3177
299ffc64
AC
31782002-09-05 Andrew Cagney <[email protected]>
3179
3180 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3181 * README: Update.
3182
a3a2ee65
JT
31832002-09-04 Jason Thorpe <[email protected]>
3184
3185 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3186 if arm_apcs_32 is false.
3187
2bc7eea9
AC
31882002-09-04 Andrew Cagney <[email protected]>
3189
3190 GDB 5.3 branch created.
3191
8a55a7c5
TR
31922002-09-03 Theodore A. Roth <[email protected]>
3193
3194 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3195 generic_unwind_get_saved_register.
3196
e26fb1d7
DC
31972002-09-03 David Carlton <[email protected]>
3198
3199 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3200 argument (PR gdb/653). Update call to smash_to_method_type.
3201 (read_structure_scope): Update call to dwarf2_add_member_fn.
3202
30d52491
ML
32032002-09-03 Michal Ludvig <[email protected]>
3204
3205 * x86-64-linux-tdep.c: Include gdb_string.h
3206 * x86-64-linux-nat.c: Ditto.
3207
06891d83
JT
32082002-09-02 Jason Thorpe <[email protected]>
3209
3210 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3211 when YYDEBUG is set to 1.
3212 * c-exp.y: Likewise.
3213 * f-exp.y: Likewise.
3214 * jv-exp.y: Likewise.
3215 * m2-exp.y: Likewise.
3216 * p-exp.y: Likewise.
3217
7d400e77
JT
32182002-09-02 Jason Thorpe <[email protected]>
3219
3220 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3221 dependency list.
3222 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3223 solib_svr4_fetch_link_map_offsets to
3224 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3225 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3226 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3227 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3228 solib-svr4.o, and solib-legacy.o.
3229 * config/i386/tm-nbsd.h: Include solib.h.
3230
704a27c4
JT
32312002-09-02 Jason Thorpe <[email protected]>
3232
3233 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3234 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3235 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3236 comment noting that this needs its own target configuration.
3237 * config/i386/nbsd.mt: New file.
3238 * config/i386/nbsdaout.mt: Remove.
3239 * config/i386/nbsdelf.mt: Ditto.
3240 * config/i386/tm-nbsdaout.h: Ditto.
3241
d66198e1
JT
32422002-09-02 Jason Thorpe <[email protected]>
3243
3244 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3245 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3246 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3247 tdep->sigtramp_end.
3248 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3249 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3250 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3251
3cac699e
JT
32522002-09-02 Jason Thorpe <[email protected]>
3253
3254 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3255 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3256 * i386-tdep.h (i386bsd_init_abi): New prototype.
3257 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3258 function declaration.
3259 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3260 for NetBSD-a.out or NetBSD-ELF.
3261 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3262 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3263 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3264 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3265 and nbsd-tdep.h.
3266 (i386nbsd_pc_in_sigtramp): New function.
3267 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3268 i386nbsd_pc_in_sigtramp.
3269 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3270 and i386nbsdelf_init_abi OS ABI handlers.
3271 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3272 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3273
7010ca0a
MK
32742002-09-02 Mark Kettenis <[email protected]>
3275
3276 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3277 registers if the target really has them.
3278
6dd93b72
JT
32792002-08-31 Jason Thorpe <[email protected]>
3280
3281 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3282 than nbsd-tdep.h.
3283
2ca8ae21
JT
32842002-08-31 Jason Thorpe <[email protected]>
3285
3286 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3287 list.
3288 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3289 (alphanbsd_skip_sigtramp_frame): New functions.
3290 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3291 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3292 to alphanbsd_sigcontext_addr.
3293
3d9b49b0
JT
32942002-08-31 Jason Thorpe <[email protected]>
3295
3296 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3297 list.
3298 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3299 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3300 nbsd_pc_in_sigtramp.
3301 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3302 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3303 * nbsd-tdep.c: Include gdb_string.h.
3304 (nbsd_pc_in_sigtramp): New function.
3305 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3306 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3307 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3308 ppcnbsd_pc_in_sigtramp.
3309 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3310 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3311 shnbsd_pc_in_sigtramp.
3312 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3313 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3314 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3315
c860120c
PM
33162002-08-30 Pierre Muller <[email protected]>
3317
3318 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3319 watchpoints to NULL.
3320 (insert_breakpoints): set val field of watchpoints if NULL.
3321
3322
c7612d53
JB
33232002-08-29 Jim Blandy <[email protected]>
3324
3325 * symtab.c (lookup_symbol_aux): In the cases where we find a
3326 minimal symbol of an appropriate name and use its address to
3327 select a symtab to read and search, use `name' (as passed to us)
3328 as the demangled name when searching the symtab's global and
3329 static blocks, not the minsym's name.
3330
66609862
KS
33312002-08-29 Keith Seitz <[email protected]>
3332
3333 * stack.c (print_frame_info_base): Always set current_source_symtab
3334 and current_source_line.
3335
151fefe2
JB
33362002-08-29 Donn Terry <[email protected]>
3337
3338 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3339
bfb3754e
KS
33402002-08-28 Keith Seitz <[email protected]>
3341
3342 * stack.c (select_frame): Add FIXME concerning selected-frame
3343 events.
3344 (select_frame_command): Send selected-frame-level-changed
3345 event notification, but only if the level actually changed.
3346 (up_silently_base): Add selected-frame-level-changed event
3347 notification.
3348 (down_silently_base): Likewise.
3349
e822a2a0
AC
33502002-08-28 Andrew Cagney <[email protected]>
3351
3352 * Makefile.in: Update dependencies for all gdb/*.c files.
3353
309367d4
TT
33542002-08-27 Tom Tromey <[email protected]>
3355
3356 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3357 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3358 Update dependencies.
3359 * i387-tdep.c: Include gdb_string.h.
3360 * osabi.c: Likewise.
3361 * i386-linux-nat.c: Likewise.
3362 * lin-lwp.c: Likewise.
3363 * ax-gdb.c: Likewise.
3364 * signals/signals.c: Likewise.
3365 * jv-valprint.c: Likewise.
3366 * p-lang.c: Likewise.
3367 * c-valprint.c: Likewise.
3368 * cp-abi.c: Likewise.
3369
e1507482
EZ
33702002-08-27 Elena Zannoni <[email protected]>
3371
3372 * cli/cli-script.h (copy_command_lines): Export.
3373 * breakpoint.c: Include cli/cli-script.h.
3374 * Makefile.in (breakpoint.o): Update dependencies.
3375
c6510018
MS
33762002-08-26 Michael Snyder <[email protected]>
3377
3378 * breakpoint.c (insert_breakpoints): Protect all references
3379 to 'process_warning'. Shorten long lines.
3380
c2b8ed2c
MS
33812002-08-26 Joel Brobecker <[email protected]>
3382
3383 * cli/cli-script.c (copy_command_lines): New function.
3384 * defs.h (copy_command_lines): Export.
3385 * testsuite/gdb.base/commands.exp: New tests for commands
3386 attached to a temporary breakpoint, and for commands that
3387 delete the breakpoint they are attached to.
3388
33892002-08-26 Michael Snyder <[email protected]>
3390
3391 * breakpoint.c (bpstat_stop_status): Instead of copying the
3392 pointer to the breakpoint commands struct, make a new copy
3393 of the struct and point to that.
3394 (bpstat_clear): Free the commands struct.
3395 (bpstat_clear_actions): Free the commands struct.
3396 (bpstat_do_actions): Free the command actions. Also execute
3397 the local cleanups, instead of deleting them.
3398 (delete_breakpoint): Leave the commands field of the bpstat
3399 chain alone -- it will be freed later.
3400
64b84175
KB
34012002-08-26 Kevin Buettner <[email protected]>
3402
3403 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3404 deleted in 2002-08-20 commit. This function is still used by
3405 ppc-linux-nat.c.
3406
55970da6
KS
34072002-08-26 Keith Seitz <[email protected]>
3408
3409 * gdb-events.sh: Add selected-frame-level-changed event.
3410 * gdb-events.c: Regenerated.
3411 * gdb-events.h: Regenerated.
3412
a790ad35
SC
34132002-08-26 Stephane Carrez <[email protected]>
3414
3415 Fix PR gdb/393:
3416 * inflow.c (terminal_save_ours): New function to save terminal
3417 settings.
3418 * inferior.h (terminal_save_ours): Declare.
3419 * target.c (debug_to_terminal_save_ours): New function.
3420 (cleanup_target): Defaults to_terminal_save_ours.
3421 (update_current_target): Inherit to_terminal_save_ours.
3422 (setup_target_debug): Set to_terminal_save_ours.
3423 * target.h (target_terminal_save_ours): New to save terminal settings.
3424 (target_ops): New member to_terminal_save_ours.
3425 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3426 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3427 * inftarg.c (init_child_ops): Likewise.
3428 * m3-nat.c (init_m3_ops): Likewise.
3429 * procfs.c (init_procfs_ops): Likewise.
3430 * wince.c (init_child_ops): Likewise.
3431 * win32-nat.c (init_child_ops): Likewise.
3432 * sol-thread.c (init_sol_thread_ops): Likewise.
3433
c00dcbe9
MK
34342002-08-26 Mark Kettenis <[email protected]>
3435
3d7f4f49
MK
3436 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3437 use regcache_* functions.
3438 (i386_gdbarch_init): Set store_return_value instead of
3439 deprecated_store_return_value.
3440
c00dcbe9
MK
3441 * regcache.c (regcache_raw_write_signed,
3442 regcache_raw_write_unsigned): New functions.
3443 * regcache.h (regcache_raw_write_signed,
3444 regcache_raw_write_unsigned): New prototypes.
3445
0e0d15ca
AC
34462002-08-25 Andrew Cagney <[email protected]>
3447
3448 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3449 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3450 source file dependencies. Cleanup corresponding generator rules.
3451
d3b22ed5
AC
34522002-08-25 Andrew Cagney <[email protected]>
3453
3454 * regcache.h (register_offset_hack): Declare.
3455 (regcache_cooked_read_using_offset_hack): Declare.
3456 (regcache_cooked_write_using_offset_hack): Declare.
3457
3458 * regcache.c (register_offset_hack): New function.
3459 (regcache_cooked_read_using_offset_hack): New function.
3460 (regcache_cooked_write_using_offset_hack): New function.
3461 (regcache_dump): Check that the registers, according to their
3462 offset, are packed hard against each other.
3463 (cooked_xfer_using_offset_hack): New function.
3464
bb425013
AC
34652002-08-25 Andrew Cagney <[email protected]>
3466
3467 * regcache.c (struct regcache_descr): Add field register_type.
3468 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3469 in as a parameter
3470 (init_regcache_descr): Initialize register_type. Pass the descr
3471 to init_legacy_regcache_descr. Use register_type instead of
3472 REGISTER_VIRTUAL_TYPE.
3473 (register_type): New function.
3474 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3475 * regcache.h (register_type): Declare.
3476
d0403e00
AC
34772002-08-25 Andrew Cagney <[email protected]>
3478
3479 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3480 instead of deprecated_store_return_value. Fix fallout from
3481 2002-08-23 Andrew Cagney <[email protected]>.
3482
0ed04cce
AC
34832002-08-25 Andrew Cagney <[email protected]>
3484
3485 * regcache.c (max_register_size): New function.
3486 (init_legacy_regcache_descr): Ensure that max_register_size is
3487 large enough for REGISTER_VIRTUAL_SIZE.
3488 * regcache.h (max_register_size): Declare.
3489
46d79c04
AC
34902002-08-24 Andrew Cagney <[email protected]>
3491
3492 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3493 store_return_value.
3494 (e500_extract_return_value): Change type of valbuf pointer to
3495 void.
3496
853c7bd0
MK
34972002-08-24 Mark Kettenis <[email protected]>
3498
cd87e769
MK
3499 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3500 workaround.
3501
853c7bd0
MK
3502 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3503 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3504 long long) to prevent compiler warning on 64-bit systems.
3505
ebba8386
AC
35062002-08-23 Andrew Cagney <[email protected]>
3507
3508 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3509 (DEPRECATED_STORE_RETURN_VALUE): New method.
3510 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3511 * gdbarch.h, gdbarch.c: Re-generate.
3512
3513 * values.c (set_return_value): Pass current_regcache to
3514 STORE_RETURN_VALUE.
3515 * arch-utils.h (legacy_store_return_value): Declare.
3516 * arch-utils.c (legacy_store_return_value): New function.
3517 (legacy_extract_return_value): Update parameters.
3518
3519 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3520 STORE_RETURN_VALUE.
3521 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3522 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3523 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3524 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3525 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3526 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3527 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3528 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3529 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3530 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3531
3532 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3533 * i386-tdep.c (i386_extract_return_value): Update.
3534 * arch-utils.c (legacy_extract_return_value): Update.
3535 * frv-tdep.c (frv_gdbarch_init): Update.
3536 * cris-tdep.c (cris_gdbarch_init): Update.
3537 * d10v-tdep.c (d10v_gdbarch_init): Update.
3538 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3539 * m68k-tdep.c (m68k_gdbarch_init): Update.
3540 * mcore-tdep.c (mcore_gdbarch_init): Update.
3541 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3542 * s390-tdep.c (s390_gdbarch_init): Update.
3543 * sparc-tdep.c (sparc_gdbarch_init): Update.
3544 * sh-tdep.c (sh_gdbarch_init): Update.
3545 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3546 * v850-tdep.c (v850_gdbarch_init): Update.
3547 * avr-tdep.c (avr_gdbarch_init): Update.
3548 * ia64-tdep.c (ia64_gdbarch_init): Update.
3549 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3550 * vax-tdep.c (vax_gdbarch_init): Update.
3551 * alpha-tdep.c (alpha_gdbarch_init): Update.
3552 * arm-tdep.c (arm_gdbarch_init): Update.
3553 * mips-tdep.c (mips_gdbarch_init): Update.
3554 * i386-tdep.c (i386_gdbarch_init): Update.
3555
5bd8c6d0
AC
35562002-08-23 Andrew Cagney <[email protected]>
3557
3558 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3559 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3560
e73e1724
MK
35612002-08-24 Mark Kettenis <[email protected]>
3562
3563 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3564 problems.
3565
3e6564e1
JB
35662002-08-23 Joel Brobecker <[email protected]>
3567
3568 * infrun.c (handle_inferior_event): Move a comment outside of a
3569 function call, in order to avoid indent reformatting this part
3570 of the code in an unreadable way.
3571
81d0cc19
GS
35722002-08-23 Grace Sainsbury <[email protected]>
3573
3574 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3575 when breakpoints fail. Move general breakpoint error messages to
3576 insert_breakpoints.
3577 * breakpoint.c (insert_breakpoints): Change warnings when
3578 breakpoints are nto inserted to specify the type. Remove call to
3579 memory_error when hardware breakpoints can't be inserted. Remove
3580 multiple calls to warning so all messages are sent to the user at
3581 once.
3582 (delete_breakpoints): Make insert error messsages more explicit.
3583
17574093
DJ
35842002-08-23 Daniel Jacobowitz <[email protected]>
3585
3586 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3587 gdbserver/ChangeLog.
3588
8acc2935
MK
35892002-08-23 Mark Kettenis <[email protected]>
3590
dfe01d39
MK
3591 * i386-tdep.c: Include "objfiles.h".
3592 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3593 skip_trampoline_code.
3594 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3595 (CPLUS_MARKER): Define to '.'.
3596
8acc2935
MK
3597 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3598 member.
3599 (linux_corefile_thread_callback): Increase args->num_notes.
3600 (linux_make_note_section): Initialize thread_args.num_notes, and
3601 use it to determine whether notes for any threads were created.
3602
151fefe2 36032002-08-23 Donn Terry <[email protected]>
640b227f
JB
3604
3605 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3606 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3607 and PCUNKILL.
3608 (write_with_trace): Conditionalize out the switch branch handling
3609 PCSHOLD if the corresponding macro is not defined. Likewise for
3610 PRSABORT and PRSTOP.
3611 This change will be needed by the Interix port.
3612
e1507482
EZ
36132002-08-22 Elena Zannoni <[email protected]>
3614
3615 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3616 write_register wherever possible instead of manipulating the
3617 register bytes directly.
3618 Assign VALUE_CONTENTS to a variable and use that.
3619 The GPR numbers are now dependent on the architecture.
3620
96ff0de4
EZ
36212002-08-22 Elena Zannoni <[email protected]>
3622
3623 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3624 ev_offset fields.
3625 (skip_prologue): Add support for BookE/e500 instructions.
3626 (e500_extract_return_value): New function.
3627 (frame_get_saved_regs): Add support for saving ev registers and
3628 pseudo gpr's.
3629 (e500_store_return_value): New function.
3630 (rs6000_gdbarch_init): Move up default intializations of
3631 deprecated_extract_return_value and store_return_value. Overwrite
3632 init of store_return_value with e500 specific version.
3633 Set extract_return_value for e500.
3634
fbefca5b
EZ
36352002-08-22 Elena Zannoni <[email protected]>
3636
3637 * blockframe.c (generic_call_dummy_register_unwind): Use
3638 regcache_cooked_read to catch cases in which the variable is
3639 stored in a pseudo register.
3640
4d210288
AC
36412002-08-22 Andrew Cagney <[email protected]>
3642
3643 * NEWS: Mention that the i960 has been made obsolete.
3644 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3645 i960-tdep.c
3646 (remote-nrom.o): Obsolete target.
3647 (remote-nindy.o, i960-tdep.o): Ditto.
3648 * remote-nrom.c: Make file obsolete.
3649 * remote-nindy.c, remote-vx960.c: Ditto.
3650 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3651 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3652 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3653 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3654 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3655 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3656 i960-*-vxworks* obsolete.
3657 * MAINTAINERS: Note that the i960 is obsolete.
3658
6c0c456d
CV
36592002-08-21 Corinna Vinschen <[email protected]
3660
3661 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3662 detach to allow reinitialization.
3663
9f9d12b3
AC
36642002-08-22 Andrew Cagney <[email protected]>
3665
3666 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3667 attempt).
3668
ebeb39fe
JB
36692002-08-22 Jim Blandy <[email protected]>
3670
3671 * coffread.c (coff_symfile_read): Don't try to read the line
3672 number table from disk if the image file doesn't have a symbol
3673 table; we'll never actually look at the info anyway, and Windows
3674 ships DLL's with bogus file offsets for the line number data.
3675
5bf1c677
EZ
36762002-08-21 Elena Zannoni <[email protected]>
3677
3678 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3679 an e500 executable.
3680
71b8ef93
MS
36812002-08-21 Michael Snyder <[email protected]>
3682
3683 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3684 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
3685 (DEFAULT_MIPS_TYPE): Delete unused macro.
3686 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3687 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 3688
d174216d
JB
36892002-08-21 Jim Blandy <[email protected]>
3690
3691 * valops.c (value_cast): Simplify and correct logic for doing a
3692 static cast from a pointer to a base class to a pointer to a
3693 derived class.
3694
0ab7a791
AC
36952002-08-21 Andrew Cagney <[email protected]>
3696
3697 * infcmd.c (default_print_registers_info): Replace
3698 do_registers_info.
3699 (registers_info): Use gdbarch_print_registers_info instead of
3700 DO_REGISTERS_INFO.
3701 * inferior.h (default_print_registers_info): Replace
3702 do_registers_info.
3703 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3704 (DO_REGISTERS_INFO): Change to a predicate function.
3705 * gdbarch.h, gdbarch.c: Regenerate.
3706
e23792cc
KS
37072002-08-21 Keith Seitz <[email protected]>
3708
3709 * gdb-events.sh: Add target-changed event.
3710 * gdb-events.c: Regenerated.
3711 * gdb-events.c: Regenerated.
3712 * valops.c (value_assign): Add target-changed event notification
3713 to inlval_register, lval_memory, and lval_reg_frame_relative.
3714
9fb14e79
JB
37152002-08-21 Joel Brobecker <[email protected]>
3716
3717 * NEWS: Add an entry regarding the improvement of the next/step
3718 operation on Alpha Tru64 multi-processor machines.
3719
6d39a69f
AC
37202002-08-21 Andrew Cagney <[email protected]>
3721
72acd513
AC
3722 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3723 directores.
342af04b 3724 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
3725 * Makefile.in (install-gdbtk): Move to install section.
3726 (rdi-share/libangsd.a): Move to end of file.
3727
fa5f27c7
AC
37282002-08-19 Andrew Cagney <[email protected]>
3729
3730 * frame.c (frame_register_unwind): When a register, set addrp to
3731 the register's byte.
3732
5a89d8aa
MS
37332002-08-20 Michael Snyder <[email protected]>
3734
3735 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3736 used locally, so move them from the target machine header to here.
3737 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3738 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3739 Make static.
3740 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3741
822e978b
AC
37422002-08-20 Andrew Cagney <[email protected]>
3743
3744 * NEWS: Mention that the Apollo line was made obsolete.
3745 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3746 m68*-hp-hpux* obsolete.
3747 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3748 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3749 * buildsym.c (make_blockvector): Make static.
3750 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3751 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3752 (ALLDEPFILES): Remove dstread.c.
3753 (dstread.o): Obsolete make rule.
3754 * dstread.c: Makefile obsolete.
3755 * dst.h: Ditto.
3756 * config/m68k/hp300hpux.mt: Ditto.
3757 * config/m68k/hp300hpux.mh: Ditto.
3758 * config/m68k/hp300bsd.mt: Ditto.
3759 * config/m68k/hp300bsd.mh: Ditto.
3760 * config/m68k/apollo68b.mt: Ditto.
3761 * config/m68k/apollo68v.mh: Ditto.
3762 * config/m68k/apollo68b.mh: Ditto.
3763
e41b17f0
MS
37642002-08-20 Michael Snyder <[email protected]>
3765
3766 * mips-tdep.c (mips_in_return_stub): Make static.
3767 (mips_gdbarch_init): Set in_solib_return_trampoline.
3768 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3769
d50355b6
MS
37702002-08-20 Michael Snyder <[email protected]>
3771
3772 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3773 * gdbarch.c, gdbarch.h: Regenerate.
3774 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3775 Add.
3776 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3777
757a7cc6
MS
37782002-08-20 Michael Snyder <[email protected]>
3779
3780 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3781 (mips_gdbarch_init): Set skip_trampoline_code,
3782 in_solib_call_trampoline.
3783 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3784 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3785
c8001721
EZ
37862002-08-20 Elena Zannoni <[email protected]>
3787
3788 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3789
3790 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3791 vector type for ev registers.
3792 (e500_pseudo_register_read): New function.
3793 (e500_pseudo_register_write): New function.
3794 (e500_dwarf2_reg_to_regnum): New function.
3795 (PPC_UISA_NOFP_SPRS): New macro.
3796 (PPC_EV_REGS): New macro.
3797 (PPC_GPRS_PSEUDO_REGS): New macro.
3798 (registers_e500): New register set for e500.
3799 (variants): Add e500 variant.
3800 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3801 before setting architectural dependent variations. Initialize ev
3802 registers numbers. Add case for e500 architecture. Set the
3803 number of pseudo registers.
3804
64366f1c
EZ
38052002-08-20 Elena Zannoni <[email protected]>
3806
3807 * rs6000-tdep.c: Clean up comments.
3808
7e78f0ca
AC
38092002-08-20 Andrew Cagney <[email protected]>
3810
3811 * h8300-tdep.c: Re-indent file.
3812
697f7479
JB
38132002-08-20 Jim Blandy <[email protected]>
3814
3815 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3816 default for this.
697f7479 3817
e86ae29f
KS
38182002-08-20 Keith Seitz <[email protected]>
3819
3820 * breakpoints.c (watch_command_1): Use internal breakpoint
3821 when setting a watchpoint_scope breakpoint.
3822
216b504f
EZ
38232002-08-20 Elena Zannoni <[email protected]>
3824
3825 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3826 (build_builtin_type_vec64i): Ditto.
3827 (build_builtin_type_vec128): Ditto.
3828 (build_builtin_type_vec128i): Ditto.
3829
f7ab6ec6
MS
38302002-08-19 Michael Snyder <[email protected]>
3831
3832 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3833 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3834 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3835 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3836 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3837 CALL_DUMMY_ADDRESS): Delete.
3838 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3839 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3840 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3841 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3842 push_return_address.
3843 (mips_register_raw_size, mips_eabi_use_struct_convention,
3844 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3845 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3846 mips_init_extra_frame_info, mips_eabi_push_arguments,
3847 mips_n32n64_push_arguments, mips_push_return_address,
3848 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3849 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3850
b5d1566e
MS
38512002-08-19 Michael Snyder <[email protected]>
3852
3853 * mips-tdep.c (mips_frame_num_args): New function.
3854 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3855 frame_saved_pc, frame_args_address, frame_locals_address,
3856 frame_num_args, and frame_args_skip.
3857 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3858 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3859 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3860 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3861
2f1488ce
MS
38622002-08-20 Michael Snyder <[email protected]>
3863
3864 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3865 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3866 * mips-tdep.c (mips_store_struct_return): New function.
3867 (mips_extract_struct_value_address): New function.
3868 (mips_gdbarch_init): Set store_struct_return and
3869 extract_struct_value_address.
3870
41ff2da1
DC
38712002-08-20 David Carlton <[email protected]>
3872
3873 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3874 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3875 (read_file_scope): Check that line_header is nonzero before
3876 decoding macro information.
3877
e5451d58
MK
38782002-08-20 Mark Kettenis <[email protected]>
3879
3880 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3881 flag the general-purpose registers as floating-point on targets
3882 that don't support the floating-point registers.
3883
4a6daafa
EZ
38842002-08-20 Elena Zannoni <[email protected]>
3885
3886 * rs6000-tdep.c (altivec_register_p): Delete.
3887 (rs6000_do_altivec_registers): Delete.
3888 (rs6000_altivec_registers_info): Delete.
3889 (rs6000_do_registers_info): Delete.
3890 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3891 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3892
ab4327e0
EZ
38932002-08-20 Elena Zannoni <[email protected]>
3894
3895 * infcmd.c (do_registers_info): Print vector registers in hex
3896 format only.
3897 (print_vector_info): Check that printing registers
3898 makes sense.
3899 (print_float_info): Ditto.
3900
cb1d2653
AC
39012002-08-20 Andrew Cagney <[email protected]>
3902
3903 * mips-tdep.c (mips_gdbarch_init): Update.
3904 (mips_o32_extract_return_value): Rewrite.
3905 (mips_o32_store_return_value): Rewrite.
3906 (mips_o32_xfer_return_value): New function.
3907 (mips_xfer_register): Tweak debug print message. Allow for
3908 buf_offset when dumping the value transfered.
3909
dfc3d9b2
AC
39102002-08-20 Andrew Cagney <[email protected]>
3911
3912 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3913 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3914 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3915 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3916 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3917
7807aa61
MS
39182002-08-14 Michael Snyder <[email protected]>
3919
3920 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3921
489461e2
EZ
39222002-08-19 Elena Zannoni <[email protected]>
3923
3924 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3925 register.
3926 (P): New macro to define a register as a pseudo register.
3927 (R, R4, R8, R16, FR32, R64, R0): Updated.
3928 (struct variant): Add new fields for number of pseudo registers
3929 and number of total registers.
3930 (tot_num_registers): New macro replacing....
3931 (num_registers): ...deleted macro.
3932 (num_registers): New function.
3933 (num_pseudo_registers): New function.
3934 (variants): Update all variants to intialize new fields correctly.
3935 Postpone initialization of number of pseudo regs and real regs.
3936 (init_variants): New function.
3937 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3938 registers offsets.
3939
fcaffe4c
DC
39402002-08-19 David Carlton <[email protected]>
3941
2c2738a0
DC
3942 * valops.c (search_struct_field): Change error message to treat
3943 return value of 0 from value_static_field as meaning that field is
3944 optimized out.
3945 (value_struct_elt_for_reference): Ditto.
3946 * values.c (value_static_field): Treat an unresolved location the
3947 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
3948 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3949 enclosed. Fix PR gdb/574.
fcaffe4c
DC
3950 * MAINTAINERS: Add self to Write After Approval list.
3951
88658117
AC
39522002-08-19 Andrew Cagney <[email protected]>
3953
3954 * mips-tdep.c (mips_xfer_register): New function.
3955 (mips_n32n64_extract_return_value): Rewrite.
3956 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3957 instead of deprecated_extract_return_value.
3958
21283beb
EZ
39592002-08-19 Elena Zannoni <[email protected]>
3960
3961 * rs6000-tdep.c (TDEP): Delete macro.
3962 (branch_dest): Replace use of TDEP macro with its body.
3963 (rs6000_pop_frame): Ditto.
3964 (rs6000_push_arguments): Ditto.
3965 (rs6000_skip_trampoline_code): Ditto.
3966 (rs6000_frame_saved_pc): Ditto.
3967 (rs6000_frame_chain): Ditto.
3968 (rs6000_register_name): Ditto.
3969 (rs6000_register_byte): Ditto.
3970 (rs6000_register_raw_size): Ditto.
3971 (rs6000_register_virtual_type): Ditto.
3972 (rs6000_register_convertible): Ditto.
3973 (rs6000_convert_from_func_ptr_addr): Ditto.
3974
bf072999
DJ
39752002-08-19 Daniel Jacobowitz <[email protected]>
3976
3977 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3978 conditionally.
3979 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3980 MIPS_LINUX_JB_ELEMENT_SIZE.
3981 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3982 for MAX_REGISTER_RAW_SIZE arrays.
3983 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3984 MIPS_LINUX_JB_ELEMENT_SIZE.
3985
9b949a49
PM
39862002-08-19 Pierre Muller <[email protected]>
3987
3988 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3989
6d3e79c6
AS
39902002-08-19 Aidan Skinner <[email protected]>
3991
3992 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3993 ada-valprint.c ada-tasks.c.
3994 (YYFILES): Add ada-exp.y.
3995 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3996 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3997 (ada-exp.tab.o): New target.
3998
06c0b04e
AC
39992002-08-18 Andrew Cagney <[email protected]>
4000
4001 * regcache.c (regcache_xfer_part): New function.
4002 (regcache_raw_read_part): New function.
4003 (regcache_raw_write_part): New function.
4004 (regcache_cooked_read_part): New function.
4005 (regcache_cooked_write_part): New function.
4006 * regcache.h (regcache_raw_read_part): Declare.
4007 (regcache_raw_write_part): Declare.
4008 (regcache_cooked_read_part): Declare.
4009 (regcache_cooked_write_part): Declare.
4010
92d1e331
DJ
40112002-08-18 Daniel Jacobowitz <[email protected]>
4012
4013 * remote.c (remote_open_1): Add async_p.
4014 (remote_async_open_1): Delete.
4015 (open_remote_target): Delete.
4016 (remote_open, extended_remote_open): Update calls to remote_open_1.
4017 (remote_async_open, extended_remote_async_open): Call
4018 remote_open_1 instead of remote_async_open_1.
4019
247055de
MK
40202002-08-19 Mark Kettenis <[email protected]>
4021
4022 * blockframe.c: Fix a few coding standard violations.
4023
641eda39
MK
40242002-08-19 Mark Kettenis <[email protected]>
4025
0b717710
MK
4026 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4027 here from ...
4028 * config/i386/tm-i386sco5.h: ... here. File removed.
4029 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4030
26d28e12 4031 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
4032 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4033 (TM_FILE): Set to tm-i386.h.
4034 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4035 * config/i386/tm-i386v.h: Remove file.
4036 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4037 instead of "i386/tm-i386v.h".
4038 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4039 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4040 "i386/tm-i386v.h".
4041 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4042 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4043 "i386/tm-i386.h".
4044
d4e0bab4
MK
40452002-08-18 Mark Kettenis <[email protected]>
4046
4047 * config/i386/nm-i386v.h: Add protection against
4048 multiple-inclusion.
4049 (i386_register_u_addr): Remove prototype.
4050 (register_u_addr): New prototype.
4051 (REGISTER_U_ADDR): Redefine accordingly.
4052 * i386v-nat.c: Improve several comments.
4053 (i386_register_u_addr): Change signature and rename to
4054 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4055 ubase variable.
4056
46cac009
AC
40572002-08-18 Andrew Cagney <[email protected]>
4058
4059 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4060 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4061 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4062 deprecated_extract_return_value.
4063 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4064 rename mips_o32o64_push_arguments.
4065 (mips_gdbarch_init): Update.
4066 (mips_extract_return_value): Delete.
4067 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4068 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4069 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4070 (mips_n32n64_extract_return_value): Clone
4071 mips_extract_return_value.
4072 (mips_store_return_value): Delete.
4073 (mips_o32_store_return_value): Clone mips_store_return_value.
4074 (mips_o64_store_return_value): Clone mips_store_return_value.
4075 (mips_eabi_store_return_value): Clone mips_store_return_value.
4076 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4077
d2e4a39e
AS
40782002-08-18 Aidan Skinner <[email protected]>
4079
0c30c098
AS
4080 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4081 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4082
40832002-08-18 Aidan Skinner <[email protected]>
4084
4085 * ada-lang.c: Run through gdb_indent.sh.
4086 * ada-lang.h: Run through gdb_indent.sh.
4087 * ada-tasks.c: Run through gdb_indent.sh.
4088 * ada-typeprint.c: Run through gdb_indent.sh.
4089 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 4090
01fc4e33
AC
40912002-08-18 Andrew Cagney <[email protected]>
4092
4093 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4094 ABI.
4095
d8ee244c
MK
40962002-08-18 Mark Kettenis <[email protected]>
4097
c38d8261
MK
4098 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4099
222db64c
MK
4100 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4101 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4102
c2848c82
MK
4103 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4104 write_register_gen instead of write_register_bytes.
4105
d8ee244c
MK
4106 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4107 i[3456]-*-osf1mk* configurations have been made obsolete.
4108 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4109 i[3456]86-*-osf1mk* hosts obsolete.
4110 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4111 targets obsolete.
4112 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4113 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4114 config/i386/i386m3.mt, config/i386/nm-m3.h,
4115 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4116 config/i386/i386mk.mh, config/i386/i386mk.mt,
4117 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4118 obsolete.
4119 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4120 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4121 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4122
61d8d407
AC
41232002-08-18 Andrew Cagney <[email protected]>
4124
4125 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4126 (hppa_value_returned_from_stack): Declare.
4127 (hppa_extract_return_value): Declare.
4128 * config/pa/hppa.mt: New file.
4129 * configure.tgt: Recognize hppa*-*-*.
4130 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4131
0c52bd59
MK
41322002-08-18 Mark Kettenis <[email protected]>
4133
4134 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4135 comment.
4136
b5686e99
MK
41372002-08-17 Mark Kettenis <[email protected]>
4138
4139 * top.c (gdb_rl_operate_and_get_next): Make sure
4140 operate-and-get-next functions correctly even when the history
4141 list is completely filled.
4142
c1bab85b
AC
41432002-08-18 Andrew Cagney <[email protected]>
4144
4145 * MAINTAINERS (Target Instruction Set Architectures): Rename
4146 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4147 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4148 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4149 already listed under Host/Native.
4150
4151 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4152 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4153 mips*-*-*.
4154
32089c7c
AC
41552002-08-17 Andrew Cagney <[email protected]>
4156
4157 * config/ia64/ia64.mt: New file.
4158 * config/alpha/alpha.mt: New file.
4159 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4160 ia64-linux-gnu. Mention that ia64-elf is broken.
4161 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4162
b4671f85
MK
41632002-08-17 Mark Kettenis <[email protected]>
4164
4165 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4166 generic_func_frame_valid instead of func_frame_valid.
4167
c8edd8b4
JB
41682002-08-16 Joel Brobecker <[email protected]>
4169
4170 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4171 procfs appears to be broken when debugging on multi-processor
4172 machines. So enable software single stepping in order to avoid
4173 using the procfs interface to do next/step operations, using
4174 internal breakpoints instead.
4175
4176 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4177 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4178 make this pc address equal to the value it would have if the
4179 system stepping capability was used. Also set a new flag used
4180 to ensure that we don't readjust the PC one more time later.
4181
4182 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4183 address by DECR_PC_AFTER_BREAK when software single step is
4184 in use for this architecture, as this has already been taken
4185 care of in handle_inferior_event().
4186
238617f6
JB
41872002-08-16 Joel Brobecker <[email protected]>
4188
4189 * infrun.c (handle_inferior_event): Minor reformatting, to make
4190 a rather long condition expression easier to read.
4191
541a7aac
AC
41922002-08-16 Andrew Cagney <[email protected]>
4193
4194 * Makefile.in (gdbtk.o): Move to end of file.
4195 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4196 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4197 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4198 (gdbtk-wrapper.o, gdbres.o): Ditto.
4199
f92d4a7b
AC
42002002-08-16 Andrew Cagney <[email protected]>
4201
4202 * Makefile.in (copying.o): Separate out compile rule.
4203 (hpux-thread.o, procfs.o, signals.o): Ditto.
4204 (v850ice.o, z8k-tdep.o): Ditto.
4205 (tui-file.o): Move to TUI section.
4206 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4207 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4208
1cce71eb
JB
42092002-08-16 Joel Brobecker <[email protected]>
4210
4211 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4212 skip_trampoline_code, for better namespace-proofing.
4213
4214 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4215
0851f23d
JB
42162002-08-16 Joel Brobecker <[email protected]>
4217
4218 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4219
f8d40ec8
JB
42202002-08-16 Joel Brobecker <[email protected]>
4221
4222 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4223 signal, check whether we hit a breakpoint before checking for a
4224 single step breakpoint. Otherwise, GDB fails to notice that a
4225 breakpoint has been hit when stepping onto a breakpoint.
4226
63d022e0
KS
42272002-08-16 Keith Seitz <[email protected]>
4228
4229 * gdb-events.sh (clear_gdb_event_hooks): New function.
4230 * gdb-events.c: Regenerate.
4231 * gdb-events.h: Regenerate.
4232
6e31adb3
AC
42332002-08-16 Andrew Cagney <[email protected]>
4234
4235 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4236 not_a_sw_breakpoint.
4237 * breakpoint.h (bpstat_stop_status): Add parameter names.
4238
c8189ed1
GS
42392002-08-16 Grace Sainsbury <[email protected]>
4240
4241 * remote.c (remote_insert_hw_breakpoint)
4242 (remote_remove_hw_breakpoint): Fix calculation of length field
4243 for Z-packet.
4244
d05285fa
MS
42452002-08-15 Michael Snyder <[email protected]>
4246
466d7106
MS
4247 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4248 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4249 (supply_fpregset): Ditto.
4250
d05285fa
MS
4251 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4252 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4253 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 4254 (TARGET_READ_SP): Delete.
bf1f5b4c 4255 (DO_REGISTERS_INFO): Delete.
102182a9
MS
4256 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4257 Delete.
4258 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4259 from macros to functions.
bf1f5b4c 4260
d05285fa
MS
4261 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4262 (mips_register_convertible, mips_register_convert_to_virtual,
4263 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
4264 (mips_read_sp): New function.
4265 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
4266 (mips_do_registers_info): Make static.
4267 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
4268 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4269 (mips_register_convert_from_type, mips_register_convert_to_type):
4270 New functions.
4271 (mips_gdbarch_init): Set up function_start_offset,
4272 register_virtual_size, pc_in_sigtramp.
d05285fa 4273
e76f1f2e
AC
42742002-08-15 Andrew Cagney <[email protected]>
4275
4276 * infcmd.c (vector_info): New function.
4277 (_initialize_infcmd): Add command "info vector".
4278 (print_vector_info): New function.
4279
4280 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4281 * gdbarch.h, gdbarch.c: Regenerate.
4282
4782dc19
AC
42832002-08-15 Andrew Cagney <[email protected]>
4284
4285 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4286 ``print_all''. Only print vector registers when ``print_all''.
4287
23e3a7ac
AC
42882002-08-15 Andrew Cagney <[email protected]>
4289
8e186fd6
AC
4290 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4291 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4292
23e3a7ac
AC
4293 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4294 Add `args' parameter.
4295 * gdbarch.h, gdbarch.c: Regenerate.
4296
4297 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4298
4299 * infcmd.c (float_info): Call print_float_info.
4300 (print_float_info): New function. By default, print the
4301 floating-point registers.
4302
4303 * arch-utils.h (default_print_float_info): Delete declaration.
4304 * arch-utils.c (default_print_float_info): Delete function.
4305
e0ca2bb9
MK
43062002-08-16 Mark Kettenis <[email protected]>
4307
3f733acc
MK
4308 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4309 out define.
4310
7d8d2918
MK
4311 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4312 FRAME.
4313
1c7cc583
MK
4314 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4315 * configure.host: Make i[3456]86-*-aix host obsolete.
4316 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4317 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4318 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4319 config/i386/xm-i386aix.h: Make files obsolete.
4320 * i386aix-nat.c: Make file obsolete.
4321 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4322 (i386aix-nat.o): Make target obsolete.
4323
e0ca2bb9
MK
4324 * config/i386/nm-gnu.h: Removed.
4325 * config/i386/nm-i386gnu.h: New file.
4326 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4327 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4328 Moved here from ...
4329 * config/i386/tm-i386gnu.h: ... here. Removed.
4330 * config/i386/xm-i386gnu.h: Removed.
4331 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4332 (NAT_FILE): Set to nm-i386gnu.h.
4333 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4334 * i386-tdep.c: New file.
4335 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4336 (i386gnu-tdep.o): Specify dependencies.
4337
16057ec7 43382002-08-15 Mark Kettenis <[email protected]>
61113f8b 4339
6b99ee2e
MK
4340 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4341 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4342 Adjust a few comments to reflect reality a bit closer.
4343 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4344 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4345 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4346 target_insert_watchpoint, target_remove_watchpoint):
4347 Move defines to ...
4348 * config/i386/nm-i386sco5.h: ... here.
4349 (kernel_u_size): Add prototype. Improve a few comments and add
4350 protection against multiple inclusion.
4351
d9a6f65c
MK
4352 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4353 out define.
4354
047eff6a
MK
4355 * uw-thread.c (SP_ARG0): Define if not already defined.
4356 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4357
dcdb1290
MK
4358 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4359
5d2d0b2a
MK
4360 * config/i386/tm-i386.h: Don't include "regcache.h".
4361
61113f8b
MK
4362 * i387-tdep.h (i387_print_float_info): New prototype.
4363 * i387-tdep.c (print_i387_value, print_i387_ext,
4364 print_i387_status_word, print_i387_control_word): Add `struct
4365 ui_file *' argument and use it for output.
4366 (i387_print_float_info): Renamed from i387_float_info. Add
4367 `struct gdbarch *' and `struct ui_file *' arguments and use the
4368 latter for output.
4369 * i386-tdep.c: Include "i387-tdep.h".
4370 (i386_gdbarch_init): Set print_float_info.
4371 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4372 (FLOAT_INFO): Remove define.
4373
46e0f506
MS
43742002-08-13 Michael Snyder <[email protected]>
4375
4376 * mips-tdep.c (mips_push_arguments): Rename to
4377 mips_eabi_push_arguments, and tune for EABI.
4378 (MIPS_REGS_HAVE_HOME_P): Delete.
4379 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4380 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4381 Delete references to mips_regs_have_home_p.
4382
409268de
KS
43832002-08-14 Keith Seitz <[email protected]>
4384
4385 * Makefile.in (install-gdbtk): Create insight plugin directory.
4386 Install plugins.tcl file.
4387
ffc6a242
KS
43882002-08-14 Keith Seitz <[email protected]>
4389
4390 * configure.in: Move SUBDIRS to near top of the file so that
4391 --enable options may add things to it.
4392 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4393 * configure: Regenerate.
4394
ebafbe83
MS
43952002-08-13 Michael Snyder <[email protected]>
4396
4397 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4398 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4399 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4400
32f6f25d
AC
44012002-08-13 Andrew Cagney <[email protected]>
4402
4403 * vax-tdep.c (vax_get_saved_register): Delete function.
4404 (vax_gdbarch_init): Update.
4405 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4406 (ns32k_gdbarch_init): Update.
4407 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4408 (alpha_gdbarch_init): Update.
4409
53826de9
AC
44102002-08-13 Andrew Cagney <[email protected]>
4411
4412 * regcache.c (init_regcache_descr): Overallocate the
4413 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4414 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4415 nr_raw_registers.
4416 (set_register_cached): Add range checking assertions. Use
4417 current_regcache.
4418
16057ec7 44192002-08-13 Mark Kettenis <[email protected]>
7d12f766
MK
4420
4421 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4422 numbers for MMX registers.
4423
7b4c2dce
AC
44242002-08-13 Andrew Cagney <[email protected]>
4425
4426 * i386-tdep.c (i386_gdbarch_init): Use
4427 generic_unwind_get_saved_register.
4428
1e03ad20
KB
44292002-08-13 Kevin Buettner <[email protected]>
4430
4431 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4432 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4433 target vector.
4434 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4435 Delete. Add comment regarding this now-deleted target method.
4436
548bcbec
SC
44372002-08-13 Stephane Carrez <[email protected]>
4438
4439 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4440 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4441 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4442 real PC and the page number (if it's within the memory bank window).
4443 (m68hc11_pseudo_register_write): Likewise when saving.
4444 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4445 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4446 (m68hc11_register_raw_size): And use 32-bit for it.
4447 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4448 16K memory bank is used by the prog; also use the virtual pc.
4449
7df11f59
SC
44502002-08-13 Stephane Carrez <[email protected]>
4451
4452 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4453 (m68hc11_gdbarch_init): Install it in gdbarch.
4454 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4455 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4456 (MSYMBOL_SIZE): New for documentation.
4457 (insn_return_kind): Enum to specify how a function returns.
4458 (frame_extra_info): Cleanup and record the return mode.
4459 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4460 register in address computation.
4461 (m68hc11_get_return_insn): New to obtain the return instruction used
4462 by the function.
4463 (m68hc11_frame_init_saved_regs): Take into account the return
4464 instruction used by the function for far and interrupt functions.
4465 (m68hc11_init_extra_frame_info): Take into account page register.
4466 (m68hc11_frame_args_address): Adjust according to the return mode.
4467 (show_regs): Print page register only when it's used.
4468
5706502a
SC
44692002-08-13 Stephane Carrez <[email protected]>
4470
4471 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4472 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4473 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4474 registers.
4475 (m68hc11_register_raw_size): Likewise.
4476
28fc6740
AC
44772002-08-13 Andrew Cagney <[email protected]>
4478
4479 * i386-tdep.c (i386_register_name): Handle mmx registers.
4480 (mmx_regnum_p): New function.
4481 (i386_mmx_names): New array.
4482 (mmx_num_regs): New variable.
4483 (i386_pseudo_register_read): New function.
4484 (i386_pseudo_register_write): New function.
4485 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4486
4487 * regcache.c (regcache_raw_read_unsigned): New function.
4488 (regcache_raw_read_signed): New function.
4489 * regcache.h (regcache_raw_read_unsigned): Declare.
4490 (regcache_raw_read_signed): Declare.
4491
a378f419
AC
44922002-08-13 Andrew Cagney <[email protected]>
4493
4494 * regcache.c (regcache_raw_read_as_address): Delete function.
4495 (regcache_cooked_read_signed): New function.
4496 (regcache_cooked_read_unsigned): New function.
4497 * regcache.h (regcache_cooked_read_signed): Declare.
4498 (regcache_cooked_read_unsigned): Declare.
4499 (regcache_raw_read_as_address): Delete declaration.
4500
4501 * blockframe.c (generic_read_register_dummy): Use
4502 regcache_cooked_read_unsigned.
4503 * i386-tdep.c (i386_extract_struct_value_address): Use
4504 regcache_cooked_read_unsigned.
4505
81967506
SC
45062002-08-13 Stephane Carrez <[email protected]>
4507
4508 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4509 double sizes according to ELF ABI flags.
4510 (gdbarch_tdep): Record elf_flags.
4511
ffe1f3ee
SC
45122002-08-13 Stephane Carrez <[email protected]>
4513
4514 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4515 (m6812_prolog): They can appear in 68HC12 function prologue.
4516 (m68hc11_frame_chain): Cleanup.
4517
98216c5d
AC
45182002-08-12 Andrew Cagney <[email protected]>
4519
4520 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4521 declarations.
4522 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4523 (i386_linux_register_raw_size): Delete function.
4524 (i386_linux_init_abi): Update.
4525 * i386-tdep.c (i386_register_raw_size): Delete function.
4526 (i386_register_byte): Delete function.
4527 (i386_gdbarch_init): Update.
4528 (i386_register_size): Delete array.
4529 (i386_register_offset): Delete array.
4530
4531 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4532 (REGISTER_RAW_SIZE): Delete macro.
4533 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4534 (REGISTER_BYTE): Delete macro.
4535
3b19021e
AS
45362002-08-11 Aidan Skinner <[email protected]>
4537
4538 * ada-lang.c (ada_lookup_partial_symbol)
4539 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4540 prototype names so that grep ^func works properly.
4541
4542 * ada-lang.c (ada_array_element_type)
4543 (ada_lookup_partial_symbol): Fix typos in parameter list.
4544
4545 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4546 Fix prototype names so that grep ^func works properly.
4547
b063e7a2
AC
45482002-08-10 Andrew Cagney <[email protected]>
4549 Elena Zannoni <[email protected]>
4550 Martin M. Hunt <[email protected]>
4551
4552 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4553 (build_builtin_type_vec128i): Set the vector bit.
4554 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4555 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4556 (build_builtin_type_vec64): New function.
4557 (build_builtin_type_vec64i): New function.
4558 (build_gdbtypes): Initialize builtin_type_vec64 and
4559 builtin_type_vec64i.
4560
a7e3c2ad
AC
45612002-08-09 Andrew Cagney <[email protected]>
4562
4563 * regcache.c (regcache_dump): Compare the register offset
4564 with REGISTER_BYTE.
4565 * arch-utils.c (generic_register_byte): New function.
4566 * arch-utils.h (generic_register_byte): Declare.
4567 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4568 * gdbarch.h, gdbarch.c: Regenerate.
4569
af030b9a
AC
45702002-08-09 Andrew Cagney <[email protected]>
4571
4572 * regcache.c: Include "gdbcmd.h"
4573 (_initialize_regcache): Add commands "maintenance print
4574 registers", "maintenance print raw-registers" and "maintenance
4575 print cooked-registers".
4576 (enum regcache_dump_what): Define.
4577 (dump_endian_bytes): New function.
4578 (regcache_dump): New function.
4579 (regcache_print): New function.
4580 (maintenance_print_registers): New function.
4581 (maintenance_print_raw_registers): New function.
4582 (maintenance_print_cooked_registers): New function.
4583 * Makefile.in (regcache.o): Update dependencies.
4584
cb3d25d1
MS
45852002-08-09 Michael Snyder <[email protected]>
4586
4587 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4588 (mips_push_arguments): Correct some comments. Use paddr_nz
4589 for printing addresses in debug output. Replace static
4590 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4591 (mips_n32n64_push_arguments): New function, cloned from
4592 mips_push_arguments and tuned for the n32/n64 ABI.
4593 (mips_push_register): Buffer needs dynamic allocation.
4594 (mips_print_register): Ditto.
4595 (do_gp_register_row): Ditto.
4596 (mips_store_return_value): Ditto.
4597 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4598
2163ab9d
DH
45992002-08-09 Don Howard <[email protected]>
4600
4601 * memattr.c (mem_info_command): Print special case of upper bound
4602 as max CORE_ADDR + 1.
4603
b78bcb18
MS
46042002-08-08 Michael Snyder <[email protected]>
4605
4606 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4607 returns structs by ref if they're too big to fit in two registers.
4608
ffabd70d
KB
46092002-08-09 Kevin Buettner <[email protected]>
4610
4611 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4612 saved regs value.
4613 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4614 mips_find_saved_regs().
4615 (mips_pop_frame): Likewise.
4616
fbcdb4a3
KB
46172002-08-09 Kevin Buettner <[email protected]>
4618
4619 * blockframe.c (frame_saved_regs_register_unwind): Revise
4620 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4621 frames are in use.
4622
3c3bea1c
GS
46232002-08-09 Grace Sainsbury <[email protected]>
4624
4625 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4626 T-packets; the 'a' is not taken as a register number.
4627 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4628 (remote_stopped_data_address): New functions; add to target
4629 vector.
4630 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4631 prototypes to match other implementations of this
4632 function. replace integer argument with pointer -- the length
4633 field in the Z-packet is the length of what is pointed to or 1 if
4634 pointer is null. Add to target vector.
4635 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4636 target vector.
4637
4638 From Mark Salter:
4639 * remote.c (remote_wait): Add support to extract optional
4640 watchpoint information from T-packet. Ignore unrecognized
4641 optional info in T-packet.
4642 (remote_async_wait): Ditto.
4643
5d1d95de
CV
46442002-08-09 Corinna Vinschen <[email protected]>
4645
4646 * cli/cli-dump.c: Change fopen modes to use binary open modes
4647 as defined in include/fopen-bin.h throughout.
4648
c86b5b38
MS
46492002-08-08 Michael Snyder <[email protected]>
4650
4651 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4652
b30590dc
KB
46532002-08-08 Kevin Buettner <[email protected]>
4654
4655 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4656 assertion failure by returning early after a warning.
4657
498868ed
KB
46582002-08-08 Kevin Buettner <[email protected]>
4659
4660 * mips-tdep.c (mips_find_saved_regs): Make static.
4661 (mips_frame_init_saved_regs): New function.
4662 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4663 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4664 (mips_find_saved_regs): Delete declaration.
4665
b2dd6311
GS
46662002-08-08 Grace Sainsbury <[email protected]>
4667
3c3bea1c
GS
4668 * remote.c (remote_wait, remote_async_wait): Change
4669 thread_num from int to ULONGEST.
4670 (unpack_varlen_hex): Change result parameter from
4671 int * to ULONGEST *.
b2dd6311 4672
ea47855f
AC
46732002-08-08 Andrew Cagney <[email protected]>
4674
4675 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4676 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4677 powerpc*-*-*.
4678 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4679
69db8bae
AC
46802002-08-08 Andrew Cagney <[email protected]>
4681
4682 * gcore.c (override_derive_stack_segment): Delete variable.
4683 (preempt_derive_stack_segment): Delete function.
4684 (derive_stack_segment): Delete function.
4685 (default_derive_stack_segment): Renamed to derive_stack_segment.
4686 (override_derive_heap_segment): Delete variable.
4687 (preempt_derive_heap_segment): Delete function.
4688 (derive_heap_segment): Delete function.
4689 (default_derive_heap_segment): Rename to derive_heap_segment.
4690
cb811fe7
MS
46912002-08-06 Michael Snyder <[email protected]>
4692
4693 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4694 * mips-tdep.c (mips_EABI_use_struct_convention,
4695 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4696 New functions. (mips_use_struct_convention): Delete.
4697 (mips_gdbarch_init): set use_gdbarch_convention.
4698
8b389c40
MS
46992002-08-06 Michael Snyder <[email protected]>
4700
4701 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4702 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4703 mips_o32_reg_struct_has_addr): New functions.
4704 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4705
5c27f28a
AC
47062002-08-07 Andrew Cagney <[email protected]>
4707
4708 * regcache.c (pseudo_register): Delete function.
4709 (fetch_register): Delete function.
4710 (store_register): Delete function.
4711 (regcache_raw_read, legacy_read_register_gen): Use
4712 target_fetch_registers instead of fetch_register.
4713 (legacy_write_register_gen, regcache_raw_write): Use
4714 target_store_register instead of store_register.
4715 (write_register_bytes): Ditto.
4716
4717 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4718 (STORE_PSEUDO_REGISTER): Delete.
4719 * gdbarch.h, gdbarch.c: Regenerate.
4720
5b331675
CV
47212002-08-06 Corinna Vinschen <[email protected]>
4722
4723 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4724 write dump file binary.
4725
6acdf5c7
MS
47262002-08-05 Michael Snyder <[email protected]>
4727
4728 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4729 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4730 (mips_gdbarch_init): Set N32 target to be mips64.
4731
b2f01c35
KB
47322002-08-06 Kevin Buettner <[email protected]>
4733
4734 * frame.c (find_saved_register): Break out of loop once saved
4735 register address is found. Don't mention sparc in loop comment
4736 anymore.
4737
63db5580
KB
47382002-08-06 Kevin Buettner <[email protected]>
4739
4740 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4741 mips_default_saved_regsize to 8.
4742
5e34e75e
AC
47432002-08-06 Andrew Cagney <[email protected]>
4744
4745 * gcore.c: Do not include <sys/procfs.h>.
4746 * Makefile.in (gcore.o): Update dependencies.
4747
eb4c54a2
AC
47482002-08-06 Andrew Cagney <[email protected]>
4749
4750 * configure.tgt: Make arc-*-* obsolete.
4751 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4752 * MAINTAINERS: Make arc-elf obsolete.
4753 * arc-tdep.c: Make file obsolete.
4754 * config/arc/arc.mt: Ditto.
4755 * config/arc/tm-arc.h: Ditto.
4756
ced15480
TR
47572002-08-05 Theodore A. Roth <[email protected]>
4758
c1bab85b 4759 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 4760
b4743822
AC
47612002-08-05 Andrew Cagney <[email protected]>
4762
4763 * mcore-tdep.c (mcore_gdbarch_init): Use
4764 generic_unwind_get_saved_register instead of
4765 generic_get_saved_register.
4766 * v850-tdep.c (v850_gdbarch_init): Ditto.
4767 * frv-tdep.c (frv_gdbarch_init): Ditto.
4768 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4769 * s390-tdep.c (s390_gdbarch_init): Ditto.
4770 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4771 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4772 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4773
3956d554
JB
47742002-08-05 Joel Brobecker <[email protected]>
4775
4776 * objfiles.h: Add missing #include "symfile.h"
4777
4778 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4779
8249c0d6
AC
47802002-08-04 Andrew Cagney <[email protected]>
4781
4782 From 2002-08-01 david carlton <[email protected]>:
4783 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4784 of FIELD_BITSIZE.
4785
b9d14705
DJ
47862002-08-04 Daniel Jacobowitz <[email protected]>
4787
4788 * NEWS: Cleanup and nitpick.
4789
dd73b9bb
AC
47902002-08-03 Andrew Cagney <[email protected]>
4791
4792 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4793
043a27f8
AC
47942002-08-03 Andrew Cagney <[email protected]>
4795
4796 * Makefile.in (gdbtk-bp.o): Update dependencies.
4797 (gdbtk-register.o): Ditto.
4798 (gdbtk-varobj.o): Ditto.
4799
46ce284d
AC
48002002-08-03 Andrew Cagney <[email protected]>
4801
4802 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4803 m68hc11_fetch_pseudo_register.
4804 (m68hc11_pseudo_register_write): Replace
4805 m68hc11_store_pseudo_register.
4806 (m68hc11_gdbarch_init): Update.
4807
b66d6d2e
AC
4808Fri Aug 2 15:53:50 2002 Andrew Cagney <[email protected]>
4809
4810 * gdbarch.sh: Include "gdb_string.h".
4811 * gdbarch.c: Regenerate.
4812
4813 * regcache.c: Include "gdb_string.h".
4814 * ax-general.c: Ditto.
4815 * varobj.c: Ditto.
4816 * std-regs.c: Ditto.
4817 * fbsd-proc.c: Ditto.
4818 * thread.c: Ditto.
4819
4820 * Makefile.in (regcache.o): Update dependencies.
4821 (thread.o, gdbarch.o): Ditto.
4822 (ax-general.o, gdbarch.o): Ditto.
4823 (varobj.o, std-regs.o): Ditto.
4824 (fbsd-proc.o): Specify dependencies.
4825
29e1842b
AC
48262002-08-02 Andrew Cagney <[email protected]>
4827
4828 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4829 regnum.
4830 (regcache_cooked_write): Ditto.
4831
68365089
AC
48322002-08-02 Andrew Cagney <[email protected]>
4833
4834 * regcache.c (regcache_cooked_read): New function.
4835 (regcache_cooked_write): New function.
4836 (read_register_gen): Rewrite using regcache_cooked_read.
4837 (write_register_gen): Rewrite using regcache_cooked_write.
4838
4839 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4840 Declare.
4841
d8124050
AC
48422002-08-02 Andrew Cagney <[email protected]>
4843
4844 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4845 Replace the architecture methods register_read and register_write.
4846 * gdbarch.h, gdbarch.c: Regenerate.
4847 * regcache.c (init_regcache_descr): Update.
4848 (read_register_gen): Update.
4849 (write_register_gen): Update.
4850 (supply_register): Update comment.
4851
4852 * sh-tdep.c (sh_gdbarch_init): Update.
4853 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4854 `regcache' and `gdbarch' parameters. Make `buffer' a void
4855 pointer. Update code.
4856 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4857 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4858 void pointer. Update code.
4859 (sh64_register_write): Delete.
4860 (sh4_register_read): Delete.
4861 (sh64_register_read): Delete.
4862 (sh4_register_write): Delete.
4863 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4864 void pointer, `to' parameter a void pointer.
4865 (sh_sh64_register_convert_to_raw): Ditto.
4866
a6425924
KB
48672002-08-01 Kevin Buettner <[email protected]>
4868
4869 * mips-tdep.c (mips_register_virtual_type): Use architecture
4870 invariant return values.
4871
ff5922b5
AC
48722002-08-01 Andrew Cagney <[email protected]>
4873
4874 * linux-proc.c: Include "gdb_string.h".
4875 * Makefile.in (linux-proc.o): Update dependency list.
4876
32a6503c
KB
48772002-08-01 Kevin Buettner <[email protected]>
4878
4879 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4880 comment.
4881
ccaa32c7
GS
48822002-08-01 Grace Sainsbury <[email protected]>
4883
4884 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4885 to_insert_watchpoint, to_remove_watchpoint,
4886 to_stopped_by_watchpoint, to_stopped_data_address,
4887 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4888 target vecctor. Define their corresponding macros so they call
4889 them.
4890
4891 * target.c: Add default and debug versions of for
4892 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4893 to_insert_watchpoint, to_remove_watchpoint,
4894 to_stopped_by_watchpoint, to_stopped_data_address,
4895 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4896
78fde5f8
KB
48972002-08-01 Kevin Buettner <[email protected]>
4898
4899 * mips-tdep.c (mips_register_virtual_type): New function.
4900 (mips_gdbarch_init): Register mips_register_virtual_type()
4901 with gdbarch machinery.
4902 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4903 this file instead of tm-bigmips.h.
4904 (MIPS_REGSIZE): Delete this macro.
4905 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4906 multiarch version in mips-tdep.c will be found.
4907
db034ac5
AC
49082002-08-01 Andrew Cagney <[email protected]>
4909
4910 * NEWS: Menion that CHILL has been made obsolete.
4911
4912 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
4913 * stabsread.c (read_range_type): Ditto.
4914 * gdbtypes.h: Ditto.
4915 * language.c (binop_type_check): Ditto.
4916 (binop_result_type): Ditto.
4917 (integral_type): Ditto.
4918 (character_type): Ditto.
4919 (string_type): Ditto.
4920 (boolean_type): Ditto.
4921 (structured_type): Ditto.
4922 (lang_bool_type): Ditto.
4923 (binop_type_check): Ditto.
4924 * language.h (_LANG_chill): Ditto.
4925 * dwarfread.c (set_cu_language): Ditto.
4926 * dwarfread.c (CHILL_PRODUCER): Ditto.
4927 * dwarfread.c (handle_producer): Ditto.
4928 * expression.h (enum exp_opcode): Ditto.
4929 * eval.c: Ditto for comments.
4930 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4931 * expprint.c (print_subexp): Ditto.
4932 (print_subexp): Ditto.
4933 * valops.c (value_cast): Ditto.
4934 (search_struct_field): Ditto.
4935 * value.h (COERCE_VARYING_ARRAY): Ditto.
4936 * symfile.c (init_filename_language_table): Ditto.
4937 (add_psymbol_with_dem_name_to_list): Ditto.
4938 * valarith.c (value_binop): Ditto.
4939 (value_neg): Ditto.
4940 * valops.c (value_slice): Ditto.
4941 * symtab.h (union language_specific): Ditto.
4942 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4943 (SYMBOL_DEMANGLED_NAME): Ditto.
4944 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4945 * defs.h (enum language): Ditto.
4946 * symtab.c (got_symtab): Ditto.
4947 * utils.c (fprintf_symbol_filtered): Ditto.
4948
4949 * ch-typeprint.c: Make file obsolete.
4950 * ch-valprint.c: Make file obsolete.
4951 * ch-lang.h: Make file obsolete.
4952 * ch-exp.c: Make file obsolete.
4953 * ch-lang.c: Make file obsolete.
4954
4955 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4956 CHILL_LIB.
4957 (TARGET_FLAGS_TO_PASS): Ditto.
4958 (CHILLFLAGS): Obsolete.
4959 (CHILL): Obsolete.
4960 (CHILL_FOR_TARGET): Obsolete.
4961 (CHILL_LIB): Obsolete.
4962 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4963 ch-valprint.c.
4964 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4965 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4966 ch-lang.o.
4967 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4968 targets.
4969
8aaf0b47
JB
49702002-07-31 Joel Brobecker <[email protected]>
4971
4972 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4973 This does not change anything at the moment, but will be helpful
4974 later when full Ada support is integrated.
4975
f3a7b3a5
KB
49762002-07-31 Kevin Buettner <[email protected]>
4977
4978 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4979 help message.
4980
fb850278
KB
49812002-07-31 Kevin Buettner <[email protected]>
4982
4983 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4984 and save it in a local variable. Use variable in later test.
4985
e3bddbfa
KB
49862002-07-31 Kevin Buettner <[email protected]>
4987
4988 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4989 test. (Thanks to Daniel Jacobowitz.)
4990
28d169de
KB
49912002-07-31 Kevin Buettner <[email protected]>
4992
4993 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4994 (mips_abi_strings): Add "n64".
4995 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4996
7fe7e44e
KB
49972002-07-31 Kevin Buettner <[email protected]>
4998
4999 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5000 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5001
c6caf090
KB
50022002-07-31 Kevin Buettner <[email protected]>
5003
5004 * utils.c (host_pointer_to_address, address_to_host_pointer):
5005 Use gdb_assert() instead of explicit call to internal_error().
5006
c41669e0
KB
50072002-07-30 Kevin Buettner <[email protected]>
5008
5009 * Makefile.in (rs6000-nat.o): Update dependencies.
5010
5011 From Nicholas Duffek:
5012 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5013 (aix-thread.o): New rule.
5014 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5015 * config/powerpc/aix432.mh: New file.
5016
2fda4977
DJ
50172002-07-30 Daniel Jacobowitz <[email protected]>
5018
5019 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5020 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5021 (fetch_core_registers, ppc_linux_supply_gregset)
5022 (ppc_linux_supply_fpregset): New functions.
5023 (ppc_linux_regset_core_fns): New.
5024 (_initialize_ppc_linux_tdep): Call add_core_fns.
5025 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5026 and ppc_linux_supply_gregset.
5027 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5028 (supply_fpregset): Call ppc_linux_supply_fpregset.
5029 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5030 corelow.o.
5031 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5032
729051e6
DJ
50332002-07-30 Daniel Jacobowitz <[email protected]>
5034
5035 * symtab.c (lookup_symbol): Demangle before lowercasing.
5036
5f8a3188
AC
50372002-07-30 Andrew Cagney <[email protected]>
5038
5039 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5040 declaration.
5041 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5042 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5043 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5044 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5045 "gdb_string.h".
5046 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5047 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5048 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5049 (avr-tdep.o, mon960-rom.o): Ditto.
5050 (aout_stabs_gnu_h): Define.
5051 (symtab_h): Remove $(gdb_obstack_h).
5052
67f07146
JB
50532002-07-30 Jim Blandy <[email protected]>
5054
5055 Patch from David Carlton <[email protected]>:
5056 * gdbinit.in: Move the `dir' commands that add GDB's own source
5057 directory to the search path to the end, so that the `gdb' source
5058 directory will be searched first.
5059
04ea0df1
AC
50602002-07-29 Andrew Cagney <[email protected]>
5061
5062 * gdb_obstack.h: New file.
5063 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5064 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5065 * objfiles.h: Include "gdb_obstack.h".
5066 * Makefile.in (gdb_obstack_h): Define.
5067 (symtab_h): Add $(gdb_obstack_h).
5068 (objfiles_h): Add $(gdb_obstack_h).
5069
5070 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5071 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5072 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5073 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5074 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5075 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5076 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5077 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5078
5079 * Makefile.in (bcache.o): Update dependencies.
5080 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5081 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5082 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5083 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5084 (stabsread.o, symfile.o, symmisc.o): Ditto.
5085 (symtab.o, typeprint.o, macroexp.o): Ditto.
5086 (macrotab.o, mdebugread.o): Ditto.
5087 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5088 (coff_ecoff_h, aout_aout64_h): Define.
5089 (aout_stabs_gnu_h, libaout_h): Define.
5090
d138e37a
AC
50912002-07-29 Andrew Cagney <[email protected]>
5092
5093 * regcache.c (struct regcache_descr): Rename nr_registers to
5094 nr_cooked_registers. Revise comments describing the structure
5095 member fields.
5096 (init_regcache_descr): Update.
5097 (init_legacy_regcache_descr): Update.
5098 (read_register_gen, write_register_gen): When a cooked register in
5099 the raw register range, directly access the value from the raw
5100 register cache.
5101
460e6ec3
AC
51022002-07-29 Andrew Cagney <[email protected]>
5103
5104 * z8k-tdep.c: Do not include "obstack.h".
5105 * h8300-tdep.c, h8500-tdep.c: Ditto.
5106 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5107 * valprint.c, v850-tdep.c: Ditto.
5108 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5109 * mn10200-tdep.c: Ditto.
5110
5111 * Makefile.in (z8k-tdep.o): Update dependencies.
5112 (m68hc11-tdep.o, valprint.o): Ditto.
5113 (v850-tdep.o, d10v-tdep.o): Ditto.
5114 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5115 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5116 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5117 (sh_opc_h, gdb_sim_sh_h): Define.
5118 (elf_sh_h, elf_bfd_h): Define.
5119 (opcode_m68hc11_h): Define.
5120 (OPCODES_SRC, OPCODES_DIR): define.
5121 (OPCODES): Use $(OPCODES_DIR).
5122 (gdb_sim_d10v_h): Rename sim_d10v_h.
5123 (gdb_sim_arm_h): Rename sim_arm_h.
5124
790c9cf0
KB
51252002-07-26 Kevin Buettner <[email protected]>
5126
5127 * utils.c (host_pointer_to_address, address_to_host_pointer):
5128 Change internal_error() message to indicate function responsible
5129 for the error.
5130
9647fa49
KB
51312002-07-26 Kevin Buettner <[email protected]>
5132
5133 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5134 calls to local_hex_string_custom().
5135
dabbe2c0
KB
51362002-07-26 Kevin Buettner <[email protected]>
5137
5138 * irix5-nat.c: Move IRIX shared library support from here...
5139 * solib-irix.c: ...to here. Revised substantially to work with
5140 generic solib framework.
5141
b96d0a4e
KB
5142 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5143 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5144 * mips-irix-tdep.c: New file.
5145
313fb2f6
KB
5146 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5147 (mips-irix-tdep.o, solib-irix.o): New rules.
5148 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5149 solib-irix.o.
5150 * config/mips/irix6.mt (TDEPFILES): Likewise.
5151 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5152
ab2eaf26
KB
51532002-07-26 Kevin Buettner <[email protected]>
5154
177e4768 5155 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
5156 disabled (via ``#if 0'') includes.
5157
7244546a
KB
51582002-07-26 Kevin Buettner <[email protected]>
5159
5160 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5161 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5162 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5163 Add support for the fpscr register.
5164 * rs6000-nat.c (regmap, fetch_inferior_registers)
5165 (store_inferior_registers, fetch_core_registers): Likewise.
5166
dd7be90a
KB
51672002-07-26 Kevin Buettner <[email protected]>
5168
5169 * rs6000-nat.c (language.h): Include.
5170 (special_regs): Delete this array.
5171 (regmap): New function.
5172 (fetch_register, store_register): Use regmap() to map gdb
5173 register numbers to ptrace register numbers. Also, use
5174 outputs from regmap() to make decisions regarding type of
5175 ptrace() call to make. In particular, don't compare against
5176 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5177 (fetch_inferior_registers, store_inferior_registers): Where
5178 possible, obtain register numbers from tdep struct. Don't
5179 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5180 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5181 (LAST_UISA_SP_REGNUM): Delete.
5182
11bf77db
KB
51832002-07-25 Kevin Buettner <[email protected]>
5184
5185 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
5186 (fetch_registers, store_register, fetch_core_registers): Don't
5187 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
5188 regcache_collect() as appropriate.
5189 (find_toc_address): Format hex address with local_hex_string().
5190
06afebeb
AC
51912002-07-25 Andrew Cagney <[email protected]>
5192
5193 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5194 bfd/elf32-frv.c.
5195
8c554d79
TT
51962002-07-24 Tom Tromey <[email protected]>
5197
5198 * jv-exp.y: Marked all strings with _().
5199 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5200 internal_error.
5201 (MethodInvocation, CastExpression, parse_number, yyerror,
5202 java_type_from_name, push_expression_name, yylex): Typo fixes.
5203
e4c242d9
DJ
52042002-07-24 Daniel Jacobowitz <[email protected]>
5205
5206 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5207 (tee_file_flush, tee_file_write, tee_file_fputs)
5208 (tee_file_isatty): New.
5209 * ui-file.h (tee_file_new): Add prototype.
5210
ebf56fd3
AS
52112002-07-24 Aidan Skinner <[email protected]>
5212
5213 * ada-lang.c: Change k&r style function definitions to prototyped
5214 form.
5215 * ada-typeprint.c: Change k&r style function definitions to prototyped
5216 form.
5217 * ada-valprint.c: Change k&r style function definitions to prototyped
5218 form.
5219
7fb623f7
AC
52202002-07-24 Andrew Cagney <[email protected]>
5221
5222 * README: Remove reference to remote-bug.
5223 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5224 remote-bug.c.
5225 (m88k-nat.o): Delete rule.
5226 (m88k-tdep.o): Delete rule.
5227 (remote-bug.o): Delete rule.
5228 * MAINTAINERS: Mark as obsolete.
5229 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5230 * m88k-tdep.c: Make file obsolete.
5231 * config/m88k/m88k.mh: Ditto.
5232 * config/m88k/delta88v4.mh: Ditto.
5233 * config/m88k/delta88v4.mt: Ditto.
5234 * config/m88k/delta88.mt: Ditto.
5235 * config/m88k/delta88.mh: Ditto.
5236 * remote-bug.c: Ditto.
5237 * config/m88k/tm-delta88.h: Ditto.
5238 * config/m88k/nm-delta88v4.h: Ditto.
5239 * config/m88k/xm-delta88.h: Ditto.
5240 * config/m88k/xm-dgux.h: Ditto.
5241 * config/m88k/tm-m88k.h: Ditto.
5242 * config/m88k/nm-m88k.h: Ditto.
5243 * config/m88k/tm-delta88v4.h: Ditto.
5244 * m88k-nat.c: Ditto.
5245 * cxux-nat.c: Ditto.
5246 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5247 and m88*-*-* obsolete.
5248 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5249 m88*-*-* obsolete.
5250
37611a2b
AC
52512002-07-24 Andrew Cagney <[email protected]>
5252
5253 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5254 constant. Same for local pointer variables.
5255 (extract_signed_integer): Ditto.
5256 * defs.h (extract_unsigned_integer): Update.
5257 (extract_signed_integer): Update.
5258
1aaa5f99
AC
52592002-07-24 Andrew Cagney <[email protected]>
5260
5261 * regcache.c (regcache_raw_write): Change buf parameter to a
5262 constant void pointer.
5263 (regcache_raw_read): Change buf parameter to a void pointer.
5264 (legacy_write_register_gen): Change myaddr parameter a constant
5265 void pointer.
5266 (supply_register): Change val parameter to a const void pointer.
5267 * regcache.h (regcache_raw_write): Update declaration.
5268 (regcache_raw_read): Update declaration.
5269 (supply_register): Update declaration.
5270
b4f5539f
TT
52712002-07-24 Tom Tromey <[email protected]>
5272
5273 * defs.h (gdb_readline_wrapper): Declare.
5274 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5275 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5276 * top.c (gdb_readline_wrapper): New function.
5277 (command_line_input): Use it.
5278
0818c12a
AC
52792002-07-24 Andrew Cagney <[email protected]>
5280
5281 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5282 regcache_read and regcache_write.
5283 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5284 * regcache.c: Update.
5285 * sh-tdep.c (sh64_push_arguments): Update comment.
5286 (sh_pseudo_register_read): Update.
5287 (sh_pseudo_register_write): Update.
5288 (sh4_register_read): Update.
5289 (sh4_register_write): Update.
5290 (sh64_pseudo_register_read): Update.
5291 (sh64_pseudo_register_write): Update.
5292 (sh64_register_read): Update.
5293 (sh64_register_write): Update.
5294 * i386-tdep.c (i386_extract_return_value): Update.
5295 (i386_extract_struct_value_address): Update.
5296 (i386_extract_return_value): Update.
5297 * blockframe.c (generic_read_register_dummy): Update.
5298 (generic_call_dummy_register_unwind): Update
5299 * infrun.c (write_inferior_status_register): Update.
5300
f7321c06
JB
53012002-07-23 Jim Blandy <[email protected]>
5302
5303 * parser-defs.h (expression_context_pc): Make this extern.
5304 (Thanks to Michael Snyder.)
5305
2037aebb
AC
53062002-07-23 Andrew Cagney <[email protected]>
5307
5308 GDB 5.2.1 released from 5.2 branch.
5309 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5310 * README: Update to mention 5.2.1.
5311
66504d44
MS
53122002-07-23 Mark Salter <[email protected]>
5313
5314 * remote.c (remote_read_bytes): Fix check for error.
5315
27bae383
KB
53162002-07-22 Kevin Buettner <[email protected]>
5317
5318 * aix-thread.c (language.h): Include.
5319 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5320 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5321 Print newlines at end of debug messages.
5322 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5323 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5324
53252002-07-22 Kevin Buettner <[email protected]>
5326
5327 * aix-thread.c (ppc-tdep.h): Include.
5328 (special_register_p): New function.
5329 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5330 (store_regs_user_thread): Use register number information from
5331 gdbarch_tdep struct instead of hardcoded offsets relative to
5332 FIRST_UISA_SP_REGNUM.
5333 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5334 special_register_p() instead of using FPLAST_REGNUM and
5335 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5336 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5337 will be MQ's register number.
5338
53392002-07-22 Michael Snyder <[email protected]>
206d3d3c
KB
5340
5341 * aix-thread.c (ops): Rename to aix_thread_ops.
5342 (base_ops): Rename to base_target.
5343 (ops_attach): Rename to aix_thread_attach.
5344 (ops_detach): Rename to aix_thread_detach.
5345 (ops_resume): Rename to aix_thread_detach.
5346 (ops_wait): Rename to aix_thread_wait.
5347 (ops_kill): Rename to aix_thread_kill.
5348 (init_ops): Rename to init_aix_thread_ops.
5349 (ops_fetch_register): Rename to aix_thread_fetch_register.
5350 (ops_store_register): Rename to aix_thread_store_register.
5351 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5352 (ops_thread_alive): Rename to aix_thread_thread_alive.
5353 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5354 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5355 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5356 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5357 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5358 (store_regs_lib): Rename to store_regs_user_thread.
5359 (store_regs_kern): Rename to store_regs_kernel_thread.
5360
27bae383 53612002-07-22 Michael Snyder <[email protected]>
cbe92db4
KB
5362
5363 * aix-thread.c (ops_prepare_to_store): Eliminate.
5364 (init_ops): Don't initialize ops.prepare_to_store.
5365 (store_regs_kern): Pre-fetch register buffers from child,
5366 because some registers may not be in the cache. Copy
5367 regs from register cache only if they are cached.
5368 (store_regs_lib): Copy regs from register cache only
5369 if they are cached.
5370 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5371 fill_gprs64): Ditto.
5372
61c5da0b
KB
53732002-07-22 Kevin Buettner <[email protected]>
5374
5375 * aix-thread.c (gdb_assert.h): Include.
5376 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5377 register sizes (from register cache) match size of buffer holding
5378 register data.
5379 (fill_sprs32): Change parameter types to match those in the ptrace()
5380 buffer.
5381 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5382 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5383
53842002-07-22 Michael Snyder <[email protected]>
5385
5386 * aix-thread.c (supply_sprs64): Cosmetic change.
5387 (supply_sprs32): Cosmetic change.
5388 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5389 (fill_sprs64): Use regcache_collect instead of read_register.
5390 (store_regs_lib): Use regcache_collect instead of
5391 read_register. Use fill_sprs32 instead of fill_sprs64,
5392 if debugging a 32-bit architecture.
5393 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5394 out of the register cache, instead of passing a pointer into
5395 the register cache directly to ptrace. Use regcache_collect
5396 insteaad of read_register.
5397 (ops_prepare_to_store): Use target_read_registers instead
5398 of read_register_bytes.
5399
36479eb1
AS
54002002-07-20 Aidan Skinner <[email protected]>
5401
5402 * MAINTAINERS: Add self under write after approval.
5403
80ae6ee2
AS
54042002-07-20 Aidan Skinner <[email protected]>
5405
5406 * ada-tasks.c: Change k&r style function definitions to prototyped
5407 form.
5408
8a8ab2b9
AC
54092002-07-19 Andrew Cagney <[email protected]>
5410
5411 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5412 * x86-64-tdep.c: Include "objfiles.h".
5413 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5414 in_plt_section. From 2002-07-18 Michal Ludvig <[email protected]>.
5415
fb16b900
ML
54162002-07-17 Michal Ludvig <[email protected]>
5417
5418 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5419 (update_context): Initialise cfa variable.
5420
0fe7bf7b
MS
54212002-07-17 Michael Snyder <[email protected]>
5422
5423 * aix-thread.c: Shorten some long lines.
5424 Bring comments into line with code spec.
5425
488f131b
JB
54262002-07-18 Joel Brobecker <[email protected]>
5427
5428 * infrun.c: Re-indent using gdb_indent.sh.
5429
46c415d2
JB
54302002-07-18 Joel Brobecker <[email protected]>
5431
5432 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5433 Leave the indentation temporarily untouched, to minimize the diffs.
5434
cdecafbe
EZ
54352002-07-18 Elena Zannoni <[email protected]>
5436
5437 * stabsread.c: Make os9k sections of the code obsolete,
5438 for real this time.
5439 * stabsread.h: Make os9k sections of the code obsolete.
5440
7b6aa020
ML
54412002-07-18 Michal Ludvig <[email protected]>
5442
09ec9b38
ML
5443 * linux-low.c (regsets_store_inferior_registers): Add free()
5444 at the end of a loop to prevent memory leak.
5445 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5446 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5447 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5448 line a comment.
4894ac5d 5449 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5450
233282cd
JB
54512002-07-17 Jim Blandy <[email protected]>
5452
5453 * macrocmd.c (info_macro_command): Remove newline from error
5454 message.
5455
7b6aa020 54562002-07-17 J"orn Rennecke <[email protected]>
2f14585c
JR
5457
5458 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5459 (sh_gdbarch_init): Use it for sh-dsp.
5460
f7ef9339
KB
54612002-07-16 Kevin Buettner <[email protected]>
5462
5463 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5464 64-bit DWARF2 format.
5465
8dd72958
JB
54662002-07-16 Joel Brobecker <[email protected]>
5467
5468 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5469 <sys/proc.h> when not available.
5470
a99a9e1b
AC
54712002-07-16 Andrew Cagney <[email protected]>
5472
5473 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5474 * stabsread.c: Make os9k sections of the code obsolete.
5475 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5476 * config/i386/i386os9k.mt: Make file obsolete.
5477 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5478 (COMMON_OBS): Remove os9kread.o
5479 (SFILES): Remove os9kread.c.
5480 (os9kread.o, remote-os9k.o): Make target obsolete.
5481 * remote-os9k.c: Make file obsolete.
5482 * os9kread.c: Make file obsolete.
5483 * Makefile.in
5484
7a3085c1
AC
54852002-07-16 Andrew Cagney <[email protected]>
5486
5487 * NEWS: Mention that the FR30 has been made obsolete.
5488 * fr30-tdep.c: Make file obsolete.
5489 * config/fr30/tm-fr30.h: Ditto.
5490 * config/fr30/fr30.mt: Ditto.
5491 * configure.tgt: Make fr30-*-elf obsolete.
5492 * MAINTAINERS: Make fr30-elf obsolete.
5493
28a93f5a
PM
54942002-07-16 Pierre Muller <[email protected]>
5495
5496 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5497 found is not inside a section.
5498
be006b8b
KB
54992002-07-15 Kevin Buettner <[email protected]>
5500
5501 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5502 strerror().
5503 (pdc_realloc): Use xrealloc() instead of realloc().
5504
14fa3751
KB
55052002-07-15 Kevin Buettner <[email protected]>
5506
5507 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5508 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5509 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5510 macros.
5511
42cc437f
KB
55122002-07-15 Kevin Buettner <[email protected]>
5513
5514 * aix-thread.c (ptrace_check): Eliminate goto.
5515 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5516 problem.
5517
8e2c28d4
KB
55182002-07-15 Kevin Buettner <[email protected]>
5519
5520 * aix-thread.c (gdbcmd.h): Include.
5521 (DEBUG, DBG, DBG2, dbg): Eliminate.
5522 (debug_aix_thread): New static global.
5523 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5524 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5525 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5526 invocations to DBG and DBG2 macros to test against
5527 ``debug_aix_thread'' and call fprintf_unfiltered().
5528 (_initialize_aix_thread): Add new command "set debug aix-thread".
5529
30413464
AC
55302002-07-15 Andrew Cagney <[email protected]>
5531
5532 From Gerhard Tonn <[email protected]>:
5533 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5534 instead of supply_register.
5535
7c43edc1
AC
55362002-07-15 Andrew Cagney <[email protected]>
5537
5538 * dwarf2cfi.c: Include "gdb_assert.h".
5539 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5540 non-NULL.
5541 (update_context): Do not use __func__. Add missing ``break''.
5542 (update_context): Do not use __func__.
5543
9364a0ef
EZ
55442002-07-15 Elena Zannoni <[email protected]>
5545
5546 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5547 and its setting. Set gdbarch instruction printing functions
5548 directly. For non-rs6000 case use new function
5549 gdb_print_insn_powerpc.
5550 (gdb_print_insn_powerpc): New function.
5551
3fbeef0b
AC
55522002-07-13 Andrew Cagney <[email protected]>
5553
92eb23c5 5554 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5555 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5556 * configure.tgt: Mark d30v-*-* as obsolete.
5557 * d30v-tdep.c: Mark file as obsolete.
5558 * config/d30v/d30v.mt: Ditto.
5559 * config/d30v/tm-d30v.h: Ditto.
5560
aacb1f0a
AS
55612002-07-13 Aidan Skinner <[email protected]>
5562
5563 * ada-tasks.c (add_task_entry): replace calls to
5564 malloc() with xmalloc
5565 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5566
5567 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5568 ada_finish_decode_line_1, all_sals_for_line
5569 ada_breakpoint_rewrite): replace calls to free() with xfree()
5570
c11d79f2
KB
55712002-07-12 Kevin Buettner <[email protected]>
5572
5573 From Nicholas Duffek (with minor changes by Martin Hunt,
5574 Louis Hamilton, and Kevin Buettner):
5575 * aix-thread.c: New file.
5576
8e19ed76
PS
55772002-07-12 Petr Sorfa <[email protected]>
5578
5579 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5580 complaint for invalid attribute class or form.
5581 (read_func_scope): DW_AT_frame_base
5582 better handling of DW_AT_block*.
5583 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5584 better handling of DW_AT_block*.
5585 (read_common_block): DW_AT_location
5586 better handling of DW_AT_block*.
5587 (read_partial_die): DW_AT_location better handling
5588 of DW_AT_block*.
5589 (new_symbol): DW_AT_external better handling of
5590 DW_AT_block*. Proper initialization of variable
5591 "addr".
5592 (attr_form_is_block): New function that returns true
5593 if the attribute's form is of DW_FORM_block*.
5594
295401f7
DJ
55952002-07-12 Peter Schauer <[email protected]>
5596
5597 * valops.c (find_method_list): Remove comment about
5598 removed STATIC_MEMFUNCP argument.
5599 (value_find_oload_method_list): Likewise.
5600
e42dc924
KB
56012002-07-12 Kevin Buettner <[email protected]>
5602
5603 From Nicholas Duffek:
5604 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5605 target_new_objfile_hook.
5606
6904b546
KB
56072002-07-12 Kevin Buettner <[email protected]>
5608
5609 From Nicholas Duffek:
5610 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5611 csect.
5612
53fe9346
AC
56132002-07-12 Andrew Cagney <[email protected]>
5614
5615 * MAINTAINERS: Mention --enable-sim-build-warnings.
5616 (m68hc11-elf): Disable sim build warnings.
5617 (m32r-elf): Mark as broken obsolete candidate.
5618 (x86_64-linux-gnu): Mark as buildable with -Werror.
5619 (arm-elf): Change -w to ``,'' which enables warnings but not
5620 -Werror.
5621
af5f3db6
AC
56222002-07-12 Andrew Cagney <[email protected]>
5623
5624 * bcache.h: Update copyright.
5625 (struct bstring, struct bcache): Move definition to "bcache.c".
5626 Replaced by opaque declaration.
5627 (bcache_xfree): Replace free_bcache.
5628 (bcache_xmalloc, bcache_memory_used): Declare.
5629
5630 * bcache.c: Update copyright.
5631 (struct bstring, struct bcache): Moved to here from "bcache.h".
5632 Update comments.
5633 (bcache_xmalloc, bcache_memory_used): New functions.
5634 (bcache_xfree): Replace function free_bcache.
5635
5636 * Makefile.in (objfiles.o): Add $(bcache_h).
5637 (objfiles_h): Remove $(bcache_h).
5638 (symfile.o): Add $(bcache_h).
5639
5640 * symmisc.c: Update copyright.
5641 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5642 (print_objfile_statistics): Use bcache_memory_used.
5643
5644 * symfile.c: Include "bcache.h".
5645 (reread_symbols): Use bcache_xfree.
5646 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5647 (add_psymbol_to_list): Pass psymbol_cache by value.
5648 (add_psymbol_with_dem_name_to_list): Ditto.
5649
5650 * objfiles.h: Update copyright.
5651 (struct bcache): Declare opaque. Do not include "bcache.h".
5652 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5653 bcache'' pointers.
5654 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5655
5656 * objfiles.c: Include "bcache.h". Update copyright.
5657 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5658 macro_cache.
5659 (free_objfile): Use bcache_xfree.
5660
444199e7
GS
56612002-07-11 Grace Sainsbury <[email protected]>
5662
5663 * monitor.c (monitor_fetch_register): Make name a constant.
5664 (monitor_store_register): Same.
5665
261397f8
DJ
56662002-07-11 Daniel Jacobowitz <[email protected]>
5667
5668 Based on patch from Daniel Berlin <[email protected]>.
5669 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5670 (finish_block) For non-function blocks, hash the symbol table. For
5671 function blocks, mark the symbol table as unhashed.
5672 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5673 (msymbol_hash_iw): Likewise.
5674 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5675 value.
5676 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5677 (lookup_minimal_symbol): Likewise for both.
5678 * symtab.h (struct block): Add `hashtable' flag. Comment the
5679 hashtable.
5680 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5681 (ALL_BLOCK_SYMBOLS): Update.
5682 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5683 (struct symbol): Add `hash_next' pointer.
5684 * symtab.c (lookup_block_symbol): Search using the hash table when
5685 possible.
5686 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5687 (search_symbols, find_addr_symbol): Likewise.
5688
5689 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5690 (read_dst_symtab): Likewise.
5691 * jv-lang.c (get_java_class_symtab): Likewise.
5692 * mdebugread.c: Include "gdb_assert.h".
5693 (shrink_block): Assert that the block being modified is not hashed.
5694 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5695 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5696 symbols.
5697 (dump_symtab): Recognize hashed blocks.
5698 * printcmd.c (print_frame_args): Assert that function blocks do not
5699 have hashed symbol tables.
5700 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5701 (fill_in_ada_prototype, debug_print_block): Likewise.
5702 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5703
6f0eaa01
CV
57042002-07-11 Corinna Vinschen <[email protected]>
5705
5706 * stack.c (print_frame): Use result of frame_address_in_block()
5707 instead of fi->pc when evaluating symbols.
5708 (backtrace_command_1): Ditto.
5709
a208b0cb
AC
57102002-07-11 Andrew Cagney <[email protected]>
5711
5712 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5713 Make static.
5714
5715 * arm-tdep.c (arm_register_name): Make return type constant.
5716
a6b6b089
AC
57172002-07-10 Andrew Cagney <[email protected]>
5718
5ae5f592
AC
5719 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5720 prototype.
5721 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5722 * s390-tdep.c (s390_fp_regnum): Ditto.
5723 (s390_read_fp): Ditto.
5724 (s390_pop_frame): Ditto.
5725 (_initialize_s390_tdep): Ditto.
5726 * remote.c (get_remote_state): Ditto.
5727 * procfs.c (mappingflags): Ditto.
5728 * memattr.c (_initialize_mem): Ditto.
5729 * mcore-tdep.c (mcore_pop_frame): Ditto.
5730 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5731 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5732 * language.c (set_case_str): Ditto.
5733 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5734 * frv-tdep.c (new_variant): Ditto.
5735 (frv_stopped_data_address): Ditto.
5736 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5737 (context_alloc): Ditto.
5738 (frame_state_alloc): Ditto.
5739 (unwind_tmp_obstack_init): Ditto.
5740 (unwind_tmp_obstack_free): Ditto.
5741 (cfi_read_fp): Ditto.
5742 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5743 (cris_pop_frame): Ditto.
5744 * c-lang.c (scanning_macro_expansion): Ditto.
5745 (finished_macro_expansion): Ditto.
5746 (c_preprocess_and_parse): Ditto.
5747 * gdbarch.sh: Ditto.
5748 * gdbarch.h, gdbarch.c: Regenerate.
5749 * config/mn10200/tm-mn10200.h: Adjust indentation.
5750 * target.c: Adjust indentation.
5751 * symtab.h: Adjust indentation.
5752 * stabsread.h: Adjust indentation.
5753 * remote-es.c: Adjust indentation.
5754 * os9kread.c: Adjust indentation.
5755
57562002-07-10 Andrew Cagney <[email protected]>
5757
a6b6b089
AC
5758 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5759 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5760
a1789893
GS
57612002-07-10 Grace Sainsbury <[email protected]>
5762
5763 * NEWS: Mention m68k, mcore multi-arching.
5764 * MAINTAINERS: Change status of m68k, mcore to reflect
5765 multi-arching.
5766
02f0d45d
DJ
57672002-07-10 Daniel Jacobowitz <[email protected]>
5768
5769 * valops.c (find_overload_match): Free oload_syms.
5770
f15f768e
JB
57712002-07-09 Joel Brobecker <[email protected]>
5772
5773 Define HAVE_SYS_PROC_H if sys/proc.h exists
5774 * configure.in: Add check for sys/proc.h
5775 * config.in: Regenerate.
5776 * configure: Regenerate.
5777
902a7139
GS
57782002-07-09 Grace Sainsbury <[email protected]>
5779
5780 * config/m68k/tm-m68k.h: Remove macros wrapped in
5781 #if !GDB_MULTI_ARCH.
5782
a534e424
AC
57832002-07-08 Andrew Cagney <[email protected]>
5784
5785 * config.in, configure: Regenerate.
5786
9b94f7bf
MK
57872002-07-08 Mark Kettenis <[email protected]>
5788
5789 * dwarf2cfi.c: Include "gcore.h".
5790 (execute_stack_op): Fix implementation of the
5791 DW_OP_deref and DW_OP_deref_size operators by letting do their
5792 lookup in the target.
5793
1d34db41
MK
57942002-07-07 Mark Kettenis <[email protected]>
5795
5796 From Peter Schauer <[email protected]>:
5797 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5798 tdep->sc_sp_offset.
5799
79d5b63a
DJ
58002002-07-05 Daniel Jacobowitz <[email protected]>
5801
5802 Fix PR gdb/595, gdb/602
5803 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5804 Don't call value_cast, just read the vtable pointer; update comments
5805 to match.
5806
3bb912e8
GS
58072002-07-05 Grace Sainsbury <[email protected]>
5808
5809 * config/mcore/tm-mcore.h: Remove file.
5810 * config/mcore/mcore.mt: Remove definition of TM_FILE
5811 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5812
ca39387d
MK
58132002-07-05 Mark Kettenis <[email protected]>
5814
5815 * i386bsd-tdep.c: Include "gdb_string.h".
5816
efdc1108
GS
58172002-07-04 Grace Sainsbury <[email protected]>
5818
5819 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5820 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5821 mcore-tdep.
5822 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5823 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5824 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5825 (RETVAL_REGNUM): Move macros from tm-mcore.h
5826 (mcore_reg_struct_has_addr): New function.
5827 (mcore_gdbarch_init): Added initializations for the macros removed
5828 from tm-mcore.h.
5829
bb21884d
MK
58302002-07-04 Mark Kettenis <[email protected]>
5831
5832 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5833 traditonal string branding within the ELF header.
5834
228c6d41
DJ
58352002-07-04 Daniel Jacobowitz <[email protected]>
5836
5837 * symtab.c (remove_params): New function.
5838 (make_symbol_overload_list): Use it instead of cplus_demangle.
5839 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5840
2404952e
MK
58412002-07-04 Mark Kettenis <[email protected]>
5842
e5e4acad
MK
5843 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5844
baadce09
MK
5845 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5846 New variables.
5847 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5848 and tdep->sigtramp_end.
5849 * i386obsd-nat.c: New file.
5850 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5851
2404952e
MK
5852 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5853 Don't call get_current_frame().
5854
9b4f1ba7
PM
58552002-07-04 Pierre Muller <[email protected]>
5856
5857 * i386-nat.c (child_post_startup_inferior): New function
5858 calling i386_cleanup_dregs if
5859 I386_USE_GENERIC_WATCHPOINTS is defined.
5860 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5861 conditional to acknowledge that i386-nat.c has its
5862 own child_post_startup_inferior function.
5863
c0d1d883
MK
58642002-07-04 Mark Kettenis <[email protected]>
5865
00f8375e
MK
5866 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5867 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5868 instead of MAX_REGISTER_RAW_SIZE.
5869 (i386_extract_return_value, i386_extract_struct_value_address):
5870 Convert to use regcache.
5871 (i386_gdbarch_init): Set max_register_raw_size and
5872 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5873 Set extract_return_value and extract_struct_value_address instead
5874 of their deprecated variants.
5875
c0d1d883
MK
5876 Convert i386 target to generic dummy frames.
5877 * i386-tdep.c: Include "symfile.h".
5878 (i386_frameless_signal_p): Consider a function to be frameless if
5879 the pc points at the first instruction of the function.
5880 (i386_frame_chain): Handle (generic) call dummies.
5881 (i386_frame_saved_pc): Likewise.
5882 (i386_frame_init_saved_regs): Remove code dealing with call
5883 dummies on the stack.
5884 (i386_push_dummy_frame): Removed.
5885 (i386_call_dummy_words): Removed.
5886 (i386_fix_call_dummy): Removed.
5887 (i386_push_return_address): New function.
5888 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5889 parameter, and don't call get_current_frame.
5890 (i386_pop_frame): New function.
5891 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5892 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5893 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5894 call_dummy_length to 0, set call_dummy_words to NULL, set
5895 sizeof_call_dummy_words to 0, set fix_call_dummy to
5896 generic_fix_call_dummy, set pc_in_call_dummy to
5897 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5898 generic_push_dummy_frame, set push_return_address to
5899 i386_push_return_address and set frame_chain_valid to
5900 generic_file_frame_chain_valid.
5901
049ee0e4
AC
59022002-07-03 Andrew Cagney <[email protected]>
5903
5904 * gdbarch.sh (struct regcache): Add opaque declaration.
5905 (EXTRACT_RETURN_VALUE): New architecture method.
5906 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5907 * gdbarch.h, gdbarch.c: Regenerate.
5908 * arch-utils.c (legacy_extract_return_value): New function.
5909 * arch-utils.h (legacy_extract_return_value): Declare.
5910 * values.c (value_being_returned): Re-enable code handling
5911 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5912 deprecated_grub_regcache_for_registers call to block handling
5913 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5914 (EXTRACT_RETURN_VALUE): Do not define.
5915
4e0d9804
GS
59162002-07-03 Grace Sainsbury <[email protected]>
5917
5918 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5919 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5920 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5921 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5922 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5923 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5924 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5925 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5926 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5927 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5928 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5929 argument so the function fits the prototype in the architecture
5930 vector.
5931 (mcore_pop_frame): Remove argument so the function fits the
5932 prototype. Use get_current_frame instead of the argument.
5933 (mcore_push_arguments): Change type of struct_return so the
5934 function can be used in the architecture vector.
5935 (mcore_store_struct_return): Add.
5936 (mcore_frame_init_saved_regs): Add.
5937 (mcore_gdbarch_init): Add function calls to replace the macros
5938 removed from tm-mcore.h
5939
36160dc4
AC
59402002-07-03 Andrew Cagney <[email protected]>
5941
5942 * infcmd.c (print_return_value): Remove compatibility code calling
5943 deprecated_grub_regcache_for_registers.
5944
5945 * values.c: Include "regcache.h".
5946 (value_being_returned): Update. Use
5947 deprecated_grub_regcache_for_registers to extract the register
5948 buffer address.
5949 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5950 ``struct regcache''.
5951 * Makefile.in (values.o): Add dependency on $(regcache_h).
5952
5953 * inferior.h (run_stack_dummy): Change type of second parameter to
5954 a ``struct regcache''.
5955 * valops.c (hand_function_call): Change type of retbuf to ``struct
5956 regcache''. Allocate using regcache_xmalloc, clean using
5957 make_cleanup_regcache_xfree.
5958 * infcmd.c (run_stack_dummy): Update. Use
5959 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5960
5961 * regcache.c (do_regcache_xfree): New function.
5962 (make_cleanup_regcache_xfree): New function.
5963 * regcache.h (make_cleanup_regcache_xfree): Declare.
5964
e64d9b3d
MH
59652002-07-03 Martin M. Hunt <[email protected]>
5966
4dd79c29
MH
5967 * event-top.c (command_line_handler): Don't read past
5968 beginning of buffer.
e64d9b3d 5969
4dd79c29
MH
59702002-07-03 Martin M. Hunt <[email protected]>
5971
e64d9b3d
MH
5972 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5973 struct frame_id.
5974 (varobj_create): Store frame_id for root.
5975 (varobj_gen_name): Use xasprintf.
5976 (varobj_update): Save and restore frame using get_frame_id() and
5977 frame_find_by_id().
5978 (create_child): Use xasprintf.
5979 (new_root_variable): Initialize frame_id.
5980 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5981 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5982 to prevent memory leak.
5983
26e6c56a
AC
59842002-07-03 Andrew Cagney <[email protected]>
5985
5986 * valops.c (hand_function_call): Move declaration of retbuf to
5987 start of function, allocate using malloc, add a cleanup but before
5988 the inf_status cleanup, cleanup the buffer. Rename local variable
5989 old_chain to inf_status_cleanup.
5990
f436dd25
MH
59912002-07-03 Martin M. Hunt <[email protected]>
5992
5993 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5994
5995 * cli/cli-decode.c (cmd_func_p): New function.
5996 (cmd_func): New function.
5997
5998 * command.h: Add cmd_func() and cmd_func_p().
5999
4cfe2084
GS
60002002-07-03 Grace Sainsbury <[email protected]>
6001
6002 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6003 (REGISTER_SIZE): Remove.
6004 (MAX_REGISTER_RAW_SIZE): Remove.
6005 (REGISTER_VIRTUAL_TYPE): Remove.
6006 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6007 (REGISTER_NAME): Remove.
6008 (USE_GENERIC_DUMMY_FRAMES): Remove.
6009 (CALL_DUMMY): Remove.
6010 (CALL_DUMMY_START_OFFSET): Remove.
6011 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6012 (CALL_DUMMY_LOCATION): Remove.
6013 (FIX_CALL_DUMMY): Remove.
6014 (CALL_DUMMY_ADDRESS): Remove.
6015 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6016 (SAVE_DUMMY_FRAME_TOS): Remove.
6017 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6018 (mcore_register_virtual_type): New function.
6019 (mcore_register_byte): New function.
6020 (mcore_register_size): New function.
6021 (mcore_register_name): New function.
6022 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6023 macros removed from tm-mcore.h.
6024 (mcore_dump_tdep): Add.
6025 (_initialize_mcore_tdep): Add gdbarch_register call.
6026
4fd667e9
MK
60272002-07-03 Mark Kettenis <[email protected]>
6028
6029 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6030 frameless_look_for_prologue, such that we actually call this
6031 function.
6032
42f99ac2
JB
60332002-07-02 Joel Brobecker <[email protected]>
6034
6035 * frame.h (frame_address_in_block): New function.
6036
6037 * blockframe.c (frame_address_in_block): New function extracted
6038 from get_frame_block().
6039 (get_frame_block): Use frame_address_in_block().
6040 (block_innermost_frame): Use frame_address_in_block() to match
6041 the frame pc address against the block boundaries rather than
6042 the frame pc directly. This prevents a failure when a frame pc
6043 is actually a return-address pointing immediately after the end
6044 of the given block.
6045
103a1597 60462002-07-02 Grace Sainsbury <[email protected]>
83b4a0fe
GS
6047
6048 * MAINTAINERS: Add self under write after approval.
6049
60502002-07-02 Grace Sainsbury <[email protected]>
6051
103a1597
GS
6052 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6053 used in architecture vector. The default is
6054 m68k_local_breakpoint_from_pc.
6055 (m68k_local_breakpoint_from_pc): Add.
6056 (enum): Add register numbers from tm-m68k.h.
6057 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6058 vector.
6059 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6060 GDB_MULTI_ARCH_PARTIAL.
6061 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6062 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6063 m68k-tdep.c.
6064 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6065 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6066 to enum in m68k-tdep.c
6067
7a5a0534
JB
60682002-07-02 Joel Brobecker <[email protected]>
6069
6070 * solib-osf.c (open_map): Compute the list of shared libraries
6071 loaded by the inferior, rather than the list of libraries loaded
6072 by GDB itself. Otherwise, GDB ends up reading the symbols from
6073 the wrong shared libraries...
6074
6f558d74
MK
60752002-07-02 Mark Kettenis <[email protected]>
6076
b7d15bf7
MK
6077 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6078 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6079 macros.
6080 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6081 Remove functions.
6082 (FRAMELESS_SIGNAL): Remove function.
6083 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6084 i386_linux_saved_pc_after_call): Removed.
6085 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6086 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6087 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6088
6bff26de
MK
6089 * i386-tdep.c (i386_frameless_signal_p): New function.
6090 (i386_frame_chain): Deal with frameless signals.
6091 (i386_sigtramp_saved_sp): New function.
6092 (i386_frame_saved_pc): Deal with frameless signals.
6093 (i386_saved_pc_after_call): Make sure the correct value is
6094 returned just after entry into a sigtramp.
6095 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6096 i386fbsd4_sc_sp_offset): New variables.
6097 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6098 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6099 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6100 similiar to what we already did for sc_pc_offset.
6101 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6102 tdep->sc_sp_offset.
6103
6f558d74
MK
6104 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6105
145564b7
ML
61062002-07-02 Michal Ludvig <[email protected]>
6107
6108 * config/i386/tm-x86-64linux.h: New.
6109 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6110 definitions.
6111 * config/i386/nm-x86-64.h: Rename to ...
6112 * config/i386/nm-x86-64linux.h: ... this one.
6113 * config/i386/x86-64linux.mh: Reflect the above change.
6114
3a1e71e3
MK
61152002-07-01 Mark Kettenis <[email protected]>
6116
21d0e8a4
MK
6117 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6118 with sigcontext_addr. Add sc_sp_offset.
6119 (i386bsd_sigtramp_saved_pc): Remove prototype.
6120 (i386bsd_sicontext_addr): Add prototype.
6121 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6122 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6123 (i386_svr4_sigtramp_saved_pc): Removed.
6124 (i386_svr4_sigcontext_addr): New function.
6125 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6126 Initialize tdep->sigcontext_addr instead. Initialize
6127 tdep->sc_pc_offset and tdep->sc_sp_offset.
6128 (i386_gdbarch_init): Likewise.
6129 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6130 any more.
6131 (i386bsd_sigtramp_saved_pc): Remove function.
6132 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6133 Initialize tdep->sigcontext_addr instead. Initialize
6134 tdep->sc_pc_offset.
6135 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6136 of tdep->sigtramp_saved_pc.
6137 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6138 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6139 instead.
6140
3a1e71e3
MK
6141 * i386-tdep.c (i386_frameless_function_invocation,
6142 i386_frame_num_args, i386_frame_init_saved_regs,
6143 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6144 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6145 i386_extract_return_value, i386_store_return_value,
6146 i386_extract_struct_value_address, i386_register_virtual_type,
6147 i386_register_convertible, i386_register_convert_to_virtual,
6148 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6149 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6150 static.
6151
52e9098c
MK
61522002-07-01 Mark Kettenis <[email protected]>
6153
77b13a25
MK
6154 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6155
52e9098c
MK
6156 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6157 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6158 this macro. Include "value.h".
6159
1b372fff
AS
61602002-06-30 Aidan Skinner <[email protected]>
6161
6162 * ada-exp.tab.c: remove as it's a generated file
6163 * ada-lex.c: remove as it's a generated file
6164
9c5045b5
MK
61652002-06-30 Mark Kettenis <[email protected]>
6166
4a93c5bb
MK
6167 * config/i386/tm-i386.h (struct frame_info, struct
6168 frame_saved_regs, struct value, struct type): Remove forward
6169 declarations.
6170
322d4fe0
MK
6171 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6172 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6173 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6174 (FILL_FPXREGSET): Define.
6175
fdd8263d
MK
6176 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6177
482e577b
MK
6178 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6179 i[3456]86-*-netbsd* case.
6180 * config/i386/tm-obsd.h: Removed.
6181 * config/i386/obsd.mt: Removed.
6182 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6183 core-aout.o.
6184 (MH_CFLAGS): Add -DYYDEBUG=0.
6185
6916549a
MK
6186 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6187 i386nbsd_sc_pc_offset on OpenBSD too.
6188
9c5045b5
MK
6189 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6190 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6191 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6192 define.
6193 * i386bsd-tdep.c: Include "arch-utils.h".
6194 (i386bsd_aout_in_solib_call_trampoline): New function.
6195 (i386bsd_init_abi): Set in_solib_call_trampoline to
6196 i386bsd_aout_in_solib_call_trampoline.
6197 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6198 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6199
aa84d1bb
AC
62002002-06-28 Andrew Cagney <[email protected]>
6201
6202 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6203 (struct obstack, struct bcache): Add opaque declarations.
6204 * Makefile.in (macrotab_h): Update
6205
b4d83933
AC
62062002-06-28 Andrew Cagney <[email protected]>
6207
6208 * blockframe.c (generic_find_dummy_frame): Change return type to
6209 ``struct regcache''.
6210 (struct dummy_frame): Replace field ``registers'' with regcache, a
6211 struct regcache object.
6212 (generic_find_dummy_frame): Update.
6213 (generic_push_dummy_frame): Update. Use regcache_xfree,
6214 regcache_xmalloc and regcache_cpy.
6215 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6216 regcache_xfree.
6217 (deprecated_generic_find_dummy_frame): Update.
6218 (generic_read_register_dummy): Update. Use
6219 regcache_read_as_address.
6220 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6221 (generic_get_saved_register): Update. Use regcache_read.
6222
08c0b5bc
AC
62232002-06-28 Andrew Cagney <[email protected]>
6224
6225 * Makefile.in (objfiles_h): Add $(bcache_h).
6226 * objfiles.h: Include "bcache.h".
6227
6228 * Makefile.in (symtab_h): Remove $(bcache_h).
6229 * symtab.h: Do not include "bcache.h".
6230
1f89801a
AC
62312002-06-28 Andrew Cagney <[email protected]>
6232
6233 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6234 generic_func_frame_chain_valid.
6235
b9644b58
DB
62362002-06-28 David O'Brien <[email protected]>
6237
6238 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6239 * config/i386/tm-fbsd.h: Likewise.
6240
dd486634
AC
62412002-06-28 Andrew Cagney <[email protected]>
6242
6243 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6244 generic_unwind_get_saved_register.
6245
0b434a00
AC
62462002-06-27 Andrew Cagney <[email protected]>
6247
6248 From 2002-06-27 John David Anglin <[email protected]>:
6249 * regcache.c (supply_register): Add missing argument to
6250 register_buffer call.
6251
f30e5a77
AC
62522002-06-27 Andrew Cagney <[email protected]>
6253
6254 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6255 Solaris /bin/grep does not not like it. From Peter Schauer.
6256
9f064c95
TT
62572002-06-26 Tom Tromey <[email protected]>
6258
6259 * command.h (add_setshow_cmd): Declare.
6260 (add_setshow_cmd_full): Declare.
6261 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6262 returns void. Use add_setshow_cmd_full.
6263 (add_setshow_cmd_full): New function.
6264 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6265 (add_setshow_boolean_cmd): Likewise.
6266
099c7589
JT
62672002-06-26 Jason Thorpe <[email protected]>
6268
6269 * config/vax/tm-vax.h: Protect from multiple inclusion.
6270 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6271 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6272 * config/vax/tm-vaxbsd.h: ...here. New file.
6273 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6274
1d049c5e
JT
62752002-06-26 Jason Thorpe <[email protected]>
6276
6277 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6278 (BELIEVE_PCC_PROMOTION): Remove.
6279 (AP_REGNUM): Move to...
6280 * config/vax/nm-vax.h: ...here.
6281 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6282 (vax_breakpoint_from_pc): New function.
6283 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6284 and gdbarch_believe_pcc_promotion.
6285
4791e091
JT
62862002-06-26 Jason Thorpe <[email protected]>
6287
6288 * Makefile.in (vax_tdep_h): Define.
6289 (vax-tdep.o): Use $(vax_tdep_h).
6290 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6291 (vax_dump_tdep): New function.
6292 (_initialize_vax_tdep): Register vax_dump_tdep.
6293 * vax-tdep.h: Include osabi.h.
6294 (struct gdbarch_tdep): New.
6295
da130f98
AC
62962002-06-26 Andrew Cagney <[email protected]>
6297
6298 * frame.h (deprecated_generic_find_dummy_frame): Rename
6299 generic_find_dummy_frame.
6300 * blockframe.c (generic_find_dummy_frame): Make static.
6301 (deprecated_generic_find_dummy_frame): New function.
6302 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6303 generic_find_dummy_frame with deprecated_find_dummy_frame.
6304 (sh64_nofp_frame_init_saved_regs): Ditto.
6305 (sh_fp_frame_init_saved_regs): Ditto.
6306 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6307 (s390_frame_chain): Ditto.
6308 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6309
6300c360
GS
63102002-06-26 Grace Sainsbury <[email protected]>
6311
6312 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6313 gdbarch vector are at the top.
6314 (NUM_REGS): Remove.
6315 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6316 (FRAME_ARGS_ADDRESS): Remove.
6317 (FRAME_LOCALS_ADDRESS): Remove.
6318 (FRAME_NUM_ARGS): Remove.
6319 (FRAME_ARGS_SKIP): Remove.
6320 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6321 (m68k_gdbarch_init): Add gdbarch initializations for macros
6322 undefined in tm-m68k.h
6323
1c617db8
GS
63242002-06-26 Grace Sainsbury <[email protected]>
6325
6326 * monitor.h: Add the function regname to monitor_ops
6327 structure. This way NUM_REGS does not have to be a constant.
6328 * monitor.c (monitor_fetch_register): Added support for regname
6329 function. The function is called if the array regnames is NULL.
6330 (monitor_store_register): Same.
da130f98
AC
6331 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6332 regnames array.
1c617db8
GS
6333 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6334 cpu32bug_cmds.regname to point to new function.
6335 * abug-rom.c (abug_regname): Same as above.
6336 (init_abug_cmds): Same.
6337 * dbug-rom.c (dbug_regname): Same as above.
6338 (init_dbug_cmds): Same.
6339 * remote-est.c (est_regname): Same.
6340 (init_est_cmds): Same.
6341 * rom68k-rom.c (rom68k_regname): Same.
6342 (init_rom68k_cmds): Same.
6343
ea9365bb
TT
63442002-06-25 Tom Tromey <[email protected]>
6345
6346 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6347
72cec141
AC
63482002-06-25 Andrew Cagney <[email protected]>
6349
6350 * infrun.c (stop_registers): Change variable's type to ``struct
6351 regcache'''.
6352 (xmalloc_inferior_status): Delete function.
6353 (free_inferior_status): Delete function.
6354 (normal_stop): Use regcache_cpy.
6355 (struct inferior_status): Change type of fields ``stop_registers''
6356 and ``registers'' to ``struct regcache''.
6357 (write_inferior_status_register): Use regcache_write.
6358 (save_inferior_status): Instead of calling
6359 xmalloc_inferior_status, allocate the inf_status buffer directly.
6360 Use regcache_dup_no_passthrough and regcache_dup to save the
6361 buffers.
6362 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6363 Replace the stop_registers regcache instead of overriding it. Use
6364 regcache_xfree. Instead of calling free_inferior_status, xfree
6365 the buffer directly.
6366 (discard_inferior_status): Use regcache_xfree. Instead of calling
6367 free_inferior_status, xfree the buffer directly.
6368 (build_infrun): Use regcache_xmalloc.
6369 (_initialize_infrun): Delete redundant call to build_infrun.
6370
6371 * Makefile.in (infcmd.o): Add $(regcache_h).
6372
6373 * infcmd.c: Include "regcache.h".
6374 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6375 obtain the address of `stop_registers' register buffer.
6376 (print_return_value): Ditto.
6377
6378 * inferior.h (struct regcache): Add opaque declaration.
6379 (stop_registers): Change variable's declared type to ``struct
6380 regcache''.
6381
defc6f8c
TT
63822002-06-24 Tom Tromey <[email protected]>
6383
c0e624e7
TT
6384 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6385 * target.c (initialize_targets): Fixed typo in
6386 trust-readonly-sections `show' documentation.
6387
defc6f8c
TT
6388 * main.c: Marked all strings with _().
6389
2b236d82
DH
63902002-06-24 Don Howard <[email protected]>
6391
6392 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6393 that means max CORE_ADDR+1.
6394 (lookup_mem_region): Ditto.
6395 (mem_info_command): Ditto.
6396
942dc0e9
GS
63972002-06-24 Grace Sainsbury <[email protected]>
6398
6399 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6400 (REGISTER_BYTES_OK): Remove.
6401 (REGISTER_BYTES): Remove.
6402 (STORE_STRUCT_RETURN): Remove.
6403 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6404 (STORE_RETURN_VALUE): Remove.
6405 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6406 (FRAME_CHAIN): Remove.
6407 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6408 (FRAME_SAVED_PC): Remove.
6409 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6410 (m68k_store_struct_return): Add.
6411 (m68k_deprecated_extract_return_value): Add.
6412 (m68k_deprecated_extract_struct_value_address): Add.
6413 (m68k_store_return_value): Add.
6414 (m68k_frame_chain): Add.
6415 (m68k_frameless_function_invocation): Add.
6416 (m68k_frame_saved_pc): Add.
6417 (m68k_gdbarch_init): added set_gdbarch calls for new
6418 functions and deleted macros.
6419
03c30d4d
TT
64202002-06-23 Tom Tromey <[email protected]>
6421
6422 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6423 (ALLDEPFILES): Likewise.
6424 (udiheaders): Removed.
6425 (udip2soc.o): Likewise.
6426 (udi2go32.o): Likewise.
6427 (udr.o): Likewise.
6428 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6429
37e71372
AC
64302002-06-22 Andrew Cagney <[email protected]>
6431
06a6ac57
AC
6432 * infrun.c (_initialize_infrun): Delete unnecessary call to
6433 build_infrun.
6434
37e71372
AC
6435 * regcache.h: Update comments describing the regcache_cpy family
6436 of functions.
6437 (regcache_save, regcache_restore): Delete declaration.
6438 (regcache_save_no_passthrough): Delete declaration.
6439 (regcache_restore_no_passthrough): Delete declaration.
6440 * regcache.c (regcache_save): Delete function.
6441 (regcache_save_no_passthrough): Delete function.
6442 (regcache_restore): Delete function.
6443 (regcache_restore_no_passthrough): Delete function.
6444
78f6d055
AC
64452002-06-21 Andrew Cagney <[email protected]>
6446
6447 * config/m68k/tm-m68k.h: Fix typo.
6448 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6449 (m68k_frame_init_saved_regs): Declare.
6450
78b119cb
JB
64512002-06-21 Jim Blandy <[email protected]>
6452
6453 Remove some vestiges of Harris 88k support.
6454 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6455 register numbering quirk.
6456 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6457 odd symbols occurring in Harris 88k ELF targets.
6458
0fbb3da7
TT
64592002-06-21 Tom Tromey <[email protected]>
6460
6461 * gdb_locale.h: New file.
6462 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6463 (defs_h): Added gdb_locale.h.
6464 * configure, config.in: Rebuilt.
6465 * configure.in (PACKAGE): Define.
6466 * defs.h: Include gdb_locale.h.
6467 * main.c (captured_main): Call setlocale, bindtextdomain,
6468 textdomain.
6469
456f8b9d
DB
64702002-06-21 Dave Brolley <[email protected]>
6471
6472 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6473 * config/frv/frv.mt: New file.
6474 * config/frv/tm-frv.h: New file.
6475 * configure.tgt: Support frv-*-*.
6476 * Makefile.in (frv-tdep.o): New target.
6477 * frv-tdep.c: New file.
6478 * NEWS: Mention frv.
6479
cdd463f9
DB
64802002-06-21 Dave Brolley <[email protected]>
6481
6482 * MAINTAINERS: Add self to "Write After Approval" list.
6483
5d3ed2e3
GS
64842002-06-21 Grace Sainsbury <[email protected]>
6485
6486 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6487 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6488 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6489 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6490 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6491
6492 * m68k-tdep.c: Include arch-utils.h
6493 (m68k_register_raw_size): Add.
6494 (m68k_register_virtual_size): Add.
6495 (m68k_register_virtual_type): Add.
6496 (m68k_register_name): Add.
6497 (m68k_stack_align): Add.
6498 (m68k_register_byte): Add.
6499 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6500 tm-m68k.h.
6501
7f8e7424
GS
65022002-06-21 Grace Sainsbury <[email protected]>
6503
a2c6a6d5 6504 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6505 m68k_find_saved_regs.
6506 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6507 references to it with frame->saved_regs.
7f8e7424
GS
6508 (m68k_gdbarch_init): Added function calls to initialize the
6509 gdbarch structure.
a2c6a6d5
GS
6510 (m68k_fix_call_dummy): Add.
6511 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6512 (CALL_DUMMY): Remove.
6513 (CALL_DUMMY_LENGTH): Remove.
6514 (CALL_DUMMY_START_OFFSET): Remove.
6515 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6516 (FIX_CALL_DUMMY): Remove.
6517 (PUSH_DUMMY_FRAME): Remove.
6518 (POP_FRAME): Remove.
7f8e7424 6519
f461f5cf
PM
65202002-06-19 Pierre Muller <[email protected]>
6521
6522 * parse.c (parse_fprintf): New function used to avoid calls to
6523 fprintf in bison parser generated debug code.
6524 * parser-defs.h: Declaration of new parse_fprintf function.
6525 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6526 Set YYDEBUG to 1 by default.
6527 Set YYFPRINTF as parse_fprintf.
6528
7f0c12ed
ML
65292002-06-21 Michal Ludvig <[email protected]>
6530
6531 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6532 encoding anymore.
6533 (pointer_encoding, enum ptr_encoding): New.
6534 (execute_cfa_program): Take care about pointer encoding.
6535 (dwarf2_build_frame_info): Only call parse_frame_info for
6536 .debug_frame and .eh_frame.
6537 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6538 fixed augmentation handling, added relative addressing,
6539 ignore duplicate FDEs. Added comments.
19d833a2 6540 * dwarf2cfi.c: Reindented.
7f0c12ed 6541
87c4a039
EZ
65422002-06-20 Elena Zannoni <[email protected]>
6543
6544 * event-top.c (command_handler): Don't use space_at_cmd_start
6545 unless there is sbrk() on the host. Assign time and space data
6546 to union fields of the appropriate length.
6547
1cf877ad
ML
65482002-06-20 Michal Ludvig <[email protected]>
6549
6550 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6551 x86_64_register_name. Return type changed to 'const char *'.
6552 (x86_64_register_name2nr): Rename to x86_64_register_number.
6553 (x86_64_gdbarch_init): Update to reflect the change.
6554 * x86-64-tdep.h: Ditto.
6555 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6556 (supply_fpregset): Ditto.
6557
3fadccb3
AC
65582002-06-19 Andrew Cagney <[email protected]>
6559
6560 * regcache.h: Update copyright.
6561 (struct regcache, struct gdbarch): Add opaque declarations.
6562 (current_regcache): Declare global variable.
6563 (regcache_read, regcache_write): Add gdbarch parameter.
6564 (regcache_save, regcache_save_no_passthrough)
6565 (regcache_restore, regcache_restore_no_passthrough)
6566 (regcache_dup, regcache_dup_no_passthrough)
6567 (regcache_cpy, regcache_cpy_no_passthrough)
6568 (deprecated_grub_regcache_for_registers)
6569 (deprecated_grub_regcache_for_register_valid)
6570 (regcache_valid_p): Add function declarations.
6571
6572 * regcache.c: Update copyright.
6573 (regcache_descr_handle): New global variable.
6574 (struct regcache_descr): Define.
6575 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6576 (regcache_descr, xfree_regcache_descr): New functions.
6577 (struct regcache): Define.
6578 (regcache_xmalloc, regcache_xfree): New functions.
6579 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6580 (regcache_dup, regcache_dup_no_passthrough): New functions.
6581 (regcache_valid_p, regcache_read_as_address): New functions.
6582 (deprecated_grub_regcache_for_registers): New function.
6583 (deprecated_grub_regcache_for_register_valid): New function.
6584 (current_regcache): New global variable.
6585 (register_buffer): Add regcache parameter. Update calls.
6586 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6587 (read_register_gen, write_register_gen): Update register_buffer
6588 call. Test for legacy_p instead of gdbarch_register_read_p or
6589 gdbarch_register_write_p.
6590 (regcache_collect): Update register_buffer call.
6591 (build_regcache): Rewrite. Use deprecated grub functions.
6592 (regcache_save, regcache_save_no_passthrough): New functions.
6593 (regcache_restore, regcache_restore_no_passthrough): New
6594 functions.
6595 (_initialize_regcache): Create the regcache_data_handle. Swap
6596 current_regcache global variable.
6597
6598 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6599 parameter to regcache_read and regcache_write calls.
6600 (sh4_register_read): Ditto.
6601 (sh64_pseudo_register_read): Ditto.
6602 (sh64_register_read): Ditto.
6603 (sh_pseudo_register_write): Ditto.
6604 (sh4_register_write): Ditto.
6605 (sh64_pseudo_register_write): Ditto.
6606 (sh64_register_write): Ditto.
6607
6608 * defs.h (XCALLOC): Define.
6609
152d9db6
GS
66102002-06-19 Grace Sainsbury <[email protected]>
6611
6612 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6613 * m68k-tdep.c (m68k_gdbarch_init): Added.
6614 (m68k_dump_tdep): Added.
6615
170911c7
DJ
66162002-06-19 Daniel Jacobowitz <[email protected]>
6617
6618 * ada-lang.c (fill_in_ada_prototype): Update comment.
6619
2e4ebe70
DJ
66202002-06-19 Daniel Jacobowitz <[email protected]>
6621
6622 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6623 MIPS_ABI_LAST.
6624 (mips_abi_string, mips_abi_strings): New.
6625 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6626 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6627 tdep->mips_abi_string. Honor mips_abi_string. Default to
6628 O32 if no ABI is found.
6629 (mips_dump_tdep): Use mips_abi_strings.
6630 (mips_abi_update): New function.
6631 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6632 ``set mips abi'' and ``show mips abi''. Check the size of
6633 mips_abi_strings.
6634
16775908
AC
66352002-06-19 Andrew Cagney <[email protected]>
6636
6637 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6638 constant.
6639
5051bfa4 66402002-06-18 Joel Brobecker <[email protected]>
16775908 6641
5051bfa4
JB
6642 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6643 current frame using only the first stack size adjustment. All
6644 subsequent size adjustments are not considered to be part of
6645 the "static" part of the current frame.
6646 Compute the address of the saved registers relative to the
6647 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6648 in use in this frame.
6649
56468235
DH
66502002-06-18 Don Howard <[email protected]>
6651
6652 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6653 type int expressions. Thanks to Jim Blandy <[email protected]> for
6654 suggesting this solution.
6655
0b624158
AC
66562002-06-18 Andrew Cagney <[email protected]>
6657
6658 * config/romp/xm-rtbsd.h: Delete file.
6659 * config/romp/rtbsd.mh: Delete file.
6660
221ea385
KS
66612002-06-18 Keith Seitz <[email protected]>
6662
6663 * breakpoint.c (condition_command): Post breakpoint_modify
6664 when a condition is added to an existing breakpoint.
6665 (commands_command): Likewise for commands.
6666 (set_ignore_count): Likewise for ignore counts.
6667 If no tty, do not simply return, still need to send event
6668 notification.
6669 (ignore_command): Only print a newline if the command came
6670 from a tty.
6671 Don't call breakpoints_changed, since this is now properly
6672 handled by set_ignore_count.
6673
5402eed1
AC
66742002-06-18 Andrew Cagney <[email protected]>
6675
6676 * MAINTAINERS: Note that cris-elf target can be compiled with
6677 -Werror.
6678 * cris-tdep.c (cris_register_name): Make return type constant.
6679 (cris_breakpoint_from_pc): Ditto.
6680
cc22880b
ML
66812002-06-18 Michal Ludvig <[email protected]>
6682
6683 * frame.h (struct frame_info): Change type of context to
6684 'struct context'.
6685
fa88f677
AC
66862002-06-17 Andrew Cagney <[email protected]>
6687
6688 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6689 pointer.
6690 * gdbarch.h, gdbarch.c: Regenerate.
6691 * config/mips/tm-mips.h (mips_register_name): Update.
6692 * i386-tdep.h (i386_register_name): Update.
6693 * mips-tdep.c (mips_register_name): Update
6694 * alpha-tdep.c (alpha_register_name): Update.
6695 * arch-utils.c (legacy_register_name): Update.
6696 * arch-utils.h (legacy_register_name): Update.
6697 * avr-tdep.c (avr_register_name): Update.
6698 * ia64-tdep.c (ia64_register_name): Update.
6699 * i386-tdep.c (i386_register_name): Update.
6700 * sparc-tdep.c (sparc32_register_name): Update.
6701 (sparc64_register_name): Update.
6702 (sparclite_register_name): Update.
6703 (sparclet_register_name): Update.
6704 * sh-tdep.c (sh_generic_register_name): Update.
6705 (sh_sh_register_name): Update.
6706 (sh_sh3_register_name): Update.
6707 (sh_sh3e_register_name): Update.
6708 (sh_sh_dsp_register_name): Update.
6709 (sh_sh3_dsp_register_name): Update.
6710 (sh_sh4_register_name): Update.
6711 (sh_sh64_register_name): Update.
6712 * s390-tdep.c (s390_register_name): Update.
6713 * rs6000-tdep.c (rs6000_register_name): Update.
6714 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6715 (ns32k_register_name_32382): Update.
6716 * d10v-tdep.c (d10v_ts2_register_name): Update.
6717 (d10v_ts3_register_name): Update.
6718 * xstormy16-tdep.c (xstormy16_register_name): Update.
6719 * vax-tdep.c (vax_register_name): Update.
6720 * v850-tdep.c (v850_register_name): Update.
6721 * m68hc11-tdep.c (m68hc11_register_name): Update.
6722 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6723 (am33_register_name): Update.
6724
ea1e7ef6
GS
67252002-06-17 Grace Sainsbury <[email protected]>
6726
6727 * m68k-tdep.c: Reindented.
6728
9b02dd1b
AC
67292002-06-17 Andrew Cagney <[email protected]>
6730
6731 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6732 list of predefined types.
6733
8758dec1
MK
67342002-06-16 Mark Kettenis <[email protected]>
6735
b6197528
MK
6736 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6737 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6738 REGISTER_CONVERT_TO_RAW): Remove defines.
6739 (i386_register_virtual_type, i386_register_convertible,
6740 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6741 Remove prototypes.
6742 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6743 macros mentioned above.
6744
82b47e62
MK
6745 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6746 (i386lynx_saved_pc_after_call): Remove prototype.
6747 * i386ly-tdep.c: Include "i386-tdep.h".
6748 (i386lynx_saved_pc_after_call): Make static. Use
6749 read_memory_nobpt instead of read_memory. Use
6750 read_memory_unsigned_integer instead of read_memory_integer.
6751 (i386lynx_init_abi): New function.
6752 (i386lynx_coff_osabi_sniffer): New function.
6753 (_initialize_i386bsd_tdep): New function.
6754
8758dec1
MK
6755 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6756 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6757 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6758 (i386_fix_call_dummy): Remove prototype.
6759 * i386-tdep.c (i386_call_dummy_words): New variable.
6760 (i386_gdbarch_init): Adjust for removal of the
6761 macros mentioned above.
6762
e9e68a56
AC
67632002-06-15 Andrew Cagney <[email protected]>
6764
6765 * command.h (add_setshow_auto_boolean_cmd): Replace
6766 add_set_auto_boolean_cmd.
6767 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6768 add_set_auto_boolean_cmd.
6769 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6770 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6771 mask-address'' command.
6772 (show_mask_address): Add cmd parameter.
6773 * remote.c (add_packet_config_cmd): Update. Change type of
6774 set_func and show_func to cmd_sfunc_ftype.
6775 (_initialize_remote): Update `set remote Z-packet'
6776 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6777 (show_remote_protocol_e_packet_cmd): Ditto.
6778 (show_remote_protocol_E_packet_cmd): Ditto.
6779 (show_remote_protocol_P_packet_cmd): Ditto.
6780 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6781 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6782 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6783 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6784 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6785 (show_remote_protocol_Z_packet_cmd): Ditto.
6786 (show_remote_protocol_binary_download_cmd): Ditto.
6787 (show_remote_cmd): Pass NULL to all of above.
6788
fc08ec52
MK
67892002-06-15 Mark Kettenis <[email protected]>
6790
6791 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6792 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6793 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6794 POP_FRAME): Remove defines.
6795 (i386_push_arguments, i386_store_struct_return,
6796 i386_extract_return_value, i386_store_return_value,
6797 i386_extract_struct_value_address, i386_push_dummy_frame,
6798 i386_pop_frame): Renove prototypes.
6799 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6800 macros mentioned above.
6801
e707bbc2
AC
68022002-06-15 Andrew Cagney <[email protected]>
6803
6804 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6805 add_set_boolean_cmd.
6806 (add_setshow_cmd): New function.
6807 * command.h (add_setshow_boolean_cmd): Replace
6808 add_set_boolean_cmd.
6809 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6810 and ``set rdiromatzero''.
6811 * maint.c (_initialize_maint_cmds): Update commented out code.
6812 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6813 * target.c (initialize_targets): Update `set
6814 trust-readonly-sections'.
6815 * remote.c (_initialize_remote): Update `set remotebreak'.
6816
42fdc8df
MK
68172002-06-15 Mark Kettenis <[email protected]>
6818
93924b6b
MK
6819 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6820 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6821 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6822 fit into multi-arch framework.
6823 (i386_breakpoint_from_pc): New function.
6824 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6825 above.
6826
42fdc8df
MK
6827 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6828 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6829 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6830 (i386_frameless_function_invocation, i386_frame_num_args,
6831 i386_frame_init_saved_regs): Remove prototypes.
6832 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6833 macros mentioned above.
6834
9773a94b
AC
68352002-06-15 Andrew Cagney <[email protected]>
6836
6837 * cli/cli-decode.c (set_cmd_cfunc): Update.
6838 (set_cmd_sfunc): Update.
6839 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6840 (set_cmd_sfunc, set_cmd_cfunc): Update.
6841 * cli/cli-decode.h: Update.
6842
6e157172
MK
68432002-06-15 Mark Kettenis <[email protected]>
6844
6845 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6846 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6847
7f19b9a2
AC
68482002-06-15 Andrew Cagney <[email protected]>
6849
6850 * defs.h (auto_boolean): Declare enum.
6851 * command.h (cmd_auto_boolean): Delete enum.
6852 * mips-tdep.c (mask_address_var): Update.
6853 (mips_mask_address_p): Update.
6854 (show_mask_address): Update.
6855 * remote.c (struct packet_config): Update.
6856 (update_packet_config): Update.
6857 (show_packet_config_cmd): Update.
6858 (packet_ok): Update.
6859 (add_packet_config_cmd): Update.
6860 (_initialize_remote):
6861 * command.h: Update.
6862 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6863 (do_setshow_command): Update.
6864 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6865 * cli/cli-decode.h: Update.
6866
1cf88de5
MK
68672002-06-15 Mark Kettenis <[email protected]>
6868
22ba8cf2
MK
6869 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6870 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6871 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6872 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6873 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6874 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6875
762c5349
MK
6876 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6877 list of DJGPP COFF targets.
6878
091198bb
MK
6879 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6880 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6881 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6882 (FP0_REGNUM): Remove define.
6883 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6884 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6885 (i386_register_virtual_size): Remove protoype.
6886 * i386-tdep.c (i386_register_virtual_size): Removed.
6887 (i386_extract_return_value, i386_store_return_value): Use
6888 FP0_REGNUM instead of NUM_FREGS to determine whether the
6889 floating-point registers are available.
6890 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6891 Adjust for removal of macros mentioned above.
6892
68932002-06-15 Mark Kettenis <[email protected]>
6894
fcc9bf01
MK
6895 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6896 comments.
6897 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6898 Remove prototypes.
6899 (supply_gregset, fill_gregset): Remove use of register keyword and
6900 remove declaration for regmap. Use I386_NUM_GREGS instead of
6901 NUM_REGS and NUM_FREGS.
6902 (FPREGSET_FSAVE_OFFSET): Remove.
6903 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6904 NUM_FREGS to determine whether the floating-point registers are
6905 available.
6906
65e78234
MK
6907 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6908 gnu_store_registers): Replace usage of NUM_GREGS with
6909 I386_NUM_GREGS.
6910
98df6387
MK
6911 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6912 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6913 usage of NUM_GREGS with I386_NUM_GREGS.
6914
099a9414
MK
6915 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6916
57976e88
MK
6917 * i386bsd-nat.c: Include "i386-tdep.h".
6918 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6919 I386_NUM_GREGS.
6920
b335f4a6
MK
6921 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6922 and associated comment. They no longer make any sense, since we
6923 don't use this file anymore on Linux.
6924
1cf88de5
MK
6925 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6926 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6927 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6928 elements in these arrays.
6929 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6930 MAX_NUM_REGS.
6931
daa66587
MK
69322002-06-15 Mark Kettenis <[email protected]>
6933
6934 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6935 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6936
26e9b323
AC
69372002-06-14 Andrew Cagney <[email protected]>
6938
6939 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6940 EXTRACT_RETURN_VALUE.
6941 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6942 EXTRACT_STRUCT_VALUE_ADDRESS.
6943 * gdbarch.h, gdbarch.c: Regenerate.
6944
6945 * values.c (value_being_returned): Handle
6946 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6947 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6948
6949 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6950 * arm-tdep.c (arm_gdbarch_init): Update.
6951 * avr-tdep.c (avr_gdbarch_init): Update.
6952 * cris-tdep.c (cris_gdbarch_init): Update.
6953 * d10v-tdep.c (d10v_gdbarch_init): Update.
6954 * ia64-tdep.c (ia64_gdbarch_init): Update.
6955 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6956 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6957 * s390-tdep.c (s390_gdbarch_init): Update.
6958 * sh-tdep.c (sh_gdbarch_init): Update.
6959 * s390-tdep.c (s390_gdbarch_init): Update.
6960 * sparc-tdep.c (sparc_gdbarch_init): Update.
6961 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6962 * v850-tdep.c (v850_gdbarch_init): Update.
6963 * vax-tdep.c (vax_gdbarch_init): Update.
6964 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6965 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6966
6967 * config/arc/tm-arc.h: Update.
6968 * config/d30v/tm-d30v.h: Update.
6969 * config/fr30/tm-fr30.h: Update.
6970 * config/h8300/tm-h8300.h: Update.
6971 * config/h8500/tm-h8500.h: Update.
6972 * config/i386/tm-i386.h: Update.
6973 * config/i386/tm-ptx.h: Update.
6974 * config/i386/tm-symmetry.h: Update.
6975 * config/i960/tm-i960.h: Update.
6976 * config/m32r/tm-m32r.h: Update.
6977 * config/m68k/tm-delta68.h: Update.
6978 * config/m68k/tm-linux.h: Update.
6979 * config/m68k/tm-m68k.h: Update.
6980 * config/m88k/tm-m88k.h: Update.
6981 * config/mcore/tm-mcore.h: Update.
6982 * config/mips/tm-mips.h: Update.
6983 * config/mn10200/tm-mn10200.h: Update.
6984 * config/pa/tm-hppa.h: Update.
6985 * config/pa/tm-hppa64.h: Update.
6986 * config/sparc/tm-sp64.h: Update.
6987 * config/sparc/tm-sparc.h: Update.
6988 * config/sparc/tm-sparclet.h: Update.
6989 * config/z8k/tm-z8k.h: Update.
6990
5179e78f
AC
69912002-06-14 Andrew Cagney <[email protected]>
6992
6993 * Makefile.in (i386_linux_tdep_h): Define.
6994 (i386_tdep_h, i387_tdep_h): Define.
6995 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6996 $(i386_tdep_h) and $(i387_tdep_h).
6997 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6998
8201327c
MK
69992002-06-14 Mark Kettenis <[email protected]>
7000
edf393ac
MK
7001 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7002 Already covered by the default.
7003
896fb97d
MK
7004 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7005 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7006 (i386_gdbarch_init): Initialize long_double_format and long_double
7007 bit.
7008
8201327c
MK
7009 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7010 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7011 Move these to ...
7012 * config/i386/i386sol2.mh: ... here.
7013 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7014 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7015 (SIGCONTEXT_PC_OFFSET): Remove define.
7016 (IN_SIGTRAMP): Remove define.
7017 * i386-sol2-tdep.c: New file.
7018
7019 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7020 * config/i386/tm-i386nw.h: Removed.
7021
7022 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7023 USE_STRUCT_CONVENTION): Remove defines.
7024 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7025 (get_longjmp_target): Remove prototype.
7026 (IN_SIGTRAMP): Remove define.
7027 (i386bsd_in_sigtramp): Remove prototype.
7028 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7029 function. Update comment accordingly
7030 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7031 (FRAME_SAVED_PC): Remove define.
7032 (i386bsd_frame_saved_pc): Remove prototype.
7033 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7034 GET_LONGJMP_TARGET): Remove defines.
7035 (get_longjmp_target): Remove prototype.
7036 (IN_SIGTRAMP): Remove define.
7037 (i386bsd_in_sigtramp): Remove prototype.
7038 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7039 function. Update comment accordingly
7040 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7041 (FRAME_SAVED_PC): Remove define.
7042 (i386bsd_frame_saved_pc): Remove prototype.
7043 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7044 Remove prototype.
7045 (USE_STRUCT_CONVENTION): Remove prototype.
7046 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7047 declaration.
7048 (_initialize_i386bsd_nat): Revise logic to determine some
7049 constants at compile time when compiling a native GDB. Warn if
7050 things don't match up with what we expect.
7051 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7052 Remove variables.
7053 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7054 to use date stored in `struct gdbarch_tdep'.
7055 (i386bsd_sigcontext_offset): Remove varaible.
7056 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7057 stored in `struct gdbarch_tdep'.
7058 (i386bsd_frame_saved_pc): Make static.
7059 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7060 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7061 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7062 i386fbsd4_sc_pc_offset): New variables.
7063 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7064 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7065 functions.
7066 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7067 functions.
7068 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7069 Modify the value of i386fbsd_sigtramp_start and
7070 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7071 i386fbsd_sigtramp_end.
7072 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7073 function.
7074
7075 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7076 define to i386-linux-tdep.h.
7077 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7078 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7079 defines.
7080 (i386_linux_register_name, i386_linux_register_byte,
7081 i386_linux_register_raw_size): Remove prototypes.
7082 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7083 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7084 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7085 TARGET_WRITE_PC): Remove defines.
7086 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7087 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7088 i386_linux_write_pc): Remove prototypes.
7089 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7090 (get_longjmp_target): Remove prototype.
7091 * i386-linux-tdep.h: New file.
7092 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7093 * i386-linux-tdep.c: Include "i386-tdep.h" and
7094 "i386-linux-tdep.h".
7095 (i386_linux_register_name, i386_linux_register_byte,
7096 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7097 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7098 Make static.
7099 (i386_linux_init_abi): New function.
7100 (_initialize_i386_linux_tdep): New function.
7101
7102 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7103 (i386_saved_pc_after_call): Remove prototype.
7104 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7105 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7106 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7107 (i386_register_name, i386_stab_reg_to_regnum,
7108 i386_dwarf_reg_to_regnum): Remove prototypes.
7109 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7110 SIZEOF_SSE_REGS): Remove defines.
7111 (REGISTER_BYTES): Remove define.
7112 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7113 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7114 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7115 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7116 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7117 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7118 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7119 (get_longjmp_target): Remove prototype.
7120 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7121 (sigtramp_saved_pc): Remove define.
7122 (i386v4_sigtramp_saved_pc): Remove prototype.
7123 * config/i386/tm-go32.h (FRAME_CHAIN,
7124 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7125 (i386go32_frame_saved_pc): Remove prototype.
7126 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7127 (get_longjmp_target): Remove prototype.
7128 * i386-tdep.h: Include "osabi.h".
7129 (enum i386_abi): Removed.
7130 (enum struct_return): New enum.
7131 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7132 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7133 sc_pc_offset members.
7134 (i386_gdbarch_register_os_abi): Remove prototype.
7135 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7136 I386_SSE_NUM_REGS): New defines.
7137 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7138 I386_SSE_SIZEOF_REGS): New defines.
7139 (i386_register_name, i386_register_byte, i386_register_raw_size):
7140 New prototypes.
7141 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7142 (i386bsd_sigtramp_saved_pc): New prototype.
7143 * i386-tdep.c: Don't include "elf-bfd.h".
7144 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7145 i386_frame_chain, i386_saved_pc_after_call): Make static.
7146 (i386_frame_saved_pc): Rewrite to call architecture dependent
7147 function to deal with signal handlers. Make static.
7148 (i386go32_frame_saved_pc): Removed.
7149 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7150 Removed.
7151 (i386_get_longjmp_target): New function.
7152 (default_struct_convention, pcc_struct_convention,
7153 reg_struct_convention, valid_conventions, struct_convention): New
7154 variables.
7155 (i386_use_struct_convention): New function.
7156 (i386v4_sigtramp_saved_pc): Renamed to
7157 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7158 (i386_pc_in_sigtramp): New function.
7159 (i386_abi_names): Removed.
7160 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7161 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7162 Removed.
7163 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7164 i386_gdbarch_register_os_abi): Removed.
7165 (struct i386_abi_handler): Removed.
7166 (i386_abi_handler_list): Removed.
7167 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7168 functions.
7169 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7170 i386_nw_init_abi): New functions.
7171 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7172 Use set_gdbarch_xxx() calls instead of relying on macros for a
7173 number of calls.
7174 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7175 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7176 Register the various architecture variants defined in this file.
7177
ad2f7632
DJ
71782002-06-14 Daniel Jacobowitz <[email protected]>
7179
7180 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7181 (struct main_type): Remove arg_types member. Update comments for
7182 struct field.
7183 (TYPE_ARG_TYPES): Remove.
7184 (TYPE_FN_FIELD_ARGS): Update.
7185 (smash_to_method_type): Update prototype.
7186
7187 * c-typeprint.c (cp_type_print_method_args): Take method type
7188 instead of argument list. Use new argument layout. Simplify.
7189 (c_type_print_args): Use new argument layout. Simplify.
7190 (c_type_print_base): Update call to cp_type_print_method_args.
7191 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7192 argument; use die->type instead. Update call to
7193 smash_to_method_type.
7194 (read_structure_scope): Update call to dwarf2_add_member_fn.
7195 * gdbtypes.c (allocate_stub_method): Update comment.
7196 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7197 Use new argument layout.
7198 (check_stub_method): Use new argument layout. Don't count
7199 void as an argument.
7200 (print_arg_types): Update comments. Use new argument layout.
7201 (recursive_dump_type): Don't print arg_types member.
7202 * hpread.c (hpread_read_struct_type): Use new argument layout.
7203 (fixup_class_method_type): Likewise.
7204 (hpread_type_lookup): Likewise.
7205 * stabsread.c (read_type): Update calls to read_args and
7206 smash_to_method_type.
7207 (read_args): Use new argument layout. Simplify.
7208 * valops.c (typecmp): Use new argument layout. Update parameters
7209 and comments. Simplify.
7210 (hand_function_call): Use new argument layout.
7211 (search_struct_method): Update call to typecmp.
7212 (find_overload_match): Use new argument layout.
7213
6da02953
DJ
72142002-06-13 Daniel Jacobowitz <[email protected]>
7215
7216 * NEWS: Mention multithreaded debug support for gdbserver.
7217
519b2366
DJ
72182002-06-13 Daniel Jacobowitz <[email protected]>
7219
7220 * MAINTAINERS: Mention NEWS.
7221
6c0d6680
DJ
72222002-06-13 Daniel Jacobowitz <[email protected]>
7223
7224 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7225 (struct mips_objfile_private, compare_pdr_entries): New.
7226 (non_heuristic_proc_desc): Read the ".pdr" section if it
7227 is present.
7228
6529d2dd
AC
72292002-06-12 Andrew Cagney <[email protected]>
7230
7231 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7232 (arm_debug): New static variable.
7233 (_initialize_arm_tdep): Add ``set debug arm'' command.
7234
26216b98
AC
72352002-06-12 Andrew Cagney <[email protected]>
7236
7237 * Makefile.in (sim_arm_h): Define.
7238 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7239 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7240 (arm_register_sim_regno): New function, map an internal REGNUM
7241 onto a simulator register number.
7242 (arm_gdbarch_init): Set register_sim_regno.
7243
814b3ba0
AH
72442002-06-09 Aldy Hernandez <[email protected]>
7245
7246 * MAINTAINERS: Add self.
7247
475b0867
JB
72482002-06-11 Jim Blandy <[email protected]>
7249
919d772c
JB
7250 * source.c (source_info): Mention whether the symtab has
7251 information about preprocessor macros.
7252
475b0867
JB
7253 Call the command `info macro', not `show macro'.
7254 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7255 Fix error message.
7256 (_initialize_macrocmd): Register `info_macro_command' in
7257 `infolist', not `showlist'.
7258
9e364162
DJ
72592002-06-11 Daniel Jacobowitz <[email protected]>
7260
7261 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7262 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7263 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7264 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7265 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7266 unconditionally.
7267 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7268 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7269 (_initialize_mips_tdep): Remove dead code.
7270 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7271 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7272 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7273 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7274 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7275 MIPS_LAST_FP_ARG_REGNUM): Remove.
7276
23aa4c72
ML
72772002-06-11 Michal Ludvig <[email protected]>
7278
7279 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7280 (unwind_tmp_obstack_free, parse_frame_info)
7281 (update_context, cfi_read_fp, cfi_write_fp)
7282 (cfi_frame_chain, cfi_init_extra_frame_info)
7283 (cfi_virtual_frame_pointer): Use the above function.
264d1763 7284 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 7285
70eb15a4
CV
72862002-06-11 Corinna Vinschen <[email protected]>
7287
7288 * v850-tdep.c (v850_type_is_scalar): New function.
7289 (v850_use_struct_convention): Match current gcc implementation
7290 as close as possible.
7291 (v850_push_arguments): Fix stack_offset handling. Don't write
7292 struct_addr into register. This is done by v850_store_struct_return.
7293 (v850_extract_return_value): Care for structs.
7294 (v850_store_return_value): Ditto.
7295 (v850_store_struct_return): Actually write address.
7296
482a4d06
ML
72972002-06-11 Michal Ludvig <[email protected]>
7298
7299 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7300 without debug information too.
7301
d855c300
AC
73022002-06-10 Andrew Cagney <[email protected]>
7303
7304 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7305 Make multi-arch pure.
7306 * gdbarch.h, gdbarch.c: Re-generate.
7307 * arm-tdep.c (arm_print_float_info): Update.
7308 * arch-utils.h (default_print_float_info): Update.
7309 * arch-utils.c (default_print_float_info): Update.
7310 * infcmd.c (float_info): Update call.
7311
dd12a101
AC
73122002-06-10 Andrew Cagney <[email protected]>
7313
7314 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7315 the front of the initialize list.
7316
101dcfbe
AC
73172002-06-10 Andrew Cagney <[email protected]>
7318
7319 * infrun.c (struct inferior_status): Replace fields
7320 selected_frame_address and selected_level with field
7321 selected_frame_id.
7322 (save_inferior_status): Update. Use get_frame_id.
7323 (struct restore_selected_frame_args): Delete.
7324 (restore_selected_frame): Update. Use frame_find_by_id.
7325 (restore_inferior_status): Update.
7326
7327 * breakpoint.h (struct breakpoint): Change type of
7328 watchpoint_frame to frame_id.
7329 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7330 call to get_current_frame.
7331 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7332 get_current_frame.
7333 (watchpoint_check): Use frame_find_by_id.
7334
7335 * frame.h (record_selected_frame): Delete declaration.
7336 * stack.c (record_selected_frame): Delete function.
7337
7338 * frame.h (struct frame_id): Define.
7339 (get_frame_id): Declare.
7340 (frame_find_by_id): Declare.
7341 * frame.c (frame_find_by_id): New function.
7342 (get_frame_id): New function.
7343
304270b6
AV
73442002-06-10 Andrey Volkov <[email protected]>
7345
7346 * ser-e7kpc.c: Fix duplicated define and call of
7347 _initialize_ser_e7000pc
7348
2f2cf184
DJ
73492002-06-09 Daniel Jacobowitz <[email protected]>
7350
7351 * signals/signals.c (target_signal_from_host): Fix #ifdef
7352 SIGRTMIN case.
7353 (do_target_signal_to_host): Likewise.
7354
caaa3122
DJ
73552002-06-09 Daniel Jacobowitz <[email protected]>
7356
7357 * mips-tdep.c (mips_find_abi_section): New function.
7358 (mips_gdbarch_init): Call it.
7359
6ac5df3a
MK
73602002-06-09 Mark Kettenis <[email protected]>
7361
7362 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7363 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7364 after Andrew's 2002-06-08 gdbarch change.
7365
82ea117a
MK
73662002-06-09 Mark Kettenis <[email protected]>
7367
7368 * i386-linux-nat.c (suppy_gregset): Don't supply
7369 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7370 register cache.
7371 (fill_gregset): Don't fetch it under the same circumstances.
7372
3c25f8c7
AC
73732002-06-09 Andrew Cagney <[email protected]>
7374
7375 * Makefile.in (callback_h): Define.
7376 (remote_sim_h): Update path to remote-sim.h.
7377 (remote-rdp.o): Add $(callback_h).
7378 (remote-sim.o): Use $(callback_h).
7379 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7380 * remote-rdp.c: Include "gdb/callback.h".
7381
1029b7fa
MK
73822002-06-09 Mark Kettenis <[email protected]>
7383
7384 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7385 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7386
616675d3
AC
73872002-06-08 Andrew Cagney <[email protected]>
7388
a3efda28
AC
7389 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7390 * rdi-share/serpardr.c: Ditto.
7391 * rdi-share/unixcomm.c: Ditto.
7392 * rdi-share/serdrv.c: Ditto.
7393 * rdi-share/hostchan.h: Ditto.
7394 * rdi-share/hostchan.c: Ditto.
7395 * rdi-share/host.h: Ditto.
7396 * rdi-share/devsw.c: Ditto.
7397
c5f10366
AC
7398 * objfiles.h: Change type of obj_private to void pointer.
7399 * pa64solib.c: Update copyright. Don't include "assert.h", use
7400 strcmp instead of STREQ, use LONGEST, do not use PTR
7401 * somsolib.c: Ditto.
7402
616675d3
AC
7403 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7404 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7405 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7406
e4b415d9
AC
74072002-06-08 Andrew Cagney <[email protected]>
7408
7409 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7410 (default_get_saved_register): Delete function.
7411 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7412 generic_unwind_get_saved_register.
7413 * gdbarch.h, gdbarch.c: Re-generate.
7414
ca0d0b52
AC
74152002-06-08 Andrew Cagney <[email protected]>
7416
7417 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7418 generic_func_frame_chain_valid.
7419 * gdbarch.h, gdbarch.c: Re-generate.
7420 * blockframe.c (generic_func_frame_chain_valid): Only check
7421 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7422 passing FP to PC_IN_CALL_DUMMY.
7423 Fix PR gdb/360.
7424
76860b5f
AC
74252002-06-08 Andrew Cagney <[email protected]>
7426
7427 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7428 (register_gdbarch_data): Initialize init_p.
7429 (gdbarch_data): Initialize data pointer using the init function.
7430 (init_gdbarch_data): Delete function.
7431 (gdbarch_update_p): Update.
7432 (initialize_non_multiarch): Update.
7433 (struct gdbarch): Add field initialized_p.
7434 * gdbarch.h, gdbarch.c: Re-generate.
7435
8dda9770
ML
74362002-06-07 Michal Ludvig <[email protected]>
7437
7438 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7439 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7440 better do the things actually here.
7441 * x86-64-tdep.c (x86_64_register_name2nr): New.
7442 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7443 (x86_64_gdbarch_init): Respect the above change.
7444 * x86-64-tdep.h (x86_64_register_name2nr)
7445 (x86_64_register_nr2name): Add prototypes.
7446 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7447
3d79a47c
MS
74482002-06-06 Michael Snyder <[email protected]>
7449
7bd91a28
MS
7450 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7451 Delete extra braces and re-indent.
7452 (d10v_store_return_value): Char return values
3d79a47c
MS
7453 must be shifted over by one byte in R0.
7454 (d10v_extract_return_value): Delete extra braces, re-indent.
7455
095a4c96
EZ
74562002-06-06 Elena Zannoni <[email protected]>
7457
7458 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7459 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7460 (d10v_integer_to_address): Rewrite.
7461 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7462 the d10v specific functions which take care of converting to the
7463 correct space.
7464
e8a77ca4
EZ
74652002-06-06 Elena Zannoni <[email protected]>
7466
7467 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7468 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7469
4f2e4a4f
AC
74702002-06-02 Andrew Cagney <[email protected]>
7471
7472 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7473 includes.
7474 * config/tm-linux.h: Ditto.
7475 * config/alpha/tm-alphalinux.h: Ditto.
7476 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7477 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7478 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7479 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7480 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7481 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7482 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7483 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7484 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7485 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7486 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7487 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7488 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7489 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7490 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7491 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7492 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7493 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7494 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7495 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7496 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7497 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7498 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7499 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7500 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7501 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7502 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7503 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7504 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7505 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7506 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7507 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7508 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7509 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7510 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7511 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7512 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7513
ae2ab2ce
AS
75142002-05-04 Aidan Skinner <[email protected]>
7515
7516 * ada-exp.tab.c: New file
7517 * ada-exp.y: New file
7518 * ada-lang.c: New file
7519 * ada-lang.h: New file
7520 * ada-lex.c: New file
7521 * ada-lex.l: New file
7522 * ada-tasks.c: New file
7523 * ada-typeprint.c: New file
7524 * ada-valprint.c: New file
7525
0ddd0135
JT
75262002-06-02 Jason Thorpe <[email protected]>
7527
7528 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7529 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7530
750fbacc
JT
75312002-06-02 Jason Thorpe <[email protected]>
7532
7533 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7534 insetead of ppc-linux-tdep.o.
7535 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7536 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7537
df94e18a
AC
75382002-06-02 Andrew Cagney <[email protected]>
7539
7540 2002-05-07 Christian Groessler <[email protected]>
7541 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7542 bit register contents for little endian hosts.
7543
1a38ab75
AC
75442002-06-01 Andrew Cagney <[email protected]>
7545
7546 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7547 any maintainer.
7548
8b1632ac
AC
75492002-06-01 Andrew Cagney <[email protected]>
7550
7551 * gdbarch.h: Regenerate.
7552
627054c8
AC
75532002-06-01 Andrew Cagney <[email protected]>
7554
7555 * MAINTAINERS: Add everyone to write-after-approval list.
7556
4f460812
AC
75572002-06-01 Andrew Cagney <[email protected]>
7558
7559 * stack.c (frame_info): Use frame_register_unwind instead of
7560 saved_regs. Mention when the SP is on the stack or in a register.
7561
7562 * frame.h (frame_register_unwind_ftype): Define. Document.
7563 (struct frame_info): Add field register_unwind and
7564 register_unwind_cache.
7565 (frame_register_unwind): Declare.
7566 (generic_unwind_get_saved_register): Declare.
7567
7568 * frame.c (frame_register_unwind): New function.
7569 (generic_unwind_get_saved_register): New function.
7570
7571 * blockframe.c (generic_call_dummy_register_unwind): New function.
7572 (frame_saved_regs_register_unwind): New function.
7573 (set_unwind_by_pc): New function.
7574 (create_new_frame): New function.
7575 (get_prev_frame): New function.
7576
de888f76
AC
75772002-05-30 Andrew Cagney <[email protected]>
7578
7579 * a29k-share/: Delete directory.
7580 * remote-vx29k.c: Delete file.
7581
2f2c3626
JT
75822002-05-30 Jason Thorpe <[email protected]>
7583
7584 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7585 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7586
9ce5c36a
JT
75872002-05-30 Jason Thorpe <[email protected]>
7588
7589 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7590 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7591 (sparc64nbsd-nat.o)
7592 (sparcnbsd-nat.o)
7593 (sparcnbsd-tdep.o): New dependency lists.
7594 * NEWS: Note new UltraSPARC NetBSD native configuration.
7595 * configure.host (sparc64-*-netbsd*): New host.
7596 * configure.tgt (sparc-*-netbsdelf*)
7597 (sparc-*-netbsd*): Set gdb_target to nbsd.
7598 (sparc64-*-netbsd*): New target.
7599 * sparc64nbsd-nat.c: New file.
7600 * sparcnbsd-nat.c: New file.
7601 * sparcnbsd-tdep.c: New file.
7602 * sparcnbsd-tdep.h: New file.
7603 * config/sparc/nbsd.mt: New file.
7604 * config/sparc/nbsd64.mh: New file.
7605 * config/sparc/nbsd64.mt: New file.
7606 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7607 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7608 (HOST_IPC): Remove.
7609 * config/sparc/nbsdaout.mt: Remove.
7610 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7611 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7612 (HOST_IPC): Remove.
7613 * config/sparc/nbsdelf.mt: Remove.
7614 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7615 sparc-nat.c compatiblity defines.
7616 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7617 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7618 * config/sparc/tm-nbsd64.h: New file.
7619 * config/sparc/tm-nbsdaout.h: Remove.
7620 * config/sparc/xm-nbsd.h: Remove.
7621
ef3cf062
JT
76222002-05-30 Jason Thorpe <[email protected]>
7623
7624 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7625 * sparc-tdep.c: Include osabi.h.
7626 (gdbarch_tdep): Add osabi member.
7627 (_initialize_sparc_tdep): Use gdbarch_register.
7628 (sparc_gdbarch_init): Use generic OS ABI framework.
7629 (sparc_dump_tdep): New function.
7630
ee8ff470
KB
76312002-05-30 Kevin Buettner <[email protected]>
7632
7633 * corefile.c (do_captured_read_memory_integer): Return non-zero
7634 result.
7635 (safe_read_memory_integer): Copy result of memory read when
7636 status is non-zero. Also, add comments.
7637
7b112f9c
JT
76382002-05-20 Jason Thorpe <[email protected]>
7639
7640 * Makefile.in (ppc_tdep_h): Define.
7641 (ppc-linux-nat.o)
7642 (ppc-linux-tdep.o)
7643 (rs6000-tdep.o): Use $(ppc_tdep_h).
7644 (ppc-sysv-tdep.o)
7645 (ppcnbsd-nat.o)
7646 (ppcnbsd-tdep.o): New dependency lists.
7647 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7648 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7649 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7650 (ppc_sysv_abi_broken_use_struct_convention)
7651 (ppc_sysv_abi_use_struct_convention)
7652 (ppc_sysv_abi_push_arguments): Move to...
7653 * ppc-sysv-tdep.c: ...here.
7654 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7655 * rs6000-tdep.c (process_note_abi_tag_sections)
7656 (get_elfosabi): Remove.
7657 (rs6000_gdbarch_init): Use generic OS ABI framework.
7658 (rs6000_dump_tdep): New function.
7659 (_initialize_rs6000_tdep): Use gdbarch_register.
7660 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7661 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7662 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7663 of ppc-linux-tdep.o.
7664 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7665 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7666 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7667 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7668 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7669 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7670
480dd42a
JB
76712002-05-29 Jim Blandy <[email protected]>
7672
7673 * macroscope.c (default_macro_scope): Put `void' in empty argument
7674 list.
7675
4182591f
AC
76762002-05-29 Andrew Cagney <[email protected]>
7677
7678 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7679 * arch-utils.c: Include "sim-regno.h".
7680 * gdbarch.sh: Don't include "sim-regno.h".
7681 * gdbarch.h, gdbarch.c: Regenerate.
7682 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7683 here.
7684 * arch-utils.h (legacy_register_sim_regno): To here.
7685 * remote-sim.c (legacy_register_sim_regno): Move function from
7686 here.
7687 * arch-utils.c (legacy_register_sim_regno): To here.
7688
8238d0bf
AC
76892002-05-28 Andrew Cagney <[email protected]>
7690
7691 * sim-regno.h: New file.
7692 * Makefile.in (sim_regno_h): Define.
7693 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7694 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7695 (legacy_register_sim_regno): New function.
7696 (one2one_register_sim_regno): New function.
7697 (gdbsim_fetch_register): Rewrite.
7698 (gdbsim_store_register): Only store a register when
7699 REGISTER_SIM_REGNO is valid.
7700 * d10v-tdep.c: Include "sim-regno.h".
7701 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7702 (d10v_ts3_register_sim_regno): Ditto.
7703 * gdbarch.sh: Include "sim-regno.h".
7704 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7705 * gdbarch.h, gdbarch.c: Regenerate.
7706 * arch-utils.h (default_register_sim_regno): Delete declaration.
7707 * arch-utils.c (default_register_sim_regno): Delete function.
7708
485721b1
JT
77092002-05-28 Jason Thorpe <[email protected]>
7710
7711 * ppcnbsd-nat.c: Rewrite.
7712 * ppcnbsd-tdep.c: New file.
7713 * ppcnbsd-tdep.h: New file.
7714 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7715 solib.o, and solib-svr4.o.
7716 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7717 nbsd-tdep.o, and corelow.o.
7718
697f244d
AC
77192002-05-28 Andrew Cagney <[email protected]>
7720
7721 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7722 `tr' and `sed'. Mention that `broken' targets are not expected to
7723 build.
7724
f08caad1 77252002-05-27 Michal Ludvig <[email protected]>
b1ab997b
ML
7726
7727 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7728 Let PC point right after the prologue before looking up symbols.
7729
3139facc
MH
77302002-05-27 Martin M. Hunt <[email protected]>
7731
7732 * i386-tdep.c (i386_register_virtual_type): Return
7733 builtin_type_vec128i for SSE registers.
7734
7735 * gdbtypes.h (builtin_type_vec128i): Declare.
7736
7737 * gdbtypes.c (build_builtin_type_vec128i): New function.
7738 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7739 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7740 (build_gdbtypes): Initialize new builtin vector types.
7741 (_initialize_gdbtypes): Register new vector types with gdbarch.
7742
6e3ba3b8
JT
77432002-05-26 Jason Thorpe <[email protected]>
7744
7745 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7746 since it has been multi-arch'd.
7747 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7748 Move Alpha and VAX multi-arch news entries to same section
7749 as other multi-arch news.
7750
93d5585d
JT
77512002-05-26 Jason Thorpe <[email protected]>
7752
7753 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7754 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7755 static. Rename some register numbers to put them in ns32k-tdep
7756 private namespace.
7757 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7758 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7759 functions.
7760 (_initialize_ns32k_tdep): Use gdbarch_register.
7761 * ns32k-tdep.h: New file.
7762 * ns32knbsd-tdep.c: New file.
7763 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7764 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7765 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7766 REGISTER_BYTES, REGISTER_BYTE): Remove.
7767 * config/ns32k/tm-ns32k.h: New file.
7768 * config/ns32k/tm-umax.h: Remove.
7769
efb2c70e
JT
77702002-05-26 Jason Thorpe <[email protected]>
7771
7772 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7773 ns32k_store_struct_return, ns32k_extract_return_value,
7774 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7775 functions.
7776 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7777 ns32k_saved_pc_after_call.
7778 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7779 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7780 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7781 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7782 ns32k_extract_struct_value_address.
7783
7bcc927b
JT
77842002-05-26 Jason Thorpe <[email protected]>
7785
7786 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7787 ns32k_fix_call_dummy): New.
7788 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7789 ns32k_call_dummy_words.
7790 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7791 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7792 CALL_DUMMY_NARGS): Remove.
7793 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7794
78f9d765
JT
77952002-05-26 Jason Thorpe <[email protected]>
7796
7797 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7798 ns32k_frame_saved_pc, ns32k_frame_args_address,
7799 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7800 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7801 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7802 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7803 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7804 (BREAKPOINT): Remove..
7805 (FRAME_CHAIN): Define as ns32k_frame_chain.
7806 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7807 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7808 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7809 (FRAME_FIND_SAVED_REGS): Remove.
7810 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7811 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7812 (POP_FRAME): Define as ns32k_pop_frame.
7813
f2c762e0
JT
78142002-05-26 Jason Thorpe <[email protected]>
7815
7816 * ns32k-tdep.c (ns32k_register_byte_32082,
7817 ns32k_register_byte_32382, ns32k_register_raw_size,
7818 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7819 functions.
7820 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7821 ns32k_register_byte_32382.
7822 * config/ns32k/tm-umax.h: Update copyright years.
7823 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7824 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7825 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7826 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7827 (ns32k_get_enter_addr): Fix prototype.
7828
af137673
JT
78292002-05-26 Jason Thorpe <[email protected]>
7830
7831 * ns32k-tdep.c: Update copyright years.
7832 (ns32k_register_name_32082): New function.
7833 (ns32k_register_name_32382): Ditto.
7834 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7835 (REGISTER_NAME): Define as ns32k_register_name_32382.
7836 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7837 (REGISTER_NAME): Define as ns32k_register_name_32082.
7838
a8bc7b56
JB
78392002-05-24 Jim Blandy <[email protected]>
7840
7841 * dwarf2read.c (free_line_header): Use xfree, not free.
7842
83a45910
JT
78432002-05-24 Jason Thorpe <[email protected]>
7844
7845 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7846 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7847
0db71247
AC
78482002-05-23 Andrew Cagney <[email protected]>
7849
7850 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7851
b9e5e4dd
AC
78522002-05-23 Andrew Cagney <[email protected]>
7853
7854 From Ross Alexander at NEC Europe:
7855 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7856
de530e84
MS
78572002-05-23 Michael Snyder <[email protected]>
7858
7859 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7860 for input, rather than parse_and_eval_address.
7861
b91b96f4
AC
78622002-05-23 Andrew Cagney <[email protected]>
7863
7864 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7865 * Makefile.in (sim_d10v_h): Update definition.
7866
8b279e7a
AC
78672002-05-24 Andrew Cagney <[email protected]>
7868
7869 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7870 change `2002-05-22 Michael Snyder' below.
7871 (d10v_push_arguments): Ditto.
7872 (d10v_extract_return_value): Ditto.
7873
0a3d0425
JB
78742002-05-23 Jim Blandy <[email protected]>
7875
7876 * macrotab.c (check_for_redefinition): Don't complain if the new
7877 definition is the same as the previous one. Take more arguments
7878 to allow the comparison.
7879 (macro_define_object, macro_define_function): Pass more arguments
7880 to check_for_redefinition.
7881
78eac43e
MS
78822002-05-22 Michael Snyder <[email protected]>
7883
7884 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7885 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7886 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7887 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7888 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7889 Add a temp variable to save a call (and a memory read).
7890 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7891 if possible (so that PC_IN_CALL_DUMMY will work).
7892
9bc1edb8
CV
78932002-05-22 Corinna Vinschen <[email protected]>
7894
7895 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7896
005ef3d2
ML
78972002-05-22 Michal Ludvig <[email protected]>
7898
7899 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7900 fde->cie_ptr.
7901 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7902 (dwarf2_build_frame_info): Add offset to fde->initial_location
7903 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
7904 (execute_stack_op): Change type of 'result' from ULONGEST to
7905 CORE_ADDR.
005ef3d2 7906
fcf4f891
JT
79072002-05-22 Jason Thorpe <[email protected]>
7908
7909 * config/alpha/tm-nbsd.h: Include solib.h.
7910
cfef91e4
JT
79112002-05-22 Jason Thorpe <[email protected]>
7912
7913 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7914 assumptions about the host's byte order.
7915
9964235a
JT
79162002-05-22 Jason Thorpe <[email protected]>
7917
7918 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7919 to dependency list.
7920 * alphanbsd-tdep.c: Include solib-svr4.h.
7921 * shnbsd-tdep.c: Ditto.
7922
9eeef8ef
JT
79232002-05-22 Jason Thorpe <[email protected]>
7924
7925 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7926 nbsd-tdep.h to dependency list.
7927 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7928 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7929 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7930 nbsdaout.mh and nbsdelf.mh consistently.
7931 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7932 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7933 nbsdaout.mt and nbsdelf.mh consistently.
7934 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7935 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7936 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7937 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7938 a.out shared library stuff from here...
7939 * config/nm-nbsdaout.h: ...to here.
7940 * config/tm-nbsd.h: Remove.
7941 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7942 * config/arm/nbsd.mh: Remove.
7943 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7944 nbsd-tdep.o.
7945 * config/arm/nbsdaout.mh: New file.
7946 * config/arm/nbsdelf.mh: New file.
7947 * config/arm/nm-nbsdaout.h: New file.
7948 * config/i386/nbsd.mh: Remove.
7949 * config/i386/nbsd.mt: Remove.
7950 * config/i386/nbsdaout.mh: New file.
7951 * config/i386/nbsdaout.mt: New file.
7952 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7953 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7954 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7955 i386_register_u_addr): Remove.
7956 * config/i386/nm-nbsdaout.h: New file.
7957 * config/i386/nm-nbsdelf.h: Remove.
7958 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7959 (USE_STRUCT_CONVENTION): Remove.
7960 * config/i386/tm-nbsdaout.h: New file.
7961 * config/i386/tm-nbsdelf.h: Remove.
7962 * config/m68k/nbsd.mh: Remove.
7963 * config/m68k/nbsd.mt: Remove.
7964 * config/m68k/nbsdaout.mh: New file.
7965 * config/m68k/nbsdaout.mt: New file.
7966 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7967 * config/m68k/nm-nbsdaout.h: New file.
7968 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7969 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7970 * config/ns32k/nbsd.mh: Remove.
7971 * config/ns32k/nbsd.mt: Remove.
7972 * config/ns32k/nbsdaout.mh: New file.
7973 * config/ns32k/nbsdaout.mt: New file.
7974 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7975 * config/ns32k/nm-nbsdaout.h: New file.
7976 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7977 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7978 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7979 (SVR4_SHARED_LIBS): Remove.
7980 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7981 * config/sparc/nbsd.mh: Remove.
7982 * config/sparc/nbsd.mt: Remove.
7983 * config/sparc/nbsdaout.mh: New file.
7984 * config/sparc/nbsdaout.mt: New file.
7985 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7986 * config/sparc/nbsdelf.mt: New file.
7987 * config/sparc/nm-nbsdaout.h: New file.
7988 * config/sparc/nm-nbsdelf.h: Remove.
7989 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7990 * config/sparc/tm-nbsdaout.h: New file.
7991
257ce470
JT
79922002-05-21 Jason Thorpe <[email protected]>
7993
7994 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7995 mipsnbsd-tdep.c
7996 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7997
76a6d5fe
JT
79982002-05-21 Jason Thorpe <[email protected]>
7999
8000 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8001 shnbsd-nat.c.
8002 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8003
45888261
JT
80042002-05-21 Jason Thorpe <[email protected]>
8005
8006 * NEWS: Note new MIPS NetBSD native configuration.
8007 * configure.host (mips*-*-netbsd*): New host.
8008 * configure.tgt (mips*-*-netbsd*): New target.
8009 * mipsnbsd-nat.c: New file.
8010 * mipsnbsd-tdep.c: New file.
8011 * mipsnbsd-tdep.h: New file.
8012 * config/mips/nbsd.mh: New file.
8013 * config/mips/nbsd.mt: New file.
8014 * config/mips/nm-nbsd.h: New file.
8015 * config/mips/tm-nbsd.h: New file.
8016
70f80edf
JT
80172002-05-21 Jason Thorpe <[email protected]>
8018
8019 * Makefile.in (SFILES): Add osabi.c.
8020 (COMMON_OBS): Add osabi.o.
8021 (osabi.o): New dependency list.
8022 * osabi.c: New file.
8023 * osabi.h: New file.
8024 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8025
8026 * Makefile.in (alpha_tdep_h): Define and use instead of
8027 alpha-tdep.h.
8028 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8029 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8030 Remove.
8031 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8032 * alpha-tdep.h: Include osabi.h.
8033 (alpha_abi): Remove.
8034 (gdbarch_tdep): Use generic OS ABI framework.
8035 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8036 gdbarch_register_osabi.
8037 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8038 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8039 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8040
8041 * Makefile.in (sh_tdep_h): Add osabi.h.
8042 * sh-tdep.h (sh_osabi): Remove.
8043 (gdbarch_tdep): Use generic OS ABI framework.
8044 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8045 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8046 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8047 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8048
8049 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8050 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8051 gdbarch_register_osabi.
8052 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8053 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8054 (get_elfosabi): Rename to...
8055 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8056 ABI framework support routines.
8057 (arm_gdbarch_init): Use generic OS ABI framework.
8058 (arm_dump_tdep): Likewise.
8059 (_initialize_arm_tdep): Likewise.
8060 * arm-tdep.h: Include osabi.h.
8061 (arm_abi): Remove.
8062 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8063 osabi member.
8064 (arm_gdbarch_register_os_abi): Remove prototype.
8065 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8066 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8067
8068 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8069 * mips-tdep.c: Include osabi.h.
8070 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8071 OS ABI framework.
8072
d194345b
KH
80732002-05-20 Kazu Hirata <[email protected]>
8074
8075 * h8300-tdep.c: Fix formatting.
8076
70c6b0d1
EZ
80772002-05-20 Elena Zannoni <[email protected]>
8078
8079 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8080 printing vector registers.
8081
165b8e33
AC
80822002-05-19 Andrew Cagney <[email protected]>
8083
8084 From Fernando Nasser:
8085 * remote.c (remote_async_open_1): Re-throw the exception when the
8086 connection fails.
8087 (remote_cisco_open): Ditto.
8088 (remote_open_1): Ditto.
8089
36918e70
AC
80902002-05-19 Andrew Cagney <[email protected]>
8091
8092 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8093 (remote_start_remote): Add uiout parameter. Pass through to
8094 remote_start_remote_dummy.
8095 (remote_open_1): Use catch_exception instead of catch_errors.
8096 (remote_async_open_1): Ditto.
8097 (remote_cisco_open): Ditto.
8098
ae44c0c4
AC
80992002-05-19 Andrew Cagney <[email protected]>
8100
8101 * remote.c (remote_start_remote): Replace PTR with void pointer.
8102 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8103 static.
8104
8efe637d
AC
81052002-05-18 Andrew Cagney <[email protected]>
8106
8107 * gdb_indent.sh: Allow the script to be run in the sim directory.
8108
2f1b5984
MK
81092002-05-18 Mark Kettenis <[email protected]>
8110
f0f625e2
MK
8111 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8112 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8113
2f1b5984
MK
8114 * corelow.c (core_open): Only call set_gdbarch_from_file if
8115 exec_bfd is NULL.
8116
fc974602
AV
81172002-05-17 Andrey Volkov <[email protected]>
8118
8119 * h8300-tdep.c: Add support of EXR register
8120 * config/h8300/tm-h8300.h: Ditto.
8121
906709f4
AV
81222002-05-17 Andrey Volkov <[email protected]>
8123
8124 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8125
6e591d68
AV
81262002-05-17 Andrey Volkov <[email protected]>
8127
8128 * h8300-tdep.c: Change literal regnums to REGNO.
8129
84f0252a
JB
81302002-05-17 Jim Blandy <[email protected]>
8131
e0e9281e
JB
8132 * NEWS: Note addition of macro support.
8133
84f0252a
JB
8134 Expand preprocessor macros in C expressions.
8135 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8136 (scan_macro_expansion, scanning_macro_expansion,
8137 finished_macro_expansion): New function declarations.
8138 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8139 variable declarations.
8140 * parser-defs.h (expression_context_pc): New declaration.
8141 * parse.c (expression_context_pc): New variable.
8142 (parse_exp_1): Set expression_context_pc, as well as
8143 expression_context_block.
8144 * c-exp.y (yylex): If we're not already reading the result of a
8145 macro expansion, try to macro-expand the next token. When we're
8146 done scanning a macro expansion, switch back to the mainline text.
8147 Commas and `if's in a macro's expansion don't terminate the input.
8148 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8149 (macro_original_text, macro_expanded_text,
8150 expression_macro_lookup_func, expression_macro_lookup_baton): New
8151 variables.
8152 (scan_macro_expansion, scanning_macro_expansion,
8153 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8154 c_preprocess_and_parse): New functions.
8155 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8156 c_preprocess_and_parse, instead of c_parse.
8157 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8158 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8159
1c509ca8
JR
8160Fri May 17 14:26:19 2002 J"orn Rennecke <[email protected]>
8161
8162 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8163 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8164 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8165
2250ee0c
CV
81662002-05-17 Corinna Vinschen <[email protected]>
8167
8168 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8169
ab3b8126
JT
81702002-05-17 Jason Thorpe <[email protected]>
8171
8172 * Makefile.in (sh_tdep_h): Define and use.
8173 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8174 register enum): Move to...
8175 * * sh-tdep.h: ...here.
8176 * sh-tdep.c: Include sh-tdep.h.
8177 * sh3-rom.c: Likewise.
8178 * shnbsd-tdep.c: Likewise.
8179
ed9d4749
MS
81802002-05-16 Michael Snyder <[email protected]>
8181
8182 * arm-tdep.c: Spelling fix in comment.
8183
2e276125
JB
81842002-05-16 Jim Blandy <[email protected]>
8185
6821892e
JB
8186 Add commands for manually expanding macros and showing their
8187 definitions.
8188 * macrocmd.c, macroscope.c, macroscope.h: New files.
8189 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8190 (macroscope_h): New variable.
8191 (HFILES_NO_SRCDIR): Add macroscope.h.
8192 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8193 (macroscope.o, macrocmd.o): New rules.
8194
2e276125
JB
8195 Teach the Dwarf 2 reader to read macro information.
8196 * dwarf2read.c: #include "macrotab.h".
8197 (dwarf_macinfo_buffer): New variable.
8198 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8199 dwarf_macinfo_size.
8200 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8201 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8202 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8203 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8204 dwarf2_macro_spaces_in_definition): New complaints.
8205 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8206 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8207 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8208 the partial symbol table.
8209 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8210 from what's recorded in the partial symbol table.
8211 (read_file_scope): If the compilation unit has a
8212 `DW_AT_macro_info' attribute, read its macro information.
8213 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8214
2f53fe6c
DJ
82152002-05-16 Daniel Jacobowitz <[email protected]>
8216
8217 Fix PR gdb/546
8218 * ser-tcp.c: Don't include <netinet/udp.h>.
8219
2be99286
SC
82202002-05-16 Stephane Carrez <[email protected]>
8221
8222 * MAINTAINERS: Update my email address.
8223
c9af212b 82242002-05-16 Richard Earnshaw <[email protected]>
8501bbeb
RE
8225
8226 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8227 include file of the same name.
8228
bf5f1a52
CV
82292002-05-16 Corinna Vinschen <[email protected]>
8230
8231 * configure.tgt: Mark v850 as multi-arched.
8232 * config/v850/tm-v850.h: Remove file.
8233 * config/v850/v850.mt: Eliminate TM_FILE.
8234
435e042a
CV
82352002-05-16 Corinna Vinschen <[email protected]>
8236
8237 * v850-tdep.c: Full multi-arch.
8238 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8239 Define GDB_MULTI_ARCH to 2.
8240
9819c6c8
PM
82412002-05-16 Pierre Muller <[email protected]>
8242
8243 * p-exp.y (current_type): New static variable.
8244 Carries the type of the expression at the position that is parsed.
8245 (push_current_type, pop_current_type): Two new functions. Used
8246 to store/restore current_type in expression on specific tokens.
c9af212b
RE
8247 (search_field): New static variable. Set to one after parsing a point
8248 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
8249 (FIELDNAME): New token. After a point only a token belonging to
8250 current_type type definition is allowed.
8251 (all over token rules): reset and change current_type according
8252 to rules.
8253 (exp '[' rule): insert implicit array index field if
8254 exp is a pascal string type.
8255
3a06899a
CV
82562002-05-16 Corinna Vinschen <[email protected]>
8257
8258 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8259 frame info. Use frame_info's saved_regs instead of matching member
8260 in extra_frame_info throughout.
8261 (v850_frame_init_saved_regs): New function.
8262 (v850_init_extra_frame_info): Move most functionality into
8263 v850_frame_init_saved_regs().
8264 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8265 (v850_frame_find_saved_regs): Remove declaration.
8266 (FRAME_FIND_SAVED_REGS): Remove definition.
8267 (v850_frame_init_saved_regs): Add declaration.
8268 (FRAME_INIT_SAVED_REGS): Add definition.
8269
6ed14b0e
CV
82702002-05-16 Corinna Vinschen <[email protected]>
8271
8272 * v850-tdep.c: Begin multi-arch'ing v850.
8273 (v850_target_architecture_hook): Remove function.
8274 (v850_gdbarch_init): New function. Add code previously in
8275 v850_target_architecture_hook().
8276 (_initialize_v850_tdep): Don't set target_architecture_hook.
8277 Call register_gdbarch_init() instead.
8278
42725910
DJ
82792002-05-16 Daniel Jacobowitz <[email protected]>
8280
8281 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8282 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8283 (fixup_class_method_type): Likewise.
8284
99d9066e
JB
82852002-05-15 Jim Blandy <[email protected]>
8286
8287 Add macro structures to GDB's symbol tables. Nobody puts anything
8288 in them yet.
8289 * symtab.h (struct symtab): New member: `macro_table'.
8290 * buildsym.h (pending_macros): New global variable.
8291 * buildsym.c: #include "macrotab.h".
8292 (buildsym_init): Initialize `pending_macros'.
8293 (end_symtab): If we found macro information while reading a CU's
8294 debugging info, do build a symtab structure for it. Make the
8295 symtab point to the macro information, and clear the
8296 `pending_macros' pointer which held it while we were reading the
8297 debug info.
8298 (really_free_pendings): Free any pending macro table.
8299 * objfiles.h (struct objfile): New member: `macro_cache'.
8300 * objfiles.c (allocate_objfile): Set allocate and free functions
8301 for the macro cache's objstack.
8302 (free_objfile): Empty the macro cache's obstack.
8303 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8304 set new allocate and free functions for it.
8305 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8306 free functions for the macro cache's objstack. (Why is this
8307 function building its own objfile?)
8308 * symmisc.c (print_objfile_statistics): Print statistics on the
8309 macro bcache.
8310 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8311
c899585b
RE
83122002-05-15 Richard Earnshaw <[email protected]>
8313
8314 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8315 (REGISTER_U_ADDR): Delete definition.
8316 (arm_register_u_addr): Delete declaration.
8317
a6cdd8c5
RE
83182002-05-15 Richard Earnshaw <[email protected]>
8319
8320 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8321 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8322
c97dcfc7
AC
83232002-05-14 Andrew Cagney <[email protected]>
8324
8325 * regcache.c (register_valid): Revise comments refering to "Not
8326 available" and "unavailable".
8327 * frame.c (frame_register_read): Ditto.
8328 * findvar.c (value_of_register): Ditto.
8329
93021b7d
AC
83302002-05-15 Andrew Cagney <[email protected]>
8331
8332 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8333 (remote-sim.o): Update dependencies.
8334 (d10v-tdep.o): Specify dependencies.
8335 (sim_d10v_h): Define.
8336
a86bc61c
JB
83372002-05-14 Jim Blandy <[email protected]>
8338
8339 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8340 * macrotab.c (macro_lookup_inclusion, find_definition,
8341 new_macro_table): Same.
8342
8343 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8344 not `! strcmp ()'. This is a dubious improvement.
8345 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8346
8347 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8348 although it's not necessary, to avoid a warning.
8349
2fdde8f8
DJ
83502002-05-14 Daniel Jacobowitz <[email protected]>
8351
8352 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8353 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8354 TYPE_INSTANCE_FLAGS.
8355 (struct main_type): New.
8356 (struct type): Move most members to struct main_type. Change
8357 cv_type and as_type to new type_chain member. Add instance_flags.
8358 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8359 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8360 (finish_cv_type): Remove prototype.
8361 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8362 Set TYPE_CHAIN.
8363 (alloc_type_instance): New function.
8364 (smash_type): New function.
8365 (make_pointer_type, make_reference_type, make_function_type)
8366 (smash_to_member_type, smash_to_method_type): Call smash_type.
8367 (make_qualified_type): New function.
8368 (make_type_with_address_space): Call make_qualified_type.
8369 (make_cv_type): Likewise.
8370 (finish_cv_type): Remove unnecessary function.
8371 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8372 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8373 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8374 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8375 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8376 * hpread.c (hpread_read_struct_type): Likewise.
8377 * stabsread.c (read_struct_type): Likewise.
8378
843fedf4
EZ
83792002-05-14 Elena Zannoni <[email protected]>
8380
8381 * configure.tgt: Add a catch all sh* target, for cases like
8382 sh[2,3,4]-elf and sh-hms.
8383
05a6c72c
KS
83842002-05-14 Keith Seitz <[email protected]>
8385
8386 * event-loop.c (create_file_handler): Don't do anything but
8387 update data when we are given a fd which we are already
8388 monitoring.
8389
5d085aaf
ML
83902002-05-14 Michal Ludvig <[email protected]>
8391
8392 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8393 (update_context): Use __func__ in warnings.
8394
9db8d71f
DJ
83952002-05-14 Daniel Jacobowitz <[email protected]>
8396
8397 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8398 and tcp_close to net_open and net_close.
8399 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8400 using UDP if requested. Don't try to disable Nagle on UDP
8401 sockets.
8402 * remote.c (remote_serial_open): New function. Warn about UDP.
8403 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8404
5dbc6baa
EZ
84052002-05-13 Elena Zannoni <[email protected]>
8406
8407 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8408
cc3023f7
EZ
84092002-05-13 Elena Zannoni <[email protected]>
8410
8411 * configure.tgt: Remove sh-hms target.
8412 * MAINTAINERS: Don't list sh-hms as a separate target.
8413
ec2bcbe7
JB
84142002-05-13 Jim Blandy <[email protected]>
8415
8416 Add first preprocessor macro-expansion files.
8417 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8418 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8419 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8420 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8421 (COMMON_OBS): Add macrotab.o, macroexp.o.
8422 (macroexp.o, macrotab.o): New rules.
8423
6d531722
AC
84242002-05-13 Andrew Cagney <[email protected]>
8425
8426 * config/m88k/tm-m88k.h: Update copyright.
8427 (m88k_target_write_pc): Declare
8428 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8429 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8430 (SHIFT_INST_REGS): Update definition.
8431 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8432 using old definition of TARGET_WRITE_PC.
8433 * regcache.c (generic_target_write_pc): Delete code handling
8434 NNPC_REGNUM.
8435 * gdbarch.sh (NNPC_REGNUM): Delete.
8436 * gdbarch.h, gdbarch.c: Regenerate.
8437
3e3f2739
RE
84382002-05-13 Richard Earnshaw <[email protected]>
8439
8440 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8441 builtin reg number.
8442
0004e5a2
DJ
84432002-05-13 Daniel Jacobowitz <[email protected]>
8444
8445 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8446 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8447 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8448 access macros.
8449 * c-typeprint.c (cp_type_print_method_args): Likewise.
8450 (c_type_print_args): Likewise.
8451 * d10v-tdep.c (d10v_push_arguments): Likewise.
8452 (d10v_extract_return_value): Likewise.
8453 * expprint.c (print_subexp): Likewise.
8454 * gdbtypes.c (lookup_primitive_typename): Likewise.
8455 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8456 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8457 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8458 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8459 (TYPE_VECTOR): Likewise.
8460 * hpread.c (hpread_read_struct_type)
8461 (fix_static_member_physnames, fixup_class_method_type)
8462 (hpread_type_lookup): Likewise.
8463 * mdebugread.c (parse_symbol, parse_type): Likewise.
8464 * p-lang.c (is_pascal_string_type): Likewise.
8465 * valops.c (hand_function_call): Likewise.
8466 * x86-64-tdep.c (classify_argument): Likewise.
8467
8468 * hpread.c (hpread_read_function_type)
8469 (hpread_read_doc_function_type): Call replace_type.
8470 * dstread.c (create_new_type): Delete.
8471 (decode_dst_structure, process_dst_function): Call alloc_type.
8472 Use type access macros.
8473
dff95cc7
MK
84742002-05-12 Mark Kettenis <[email protected]>
8475
8476 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8477 the're not supported by the current architecture.
8478 (i387_fill_fxsave): Likewise.
8479
bbcd32ad
FF
84802002-05-12 Fred Fish <[email protected]>
8481
8482 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8483 sect_index_xxx members to index the first slot in section_offsets
8484 if all of the section_offsets are zero.
8485
89cf4787
MK
84862002-05-12 Mark Kettenis <[email protected]>
8487
8488 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8489 checked in with last change.
8490
1f77ffc5
MK
84912002-05-12 Mark Kettenis <[email protected]>
8492
8493 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8494 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8495 config.sub.
8496
89b8b4a9
DJ
84972002-05-12 Daniel Jacobowitz <[email protected]>
8498
8499 * Makefile.in: Update dependencies.
8500
14a5e767
AC
85012002-05-11 Andrew Cagney <[email protected]>
8502
8503 * language.c (local_hex_string_custom): Simplify. Do not depend
8504 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8505
8506 * memattr.c (mem_info_command): Replace calls to
8507 longest_local_hex_string and longest_local_hex_string_custom.
8508 * buildsym.c (make_blockvector): Ditto.
8509 * solib.c (info_sharedlibrary_command): Ditto.
8510 * tracepoint.c (tracepoints_info): Ditto.
8511 * symtab.c (print_msymbol_info): Ditto.
8512
8513 * language.c (local_hex_string): Delete.
8514 (local_hex_string_custom): Delete.
8515 (longest_local_hex_string): Rename to local_hex_string.
8516 (longest_local_hex_string_custom): Rename to
8517 local_hex_string_custom.
8518 * language.h (local_hex_string): Change parameter type to LONGEST.
8519 (local_hex_string_custom): Ditto.
8520 (longest_local_hex_string): Delete declaration.
8521 (longest_local_hex_string_custom): Ditto.
8522
8523 * solib.c: Update copyright.
8524 * memattr.c: Update copyright.
8525
13d01224
AC
85262002-05-11 Andrew Cagney <[email protected]>
8527
8528 * arch-utils.h (legacy_register_to_value): Declare.
8529 (legacy_value_to_register): Declare.
8530 (legacy_convert_register_p): Declare.
8531 * arch-utils.c (legacy_register_to_value): New function.
8532 (legacy_value_to_register): New function.
8533 (legacy_convert_register_p): New function.
8534
8535 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8536 (VALUE_TO_REGISTER): Define.
8537 (CONVERT_REGISTER_P): Define.
8538 * gdbarch.h, gdbarch.c: Regenerate.
8539
8540 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8541 VALUE_TO_REGISTER.
8542 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8543 CONVERT_REGISTER_P.
8544
4a1970e4
DJ
85452005-05-11 Daniel Jacobowitz <[email protected]>
8546 Peter Schauer <[email protected]>
8547
8548 * Makefile.in: Update dependencies for valops.c.
8549 * valops.c: Include "gdb_assert.h".
8550 (typecmp): Skip THIS parameter to methods.
8551 (find_method_list): Remove static_memfuncp argument,
8552 update callers. Check for stub methods.
8553 (find_value_oload_method_list): Don't set *static_memfuncp.
8554 (find_overload_match): Don't check for stub methods. Assert
8555 that methods are not stubbed. Handle static methods.
8556 (value_find_oload_method_list): Remove static_memfuncp argument.
8557 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8558 to the argument list for static stub methods.
8559 * value.h (value_find_oload_method_list): Update prototype.
8560
b2e75d78
AC
85612002-05-11 Andrew Cagney <[email protected]>
8562
8563 * arch-utils.h (generic_register_size): Declare.
8564 (generic_register_raw_size, generic_register_virtual_size): Delete
8565 declarations.
8566 * arch-utils.c (generic_register_raw_size): Delete.
8567 (generic_register_size): New function.
8568 (generic_register_virtual_size): Delete.
8569
8570 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8571 default generic_register_size.
8572 * gdbarch.h, gdbarch.c: Re-generate.
8573
8574 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8575 register_virtual_size.
8576 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8577 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8578
451fbdda
AC
85792002-05-11 Andrew Cagney <[email protected]>
8580
8581 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8582 * gdbarch.h, gdbarch.c: Regenerate.
8583 * gnu-v3-abi.c: Update copyright.
8584 (vtable_address_point_offset): Update.
8585 (gnuv3_rtti_type): Update.
8586 (gnuv3_baseclass_offset): Update.
8587 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8588 (init_fetch_link_map_offsets): Update.
8589 * remote.c (get_remote_state): Update.
8590
6d2f5cea
DJ
85912002-05-11 Daniel Jacobowitz <[email protected]>
8592
8593 * TODO: Remove value_headof/value_from_vtable_info comment.
8594 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8595 * values.c (value_headof, value_from_vtable_info): Delete.
8596 * value.h (value_from_vtable_info): Delete prototype.
8597
d2324da4
AC
85982002-05-11 Andrew Cagney <[email protected]>
8599
8600 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8601 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8602 $(gdb_regex_h).
8603 (gdb_assert_h): Define.
8604 (gdb_wait_h): Define.
8605 (gdb_regex_h): Define.
8606
5c717440
DJ
86072002-05-11 Daniel Jacobowitz <[email protected]>
8608
8609 From Peter Schauer <[email protected]>:
8610 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8611
6c7861b3
JT
86122002-05-11 Jason Thorpe <[email protected]>
8613
8614 * nbsd-tdep.c: Fix comment.
8615
ea5bc2a6
JT
86162002-05-11 Jason Thorpe <[email protected]>
8617
8618 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8619 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8620 (nbsd-tdep.o): New dependency list.
8621 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8622 nbsd-tdep.h.
8623 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8624 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8625 * nbsd-tdep.c: New file.
8626 * nbsd-tdep.h: New file.
8627 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8628 nbsd-tdep.h.
8629 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8630 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8631 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8632 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8633
b28da865
JT
86342002-05-11 Jason Thorpe <[email protected]>
8635
8636 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8637 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8638 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8639 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8640 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8641 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8642
4b8ff1fa
JT
86432002-05-11 Jason Thorpe <[email protected]>
8644
8645 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8646 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8647 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8648 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8649 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8650 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8651 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8652
dfe6eb1f
JT
86532002-05-11 Jason Thorpe <[email protected]>
8654
8655 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8656 fetch_elfcore_registers to...
8657 * i386nbsd-tdep.c: ...here.
8658 (i386nbsd_use_struct_convention): Rename to...
8659 (i386nbsd_aout_use_struct_convention): ...this.
8660 (i386nbsd_supply_reg): New function.
8661 (i386nbsd_fill_reg): New function.
8662 (fetch_core_registers): Use i386nbsd_supply_reg.
8663 (fetch_elfcore_registers): Likewise.
8664 (_initialize_i386nbsd_tdep): New function.
8665 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8666 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8667 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8668 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8669 (i386nbsd_aout_use_struct_convention): ...this.
8670
20cb8cda
JT
86712002-05-11 Jason Thorpe <[email protected]>
8672
8673 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8674 (store_inferior_registers): Use shnbsd_fill_reg.
8675 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8676 sh_nbsd_supply_register): Collapse into...
8677 (shnbsd_supply_reg): ...this.
8678 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8679 (shnbsd_fill_reg): ...this.
8680 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8681 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8682 (fetch_core_registers): Use shnbsd_supply_reg.
8683 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8684 (sh_nbsd_core_fns): Rename to...
8685 (shnbsd_core_fns): ...this.
8686 (sh_nbsd_elfcore_fns): Rename to...
8687 (shnbsd_elfcore_fns): ...this.
8688 (sh_nbsd_init_abi): Rename to...
8689 (shnbsd_init_abi): ...this.
8690 (_initialize_sh_nbsd_tdep): Rename to...
8691 (_initialize_shnbsd_tdep): ...this.
8692 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8693 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8694 sh_nbsd_fill_register): Remove prototypes.
8695 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8696
e750d25e
JT
86972002-05-11 Jason Thorpe <[email protected]>
8698
8699 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8700 (i387-nat.o): Delete dependency list.
8701 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8702 (x86-64-linux-nat.o): Likewise.
8703 * i387-nat.c: Delete file, moving contents to...
8704 * i387-tdep.c: ...here.
8705 * i387-nat.h: Rename...
8706 * i387-tdep.h: ...to this.
8707 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8708 * i386-linux-nat.c: Likewise.
8709 * i386bsd-nat.c: Likewise.
8710 * i386gnu-nat.c: Likewise.
8711 * i386nbsd-nat.c: Likewise.
8712 * i386v4-nat.c: Likewise.
8713 * x86-64-linux-nat.c: Likewise.
8714 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8715 * config/i386/go32.mh (NATDEPFILES): Likewise.
8716 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8717 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8718 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8719 * config/i386/linux.mh (NATDEPFILES): Likewise.
8720 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8721 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8722 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8723 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8724
1aee598a
JT
87252002-05-11 Jason Thorpe <[email protected]>
8726
8727 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8728 (alphanbsd-nat.o): Remove dependency list.
8729 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8730 * alphanbsd-nat.c: Delete. Contents moved to...
8731 * alphanbsd-tdep.c: ...here.
8732 (_initialize_alphanbsd_tdep): Register core functions.
8733 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8734
12bcb0fe
JT
87352002-05-11 Jason Thorpe <[email protected]>
8736
8737 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8738 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8739 (alphanbsd-nat.o): Likewise.
8740 (alphabsd-tdep.o): New dependency list.
8741 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8742 (fill_gregset): Use alphabsd_fill_reg.
8743 (supply_fpregset): Use alphabsd_supply_fpreg.
8744 (fill_fpregset): Use alphabsd_fill_fpreg.
8745 (fetch_inferior_registers): Use struct reg and struct fpreg
8746 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8747 and alphabsd_supply_fpreg.
8748 (store_inferior_registers): Use struct reg and struct fpreg
8749 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8750 and alphabsd_fill_fpreg.
8751 * alphabsd-tdep.c: New file.
8752 * alphabsd-tdep.h: New file.
8753 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8754 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8755 alphabsd_supply_fpreg.
8756 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8757 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8758
361d1df0
EC
87592002-05-11 Eric Christopher <[email protected]>
8760
8761 * mips-tdep.c (mips_double_register_type): Fix thinko.
8762 (mips_single_register_type): Ditto.
8763 * MAINTAINERS: Add self.
8764
92dd7cee
MK
87652002-05-11 Mark Kettenis <[email protected]>
8766
8767 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8768 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8769 right thing on architectures with different endianness and/or
8770 integer sizes.
8771
e27da16d
JT
87722002-05-10 Jason Thorpe <[email protected]>
8773
8774 From Christian Limpach <[email protected]>
8775 * configure.in: Change sed expression which comments out
8776 NATDEPFILES to also comment out continuation lines.
8777 * configure: Regenerate.
8778
ddde02bd
EZ
87792002-05-10 Elena Zannoni <[email protected]>
8780
8781 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8782 big patch.
8783
1c922164
EZ
87842002-05-10 Elena Zannoni <[email protected]>
8785
8786 * sh-tdep.c: Include correct file.
8787
283150cd
EZ
87882002-05-10 Elena Zannoni <[email protected]>
8789
8790 New support for sh64-elf (sh5) target.
8791
8792 * configure.tgt: For sh64-elf target, default to sh-elf.
8793
8794 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8795 (struct gdbarch_tdep): Add new fields for new registers and ABI
8796 info.
361d1df0 8797
283150cd
EZ
8798 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8799 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8800 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8801 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8802 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8803 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8804 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8805 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8806 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8807 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8808 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8809 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8810 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8811 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8812 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8813 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8814 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8815 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8816 sign_extend, sh64_nofp_frame_init_saved_regs,
8817 sh64_init_extra_frame_info, sh64_get_saved_register,
8818 sh64_extract_struct_value_address, sh64_pop_frame,
8819 sh64_push_arguments, sh64_extract_return_value,
8820 sh64_store_return_value, sh64_show_media_regs,
8821 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8822 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8823 sh_sh64_register_virtual_type,
8824 sh_sh64_register_convert_to_virtual,
8825 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8826 sh64_register_read, sh64_pseudo_register_write,
8827 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8828 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8829 sh64_do_pseudo_register, sh_compact_do_registers_info,
8830 sh64_do_registers_info, sh_gdbarch_init): New functions.
8831
3117ed25
EZ
88322002-05-10 Elena Zannoni <[email protected]>
8833
8834 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8835
2654e6d4
DJ
88362002-05-10 Daniel Jacobowitz <[email protected]>
8837
8838 * linespec.c (decode_line_1): Check for a double quote after
8839 a filename correctly.
8840
9ab3e532
JB
88412002-05-10 Jim Blandy <[email protected]>
8842
8843 Properly track the size of the current objfile's .debug_line section.
8844 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8845 (DWARF_LINE_SIZE): New macro.
8846 (dwarf2_build_psymtabs_hard): Record the line section's size in
8847 the partial symbol table.
8848 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8849 symbol table.
8850
126fa72d
PS
88512002-05-10 Petr Sorfa <[email protected]>
8852
8853 * ia64-tdep.c: Handle breakpoints on L instruction type
8854 in MLX instruction bundle by moving the breakpoint to
8855 the third slot (X instruction type) as L holds only data.
8856
1f077a3e
KB
88572002-05-10 Kevin Buettner <[email protected]>
8858
8859 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8860 (process_one_symbol): Complain about discarding local symbols
8861 due to a misplaced N_LBRAC entry.
8862
8120c9d5 88632002-05-09 Elena Zannoni <[email protected]>
361d1df0
EC
8864
8865 From Daniel Berlin <[email protected]>
8120c9d5
EZ
8866 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8867 decrease the depth we are at, in the case of templates.
361d1df0 8868
67b2c998
DJ
88692002-05-09 Daniel Jacobowitz <[email protected]>
8870
8871 * mips-tdep.c (mips_float_register_type): New function.
8872 (mips_double_register_type): New function.
8873 (mips_print_register): Use them.
8874 (do_fp_register_row): Likewise.
8875
fd326606
DJ
88762002-05-09 Daniel Jacobowitz <[email protected]>
8877
6609d9af 8878 * signals/signals.c (signals): Remove conditional compilation around
fd326606 8879 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 8880 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 8881
bef35864
MS
88822002-05-09 Michael Snyder <[email protected]>
8883
8884 * remote-rdp.c (remote_rdp_can_run): Remove.
8885
c55a3f73
TT
88862002-05-09 Tom Tromey <[email protected]>
8887
8888 * jv-valprint.c (java_val_print): Handle `char' as a special case
8889 of TYPE_CODE_INT.
8890
b8d5e71d
MS
88912002-05-09 Michael Snyder <[email protected]>
8892
8893 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8894 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 8895 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 8896 str r(0123),[sp,#nn].
361d1df0 8897 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
8898 order-independent by placing it in a loop.
8899
e2cd42dd
MS
89002002-05-06 Michael Snyder <[email protected]>
8901
8902 * stabsread.c (read_type): Add recognition for new attribute:
8903 "@V;" means that an array type is actually a vector.
8904 This is analogous to the vector flag that's been added to dwarf2.
8905
3ce1502b
MK
89062002-05-09 Mark Kettenis <[email protected]>
8907
8908 * i386-tdep.h (i386_abi): New enum.
8909 (struct gdbarch_tdep): Replace os_ident member with abi.
8910 (i386_gdbarch_register_os_abi): New prototype.
8911 * i386-tdep.c (i386_abi_names): New array.
8912 (process_note_abi_tag_sections): Removed.
8913 (process_note_sections): New function.
8914 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8915 (struct i386_abi_handler): New struct.
8916 (i386_abi_handler_list): New variable.
8917 (i386_gdbarch_register_os_abi): New function.
8918 (i386_gdbarch_init): Adapt for the changes given above.
8919
084c156a
DJ
89202002-05-08 Daniel Jacobowitz <[email protected]>
8921
8922 * gregset.h: Say "GNU/Linux".
8923
6599f021
EZ
89242002-05-08 Elena Zannoni <[email protected]>
8925
8926 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8927 (build_gdbtypes): Build builtin_type_v2_float.
8928 (_initialize_gdbtypes): Register new builtin type.
8929
40af4b0c
AC
89302002-05-08 Andrew Cagney <[email protected]>
8931
8932 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8933 (clear_gdbarch_swap): New function.
8934 (initialize_non_multiarch): Call.
8935 (gdbarch_update_p): Before calling init(), swap out and clear the
8936 existing architecture.
8937 * gdbarch.c: Regenerate.
8938
4fe84f46
JT
89392002-05-08 Jason Thorpe <[email protected]>
8940
8941 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8942 alphanbsd-tdep.c.
8943
4015edd1
JT
89442002-05-08 Jason Thorpe <[email protected]>
8945
8946 * sh-nbsd-nat.c: Rename to...
8947 * shnbsd-nat.c: ...this.
8948 * sh-nbsd-tdep.c: Rename to...
8949 * shnbsd-tdep.c: ...this.
8950 * sh-nbsd-tdep.h: Rename to...
8951 * shnbsd-tdep.h: ...this.
8952 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8953 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8954
0e2bd219
RE
89552002-05-08 Richard Earnshaw <[email protected]>
8956
8957 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8958 concatenation for command help messages.
8959
13a38d45
JT
89602002-05-08 Jason Thorpe <[email protected]>
8961
8962 * NEWS: Note new sh*-*-netbsdelf* configuration.
8963 * configure.host: Set gdb_host_cpu to sh for all sh*.
8964 (sh*-*-netbsdelf*): New host.
8965 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8966 (sh*-*-netbsdelf*): New target.
8967 * sh-nbsd-nat.c: New file.
8968 * sh-nbsd-tdep.c: New file.
8969 * sh-nbsd-tdep.h: New file.
8970 * config/sh/nbsd.mh: New file.
8971 * config/sh/nbsd.mt: New file.
8972 * config/sh/nm-nbsd.h: New file.
8973 * config/sh/tm-nbsd.h: New file.
8974
d658f924
JT
89752002-05-08 Jason Thorpe <[email protected]>
8976
8977 * sh-tdep.c (sh_osabi_names): Declare.
8978 (process_note_abi_tag_sections): New function.
8979 (get_elfosabi): Ditto.
8980 (sh_gdbarch_register_os_abi): Ditto.
8981 (sh_dump_tdep): Ditto.
8982 _initialize_sh_tdep): Use gdbarch_register to register
8983 sh_gdbarch_init and sh_dump_tdep.
8984 * config/sh/tm-sh.h (sh_osabi): Declare.
8985 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8986
848cfffb
AC
89872002-05-07 Andrew Cagney <[email protected]>
8988
8989 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8990 (thumb_scan_prologue): Ditto.
8991 (arm_find_callers_reg): Ditto.
8992 (arm_frame_chain): Ditto.
8993 (arm_init_extra_frame_info): Ditto.
8994 (arm_frame_saved_pc): Ditto.
8995 (arm_pop_frame): Ditto.
8996 (arm_push_return_address): New function.
8997 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8998 call_dummy_location, call_dummy_breakpoint_offset_p,
8999 call_dummy_breakpoint_offset, call_dummy_p,
9000 call_dummy_stack_adjust_p, call_dummy_words,
9001 sizeof_call_dummy_words, call_dummy_start_offset,
9002 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9003 call_dummy_address, push_return_address and push_dummy_frame for
9004 generic dummy frames.
9005
e7d717c0
JT
90062002-05-07 Jason Thorpe <[email protected]>
9007
9008 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9009 size computation for alloca.
9010 (sh_fp_frame_init_saved_regs): Likewise.
9011
7bbcf283
RE
90122002-05-07 Richard Earnshaw <[email protected]>
9013
9014 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9015 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 9016 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
9017 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9018 * remote-rdp.c (remote_rdp_fetch_register): Use
9019 ARM_MAX_REGISTER_RAW_SIZE.
9020 (remote_rdp_store_register): Likewise.
9021
4657573b
ML
90222002-05-07 Michal Ludvig <[email protected]>
9023
361d1df0 9024 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
9025 added default labels to switch {} statements.
9026 * x86-64-tdep.c: Ditto.
9027 * x86-64-linux-nat.c: Ditto.
9028
010f3b2f
JT
90292002-05-07 Jason Thorpe <[email protected]>
9030
9031 * solib.h: Protect against multiple inclusion.
9032
debd256d
JB
90332002-05-06 Jim Blandy <[email protected]>
9034
9ab3e532
JB
9035 Add first preprocessor macro-expansion files.
9036 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9037 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9038 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9039 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9040 (COMMON_OBS): Add macrotab.o, macroexp.o.
9041 (macroexp.o, macrotab.o): New rules.
9042
debd256d
JB
9043 Separate the job of reading the line number info statement program
9044 header (...expialidocious) out into its own function.
9045 * dwarf2read.c (struct line_head, struct filenames, struct
9046 directories): Replace with...
9047 (struct line_header): New structure, containing the full
9048 contents of the statement program header, including the
9049 include directory and file name tables.
9050 (read_file_scope): If we have line number info, instead of just
9051 calling dwarf_decode_lines to do all the work, call
9052 dwarf_decode_line_header first to get a `struct line_header'
9053 containing the data in the statement program header, and then
9054 pass that to dwarf_decode_lines, which will pick up where that
9055 left off. Be sure to clean up the `struct line_header' object.
9056 (dwarf_decode_line_header, free_line_header, add_include_dir,
9057 add_file_name): New functions.
9058 (dwarf_decode_lines): Move all the code to read the statement
9059 program header into dwarf_decode_line_header. Take the line
9060 header it built as the first argument, instead of the offset to
9061 the compilation unit's line number info. Use the new `struct
9062 line_header' type instead of the old structures. No need to do
9063 cleanups here now, since we don't allocate anything.
9064 (dwarf2_statement_list_fits_in_line_number_section,
9065 dwarf2_line_header_too_long): New complaints.
9066
ac3aafc7
EZ
90672002-05-06 Elena Zannoni <[email protected]>
9068
9069 * gdbtypes.c (init_vector_type): New function.
9070 (build_builtin_type_vec128): Simplify the representation of SIMD
9071 registers.
9072 (build_gdbtypes): Initialize new builtin vector types.
9073 (_initialize_gdbtypes): Register new vector types with gdbarch.
9074 (builtin_type_v4_float, builtin_type_v4_int32,
9075 builtin_type_v8_int16, builtin_type_v16_int8,
9076 builtin_type_v2_int32, builtin_type_v4_int16,
9077 builtin_type_v8_int8): New (renamed) SIMD types.
9078
13e49980
MK
90792002-05-06 Mark Kettenis <[email protected]>
9080
9081 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9082 (i387_fill_fxsave): Likewise.
9083
997b20b8
AO
90842002-05-05 Alexandre Oliva <[email protected]>
9085
9086 * alpha-tdep.c (alpha_extract_return_value): Don't use
9087 non-constant array size in prototype.
9088
535c96ce
AC
90892002-05-04 Andrew Cagney <[email protected]>
9090
9091 From Brian Taylor <briant at model dot com>:
9092 * ui-out.c (ui_out_field_core_addr): Use the function
9093 longest_local_hex_string_custom'to format addresses > 32 bits
9094 wide.
9095
9096 * ui-out.c (ui_out_field_core_addr): Update comment.
9097
bedfa57b
AC
90982002-05-04 Andrew Cagney <[email protected]>
9099
9100 * stack.c (select_and_print_frame): Make static. Delete the
9101 parameter `level'.
9102 (func_command): Update call.
9103 (select_frame_command): Delete code computing the frame level.
9104 * frame.h (select_and_print_frame): Delete declaration.
9105
f621c63e
AC
91062002-05-04 Andrew Cagney <[email protected]>
9107
9108 * sparc-tdep.c (sparc_get_saved_register): Comment why
9109 get_prev_frame call is safe.
9110
0f7d239c
AC
91112002-05-04 Andrew Cagney <[email protected]>
9112
9113 * frame.h (select_frame): Delete level parameter.
9114 * stack.c (select_frame): Update. Use frame_relative_level to
9115 obtain the frame's level.
9116 (select_and_print_frame): Update call.
9117 (select_frame_command): Ditto.
9118 (up_silently_base): Ditto.
9119 (down_silently_base): Ditto.
9120 * ocd.c (ocd_start_remote): Ditto.
9121 * remote-rdp.c (remote_rdp_open): Ditto.
9122 * remote-mips.c (mips_initialize): Ditto.
9123 (common_open): Ditto.
9124 * remote-e7000.c (e7000_start_remote): Ditto.
9125 * m3-nat.c (select_thread): Ditto.
9126 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9127 (child_get_current_exception_event): Ditto.
9128 * varobj.c (varobj_create): Ditto.
9129 (varobj_update): Ditto.
9130 (c_value_of_root): Ditto.
9131 * tracepoint.c (finish_tfind_command): Ditto.
9132 * corelow.c (core_open): Ditto.
9133 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9134 * thread.c (info_threads_command): Ditto.
9135 (switch_to_thread): Ditto.
9136 * infrun.c (normal_stop): Ditto.
9137 (restore_selected_frame): Ditto.
9138 (restore_inferior_status): Ditto.
9139 * breakpoint.c (insert_breakpoints): Ditto.
9140 (watchpoint_check): Ditto.
9141 (bpstat_stop_status): Ditto.
9142 (do_enable_breakpoint): Ditto.
9143 * blockframe.c (flush_cached_frames): Ditto.
9144 (reinit_frame_cache): Ditto.
9145
71d6c7b1
AC
91462002-05-04 Andrew Cagney <[email protected]>
9147
9148 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9149 maintainer.
9150
cda6c68a
JB
91512002-05-04 Jim Blandy <[email protected]>
9152
9153 * gdbtypes.c (replace_type): Doc fix.
9154
5c1c87f0
AC
91552002-05-04 Andrew Cagney <[email protected]>
9156
9157 * valprint.c (strcat_longest): Delete commented out function.
9158 Update copyright.
9159
cd9bfe15
AC
91602002-05-04 Andrew Cagney <[email protected]>
9161
9162 * MAINTAINERS: Mark a29k as deleted.
9163 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9164 Move new configurations to the top.
9165 * configure.tgt: Remove a29k.
9166 * config/a29k/tm-vx29k.h: Delete.
9167 * config/a29k/vx29k.mt: Delete.
9168 * config/a29k/tm-a29k.h: Delete.
9169 * config/a29k/a29k-udi.mt: Delete.
9170 * config/a29k/a29k.mt: Delete.
9171 * a29k-tdep.c: Delete.
9172 * remote-udi.c: Delete.
9173 * remote-mm.c: Delete.
9174 * remote-eb.c: Delete.
9175 * remote-adapt.c: Delete.
9176 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
9177 * config/s390/s390x.mt: Ditto.
9178 * config/s390/s390.mt: Ditto.
9179 * config/sparc/sparclynx.mh: Ditto.
9180 * config/sparc/linux.mh: Ditto.
9181 * config/pa/hppaosf.mh: Ditto.
9182 * config/pa/hppabsd.mh: Ditto.
9183 * config/ns32k/nbsd.mt: Ditto.
9184 * config/mips/vr5000.mt: Ditto.
9185 * config/m68k/sun3os4.mh: Ditto.
9186 * config/m68k/nbsd.mt: Ditto.
9187 * config/m68k/m68klynx.mh: Ditto.
9188 * config/m32r/m32r.mt: Ditto.
9189 * config/i386/x86-64linux.mt: Ditto.
9190 * config/i386/nbsdelf.mt: Ditto.
9191 * config/i386/nbsd.mt: Ditto.
9192 * config/i386/i386lynx.mh: Ditto.
9193
bf0c5130
AC
91942002-05-04 Andrew Cagney <[email protected]>
9195
9196 * target.c (debug_print_register): New function. Handle oversize
9197 registers.
9198 (debug_to_fetch_registers): Call.
9199 (debug_to_store_registers): Call.
9200
2ae1c2d2
JB
92012002-05-03 Jim Blandy <[email protected]>
9202
13a393b0
JB
9203 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9204 (read_type): Doc fix.
9205 * gdbtypes.c (replace_type): Doc fix.
9206
2ae1c2d2
JB
9207 * stabsread.c (multiply_defined_struct): New complaint.
9208 (read_struct_type): If the type we were passed isn't empty, or
9209 incomplete, don't read the new struct type into it; complain,
9210 and return the original type unchanged. Take a new `type_code'
9211 argument, which is the type code for the new type.
9212 (read_type): Rather than storing the type's type code here, pass
9213 it as an argument to read_struct_type, and let that take care of
9214 storing it. That way, we don't overwrite the original type code,
9215 so read_struct_type can use it to decide whether we're overwriting
9216 something we shouldn't.
9217 (complain_about_struct_wipeout): New function.
9218
8de9bdc4
AC
92192002-05-03 Andrew Cagney <[email protected]>
9220
9221 * gdbarch.sh: Assert that gdbarch is non-NULL.
9222 * gdbarch.c: Regenerate.
9223
f773fdbb
JM
92242002-05-03 Jason Merrill <[email protected]>
9225
9226 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9227 and return NULL.
9228
0e04a514
ML
92292002-05-03 Michal Ludvig <[email protected]>
9230
9231 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9232 (x86_64_dwarf2gdb_regno_map_length),
9233 (x86_64_dwarf2_reg_to_regnum): Added.
9234 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9235 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9236 (_initialize_x86_64_tdep): Synced with the change above.
9237 (x86_64_skip_prologue): Reformulated message.
9238
065432a8
PM
92392002-05-03 Pierre Muller <[email protected]>
9240
9241 * f-exp.y: Also use new prev_lexptr variable
9242 to improve error reporting. Based on Michael Snyder
9243 2002-04-24 dated patch to c-exp.y.
9244 * jv-exp.y: Likewise.
9245 * m2-exp.y: Likewise.
9246
a3162708
EZ
92472002-05-02 Elena Zannoni <[email protected]>
9248
9249 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9250 we are dealing with vectors.
9251
03620c38
PM
92522002-05-02 Pierre Muller <[email protected]>
9253
9254 * config/m68k/tm-nbsd.h: Obvious fix,
9255 correct machine name.
9256
6604db2e
PM
92572002-05-02 Pierre Muller <[email protected]>
9258
9259 * p-typeprint.c (pascal_type_print_base): Add support
9260 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9261
0906b739
PM
92622002-05-02 Pierre Muller <[email protected]>
9263
9264 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9265 for fondamental pascal 'char' type.
9266
e2625b33
PM
92672002-05-02 Pierre Muller <[email protected]>
9268
9269 * p-lang.h (is_pascal_string_type): Declaration changed,
9270 new sixth argument of type char ** added.
361d1df0 9271 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
9272 changed. Args length_pos, length_size, string_pos, char_size
9273 can now be NULL. New argument arrayname set to the field
9274 name of the char array. Return value set to char array
9275 field index plus one.
361d1df0 9276 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
9277 is_pascal_string_type function.
9278
cf17c188
AC
92792002-05-02 Andrew Cagney <[email protected]>
9280
9281 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9282 <[email protected]> change.
9283 * gdbarch.c: Regenerate.
9284
52bca491
AC
92852002-05-02 Andrew Cagney <[email protected]>
9286
9287 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9288 before probing for a new one. Detect errorenous gdbarch_init
9289 functions.
9290 * gdbarch.c: Regenerate.
9291
d5e72505
AC
92922002-05-01 Andrew Cagney <[email protected]>
9293
9294 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9295 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9296 * config/v850/tm-v850.h: Ditto. Update copyright.
9297
af566d9f
AC
92982002-04-30 Andrew Cagney <[email protected]>
9299
9300 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9301 current_gdbarch.
9302
880d85fa
MS
93032002-04-30 Michael Snyder <[email protected]>
9304
94c30b78
MS
9305 * arm-tdep.c: Whitespace clean-ups.
9306 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
9307 should have been removed as part of 4/24 change.
9308
6f5987a6
KB
93092002-04-30 Kevin Buettner <[email protected]>
9310
9311 * rs6000-tdep.c: Added comment describing how fpscr register
9312 numbers were chosen.
9313
1a113c93
MS
93142002-04-30 Michael Snyder <[email protected]>
9315
9316 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9317
9a6f53fe
EZ
93182002-04-29 Elena Zannoni <[email protected]>
9319
9320 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9321 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9322 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9323
11ed25ac
KB
93242002-04-29 Kevin Buettner <[email protected]>
9325
9326 From Louis Hamilton <[email protected]>:
9327 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9328 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9329 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9330 not bfd-private xcoff data, to determine wordsize.
9331 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9332
ae232405
AC
93332002-04-29 Andrew Cagney <[email protected]>
9334
9335 GDB 5.2 released from 5.2 branch.
9336
91fd20f7
ML
93372002-04-29 Michal Ludvig <[email protected]>
9338
9339 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9340 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9341 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 9342
2dc5091b
EZ
93432002-04-29 Elena Zannoni <[email protected]>
9344
9345 * rs6000-tdep.c (rs6000_extract_return_value,
9346 rs6000_store_return_value): Handle returning vectors.
9347 (rs6000_gdbarch_init): Use
9348 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9349 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9350 New function.
9351 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9352 vectors.
9353 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9354 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 9355
2b9848d8
PM
93562002-04-24 Pierre Muller <ics.u-strasbg.fr>
9357
9358 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 9359 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
9360 with fprintf_unfiltered (gdb_stderr,...).
9361
f8d17dc5
PM
93622002-04-24 Pierre Muller <ics.u-strasbg.fr>
9363
9364 * remote-array.c (printf_monitor, write_monitor,
361d1df0 9365 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
9366 Replace fprintf (stderr,...
9367 with fprintf_unfiltered (gdb_stderr,....
9368 * remote-es.c: Likewise.
9369 * remote-os9k.c: Likewise.
9370 * remote-st.c: Likewise.
9371
2f2f1ad1
AS
93722002-04-28 Andreas Schwab <[email protected]>
9373
9374 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9375 linux-proc.o and gcore.o.
9376
b6779aa2
AC
93772002-04-26 Michal Ludvig <[email protected]>
9378
9379 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9380 code without frame pointers.
9381
7e57f5f4
AC
93822002-04-26 Andrew Cagney <[email protected]>
9383
9384 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9385 ON_STACK is needed.
9386
2ceb85d0
BE
93872002-04-26 Ben Elliston <[email protected]>
9388
9389 * target.c (do_xfer_memory): Correct reference to the new option
9390 "trust-readonly-sections".
9391
f5f8a009
EZ
93922002-04-26 Elena Zannoni <[email protected]>
9393
9394 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9395 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9396 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9397 vectors.
9398 (read_array_type): Record the fact that this array type is really a
9399 vector (i.e. are passed in by value).
9400
5868c862
JT
94012002-04-26 Jason Thorpe <[email protected]>
9402
9403 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9404 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9405 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9406 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9407 * alpha-linux-tdep.c: Include frame.h.
9408 (alpha_linux_sigcontext_addr): New function.
9409 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9410 alpha_linux_sigcontext_addr.
9411 * alpha-osf1-tdep.c: Include gdbcore.h.
9412 (alpha_osf1_sigcontext_addr): New function.
9413 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9414 alpha_osf1_sigcontext_addr.
9415 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9416 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9417
bfb01f37
AC
94182002-04-26 Andrew Cagney <[email protected]>
9419
361d1df0 9420 * stack.c (selected_frame_level):
bfb01f37
AC
9421 (select_frame): Do not set selected_frame_level.
9422 * frame.h (selected_frame_level): Delete declaration.
9423
15813d3f
AC
94242002-04-26 Andrew Cagney <[email protected]>
9425
9426 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9427 convert_from_func_ptr-addr when AIX / PowerOpen.
9428
6096c27a
AC
94292002-04-25 Andrew Cagney <[email protected]>
9430
9431 * valops.c (hand_function_call): Call
9432 generic_save_call_dummy_addr.
9433 * frame.h (generic_save_call_dummy_addr): Declare.
9434 * blockframe.c (struct dummy_frame): Add fields call_lo and
9435 call_hi.
9436 (generic_find_dummy_frame): Check for PC in range call_lo to
9437 call_hi instead of entry_point_address.
9438 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9439 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9440 (generic_save_call_dummy_addr): New function.
9441
f510d44e
DM
94422002-04-24 David S. Miller <[email protected]>
9443
9444 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9445 sparc_skip_prologue.
9446 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9447 information to find prologue when possible.
9448 (sparc_prologue_frameless_p): Call examine_prologue directly.
9449 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9450 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9451 second argument.
9452 (SKIP_PROLOGUE): Likewise.
9453
15d72a92
JT
94542002-04-25 Jason Thorpe <[email protected]>
9455
9456 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9457 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9458 indicate that the condition it was testing is always true.
9459 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9460 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9461 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9462
accc6d1f
JT
94632002-04-25 Jason Thorpe <[email protected]>
9464
9465 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9466 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9467 tdep->jb_pc and tdep->jb_elt_size.
9468 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9469 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9470 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9471 * alpha-nat.c (get_longjmp_target): Remove.
9472 (JB_ELEMENT_SIZE): Ditto.
9473 (JB_PC): Ditto.
9474 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9475 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9476 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9477 to alpha_get_longjmp_target.
9478 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9479 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9480 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9481
1bfdc549
AC
94822002-04-25 Andrew Cagney <[email protected]>
9483
9484 * README: Update to GDB 5.2.
9485
1bd316f0
AC
94862002-04-25 Andrew Cagney <[email protected]>
9487
9488 * gdbarch.sh (LC_ALL): Set to `c'.
9489
2e5ff58c
TR
94902002-04-25 Theodore A. Roth <[email protected]>
9491
9492 * avr-tdep.c: Ran through gdb_indent.sh.
9493
e33ce519
TR
94942002-04-25 Theodore A. Roth <[email protected]>
9495
9496 * MAINTAINERS: Add myself as AVR maintainer.
9497 * NEWS: Note new target avr.
9498
8818c391
TR
94992002-04-25 Theodore A. Roth <[email protected]>
9500
9501 * Makefile.in: Add support for AVR target.
9502 * configure.tgt: Add support for AVR target.
9503 * avr-tdep.c: New file
9504 * config/avr/avr.mt: New file.
9505
79509c2d
TR
95062002-04-25 Theodore A. Roth <[email protected]>
9507
9508 * MAINTAINERS: Add myself to write-after-approval.
9509
dac8068e
PM
95102002-04-24 Pierre Muller <ics.u-strasbg.fr>
9511
9512 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9513 with fprintf_unfiltered (gdb_stderr,....
9514
25bf3106
PM
95152002-04-25 Pierre Muller <[email protected]>
9516
9517 Fix PR gdb/508.
9518 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9519
24467a86
PM
95202002-04-25 Pierre Muller <[email protected]>
9521
9522 * p-exp.y: Also use new prev_lexptr variable
9523 to improve error reporting. Based on Michael Snyder
9524 2002-04-24 dated patch to c-exp.y.
9525
95b80706
JT
95262002-04-25 Jason Thorpe <[email protected]>
9527
9528 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9529 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9530 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9531 to 0.
9532 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9533 and struct value.
9534 (FUNCTION_START_OFFSET): Remove.
9535 (BREAKPOINT): Ditto.
9536
e90cc612
JT
95372002-04-25 Jason Thorpe <[email protected]>
9538
9539 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9540 * NEWS: Ditto.
9541
6c72f9f9
JT
95422002-04-24 Jason Thorpe <[email protected]>
9543
9544 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9545 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9546 alpha_linux_pc_in_sigtramp.
9547 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9548 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9549 alpha_osf1_pc_in_sigtramp.
9550 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9551 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9552 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9553 alphafbsd_pc_in_sigtramp.
9554 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9555 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9556 alphanbsd_pc_in_sigtramp.
9557 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9558 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9559
5e4f3379
JT
95602002-04-24 Jason Thorpe <[email protected]>
9561
9562 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9563
da8ca43d
JT
95642002-04-24 Jason Thorpe <[email protected]>
9565
9566 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9567 alphanbsd-tdep.c.
9568 (alphanbsd-nat.o): New dependency list.
9569 (alphanbsd-tdep.o): Ditto.
9570 * NEWS: Note new native NetBSD/alpha configuration.
9571 * alphanbsd-nat.c: New file.
9572 * alphanbsd-tdep.c: Ditto.
9573 * configure.host (alpha*-*-netbsd*): New host.
9574 * configure.tgt (alpha*-*-netbsd*): New target.
9575 * config/alpha/nbsd.mh: New file.
9576 * config/alpha/nbsd.mt: Ditto.
9577 * config/alpha/nm-nbsd.h: Ditto.
9578 * config/alpha/tm-nbsd.h: Ditto.
9579
36a6271d
JT
95802002-04-24 Jason Thorpe <[email protected]>
9581
9582 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9583 (alpha-osf1-tdep.o): New dependency list.
9584 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9585 and skip_sigtramp_frame members.
9586 * alpha-linux-tdep.c: Include gdbcore.h.
9587 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9588 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9589 * alpha-osf1-tdep.c: New file.
9590 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9591 alpha-osf1-dep.c.
9592 (alpha_frame_past_sigtramp_frame): New function.
9593 (alpha_dynamic_sigtramp_offset): Ditto.
9594 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9595 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9596 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9597 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9598 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9599 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9600 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9601 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9602 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9603 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9604 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9605 to find_solib_trampoline_target.
9606 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9607 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9608 (SKIP_TRAMPOLINE_CODE): Remove.
9609 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9610 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9611 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9612 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9613 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9614 (PROC_SIGTRAMP_MAGIC): Ditto.
9615 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9616 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9617 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9618 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9619 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9620
2f4bc57b
JT
96212002-04-24 Jason Thorpe <[email protected]>
9622
9623 * NEWS: Note that Alpha targets are now multi-arch.
9624
665132f9
MS
96252002-04-24 Michael Snyder <[email protected]>
9626
9627 * parser-defs.h (prev_lexptr): New external variable.
9628 * parse.c (parse_exp_1): Set prev_lexptr to null before
9629 calling the language-specific parser.
9630 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9631 (yyerror): Use prev_lexptr in error reporting.
9632
32872fa7
DJ
96332002-04-24 Daniel Jacobowitz <[email protected]>
9634
9635 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9636 * gregset.h: If FILL_FPXREGSET is defined, provide
9637 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9638 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9639 is defined, call fill_fpxregset.
9640
57e76fac
MS
96412002-04-24 Roland McGrath <[email protected]>
9642
9643 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9644 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9645 (supply_gregset, supply_fpregset): New functions.
9646
9647 * gnu-nat.c (gnu_find_memory_regions): New function.
9648 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9649 (gnu_xfer_memory): Add a cast.
9650
f43845b3
MS
96512002-04-24 Michael Snyder <[email protected]>
9652
361d1df0 9653 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9654 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9655 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9656 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9657 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9658 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9659
a0abec03
AC
9660Wed Apr 24 14:22:21 2002 Andrew Cagney <[email protected]>
9661
9662 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9663 NUM_PSEUDO_REGS can be used.
9664
d7bd68ca
AC
96652002-04-24 Andrew Cagney <[email protected]>
9666
9667 * arch-utils.h: Update copyright.
9668
9669 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9670 * gdbarch.h, gdbarch.c: Re-generate.
9671
9672 * inferior.h (IN_SIGTRAMP): Delete definition.
9673 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9674 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9675
9676 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9677 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9678 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9679 (find_proc_framesize): Ditto.
9680 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9681 (alpha_init_extra_frame_info): Ditto.
9682 * infrun.c (handle_inferior_event): Ditto.
9683 (handle_inferior_event): Ditto.
9684 (check_sigtramp2): Ditto.
9685 * blockframe.c (create_new_frame): Ditto.
9686 (get_prev_frame): Ditto.
9687 * ppc-linux-tdep.c: Update comments.
9688 * i386-linux-tdep.c: Update comments.
9689 * breakpoint.c (bpstat_what): Update comment.
9690
4867e41e
DM
96912002-04-24 David S. Miller <[email protected]>
9692
21d83aa5
DM
9693 * i960-tdep.c (register_in_window_p): New function.
9694 (i960_find_saved_register): Use it instead of
9695 REGISTER_IN_WINDOW_P.
9696 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9697
4867e41e
DM
9698 * symtab.h (find_stab_function_addr): Kill extern.
9699 * minsyms.c (find_stab_function_addr): Remove from here...
9700 * dbxread.c: ... to here, and mark it static.
9701
69cdf6a2
DM
97022002-04-20 David S. Miller <[email protected]>
9703
9704 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9705 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9706
5a595886
DM
97072002-04-21 David S. Miller <[email protected]>
9708
9709 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9710 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9711 (vx_write_register): Likewise.
9712
1da1a192
JB
97132002-04-23 J. Brobecker <[email protected]>
9714
9715 * source.c (is_regular_file): New function.
9716 (openp): Check wether file to open is a regular file
9717 to avoid opening directories.
9718
baa6f10b
JT
97192002-04-22 Jason Thorpe <[email protected]>
9720
9721 * findvar.c (extract_signed_integer): Cast printf argument
9722 to suppress format warning.
9723 (extract_unsigned_integer): Likewise.
9724 * infcmd.c (registers_info): Likewise.
9725 * top.c (get_prompt_1): Likewise.
9726 * valops.c (value_assign): Likewise.
9727 * valprint.c (print_decimal): Likewise.
9728
b2c4da81
L
97292002-04-22 H.J. Lu ([email protected])
9730
9731 * c-exp.y (typebase): Support
361d1df0 9732
b2c4da81
L
9733 [long|long long|short] [signed|unsigned] [int|]
9734
9735 and
9736
9737 signed [long|long long|short] int
9738
f267bd6a
JT
97392002-04-22 Jason Thorpe <[email protected]>
9740
9741 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9742 and vax-tdep.h.
9743 * vax-tdep.h: New file.
9744 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9745 Make several routines static.
9746 (vax_get_saved_register): New function.
9747 (vax_gdbarch_init): New function.
9748 (_initialize_vax_tdep): Register vax_gdbarch_init.
9749 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9750 Remove macros now under the control of gdbarch.
9751
da3c6d4a
MS
97522002-04-22 Michael Snyder <[email protected]>
9753
11d3b27d
MS
9754 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9755 Some whitespace and coding standards tweaks.
da3c6d4a 9756
a33f7558
JT
97572002-04-22 Jason Thorpe <[email protected]>
9758
9759 * vax-tdep.c: Include regcache.h.
9760 (vax_call_dummy_words): New.
9761 (sizeof_vax_call_dummy_words): New.
9762 (vax_fix_call_dummy): New function.
9763 (vax_saved_pc_after_call): Ditto.
9764 * config/vax/tm-vax.h: Don't include regcache.h.
9765 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9766 (CALL_DUMMY): Remove.
9767 (CALL_DUMMY_WORDS): Define.
9768 (SIZEOF_CALL_DUMMY_WORDS): Define.
9769 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9770
47a73475
MS
97712002-04-18 Michael Snyder <[email protected]>
9772
9773 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9774
52efde73
JT
97752002-04-22 Jason Thorpe <[email protected]>
9776
9777 * vax-tdep.c (vax_frame_chain): New function.
9778 (vax_push_dummy_frame): Ditto.
9779 (vax_pop_frame): Ditto.
9780 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9781 (FRAMELESS_FUNCTION_INVOCATION): Use
9782 generic_frameless_function_invocation_not.
9783 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9784 (POP_FRAME): Use vax_pop_frame.
9785
ea74468c
JT
97862002-04-22 Jason Thorpe <[email protected]>
9787
9788 * vax-tdep.c (vax_store_struct_return): New function.
9789 (vax_extract_return_value): Ditto.
9790 (vax_store_return_value): Ditto.
9791 (vax_extract_struct_value_address): Ditto.
9792 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9793 vax_store_struct_return.
9794 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9795 (STORE_RETURN_VALUE): Use vax_store_return_value.
9796 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9797
5516aa92
JT
97982002-04-22 Jason Thorpe <[email protected]>
9799
9800 * vax-tdep.c (vax_frame_saved_pc): New function.
9801 (vax_frame_args_address_correct): Ditto.
9802 (vax_frame_args_address): Ditto.
9803 (vax_frame_locals_address): Ditto.
9804 (vax_frame_num_args): Move code to be in proximity to
9805 other frame-related functions.
9806 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9807 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9808 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9809 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9810 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9811
36af0b35
L
98122002-04-22 H.J. Lu ([email protected])
9813
9814 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9815 includedir.
9816
ab62c900
JT
98172002-04-22 Jason Thorpe <[email protected]>
9818
9819 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9820 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9821 (FRAME_INIT_SAVED_REGS): New macro.
9822
7232b100
JT
98232002-04-22 Jason Thorpe <[email protected]>
9824
9825 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9826
b70d2aee
JT
98272002-04-22 Jason Thorpe <[email protected]>
9828
9829 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9830 where needed.
9831 (fetch_osf_core_registers): Likewise.
9832 (supply_gregset): Likewise.
9833
a0e8a2d1 98342002-04-22 J. Brobecker <[email protected]>
361d1df0 9835
a0e8a2d1
JB
9836 * symfile.h (get_section_index): Define.
9837 * symfile.c (get_section_index): New function.
9838 * mdebugread.c (SC_IS_SBSS): New macro.
9839 (SC_IS_BSS): Return true for the scBss storage class only, as
9840 the scSBss storage class refers to the .sbss section.
9841 (parse_partial_symbols): Discard the symbols which associated
9842 section does not exist.
9843 Make sure to use the .sbss section index for symbols which
9844 storage class is scBss, rather than using the .bss section index.
9845
51eb8b08
JT
98462002-04-22 Jason Thorpe <[email protected]>
9847
9848 * vax-tdep.c: Update copyright years.
9849 (vax_register_name): New function.
9850 (vax_register_byte): Ditto.
9851 (vax_register_raw_size): Ditto.
9852 (vax_register_virtual_size): Ditto.
9853 (vax_register_virtual_type): Ditto.
9854 * config/vax/tm-vax.h: Update copyright years.
9855 (REGISTER_NAMES): Remove.
9856 (REGISTER_NAME): Define.
9857 (REGISTER_BYTE): Use vax_register_byte.
9858 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9859 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9860 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9861
6cc1c0a8
AC
98622002-04-21 Andrew Cagney <[email protected]>
9863
9864 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9865 declaration
9866 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9867
9319a2fe
DM
98682002-04-21 David S. Miller <[email protected]>
9869
9870 * arch-utils.c (generic_prologue_frameless_p): Kill
9871 SKIP_PROLOGUE_FRAMELESS_P code.
9872 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9873 references.
9874 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9875 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9876 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9877 references.
9878 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9879 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9880 (sparc_gdbarch_init): Pass it to
9881 set_gdbarch_prologue_frameless_p.
a0e8a2d1 9882
e9ed6d01
JT
98832002-04-21 Jason Thorpe <[email protected]>
9884
9885 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9886 (alphabsd-nat.o): New dependency list.
9887
36012033
JT
98882002-04-21 Jason Thorpe <[email protected]>
9889
9890 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9891 alphafbsd-tdep.c.
9892 (alpha-linux-tdep.o): New dependency list.
9893 (alphafbsd-tdep.o): Likewise.
9894
3379287a
JT
98952002-04-21 Jason Thorpe <[email protected]>
9896
9897 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9898 to here...
9899 * alpha-tdep.c: ...from here.
9900 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9901
4bcbd6cb
JT
99022002-04-21 Jason Thorpe <[email protected]>
9903
9904 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9905 prototype from here...
9906 * alpha-tdep.h: ...to here.
9907
b31da25e
AC
99082002-04-21 Andrew Cagney <[email protected]>
9909
9910 * frame.h (selected_frame_level): Document as deprecated.
9911 (frame_relative_level): Declare.
9912 * stack.c (frame_relative_level): New function.
9913 (selected_frame_level): Document as deprecated.
9914 (select_frame): Do not set the selected_frame_level.
9915
9916 * stack.c (frame_info, record_selected_frame): Update.
9917 (frame_command, current_frame_command): Update.
9918 (up_silently_base, up_command, down_silently_base): Update.
9919 (down_command): Update.
9920 * inflow.c (kill_command): Update.
9921 * tracepoint.c (finish_tfind_command): Update.
9922 * corelow.c (core_open): Update.
9923 * thread.c (info_threads_command): Update.
9924 (do_captured_thread_select): Update.
9925 * infcmd.c (finish_command): Update.
9926 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9927
9c1d6fe5
JT
99282002-04-21 Jason Thorpe <[email protected]>
9929
9930 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9931
ab89facf
AC
99322002-04-21 Andrew Cagney <[email protected]>
9933
9934 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9935 type const.
9936
82a4efa1
JT
99372002-04-21 Jason Thorpe <[email protected]>
9938
9939 * alphafbsd-tdep.c: Update copyright years. Include
9940 alpha-tdep.h.
9941 (alphafbsd_use_struct_convention): Make static.
9942 (alphafbsd_init_abi): New function.
9943 (_initialize_alphafbsd_tdep): New function.
9944 * config/alpha/tm-fbsd.h: Update copyright years.
9945 (USE_STRUCT_CONVENTION): Remove.
9946
44dffaac
JT
99472002-04-21 Jason Thorpe <[email protected]>
9948
9949 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9950 an Alpha ABI variant.
9951 (alpha_abi_handler_list): Declare.
9952 (alpha_gdbarch_register_os_abi): New function.
9953 (alpha_gdbarch_init): Give registered ABI variant handlers a
9954 chance to tweak the gdbarch once we have set up defaults.
9955 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9956
65585be4
JT
99572002-04-21 Jason Thorpe <[email protected]>
9958
9959 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9960 to standard_coerce_float_to_double.
9961 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9962
d9b023cc
JT
99632002-04-21 Jason Thorpe <[email protected]>
9964
9965 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9966 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9967 from gdbarch_tdep rather than a constant.
9968 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9969 the default text address for all Alpha Unix ABIs.
9970 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9971 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9972
dc129d82
JT
99732002-04-21 Jason Thorpe <[email protected]>
9974
9975 * alpha-tdep.h: New file. Includes several Alpha target constants
9976 taken from...
9977 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9978 let gdbarch deal with.
9979 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9980 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9981 to dependency list.
9982 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9983 Alpha target register names.
9984 * alphabsd-nat.c: Likewise.
9985 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9986 Alpha target register names. Make serveral routines static.
9987 (alpha_get_saved_register): New function.
9988 (alpha_abi_names): New.
9989 (process_note_abi_tag_sections): New function.
9990 (get_elfosabi): New function.
9991 (alpha_gdbarch_init): New function.
9992 (alpha_dump_tdep): New function.
9993 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9994
d49d1e0a
AC
99952002-04-21 Andrew Cagney <[email protected]>
9996
9997 * frame.c (find_saved_register): Delete #ifdef
9998 HAVE_REGISTER_WINDOWS code.
9999 * config/sparc/tm-sparc.h: Update comments.
10000 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10001
92e8c9ed
AC
100022002-04-21 Andrew Cagney <[email protected]>
10003
10004 * i960-tdep.c (i960_find_saved_register): New function.
10005 (i960_get_saved_register): New function.
10006 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10007 (i960_get_saved_register): Declare.
10008 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10009
e1925118
DM
100102002-04-20 David S. Miller <[email protected]>
10011
10012 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10013
29673b29
AC
100142002-04-20 Andrew Cagney <[email protected]>
10015
10016 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10017 instead of NUM_PSEUDO_REGS.
10018
6c86dcd5
DM
100192002-04-20 David S. Miller <[email protected]>
10020
10021 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10022 GDB_MULTI_ARCH_PARTIAL
10023 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10024 define, let tm-sp64.h do it.
10025
aa40ec90
JT
100262002-04-20 Jason Thorpe <[email protected]>
10027
10028 * frame.c (find_saved_register): Avoid a NULL pointer
10029 dereference and actually walk the frame list.
10030
0f79675b
AC
100312002-04-20 Andrew Cagney <[email protected]>
10032
10033 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10034 sorted in most most-recent-used order. Document.
10035 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10036
f91305dd 100372002-04-19 Andrew Cagney <[email protected]>
bf75c8c1
AC
10038
10039 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10040 instead of ->prev.
10041 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10042 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10043 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10044 instead of ->prev.
10045
73d322b1
EZ
100462002-04-19 Elena Zannoni <[email protected]>
10047
10048 Fix PR gdb/471.
10049 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10050 (build_builtin_type_vec128): Ditto.
10051 (append_composite_type_field): Fix calculation of type length in
10052 union case.
10053
ccd9a834
EZ
100542002-04-19 Eli Zaretskii <[email protected]>
10055
10056 * config/djgpp/README: Update.
10057
10058 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10059 compiler warnings.
10060
a57f9e49
JT
100612002-04-19 Jason Thorpe <[email protected]>
10062
10063 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10064 (alpha_setup_arbitrary_frame): ...to this.
10065 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10066 for alpha_setup_arbitrary_frame.
10067
f4f9705a
AC
100682002-04-18 Andrew Cagney <[email protected]>
10069
10070 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10071 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10072
f4f9705a
AC
10073 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10074 * target.h (memory_breakpoint_from_pc): Update declaration.
10075 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10076
10077 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10078 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10079 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10080 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10081 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10082 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10083 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10084 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10085 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10086 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10087 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10088 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10089
10090 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10091 const pointer.
10092 * monitor.c (monitor_insert_breakpoint): Ditto.
10093 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10094
10095 * config/mcore/tm-mcore.h: Update copyright.
10096 * mem-break.c: Ditto.
10097 * xstormy16-tdep.c: Ditto.
10098
29f319b8
PM
100992002-04-18 Pierre Muller <[email protected]>
10100
10101 * p-exp.y: Add precedence rule for '^' token.
10102 This removes the shift/reduce conflicts.
10103 Remove the comment concerning these shift/reduce conflicts.
10104
ebeac11a
EZ
101052002-04-18 Elena Zannoni <[email protected]>
10106
10107 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10108 (registers_powerpc_nofp): New register set for processors
10109 without floating point unit.
10110
27c31547
DM
101112002-04-18 David S. Miller <[email protected]>
10112
10113 * MAINTAINERS: Add myself to write-after-approval.
10114
47a73475
MS
101152002-04-17 Michael Snyder <[email protected]>
10116
10117 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10118
953836b2
AC
101192002-04-17 Andrew Cagney <[email protected]>
10120
10121 * rs6000-tdep.c (frame_initial_stack_address): Use
10122 frame_register_read to read the alloca_reg.
10123
8b0d4340
AC
101242002-04-17 Andrew Cagney <[email protected]>
10125
10126 * frame.c (find_saved_register): Find saved registers in the next
10127 not prev frame.
10128 Fix PR gdb/365.
10129
d8864532
AC
101302002-04-17 Andrew Cagney <[email protected]>
10131
10132 * gdbarch.sh (LANG): Set to ``c''.
10133
36cc83a3 101342002-04-15 Andrew Cagney <[email protected]>
361d1df0 10135
36cc83a3 10136 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 10137
2f4150cc 101382002-04-15 Andrew Cagney <[email protected]>
2c7ef074
AC
10139
10140 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10141 Update copyright.
10142
628703c6 10143 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 10144 Also fix PR gdb/391.
361d1df0 10145
56157b4a
AC
101462002-04-14 Andrew Cagney <[email protected]>
10147
10148 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10149 * aclocal.m4, configure: Re-generate.
10150 Fix PR gdb/391.
361d1df0 10151
6d1e3329
EZ
101522002-04-14 Elena Zannoni <[email protected]>
10153
10154 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10155 instead of tm_print_insn.
10156
cb06fa07
EZ
101572002-04-14 Elena Zannoni <[email protected]>
10158
10159 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10160
f208ba17
AC
101612002-04-14 Andrew Cagney <[email protected]>
10162
10163 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10164 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10165 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10166
20f01a46
DH
101672002-04-12 Don Howard <[email protected]>
10168
10169 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10170 max_user_call_depth.
10171 (init_cmd_lists): Initialize the new value;
10172 * cli/cli-script.c (execute_user_command): Limit the call depth of
10173 user defined commands. This avoids a core-dump when user commands
10174 are infinitly recursive.
10175
a88376a3
KB
101762002-04-12 Kevin Buettner <[email protected]>
10177
10178 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10179 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10180 from tdep struct instead of DEFAULT_LR_SAVE.
10181 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10182 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10183 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10184
f2172603
MS
101852002-04-12 Michael Snyder <[email protected]>
10186
694f61fb 10187 * Remote.c: Spelling fix.
20fe79c8
MS
10188 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10189 If no symbol found for "sbrk", try "_sbrk".
10190 (make_output_phdrs): Use bfd_section_name.
10191 (gcore_copy_callback): Use bfd_section_name.
62995fc4 10192 * eval.c: Indentation fix-ups.
169a7369
MS
10193 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10194 in case it gets applied to an address that is already
10195 in the instruction space.
de74f71f
MS
10196 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10197 * symfile.c: Fix indentation, long lines.
f2172603
MS
10198 * source.c: White space fix-up.
10199
cda5a58a
AC
102002002-04-12 Andrew Cagney <[email protected]>
10201
10202 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10203 * frame.c (frame_register_read): New function. Return non-zero on
10204 success.
10205 (read_relative_register_raw_bytes_for_frame): Delete.
10206 (read_relative_register_raw_bytes): Delete.
10207 * frame.h (frame_register_read): Declare.
10208 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10209 * sh-tdep.c: Ditto.
10210 * infcmd.c (do_registers_info): Ditto.
10211 * hppa-tdep.c: Ditto.
10212 * rs6000-tdep.c: Ditto.
10213 * h8500-tdep.c: Ditto.
10214 * mips-tdep.c: Ditto.
10215 * h8300-tdep.c: Ditto.
10216 * z8k-tdep.c: Ditto.
10217
2ea5f656
KB
102182002-04-12 Kevin Buettner <[email protected]>
10219
10220 From Jimi X <[email protected]>:
10221 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10222 64-bit SysV ABI.
10223
27b15785
KB
102242002-04-12 Kevin Buettner <[email protected]>
10225
10226 From Jimi X <[email protected]>:
10227 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10228 bfd info.
10229
5d57ee30
KB
102302002-04-12 Kevin Buettner <[email protected]>
10231
10232 From Jimi X <[email protected]>:
10233 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10234 register sets for these processor variants.
10235
bc1e36ca
DJ
102362002-04-11 Daniel Jacobowitz <[email protected]>
10237
bc1e36ca
DJ
10238 * regformats/reg-ppc.dat: Support FPSCR.
10239
e3f36dbd
KB
102402002-04-11 Kevin Buettner <[email protected]>
10241
10242 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10243 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10244 Add fpscr as an invalid/unfetchable register.
10245 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10246 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10247 (fill_fpregset): Add support for register fpscr.
10248 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10249 (fill_gregset): Account for the fact that register ``mq'' might
10250 not exist.
10251 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10252 (registers_power): Add fpscr to register set at slot 71.
10253 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10254 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10255
943c9c25
MS
102562002-04-11 Michael Snyder <[email protected]>
10257
10258 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10259 * configure: Regenerate.
10260 * config.in: Regenerate.
10261 * acconfig.h: Add define for _SYSCALL32.
10262 * core-sol2.c: Remove #define _SYSCALL32.
10263 * solib-legacy.c: Remove #define _SYSCALL32.
10264
d8c0a2e7
AC
102652002-04-10 Andrew Cagney <[email protected]>
10266
10267 * stack.c (select_frame): Cleanup internal error message, do not
10268 use %p.
10269
7cc19214
AC
102702002-04-10 Andrew Cagney <[email protected]>
10271
10272 * stack.c (select_frame): Check that selected_frame and the
10273 specified level are as expected.
10274 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10275 Update copyright.
10276 * frame.h (struct frame_info): Add field `level'. Update
10277 copyright.
10278 Work-in-progress PR gdb/464.
10279
67a2b77e
AC
102802002-04-10 Andrew Cagney <[email protected]>
10281
10282 * maint.c (maint_print_section_info): Rename print_section_info.
10283 (print_bfd_section_info, print_objfile_section_info): Update.
10284 * inferior.h (struct gdbarch): Add opaque declaration.
10285 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10286 * gdbarch.h: Regenerate.
10287
8cfda98c
ML
102882002-04-10 Michal Ludvig <[email protected]>
10289
10290 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10291 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10292 (kernel_u_size): Added.
10293 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10294 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10295
ca439ad2 102962002-04-04 Jim Ingham <[email protected]>
361d1df0 10297
ca439ad2
JI
10298 * valarith.c (find_size_for_pointer_math): New function, either returns
10299 the size for a pointer's target, returns 1 for void *, or errors for
10300 incomplete types.
10301 (value_add, value_sub): use find_size_for_pointer_math.
10302
2f2893d9
DJ
103032002-04-09 Daniel Jacobowitz <[email protected]>
10304
10305 * linux-low.c (linux_look_up_symbols): New hook.
10306 (linux_target_ops): Add linux_look_up_symbols.
10307 * remote-utils.c (decode_address): New function.
10308 (look_up_one_symbol): New function.
10309 * server.c (handle_query): Call target look_up_symbols hook.
10310 * server.h (look_up_one_symbol): Add prototype.
10311 * target.h (struct target_ops): Add look_up_symbols hook.
10312
96cb11df
AC
103132002-04-09 Andrew Cagney <[email protected]>
10314
10315 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10316 override FP_REGNUM with frame->fp. Update copyright.
10317 * parse.c (num_std_regs, std_regs): Delete.
10318 (target_map_name_to_register): Do not search std_regs. Update
10319 function description.
10320 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10321 declarations. Update copyright.
10322 Fix PR gdb/251.
361d1df0 10323
97658e92
DJ
103242002-04-09 Daniel Jacobowitz <[email protected]>
10325
10326 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10327 after the last symbol in a block.
10328
6044e3eb
PM
103292002-04-09 Pierre Muller <[email protected]>
10330
10331 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10332 is non zero as a found symbol.
10333
0406ec40
AC
103342002-04-08 Andrew Cagney <[email protected]>
10335
10336 * findvar.c: Include "builtin-regs.h".
10337 (value_of_register): Call value_of_builtin_reg when applicable.
10338 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10339 (target_map_name_to_register): Call
10340 builtin_reg_map_name_to_regnum.
10341 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10342 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10343 (builtin_regs_h): Define.
10344 (builtin-regs.o): New target.
10345 (findvar.o): Add $(builtin_regs_h).
10346 * builtin-regs.c, builtin-regs.h: New files.
10347 * std-regs.c: New file.
10348 Partial fix for PR gdb/251.
10349
56a6dfb9
KB
103502002-04-08 Kevin Buettner <[email protected]>
10351
10352 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10353 it's no longer required.
10354
3a808432
AC
103552002-04-08 Andrew Cagney <[email protected]>
10356
10357 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10358
7c40d541
KB
103592002-04-08 Kevin Buettner <[email protected]>
10360
10361 From Jimi X <[email protected]>:
10362 * rs6000-tdep.c (rs6000_software_single_step): Use
10363 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10364 and size. Use target_insert_breakpoint() and
10365 target_remove_breakpoint() to insert and remove breakpoints
10366 instead of explicit memory reads and writes.
10367
cc9836a8
KB
103682002-04-08 Kevin Buettner <[email protected]>
10369
10370 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10371 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10372 ELF_OBJECT_FORMAT ifdef.
10373
7495d1dc
KB
103742002-04-08 Kevin Buettner <[email protected]>
10375
10376 From Jimi X <[email protected]>:
10377 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10378
4288e836
KB
103792002-04-08 Kevin Buettner <[email protected]>
10380
10381 From Jimi X <[email protected]>:
10382 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10383 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10384
a4e4e501
MK
103852002-04-07 Mark Kettenis <[email protected]>
10386
10387 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10388 s/asprintf/xasprintf/.
10389 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10390
006defba
AC
103912002-04-07 Andrew Cagney <[email protected]>
10392
10393 I believe Jeff Law denies responsability for this one:
10394 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10395 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10396 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10397 Work-around for PR gdb/366.
10398
7aa83cac
EZ
103992002-04-07 Elena Zannoni <[email protected]>
10400
10401 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10402 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10403 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10404
cf1fcca1
EZ
104052002-04-07 Elena Zannoni <[email protected]>
10406
10407 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10408 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10409 information.
10410
3f289e6f
AC
104112002-04-07 Andrew Cagney <[email protected]>
10412
10413 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10414 maintainer.
10415
129188f6
AC
104162002-04-07 Andrew Cagney <[email protected]>
10417
10418 * README (Reporting Bugs in GDB): Document the bug web page as the
10419 prefered way of submitting bugs.
10420 Fix PR gdb/402.
10421
1200cd6e
AC
104222002-04-06 Andrew Cagney <[email protected]>
10423
10424 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10425 -1. Update comment.
10426 * gdbarch.h, gdbarch.c: Re-generate.
10427
2853c33c
AS
104282002-04-07 Andreas Schwab <[email protected]>
10429
10430 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10431 buffer to regcache_collect.
10432
c2169756
AC
104332002-04-06 Andrew Cagney <[email protected]>
10434
10435 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10436 * gdbarch.c, gdbarch.h: Re-generate.
10437
25f1b008
AC
104382002-04-06 Andrew Cagney <[email protected]>
10439
10440 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10441 declaration. Fix -Werror.
10442
59263426
DJ
104432002-04-05 Daniel Jacobowitz <[email protected]>
10444
10445 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10446 * gdbarch.c: Regenerate.
10447
f5db4da3
MS
104482002-04-05 Michael Snyder <[email protected]>
10449
80f8a6eb
MS
10450 * breakpoint.c (clear_command): Rewrite middle section to
10451 combine two loops with identical control conditions.
10452 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10453 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10454
ad3dcc5c
L
104552002-04-05 H.J. Lu ([email protected])
10456
10457 * solib-svr4.c (bkpt_names): Add "__start".
10458
f32e7a74
AC
104592002-04-04 Andrew Cagney <[email protected]>
10460
10461 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10462 as test for 64 bit target.
10463
8227c0ff
AC
104642002-04-05 Andrew Cagney <[email protected]>
10465
10466 * h8500-tdep.c (h8500_write_fp): Delete function.
10467 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10468 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10469 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10470 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10471 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10472 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10473 (s390_write_fp):
10474 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10475 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10476 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10477 (d10v_write_fp): Delete function.
10478 * inferior.h (write_fp, generic_target_write_fp): Delete
10479 declarations.
10480 * regcache.c (generic_target_write_fp): Delete function.
10481 (write_fp): Delete function.
10482 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10483 * gdbarch.h, gdbarch.c: Regenerate.
10484 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10485 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10486 (sparc64_write_fp): Delete declaration.
10487 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10488 (h8500_write_fp): Delete declaration.
10489
2757dd86
AC
104902002-04-04 Andrew Cagney <[email protected]>
10491
10492 * sparc-tdep.c (sparc64_write_fp): Delete.
10493 (sparc_push_dummy_frame): Replace write_fp call with code to store
10494 the FP directly.
10495 (sparc_gdbarch_init): Do not initialize write_fp.
10496
c69255e1
KB
104972002-04-05 Kevin Buettner <[email protected]>
10498
10499 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10500 clause.
10501
ae767bfb
JB
105022002-03-29 Jim Blandy <[email protected]>
10503
10504 * stack.c (get_selected_block): Add new argument `addr_in_block',
10505 used to return the exact code address we used to select the block,
10506 not just the block.
10507 * blockframe.c (get_frame_block, get_current_block): Same.
10508 * frame.h (get_frame_block, get_current_block,
10509 get_selected_block): Update declarations.
10510 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10511 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10512
84d2ac95
MS
105132002-04-05 Michael Snyder <[email protected]>
10514
10515 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10516 warning message.
10517
596aa3bf
JB
105182002-04-05 J. Brobecker <[email protected]>
10519
10520 * utils.c (xfullpath): New function.
10521 * defs.h (xfullpath): Add declaration.
10522 * source.c (openp): Use xfullpath in place of gdb_realpath to
10523 avoid resolving the basename part of filenames when the
10524 associated file is a symbolic link. This fixes a potential
10525 inconsistency between the filenames known to GDB and the
10526 filenames it prints in the annotations.
10527 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10528 to be able to match a filename with either the real filename, or
10529 the name of any symbolic link to this file.
10530 (lookup_partial_symtab): Ditto.
10531
c02f5703
MS
105322002-04-04 Michael Snyder <[email protected]>
10533
10534 * breakpoint.c: Add support for hardware breakpoints in overlays.
10535 (overlay_events_enabled): New state variable.
10536 (insert_breakpoints): Use overlay_events_enabled to decide
10537 whether to attempt to set a breakpoint at the overlay load addr.
10538 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10539 (remove_breakpoint): Use overlay_events_enabled to decide
10540 whether breakpoints need to be removed from overlay load addr.
10541 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10542 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 10543 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
10544 disable_overlay_breakpoints): Update overlay_events_enabled.
10545
5fb290d7
DJ
105462002-04-04 Daniel Jacobowitz <[email protected]>
10547
10548 * dwarf2read.c (struct function_range): New.
10549 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10550 (check_cu_functions): New.
10551 (read_file_scope): Initialize global function lists.
10552 Call dwarf_decode_line after processing children.
10553 (read_func_scope): Add to global function list.
10554 (dwarf_decode_lines): Call check_cu_functions everywhere
10555 record_line is called. Call record_line with a linenumber
10556 of 0 to mark sequence ends.
10557
7b3fabf0
ML
105582002-04-04 Michal Ludvig <[email protected]>
10559
361d1df0 10560 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10561 change sync with glibc.
10562
bce58c09
JB
105632002-04-03 Jim Blandy <[email protected]>
10564
10565 * configure.in: Call AC_C_INLINE.
10566 * configure: Regenerated.
361d1df0 10567
2fccf04a
DJ
105682002-04-01 Daniel Jacobowitz <[email protected]>
10569
10570 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10571 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10572
2d1bfe2e
MK
105732002-03-31 Mark Kettenis <[email protected]>
10574
a5941fbf
MK
10575 * NEWS: Mention gcore support on FreeBSD/i386.
10576
a90cd31d
MK
10577 * fbsd-proc.c: New file.
10578 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10579 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10580
2d1bfe2e
MK
10581 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10582 while statement.
10583
9eb6e5a1
JB
105842002-03-29 Jim Blandy <[email protected]>
10585
10586 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10587 unescaped newlines in string literals, but newer ones don't. So
10588 escape them.
10589
f02df580
MS
105902002-03-26 Michael Snyder <[email protected]>
10591 Andrew Cagney <[email protected]>
10592
361d1df0 10593 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10594 restore file to memory.
10595 * cli/cli-dump.h: New file.
10596 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10597 * NEWS: Mention new commands.
f02df580 10598
109f874e
MS
105992002-03-28 Michael Snyder <[email protected]>
10600
10601 * symfile.c (symbol_file_add): Move test for null symbols to later.
10602
520f6ade
AC
106032002-03-27 Andrew Cagney <[email protected]>
10604
10605 From veksler at il.ibm.com:
10606 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10607 the xstrduped original path.
10608 Fix PR gdb/417.
10609
d4654627
MS
106102002-03-27 Michael Snyder <[email protected]>
10611
10612 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10613 * infcmd.c (_initialize_infcmd): Ditto.
10614 * language.c (_initialize_language): Ditto.
10615 * symfile.c (_initialize_symfile): Ditto.
10616 * top.c (_init_main): Ditto.
10617 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10618
6be8bc0c
EZ
106192002-03-27 Elena Zannoni <[email protected]>
10620
10621 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10622 vector registers handling.
10623 (skip_prologue): Handle new AltiVec instructions. Fill in new
10624 fields of frame data.
10625 (frame_get_saved_regs): Fill in information for AltiVec registers.
10626
12af6855
JB
106272002-03-27 Jim Blandy <[email protected]>
10628
10629 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10630 a function; leave this macro here to invoke that function.
10631 (symbol_init_mangled_name): Declaration for that function.
10632 * symtab.c (symbol_init_mangled_name): New function.
10633
dc672865
AC
106342002-03-27 Andrew Cagney <[email protected]>
10635
10636 * valarith.c: Replace strerror with safe_strerror.
10637 * tracepoint.c: Ditto.
10638 * lin-lwp.c: Ditto.
10639 * go32-nat.c: Ditto.
10640 * inflow.c: Ditto.
10641 * gnu-nat.c: Ditto.
10642
d96429cd
AS
106432002-03-27 Andreas Schwab <[email protected]>
10644
10645 * event-top.c (command_line_handler): Remove useless if.
10646
7e336ba1
AJ
106472002-03-27 Andreas Jaeger <[email protected]>
10648
10649 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10650 comment.
10651
de220d0f
ML
106522002-03-27 Michal Ludvig <[email protected]>
10653
10654 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10655 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10656 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10657 (x86_64_linux_dr_get_status, supply_gregset),
10658 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10659 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10660 (x86_64_register_info_table): Add.
10661 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10662 (x86_64_register_raw_size, x86_64_register_virtual_type),
10663 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10664 general x86_64_register_info_table.
10665 (i386_gdbarch_init): gdbarch_register_bytes is now set
10666 dynamicaly during initialization.
10667 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10668 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10669
0e98d0a7
DJ
106702002-03-27 Daniel Jacobowitz <[email protected]>
10671
10672 * gdbserver/server.c (main): Call target_signal_to_host_p
10673 and target_signal_to_host on signals received from the remote.
10674 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10675 target_signal_from_host on signals sent to the remote.
10676 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10677 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10678
3130066b
DJ
106792002-03-27 Daniel Jacobowitz <[email protected]>
10680
10681 * signals/signals.c: Include "server.h" in gdbserver build.
10682 (target_signal_from_name): Don't use STREQ.
10683 (_initialize_signals): Likewise. Don't include function in
10684 gdbserver build.
10685
9aedf4f4
DJ
106862002-03-27 Daniel Jacobowitz <[email protected]>
10687
10688 * signals.c: Moved to...
10689 * signals/signals.c: Here.
7e336ba1 10690 * Makefile (signals.o): Update.
9aedf4f4 10691
3fa41cdb
JL
106922002-03-26 Jeff Law ([email protected])
10693
10694 * somread.c (som_symtab_read): Remove some commented out code and
10695 updated related comments. Do not set the minimal symbol table to
10696 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10697 in a dynamic executable.
10698 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10699 where we are unable to find the minimal symbol for the given
10700 PC value.
10701
ee677e8d
MS
107022002-03-25 Jeff Law ([email protected])
10703
10704 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10705
e76e1718
ML
107062002-03-25 Michal Ludvig <[email protected]>
10707
10708 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10709
18a642a1
AC
107102002-03-23 Andrew Cagney <[email protected]>
10711
10712 * command.h: Update copyright.
10713 (struct cmd_list_element): Replace definition with opaque
10714 declaration.
10715 (enum cmd_types): Document that it will eventually be moved to
10716 cli/cli-decode.h
10717 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10718 (MALLOCED_REPLACEMENT): Delete macro.
10719 * Makefile.in (cli_decode_h): Add $(command_h).
10720 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 10721 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
10722 * completer.c: Include "cli/cli-decode.h".
10723 * maint.c: Include "cli/cli-decode.h".
10724 * cli/cli-decode.h: Include "command.h".
10725 (enum command_class): Delete.
10726 (enum cmd_types): Comment out.
10727 (enum cmd_auto_boolean): Delete.
10728 (enum var_types): Delete.
10729
b2875cc0
AC
107302002-03-23 Andrew Cagney <[email protected]>
10731
10732 * cli/cli-decode.c: Include "gdb_assert.h".
10733 (add_set_or_show_cmd): New static function.
10734 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10735 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10736 all fields, such as func, from the set command.
10737
3b45974e
AC
107382002-03-23 Andrew Cagney <[email protected]>
10739
10740 * MAINTAINERS (sh-elf): Change warning flag to -w.
10741
823ca731
AC
107422002-03-23 Andrew Cagney <[email protected]>
10743
10744 * defs.h (error): Add printf format attribute.
10745 * thread-db.c (thread_from_lwp): Fix error format string.
10746 * stack.c (parse_frame_specification): Ditto.
10747 * cli/cli-decode.c (undef_cmd_error): Ditto.
10748 * scm-lang.c (scm_lookup_name): Ditto.
10749 * tracepoint.c (trace_error): Ditto.
10750 * remote-utils.c (usage): Ditto.
10751 * remote.c (compare_sections_command): Ditto.
10752 Fix PR gdb/328.
10753
0e101458
AC
107542002-03-22 Andrew Cagney <[email protected]>
10755
10756 * gdbtypes.c (append_composite_type_field): New function.
10757 (init_composite_type): New function.
10758 * gdbtypes.h (append_composite_type_field): Declare.
10759 (init_composite_type): Ditto.
10760
8e0662df
EZ
107612002-03-22 Elena Zannoni <[email protected]>
10762
10763 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 10764 function.
8e0662df
EZ
10765 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10766 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10767 structure returning convention for SYSV ABI case, but not
10768 for GNU/Linux, FreeBSD, or NetBSD.
10769
3121eff0
DJ
107702002-03-22 Daniel Jacobowitz <[email protected]>
10771
10772 * symtab.h (lookup_block_symbol): Add mangled_name argument
10773 to prototype.
10774
10775 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10776 with new mangled_name argument.
10777 * linespec.c (decode_line_1): Likewise.
10778 * valops (value_of_this): Likewise.
10779 * symtab.c (lookup_transparent_type): Likewise.
10780 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10781 (lookup_symbol): If we are given a mangled name, pass it down
10782 to lookup_symbol_aux.
10783 (lookup_block_symbol): If we are given a mangled name to check
10784 against, only return symbols which match it.
10785
349b409f
CF
107862002-03-22 Christopher Faylor <[email protected]>
10787
10788 * win32-nat.c (child_create_inferior): Check for proper shell to use
10789 here, in case the user changes it on the fly.
10790 (_initialize_inftarg): Remove shell path considerations.
10791
2a873819
EZ
107922002-03-21 Elena Zannoni <[email protected]>
10793
10794 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10795 for gdbarch_max_register_raw_size and max_register_virtual_size.
10796 Adjust copyright year.
10797
a1b9830c
DJ
107982002-03-21 Daniel Jacobowitz <[email protected]>
10799
10800 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10801 in a function to cover the entire beginning of the function
10802 as well if it does not already.
10803
8b5790f2
TR
108042002-03-21 Tom Rix <[email protected]>
10805
10806 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10807 (rs6000_ptrace64): Renamed from ptrace64.
10808
bdbe5747
MH
108092002-03-20 Martin M. Hunt <[email protected]>
10810
10811 * gdbserver/remote-utils.c (remote_open): Don't call
10812 getprotobyname, we're all using TCP here so just use
10813 IPPROTO_TCP.
7e336ba1 10814 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
10815
108162002-03-20 Martin M. Hunt <[email protected]>
7e336ba1 10817
bdbe5747
MH
10818 * regcache.c (_initialize_regcache): No need to call
10819 build_regcache() at this time; it gets called whenever
10820 the gdbarch changes.
10821
7781cd62
DB
108222002-03-20 David O'Brien <[email protected]>
10823
10824 * sparc-nat.c: Include sys/param.h where possible.
10825
f65ca430
DJ
108262002-03-20 Daniel Jacobowitz <[email protected]>
10827
10828 Fix PR gdb/422.
10829 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10830 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10831 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10832 complex types.
10833 * stabsread.c (rs6000_builtin_type): Likewise.
10834 (read_sun_floating_type): Likewise.
10835
0c867556
PS
108362002-03-19 Peter Schauer <[email protected]>
10837
10838 * stabsread.c (read_member_functions): Remove skip code for duplicate
10839 constructor/destructor methods. Use standard parsing for these
10840 methods and just do not chain them to the list of methods after
10841 parsing.
10842
12b9c64f
AO
108432002-03-19 Alexandre Oliva <[email protected]>
10844
10845 * coffread.c: Remove redundant static declarations. Replace
10846 occurrences of `PTR' with `void *'.
10847 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10848 * top.h (quit_cover): Likewise.
10849 * defs.h (catch_errors): Likewise.
10850
349c5d5f
AC
108512002-03-18 Andrew Cagney <[email protected]>
10852
10853 * defs.h (XMALLOC): Define.
10854 * gdb-events.sh (XMALLOC): Delete macro.
10855 * gdb-events.c, gdb-events.h: Regenerate.
10856 * gdbarch.sh (XMALLOC): Delete macro.
10857 * gdbarch.c: Regenerate.
10858 * serial.c (XMALLOC): Delete macro.
10859 * ui-file.c (XMALLOC): Ditto.
10860 * ser-unix.h (XMALLOC): Ditto.
10861 * sh-tdep.c (XMALLOC): Ditto.
10862 * ui-out.c (XMALLOC): Ditto.
10863 * utils.c (XMALLOC): Ditto.
10864 * i386-tdep.c (XMALLOC): Ditto.
10865 * gdb-events.c (XMALLOC): Ditto.
10866 * d10v-tdep.c (XMALLOC): Ditto.
10867 * cli-out.c (XMALLOC): Ditto.
10868
10869 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10870 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10871 * ui-file.c, ui-out.c: Ditto.
10872
7d0766f3
AC
108732002-03-18 Andrew Cagney <[email protected]>
10874
10875 * command.h (struct cmd_list_element): Add field context.
10876 (set_cmd_context, get_cmd_context): Declare.
10877 * cli/cli-decode.h: Ditto.
10878 * cli/cli-decode.c (get_cmd_context): New function.
10879 (set_cmd_context): New function.
10880 (add_cmd): Initialize context.
10881 Part of fixing PR gdb/145 and PR gdb/146.
10882
5913bcb0
AC
108832002-03-17 Andrew Cagney <[email protected]>
10884
1868c04e
AC
10885 * cli/cli-decode.c (cmd_type): New function.
10886 * command.h (cmd_type): Declare.
10887 * infrun.c (set_schedlock_func): Call function cmd_type.
10888 * kod.c (kod_set_os): Call cmd_type.
10889 * cris-tdep.c (cris_version_update): Use function cmd_type.
10890 (cris_mode_update, cris_abi_update): Ditto.
10891
5913bcb0
AC
10892 * command.h: (execute_cmd_post_hook): Declare.
10893 (execute_cmd_pre_hook): Declare.
10894 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10895 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10896 functions. Execute pre/post hook while ensuring that afterwords
10897 hook_in is cleared.
10898 * top.c (execute_command): Use execute_cmd_post_hook, and
10899 execute_cmd_pre_hook to execute pre/post commands.
10900 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10901 hook_stop_stub.
10902 (hook_stop_stub): Call execute_cmd_pre_hook.
10903
b51450c9
AC
109042002-03-17 Andrew Cagney <[email protected]>
10905
10906 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10907 set'' and this leads to a core dump. Move xstrdup of
10908 operating_system to after check that it is not NULL.
10909
f66c9f11
AC
109102002-03-17 Andrew Cagney <[email protected]>
10911
8e694ecf
AC
10912 * kod.c (kod_set_os): Remove unnecessary check that
10913 ``command->type'' is set_cmd.
10914
f66c9f11
AC
10915 * valprint.c (set_input_radix): Use input_radix.
10916 (set_output_radix): Use output_radix.
10917 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10918 isn't reverted.
10919
9d01611c
AC
109202002-03-16 Andrew Cagney <[email protected]>
10921
10922 * value.h (struct value): Delete field ``substring_addr''. Change
10923 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
10924 force_core_addr_align and force_pointer_aligh.
10925
10926 * value.h (struct value): Fix typo in above change.
9d01611c 10927
4156bb53
PS
109282002-03-16 Peter Schauer <[email protected]>
10929
10930 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10931 to fix internal_error from ``maintenance print architecture''.
10932
0e5e3ea6
PS
109332002-03-16 Peter Schauer <[email protected]>
10934
10935 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10936 for gcc versions after gcc-2.8.1.
10937
9b013045
PS
109382002-03-16 Peter Schauer <[email protected]>
10939
10940 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10941 for method resolution. Restore adjustment of ``this'' pointer after
10942 calling value_struct_elt, which was accidentally removed during the
10943 HP merge.
10944
376c9600
AC
109452002-03-15 Andrew Cagney <[email protected]>
10946
10947 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10948 value_of_register.
10949 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10950 get_saved_register.
10951 * value.h (value_of_register): Update.
10952
a4db0f07
RH
109532002-03-14 Richard Henderson <[email protected]>
10954
10955 * configure.in: Detect declaration for canonicalize_file_name.
10956 * utils.c (canonicalize_file_name): Declare, if needed.
10957 (gdb_realpath): Prefer realpath if available and usable.
10958 * config.in, configure: Rebuild.
10959
96383835
RH
109602002-03-14 Richard Henderson <[email protected]>
10961
10962 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10963 a constant array bound.
10964
10965 * MAINTAINERS: Add myself to write-after-approval.
10966
75245b24
MS
109672002-03-14 Michael Snyder <[email protected]>
10968
10969 * symfile.c (syms_from_objfile): Return immediately if no syms.
10970 (symbol_file_add): Return immediately if no syms.
10971 (find_sym_fns): Return immediately if no syms.
10972
e641a1ca
ML
109732002-03-13 Michal Ludvig <[email protected]>
10974
10975 * gdbserver/remote-util.c (remote_open): Print remote-side's
10976 IP address when remote debugging over the network.
7e336ba1 10977
df08bfec
DB
109782002-03-12 David O'Brien <[email protected]>
10979
10980 * config/sparc/fbsd.mh: Fix copyright.
10981 * config/sparc/fbsd.mt: Likewise.
10982
9a57864f
RE
109832002-03-11 Richard Earnshaw <[email protected]>
10984
10985 * MAINTAINERS: Fix typo in name of gdb warnings option.
10986 (x86-64): Fix formating so that this can be parsed by awk.
10987
dd7bf85e
DJ
109882002-03-10 Daniel Jacobowitz <[email protected]>
10989
10990 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10991 * defs.h: Include "gdb/signals.h".
10992 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10993
33a0a2ac
ML
109942002-03-10 Michal Ludvig <[email protected]>
10995
10996 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 10997 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
10998 from x86-64-tdep.h
10999
dd824b04
DJ
110002002-03-10 Daniel Jacobowitz <[email protected]>
11001 Don Howard <[email protected]>
11002
11003 * mips-tdep.c (ST0_FR): Define.
11004 (mips2_fp_compat): New function, temporarily disabled.
11005 (mips_read_fp_register_single): New function.
11006 (mips_read_fp_register_double): New function.
11007 (mips_print_register): Use them.
11008 (do_fp_register_row): Likewise.
11009
6a41ff59
AC
110102002-03-09 Andrew Cagney <[email protected]>
11011
11012 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11013 approval''.
11014
4ea09c10
PS
110152002-03-08 Peter Schauer <[email protected]>
11016
11017 * stabsread.c (read_member_functions): Fix is_stub test for
11018 static member functions, improve comment.
11019
6ccc741d
RE
110202002-03-07 Richard Earnshaw <[email protected]>
11021
11022 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11023 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11024 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11025 commands that set boolean values.
11026 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11027 (arm_rdi_resume): Always initialize PC.
11028 (arm_rdi_open): Don't use rslt as a boolean.
11029 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11030 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11031 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11032 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11033
438013df
AO
110342002-03-06 Alexandre Oliva <[email protected]>
11035
11036 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11037 * configure: Rebuilt.
11038
70ed8774
SC
110392002-03-06 Stephane Carrez <[email protected]>
11040
11041 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11042 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11043
5ba2abeb
AC
110442002-03-06 Andrew Cagney <[email protected]>
11045
11046 * cli/cli-decode.c (set_cmd_completer): New function.
11047 * command.h (set_cmd_completer): Declare.
11048 * cli/cli-decode.h (set_cmd_completer): Ditto.
11049
11050 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11051 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11052 * win32-nat.c (_initialize_inftarg): Ditto.
11053 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11054 * proc-api.c (_initialize_proc_api): Ditto.
11055 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11056 * source.c (_initialize_source): Ditto.
11057 * exec.c (_initialize_exec): Ditto.
11058 * solib.c (_initialize_solib): Ditto.
11059 * top.c (init_main): Ditto.
11060 * tracepoint.c (_initialize_tracepoint): Ditto.
11061 * symfile.c (_initialize_symfile): Ditto.
11062 * printcmd.c (_initialize_printcmd): Ditto.
11063 * infcmd.c (_initialize_infcmd): Ditto.
11064 * corefile.c (_initialize_core): Ditto.
11065
f779ca99
AC
110662002-03-05 Andrew Cagney <[email protected]>
11067
11068 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11069
01a3934b
AC
110702002-03-05 Andrew Cagney <[email protected]>
11071
11072 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11073
37057839
AC
110742002-03-05 Andrew Cagney <[email protected]>
11075
11076 * NEWS: Update headings, 5.2 has branched.
11077
c6ecbae5
DJ
110782002-03-04 Daniel Jacobowitz <[email protected]>
11079
11080 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11081 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11082 (register_addr, REGISTER_RAW_SIZE): Likewise.
11083 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11084 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11085
e9f30c21
ML
110862002-03-03 Michal Ludvig <[email protected]>
11087
11088 * MAINTAINERS (x86-64): Add myself.
11089 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11090 changed value_ptr -> struct value *
11091
54394ac3
DB
110922002-03-01 David O'Brien <[email protected]>
11093
11094 * configure.host (sparc64-*-freebsd): Add.
11095 * configure.tgt: Likewise.
11096 * config/sparc/fbsd.mh: New file.
11097 * config/sparc/fbsd.mt: Likewise.
11098 * config/sparc/nm-fbsd.h: Likewise.
11099 * config/sparc/tm-fbsd.h: Likewise.
11100
bfe95955
DJ
111012002-03-01 Daniel Jacobowitz <[email protected]>
11102
11103 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11104 regformats/reg-s390x.dat.
11105
f33c6cbf
AC
111062002-03-01 Andrew Cagney <[email protected]>
11107
11108 * utils.c: Add FIXME explaining true/false problem.
11109
5ecaa7dd
AC
111102002-02-28 Andrew Cagney <[email protected]>
11111
11112 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11113
2a251cc2
MC
111142002-02-28 Michael Chastain <[email protected]>
11115
11116 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11117
6a8031a3 111182002-02-28 Daniel Jacobowitz <[email protected]>
265f716b
DJ
11119
11120 * gdbserver/linux-s390-low.c: New file.
11121 * regformats/reg-s390.dat: New file.
11122 * regformats/reg-s390x.dat: New file.
11123 * gdbserver/configure.srv: Add S/390.
11124 * gdbserver/Makefile.in: Add S/390.
11125 * configure.tgt: Enable gdbserver for S/390.
11126
ac469903
EZ
111272002-02-28 Eli Zaretskii <[email protected]>
11128
11129 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11130 first line of the doc string for "info dos", except at the end of
11131 the sentence, since the short help stops at the first period.
11132
985cb1a3
JM
111332002-02-28 Jason Merrill <[email protected]>
11134
11135 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11136
c570663e
FF
111372002-02-27 Fred Fish <[email protected]>
11138
11139 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11140 comment (dumy -> dummy).
11141
43630227
PS
111422002-02-27 Peter Schauer <[email protected]>
11143
11144 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11145
b84911e8
RB
111462002-02-27 Rodney Brown <[email protected]>
11147
11148 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11149
58caa3dc
DJ
111502002-02-27 Daniel Jacobowitz <[email protected]>
11151
11152 * gdbserver/acconfig.h: New file.
11153 * gdbserver/i387-fp.c: New file.
11154 * gdbserver/i387-fp.h: New file.
11155 * gdbserver/linux-x86-64.c: New file.
11156 * regformats/reg-x86-64.dat: New file.
11157 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11158 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11159 * gdbserver/configure.in: Add support for regsets.
11160 * gdbserver/config.in: Regenerate.
11161 * gdbserver/configure: Regenerate.
11162 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11163 * gdbserver/linux-low.h: New file.
11164 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11165 for regsets.
11166 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11167 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11168 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11169 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11170 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11171 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11172 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11173 "i387-fp.h". Add PTRACE_GETREGS and friends.
11174 * gdbserver/regcache.c (supply_register): New function.
11175 (supply_register_by_name): New function.
11176 (collect_register): New function.
11177 (collect_register_by_name): New function.
11178
93652174
DJ
111792002-02-27 Daniel Jacobowitz <[email protected]>
11180
11181 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11182 (config.status): Add configure.srv dependency.
11183 (server_h): Add config.h dependency.
11184
a02e4a61
DJ
111852002-02-27 Daniel Jacobowitz <[email protected]>
11186
11187 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11188 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11189 * gdbserver/configure.srv: Change i386-*-linux* to use
11190 reg-i386-linux.o.
11191
ce0eebec
AC
111922002-02-26 Andrew Cagney <[email protected]>
11193
11194 * x86-64-tdep.c: Re-indent. Update copyright date.
11195
82dbc5f7
AC
111962002-02-26 Andrew Cagney <[email protected]>
11197
11198 From Michal Ludvig <[email protected]>:
11199 * x86-64-tdep.c (value.h): Delete.
11200 (gdb_assert.h): Include.
11201 (x86_64_register_convert_to_virtual,
11202 x86_64_register_convert_to_raw ): Add check which lets only
11203 floating-point values to be converted.
11204 (value_push): Delete.
11205 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11206 (i386_gdbarch_init): Number of register_bytes fixed.
11207
e4621584
AC
112082002-02-26 Andrew Cagney <[email protected]>
11209
11210 * MAINTAINERS: Add x86-64 target.
11211
81a9a963
AC
112122002-02-26 Andrew Cagney <[email protected]>
11213
11214 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11215 * osfsolib.c (solib_map_sections): Ditto.
11216 * irix5-nat.c (solib_map_sections): Ditto.
11217 * corelow.c (gdb_check_format): Ditto.
11218 * symfile.c (symfile_bfd_open): Ditto.
11219 * solib.c (solib_map_sections): Ditto.
11220 Fix PR gdb/354.
7e336ba1 11221
0f017ab9
AC
112222002-02-26 Andrew Cagney <[email protected]>
11223
11224 * remote.c (_initialize_remote): By default, disable ``e'' and
11225 ``E'' step out-of-range packets.
11226
75738c29
AS
112272002-02-26 Andreas Schwab <[email protected]>
11228
11229 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11230 m68k_linux_frame_saved_pc.
11231 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11232 in_sigtramp.
11233 (SIGCONTEXT_PC_OFFSET): Remove.
11234 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11235 m68k_linux_sigtramp_saved_pc): New functions.
11236 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11237 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11238 (UCONTEXT_PC_OFFSET): Define.
11239 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11240 non-RT and RT signal trampolines.
11241
7e8ed687
RE
112422002-02-26 Richard Earnshaw <[email protected]>
11243
11244 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11245 (TARGET_NBPG, STACK_END_ADDR): Delete
11246 (VARIABLES_INSIDE_BLOCK): Delete.
11247
6972bc8b
AC
112482002-02-25 Andrew Cagney <[email protected]>
11249
11250 * utils.c (perror_with_name): Make string parameter constant.
11251 (print_sys_errmsg): Ditto.
11252 (query): Ditto.
11253 * defs.h (perror_with_name): Update.
11254 (print_sys_errmsg): Update.
11255 (query): Update.
11256
aa32f823
DJ
112572002-02-25 Daniel Jacobowitz <[email protected]>
11258
11259 From Eliot Dresselhaus <[email protected]>:
11260 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11261
19caaa45
PS
112622002-02-25 Peter Schauer <[email protected]>
11263
11264 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11265 if it already matches the current architecture from the exec file.
11266 Include arch-utils.h for gdbarch_info_init prototype.
11267 * Makefile.in (rs6000-nat.o): Update dependencies.
11268
d951901f
EZ
112692002-02-25 Eli Zaretskii <[email protected]>
11270
11271 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11272 list of exported variables.
11273
7ea81414
DJ
112742002-02-24 Daniel Jacobowitz <[email protected]>
11275
11276 * gdbserver/configure.srv: New file.
11277 * gdbserver/configure.in: Use configure.srv instead
11278 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11279 from it.
11280 * gdbserver/configure: Regenerated.
11281 * gdbserver/terminal.h: New file.
11282 * gdbserver/Makefile.in: Update for configure changes. Remove
11283 more unneeded include paths.
11284
080fe24b
AC
112852002-02-24 Andrew Cagney <[email protected]>
11286
11287 From wiz at danbala:
11288 * config/sparc/tm-sp64.h: Fix grammar and typos.
11289 Fix PR gdb/287.
11290
8605d56e
AC
112912002-02-24 Andrew Cagney <[email protected]>
11292
11293 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
11294 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11295 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11296 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
11297 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11298 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11299 * s390-tdep.c: Ditto.
92362027
AC
11300 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11301 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11302 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11303 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11304 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11305 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11306 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11307 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11308 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11309 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 11310 Fix PR gdb/378.
7e336ba1 11311
8ed32cc0
AC
113122002-02-23 Andrew Cagney <[email protected]>
11313
a3007b6f
AC
11314 * lin-thread.c: Delete file.
11315 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11316 to gdb_proc_service.h.
11317 * configure: Re-generate.
11318
50a9e2f1
AC
11319 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11320 * serial.c (serial_open): Delete check for "ocd".
11321 Fix PR gdb/349.
11322
8b6e7932
AC
11323 * Makefile.in (linux-thread.o): Delete target.
11324 * linux-thread.c: Delete file.
11325
d155c46b
AC
11326 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11327 renamed SH files to be consistent.
11328
8ed32cc0
AC
11329 * symtab.c (sort_search_symbols): Use xfree.
11330
0e18d038
RE
113312002-02-23 Richard Earnshaw <[email protected]>
11332
11333 * arm-linux-tdep.c (arm_linux_init_abi): Register
11334 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11335 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11336 definition with undef, since we don't want the sysvr4 definition.
11337 (SKIP_TRAMPOLINE_CODE): Likewise.
11338
27aac7ff
AC
113392002-02-23 Andrew Cagney <[email protected]>
11340
11341 From 2002-02-22 Alfred M. Szmidt <[email protected]>:
11342
11343 * configure.in: (AC_CHECK_FUNCS) Added test for
11344 canonicalize_file_name Regenerated.
11345 * config.in, configure: Regenerated.
11346 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11347 defined use canonicalize_file_name.
7e336ba1 11348
65a6e0ee
MC
113492002-02-23 Michael Chastain <[email protected]>
11350
11351 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11352
47b95330
AC
113532002-02-23 Andrew Cagney <[email protected]>
11354
11355 * README: Remove references to cygnus.com.
11356 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11357 dot com'' form. Remove references to cygnus.com and sourceware.
11358
696f451b
AC
113592002-02-23 Andrew Cagney <[email protected]>
11360
11361 From 2002-02-19 Paul Eggert <[email protected]>:
11362 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11363 1003.1-2001 no longer allows "head -1".
11364 * gdb/Makefile.in (version.c): Likewise.
11365 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11366 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11367 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11368
bbaca940
AC
113692002-02-23 Andrew Cagney <[email protected]>
11370
11371 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11372 * command.h (cmd_cfunc_eq): Declare.
11373 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11374
11375 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11376 ``struct cmd_list_element *''.
11377 * cli/cli-cmds.c (is_complete_command): Update. Use
11378 cmd_cfunc_eq.
11379 * top.c (execute_command): Pass the command to
11380 is_complete_command.
11381 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11382
b8b8b047
AC
113832002-02-23 Andrew Cagney <[email protected]>
11384
11385 From 2002-02-20 Martin Schwidefsky <[email protected]>:
11386 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11387 architecture defines.
11388 * s390-tdep.c (s390_gdbarch_init): Likewise.
11389
19d3fc80
RE
113902002-02-23 Richard Earnshaw <[email protected]>
11391
11392 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11393 (arm_linux_push_arguments): Likewise.
11394 (arm_linux_init_abi): Register them. Also register linux-specific
11395 call_dummy_words.
11396 (find_minsym_and_objfile): Use strcmp, not STREQ.
11397 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11398 (arm_linux_call_dummy_words): Delete declaration.
11399 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11400 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11401 declarations.
11402 (LOWEST_PC): Delete.
11403
3ab13650
PS
114042002-02-23 Peter Schauer <[email protected]>
11405
11406 * maint.c (print_section_info): Do not prepend `0x' to filepos
11407 output, it will be handled by local_hex_string_custom.
11408
19d3fc80 114092002-02-23 Richard Earnshaw <[email protected]>
85ae890c
RE
11410
11411 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11412 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11413 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11414
d85a5daf
JB
114152002-02-22 Jim Blandy <[email protected]>
11416
11417 Indicate that the bcache functions don't change the strings
11418 they're passed.
11419 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11420 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11421
eeb25b8a
PM
114222002-02-22 Pierre Muller <[email protected]>
11423
11424 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11425
6badb179
CF
114262002-02-21 Christopher Faylor <[email protected]>
11427
11428 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11429 find the complete path to a loaded DLL.
11430
e8717518
FF
114312002-02-21 Fred Fish <[email protected]>
11432
11433 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11434 that marks the end of the range of a function, enter a line number
11435 entry that has a line number of zero and a PC offset that matches
11436 the end of the function. This starts a range of PC's for which no
11437 line number information is known.
11438 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11439 PC's for which no line number info is found (line number is zero)
11440 then we didn't find any valid line information.
11441 * symtab.h: Document use of zero line number entry.
11442
9abe5450
EZ
114432002-02-21 Elena Zannoni <[email protected]>
11444
11445 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11446 (have_ptrace_getvrregs): Define for run time checks.
11447 (gdb_vrregset_t): New type for Altivec register handling.
11448 (fetch_register, store_register): Fetch/store altivec register
11449 when needed.
11450 (fetch_altivec_register, store_altivec_register): New functions.
11451 (supply_vrregset, fill_vrregset): New functions.
11452 (fetch_altivec_registers, store_altivec_registers): New functions.
11453 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11454 registers as well.
11455
aaa38bb5
AJ
114562002-02-21 Jiri Smid <[email protected]>
11457
11458 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11459
b34db576
RE
114602002-02-21 Richard Earnshaw <[email protected]>
11461
11462 * Makefile.in (armnbsd-nat.o): Update dependencies.
11463 * armnbsd-nat.c (supply_gregset): New function. Common code to
11464 supply the integer register set.
11465 (supply_fparegset): New function. Similar for FPA registers.
11466 (fetch_regs, fetch_fp_regs): Use them.
11467 (fetch_core_registers): Likewise.
11468 (fetch_elfcore_registers): New function.
11469 (arm_netbsd_elfcore_fns): New core-file type specification.
11470 (_initialize_arm_netbsd_nat): Register it.
11471
3e56fc4b
RE
114722002-02-21 Richard Earnshaw <[email protected]>
11473
11474 * armnbsd-nat.c: Include gdbcore.h.
11475 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11476 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11477 'void' to declaration, to shut up ARI.
11478 (fetch_core_registers): Make static. Rewrite using supply_register.
11479 (arm_netbsd_core_fns): New core-file type specification.
11480 (_initialize_arm_netbsd_nat): New function.
11481
097f6b0b
CF
114822002-02-21 Christopher Faylor <[email protected]>
11483
11484 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11485 value.
11486
c914e0cc
CF
114872002-02-20 Christopher Faylor <[email protected]>
11488
11489 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11490 fails.
11491
385fa495
DJ
114922002-02-20 Daniel Jacobowitz <[email protected]>
11493
11494 * jv-exp.y (parse_number): Change type of implicit longs
11495 to builtin_type_uint64.
11496
e5f1222d
DJ
114972002-02-20 Daniel Jacobowitz <[email protected]>
11498
11499 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11500 to be an integer instead of a `union wait'.
11501
75c9abc6
DJ
115022002-02-20 Daniel Jacobowitz <[email protected]>
11503
11504 * mips-linux-nat.c: Call the operating system GNU/Linux.
11505 * mips-linux-tdep.c: Likewise.
11506 * mips-tdep.c: Likewise.
11507
551792a5
DJ
115082002-02-20 Daniel Jacobowitz <[email protected]>
11509
11510 Fix PR gdb/265.
11511 * jv-exp.y (parse_number): Handle 64-bit integers.
11512
ee6e2b82
DJ
115132002-02-20 Daniel Jacobowitz <[email protected]>
11514
11515 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11516 AC_STDC_HEADERS to AC_HEADER_STDC.
11517 * gdbserver/configure: Regenerated.
11518
a48442a0
RE
115192002-02-20 Richard Earnshaw <[email protected]>
11520
11521 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11522 is defined.
11523 * sparc-tdep.c (get_longjmp_target): Likewise.
11524
fe419ffc
RE
115252002-02-20 Richard Earnshaw <[email protected]>
11526
11527 * News: Add news about ARM and Multi-arch. Mention the new target
11528 arm*-*-netbsd*.
11529
5832ed7e
JB
115302002-02-19 Jim Blandy <[email protected]>
11531
11532 * stabsread.c (error_type_complaint): Improve error message.
11533
84563040
DJ
115342002-02-19 Daniel Jacobowitz <[email protected]>
11535
11536 * gdbserver/README: Update documentation.
11537 * gdbserver/configure.in: Update configury to match documentation.
11538 * gdbserver/Makefile.in: Likewise.
11539 * gdbserver/configure: Regenerated.
11540 * gdbserver/aclocal.m4: New file, generated by aclocal.
11541 * gdbserver/config.in: New file, generated by autoheader.
11542
375fd65b
RE
115432002-02-19 Richard Earnshaw <[email protected]>
11544
11545 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11546 armnbsd-nat.c.
11547
08216dd7
RE
115482002-02-19 Richard Earnshaw <[email protected]>
11549
11550 * arm-tdep.h (enum arm_float_model): New enum.
11551 (struct gdbarch_tdep): Add fp_model.
11552 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11553 up floating-point conversions until we know the floating-point model
11554 in use by the inferior. Don't complain about being unable to
11555 determine the ABI of the inferior when we don't have one.
11556 (arm_extract_return_value): Support different floating-point models.
11557 (arm_store_return_value): Likewise.
aaa38bb5 11558 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11559 ARM_FLOAT_SOFT.
11560 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11561
65d6d66a
PS
115622002-02-19 Peter Schauer <[email protected]>
11563
11564 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11565 of ``current_gdbarch''.
11566
47221191
RE
115672002-02-19 Richard Earnshaw <[email protected]>
11568
11569 * armnbsd-nat.c : ANSIfy all function declarations.
11570 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11571 (fetch_inferior_registers): Re-implement in terms of above.
11572 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11573 (store_inferior_registers): Re-implement in terms of above.
11574
fdf39c9a
RE
115752002-02-19 Richard Earnshaw <[email protected]>
11576
aaa38bb5 11577 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11578 kernel.
11579 * arm-linux-tdep.c: Likewise.
11580 * config/arm/tm-linux.h: Likewise.
11581
93247f88
RE
115822002-02-19 Richard Earnshaw <[email protected]>
11583
11584 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11585 * config/arm/nbsd.mt (TM_FILE): Delete.
11586 * config/arm/tm-nbsd.h: Delete.
11587
d7b486e7
RE
115882002-02-19 Richard Earnshaw <[email protected]>
11589
11590 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11591 Initialize CALL_DUMMY_LENGTH.
11592
41d39a95
RE
115932002-02-19 Richard Earnshaw <[email protected]>
11594
11595 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11596 function.
11597 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11598 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11599 defines one thing and that is incorrect for this port.
11600 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11601
e1195560
PM
116022002-02-18 Pierre Muller <[email protected]>
11603
11604 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11605
c1748f97
PM
116062002-02-18 Pierre Muller <[email protected]>
11607
11608 * win32-nat.c (display_selector): New function. Displays information
11609 about the information returned by GetThreadSelectorEntry API function.
11610 (display_selectors): New function. Displays the infomation of
11611 the selector given as argument, or of CS, DS ans FS selectors
11612 if no argument is given.
11613 ( _initialize_inftarg): Add "w32" as info prefix command.
11614 Add "info w32 selector" as command calling display_selectors.
11615
e41e6bbf
PM
116162002-02-19 Pierre Muller <[email protected]>
11617
11618 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11619 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11620 if not defined.
11621
0d3a9f48
RE
116222002-02-18 Richard Earnshaw <[email protected]>
11623
11624 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11625
3fb4b924
RE
116262002-02-18 Richard Earnshaw <[email protected]>
11627
11628 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11629 (arm_fix_call_dummy): Call it.
11630 (arm_call_dummy_breakpoint_offset): Delete.
11631 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11632 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11633
7f55af32
AC
116342002-02-18 Andrew Cagney <[email protected]>
11635
11636 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11637 Default to func_frame_chain_valid.
11638 * gdbarch.h, gdbarch.c: Re-generate.
11639 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11640
05f13b9c
EZ
116412002-02-18 Elena Zannoni <[email protected]>
11642
11643 * ppc-linux-nat.c: Update copyright.
11644 (fetch_register, store_register): Add tid parameter, don't compute
11645 tid here.
11646 (fetch_ppc_registers, store_ppc_registers): Add tid
11647 parameter. Pass it along to callees.
11648 (fetch_inferior_registers, store_inferior_registers): Compute tid
11649 here, and pass it to calleed functions.
11650 (fill_gregset, supply_fpregset): Clean up formatting.
11651
d7afb4c9
RE
116522002-02-18 Richard Earnshaw <[email protected]>
11653
11654 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11655 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11656
9df628e0
RE
116572002-02-18 Richard Earnshaw <[email protected]>
11658
11659 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11660 * gdbarch.c gdbarch.h: Regenerate.
11661 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11662 function.
11663 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11664 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11665 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11666
11667 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11668 * arm-tdep.c (arm_get_longjmp_target): New function.
11669 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11670 this to a positive value register arm_get_longjmp_target as the
11671 longjmp handler.
11672 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11673 (arm_linux_init_abi): Set up longjmp description in tdep.
11674 * armnbsd-nat.c (get_longjmp_target): Delete.
11675 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11676 description in tdep.
11677 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11678 (get_longjmp_target): Delete declaration.
11679 (GET_LONGJMP_TARGET): Delete.
11680 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11681 (GET_LONGJMP_TARGET): Delete.
11682
57bc8964
KB
116832002-02-17 Kevin Buettner <[email protected]>
11684
11685 From Peter Schauer <[email protected]>:
11686 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11687 of ``current_gdbarch''.
11688
83d31a92
TT
116892002-02-17 Tom Tromey <[email protected]>
11690
11691 * cli/cli-cmds.c (compare_strings): New function.
11692 (complete_command): Only print each unique item once.
11693 * completer.h (complete_line): Declare.
11694 * completer.c (complete_line): New function.
11695 (line_completion_function): Use it.
11696
17ef5d92
AC
116972002-02-16 Andrew Cagney <[email protected]>
11698
11699 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11700 * gdbarch.h, gdbarch.c: Re-generate.
11701
491b8946
DJ
117022002-02-16 Daniel Jacobowitz <[email protected]>
11703
11704 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11705
117062002-02-16 Daniel Jacobowitz <[email protected]>
11707
11708 From Peter Schauer <[email protected]>:
11709 * valops.c (value_arg_coerce): Don't take the address of a reference
11710 to convert an argument to a reference.
11711
dfe7f3ac
CF
117122002-02-15 Christopher Faylor <[email protected]>
11713
11714 * win32-nat.c (get_image_name): New function.
11715 (handle_load_dll): Use get_image_name function.
11716 (get_child_debug_event): Avoid registering debug events until possibly
11717 execed process is started.
11718 (child_create_inferior): Allow invocation via shell so that command
11719 line redirection, etc. works ok.
11720 (_initialize_inftarg): Add new command: "set shell" to control whether
11721 a shell is used to start a process.
11722
1d33e73a
DJ
117232002-02-15 Daniel Jacobowitz <[email protected]>
11724
11725 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11726 instead of find_register_by_number.
11727 (cannot_store_register): Likewise.
11728
48cd0caa
PM
117292002-02-14 Pierre Muller <[email protected]>
11730
aaa38bb5 11731 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
11732 fprintf_unfiltered (gdb_stderr, ...).
11733
8656e7d8
DJ
117342002-02-15 Daniel Jacobowitz <[email protected]>
11735
11736 * gdbserver/gdbserver.1: Document --attach.
11737
66e810cd
RE
117382002-02-15 Richard Earnshaw <[email protected]>
11739
11740 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11741 descriptions.
11742 * arm-tdep.c (arm_default_arm_le_breakpoint)
11743 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11744 (arm_default_thumb_be_breakpoint): New. Initialize them from
11745 traditional breakpoint defines.
11746 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11747 (arm_gdbarch_init): Initialize new breakpoint variables.
11748 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11749 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11750 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11751 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11752 code out to ...
11753 (arm_netbsd_init_abi_common): ... here; new function.
11754 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11755 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11756 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11757 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11758
97e03143
RE
117592002-02-15 Richard Earnshaw <[email protected]>
11760
11761 * arm-tdep.h (enum arm_abi): New enum.
11762 (struct gdbarch_tdep): New structure.
11763 (LOWEST_PC): Provide a default.
11764 (arm_gdbarch_register_os_abi): Declare new function.
11765 * arm-tdep.c (arm_abi_names): New array.
11766 (process_note_abi_tag_sections): New function.
11767 (get_elfosabi): New function.
11768 (arm_gdbarch_register_os_abi): New function.
11769 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11770 support for that ABI has been built in, then call the appropriate
11771 configuration routine. Use gdbarch_num_regs() to get the number
11772 of registers.
11773 (arm_dump_tdep): New function.
11774 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11775 place-holder functions.
11776 (_initialize_arm_tdep): Register them.
11777 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11778
11779 * armnbsd-tdep.c: New file.
11780 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11781 * config/arm/nbsd.mt (TDEPFILES): Add it.
11782 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11783
11784 * armnbsd-nat.c: Include regcache.h.
11785 * Makefile.in (armnbsd-nat.o): Update dependency list.
11786
11787 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11788
ad68be46
DJ
117892002-02-14 Daniel Jacobowitz <[email protected]>
11790
11791 * gdbserver/Makefile.in: Fix typos in target rules.
11792
003d6d1d
DJ
117932002-02-14 Daniel Jacobowitz <[email protected]>
11794
aaa38bb5 11795 Fix part of PR gdb/267.
003d6d1d
DJ
11796 * linespec.c (find_methods): Handle constructors specially for now.
11797
6b230f1b
CV
117982002-02-14 Corinna Vinschen <[email protected]>
11799
11800 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11801 handling.
11802 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11803 standard_coerce_float_to_double().
11804
1ea98d12
CF
118052002-02-14 Christopher Faylor <[email protected]>
11806
11807 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11808 GDBINIT_FILENAME.
11809
dd47e6fd
EZ
118102002-02-14 Elena Zannoni <[email protected]>
11811
11812 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11813 find_variant_by_name, because it confuses the multiarch
11814 framework. Return NULL if there isn't an architecture with the
11815 user supplied name, instead of forcing a different one without
11816 recording the change with the multiarch machinery.
11817 (find_variant_by_name): Delete.
11818
d7e39b9e
PS
118192002-02-14 Peter Schauer <[email protected]>
11820
11821 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11822 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11823
76e42a4f
MH
118242002-02-13 Martin M. Hunt <[email protected]>
11825
aaa38bb5 11826 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
11827 print_frame_info_listing_hook, set current_source_symtab.
11828
0a30fbc4
DJ
118292002-02-14 Daniel Jacobowitz <[email protected]>
11830
11831 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11832 and remove unused $(INCLUDE_DIR).
11833 Add regcache.c to OBS.
11834 Add generated register protocol files to clean target.
11835 Update dependencies for new objects, obsolete old target code.
11836
11837 * gdbserver/linux-low.c: Remove all platform-specific code to
11838 new files. Remove various dead code. Update to use regcache
11839 functionality.
11840 * gdbserver/remote-utils.c (fromhex): Add return statement
11841 to quiet warning.
11842 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11843 constant.
11844 (input_interrupt): Add integer parameter to match prototype
11845 of a signal handler.
11846 (outreg): Use register_data ().
11847 (prepare_resume_reply): Use gdbserver_expedite_regs.
11848 * gdbserver/server.c (main): Dynamically allocate own_buf because
11849 PBUFSIZ is no longer constant. Use registers_to_string () and
11850 registers_from_string ().
11851 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11852 for error (), fatal (), and warning (). Update definition of
11853 PBUFSIZ to use regcache functionality. Add include guard.
11854 * gdbserver/utils.c (fatal): Add missing ``const''.
11855 (warning): New function.
11856
11857 * regformats/regdat.sh: Include "regcache.h" in generated files.
11858 Provide init_registers () function.
11859 * regformats/regdef.h: Add prototype for set_register_cache ().
11860 Add include guard.
11861
11862 * gdbserver/linux-arm-low.c: New file.
11863 * gdbserver/linux-i386-low.c: New file.
11864 * gdbserver/linux-ia64-low.c: New file.
11865 * gdbserver/linux-m68k-low.c: New file.
11866 * gdbserver/linux-mips-low.c: New file.
11867 * gdbserver/linux-ppc-low.c: New file.
11868 * gdbserver/linux-sh-low.c: New file.
11869
11870 * gdbserver/regcache.c: New file.
11871 * gdbserver/regcache.h: New file.
11872
11873 * gdbserver/low-linux.c: Removed obsolete file.
11874
4cc841d0
DJ
118752002-02-14 Daniel Jacobowitz <[email protected]>
11876
11877 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11878 * config/i386/linux.mt: Likewise.
11879 * config/ia64/linux.mt: Likewise.
11880 * config/m68k/linux.mh: Likewise.
11881 * config/powerpc/linux.mh: Likewise.
11882 * config/mips/linux.mt: Likewise.
11883
11884 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11885
11886 * config/i386/i386lynx.mh: Mark gdbserver variables
11887 as (currently) obsolete for this target.
11888 * config/i386/nbsd.mt: Likewise.
11889 * config/i386/nbsdelf.mt: Likewise.
11890 * config/m32r/m32r.mt: Likewise.
11891 * config/m68k/m68klynx.mh: Likewise.
11892 * config/m68k/nbsd.mt: Likewise.
11893 * config/m68k/sun3os4.mh: Likewise.
11894 * config/mips/vr5000.mt: Likewise.
11895 * config/ns32k/nbsd.mt: Likewise.
11896 * config/pa/hppabsd.mh: Likewise.
11897 * config/pa/hppaosf.mh: Likewise.
11898 * config/powerpc/nbsd.mt: Likewise.
11899 * config/rs6000/rs6000lynx.mh: Likewise.
11900 * config/s390/s390.mt: Likewise.
11901 * config/s390/s390x.mt: Likewise.
11902 * config/sparc/sparclynx.mh: Likewise.
11903 * config/sparc/sun4os4.mh: Likewise.
11904 * config/i386/x86-64linux.mt: Likewise.
11905 * config/sparc/linux.mh: Likewise.
11906
a85f51e7
DJ
119072002-02-14 Daniel Jacobowitz <[email protected]>
11908
11909 * configure.tgt: Configure gdbserver only for known working
11910 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11911 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11912 SUBDIRS if it is configured. Update comment for ${nativefile}.
11913 * configure: Regenerated.
11914
65554fef
MS
119152002-02-13 Michael Snyder <[email protected]>
11916
670a52db
MS
11917 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11918
6dbdc4a3
MS
11919 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11920 (default_gcore_mach): Just return 0, work around a problem in bfd.
11921 (default_gcore_target): OK to return NULL if exec_bfd is null.
11922 (make_mem_sec): Use a cast, avoid a warning.
11923
11924 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 11925 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
11926 sizeof (host pointer) != sizeof (target pointer)).
11927 (procfs_make_note_section): Avoid overflow in psargs string.
11928
aaa38bb5 11929 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
11930 implementation return an error.
11931
119322002-02-13 Rodney Brown <[email protected]>
11933
11934 * procfs.c (procfs_make_note_section): Provide a default definition
11935 (for alpha-dec-osf4.0f). Fix typos.
11936
1e4d76e7
EZ
119372002-02-13 Elena Zannoni <[email protected]>
11938
11939 * linux-proc.c: Add include of regcache.h.
11940 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11941
b6d1a1d5
AC
119422002-02-13 Andrew Cagney <[email protected]>
11943
11944 From 2002-01-18 Greg McGary <[email protected]>:
aaa38bb5
AJ
11945 * memattr.c (create_mem_region): Disallow useless empty region.
11946 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 11947 non-overlapping.
b6d1a1d5 11948
6c6ea35e
MC
119492002-02-13 Michael Chastain <[email protected]>
11950
11951 * defs.h: Kill CONST_PTR.
11952 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11953 * c-lang.c (c_builtin_types): Likewise.
11954 * ch-lang.c (ch_builtin_types): Likewise.
11955 * f-lang.c (f_builtin_types): Likewise.
11956 * language.c (unknown_builtin_types): Likewise.
11957 * m2-lang.c (m2_builtin_types): Likewise.
11958 * p-lang.c (pascal_builtin_types): Likewise.
11959 * scm-lang.c (c_builtin_types): Likewise.
11960
3e0b0f48
KS
119612002-02-13 Keith Seitz <[email protected]>
11962
11963 * arm-tdep.h (arm_get_next_pc): Add declaration.
11964
67255d04
RE
119652002-02-13 Richard Earnshaw <[email protected]>
11966
11967 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11968 with other related struct-returning functions.
11969 (arm_extract_struct_value_address): New function.
11970 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11971 initialize float_format, double_format and long_double_format as
11972 appropriate to the endianness of the target.
11973 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11974 (arm_use_struct_convention): Delete declaration.
11975 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11976
079777f6
KS
119772002-02-13 Keith Seitz <[email protected]>
11978
11979 * defs.h (core_addr_to_string_nz): New function.
11980
34588f23
MK
119812002-02-13 Mark Kettenis <[email protected]>
11982
11983 Apply missing bits of 2002-01-15 patch.
11984 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11985 (fill_fpregset): Use i387_fill_fsave.
11986
49b563f9
KS
119872002-02-12 Keith Seitz <[email protected]>
11988
49b563f9
KS
11989 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11990 (core_addr_to_string_nz): New function.
11991
aeb98c60
RE
119922002-02-11 Richard Earnshaw <[email protected]>
11993
11994 * arm-linux-nat.c: Really include arm-tdep.h.
11995 * config/arm/tm-linux.h (struct type, struct value): Declare.
11996
65554fef
MS
119972002-02-11 Michael Snyder <[email protected]>
11998
11999 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12000 (gcore section): Ifdef for Solaris and Unixware only.
12001 (procfs_do_thread_registers): Unixware needs one lwpstatus
12002 per thread (not one prstatus or pstatus).
12003 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12004 not over all gdb threads. For unixware, call elfcore_write_pstatus
12005 once before iterating over threads.
12006
34e8f22d
RE
120072002-02-11 Richard Earnshaw <[email protected]>
12008
12009 * arm-tdep.h: New file.
12010 * arm-tdep.c: Include arm-tdep.h.
12011 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12012 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12013 (arm_print_float_info, arm_register_type, convert_to_extended)
12014 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12015 (arm_extract_return_value, arm_register_name): Make static.
12016 (arm_software_single_step): Similarly. Fix types in declaration.
12017 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12018 (arm_store_return_value, arm_store_struct_return): New functions.
12019 (arm_gdbarch_init): Register the above functions. Also register
12020 call_dummy_start_offset, sizeof_call_dummy_words,
12021 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12022 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 12023 max_register_virtual_size, register_size. Set up
34e8f22d
RE
12024 prologue_cache.saved_regs here, rather than ...
12025 (_initialize_arm_tdep): ... here.
12026 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12027 declarations.
12028 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12029 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12030 (arm_print_float_info, arm_register_type, convert_to_extended)
12031 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12032 (arm_extract_return_value, arm_register_name): Delete declarations.
12033 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12034 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12035 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12036 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12037 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12038 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12039 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12040 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12041 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12042 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12043 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12044 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12045 interface.
12046 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12047 * remote-rdi.c remote-rdp.c: Likewise.
12048 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12049 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12050 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12051 definition.
12052
12053 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12054 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12055 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12056 from non-ARM_ prefixed definitions.
12057 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12058 all uses of above.
12059 * remote-rdi.c remote-rdp.c: Likewise.
12060 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12061
148754e5
RE
120622002-02-11 Richard Earnshaw <[email protected]>
12063
12064 * arm-tdep.c (arm_frameless_function_invocation)
12065 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12066 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12067 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12068 (arm_pop_frame, arm_get_next_pc): Make static.
12069 (arm_gdbarch_init): Register above in gdbarch structure.
12070 (arm_read_fp): Renamed from arm_target_read_fp.
12071 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12072 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12073 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12074 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12075 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12076 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12077 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
12078 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12079 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12080 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12081 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 12082
434d2d4f
DJ
120832002-02-10 Daniel Jacobowitz <[email protected]>
12084
12085 * symtab.c (compare_search_syms): New function.
12086 (sort_search_symbols): New function.
12087 (search_symbols): Sort symbols after searching rather than
12088 before.
12089
55241689
AC
120902002-02-10 Andrew Cagney <[email protected]>
12091
12092 * NEWS: Linux -> GNU/Linux.
12093
028c194b
AC
120942002-02-10 Andrew Cagney <[email protected]>
12095
12096 * gdbarch.sh: For for level one methods, disallow a definition
12097 when partially multi-arched. Add comments explaining rationale.
12098 * gdbarch.h: Re-generate.
12099
6acf50cd
AC
121002002-02-10 Andrew Cagney <[email protected]>
12101
12102 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12103 multi-arch partial.
aaa38bb5 12104
50248794
AC
121052002-02-10 Andrew Cagney <[email protected]>
12106
12107 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12108 field. Use diff -u.
12109 * gdbarch.c: Re-generate.
12110
c30e0066
AC
121112002-02-10 Andrew Cagney <[email protected]>
12112
9b56c5f3 12113 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
12114 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12115 partial.
12116
6e6d6484
AC
121172002-02-10 Andrew Cagney <[email protected]>
12118
12119 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12120 multi-arch partial.
12121 (PUSH_ARGUMENTS): Switch to using predefault.
12122 * gdbarch.c: Regenerate.
12123
c203844d
AC
121242002-02-10 Andrew Cagney <[email protected]>
12125
12126 * valops.c (PUSH_ARGUMENTS): Delete definition.
12127 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12128 partial. Default to default_push_arguments.
12129 * gdbarch.h, gdbarch.c: Regenerate.
12130
b5a2688f
AC
121312002-02-09 Andrew Cagney <[email protected]>
12132
12133 * defs.h (throw_exception): Rename return_to_top_level. Update
12134 comments.
12135 * utils.c (error_stream, internal_verror, quit): Ditto.
12136 * top.c (throw_exception, catcher): Ditto.
12137 * sparclet-rom.c (sparclet_load): Ditto.
12138 * remote.c (interrupt_query, minitelnet): Ditto.
12139 * remote-sds.c (interrupt_query): Ditto.
12140 * remote-mips.c (mips_error, mips_kill): Ditto.
12141 * ocd.c (interrupt_query): Ditto.
12142 * monitor.c (monitor_interrupt_query): Ditto.
12143 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12144 * target.h: Update comment.
aaa38bb5 12145
b5a2688f 12146 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 12147
2fa5c1e0
AC
121482002-02-09 Andrew Cagney <[email protected]>
12149
12150 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12151 default_double_format.
12152 * gdbarch.h, gdbarch.c: Re-generate.
12153 * findvar.c (floatformat_unknown): Delete variable definition.
12154 * doublest.h (floatformat_unknown): Delete variable declaration.
12155
da966255
JB
121562002-02-09 Jim Blandy <[email protected]>
12157
12158 * stabsread.c (read_type): Add code to parse Sun's syntax for
12159 prototyped function types.
12160
123a4891
AC
121612002-02-09 Andrew Cagney <[email protected]>
12162
12163 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12164 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12165
fb39c8f3
PS
121662002-02-09 Peter Schauer <[email protected]>
12167
12168 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12169 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12170 now _initialize_xcoffsolib gets called again and overrides the
12171 commands from solib.c in a native configuration.
12172
0b87a11d
MK
121732002-02-09 Mark Kettenis <[email protected]>
12174
12175 * doublest.c (store_typed_floating): Don't try to return a value.
12176 Fixes PR gdb/290.
12177
bdc2fc72
JB
121782002-02-08 Jim Blandy <[email protected]>
12179
12180 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12181 is prototyped and has no arguments, print its argument list as
12182 `(void)'.
12183
da69bbcf
CD
121842002-02-08 Chris Demetriou <[email protected]>
12185
12186 * MAINTAINERS (write-after-approval): Add myself.
12187 (paper-trail): I've escaped!
aaa38bb5 12188
b69571f5
CF
121892002-02-08 Christopher Faylor <[email protected]>
12190
12191 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12192 changes.
12193 (_initialize_check_for_gdb_ini): Ditto.
12194
f6871398
MH
121952002-02-08 Martin M. Hunt <[email protected]>
12196
12197 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12198 xaprintf -> xasprintf.
12199
4e52d31c
PM
122002002-02-08 Pierre Muller <[email protected]>
12201
12202 * win32-nat.c: Remove use of printf and sprintf functions.
12203
39bbf761
RE
122042002-02-08 Richard Earnshaw <[email protected]>
12205
12206 * arm-tdep.c (arm_frame_chain_valid): Make static.
12207 (arm_push_arguments): Likewise.
12208 (arm_gdbarch_init): New function.
12209 (_initialize_arm_tdep): Call it.
12210 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12211 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12212 (FRAME_CHAIN_VALID): Delete.
12213 (arm_frame_chain_valid): Delete declaration.
12214 (PUSH_ARGUMENTS): Delete.
12215 (arm_push_arguments): Delete declaration.
12216 (CALL_DUMMY_P): Delete.
12217
9c9532c9
CV
122182002-02-08 Andrew Cagney <[email protected]>
12219 Corinna Vinschen <[email protected]>
12220
12221 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12222 on builtin float types.
12223
4e8f7a8b
DJ
122242002-02-08 Daniel Jacobowitz <[email protected]>
12225
12226 * utils.c: Include <curses.h> before "bfd.h".
12227 * tui/tui-hooks.c: Likewise.
12228 * tui/tui.c: Likewise.
12229 * tui/tuiCommand.c: Likewise.
12230 * tui/tuiData.c: Likewise.
12231 * tui/tuiDataWin.c: Likewise.
12232 * tui/tuiDisassem.c: Likewise.
12233 * tui/tuiGeneralWin.c: Likewise.
12234 * tui/tuiIO.c: Likewise.
12235 * tui/tuiLayout.c: Likewise.
12236 * tui/tuiRegs.c: Likewise.
12237 * tui/tuiSource.c: Likewise.
12238 * tui/tuiSourceWin.c: Likewise.
12239 * tui/tuiStack.c: Likewise.
12240 * tui/tuiWin.c: Likewise.
12241
cd4bffcf
EZ
122422002-02-07 Elena Zannoni <[email protected]>
12243
12244 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12245 to include space for pseudoregs as well. Update loops accordingly.
12246 (sh_fp_frame_init_saved_regs): Ditto.
12247 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12248
26806ce2
AC
122492002-02-07 Andrew Cagney <[email protected]>
12250
12251 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12252 Add Richard Earnshaw to Arm maintainers.
12253
97fdab62
AC
122542002-02-07 Andrew Cagney <[email protected]>
12255
a6b98203
AC
12256 * defs.h (warning_begin): Delete declaration.
12257
97fdab62
AC
12258 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12259 Delete macro.
12260
78b29b40
MS
122612002-02-07 Michael Snyder <[email protected]>
12262
aaa38bb5 12263 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
12264 Logic bug, remove misplaced else.
12265
d8849953
KD
122662002-02-07 Klee Dienes <[email protected]>
12267
12268 * fork-inferior.c (fork_inferior): Add '!' to the list of
12269 characters that need to be quoted when building a string for the
12270 shell. Quote '!' specifically with a backslash, since CSH chokes
12271 when trying to evaluate "str!str".
aaa38bb5 12272
095778a0
NC
122732002-02-06 Nick Clifton <[email protected]>
12274
12275 * rdi-share/host.h: Only provide a typedef for bool if it is not
12276 defined.
12277
1900040c
MS
122782002-02-04 Michael Snyder <[email protected]>
12279
12280 * breakpoint.h (enum bptype): Add new overlay event bp type.
12281 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 12282
1900040c
MS
12283 * breakpoint.c (create_internal_breakpoint): New function.
12284 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12285 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12286 (create_thread_event_breakpoint): Ditto.
12287 (create_solib_event_breakpoint): Ditto.
12288 (create_overlay_event_breakpoint): New function.
12289 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12290 (update_breakpoints_after_exec): Delete and re-initialize
12291 overlay event breakpoints after an exec. Add FIXME comment
12292 about longjmp breakpoint.
12293 (print_it_typical): Ignore overlay event breakpoints.
12294 (print_one_breakpoint): Ditto.
12295 (mention): Ditto.
12296 (bpstat_what): Do not stop for overlay event breakpoints.
12297 (delete_breakpoint): Don't delete overlay event breakpoints.
12298 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12299 (breakpoint_re_set): Re-create overlay event breakpoint.
12300
12301 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12302 (overlay_manual_command): Disable overlay breakpoints.
12303 (overlay_off_command): Disable overlay breakpoints.
12304
082fc60d
RE
123052002-02-06 Richard Earnshaw <[email protected]>
12306
12307 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12308 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12309 to here from config/tm-arm.h.
12310 (coff_sym_is_thumb): Make static.
12311 (arm_elf_make_msymbol_special): New function.
12312 (arm_coff_make_msymbol_special): New function.
12313 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12314 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12315 (coff_sym_is_thumb): Delete declaration.
12316 (arm_elf_make_msymbol_special): Declare.
12317 (arm_coff_make_msymbol_special): Declare.
12318 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12319 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12320
039c5766
RE
123212002-02-06 Richard Earnshaw <[email protected]>
12322
12323 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12324
123252002-02-06 Richard Earnshaw <[email protected]>
12326
12327 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12328 * gdbarch.c gdbarch.h: Regenerate.
12329 * arch-utils.c (default_print_float_info): New function.
12330 * arch-utils.h (default_print_float_info): Prototype it.
12331 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12332 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12333 (PRINT_FLOAT_INFO): Document it.
12334
12335 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12336 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12337 (PRINT_FLOAT_INFO): Define.
12338
58fa08f0
PM
123392002-02-06 Pierre Muller <[email protected]>
12340
aaa38bb5 12341 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
12342 Add typecast to sprintf argument to suppress a warning.
12343
7393af7c
PM
123442002-02-05 Pierre Muller <[email protected]>
12345
58fa08f0 12346 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
12347 to allow easier handling of pass state.
12348 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12349 that gives exception name and address.
12350 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 12351 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 12352 exceptions added.
aaa38bb5
AJ
12353 (child_continue): Correctly report continue_status.
12354 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 12355 TARGET_SIGNAL_0 (new default value).
aaa38bb5 12356 (child_resume): consider sig argument passed to decide if
7393af7c
PM
12357 the exception should be passed to debuggee or not.
12358
6af4589c
MS
123592002-02-05 Michael Snyder <[email protected]>
12360
12361 * regcache.c (fetch_register): Call target_fetch_register
12362 only if we don't call FETCH_PSEUDO_REGISTER.
12363 (store_register): Call target_store_register only if we
12364 don't call STORE_PSEUDO_REGISTER.
12365
a2cf933a
EZ
123662002-02-05 Elena Zannoni <[email protected]>
12367
12368 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12369 ELF_MAKE_MSYMBOL_SPECIAL.
12370 * gdbarch.c, gdbarch.h: Regenerate.
12371 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12372 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12373 * elfread.c (elf_symtab_read): Compile use of
12374 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12375 multiarched.
12376 * coffread.c (coff_symtab_read): Ditto, for
12377 COFF_MAKE_MSYMBOL_SPECIAL.
12378
6bb7be43
JB
123792002-02-05 Jim Blandy <[email protected]>
12380
12381 * solib-svr4.c (svr4_truncate_ptr): New function.
12382 (svr4_relocate_section_addresses): Do the address arithmetic with
12383 the appropriate truncation for target addresses, even when
12384 CORE_ADDR is larger than a target address.
12385
e18651ec
DJ
123862002-02-05 Daniel Jacobowitz <[email protected]>
12387
12388 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12389 to (int *).
12390
6b2725be
DJ
123912002-02-05 Daniel Jacobowitz <[email protected]>
12392
12393 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12394 code.
12395
fca9e603
DJ
123962002-02-05 Daniel Jacobowitz <[email protected]>
12397
12398 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12399
6c537a52
DJ
124002002-02-05 Daniel Jacobowitz <[email protected]>
12401
12402 * gdbserver/linux-low.c: Remove unused include files.
12403
d844cde6
DJ
124042002-02-05 Daniel Jacobowitz <[email protected]>
12405
12406 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12407 (read_inferior_memory): Use it.
12408 (write_inferior_memory): Likewise.
12409
d07c63e7
DJ
124102002-02-05 Daniel Jacobowitz <[email protected]>
12411
12412 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12413 grubbing through sys_errlist.
12414
da6d8c04
DJ
124152002-02-05 Daniel Jacobowitz <[email protected]>
12416
12417 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12418
5b421780
PM
124192002-02-04 Pierre Muller <[email protected]>
12420 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12421
9f60d481
AC
124222002-02-04 Andrew Cagney <[email protected]>
12423
12424 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12425 (do_sfunc, set_cmd_sfunc): New functions.
12426
12427 * command.h (struct cmd_list_element): Add field func.
12428 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12429 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12430 * cli/cli-decode.h: Ditto.
12431
12432 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12433 (help_all, help_cmd_list): Ditto.
12434 (find_cmd, complete_on_cmdlist): Ditto.
12435 * top.c (execute_command): Ditto.
12436
12437 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12438 function.sfunc.
12439
12440 * infcmd.c (notice_args_read): Fix function signature.
12441
12442 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12443 * cli/cli-decode.c (add_set_cmd): Ditto.
12444 * utils.c (initialize_utils): Ditto.
12445 * maint.c (_initialize_maint_cmds): Ditto.
12446 * infrun.c (_initialize_infrun): Ditto.
12447 * demangle.c (_initialize_demangler): Ditto.
12448 * remote.c (add_packet_config_cmd): Ditto.
12449 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12450 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12451 * proc-api.c (_initialize_proc_api): Ditto.
12452 * kod.c (_initialize_kod): Ditto.
12453 * valprint.c (_initialize_valprint): Ditto.
12454 * top.c (init_main): Ditto.
12455 * infcmd.c (_initialize_infcmd): Ditto.
12456 * corefile.c (_initialize_core): Ditto.
12457 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12458 * arch-utils.c (initialize_current_architecture): Ditto.
12459 (_initialize_gdbarch_utils): Ditto.
12460 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12461
12462 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12463 * wince.c (_initialize_inftarg): Ditto.
12464 * symfile.c (_initialize_symfile): Ditto.
12465 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12466 * language.c (_initialize_language): Ditto.
12467 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12468
f9ba0717
MS
124692002-02-04 Michael Snyder <[email protected]>
12470
12471 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12472
0c74b2a7
DJ
124732002-02-04 Daniel Jacobowitz <[email protected]>
12474
12475 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12476 Add rules for building the register data files.
12477
c638789f
DJ
124782002-02-04 Daniel Jacobowitz <[email protected]>
12479
12480 * regformats/regdat.sh: Add braces to the definition of
12481 expedite_regs_${arch}.
12482
db253027
DJ
124832002-02-04 Daniel Jacobowitz <[email protected]>
12484
12485 * regformats/regdef.h (struct reg): Add comment describing the
12486 requirements for offset and size fields.
12487
206be19c
AS
124882002-02-04 Andreas Schwab <[email protected]>
12489
12490 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12491 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12492
181c1381
RE
124932002-02-04 Richard Earnshaw <[email protected]>
12494
12495 * gdbarch.sh (copyright): Update years in generated header.
12496 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12497 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12498 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12499 * dbxread.c: Likewise.
12500 * dwarfread.c: Likewise.
12501 * elfread.c: Likewise.
12502 * somread.c: Likewise.
12503
12504 * arm-tdep.c (arm_smash_text_address): New function.
12505 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12506
fa4ba8da
PM
125072002-02-04 Pierre Muller <[email protected]>
12508
12509 Add support for hardware watchpoints on win32 native.
aaa38bb5 12510 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12511 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12512 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12513 of debug registers.
12514 (debug_registers_changed): New variable. Reflects when debug registers
12515 are changed and need to be written to inferior.
aaa38bb5 12516 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12517 was set, used when new threads are created.
12518 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12519 i386-nat code.
12520 (thread_rec): Set dr array if id is the thread of current_event .
12521 (child_continue, child_resume): Change the debug registers for all
12522 threads if debug_registers_changed.
12523 (child_add_thread): Change the debug registers if debug_registers_used.
12524 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12525 Link nm.h to new nm-cygwin.h file.
12526 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12527 of hardware registers.
12528
a73c86fb
AC
125292002-02-03 Andrew Cagney <[email protected]>
12530
12531 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12532 Restore behavour broken by 2002-01-20 Andrew Cagney
12533 <[email protected]> IEEE_FLOAT removal.
12534
acf5ed49
DJ
125352002-02-03 Daniel Jacobowitz <[email protected]>
12536
12537 * c-valprint.c (c_val_print): Pass a proper valaddr to
12538 cp_print_class_method.
12539 * valops.c (search_struct_method): If there is only one method
12540 and args is NULL, return that method.
12541
493d28d5
DJ
125422002-02-03 Daniel Jacobowitz <[email protected]>
12543
12544 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12545 accessing tag_name directly.
12546
7495dfdb
DJ
125472002-02-03 Daniel Jacobowitz <[email protected]>
12548
12549 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12550 of accessing tag_name directly.
12551
dd6bda65
DJ
125522002-02-03 Daniel Jacobowitz <[email protected]>
12553
12554 PR gdb/280
12555 * gdbtypes.c (replace_type): New function.
12556 * gdbtypes.h (replace_type): Add prototype.
12557 * stabsread.c (read_type): Use replace_type.
12558
88fe217c
RE
125592002-02-03 Richard Earnshaw <[email protected]>
12560
12561 * Makefile.in (memattr.o): Add missing dependencies rule.
12562
e5d66720
PS
125632002-02-03 Peter Schauer <[email protected]>
12564
12565 * breakpoint.c (break_at_finish_command): Really export.
12566 (break_at_finish_at_depth_command): Ditto.
12567 (tbreak_at_finish_command): Ditto.
12568 * hppa-tdep.c: Include completer.h.
12569 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12570 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12571
fffee0be
AC
125722002-02-01 Andrew Cagney <[email protected]>
12573
12574 * utils.c (do_write): New function.
12575 (error_stream): Rewrite combining the code from error_begin and
12576 verror.
12577 (verror): Rewrite using error_stream.
12578 (error_begin): Delete function.
12579
255e7dbf
AC
125802002-02-01 Andrew Cagney <[email protected]>
12581
12582 * utils.c (error_begin): Make static.
12583 * defs.h (error_begin): Delete declaration.
12584
12585 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12586 (decode_line_1): Use cplusplus_error instead of error_begin,
12587 cplusplus_hint and return_to_top_level.
12588 * coffread.c (coff_symfile_read): Use error instead of error_begin
12589 and return_to_top_level.
12590 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12591
ddfe3c15
AC
125922002-02-01 Andrew Cagney <[email protected]>
12593
12594 * language.h (type_error, range_error): Make string parameter
12595 constant.
12596 * language.c (warning_pre_print): Delete extern declaration.
12597 * dwarfread.c (warning_pre_print): Ditto.
12598 * language.c (type_error, range_error): Rewrite to use verror and
12599 vwarning instead of warning_begin.
12600
03ac34d5
MS
126012002-02-01 Michael Snyder <[email protected]>
12602
261c4ca2
MS
12603 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12604 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12605
e00d1dc8
AC
126062002-02-01 Andrew Cagney <[email protected]>
12607
12608 * command.h (NO_FUNCTION): Delete macro.
12609 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12610 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12611 * tracepoint.c (_initialize_tracepoint): Ditto.
12612 * cli/cli-decode.c (add_set_cmd): Ditto.
12613 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12614
76b79d6e
DJ
126152002-02-01 Daniel Jacobowitz <[email protected]>
12616
12617 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12618 Update ``this'' pointer when calling virtual functions.
12619
799f9e91
MS
126202002-02-01 Michael Snyder <[email protected]>
12621
c7bd442c 12622 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12623 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12624
3cf384d4
DJ
126252002-02-01 Daniel Jacobowitz <[email protected]>
12626
12627 * regformats/reg-arm.dat: New file.
12628 * regformats/reg-i386.dat: New file.
12629 * regformats/reg-ia64.dat: New file.
12630 * regformats/reg-m68k.dat: New file.
12631 * regformats/reg-mips.dat: New file.
12632 * regformats/reg-ppc.dat: New file.
12633 * regformats/reg-sh.dat: New file.
12634 * regformats/regdef.h: New file.
12635 * regformats/regdat.sh: New file.
12636
0defa245
RE
126372002-02-01 Richard Earnshaw <[email protected]>
12638
12639 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12640 (arm_frame_args_address, arm_frame_locals_address): New functions.
12641 (arm_frame_num_args): New function.
12642 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12643 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12644 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12645
405f26e6
MS
126462002-01-31 Michael Snyder <[email protected]>
12647
502fd408
MS
12648 * breakpoint.c (break_at_finish_command): Export.
12649 (break_at_finish_at_depth_command): Export.
12650 (tbreak_at_finish_command): Export.
d6020d45 12651 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12652 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12653 "txbreak" commands, which are HPPA specific.
502fd408 12654
7d35e135
MS
12655 * printcmd.c (disassemble_command): Remove an ancient
12656 artifact of an old merge.
12657
aaa38bb5 12658 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12659 Define enum constant values for overlay mode.
12660 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12661 (overlay_is_mapped, overlay_auto_command,
12662 overlay_manual_command): Ditto.
d874f1e2 12663
aaa38bb5
AJ
12664 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12665 breakpoint_here_p, breakpoint_inserted_here_p,
12666 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12667 describe_other_breakpoints, check_duplicates, clear_command):
12668 Coding standard fixes.
12669
8add0441 12670 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12671 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12672 code: check bfd SEC_READONLY flag for section.
12673
e351066e
AC
126742002-01-31 Andrew Cagney <[email protected]>
12675
7d35e135 12676 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 12677
8a48e967
DJ
126782002-01-30 Daniel Jacobowitz <[email protected]>
12679
12680 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12681 data symbols, since we search based on textlow and texthigh.
12682 (find_pc_sect_symtab): Likewise.
12683
f5a96129
AC
126842002-01-30 Andrew Cagney <[email protected]>
12685
12686 * defs.h (vwarning): Declare.
f5a96129
AC
12687 * utils.c (vwarning): New function.
12688 (warning): Call vwarning.
12689 (warning_begin): Delete function.
12690
12691 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12692 the warning message.
12693 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12694 warning_begin.
12695
cefd4ef5
MS
126962002-01-30 Michael Snyder <[email protected]>
12697
1a703748
MS
12698 * NEWS: Mention "set trust-readonly-sections" command.
12699 Mention generate-core-file command.
cefd4ef5 12700
3a11626d
MS
127012002-01-15 Michael Snyder <[email protected]>
12702
12703 * target.c: New command, "set trust-readonly-sections on".
12704 (do_xfer_memory): Honor the suggestion to trust readonly sections
12705 by reading them from the object file instead of from the target.
12706 (initialize_targets): Register command "set trust-readonly-sections".
12707
d1c7e53b
AC
127082002-01-29 Andrew Cagney <[email protected]>
12709
12710 * parse.c (target_map_name_to_register): Simplify, search regs and
12711 pseudo-regs using a single loop.
12712
e2c9a72c
AC
127132002-01-30 Andrew Cagney <[email protected]>
12714
12715 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12716
69824b4e
MK
127172002-01-15 Rodney Brown <[email protected]>
12718
12719 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12720 * config/i386/i386v42mp.mh: Add i387-nat.o .
12721 * i386v4-nat.c: Include i387-nat.h.
12722 (supply_fpregset): Use i387_supply_fsave.
12723 (fill_fpregset): Use i387_fill_fsave.
12724
6eb69eab
RE
127252002-01-30 Richard Earnshaw <[email protected]>
12726
12727 * arm-tdep.c (arm_call_dummy_words): Define.
12728 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12729 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12730 (CALL_DUMMY_WORDS): Define.
12731 (arm_call_dummy_words): Declare.
12732 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12733 (arm_linux_call_dummy_words): Declare.
12734
9852326a
AS
127352002-01-30 Andreas Schwab <[email protected]>
12736
12737 * m68klinux-nat.c: Fix last change to use regcache_collect
12738 instead of referencing registers[] directly.
12739
977a3030
AC
127402002-01-29 Andrew Cagney <[email protected]>
12741
12742 * parse.c (target_map_name_to_register): Delete code wrapped in
12743 #ifdef REGISTER_NAME_ALIAS_HOOK.
12744
2076c72b
MS
127452002-01-28 Michael Snyder <[email protected]>
12746
12747 * regcache.c (legacy_read_register_gen): Need to be able to
12748 read pseudo-register as well as real register.
12749 (legacy_write_register_gen): Ditto.
12750
8fcc723b
AC
127512002-01-28 Andrew Cagney <[email protected]>
12752
12753 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12754 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12755 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12756 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12757 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12758 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12759 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12760 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12761 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12762 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12763 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12764 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12765 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12766 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12767 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12768 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12769 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12770 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12771 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12772 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12773
afe64c1a
AC
127742002-01-28 Andrew Cagney <[email protected]>
12775
12776 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12777 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12778 (initialize_current_architecture): Update target_byte_order using
12779 information from BFD.
aaa38bb5 12780 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
12781 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12782
75bc7ddf
AC
127832002-01-28 Andrew Cagney <[email protected]>
12784
12785 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12786 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12787
12788 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12789 #ifdef INVALID_FLOAT.
12790 * infcmd.c (do_registers_info): Ditto.
12791 * values.c (unpack_double): Ditto. Add comment.
12792
12793 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12794 already commented out.
12795
0280a90a
AS
127962002-01-26 Andreas Schwab <[email protected]>
12797
12798 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12799 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12800 registers and add support for PTRACE_GETREGS.
12801
7072a954
AC
128022002-01-24 Andrew Cagney <[email protected]>
12803
12804 GDB 5.1.1 released from 5.1 branch.
12805 * NEWS: Add 5.1.1 news.
12806 * README: Sync with 5.1 branch.
12807
86f902e0
FF
128082002-01-23 Fred Fish <[email protected]>
12809
12810 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12811 stabstring on initial malloc. Reallocing will copy it for us,
12812 if necessary.
12813
8af51c36
EZ
128142002-01-23 Elena Zannoni <[email protected]>
12815
aaa38bb5 12816 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
12817 (HFILES_NO_SRCDIR): Remove hpread.h.
12818 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12819 (hpread.o): Update dependencies.
12820 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12821
12822 * hp-psymtab-read.c: Remove file.
12823 * hp-symtab-read.c: Remove file.
12824 * hpread.h: Remove file.
12825
12826 * hpread.c: Merge all contents of hp-psymtab-read.c,
12827 hp-symtab-read.c and hpread.h into this file, as it was prior to
12828 January 1999.
12829
12830 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 12831 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
12832 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12833 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12834
dc5cfeb6
EZ
128352002-01-23 Elena Zannoni <[email protected]>
12836
12837 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12838 fill_gregset): Call gdbarch_tdep() just once, assign result to
12839 variable and use that, instead of calling the function several
12840 times.
12841
ea87b71b
AO
128422002-01-24 Alexandre Oliva <[email protected]>
12843
12844 * configure.host: Accept sparcv9 as alias for sparc64.
12845 * configure.tgt: Likewise.
12846
13fc0c2f
KB
128472002-01-22 Kevin Buettner <[email protected]>
12848
12849 * solib-aix5.c (build_so_list_from_mapfile)
12850 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12851 arguments is not reversed.
12852 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12853 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 12854
7bd872fe
EZ
128552002-01-22 Elena Zannoni <[email protected]>
12856
12857 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12858 modified version of obsolete sh_fetch_pseudo_register.
12859 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12860 (sh4_register_read): New function.
12861 (sh_pseudo_register_write): New function. Renamed and modified
12862 version of obsolete sh_store_pseudo_register.
12863 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12864 (sh4_register_write): New function.
12865 (sh_gdbarch_init): Remove setting of gdbarch function
12866 fetch_pseudo_register and store_pseudo_register. Remove setting of
12867 register_convert_to_raw, register_convert_to_virtual,
12868 register_convertible.
12869 (sh_sh4_register_convertible): Delete. No longer needed. All is
12870 taken care by architecture specific functions
12871 register_read/register_write.
12872 (sh_sh4_register_convert_to_virtual): Make static.
12873 (sh_sh4_register_convert_to_raw): Ditto.
12874
069e84fd
AC
128752002-01-22 Andrew Cagney <[email protected]>
12876
12877 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12878 (floatformat_is_nan, floatformat_mantissa): Ditto.
12879
12880 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12881 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12882 builtin_type_ieee_double_little,
12883 builtin_type_ieee_double_littlebyte_bigword,
12884 builtin_type_m68881_ext, builtin_type_i960_ext,
12885 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12886 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12887 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12888 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12889
211a4f69
CV
128902002-01-22 Corinna Vinschen <[email protected]>
12891
12892 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12893 parameter. Set frameless flag if it exists and depended of
12894 whether the scanned function is frameless or not.
12895 (xstormy16_skip_prologue): If function is frameless, return
12896 result of xstormy16_scan_prologue().
12897 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12898 call.
12899
f81353e4
EZ
129002002-01-21 Elena Zannoni <[email protected]>
12901
12902 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12903 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12904 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12905 sh_sh4_register_byte, sh_sh4_register_raw_size,
12906 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12907 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12908 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12909 sh_store_pseudo_register, sh_do_pseudo_register): Call
12910 gdbarch_tdep() just once, assign result to variable and use that,
12911 instead of calling the function several times.
12912
63c73a17
MK
129132002-01-20 Mark Kettenis <[email protected]>
12914
12915 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12916 macros instead of LAST_FPU_CTRL_REGNUM.
12917 (store_register): Likewise.
12918
39ad761d
JB
129192002-01-21 Jim Blandy <[email protected]>
12920
12921 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12922 is up-to-date before running the program, not just when a program
12923 exits.
12924
3d74b771
FF
129252002-01-21 Fred Fish <[email protected]>
12926
12927 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12928 when we have found all instructions we are looking for.
12929
966fbf70
RE
129302002-01-21 Richard Earnshaw <[email protected]>
12931
12932 * arm-tdep.c (arm_register_name): New function.
12933 (arm_registers_names): Make static.
12934 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12935 (arm_register_name): Declare.
12936 (REGISTER_NAME): Use it.
12937
c3b4394c
RE
129382002-01-21 Richard Earnshaw <[email protected]>
12939 Kevin Buettner <[email protected]>
12940
12941 Convert arm targets to new FRAME interface.
12942 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12943 (arm_frame_find_save_regs): Delete.
12944 (arm_frame_init_saved_regs): New.
12945 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12946 Allocate extra_info as required. Convert all uses of fsr.regs
12947 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12948 to use extra_info.
12949 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12950 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12951 (check_prologue_cache, save_prologue_cache): Likewise.
12952 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12953 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12954 (FRAME_FIND_SAVED_REGS): Delete.
12955 (arm_frame_find_saved_regs): Delete prototype.
12956 (arm_frame_init_saved_regs): New prototype.
12957 (FRAME_INIT_SAVED_REGS): Define.
12958
61d99182
AC
129592002-01-20 Andrew Cagney <[email protected]>
12960
12961 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12962
6aaea291
AC
129632002-01-20 Andrew Cagney <[email protected]>
12964
12965 From Jeff Law <[email protected]>:
12966 * infttrace.c: Include <sys/pstat.h>.
12967 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12968 exec file if the ttrace equivalent fails.
12969
15f698d2
AC
129702002-01-20 Andrew Cagney <[email protected]>
12971
12972 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12973 (closeLogFile): Ditto.
12974
f86ddd7c
MC
129752002-01-20 Michael Chastain <[email protected]>
12976
12977 * top.c (print_gdb_version): Bump copyright year to 2002.
12978
904507ce
AC
129792002-01-20 Andrew Cagney <[email protected]>
12980
12981 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12982 Zannoni and Eli Zaretskii.
12983
d7f0b9ce
DJ
129842002-01-20 Daniel Jacobowitz <[email protected]>
12985
12986 * buildsym.c: Update copyright years.
12987 * c-typeprint.c: Likewise.
12988 * dwarf2read.c: Likewise.
12989 * f-typeprint.c: Likewise.
12990 * gdbtypes.c: Likewise.
12991 * gdbtypes.h: Likewise.
12992 * hp-symtab-read.c: Likewise.
12993 * hpread.c: Likewise.
12994 * mdebugread.c: Likewise.
12995 * p-typeprint.c: Likewise.
12996
3fd3d7d2
AC
129972002-01-20 Andrew Cagney <[email protected]>
12998
12999 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13000 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13001 byte-order selectable.
13002 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13003 * arch-utils.c: Ditto.
13004 (set_endian): Ditto.
13005 (set_endian_from_file): Ditto.
13006 * gdbserver/low-sim.c (create_inferior): Ditto.
13007 * gdbarch.sh: Ditto.
13008 * gdbarch.h: Re-generate.
aaa38bb5
AJ
13009 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13010 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13011 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13012 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13013 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13014 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13015 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
13016 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13017 macro definition.
13018 * config/mips/tm-wince.h: Remove #undef of macro
13019 TARGET_BYTE_ORDER_SELECTABLE.
13020 * config/sh/tm-wince.h: Ditto.
13021
b02dede2
DJ
130222002-01-20 Daniel Jacobowitz <[email protected]>
13023
13024 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13025 member function fields. Add accessor macro
13026 TYPE_FN_FIELD_ARTIFICIAL.
13027 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13028 * c-typeprint.c (c_type_print_base): Skip artificial member
13029 functions.
13030
c3643761
DJ
130312002-01-20 Daniel Jacobowitz <[email protected]>
13032
13033 * f-typeprint.c: Delete unused function f_type_print_args.
13034 * p-typeprint.c: Delete unused function pascal_type_print_args.
13035
8176bb6d
DJ
130362002-01-20 Daniel Jacobowitz <[email protected]>
13037
13038 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13039 comment. Add ``artificial'' to ``union field_location''.
13040
13041 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13042
13043 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13044 * mdebugread.c (parse_symbol): Likewise.
13045 * stabsread.c (define_symbol): Likewise.
13046 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13047 initializing TYPE_FIELD_BITPOS to n (obsolete).
13048 (hpread_doc_function_type): Likewise.
13049 * hpread.c (hpread_function_type): Likewise.
13050
7fd60527
AC
130512002-01-20 Andrew Cagney <[email protected]>
13052
13053 * configure.in (host_makefile_frag): Only require a host makefile
13054 fragment when a native build.
13055 * configure: Re-generate.
13056
c2f05ac9
AC
130572002-01-20 Andrew Cagney <[email protected]>
13058
13059 * doublest.h (floatformat_from_type): Declare.
13060 * doublest.c (floatformat_from_type): New function.
13061 (convert_typed_floating): Use.
13062
13063 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13064 call to function floatformat_from_type.
13065
13066 * gdbarch.sh (IEEE_FLOAT): Delete.
13067 * gdbarch.h, gdbarch.c: Re-generate.
13068 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13069 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13070 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13071 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13072 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13073 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13074 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13075 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13076 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13077 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13078 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
13079 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13080
13081 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13082 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13083 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13084 * sh-tdep.c (sh_gdbarch_init): Ditto.
13085 * mips-tdep.c (mips_gdbarch_init): Ditto.
13086 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13087 * cris-tdep.c (cris_gdbarch_init): Ditto.
13088
abf22e64
AJ
130892002-01-20 Jiri Smid <[email protected]>
13090
13091 * configure.host, configure.tgt: Support x86-64.
13092 * NEWS: Note new target x86-64.
13093
b7c4cbf8
AJ
13094 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13095 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13096 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13097 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13098 x86-64-linux-nat.o): Fix dependencies.
13099
82600034
AC
131002002-01-19 Andrew Cagney <[email protected]>
13101
13102 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13103 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13104 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13105 * config/sparc/xm-sun4os4.h: Delete file.
13106 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 13107
bbe5c628
AC
131082002-01-19 Andrew Cagney <[email protected]>
13109
13110 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13111 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13112 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13113 * config/i386/i386lynx.mh (XM_FILE): Delete.
13114 * config/rs6000/xm-rs6000ly.h: Delete file.
13115 * config/sparc/xm-sparclynx.h: Delete file.
13116 * config/m68k/xm-m68klynx.h: Delete file.
13117 * config/i386/xm-i386lynx.h: Delete file.
13118 * config/xm-lynx.h: Delete file.
13119 * config/djgpp/fnchange.lst: Update.
13120
f8453e34
JT
131212002-01-19 Jason Thorpe <[email protected]>
13122
13123 * alpha-tdep.c (alpha_register_byte): New function.
13124 (alpha_register_raw_size): Ditto.
13125 (alpha_register_virtual_size): Ditto.
13126 (alpha_skip_prologue_internal): Renamed from
13127 alpha_skip_prologue.
13128 (alpha_skip_prologue): New version that calls
13129 alpha_skip_prologue_internal.
13130 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13131 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13132 second argument from alpha_skip_prologue.
13133 (REGISTER_BYTE): Use alpha_register_byte.
13134 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13135 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13136 (FRAMELESS_FUNCTION_INVOCATION): Use
13137 generic_frameless_function_invocation_not.
13138 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13139 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13140
52d9e613
AC
131412002-01-19 Andrew Cagney <[email protected]>
13142
13143 * config/mips/xm-news-mips.h: Delete file.
13144 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13145
13146 * config/m88k/xm-m88k.h: Delete file.
13147 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13148 * config/m88k/xm-delta88v4.h: Ditto.
13149 * config/m88k/xm-delta88.h: Ditto.
13150
13151 * config/alpha/xm-fbsd.h: Delete file.
13152 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13153
13154 * config/sparc/xm-sparc.h: Delete file.
13155 * Makefile.in (xm-sun4os4.h): Delete dependency.
13156 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13157 * config/sparc/xm-sun4os4.h: Ditto.
13158 * config/sparc/xm-linux.h: Ditto.
13159
13160 * config/i386/xm-windows.h: Delete file.
13161
2d1b2124
AC
131622002-01-19 Andrew Cagney <[email protected]>
13163
13164 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13165 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13166
ee1f65f0
JT
131672002-01-19 Jason Thorpe <[email protected]>
13168
13169 * alpha-tdep.c (alpha_call_dummy_words): New.
13170 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13171 (CALL_DUMMY_P): Define.
13172 (CALL_DUMMY_WORDS): Define.
13173 (SIZEOF_CALL_DUMMY_WORDS): Define.
13174
98081e55
PB
131752002-01-19 Per Bothner <[email protected]>
13176
13177 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13178 isn't NULL, which can happen with some gcj-3.x-produced code.
13179
0d056799
JT
131802002-01-19 Jason Thorpe <[email protected]>
13181
13182 * alpha-tdep.c (alpha_register_virtual_type): New function.
13183 (alpha_init_frame_pc_first): Ditto.
13184 (alpha_fix_call_dummy): Ditto.
13185 (alpha_store_struct_return): Ditto.
13186 (alpha_extract_struct_value_address): Ditto.
13187 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13188 alpha_register_virtual_type.
13189 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13190 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13191 alpha_extract_struct_value_address.
13192 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13193 (INIT_FRAME_PC): Use init_frame_pc_noop.
13194 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13195
4604bcad
MK
131962002-01-19 Mark Kettenis <[email protected]>
13197
13198 * i386gnu-nat.c: Include "i386-tdep.h".
13199 (fetch_fpregs): Simplify code dealing with uninitialized floating
13200 point states such that it doesn't require FP7_REGNUM.
13201
140f9984
JT
132022002-01-18 Jason Thorpe <[email protected]>
13203
abf22e64
AJ
13204 * alpha-tdep.c (frame_extra_info): New.
13205 (alpha_find_saved_regs): Make static. Use
140f9984
JT
13206 frame->extra_info.
13207 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
13208 (alpha_frame_saved_pc): Use frame->extra_info.
13209 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13210 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
13211 (init_extra_frame_info): Rename to...
13212 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 13213 (alpha_print_extra_frame_info): New function.
140f9984
JT
13214 (alpha_frame_locals_address): Ditto.
13215 (alpha_frame_args_address): Ditto.
abf22e64 13216 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
13217 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13218 alpha_frame_args_address.
abf22e64 13219 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 13220 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
13221 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13222 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
13223 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13224 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13225
d734c450
JT
132262002-01-18 Jason Thorpe <[email protected]>
13227
13228 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13229 (alpha_cannot_fetch_register): Ditto.
13230 (alpha_cannot_store_register): Ditto.
13231 (alpha_register_convertible): Ditto.
13232 (alpha_use_struct_convention): Ditto.
13233 * config/alpha/tm-alpha.h: Update copyright years.
13234 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13235 (INNER_THAN): Use core_addr_lessthan.
13236 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13237 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13238 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13239 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13240 (FRAME_CHAIN): Remove unnecessary cast.
13241
b4ceaee6
AC
132422002-01-18 Andrew Cagney <[email protected]>
13243
13244 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13245 obsolete.
13246
0a65a603
AC
132472002-01-18 Andrew Cagney <[email protected]>
13248
13249 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13250 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13251 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13252 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13253 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13254 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13255 * x86-64-linux-nat.c: Ditto.
13256
636a6dfc
JT
132572002-01-18 Jason Thorpe <[email protected]>
13258
abf22e64 13259 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
13260 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13261 (REGISTER_NAME): Define.
13262
acceddb6
JT
132632002-01-18 Jason Thorpe <[email protected]>
13264
13265 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13266
ec32e4be
JT
132672002-01-18 Jason Thorpe <[email protected]>
13268
13269 * alpha-tdep.c: Update copyright years.
13270 (alpha_next_pc): New function.
13271 (alpha_software_single_step): Ditto.
13272 * config/alpha/tm-alpha.h: Add prototype for
13273 alpha_software_single_step.
13274
e771a871
JT
132752002-01-18 Jason Thorpe <[email protected]>
13276
13277 * alphabsd-nat.c: Update copyright years.
13278 (fill_gregset): Use regcache_collect.
13279 (fill_fpregset): Likewise.
13280 (fetch_inferior_registers): Only fetch integer registers
13281 if requested to do so.
13282 (store_inferior_registers): Only store integer registers
13283 if requested to do so.
13284
7708fa01
AC
132852002-01-17 Andrew Cagney <[email protected]>
13286
13287 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13288 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13289 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13290 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13291 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13292 * config/arm/linux.mh (XDEPFILES): Delete.
13293 * config/arm/nbsd.mh (XDEPFILES): Delete.
13294 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13295 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13296 * config/i386/i386m3.mh (XDEPFILES): Delete.
13297 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13298 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13299 * config/i386/fbsd.mh (XDEPFILES): Delete.
13300 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13301 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13302 * config/i386/i386v4.mh (XDEPFILES): Delete.
13303 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13304 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13305 * config/i386/i386aix.mh (XDEPFILES): Delete.
13306 * config/i386/go32.mh (XDEPFILES): Delete.
13307 * config/i386/cygwin.mh (XDEPFILES): Delete.
13308 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13309 * config/i386/i386mach.mh (XDEPFILES): Delete.
13310 * config/i386/i386v32.mh (XDEPFILES): Delete.
13311 * config/i386/linux.mh (XDEPFILES): Delete.
13312 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13313 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13314 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13315 * config/i386/i386sco.mh (XDEPFILES): Delete.
13316 * config/i386/i386v.mh (XDEPFILES): Delete.
13317 * config/i386/nbsd.mh (XDEPFILES): Delete.
13318 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13319 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13320 * config/i386/symmetry.mh (XDEPFILES): Delete.
13321 * config/i386/obsd.mh (XDEPFILES): Delete.
13322 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13323 * config/ia64/linux.mh (XDEPFILES): Delete.
13324 * config/ia64/aix.mh (XDEPFILES): Delete.
13325 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13326 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13327 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13328 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13329 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13330 * config/m68k/linux.mh (XDEPFILES): Delete.
13331 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13332 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13333 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13334 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13335 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13336 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13337 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13338 * config/m88k/delta88.mh (XDEPFILES): Delete.
13339 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13340 * config/m88k/m88k.mh (XDEPFILES): Delete.
13341 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13342 * config/mips/linux.mh (XDEPFILES): Delete.
13343 * config/mips/irix6.mh (XDEPFILES): Delete.
13344 * config/mips/irix5.mh (XDEPFILES): Delete.
13345 * config/mips/irix4.mh (XDEPFILES): Delete.
13346 * config/mips/irix3.mh (XDEPFILES): Delete.
13347 * config/mips/decstation.mh (XDEPFILES): Delete.
13348 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13349 (NATDEPFILES): Move core-aout.o to here.
13350 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13351 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13352 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13353 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13354 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13355 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13356 * config/pa/hpux11.mh (XDEPFILES): Delete.
13357 * config/powerpc/aix.mh (XDEPFILES): Delete.
13358 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13359 * config/powerpc/linux.mh (XDEPFILES): Delete.
13360 * config/romp/rtbsd.mh: Rename XDEPFILES.
13361 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13362 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13363 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13364 * config/s390/s390.mh (XDEPFILES): Delete.
13365 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13366 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13367 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13368 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13369 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13370 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13371 * config/sparc/linux.mh (XDEPFILES): Delete.
13372 * config/vax/vaxult.mh (XDEPFILES): Delete.
13373 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13374 * Makefile.in (DEPFILES): Remove XDEPFILES.
13375
375fc983
AC
133762002-01-17 Andrew Cagney <[email protected]>
13377
13378 * utils.c (internal_verror): Fix comments, default is yes not no.
13379 Update queries to match. Default to quit and dump core.
13380
8926118c
AC
133812002-01-17 Andrew Cagney <[email protected]>
13382
13383 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13384 copyright.
13385 * defs.h, event-top.c, gdbcmd.h: Ditto.
13386 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13387 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13388 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13389 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13390 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13391 * mi/mi-main.c:Ditto.
13392
13393 * stack.c, symfile.c: Update copyright.
13394
45b7b345
DJ
133952002-01-17 Daniel Jacobowitz <[email protected]>
13396
db728ff7
DJ
13397 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13398 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13399 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13400 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 13401
db728ff7
DJ
134022002-01-17 Daniel Jacobowitz <[email protected]>
13403
13404 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13405 * gdbserver/low-lynx.c (myattach): Likewise.
13406 * gdbserver/low-nbsd.c (myattach): Likewise.
13407 * gdbserver/low-sim.c (myattach): Likewise.
13408 * gdbserver/low-sparc.c (myattach): Likewise.
13409 * gdbserver/low-sun3.c (myattach): Likewise.
13410
13411 * gdbserver/low-linux.c (myattach): New function.
45b7b345 13412
db728ff7 13413 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
13414 (main): Handle "--attach".
13415
8de3c354
AC
134162002-01-16 Andrew Cagney <[email protected]>
13417
13418 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13419 maintainer.
13420
b0129042
DJ
134212002-01-15 Daniel Jacobowitz <[email protected]>
13422
13423 * c-typeprint.c (is_type_conversion_operator): Add additional
13424 check for non-conversion operators.
13425
ba8679fb 134262002-01-15 Michael Snyder <[email protected]>
2bf543a6
MS
13427
13428 * linux-proc.c: Add "info proc" command, a la procfs.c.
13429 (read_mapping): New function, abstract and re-use code.
13430 (linux_find_memory_regions): Use new func read_mapping.
13431 (linux_info_proc_cmd): New function, implement "info proc".
13432 (_initialize_linux_proc): Add new command "info proc".
13433
e4f9b4d5
MS
134342002-01-15 Michael Snyder <[email protected]>
13435
13436 * symfile.c (generic_load): Use bfd_map_over_sections method
13437 instead of manipulating bfd structure members directly.
13438 (add_section_size_callback): New function, bfd sections callback
13439 used by generic_load.
13440 (load_sections_callback): New function, bfd sections callback
13441 used by generic_load.
13442
08cf96df
EZ
134432002-01-15 Elena Zannoni <[email protected]>
13444
abf22e64 13445 [Based on work by Jim Blandy]
08cf96df
EZ
13446 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13447 (builtin_type_vec128): Export.
13448 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13449 types.
13450 (builtin_type_vec128): New builtin type for 128 bit vector
13451 registers.
13452 (build_gdbtypes): Initialize builtin_type_v16qi and
13453 builtin_type_v8hi. Create the vec128 register builtin type
13454 structure.
13455 (build_builtin_type_vec128): New function.
abf22e64 13456 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13457 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13458 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13459 AltiVec register to new builtin type.
13460
d7242108
DJ
134612001-01-15 Daniel Jacobowitz <[email protected]>
13462
13463 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13464 to make_cv_type.
13465
4ee3352d
AC
134662002-01-14 Andrew Cagney <[email protected]>
13467
13468 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13469 CLEAN_UP_REGISTER_VALUE.
13470 * regcache.c (supply_register): Update only call.
13471
f015b2e7
AC
134722002-01-14 Andrew Cagney <[email protected]>
13473
13474 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13475 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13476 a29k-*-vxworks* targets as obsolete.
13477
356ae49d
MS
134782002-01-14 Michael Snyder <[email protected]>
13479
13480 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13481 until we can resolve portability issues.
13482 * gregset.h: Remove references to fpxregs.
13483 * gcore.c (gcore_command): Initialize note_sec to NULL.
13484
ade8f45e
AC
134852002-01-13 Andrew Cagney <[email protected]>
13486
13487 * signals.c (target_signal_to_name): Rewrite. Only use
13488 signals[].name when in bounds and non-NULL.
abf22e64 13489
89c49e7a
AC
134902002-01-13 Andrew Cagney <[email protected]>
13491
13492 From Petr Ledvina <[email protected]>:
13493 * signals.c (target_signal_to_name): Verify that SIG is within the
13494 bounds of the signals array.
13495
4daa9f9f
AC
134962002-01-13 Andrew Cagney <[email protected]>
13497
13498 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13499
ba4bbdcb
KS
135002002-01-13 Keith Seitz <[email protected]>
13501
13502 * stack.c (print_frame_info_base): Print the frame's pc
13503 only if when print_frame_info_listing_hook is not defined.
13504
575bbeb6
KS
135052002-01-13 Keith Seitz <[email protected]>
13506
13507 * varobj.c (varobj_set_value): Make sure that there were no
13508 errors evaluating the object before attempting to set its
13509 value.
13510 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13511 so this offset adjustment is no longer necessary.
13512 (create_child): Don't set the error flag if the child is
13513 a CPLUS_FAKE_CHILD.
13514 (value_of_child): If value_fetch_lazy fails, return NULL
13515 so that callers will be notified that an error occurred.
13516 (c_value_of_variable): Delay check of variable's validity
13517 until later. We actually want all structs and unions to have
13518 the value "{...}".
13519 Do not return "???" for variables which could not be evaluated.
13520 This error condition must be returned to the caller so that it
13521 can get the error condition from gdb.
13522 (cplus_name_of_child): Adjust index for vptr before figuring
13523 out the name of the child.
13524 (cplus_value_of_child): If a child's (real) parent is not valid,
13525 don't even bother trying to give a value for it. Just return
13526 an error. Change all instances in this function.
13527 (cplus_type_of_child): If our parent is one of the "fake"
13528 parents, we need to get at the type of the real parent, and
13529 derive the child's true type using this information.
13530
b76898ab
AC
135312002-01-13 Andrew Cagney <[email protected]>
13532
13533 From 2002-01-09 John Marshall <[email protected]>:
13534 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13535 sources.redhat.com, and tweak some related URLs which had
13536 suffered from linkrot.
13537
b6649e88
AC
135382002-01-13 Andrew Cagney <[email protected]>
13539
13540 From Jeff law:
13541 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13542 structures passed in registers.
13543
82cc5033
EZ
135442002-01-13 Eli Zaretskii <[email protected]>
13545
13546 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13547 white space which prevented compilation. Reported by DSK
13548 <[email protected]>.
13549
ba5f2f8a
MS
135502002-01-11 Michael Snyder <[email protected]>
13551
fbd35540
MS
13552 * symfile.c (build_section_addr_info_from_section_tab):
13553 Use bfd access method instead of manipulating bfd directly.
13554 (syms_from_objfile): Ditto.
13555 (simple_overlay_update_1): Ditto.
13556 (simple_overlay_update): Ditto.
13557 (generic_load): Ditto.
13558 (overlay_unmapped_address): FIXME comment, bfd access methods.
13559 (sections_overlap): FIXME comment, bfd access methods.
13560 (pc_in_mapped_range): FIXME comment, bfd access methods.
13561 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13562 (section_is_mapped): FIXME comment, bfd access methods.
13563 (section_is_overlay): FIXME comment, bfd access methods.
13564
ba5f2f8a
MS
13565 * symfile.c (generic_load): Whitespace and long line cleanups.
13566 Remove duplicate variable, change several local variables to
13567 more appropriate data types.
13568 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13569
17df2af6
AC
135702002-01-12 Andrew Cagney <[email protected]>
13571
13572 From Peter Schauer:
13573 * language.c (longest_local_hex_string_custom): Use phex_nz to
13574 convert NUM to a hex string.
13575
ec920329
EZ
135762002-01-12 Elena Zannoni <[email protected]>
13577
13578 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13579 the function.
538a76d6 13580 Update Copyright year.
ec920329 13581
3abd2e01
AC
135822002-01-12 Andrew Cagney <[email protected]>
13583
13584 * language.c (longest_raw_hex_string): Delete unused function.
13585
b21b22e0
PS
135862002-01-11 Petr Sorfa <[email protected]>
13587
13588 * MAINTAINERS (write-after-approval): Add myself.
13589 * dwarf2read.c (read_tag_string_type): Handling of
13590 DW_AT_byte_size.
13591 (read_tag_string_type): FORTRAN fix to prevent propagation of
13592 first string size.
13593 (set_cu_language): Handling of DW_LANG_Fortran95
13594
747fe712
RE
135952002-01-11 Richard Earnshaw <[email protected]>
13596
13597 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13598 GETPID(inferior_ptid).
13599 (store_inferior_registers): Likewise.
13600
f1bea926
JM
136012002-01-10 Jason Merrill <[email protected]>
13602
13603 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13604 Fix DW_OP_minus.
13605
ae940673
AC
136062002-01-10 Andrew Cagney <[email protected]>
13607
13608 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13609 and bfd/elf32-sh-nbsd.c.
13610
00546b04
MS
136112002-01-10 Michael Snyder <[email protected]>
13612
352ed7b4
MS
13613 * NEWS: Mention --pid and corefile/proc-id behavior change.
13614
c18be923
MS
13615 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13616 * gcore.c: Include cli/cli-decode.h instead of command.h.
13617
00546b04
MS
13618 * main.c (captured_main): Add new command line option "--pid".
13619 If the second command line argument (following the symbol-file)
13620 begins with a digit, try to attach to it before trying to open
13621 it as a corefile.
13622 (print_gdb_help): Document the "--pid" argument.
13623
db60ec62
EZ
136242002-01-10 Eli Zaretskii <[email protected]>
13625
13626 * completer.c (command_completer): New function.
13627
13628 * completer.h <command_completer>: Add prototype.
13629
13630 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13631 completer for the "help" command.
13632
39c22d1a
JM
136332002-01-09 Jason Merrill <[email protected]>
13634
13635 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13636
c564377f
MS
136372002-01-09 Michael Snyder <[email protected]>
13638
975aec09
MS
13639 * i386-linux-nat.c (fill_fpxregset): Make global.
13640 (store_fpxregset): Ditto.
13641
db4a10fa
MS
13642 * gregset.h (gdb_fpxregset_t): Define.
13643 (supply_fpxregset): Prototype.
13644 (fill_fpxregset): Prototype.
13645
c564377f
MS
13646 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13647
c3d45d70
RE
136482002-01-09 Richard Earnshaw <[email protected]>
13649
13650 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13651 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13652 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13653
fcc87af1
AC
136542002-01-09 Andrew Cagney <[email protected]>
13655
13656 * MAINTAINERS: Update target maintainer rules so that any
13657 Maintainer can approve a tested patch for a maintenance-only
13658 target.
13659
dd96c05b
RE
136602002-01-09 Richard Earnshaw <[email protected]>
13661
d4297db9 13662 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13663
d4297db9 13664 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13665 IN_SIGTRAMP.
13666
145fdc6e
MS
136672002-01-08 Michael Snyder <[email protected]>
13668
13669 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13670 real name of the executable, rather than the /proc name.
13671
be4d1333
MS
136722002-01-03 Michael Snyder <[email protected]>
13673
13674 Implement a "generate-core-file" command in gdb, save target state.
13675 * gcore.c: New file. Implement new command 'generate-core-file'.
13676 Save a corefile image of the current state of the inferior.
13677 * linux-proc.c: Add linux-specific code for saving corefiles.
13678 * target.h (struct target_ops): Add new target vectors for saving
13679 corefiles; to_find_memory_regions and to_make_corefile_notes.
13680 (target_find_memory_regions): New macro.
13681 (target_make_corefile_notes): New macro.
13682 * target.c (update_current_target): Inherit new target methods.
13683 (dummy_find_memory_regions): New place-holder method.
13684 (dummy_make_corefile_notes): New place-holder method.
13685 (init_dummy_target): Initialize new dummy target vectors.
13686 * exec.c (exec_set_find_memory_regions): New function.
13687 Allow the exec_ops vector for memory regions to be taken over.
13688 (exec_make_note_section): New function, target vector method.
13689 * defs.h (exec_set_find_memory_regions): Export prototype.
13690 * procfs.c (proc_find_memory_regions): New function, corefile method.
13691 (procfs_make_note_section): New function, corefile method.
13692 (init_procfs_ops): Set new target vector pointers.
13693 (find_memory_regions_callback): New function.
13694 (procfs_do_thread_registers): New function.
13695 (procfs_corefile_thread_callback): New function.
13696 * sol-thread.c (sol_find_memory_regions): New function.
13697 (sol_make_note_section): New function.
13698 (init_sol_thread_ops): Initialize new target vectors.
13699 * inftarg.c (inftarg_set_find_memory_regions): New function.
13700 Allow to_find_memory_regions vector to be taken over.
13701 (inftarg_set_make_corefile_notes): New function.
13702 Allow to_make_corefile_notes vector to be taken over.
13703 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13704 interface layer if not target_has_execution (may be a corefile).
13705 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13706 * config/sparc/sun4sol2.mh: Ditto.
13707 * config/alpha/alpha-linux.mh: Ditto.
13708 * config/arm/linux.mh: Ditto.
13709 * config/i386/x86-64linux.mh: Ditto.
13710 * config/ia64/linux.mh: Ditto.
13711 * config/m68k/linux.mh: Ditto.
13712 * config/mips/linux.mh: Ditto.
13713 * config/powerpc/linux.mh: Ditto.
13714 * config/sparc/linux.mh: Ditto.
13715
c6b92abd
MS
137162002-01-07 Michael Snyder <[email protected]>
13717
13718 * arm-linux-nat.c: Remove references to regcache.c internal data
13719 (registers[] and register_valid[]).
13720
4b09dc8c
MS
137212002-01-07 Michael Snyder <[email protected]>
13722
abf22e64
AJ
13723 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13724 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
13725 symbol file and shlibs.
13726 * Makefile.in: Add rule for linux-proc.o.
13727 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13728 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13729 * config/arm/linux.mh: Ditto.
13730 * config/i386/linux.mh: Ditto.
13731 * config/i386/x86-64linux.mh: Ditto.
13732 * config/ia64/linux.mh: Ditto.
13733 * config/m68k/linux.mh: Ditto.
13734 * config/mips/linux.mh: Ditto.
13735 * config/powerpc/linux.mh: Ditto.
13736 * config/sparc/linux.mh: Ditto.
13737
c25b74ac
PM
137382002-01-06 Pierre Muller <[email protected]>
13739
13740 * win32-nat.c: Add i386-tdep.h dependency.
13741
94cd915f
MS
137422002-01-07 Michael Snyder <[email protected]>
13743
c7cccb76
MS
13744 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13745 instead of bfd_get_arch_size. Don't bail out just because
13746 there's no exec_bfd.
abf22e64 13747
34c0bd93
MS
13748 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13749 * p-valprint.c (pascal_object_print_value): Ditto.
13750 * somread.c (som_symtab_read): Ditto.
13751 * symfile.c (simple_free_overlay_region_table): Ditto.
13752 * valops.c (value_assign): Ditto.
13753
21c1c920
MS
13754 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13755 use tilde_expand and strerror for opening save-tracepoints file.
13756
5bbd998e
MS
13757 * thread-db.c (thread_db_new_objfile): Indendation fix.
13758
94cd915f
MS
13759 * infptrace.c (GDB_MAX_ALLOCA): New define.
13760 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 13761 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
13762 can be overridden with whatever value is appropriate to the host).
13763 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13764 alloca to allocate potentially large buffer.
13765 * rs6000-nat.c (child_xfer_memory): Ditto.
13766 * symm-nat.c (child_xfer_memory): Ditto.
13767 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13768
494e8a93
JSC
137692002-01-07 Jackie Smith Cashion <[email protected]>
13770
13771 From Nick Clifton <[email protected]>
13772 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13773
d0e1d48e
MS
137742002-01-07 Michael Snyder <[email protected]>
13775
abf22e64 13776 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
13777 Don't use exec_bfd if it's NULL.
13778
290b2c7a
MK
137792002-01-06 Mark Kettenis <[email protected]>
13780
abf22e64 13781 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 13782
aef21287
AC
137832002-01-06 Andrew Cagney <[email protected]>
13784
13785 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13786 * gnu-nat.c: Ditto.
13787
30efa627
AC
137882002-01-06 Andrew Cagney <[email protected]>
13789
13790 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13791 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13792 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13793 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13794 z8k-coff have not been multi-arched. Update z8k-coff build
13795 status.
13796
9b4ff276
AC
137972002-01-06 Andrew Cagney <[email protected]>
13798
13799 * MAINTAINERS: Mark a29k target as obsolete.
13800 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13801 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13802 comments.
13803 * NEWS: Note that a29k targets are obsolete.
13804 * a29k-tdep.c: Mark as obsolete.
13805 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13806 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13807 a29k-*-vxworks* targets as obsolete.
13808 * remote-adapt.c: Obsolete.
13809 * remote-eb.c: Obsolete.
13810 * remote-mm.c: Obsolete.
13811 * remote-udi.c: Obsolete.
13812 * config/a29k/a29k-udi.mt: Obsolete.
13813 * config/a29k/a29k.mt: Obsolete.
13814 * config/a29k/tm-a29k.h: Obsolete.
13815 * config/a29k/tm-vx29k.h: Obsolete.
13816 * config/a29k/vx29k.mt: Obsolete.
13817
a9011d31
AC
138182002-01-05 Andrew Cagney <[email protected]>
13819
13820 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13821 with BFD_ENDIAN_BIG.
13822
9299404e
AC
138232002-01-05 Andrew Cagney <[email protected]>
13824
13825 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13826 * configure, config.in: Re-generate.
13827 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13828 * defs.h: Do not include <endian.h>.
13829
7e89e357
JT
138302002-01-05 Jason Thorpe <[email protected]>
13831
13832 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13833 * config.in: Regenerate.
13834 * configure.in: Update copyright years.
13835 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13836 * configure: Regenerate.
13837 * i386bsd-nat.c: Update copyright years.
13838 (fill_gregset): Use regcache_collect.
13839 (fetch_inferior_registers): Only fetch integer registers
13840 if requested to do so. Add support for XMM registers
13841 using PT_GETXMMREGS.
13842 (store_inferior_registers): Only store integer registers
13843 if requested to do so. Add support for XMM registers
13844 using PT_SETXMMREGS.
13845 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13846 (store_inferior_registers): Remove.
13847 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13848 (fetch_elfcore_registers): New function.
13849 (i386nbsd_elfcore_fns): New.
13850 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13851 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13852 i386bsd-nat.o.
13853 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13854 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13855 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13856 * config/i386/tm-nbsd.h: Update copyright years.
13857 (HAVE_SSE_REGS): Define.
13858 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13859 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13860 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13861 (SIGCONTEXT_PC_OFFSET): Remove.
13862 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13863
a752853e
AC
138642002-01-05 Andrew Cagney <[email protected]>
13865
13866 * configure.tgt: Remove powerpc-*-macos* target.
13867 * config/m68k/xm-mpw.h: Delete file.
13868 * config/xm-mpw.h: Delete file.
13869 * ser-mac.c: Delete file.
13870 * mpw-make.sed: Delete file.
13871 * mpw-config.in: Delete file.
13872 * mac-xdep.c: Delete file.
13873 * mac-gdb.r: Delete file.
13874 * mac-defs.h: Delete file.
13875 * mac-nat.c: Delete file.
13876 * config/powerpc/macos.mh: Delete file.
13877 * config/powerpc/macos.mt: Delete file.
13878 * config/powerpc/nm-macos.h: Delete file.
13879 * config/powerpc/tm-macos.h: Delete file.
13880 * source.c (openp, open_source_file): Remove obsolete code.
13881 * top.c (gdb_readline): Ditto.
13882 * utils.c (query): Ditto.
13883 * event-top.c (display_gdb_prompt): Ditto.
13884 * Makefile.in (ser-mac.o): Delete obsolete target.
13885 * NEWS: Update.
13886
d7449b42
AC
138872002-01-04 Andrew Cagney <[email protected]>
13888
13889 * defs.h (BIG_ENDIAN): Delete macro definition.
13890 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13891 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13892 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13893 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13894 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13895 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13896 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13897 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13898 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13899 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13900 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13901 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13902 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13903 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13904 * gdbarch.c: Re-generate.
13905
356374e8
DJ
139062002-01-04 Daniel Jacobowitz <[email protected]>
13907
13908 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13909 for core files.
13910
a2b8f8f8
JT
139112002-01-04 Jason Thorpe <[email protected]>
13912
13913 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13914
12466af9
AC
139152002-01-04 Andrew Cagney <[email protected]>
13916
13917 * value.h (value_ptr): Delete typedef.
13918
3549ab40
JT
139192002-01-04 Jason Thorpe <[email protected]>
13920
13921 * i386nbsd-nat.c: Update copyright years.
13922 Include i386-tdep.h.
13923
fedbd091
EZ
139242002-01-04 Elena Zannoni <[email protected]>
13925
13926 * stabsread.c: Update copyright years.
13927
13928 From Debashis Mahata <[email protected]>:
13929 (read_struct_fields): Deal with Sun C compiler erroneous stab
13930 output for structs and unions.
fec8b34f 13931 Fix PR gdb/269.
fedbd091 13932
eb43544b
DJ
139332002-01-04 Daniel Jacobowitz <[email protected]>
13934
13935 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13936 prototype.
13937
1514d34e
DJ
139382002-01-04 Daniel Jacobowitz <[email protected]>
13939
13940 * cp-abi.c: Fix whitespace.
13941 (baseclass_offset): New wrapper function.
13942 * cp-abi.h (baseclass_offset): Add prototype.
13943 (struct cp_abi_ops): Add baseclass_offset pointer.
13944
13945 * valops.c (vb_match): Move to...
13946 * gnu-v2-abi.c (vb_match): here.
13947 * valops.c (baseclass_offset): Move to...
13948 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13949
13950 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13951
13952 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13953 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13954 * hpacc-abi.c (init_hpacc_ops): Likewise.
13955
7f8c9282
DJ
139562002-01-04 Daniel Jacobowitz <[email protected]>
13957
13958 * valops.c (find_overload_match): Accept obj as a
13959 reference parameter. Update it before returning.
13960 * value.h (find_overload_match): Update prototype.
13961 * eval.c (evaluate_subexp_standard): Pass object to
13962 find_overload_match by reference.
13963
f23631e4
AC
139642002-01-03 Andrew Cagney <[email protected]>
13965
13966 * valarith.c: Replace value_ptr with struct value pointer. Remove
13967 register attribute from value declarations.
13968 * valops.c: Ditto.
13969 * value.h: Ditto.
13970 * scm-lang.c (scm_lookup_name): Ditto.
13971
79e10fab 139722002-01-03 Michael Snyder <[email protected]>
abf22e64 13973
79e10fab
AC
13974 Abstract the functionality of iterating over mapped memory
13975 regions into a general purpose iterator function.
abf22e64 13976 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
13977 iterator for memory sections.
13978 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13979 (solib_mappings_callback): New function, callback for above.
13980 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13981 (info_mappings_callback): New function, callback for above.
13982
13983 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13984
c5ad026a
MK
139852002-01-01 Mark Kettenis <[email protected]>
13986
d2a7c97a
MK
13987 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13988 * i386-tdep.c: Include "elf-bfd.h".
13989 (process_note_abi_tag_sections): New function.
13990 (i386_gdbarch_init): Add code to recognize various OS/ABI
13991 combinations.
13992
c5ad026a
MK
13993 * maint.c (_initialize_maint_cmds): Add missing \ in
13994 string-literal.
13995
a1a5b71e 13996For older changes see ChangeLog-2001
c906108c
SS
13997\f
13998Local Variables:
13999mode: change-log
14000left-margin: 8
14001fill-column: 74
14002version-control: never
14003End:
This page took 2.495392 seconds and 4 git commands to generate.