gdb/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0876f84a
DJ
12006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
2
3 * remote.c (PACKET_qXfer_auxv): New, renamed from PACKET_qPart_auxv.
4 (remote_supported_packet): Remove #if 0.
5 (remote_protocol_features): Add qPart:auxv:read.
6 (remote_unescape_input): New function.
7 (readchar): Don't mask off the high bit.
8 (read_frame): Use fputstrn_filtered for packet data.
9 (getpkt_sane): Return the number of bytes read or -1. Use
10 fputstrn_unfiltered.
11 (remote_read_qxfer): New.
12 (remote_xfer_partial): Use it for TARGET_OBJECT_AUXV.
13 (_initialize_remote): Update packet registration.
14 * defs.h (fputstrn_filtered): New prototype.
15 * utils.c (fputstrn_filtered): New.
16 * NEWS: Mention qXfer.
17
13547ab6
DJ
182006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
19
20 * target.c (target_read): Stop if target_read_partial returns 0
21 when some bytes have already been read.
22 (target_write): Likewise for target_write_partial.
23 (target_read_partial, target_write_partial): Make static.
24 (target_read_alloc): New.
25 * target.h: Doc fixes.
26 (target_read_partial, target_write_partial): Delete prototypes.
27 (target_read_alloc): New prototype.
28
29 * auxv.c (target_auxv_read): Delete.
30 (target_auxv_search, fprint_target_auxv): Use target_read_alloc.
31 * auxv.h (target_auxv_read): Delete prototype.
32 * avr-tdep.c (avr_io_reg_read_command): Use target_read_alloc.
33 * ia64-tdep.c (getunwind_table, get_kernel_table): Likewise.
34 * linux-nat.c (linux_nat_make_corefile_notes): Likewise.
35 * procfs.c (procfs_make_note_section): Likewise.
36 * remote.c (remote_xfer_partial): Don't loop here.
37 * sparc-tdep.c (sparc_fetch_wcookie): Use target_read.
38
edfb1a26
DJ
392006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
40
41 * arm-linux-tdep.c: Doc fixes.
42 (ARM_SIGCONTEXT_R0, ARM_UCONTEXT_SIGCONTEXT)
43 (ARM_OLD_RT_SIGFRAME_SIGINFO, ARM_OLD_RT_SIGFRAME_UCONTEXT)
44 (ARM_NEW_RT_SIGFRAME_UCONTEXT, ARM_NEW_SIGFRAME_MAGIC): New
45 constants.
46 (arm_linux_sigreturn_init, arm_linux_rt_sigreturn_init): Support
47 the new signal frame layouts.
48
6e2c7fa1
DJ
492006-07-12 Mike Frysinger <vapier@gentoo.org>:
50 Daniel Jacobowitz <dan@codesourcery.com>
51
52 * Makefile.in (init.c) [LANG, LC_ALL]: Set to `c'.
53 * gdb_indent.sh, gdb_mbuild.sh, observer.sh: Likewise.
54 * gdbarch.sh: Correct comment.
55
e0f2823e
DJ
562006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
57
58 * MAINTAINERS: Add Alfred Szmidt for the Hurd.
59
24c41760
MK
602006-07-11 Mark Kettenis <kettenis@gnu.org>
61
62 * alpha-tdep.h (ALPHA_INSN_SIZE): New define.
63
8a112c90
MK
642006-07-10 Mark Kettenis <kettenis@gnu.org>
65
66 * alphaobsd-tdep.c: New file.
67 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Do not register a
68 handler for GDB_OSABI_OPENBSD_ELF.
69 * Makefile.in (ALLDEPFILES): Add alphaobsd-tdep.c.
70 (alphaobsd-tdep.o): New target.
71 * config/alpha/obsd.mt: New file.
72 * configure.tgt (alpha*-*-openbsd*): Set gdb_target to obsd.
73
9823e921
RH
742006-07-10 Richard Henderson <rth@redhat.com>
75
76 * alpha-tdep.h (struct gdbarch_tdep): Add return_in_memory.
77 * alpha-tdep.c (alpha_register_byte): Remove.
78 (alpha_extract_struct_value_address): Remove.
79 (alpha_return_value): New.
80 (alpha_return_in_memory_always): New.
81 (alpha_gdbarch_init): Set tdep->return_in_memory. Don't call
82 set_gdbarch_deprecated_register_byte. Do call set_gdbarch_return_value
83 instead of set_gdbarch_deprecated_use_struct_convention,
84 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
85 or set_gdbarch_deprecated_extract_struct_value_address.
86 * alphafbsd-tdep.c (alphafbsd_return_in_memory): Rename from
87 alphafbsd_use_struct_convention, remove gcc_p argument.
88 (alphafbsd_init_abi): Set tdep->return_in_memory instead of
89 set_gdbarch_deprecated_use_struct_convention.
90
789f3b5f
MK
912006-07-09 Mark Kettenis <kettenis@gnu.org>
92
b0ca8573
MK
93 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): New
94 prototype.
95 * alphanbsd-tdep.c (alphanbsd_regset_from_core_section): Handle
96 a.out-style core file format here. Make global.
97 (alphanbsd_regset_from_core_section): Remove.
98 (alphanbsd_sigtramp_offset): Make static.
99 (alphanbsd_aout_init_abi): Remove.
100 (alphanbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_ELF for
101 a.out style core files.
102 (_initialize_alphanbsd_tdep): Do not register a handler for
103 GDB_OSABI_NETBSD_AOUT.
104
3beabdb2 105 * alphabsd-tdep.h: Tweak comments.
3b03cc43 106 (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove.
3beabdb2
MK
107 * alphanbsd-tdep.c: Reorder includes. Include "regset.h".
108 (ALPHANBSD_SIZEOF_GREGS, ALPHANBSD_SIZEOF_FPREGS): New defines.
109 (alphanbsd_supply_fpregset, alphanbsd_supply_gregset)
110 (alphanbsd_aout_supply_gregset): New functions.
111 (alphanbsd_gregset, alphanbsd_fpregset, alphanbsd_aout_gregset):
112 New variables.
113 (alphanbsd_regset_from_core_section)
114 (alphanbsd_aout_regset_from_core_section): New functions.
115 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
116 (alphanbsd_core_fns, alphanbsd_elf_fns): Remove variables.
117 (alphanbsd_init_abi): Set regset_from_core_section.
118 (alphanbsd_aout_init_abi, alphanbsd_core_osabi_sniffer): New
119 functions.
120 (_initialize_alphanbsd_tdep): Register NetBSD core file sniffer.
121 Use alphanbsd_aout_init_abi whre appropriate. Don't call
122 deprecated_add_core_fns.
123 * Makefile.in (alphanbsd-tdep.o): Update dependencies.
124
8fe7c54b
MK
125 * alphabsd-tdep.c (alphabsd_supply_reg, alphabsd_fill_reg)
126 (alphabsd_supply_fpreg, alphabsd_fill_fpreg): Add missing spaces.
127
789f3b5f
MK
128 * alphanbsd-tdep.c (alphanbsd_init_abi): Use
129 svr4_lp64_fetch_link_map_offsets instead of
130 nbsd_lp64_solib_svr4_fetch_link_map_offsets.
131
09153d55
AS
1322006-07-06 Andrew Stubbs <andrew.stubbs@st.com>
133
134 * parse.c (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block
135 write_exp_elt_longcst, write_exp_elt_dblcst, write_exp_elt_type,
136 write_exp_elt_intern): Zero initialize tmp.
137
2ec3381a
DJ
1382006-07-05 Daniel Jacobowitz <dan@codesourcery.com>
139
140 * remote.c (remote_xfer_partial): Remove KOD support.
141 * target.h (enum target_object): Remove TARGET_OBJECT_KOD.
142 * MAINTAINERS: Move Kernel Object Display entry to past maintainers.
071d802b
MK
143 * Makefile.in (SFILES, kod_h, COMMON_OBS, kod.o, kod-cisco.o):
144 Remove KOD support.
2ec3381a
DJ
145 * mi/mi-cmds.c (mi_cmds): Remove dummy KOD commands.
146 * NEWS: Mention KOD.
147 * kod.h, kod.c, kod-cisco.c: Delete files.
148
7fca722e
DJ
1492006-07-04 Daniel Jacobowitz <dan@codesourcery.com>
150
151 * remote.c (init_remote_state): Use xrealloc instead of xmalloc.
152
4a35b02a
NW
1532006-07-03 Nathan J. Williams <nathanw@wasabisystems.com>
154
155 * bsd-kvm.c (bsd_kvm_open): Open the KVM interface read-write if
156 write_files is set.
157
a6f0780a
EZ
1582006-06-24 Eli Zaretskii <eliz@gnu.org>
159
160 * defs.h (DIRNAME_SEPARATOR) [!__CYGWIN__ && _WIN32]: Define to `;'.
161
e4c16157
DJ
1622006-06-23 Daniel Jacobowitz <dan@codesourcery.com>
163
164 * arm-tdep.c (arm_register_type): Use unsigned types for registers.
165 Add special types for sp and pc.
166 * Makefile.in (arm-tdep.o): Update.
167
a31ea83d
DJ
1682006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
169
170 * remote.c (remote_escape_output): New function.
171 (remote_write_bytes): Use remote_escape_output.
172
be2a5f71
DJ
1732006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
174
175 * NEWS: Mention qSupported.
176 * remote.c (struct remote_state): Add explicit_packet_size.
177 (get_remote_packet_size): Check explicit_packet_size.
178 (get_memory_packet_size): Likewise.
179 (PACKET_qSupported): New enum value.
180 (struct protocol_feature, remote_supported_packet)
181 (remote_packet_size, remote_protocol_features)
182 (remote_query_supported): New.
183 (remote_open_1): Reset explicit_packet_size. Call
184 remote_query_supported.
185 (_initialize_remote): Register qSupported.
186
42b575e5
AS
1872006-06-21 Andrew Stubbs <andrew.stubbs@st.com>
188
189 * cli/cli-script.c (realloc_body_list): Zero new parts of body_list.
190
9ae03986
JB
1912006-06-20 Joel Brobecker <brobecker@adacore.com>
192
193 * GDB 6.5 released from GDB 6.5 branch.
194
8b07f6d8
MS
1952006-06-19 Michael Snyder <msnyder@redhat.com>
196
197 * mips-tdep.c (mips_eabi_push_dummy_call): For 32 bit ABI, to
198 decide how many registers it takes to pass a floating point
199 argument, what matters is the size of a floating point register
200 (not the size of a general purpose register).
201 (mips_o32_push_dummy_call): Ditto.
202
ec5a4d75
KI
2032006-06-19 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
204
205 * configure.tgt: Add gdbserver support for m32r-linux.
206
8d3239d5
MK
2072006-06-18 Mark Kettenis <kettenis@gnu.org>
208
209 * m68klinux-tdep.c (m68k_linux_init_abi): Fix typo in comment.
210
14e60db5
DJ
2112006-06-15 Daniel Jacobowitz <dan@codesourcery.com>
212
213 * infrun.c (insert_step_resume_breakpoint_at_caller): New function,
214 based on insert_step_resume_breakpoint_at_frame.
215 (handle_inferior_event): Update comments. Use
216 insert_step_resume_breakpoint_at_caller.
217 (insert_step_resume_breakpoint_at_frame): Revise comments.
218
81a17f79
JB
2192006-06-14 Daniel Jacobowitz <dan@codesourcery.com>
220
221 * dwarf2read.c (read_unspecified_type): New function.
222 (read_type_die): Handle DW_TAG_unspecified_type.
223 (Committed by Julian Brown.)
224
6490cafe
DJ
2252006-06-13 Daniel Jacobowitz <dan@codesourcery.com>
226
227 * symfile.c (load_command): Check for a changed executable before
228 "load".
229
22e47e37
FF
2302006-06-13 Fred Fish <fnf@specifix.com>
231
232 * mips-tdep.c (mips_find_long_section): New function.
233 (mips_gdbarch_init): Use it to set long and pointer sizes.
234
5600ea19
NS
2352006-06-13 Nathan Sidwell <nathan@codesourcery.com>
236
237 * remote-file.io.c (remote_fileio_func_system): Treat zero length
238 string as NULL. Adjust for NULL pointer argument.
239 * doc/gdb.texinfo (system): Document behaviour with zero length
240 string.
241
bb572ddd
DJ
2422006-06-12 Daniel Jacobowitz <dan@codesourcery.com>
243
244 * remote.c (set_remote_protocol_packet_cmd)
245 (show_remote_protocol_packet_cmd): New prototypes.
246 (remote_set_cmdlist, remote_show_cmdlist): Move higher.
247 (struct packet_config): Make name and title const.
248 (add_packet_config_cmd): Remove unnecessary arguments.
249 (_initialize_remote): Update calls.
250
98739726
DJ
2512006-06-10 Daniel Jacobowitz <dan@codesourcery.com>
252
253 * mingw-hdep.c (gdb_select): Always check for NULL fd sets
254 before calling FD_ISSET. Correct check for exceptfds which
255 previously tested writefds.
256
2b949cb6
JB
2572006-06-09 Daniel Jacobowitz <dan@codesourcery.com>
258 Julian Brown <julian@codesourcery.com>
259
4a9d57ab 260 * dwarf2read.c (partial_read_comp_unit_head): Accept version 3.
2b949cb6 261
5b031165
JB
2622006-06-09 Julian Brown <julian@codesourcery.com>
263
264 * MAINTAINERS (Write After Approval): Add myself.
265
b2d6f210
MS
2662006-06-08 Michael Snyder <msnyder@redhat.com>
267
268 * mips-tdep.c (fp_register_arg_p): Recognize floating point typedefs.
269
1dd41f16
NS
2702006-06-08 Nathan Sidwell <nathan@codesourcery.com>
271
6dd0fba6
NS
272 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): New.
273 (m68k_gdbarch_init): Set it for dwarf & dwarf2 reg number
274 conversion. Use M68K_NUM_REGS for number of regs.
275
ad9a8f3f
NS
276 * remote-fileio.c (remote_fileio_reset): New.
277 * remote-fileio.h (remote_fileio_reset): Prototype.
278 * remote.c (extended_remote_restart, remote_open_1): Call it.
279
280 * remote.c (remote_open_1): Do preopen tasks before
1dd41f16
NS
281 irreversably destroying state.
282
ea9c271d
DJ
2832006-06-08 Daniel Jacobowitz <dan@codesourcery.com>
284
719abd53 285 * remote.c (struct remote_state): New type, only containing
ea9c271d
DJ
286 buf and buf_size.
287 (remote_state): New variable.
288 (get_remote_state): New function.
289 (struct remote_arch_state): Renamed from struct remote_state.
290 Removed buf and buf_size.
291 (get_remote_arch_state): Renamed from get_remote_state. All
292 necessary callers updated to call this function.
293 (init_remote_state): Initialize the architecture-specific state.
294 Update the target-specific state if necessary.
295 (get_remote_packet_size): New function. All previous references
296 changed to use this accessor function.
297 (packet_reg_from_regnum, packet_reg_from_pnum): Take a
298 remote_arch_state instead of a remote_state. All callers changed.
299 (_initialize_remote): Initialize the packet buffer here.
300
5cffb350
NS
3012006-06-06 Nathan Sidwell <nathan@codesourcery.com>
302
ea9c271d 303 * remote.c (remote_insert_watchpoint): Return -1, rather than
5cffb350
NS
304 fatal error if packet is disabled.
305 (remote_remove_watchpoint, remote_insert_hw_breakpoint,
306 remote_remove_hw_breakpoint): Likewise.
307
8a786d82
NR
3082006-06-02 Nick Roberts <nickrob@snap.net.nz>
309
310 * breakpoint.c (print_it_typical): Use EXEC_ASYNC_LOCATION_REACHED.
311
f49e4e6d
MS
3122006-05-31 Michael Snyder <msnyder@redhat.com>
313
314 * mips-tdep.c: Comment tweaks.
315
20e95c23
DJ
3162006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
317
318 * Makefile.in (top_builddir): Update comments.
319 (INTL_DIR, INTL_SRC): Delete.
320 (INTL, INTL_DEPS, INTL_CFLAGS): Update.
321 * acinclude.m4: Include new gettext macros.
322 * configure.ac: Use ZW_GNU_GETTEXT_SISTER_DIR. Remove copied
323 CATALOGS code.
324 * aclocal.m4, configure: Regenerated.
325
9308fc88
DJ
3262006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
327
328 * Makefile.in (arm-linux-nat.o): Update dependencies.
329 * arm-linux-nat.c: Include "gdb_proc_service.h".
330 (PTRACE_GET_THREAD_AREA): Define.
331 (ps_get_thread_area): New function.
332
46ea248b
AO
3332006-05-28 Alexandre Oliva <aoliva@redhat.com>
334
335 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
336 DWARF2_FRAME_REG_SAVED_VAL_OFFSET and
337 DWARF2_FRAME_REG_SAVED_VAL_EXP.
338 * dwarf2-frame.c (execute_cfa_program): Handle val_offset,
339 val_offset_sf and val_expression.
340 (dwarf2_frame_prev_register): Handle the new reg rules.
341 (dwarf2_frame_this_id): Use pc instead of function entry point.
342
56c987f6
AO
3432006-05-28 Alexandre Oliva <aoliva@redhat.com>
344
345 * dwarf2-frame.c (struct dwarf2_cie): Add signal_frame field.
346 (dwarf2_frame_sniffer): Use it.
347 (decode_frame_entry_1): Set it according to augmentation "S".
348
5648af48
JB
3492006-05-27 Joel Brobecker <brobecker@adacore.com>
350
351 From Peter Schauer <peterschauer@gmx.net>
352 * m2-typeprint.c (m2_record_fields): Move variable declarations
353 to the begining of the block.
354
03a73f77
MM
3552006-05-23 Mark Mitchell <mark@codesourcery.com>
356
357 * mt-tdep.c (mt_register_name): Correct out-of-range logic to
358 include additional registers.
359
360 * mt-tdep.c (mt_gdb_regnums): Add ZI2, ZQ2, Ichannel2,
361 Iscramb2, Qscramb2, Qchannel2.
362 (mt_register_name): Likewise.
363 (mt_copro_register_type): Describe ZI2 and ZQ2.
364
365 * mt-tdep.c (mt_gdb_regnums): Define
366 MT_COPRO_PSEUDOREG_MAC_REGNUM.
367 (mt_register_name): Use it.
368 (mt_copro_register_type): Likewise.
369 (mt_register_type): Likewise.
370 (mt_pseudo_register_read): Likewise. Read the MAC register, not
371 the coprocessor register.
372 (mt_pseudo_register_write): Likewise.
373
2b3c8945
CF
3742006-05-21 Christopher Faylor <cgf@timesys.com>
375
376 * win32-nat.c (cygwin_exceptions): New variable.
377 (handle_exception): Treat a cygwin exception like a normal exception if
378 cygwin_exceptions is true.
379 (_initialize_win32_nat): Add "set cygwin-exceptions" handler.
380
f79daebb
GM
3812006-05-20 Gaius Mulley <gaius@glam.ac.uk>
382
383 * NEWS: (Improved Modula-2 language support): New section.
384
b4e70030
JB
3852006-05-19 Joel Brobecker <brobecker@adacore.com>
386
387 * configure: Regenerate using proper version of autoconf.
388
a1f5b845
FF
3892006-05-19 Fred Fish <fnf@specifix.com>
390
391 * Makefile.in: Fix spelling of 'explicitly' and 'explicit'.
392 * dwarfread.c: Fix spelling of 'unexpected'.
393 * mips-tdep.c: Fix spelling of 'possible' and 'Determine'.
394 * stack.c: Fix spelling of 'RETURN_VALUE'.
395
82d03102
PG
3962006-05-18 Paul Gilliam <pgilliam@us.ibm.com
397
398 * solib-svr4.c (enable_break): Breakup a long line into 3 shorter ones.
399
f2da6b3a
DJ
4002006-05-17 Daniel Jacobowitz <dan@codesourcery.com>
401
402 * dwarf2-frame.c: Include "value.h".
403 (read_reg): Use unpack_long and register_type.
404 * Makefile.in (dwarf2-frame.o): Update.
405
1f5befc1
DJ
4062006-05-17 Daniel Jacobowitz <dan@codesourcery.com>
407
408 * remote-rdp.c: Deleted.
409 * NEWS: Mention removal of remote-rdp.c.
410
411 * Makefile.in (ALLDEPFILES): Remove remote-rdp.c.
412 (remote-rdp.o): Delete.
413 * README: Remove description of remote-rdp.c.
414 * arm-tdep.c (arm_breakpoint_from_pc): Remove obsolete comment.
415 * config/arm/embed.mt (TDEPFILES): Remove remote-rdp.o.
416
cd96dfc9
DJ
4172006-05-16 Daniel Jacobowitz <dan@codesourcery.com>
418
419 * ser-e7kpc.c: Include <time.h> if it is available.
420
4212006-05-16 Joel Brobecker <brobecker@adacore.com>
e374b601
JB
422
423 * version.in (version.in): Bump version number to 6.5.50 now
424 that the gdb-6.5 branch has been created.
425 * NEWS: Create a new section for changes that are included
426 since gdb-6.5. Name the "since gdb-6.4" section as the "in gdb-6.5"
427 section.
428
13942a42
JB
4292006-05-16 Jim Blandy <jimb@codesourcery.com>
430
431 * MAINTAINERS (Authorized Committers): Gaius Mulley has accepted
432 the Global Maintainers' invitation to be an authorized committer
433 for the Modula-2 support.
434
8599da2d
MK
4352006-05-15 Mark Kettenis <kettenis@gnu.org>
436
437 * ppcobsd-nat.c: Include "gdb_assert.h".
438 [PT_GETFPREGS] (getfpregs_supplies): New function.
439 (ppcobsd_fetch_registers, ppcobsd_fetch_registers): Hanlde OS
440 versions that have PT_GETFPREGS.
441 (_initialize_ppcobsd_nat) [PT_GETFPREGS]: Initialize
442 ppcobsd_fpreg_offsets.
443 * ppcobsd-tdep.h (ppcobsd_fpreg_offsets, ppcobsd_fpregset):
444 Declare.
445 * ppcobsd-tdep.c (ppcobsd_fpreg_offsets, ppcobsd_fpregset): New
446 variables.
447 (_initialize_ppcobsd_tdep): Initialize ppcobsd_fpreg_offsets.
448 * Makefile.in (ppcobsd-nat.o): Update dependencies.
449
4e8d927d
DJ
4502006-05-15 Daniel Jacobowitz <dan@codesourcery.com>
451
452 * configure.ac: Use GCC_HEADER_STDINT.
453 * acinclude.m4: Include stdint.m4.
454 * Makefile.in (gdb_stdint_h): Define.
455 (distclean): Remove gdb_stdint.h.
456 (Makefile, stamp-h): Update rules to generate only the correct
457 files.
458 (gdb_stdint.h, stamp-int): New rules.
459 * config.in, configure: Regenerated.
460
19ca80ba
DJ
4612006-05-15 Daniel Jacobowitz <dan@codesourcery.com>
462
463 * valprint.c: Include "exceptions.h".
464 (val_print): If something goes wrong while printing, supply an
465 error message.
466
245c7f48
DJ
4672006-05-15 Peter O'Gorman <gdb-patches@mlists.thewrittenword.com>
468
469 * source.c (get_current_source_symtab_and_line)
470 (set_current_source_symtab_and_line): Use { 0 }.
471 * cli/cli-cmds.c (list_command): Likewise.
472
53b33aeb
NR
4732006-05-14 Nick Roberts <nickrob@snap.net.nz>
474
475 * mi/gdb-mi.el (gdbmi-send): Correct regexp for repeat commands.
476 (gdbmi): Use new variable name gdb-pc-address.
477 (gdbmi-frame-handler): Use new variable name gdb-pc-address.
478 Check that a match has been found.
479
d3d3c7e6 4802006-05-13 Gaius Mulley <gaius@glam.ac.uk>
72019c9c 481
d3d3c7e6 482 * m2-lang.h: Added function extern prototypes for
229582b7 483 m2_is_long_set and get_long_set_bounds.
d3d3c7e6
GM
484 * m2-typeprint.c: Complete replacement.
485 (m2_print_type): Walk the Modula-2 type tree.
486 (m2_type_name): New function.
487 (m2_range): New function.
488 (m2_typedef): New function.
489 (m2_array): New function.
490 (m2_pointer): New function.
491 (m2_ref): New function.
492 (m2_unknown): New function.
493 (m2_union): New function.
494 (m2_procedure): New function.
495 (m2_print_bounds): New function.
496 (m2_short_set): New function.
497 (m2_is_long_set): New function.
498 (m2_get_discrete_bounds): New function.
499 (m2_is_long_set_of_type): New function.
500 (m2_long_set): New function.
501 (m2_record_fields): New function.
502 (m2_enum): New function.
1c547afb 503 * dwarf2read.c: Modified.
d3d3c7e6
GM
504 (read_set_type): New function.
505 (process_die): Call read_set_type.
1c547afb 506 (read_base_type): Modifed.
d3d3c7e6 507 (set_cu_language): Added Modula-2 case clause.
1c547afb 508 * m2-valprint.c: Complete replacement.
d3d3c7e6
GM
509 (print_function_pointer_address): New function.
510 (get_long_set_bounds): New function.
511 (m2_print_long_set): New function.
512 (print_unpacked_pointer): New function.
513 (print_variable_at_address): New function.
514 (m2_val_print): Replaced.
515 * gdb/MAINTAINERS (Write After Approval): Added
516 Gaius Mulley <gaius@glam.ac.uk>
72019c9c 517
def18405
MK
5182006-05-12 Mark Kettenis <kettenis@gnu.org>
519
520 * ppcnbsd-tdep.h: Update copyright year. Include <stddef.h>
521 (ppcnbsd_supply_reg, ppcnbsd_fill_reg, ppcnbsd_supply_fpreg)
522 (ppcnbsd_fill_fpreg): Remove prototypes.
523 (struct regset): Add forward declaration.
524 (ppcnbsd_gregset, ppcnbsd_fpregset): Extern declarations.
525 * ppcnbsd-tdep.c: Update copyright year. Include "gdbtypes.h",
526 "regset.h" and "gdb_string.h". Don't include "breakpoint.h",
527 "value.h", target.h and nbsd-tdep.h". Reorder includes.
528 (REG_FIXREG_OFFSET, REG_LR_OFFSET, REG_CR_OFFSET, REG_XER_OFFSET)
529 (REG_CTR_OFFSET, REG_PC_OFFSET, SIZEOF_STRUCT_REG)
530 (FPREG_FPR_OFFSET, FPREG_FPSCR_OFFSET, SIZEOF_STRUCT_FPREG):
531 Remove macros.
532 (ppcnbsd_supply_reg, ppcnbsd_fill_reg, ppcnbsd_supply_fpreg)
533 (ppcnbsd_fill_fpreg): Remove functions.
534 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
535 (ppcnbsd_core_fns, ppcnbsd_elfcore_fns): Remove variables.
536 (ppcnbsd_reg_offsets): New variable.
537 (ppcnbsd_gregset, ppcnbsd_fpregset): New variables.
538 (ppcnbsd_sigtramp_cache_init): Deal with new signal trampoline
539 introduced in NetBSD 2.0.
540 (ppcnbsd_sigtramp): Provide complete signal trampoline.
541 (ppcnbsd2_sigtramp): New variable.
542 (ppcnbsd_init_abi): Set svr4_fetch_link_map_offsets to
543 svr4_ilp32_fetch_link_map_offsets. Set regset_from_core_section.
544 Add ppcnbs2_sigtramp unwinder.
545 (_initialize_ppcnbsd_tdep): Don't use deprecated_add_core_fns.
546 Initialize ppcnbsd_reg_offsets.
547 * ppcnbsd-nat.c: Update copyright year. Reorder includes.
548 (getregs_supplies): Use regnum instead of regno.
549 (getfpregs_supplies): Likewise.
550 (ppcnbsd_fetch_inferior_registers): Likewise. Call
551 ppc_supply_gregset and ppc_suppply_fpregset instead of
552 ppcnbsd_supply_reg and ppcnbsd_supply_fpreg
553 (ppcnbsd_store_inferior_registers): Likewise. Call
554 ppc_collect_gregset and ppc_collect_fpregset instead of
555 ppcnbsd_fill_reg and ppcnbsd_fill_fpreg.
556 (ppcnbsd_supply_pcb): Use `gdb_byte *' instead of `char *'.
557 (_initialize_ppcnbsd_nat): Add some whitespace.
558 * Makefile.in (ppcnbsd-nat.o, ppcnbsd-tdep.o): Update dependencies.
559 * config/powerpc/nbsd.mh (NATDEPFILES): Remove infptrace.o.
560 (NAT_FILE): Remove.
561 * config/powerpc/nbsd.mt (TDEPFILES): Remove nbsd-tdep.o.
562
c4c50d37
DJ
5632006-05-11 Alfred M. Szmidt <ams@gnu.org>
564
565 * gnu-nat.c (inf_validate_procs): Don't use lvalue in assignments.
566
576c2025
FF
5672006-05-11 Fred Fish <fnf@specifix.com>
568
569 * symtab.c (skip_prologue_using_sal): Handle single line functions
570 like "foo(){}", which may optimize down to a single return inst.
571
ba906c08
SE
5722006-05-10 Steve Ellcey <sje@cup.hp.com>
573
574 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Remove
575 message.
576
4bf8967c
AS
5772006-05-09 Andreas Schwab <schwab@suse.de>
578
579 * dwarf2-frame.c (struct dwarf2_fde): Add eh_frame_p.
580 (execute_cfa_program): Add parameter eh_frame_p. Call
581 dwarf2_frame_eh_frame_regnum when true.
582 (dwarf2_frame_cache): Pass eh_frame_p from fde to
583 execute_cfa_program.
584 (decode_frame_entry_1): Call dwarf2_frame_eh_frame_regnum when
585 processing .eh_frame. Copy eh_frame_p to the new fde.
586 (struct dwarf2_frame_ops): Add eh_frame_regnum.
587 (dwarf2_frame_set_eh_frame_regnum): Define.
588 (dwarf2_frame_eh_frame_regnum): Define.
589
590 * dwarf2-frame.h (dwarf2_frame_set_eh_frame_regnum): Declare.
591 (dwarf2_frame_eh_frame_regnum): Declare.
592
55e969c1
DM
5932006-05-06 David S. Miller <davem@sunset.davemloft.net>
594
595 * linux-nat.c (linux_nat_do_thread_registers): Check for
596 NULL collect_regset method.
597
92f38ec2
UW
5982006-05-06 Ulrich Weigand <uweigand@de.ibm.com>
599
600 * s390-tdep.c (s390_collect_regset): New function.
601 (s390_gregset, s390x_gregset, s390_fpregset): Add it.
602
6fed56b4
NR
6032006-05-06 Nick Roberts <nickrob@snap.net.nz>
604
605 * dwarf2read.c: Make LOC_OPTIMIZED_OUT the default value for a
606 symbol.
607
6fc19103
UW
6082006-05-05 Ulrich Weigand <uweigand@de.ibm.com>
609
610 * linux-nat.c (exit_lwp): Fix NULL pointer access.
611 (linux_nat_handle_extended): New parameter STOPPING.
612 (wait_lwp): Call it with STOPPING equals 1.
613 (linux_nat_wait): Call it with STOPPING equals 0.
614
d539ed7e
UW
6152006-05-05 Ulrich Weigand <uweigand@de.ibm.com>
616
617 * linux-nat.c (linux_nat_wait): Do not short-cut reporting
618 of 'uninteresting' signals when single-stepping.
619
49101e1c
DJ
6202006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
621
622 * MAINTAINERS: Move NEWS to the documentation entry.
623
4f844a66
DM
6242006-05-05 David S. Miller <davem@sunset.davemloft.net>
625
626 * linux-nat.c (linux_nat_do_thread_registers): Use the
627 regset_from_core_section infrastructure if the target
628 supports it.
629 * Makefile.in: Update dependencies.
bcc98f88
DM
630 * linux-thread-db.c (thread_db_store_registers): Use
631 regcache_raw_collect.
4f844a66 632
411cb3f9
PG
6332006-05-05: Paul Gilliam <pgilliam@us.ibm.com>
634
635 * ppc-linux-nat.c: Clean up types for ptrace.
636 Replace (CORE_ADDR) with (uintptr_t) to avoid the size difference
637 between a CORE_ADDR and a void* on ppc64 systems compiled for 32-bits.
638
597320e7
DJ
6392006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
640
641 * remote.c (remote_disconnect): Add TARGET argument.
642 * target.c (debug_to_disconnect): Delete.
643 (update_current_target): Do not inherit to_disconnect.
644 (target_disconnect): Search for a target to implement to_disconnect.
645 (setup_target_debug): Do not reference to_disconnect.
646 * target.h (struct target_ops): Add target argument to
647 to_disconnect.
648
401835eb
FF
6492006-05-06 Fred Fish <fnf@specifix.com>
650
651 * mips-tdep.c (mips_o64_push_dummy_call): Left shift big endian
652 structs or unions independent of ABI register size.
653
7a076fd2
FF
6542006-05-06 Fred Fish <fnf@specifix.com>
655
656 * mips-tdep.c (mips_o64_return_value): Replace stub that always
657 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
658
eec01795
DJ
6592006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
660
661 * mi/mi-main.c (captured_mi_execute_command): Check the return
662 value of -interpreter-exec.
663
14b3d9c9
JB
6642006-05-03 Vladimir Prus <ghost@cs.msu.su>
665
411cb3f9
PG
666 * varobj.c (c_value_of_variable): Ignore top-level references.
667 (Committed by Jim Blandy.)
14b3d9c9 668
1893a4c0
MK
6692006-04-30 Mark Kettenis <kettenis@gnu.org>
670
671 * breakpoint.c (insert_single_step_breakpoint): Make a failure to
672 insert a single-step breakpoint an error instead of a warning.
673
21f79b33
NW
6742006-05-01 Nathan J. Williams <nathanw@wasabisystems.com>
675
676 * ppcnbsd-tdep.c (ppcnbsd_return_value): Change type of last two
677 arguments from void * to gdb_byte *.
678
b8db102d
MS
6792006-04-26 Michael Snyder <msnyder@redhat.com>
680
681 * linux-fork.c (_initialize_linux_fork): Rename "delete-fork"
682 command to "delete fork" (no hyphen), compatible with other
683 "delete" commands.
684 (info_forks_command): Accept a fork ID argument, for info
685 on a single fork. Report if no matching forks.
686
bc0c849e
MK
6872006-04-25 Mark Kettenis <kettenis@gnu.org>
688
1893a4c0
MK
689 * breakpoint.c (remove_single_step_breakpoints): Bail out early if
690 no breakpoints are inserted.
691
bc0c849e
MK
692 From Masaki MURANAKA <monaka@monami-software.com>:
693 * mips-mdebug-tdep.c (mips_mdebug_frame_prev_register): Change
694 type of last argument to `gdb_byte *'
695
5f1fb6dc
JB
6962006-04-25 Jim Blandy <jimb@codesourcery.com>
697
698 Add support for 'target remote |' on MinGW.
699 * ser-mingw.c (struct pipe_state): New structure.
700 (make_pipe_state, free_pipe_state, cleanup_pipe_state)
701 (pipe_windows_open, pipe_windows_close, pipe_windows_read)
702 (pipe_windows_write, pipe_wait_handle): New functions.
703 (_initialize_ser_windows): Register a "pipe" interface based on
704 them.
705
c3e2b812
DJ
7062006-04-24 Daniel Jacobowitz <dan@codesourcery.com>
707
708 * ser-mingw.c: Include <conio.h>.
709 (struct ser_console_state, struct net_windows_state): Add exit_select,
710 have_stopped, thread.
711 (pipe_select_thread, console_select_thread)
712 (net_windows_select_thread): Don't create a local state copy or
713 close stop_select. Exit on exit_select instead of stop_select. Set
714 have_stopped.
715 (console_select_thread): Don't report control keypresses as pending
716 input.
717 (pipe_select_thread): Allow stop_select to interrupt sleeping.
718 (set_console_wait_handle): Create exit_select and have_stopped.
719 Save the thread handle. Check _kbhit before starting a thread.
720 (ser_console_done_wait_handle): New.
721 (ser_console_close): Close new handles. Wait for the thread to
722 exit.
723 (new_windows_select_thread): Assert that an event occurred.
724 (net_windows_wait_handle): Check for pending input before starting
725 a thread.
726 (net_windows_done_wait_handle): New.
727 (net_windows_open): Create exit_select and have_stopped.
728 Save the thread handle.
729 (net_windows_close): Close new handles. Wait for the thread to
730 exit.
731 (_intiialize_ser_windows): Register done_wait_handle methods.
732
733 * serial.c [USE_WIN32API] (serial_done_wait_handle): New.
734 * serial.h [USE_WIN32API] (struct serial_ops): Add done_wait_handle.
735 [USE_WIN32API] (serial_done_wait_handle): New prototype.
736 * mingw-hdep.c (gdb_select): Use serial_done_wait_handle.
737
b8eb021a
AS
7382006-04-23 Andreas Schwab <schwab@suse.de>
739
740 * rs6000-tdep.c: Include "reggroups.h" only once.
741 * Makefile.in (rs6000-tdep.o): Update dependencies.
742
4f1520fb
FR
7432006-04-21 Frederic Riss <frederic.riss@st.com>
744
745 * dwarf2read.c (dwarf2_start_subfile): Change prototype to accept
746 compilation directory as last argument.
747 Always pass comp_dir as second argument to start_subfile and prepend
748 dirname to the filename when necessary.
749 Remove now superfluous search for pre-existing subfile.
750 (dwarf_decode_lines): Pass the compilation directory to
751 dwarf2_start_subfile.
752
0271fba4
MS
7532006-04-20 Michael Snyder <msnyder@redhat.com>
754
755 * 2006-03-22 Jim Blandy <jimb@redhat.com>
756 Add support for the Renesas M32C and M16C.
757
758 * configure.tgt (m32c-*-*): New entry.
759 * config/m32c/m32c.mt: New file.
760 * m32c-tdep.c: New file.
761 * Makefile.in (elf_m32c_h): New variable.
762 (m32c-tdep.o): New rule.
763 * NEWS: Mention new target.
764 * MAINTAINERS: Designate Jim Blandy as responsible maintainer.
765
cfde0993
MS
7662006-04-20 Michael Snyder <msnyder@redhat.com>
767
768 * remote.c: Fix spelling error in comment.
769
cba5fab9
DJ
7702006-04-20 Daniel Jacobowitz <dan@codesourcery.com>
771
772 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_prev_register):
773 Correct type of VALUEP. Reported by Jean-Rene Peulve
774 <jr.peulve@wanadoo.fr>.
775
cbba9205
KI
7762006-04-19 Masaki Muranaka <monaka@monami-software.com>
777
778 * m32r-rom.c: On MinGW, include winsock.h instead of sys/types.h,
779 netdb.h, netinet/in.h.
780 (m32r_upload_command); Add calls WSAStartup().
781 * remote-m32r-sdi.c: On MinGW, include winsock.h instead of
782 netinet/in.h.
783
8181d85f
DJ
7842006-04-18 Daniel Jacobowitz <dan@codesourcery.com>
785
786 * breakpoint.c (deprecated_read_memory_nobpt): Update to use
787 shadow_len.
788 (insert_bp_location, reattach_breakpoints, remove_breakpoint)
789 (delete_breakpoint): Update calls to changed methods.
790 (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
791 (single_step_breakpoints, insert_single_step_breakpoint)
792 (remove_single_step_breakpoints): New.
793 * breakpoint.h (struct bp_target_info): New.
794 (struct bp_location): Replace shadow_contents with
795 target_info and overlay_target_info.
796 (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
797 (insert_single_step_breakpoint, remove_single_step_breakpoints): New
798 prototypes.
799 * gdbarch.sh: Forward declare struct bp_target_info in gdbarch.h.
800 (memory_insert_breakpoint, memory_remove_breakpoint): Update second
801 argument.
802 * mem-break.c (default_memory_insert_breakpoint): Update. Set
803 placed_address, placed_size, and shadow_len.
804 (default_memory_remove_breakpoint): Update. Don't use
805 BREAKPOINT_FROM_PC.
806 (memory_insert_breakpoint, memory_remove_breakpoint): Update.
807 * target.c (update_current_target): Update prototypes for changed
808 functions.
809 (debug_to_insert_breakpoint, debug_to_remove_breakpoint)
810 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint):
811 Update.
812 * target.h: Forward declare struct bp_target_info.
813 (struct target_ops): Use a bp_target_info argument for
814 to_insert_breakpoint, to_remove_breakpoint,
815 to_insert_hw_breakpoint, and to_remove_hw_breakpoint.
816 (target_insert_breakpoint, target_remove_breakpoint)
817 (target_insert_hw_breakpoint, target_remove_hw_breakpoint)
818 (memory_insert_breakpoint, memory_remove_breakpoint)
819 (default_memory_insert_breakpoint, default_memory_remove_breakpoint):
820 Update.
821 * config/i386/nm-i386.h: Forward declare struct bp_target_info.
822 (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): Update.
823 (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Likewise.
824
825 * gdbarch.c, gdbarch.h: Regenerated.
826
827 * alpha-tdep.c (alpha_software_single_step): Use
828 insert_single_step_breakpoint and remove_single_step_breakpoints.
829 Remove unused statics.
830 * arm-tdep.c (arm_software_single_step): Likewise. Add a note.
831 * cris-tdep.c (cris_software_single_step): Likewise.
832 * mips-tdep.c (mips_software_single_step): Likewise.
833 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
834 * sparc-tdep.c (sparc_software_single_step): Likewise.
835 * wince.c (struct thread_info_struct): Remove step_prev.
836 (undoSStep): Use remove_single_step_breakpoints.
837 (wince_software_single_step): Use insert_single_step_breakpoint.
838
839 * corelow.c (ignore): Remove unneeded prototype. Update arguments.
840 * exec.c (ignore): Likewise.
841 * sol-thread.c (ignore): Likewise.
842
843 * procfs.c (dbx_link_shadow_contents): Delete.
844 (dbx_link_bpt): New.
845 (procfs_mourn_inferior): Remove it if necessary.
846 (remove_dbx_link_breakpoint): Use it.
847 (insert_dbx_link_bpt_in_file): Set it.
848 (procfs_init_inferior): Don't update dbx_link_bpt_addr.
849 * rs6000-nat.c (exec_one_dummy_insn): Use
850 deprecated_insert_raw_breakpoint and
851 deprecated_remove_raw_breakpoint.
852 * solib-irix.c (shadow_contents, breakpoint_addr): Delete.
853 (base_breakpoint): New.
854 (disable_break): Use it.
855 (enable_break): Set it.
856
857 * i386-nat.c (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint):
858 Update.
859 * ia64-tdep.c (ia64_memory_insert_breakpoint)
860 (ia64_memory_remove_breakpoint): Likewise.
861 * m32r-tdep.c (m32r_memory_insert_breakpoint)
862 (m32r_memory_remove_breakpoint): Likewise.
863 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
864 Likewise. Remove unnecessary prototypes. Use placed_address
865 and placed_size. Removed useless read from memory.
866 * nto-procfs.c (procfs_insert_breakpoint)
867 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
868 (procfs_remove_hw_breakpoint): Update.
869 * ocd.c (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
870 * ocd.h (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
871 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
872 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Likewise.
873 * remote-e7000.c (e7000_insert_breakpoint)
874 (e7000_remove_breakpoint): Likewise.
875 * remote-m32r-sdi.c (m32r_insert_breakpoint)
876 (m32r_remove_breakpoint): Likewise.
877 * remote-mips.c (mips_insert_breakpoint)
878 (mips_remove_breakpoint): Likewise.
879 * remote-rdp.c (remote_rdp_insert_breakpoint)
880 (remote_rdp_remove_breakpoint): Likewise.
881 (rdp_step): Use deprecated_insert_raw_breakpoint and
882 deprecated_remove_raw_breakpoint.
883 * remote-sds.c (sds_insert_breakpoint, sds_remove_breakpoint):
884 Update.
885 * remote-sim.c (gdbsim_insert_breakpoint, gdbsim_remove_breakpoint):
886 Delete.
887 (init_gdbsim_ops): Use memory_insert_breakpoint and
888 memory_remove_breakpoint.
889 * remote-st.c (st2000_insert_breakpoint)
890 (st2000_remove_breakpoint): Update. Remove unused
891 BREAKPOINT_FROM_PC.
892 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
893 Update. Use placed_address and placed_size.
894 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Likewise.
895
01d3a6ce
DJ
8962006-04-12 Daniel Jacobowitz <dan@codesourcery.com>
897
898 * remote.c (extended_remote_restart): Pass the correct length
899 to getpkt.
900
2821caf1
JB
9012006-04-11 Jim Blandy <jimb@codesourcery.com>
902
903 * serial.c (serial_open): Check for special cases at the front of
904 the "device" name before scanning for the ':' that would indicate
905 an IP-based connection.
906
02c5aecd
CF
9072006-04-10 Christopher Faylor <cgf@timesys.com>
908
909 * win32-nat.c (open_symbol_file_object): New function.
910 (in_dynsym_resolve_code): Ditto.
911 (init_win32_ops): Fill in fields which ought not to be NULL.
912
cb832706
CF
9132006-04-10 Christopher Faylor <cgf@timesys.com>
914
915 * win32-nat.c (do_win32_fetch_inferior_registers): Don't do anything
916 with saved context if __COPY_CONTEXT_SIZE is not defined.
917 (handle_output_debug_string): Ditto.
918
03926e1f
DJ
9192006-04-10 Daniel Jacobowitz <dan@codesourcery.com>
920
921 * arm-linux-tdep.c (arm_linux_extract_return_value): Use gdb_byte.
922
b2a0b9b2
DM
9232006-04-09 David S. Miller <davem@sunset.davemloft.net>
924
925 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Append dwarf2
926 frame sniffer.
927 * sparc-tdep.c (sparc32_gdbarch_init): Make sure to call
928 dwarf2_frame_set_init_reg() before gdbarch_init_osabi() so
929 that the latter can override.
930 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
931
ee1b3323
UW
9322006-04-09 Ulrich Weigand <uweigand@de.ibm.com>
933
934 * s390-tdep.c (struct s390_prologue_data): New field 'stack'.
935 (s390_store): Call pv_area_store to track stack slots.
936 (s390_load): Call pv_area_fetch to track stack slots.
937 (s390_check_for_saved): New function.
938 (s390_analyze_prologue): Call pv_area_scan. Allocate and free stack.
939
3fc46200
UW
9402006-04-09 Ulrich Weigand <uweigand@de.ibm.com>
941
942 * Makefile.in (s390-tdep.o): Add dependency on $(prologue_value_h).
943 * s390-tdep.c: Include "prologue-value.h".
944 (struct prologue_value): Remove.
945 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
946 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
947 pv_logical_and, pv_is_identical, pv_is_register): Remove.
948 (compute_x_addr): Remove, replace by ...
949 (s390_addr): ... this new function.
950 (struct s390_prologue_data): Use pv_t instead of prologue_value.
951 (s390_store, s390_load): Likewise.
952 (s390_prologue_frame_unwind_cache): Likewise.
953 (s390_analyze_prologue): Likewise. Also, simplify and combine
954 several conditional statements.
955
d750b939
JB
9562006-04-08 Jim Blandy <jimb@codesourcery.com>
957
958 * Makefile.in (COMMON_OBS): List prologue-value.o. (Omitted from
959 last patch.)
960
0b4294d3
DM
9612006-04-08 David S. Miller <davem@sunset.davemloft.net>
962
963 * sparc-linux-tdep.c (sparc32_linux_step_trap): New.
964 (sparc32_linux_init_abi): Hook it into tdep->step_trap.
07c5f590
DM
965 (sparc32_linux_core_gregset,
966 sparc32_linux_supply_core_gregset,
967 sparc32_linux_collect_core_gregset,
968 sparc32_linux_supply_core_fpregset,
969 sparc32_linux_collect_core_fpregset): New.
970 (sparc32_linux_init_abi): Register them with generic sparc
971 core regset infrastructure.
0b4294d3
DM
972 * sparc64-linux-tdep.c (sparc64_linux_step_trap): New.
973 (sparc64_linux_init_abi): Hook it into tdep->step_trap.
07c5f590
DM
974 (sparc64_linux_core_gregset,
975 sparc64_linux_supply_core_gregset,
976 sparc64_linux_collect_core_gregset,
977 sparc64_linux_supply_core_fpregset,
978 sparc64_linux_collect_core_fpregset): New.
979 (sparc64_linux_init_abi): Register them with generic sparc
980 core regset infrastructure.
0b4294d3
DM
981 * Makefile.in: Update dependencies.
982
9c0dd46b
DM
9832006-04-07 David S. Miller <davem@sunset.davemloft.net>
984
985 * linux-nat.c (linux_nat_thread_alive): Handle targets that
986 do not implement PTRACE_PEEKUSER.
987
670aa98f
DJ
9882006-04-07 Daniel Jacobowitz <dan@codesourcery.com>
989
990 * remote.c (remote_wait): Convert warning to error before
991 parsing corrupt packets.
992
e28493f2
AS
9932006-04-07 Andrew Stubbs <andrew.stubbs@st.com>
994
995 * cli/cli-script.c (struct user_args): Add command field.
996 (arg_cleanup): Free command string.
997 (setup_user_args): Copy the command line before relying on it.
998
7f198e01
JB
9992006-04-06 Joel Brobecker <brobecker@adacore.com>
1000
1001 * breakpoint.c (_initialize_breakpoint): Add "del" as an alias
1002 of the "delete" command.
1003
c9f7217e
RC
10042006-04-06 Randolph Chung <tausq@debian.org>
1005
1006 * MAINTAINERS (Patch champions): Add myself.
1007
d993720d
AS
10082006-04-05 Andreas Schwab <schwab@suse.de>
1009
1010 * Makefile.in: Update dependencies.
1011
f5a9b87d
DM
10122006-04-05 David S. Miller <davem@sunset.davemloft.net>
1013
1014 * sparc-tdep.c (sparc32_dwarf2_frame_init_reg): New.
1015 (sparc32_gdbarch_init): Pass it to dwarf2_frame_set_init_reg.
1016 * Makefile.in (sparc-tdep.o): Update dependencies.
80f9e3aa
DM
1017 * sparc-linux-tdep.c (sparc32_linux_sigframe_init): Pull register
1018 window out of the correct stack frame.
1019 * sparc64-linux-tdep.c (sparc64_linux_sigframe_init): Likewise.
aff37fc1
DM
1020 * dwarf2-frame.c (dwarf2_frame_ops init_reg): Add "next_frame"
1021 argument.
1022 (dwarf2_frame_default_init_reg): Likewise.
1023 (dwarf2_frame_set_init_reg): Update init_reg arg.
1024 (dwarf2_frame_init_reg): Take "next_frame" and pass it to
1025 ops->init_reg().
1026 (dwarf2_frame_cache): Pass next_frame to dwarf2_frame_init_reg.
1027 * dwarf2-frame.h (dwarf2-frame_set_init_reg): Update declaration.
1028 * cris-tdep.c (cris_dwarf2_frame_init_reg): Add next_frame arg.
1029 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
1030 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
1031 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
1032 * sparc-tdep.c (sparc32_struct_return_from_sym): New function.
1033 (sparc32_frame_cache): Call it.
1034 (sparc32_dwarf2_struct_return_p): New function.
1035 (sparc_dwarf2_frame_init_reg): Use it to determine if the function
1036 returns a structure and thus we have to indicate the return PC and
1037 NPC are 4 bytes later than usual.
faea95b1
DM
1038 * sparc-linux-tdep.c (sparc32_linux_init_abi): Append
1039 dwarf2 frame sniffer.
1040 * Makefile.in (sparc-linux-tdep.o): Update dependencies.
f5a9b87d 1041
75e192e6
DM
10422006-04-04 David S. Miller <davem@davemloft.net>
1043
1044 * config/linux.mh (NATDEPFILES): Remove sparc-sol2-nat.o
1045 * config/linux64.h (NATDEPFILES): Likewise
1046 * sparc-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
1047 fill_fpregset): New.
1048 * sparc64-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
1049 fill_fpregset): New.
0a59b3af
DM
1050 * Makefile.in (sparc-linux-nat.o, sparc64-linux-nat.o): Update for
1051 new includes.
1052
dbcd679b
AS
10532006-04-04 Andreas Schwab <schwab@suse.de>
1054
1055 * Makefile.in (elf_common_h): Define.
1056
357d3800
AS
10572006-04-03 Andrew Stubbs <andrew.stubbs@st.com>
1058
1059 * sh-tdep.c (sh_dwarf2_frame_init_reg): New function.
1060 (sh_gdbarch_init): Call dwarf2_frame_set_init_reg().
1061
d3c139e9
AS
10622006-03-31 Andrew Stubbs <andrew.stubbs@st.com>
1063
1064 * value.h (struct internalvar): Add field 'endian'.
1065 * value.c (lookup_internalvar): Initialise endian.
1066 (value_of_internalvar): Flip the endian of built-in types if required.
1067 (set_internalvar): Set the endian.
1068 (show_convenience): Access the value through value_of_internalvar().
1069
bb858e6a
DJ
10702006-03-30 Vladimir Prus <ghost@cs.msu.su>
1071
1072 * remote.c (watchpoint_to_Z_packet): Use values of Z_packet_type enum
1073 instead of hardcoded integer literals.
1074
61d9b92f
DJ
10752006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1076
1077 * cli/cli-script.c (insert_args): Handle NULL user_args.
1078
f7060f85
DJ
10792006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1080
1081 * arm-tdep.c (thumb_scan_prologue): Don't try to analyze
1082 the function at zero if we have no symbols.
1083
295bf0ff
DJ
10842006-03-30 Adrien Kunysz <a_kunysz@yahoo.com>
1085
1086 * i386-stub.c (getpacket): Fix array overflow.
1087 * m32r-stub.c (getpacket): Likewise.
1088 * m68k-stub.c (getpacket): Likewise.
1089 * sh-stub.c (getpacket): Likewise.
1090 * sparc-stub.c (getpacket): Likewise.
1091
7abfe014
DJ
10922006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1093
1094 * frame.h (set_current_sal_from_frame): New prototype.
1095 * stack.c (set_current_sal_from_frame): Make global.
1096 * infrun.c (normal_stop): Call set_current_sal_from_frame.
1097
0ec9a092
DJ
10982006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1099
1100 * linux-thread-db.c: Include "linux-nat.h".
1101 (check_for_thread_db): New function, split out from
1102 thread_db_new_objfile. Remove dead check for active
1103 thread_db on inapplicable targets.
1104 (thread_db_new_objfile): Call check_for_thread_db.
1105 * Makefile.in (linux-thread-db.o): Update.
1106 * linux-nat.c (child_post_attach): Call check_for_thread_db.
1107 (linux_child_post_startup_inferior): Likewise.
1108 (lin_lwp_attach_lwp): Call target_post_attach instead of
1109 child_post_attach.
1110 * linux-nat.h (check_for_thread_db): New prototype.
1111
6d820c5c
DJ
11122006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1113
1114 * remote.c (struct remote_state): Add BUF and BUF_SIZE.
1115 (init_remote_state): Initialize the new fields.
1116 (get_memory_packet_size): Update BUF and BUF_SIZE if necessary.
1117 (set_thread, remote_thread_alive, remote_unpack_thread_info_response)
1118 (remote_get_threadinfo, parse_threadlist_response)
1119 (remote_get_threadlist, remote_current_thread, remote_threads_info)
1120 (remote_threads_extra_info, extended_remote_restart, get_offsets)
1121 (remote_check_symbols, remote_open_1, remote_detach)
1122 (remove_vcont_probe, remote_vcont_resume, remote_resume)
1123 (remote_wait, remote_async_wait, fetch_register_using_p)
1124 (remote_fetch_registers, store_register_using_P)
1125 (remote_store_registers, check_binary_download, remote_write_bytes)
1126 (remote_read_bytes, remote_insert_breakpoint)
1127 (remote_remove_breakpoint, remote_insert_watchpoint)
1128 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
1129 (remote_remove_hw_breakpoint, compare_sections_command)
1130 (remote_xfer_partial, remote_rcmd, packet_command)
1131 (remote_get_thread_local_address): Use the global incoming buffer
1132 instead of alloca or xmalloc. Limit outgoing packets to
1133 rs->remote_packet_size and incoming packets to rs->buf_size.
1134 Update calls to getpkt and remote_send.
1135 (remote_send): Take arguments by reference.
1136 (putpkt_binary): Eliminate junkbuf. Use skip_frame.
1137 (skip_frame): New function.
1138 (read_frame): Take arguments by reference. Expand the packet
1139 buffer instead of issuing an error.
1140 (getpkt, getpkt_sane): Take arguments by reference.
1141 * remote.h (getpkt): Update prototype and doc.
1142 * tracepoint.c (remote_get_noisy_reply): Take arguments by
1143 reference.
1144 (target_buf): Change from array to pointer.
1145 (target_buf_size): New variable.
1146 (remote_set_transparent_ranges): Update call to getpkt.
1147 (trace_start_command, trace_stop_command, trace_status_command):
1148 Update calls to remote_get_noisy_reply.
1149 (finish_tfind_command): Take arguments by reference.
1150 (trace_find_command, trace_find_pc_command)
1151 (trace_find_tracepoint_command, trace_find_line_command):
1152 (trace_find_range_command, trace_find_outside_command): Update
1153 calls to finish_tfind_command.
1154 (_initialize_tracepoint): Initialize target_buf_size and target_buf.
1155
3d8dcac6
RC
11562005-03-30 Randolph Chung <tausq@debian.org>
1157
1158 * hppa-linux-tdep.c: Include regset.h.
1159 (GR_REGNUM, TR_REGNUM, greg_map): New.
1160 (hppa_linux_supply_regset, hppa_linux_supply_fpregset): New.
1161 (hppa_linux_regset, hppa_linux_fpregset): New.
1162 (hppa_linux_regset_from_core_section): New.
1163 (hppa_linux_init_abi): Set regset_from_core_section.
1164 (_initialize_hppa_linux_tdep): Register osabi handler for
1165 64-bit Linux.
1166 * Makefile.in (hppa-linux-tdep.o): Update dependencies.
1167 * config/pa/linux.mh: Stop using core-regset.o
1168
29d375ac
RC
11692006-03-30 Randolph Chung <tausq@debian.org>
1170
1171 * hppa-tdep.c (hppa_find_unwind_entry_in_block): New.
1172 (hppa_frame_cache): Use new function to find unwind entry.
1173 (hppa_frame_this_id): Likewise.
1174 (hppa_frame_unwind_sniffer): Likewise.
1175
f4267320
DJ
11762006-03-29 Daniel Jacobowitz <dan@codesourcery.com>
1177
1178 * NEWS: Mention the removal of NLM.
1179
11802006-03-29 Steve Ellcey <sje@cup.hp.com>
1181
1182 * Makefile.in (nlm): Remove target.
1183 * configure.tgt (i[34567]86-*-netware*): Do not set build_nlm.
1184 * configure.ac: Remove AC_CONFIG_SUBDIRS of nlm.
1185 * configure: Regenerate.
1186 * doc/gdb.texinfo: Remove gdbserve.nlm documentation.
1187 * nlm: Remove directory.
1188
698ba934
DJ
11892006-03-29 Daniel Jacobowitz <dan@codesourcery.com>
1190
1191 * Makefile.in (utils.o): Update.
1192 * top.c (in_user_command): New.
1193 (command_line_input): Use input_from_terminal_p.
1194 (input_from_terminal_p): Don't check caution. Handle
1195 stdin == NULL for Insight.
1196 * top.h (in_user_command, caution): New declarations.
1197 * utils.c: Include "top.h".
1198 (query, defaulted_query): Check caution here. Move the call
1199 to input_from_terminal_p higher.
1200 * cli/cli-script.c (do_restore_user_call_depth): Only decrement
1201 the depth. Update in_user_command if necessary.
1202 (execute_user_command): Don't clobber old_chain. Set
1203 in_user_command. Let do_restore_user_call_depth handle
1204 user_call_depth.
1205 (read_command_lines): Check whether to prompt before calling
1206 Insight hooks.
1207 * tui/tui-hooks.c (tui_query_hook): Remove newly unnecessary
1208 input_from_terminal_p check.
1209
2f00de94
UW
12102006-03-29 Ulrich Weigand <uweigand@de.ibm.com>
1211
1212 * s390-nat.c (s390_insert_watchpoint): Add missing argument.
1213 (s390_remove_watchpoint): Likewise.
1214
7d30c22d
JB
12152006-03-28 Jim Blandy <jimb@codesourcery.com>
1216
1217 * prologue-value.c, prologue-value.h: New files.
1218 * Makefile.in (prologue_value_h): New variable.
1219 (HFILES_NO_SRCDIR): List prologue-value.h.
1220 (SFILES): List prologue-value.c.
1221 (COMMON_OBS): List prologue-value.o.
1222 (prologue-value.o): New rule.
1223
05c6a9a1
MS
12242006-03-27 Michael Snyder <msnyder@redhat.com>
1225
1226 * xstormy16-tdep.c (xstormy16_return_value, xstormy16_push_dummy_call,
1227 xstormy16_pointer_to_address, xstormy16_address_to_pointer,
1228 xstormy16_frame_prev_register): Change void* to gdb_byte*.
1229 (xstormy16_push_dummy_call): Add block-local char* val,
1230 to avoid type conflict with outer scope variable.
1231
4e6cbc38
AS
12322006-03-27 Andrew Stubbs <andrew.stubbs@st.com>
1233
1234 * sh-tdep.c (sh_gdbarch_init): Add missing architectures.
1235
75483fbe
NR
12362006-03-27 Nick Roberts <nickrob@snap.net.nz>
1237
1238 * varobj.c (c_name_of_child, c_value_of_child): Allow non-zero
1239 offsets for languages like Fortran.
1240
97ce3a05
RC
12412006-03-26 Randolph Chung <tausq@debian.org>
1242
1243 * config/pa/hppa64.mt: Use HPUX version of the tm file.
1244
be85b69f
NR
12452006-03-25 Nick Roberts <nickrob@snap.net.nz>
1246
1247 * mi/gdb-mi.el (gdbmi-send): Improve regexp to repeat commands.
1248 Try to deal with continuation line.
1249 (gdbmi, gdbmi-prompt1, gud-gdbmi-marker-filter): Update to new
1250 variable names.
1251 (gdb-break-list-regexp, gdb-stack-list-frames-regexp):
1252 Future proof against new fields being added to MI output.
1253 (gdbmi-prompt2, gdb-break-list-handler,gdb-get-source-file)
1254 (gdbmi-frame-handler): Update to new variable name
1255 gdb-get-buffer-create.
1256 (gdbmi-frame-handler): Use hollow-right-triangle for all selected
1257 frames which except the innermost (where execution has stopped).
1258
7fc4b1a1
RC
12592006-03-24 Randolph Chung <tausq@debian.org>
1260
1261 * solib-som.c (link_map_start): Don't error out if there is
1262 not yet a link map.
1263
f973ed9c
DJ
12642006-03-24 Daniel Jacobowitz <dan@codesourcery.com>
1265
1266 * linux-nat.c (linux_ops_saved): New.
1267 (super_mourn_inferior, kill_inferior, threaded, linux_nat_ops)
1268 (child_mourn_inferior, child_wait, linux_nat_create_inferior)
1269 (linux_nat_fetch_registers, linux_nat_store_registers)
1270 (linux_nat_child_post_startup_inferior, init_linux_nat_ops): Delete.
1271 (init_lwp_list): Don't set threaded.
1272 (add_lwp): Don't modify threaded.
1273 (delete_lwp): Don't mention non-threaded mode.
1274 (linux_nat_switch_fork): New.
1275 (linux_nat_attach): Update inferior_ptid.
1276 (linux_nat_wait): Handle num_lwps == 0 at entry. Don't check
1277 threaded flag.
1278 (linux_nat_kill): Handle pending forks and saved forks.
1279 (linux_nat_mourn_inferior): Handle saved forks.
1280 (linux_nat_pid_to_str): Don't use the LWP form when there is
1281 only one thread.
1282 (linux_target): Don't set to_wait, to_kill, or to_mourn_inferior.
1283 (linux_nat_add_target): New.
1284 (_initialize_linux_nat): Don't initialize the linux native target
1285 here.
1286 * linux-nat.h (linux_nat_add_target, linux_nat_switch_fork): New
1287 prototypes.
1288 * linux-fork.c: Include "linux-nat.h".
1289 (add_fork): Update initial PID.
1290 (fork_load_infrun_state): Call linux_nat_switch_fork.
1291 * Makefile.in (linux-fork.o): Update.
1292
1293 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
1294 linux_nat_add_target instead of add_target.
1295 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Likewise.
1296 * arm-linux-nat.c (_initialize_arm_linux_nat): Likewise.
1297 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Likewise.
1298 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Likewise.
1299 * i386-linux-nat.c (_initialize_i386_linux_nat): Likewise.
1300 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Likewise.
1301 * m68klinux-nat.c (_initialize_m68k_linux_nat): Likewise.
1302 * mips-linux-nat.c (_initialize_mips_linux_nat): Likewise.
1303 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Likewise.
1304 * s390-nat.c (_initialize_s390_nat): Likewise.
1305 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Likewise.
1306 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Likewise.
1307
791b663b
DJ
13082006-03-24 Daniel Jacobowitz <dan@codesourcery.com>
1309
1310 * linux-fork.c: Include "gdb_assert.h".
1311 (fork_load_infrun_state): Set inferior_ptid and stop_pc here.
1312 Update the register cache and selected frame also.
1313 (linux_fork_mourn_inferior): Use fork_load_infrun_state. Return
1314 to single fork mode if necessary.
1315 (linux_fork_context): Remove bits handled by fork_load_infrun_state.
1316 * Makefile.in (linux_fork_h): New.
1317 (linux-fork.o, linux-nat.o): Update.
1318
d311d956
AS
13192006-03-23 Andreas Schwab <schwab@suse.de>
1320
1321 * config/s390/s390.mh (NATDEPFILES): Add linux-fork.o.
1322
a849c9ab
JB
13232006-03-18 Jim Blandy <jimb@codesourcery.com>
1324
1325 * symtab.h (enum address_class): Doc fix.
1326
cf913f37
MS
13272006-03-16 Michael Snyder <msnyder@redhat.com>
1328
712e3020 1329 * tracepoint.c (tracepoint_save_command): Fix typo in error msg.
88c231eb 1330 * target.c (push_target): Fix typo in comment.
94e08568 1331 * remote.c (remote_watch_data_address): Fix typo in comment.
cf913f37
MS
1332 * i386-tdep.c (i386_push_dummy_call): Fix typo in comment.
1333
7c699b81
KB
13342006-03-15 Kevin Buettner <kevinb@redhat.com>
1335
1336 * frv-linux-tdep.c (gdbcore.h, regcache.h, regset.h, gdb_string.h):
1337 Include.
1338 (FRV_ELF_NGREG, FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR, FRV_PT_CCCR)
1339 (FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0, FRV_PT_GNER1)
1340 (FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR, FRV_PT_TBR)
1341 (FRV_PT_EXEC_FDPIC_LOADMAP, FRV_PT_INTERP_FDPIC_LOADMAP): Define.
1342 (frv_elf_greg_t, frv_elf_gregset_t, frv_elf_fpreg_t)
1343 (frv_elf_fpregset_t): Define types.
1344 (frv_linux_supply_gregset, frv_linux_supply_fpregset)
1345 (frv_linux_regset_from_core_section: New functions.
1346 (frv_linux_gregset, frv_linux_fpregset): New static globals.
1347 (frv_linux_init_abi): Register the `regset_from_core_section' method.
1348 * Makefile.in (frv-linux-tdep.o): Update dependencies.
1349 * solib-frv.c (frv_current_sos): Relocate main executable after
1350 loading core file.
1351 (frv_clear_solib): Clean up space associated with
1352 `main_executable_lm_info'.
1353 * config/frv/frv.mt (TDEPFILES): Add corelow.o to this list.
1354
d37eb719
DJ
13552006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1356
1357 * Makefile.in (mips_linux_tdep_h): New.
1358 (mpis-linux-nat.o, mips-linux-tdep.o): Update.
1359 * mips-linux-nat.c: Include "inferior.h", "mips-linux-tdep.h", and
1360 <sys/ptrace.h>.
1361 (have_ptrace_regsets, super_fetch_registers, super_store_registers)
1362 (mips64_linux_regsets_fetch_registers)
1363 (mips64_linux_regsets_store_registers, mips64_linux_fetch_registers)
1364 (mips64_linux_store_registers): New.
1365 (_initialize_mips_linux_nat): Override to_fetch_registers and
1366 to_store_registers.
1367 * mips-linux-tdep.h: New file.
1368 * mips-linux-tdep.c: Include "mips-linux-tdep.c".
1369 (ELF_NGREG, ELF_NFPREG, elf_greg_t, elf_gregset_t, elf_fpreg_t)
1370 (elf_fpregset_t, FPR_BASE, PC, CAUSE, BADVADDR, MMHI, MMLO)
1371 (FPC_CSR, FPC_EIR, EF_REG0, EF_REG31, EF_LO, EF_HI, EF_CP0_EPC)
1372 (EF_CP0_BADVADDR, EF_CP0_STATUS, EF_CP0_CAUSE, EF_SIZE)
1373 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, mips64_elf_greg_t)
1374 (mips64_elf_gregset_t, mips64_elf_fpreg_t, mips64_elf_fpregset_t)
1375 (MIPS64_FPR_BASE, MIPS64_PC, MIPS64_CAUSE, MIPS64_BADVADDR)
1376 (MIPS64_MMHI, MIPS64_MMLO, MIPS64_FPC_CSR, MIPS64_FPC_EIR)
1377 (MIPS64_EF_REG0, MIPS64_EF_REG31, MIPS64_EF_LO, MIPS64_EF_HI)
1378 (MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR, MIPS64_EF_CP0_STATUS)
1379 (MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE): Delete.
1380 (supply_32bit_reg): Use gdb_byte.
1381 (supply_64bit_reg): New.
1382 (mips_supply_gregset, mips_fill_gregset, mips_supply_fpregset)
1383 (mips_fill_fpregset, fetch_core_registers, supply_gregset)
1384 (fill_gregset, supply_fpregset): Update for renamed types.
1385 (mips64_supply_gregset): Use gdb_byte and supply_64bit_reg.
1386 (mips64_fill_gregset): Make global. Handle 32-bit register
1387 sizes.
1388 (mips64_fill_fpregset): Make global. Use gdb_byte. Handle
1389 FP regsets properly.
1390
9f62d0e2
DJ
13912006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1392
1393 * mips-linux-tdep.c (mips_supply_gregset): Renamed from supply_gregset.
1394 (mips_fill_gregset): Renamed from fill_gregset.
1395 (mips_supply_fpregset): Renamed from supply_fpregset.
1396 (mips_fill_fpregset): Renamed from fill_fpregset.
1397 (fetch_core_registers): Update calls.
1398 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): New
1399 functions.
1400
26c53e50
DJ
14012006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1402
1403 * mips-tdep.c (mips_gdbarch_init): Default 64-bit ELF files to N64.
1404
5b652102
DJ
14052006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1406
1407 * mips-tdep.c (is_mips16_addr, mips32_next_pc, add_offset_16):
1408 Correct arithmetic for 64-bit CORE_ADDR.
1409
d05f6826
DJ
14102006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1411
1412 * mips-linux-tdep.c: Include "floatformat.h".
1413 (mips_linux_init_abi): Use 128-bit long double for N32 and N64.
0a407ead
DJ
1414 * mips-tdep.c (mips_n32n64_return_value): Support 128-bit long
1415 double.
d05f6826
DJ
1416 (print_gp_register_row): Don't print spaces before ignored
1417 or floating point registers.
6367c6b1 1418 * Makefile.in (mips-linux-tdep.o): Update.
d05f6826 1419
3e5af19e
DJ
14202006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1421
1422 * mips-mdebug-tdep.c (compare_pdr_entries): Use bfd_get_signed_32
1423 for code addresses.
1424 (non_heuristic_proc_desc): Likewise.
1425
dc60ece8
DJ
14262006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1427
1428 * mips-linux-nat.c: Include "gdb_proc_service.h".
1429 (PTRACE_GET_THREAD_AREA): Define.
1430 (ps_get_thread_area): New.
1431 * Makefile.in (mips-linux-nat.o): Update.
1432
2f83030f
JB
14332006-03-13 Jim Blandy <jimb@codesourcery.com>
1434
1435 * MAINTAINERS: Use my work address.
1436
56aac7e8 14372006-03-09 Michael Snyder <msnyder@redhat.com>
a9877905 1438
56aac7e8
MS
1439 * linux-nat.c (kill_inferior): Just call target_mourn_inferior
1440 instead of getting tricky for the multi-fork case.
1441 * linux-fork.c (linux_fork_killall): Call PT_KILL and waitpid
1442 for each fork, and then use init_fork_list to delete them.
a9877905 1443
831004b7
AO
14442006-03-08 Alexandre Oliva <aoliva@redhat.com>
1445
1446 * solib-svr4.c (svr4_current_sos): Move up initialization of
1447 l_addr, such that it clearly covers all cases.
1448
f1b4b38e
AS
14492006-03-08 Andreas Schwab <schwab@suse.de>
1450
1451 * ia64-tdep.c (ia64_libunwind_frame_this_id): Adapt use of
1452 libunwind_frame_prev_register to use a gdb_byte buffer and
1453 extract_unsigned_integer.
1454 (ia64_libunwind_sigtramp_frame_prev_register): Likewise.
1455
1456 * libunwind-frame.c (libunwind_frame_prev_register): Change type
1457 of last argument to `gdb_byte *'
1458 * libunwind-frame.h: Adjust declaration.
1459
f53f0d0b
PB
14602006-03-08 Paul Brook <paul@codesourcery.com>
1461
1462 * arm-tdep.c (arm_push_dummy_call): Remove stack alignment.
1463 (arm_frame_align): New function.
1464 (arm_gdbarch_init): Use it.
1465
b67fd56f
AC
14662006-03-03 Khem Raj <khem@mvista.com>
1467
1468 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Use gdb_byte.
1469 Committed by Andrew Cagney.
1470
a64ae7e0
CV
14712006-03-02 Corinna Vinschen <vinschen@redhat.com>
1472
1473 * mn10300-tdep.c (mn10300_push_dummy_call): Write breakpoint
1474 address to MDR register.
1475
9733fc94
DJ
14762006-03-01 Daniel Jacobowitz <dan@codesourcery.com>
1477
1478 * gdbtypes.c (lookup_struct_elt_type): Correct noerr for recursive
1479 calls.
1480
4897bfb9
RC
14812006-03-01 Randolph Chung <tausq@debian.org>
1482
1483 * somread.c (som_symfile_read): Update comment and remove unneeded
1484 use of a deprecated variable.
1485
6fcecea0
RC
14862006-03-01 Randolph Chung <tausq@debian.org>
1487
1488 * hppa-tdep.h (unwind_table_entry): Update field names to match HP
1489 runtime specification.
1490 * hppa-tdep.c (internalize_unwinds, hppa_frame_cache): Likewise.
1491 (unwind_command): Likewise.
1492
46acf081
RC
14932006-03-01 Randolph Chung <tausq@debian.org>
1494
1495 * hppa-tdep.c (hppa_frame_cache): Handle Region_Description and
1496 Pseudo_SP_Set in unwind record.
1497
477e69e8
RC
14982006-03-01 Randolph Chung <tausq@debian.org>
1499
1500 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Use
1501 TDEP->is_elf to determine if we are working with a SOM binary.
1502 (null_symtab_and_line): Remove unused variable.
1503 * config/pa/hppa64.mt: Use tm-hppa.h.
1504 * config/pa/tm-hppa64.h: Remove file.
1505
848359ac
WZ
15062006-03-01 Wu Zhou <woodzltc@cn.ibm.com>
1507
1508 * f-typeprint.c (f_type_print_base): Delete the redundant space.
1509
f9ec92b6
KB
15102006-02-28 Kevin Buettner <kevinb@redhat.com>
1511
1512 * Makefile.in (mn10300-linux-tdep.o): Update dependencies.
1513 * mn10300-linux-tdep.c (frame.h, trad-frame.h, tramp-frame.h):
1514 Include.
1515 (am33_linux_sigframe_cache_init): New function.
1516 (am33_linux_sigframe, am33_linux_rt_sigframe): New signal frame
1517 descriptions.
1518 (AM33_SIGCONTEXT_D0, AM33_SIGCONTEXT_D1, AM33_SIGCONTEXT_D2)
1519 (AM33_SIGCONTEXT_D3, AM33_SIGCONTEXT_A0, AM33_SIGCONTEXT_A1)
1520 (AM33_SIGCONTEXT_A2, AM33_SIGCONTEXT_A3, AM33_SIGCONTEXT_E0)
1521 (AM33_SIGCONTEXT_E1, AM33_SIGCONTEXT_E2, AM33_SIGCONTEXT_E3)
1522 (AM33_SIGCONTEXT_E4, AM33_SIGCONTEXT_E5, AM33_SIGCONTEXT_E6)
1523 (AM33_SIGCONTEXT_E7, AM33_SIGCONTEXT_LAR, AM33_SIGCONTEXT_LIR)
1524 (AM33_SIGCONTEXT_MDR, AM33_SIGCONTEXT_MCVF, AM33_SIGCONTEXT_MCRL)
1525 (AM33_SIGCONTEXT_MCRH, AM33_SIGCONTEXT_MDRQ, AM33_SIGCONTEXT_SP)
1526 (AM33_SIGCONTEXT_EPSW, AM33_SIGCONTEXT_PC, AM33_SIGCONTEXT_FPUCONTEXT):
1527 New constants.
1528 (am33_linux_init_osabi): Register signal frame unwinders.
1529
e92e42f5
KB
15302006-02-28 Kevin Buettner <kevinb@redhat.com>
1531
1532 * mn10300-tdep.c (mn10300_analyze_prologue): Implement backtrack
1533 out of pattern match by saving relevant state. Fix stack size
1534 adjustment bug.
1535
cc10cae3
AO
15362006-02-28 Alexandre Oliva <aoliva@redhat.com>
1537
1538 * solib-svr4.h (struct link_map_offsets): Add l_ld_offset and
1539 l_ld_size fields.
1540 * solib-svr4.c (struct lm_info): Add l_addr field.
1541 (LM_ADDR_FROM_LINK_MAP): Renamed from LM_ADDR.
1542 (HAS_LM_DYNAMIC_FROM_LINK_MAP): New.
1543 (LM_DYNAMIC_FROM_LINK_MAP): New.
1544 (LM_ADDR_CHECK): New. Use it instead of LM_ADDR.
1545 (svr4_current_sos): Initialize l_addr. Adjust.
1546 (svr4_relocate_section_addresses): Adjust.
1547 (svr4_ilp32_fetch_link_map_offsets): Define new members.
1548 (svr4_lp64_fetch_link_map_offsets): Likewise.
1549 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
1550 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Likewise.
1551 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
1552 * Makefile.in (solib-svr4.o): Depend on $(elf_bfd_h).
1553
691342f9
DM
15542006-02-26 David S. Miller <davem@sunset.davemloft.net>
1555
1556 * config/sparc/linux.mt (TDEPFILES): Add sol2-tdep.o.
1557 * config/sparc/linux64.mt (TDEPFILES): Likewise.
1558
2c387241
AM
15592006-02-27 Alan Modra <amodra@bigpond.net.au>
1560
1561 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Correct return type.
1562 (ppc_linux_remove_watchpoint): Likewise, and args.
1563
3597fb82
MK
15642006-02-26 Mark Kettenis <kettenis@gnu.org>
1565
1566 * i386obsd-tdep.c (i386obsd_trapframe_sniffer): Also recognize
1567 "soft" interrupts.
1568
637d6690
CW
15692006-02-24 Charles Wilson <cygwin@cwilson.fastmail.fm>
1570
1571 * gdb/defs.h: unconditionally include <fcntl.h>, and
1572 ensure that O_BINARY is defined.
1573 * gdb/solib.c(solib_open): ensure solib files are opened in
1574 binary mode.
1575 * gdb/corelow.c: Remove O_BINARY macro definition.
1576 * gdb/exec.c: Remove O_BINARY macro definition
1577 * gdb/remote-rdp.c: Remove O_BINARY macro definition
1578 * gdb/source.c: Remove O_BINARY macro definition
1579 * gdb/symfile.c: Remove O_BINARY macro definition
1580
9846e541
RC
15812006-02-24 Randolph Chung <tausq@debian.org>
1582
1583 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Initialize
1584 argreg.
1585 * solib-som.c (som_solib_remove_inferior_hook): Remove unused
1586 function.
1587
2a5e440c
WZ
15882006-02-24 Wu Zhou <woodzltc@cn.ibm.com>
1589
1590 * f-exp.y: Symbol '%' is not used as the modulus operator in
1591 Fortran. Delete this from Fortran expression.
1592 It is now used by Fortran 90 and later to access the member
1593 of derived type. Add this into Fortran expression.
1594 * f-valprint.c (f_val_print): Add code to handle TYPE_CODE_STRUCT.
1595 Print each elements in the derived type.
1596 * f-typeprint.c (print_equivalent_f77_float_type): Add a parameter
1597 level into the function definition to do indented printing. And
1598 call fprintfi_filtered instead to do indented printing.
1599 (f_type_print_base): Replace fprintf_filtered with the indented
1600 version (fprintfi_filtered).
1601 (f_type_print_base): Call indented print_equivalent_f77_float_type.
1602 (f_type_print_base): Add code to handle TYPE_CODE_STRUCT. Print
1603 the definition of the derived type.
1604
92128691
DJ
16052006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
1606
1607 * gdb_curses.h: Provide a fallback prototype for tgetnum.
1608
a6205f53
DJ
16092006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
1610
1611 * doublest.h: Conditionalize DOUBLEST on PRINTF_HAS_LONG_DOUBLE
1612 also.
1613 (DOUBLEST_FORMAT): Rename to DOUBLEST_PRINT_FORMAT.
1614 (DOUBLEST_SCAN_FORMAT): New.
1615 * ada-lex.l (PRINTF_HAS_LONG_DOUBLE): Remove redefinitions.
1616 (processReal): Use DOUBLEST_SCAN_FORMAT.
1617 * c-exp.y (parse_number): Likewise.
1618 * jv-exp.y (parse_number): Likewise.
1619 * objc-exp.y (parse_number): Likewise.
1620 * p-exp.y (parse_number): Likewise.
1621
0f0b8dcd
DJ
16222006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
1623
1624 * event-top.c (async_do_nothing, async_disconnect)
1625 (async_stop_sig, async_float_handler): Remove duplicated
1626 prototypes.
1627 (handle_sighup): Guard prototype with SIGHUP.
1628 (async_do_nothing): Guard function and prototype with
1629 SIGQUIT || SIGHUP.
1630 (async_disconnect): Guard prototype with SIGHUP.
1631 (async_stop_sig): Guard prototype with STOP_SIGNAL.
1632
4e91d01c
DJ
16332006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
1634
1635 * maint.c (maintenance_dump_me): Remove unnecessary prototype.
1636
1e0600be
DJ
16372006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
1638
1639 * win32-termcap.c (tputs): Return 0.
1640
094a342e
MK
16412006-02-21 Mark Kettenis <kettenis@gnu.org>
1642
1643 * configure.ac: Introduce ---enable-werror, which adds -Werror to
1644 the compiler command line. Enabled by default. Disable with
1645 --disable-werror.
1646 * configure regenerate.
1647
74763737
DJ
16482006-02-21 Daniel Jacobowitz <dan@codesourcery.com>
1649
1650 * elfread.c (elf_symtab_read): Skip symbols which BFD considers
1651 special.
1652
13d35ae5
AS
16532006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
1654
1655 * defs.h (directory_switch): Add prototype.
1656 * main.c (captured_main): Use directory_switch() instead of
1657 directory_command() to add directories from the -d switch.
1658 * source.c (directory_switch): New function.
1659 (add_path): Use buildargv() to parse spaces in filenames properly.
1660 Strip multiple trailing '/' rather than just one.
1661
5b96932b
AS
16622006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
1663
1664 * symfile.c (add_symbol_file_command): Use buildargv(), instead of
1665 hand decoding the command line, to allow use of quotes and spaces.
1666 (_initialize_symfile): Reorganize the help message for add-symbol-file
1667 such that 'help files' shows a better message.
1668
a6b0a3f3
AS
16692006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
1670
1671 * sh-tdep.c (sh_generic_show_regs): Reformat both code and output.
1672 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs): Likewise.
1673 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs): Likewise.
1674 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs): Likewise.
1675
17fbb0bd
DJ
16762006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
1677
1678 * linux-nat.c (lin_thread_get_thread_signals): Default to __SIGRTMIN
1679 and __SIGRTMIN + 1.
1680
444abaca
DJ
16812006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
1682
1683 * remote.c: Add an enumeration for configurable remote
1684 packets.
1685 (remote_protocol_packets, set_remote_protocol_packet_cmd)
1686 (show_remote_protocol_packet_cmd): New.
1687 (remote_protocol_vcont)
1688 (set_remote_protocol_vcont_packet_cmd)
1689 (show_remote_protocol_vcont_packet_cmd)
1690 (remote_protocol_qSymbol)
1691 (set_remote_protocol_qSymbol_packet_cmd)
1692 (show_remote_protocol_qSymbol_packet_cmd)
1693 (remote_protocol_P, set_remote_protocol_P_packet_cmd)
1694 (show_remote_protocol_P_packet_cmd)
1695 (remote_protocol_Z)
1696 (set_remote_protocol_Z_software_bp_packet_cmd)
1697 (show_remote_protocol_Z_software_bp_packet_cmd)
1698 (set_remote_protocol_Z_hardware_bp_packet_cmd)
1699 (show_remote_protocol_Z_hardware_bp_packet_cmd)
1700 (set_remote_protocol_Z_write_wp_packet_cmd)
1701 (show_remote_protocol_Z_write_wp_packet_cmd)
1702 (set_remote_protocol_Z_read_wp_packet_cmd)
1703 (show_remote_protocol_Z_read_wp_packet_cmd)
1704 (set_remote_protocol_Z_access_wp_packet_cmd)
1705 (show_remote_protocol_Z_access_wp_packet_cmd)
1706 (remote_protocol_binary_download)
1707 (set_remote_protocol_binary_download_cmd)
1708 (show_remote_protocol_binary_download_cmd)
1709 (remote_protocol_qPart_auxv)
1710 (set_remote_protocol_qPart_auxv_packet_cmd)
1711 (show_remote_protocol_qPart_auxv_packet_cmd)
1712 (remote_protocol_qGetTLSAddr)
1713 (set_remote_protocol_qGetTLSAddr_packet_cmd)
1714 (show_remote_protocol_qGetTLSAddr_packet_cmd)
1715 (remote_protocol_p)
1716 (set_remote_protocol_p_packet_cmd)
1717 (show_remote_protocol_p_packet_cmd): Delete.
1718
1719 (init_all_packet_configs): Simplify.
1720 (set_remote_protocol_Z_packet_cmd)
1721 (show_remote_protocol_Z_packet_cmd)
1722 (remote_check_symbols, remote_vcont_probe, remote_vcont_resume)
1723 (remote_fetch_registers, remote_prepare_to_store)
1724 (remote_store_registers, check_binary_download)
1725 (remote_write_bytes, remote_insert_breakpoint)
1726 (remote_remove_breakpoint, remote_insert_watchpoint)
1727 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
1728 (remote_remove_hw_breakpoint, remote_xfer_partial)
1729 (remote_get_thread_local_address): Update for packet array.
1730 (_initialize_remote): Likewise; also update for common
1731 set/show commands.
1732
3bd72c6f
DJ
17332006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
1734
1735 * symfile.c (place_section): Correct retry logic.
1736
a244bdca
CF
17372006-02-19 Christopher Faylor <cgf@timesys.com>
1738
1739 * win32_nat.c (cygwin_load_start): New variable.
1740 (cygwin_load_end): Ditto.
1741 (have_saved_context): Ditto.
1742 (saved_context): Ditto.
1743 (max_dll_name_len): Delete obsolete variable.
1744 (do_win32_fetch_inferior_registers): Use context saved from cygwin1.dll
1745 if we are in a cygwin signal rather than a windows signal.
1746 (solib_symbols_add): Detect and store beginning and end of cygwin DLL
1747 if dll being loaded is the cygwin DLL.
1748 (register_loaded_dll): Remove calculation of max_dll_name_len.
1749 (win32_clear_solib): Ditto.
1750 (handle_load_dll): Delete obsolete variable. Remove unneeded call to
1751 solib_add.
1752 (handle_output_debug_string): Detect and store signal information sent
1753 by Cygwin here.
1754 (handle_exception): Silently pass on errors in the cygwin DLL. Return
1755 -1 on first pass exception.
1756 (win32_continue): Remove spurious clearing of continue_status.
1757 (get_win32_debug_event): Deal differently first chance exception.
1758
806e23c0
RC
17592006-02-19 Randolph Chung <tausq@debian.org>
1760
1761 * hppa-tdep.c (hppa_in_solib_call_trampoline): Only use if no
1762 unwind entry.
1763
d843c49c
FF
17642006-02-16 Fred Fish <fnf@specifix.com>
1765
1766 * eval.c (evaluate_subexp_standard): For OP_TYPE, return
1767 a non lval value zero, of the appropriate type, when avoiding
1768 side effects.
1769 * typeprint.c (ptype_eval): Remove function and declaration.
1770 (ptype_command): Simplify to just a call to whatis_exp.
1771
1c5bada0
PB
17722006-02-15 Paul Brook <paul@codesourcery.com>
1773
1774 * arm-tdep.c (arm_skip_prologue, thumb_get_next_pc, arm_get_next_pc):
1775 Load insn opcodes as unsigned values.
1776
96c1eda2
AO
17772006-02-14 Alexandre Oliva <aoliva@redhat.com>
1778
1779 * doublest.h (DOUBLEST): Use long double only if we can scan
1780 it in. Undefine HAVE_LONG_DOUBLE otherwise.
1781 (DOUBLEST_FORMAT): New.
1782 * c-exp.y (parse_number): Use it.
1783 * jv-exp.y (parse_number): Likewise.
1784 * objc-exp.y (parse_number): Likewise.
1785 * p-exp.y (parse_number): Likewise.
1786 * varobj.c (free_variable): Silence type-punning warnings.
1787 * tui/tui-data.h (struct tui_list): Change type of list member.
1788 * tui/tui-data.c: Remove no-longer-needed type casts.
1789 (source_windows): Silence type-punning warnings.
1790 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Likewise.
1791
92dd43fa
MK
17922006-02-13 Mark Kettenis <kettenis@gnu.org>
1793
1794 Fix PR breakpoints/2080.
1795 * i386-tdep.c (struct i386_frame_cache): Add stack_align member.
1796 (i386_analyze_stack_align): New function.
1797 (i386_analyze_prologue): Use i386_analyze_stack_align.
1798 (i386_frame_cache): Deal with stack realignment.
1799
7314787a
NR
18002006-02-14 Nick Roberts <nickrob@snap.net.nz>
1801
1802 * mi/gdb-mi.el: Use more functions from gdb-ui.el.
1803 (gdb-break-list-regexp): Match "what" field if present.
be85b69f 1804 (gdb-stack-list-frames-regexp): Match "from" field if present.
7314787a
NR
1805 (gdb-stack-list-frames-handler): Present output like "info
1806 breakpoints" so regexps can be shared with gdb-ui
1807
0ea3f30e
DJ
18082006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
1809
1810 * NEWS: Mention native Windows support.
1811 * Makefile.in (gdb_select_h, ser_tcp_h): New.
1812 (ALLDEPFILES): Add ser-mingw.c.
1813 (event-loop.o, inflow.o, mingw-hdep.o, posix-hdep.o, ser-base.o)
1814 (ser-tcp.o, ser-unix.o): Update.
1815 (ser-mingw.o): New rule.
1816 * configure: Regenerated.
1817 * configure.ac: Add ser-mingw.o for mingw32.
1818 * ser-mingw.c: New file.
1819 * event-loop.c: Include "gdb_select.h".
1820 (gdb_select): Remove, moved to mingw-hdep.c and posix-hdep.c.
1821 * ser-base.c: Include "gdb_select.h".
1822 (ser_base_wait_for): Use gdb_select.
1823 * serial.c (serial_for_fd): New function.
1824 (serial_fdopen): Try "terminal" before "hardwire". Initialize
1825 the allocated struct serial.
1826 (serial_wait_handle): New function.
1827 * serial.h (serial_for_fd, serial_wait_handle): New prototypes.
1828 (struct serial_ops) [USE_WIN32API]: Add wait_handle.
1829 * gdb_select.h: New file.
1830 * ser-tcp.c: Include "ser-tcp.h". Remove unused "ser-unix.h" include.
1831 (net_close, net_read_prim, net_write_prim): Make global.
1832 (net_open): Likewise. Pass an exception set to select. Whitespace fix.
1833 Document why we can not use gdb_select.
1834 (_initialize_ser_tcp) [USE_WIN32API]: Do not register TCP support here.
1835 * ser-tcp.h: New file.
1836 * inflow.c (gdb_has_a_terminal): Don't initialize stdin_serial here.
1837 (handle_sigio): Use gdb_select.
1838 (initialize_stdin_serial): New function.
1839 * terminal.h (initialize_stdin_serial): New prototype.
1840 * top.c (gdb_init): Call initialize_stdin_serial.
1841 * mingw-hdep.c (gdb_select): New function, moved from gdb_select in
1842 event-loop.c. Add exception condition support. Use serial_for_fd
1843 and serial_wait_handle. Fix timeout handling.
1844 * posix-hdep.c: Include "gdb_select.h".
1845 (gdb_select): New function.
1846 * remote-st.c (connect_command): Use gdb_select.
1847 * ser-unix.c: Include "gdb_select.h".
1848 (hardwire_send_break, wait_for): Use gdb_select.
1849
121ce6e5
DJ
18502006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
1851
1852 * Makefile.in (mingw-hdep.o, posix-hdep.o): New dependencies.
1853 (ALLDEPFILES): Add mingw-hdep.c and posix-hdep.c.
1854 * configure.ac: Add gdb_host_obs to CONFIG_OBS. Set gdb_host_obs
1855 to posix-hdep.o by default.
1856 * configure: Regenerated.
1857 * configure.host: Document gdb_host_obs. Add an entry for
1858 i[34567]86-*-mingw32*.
1859 * mingw-hdep.c, posix-hdep.c: New files.
1860 * utils.c (safe_strerror): Remove, moved to posix-hdep.o.
1861
1f82754b
JB
18622006-02-10 Joel Brobecker <brobecker@adacore.com>
1863
1864 * defs.h (gdb_osabi): New enum value GDB_OSABI_AIX.
1865 * osabi.c (gdb_osabi_name): Add name of new value GDB_OSABI_AIX.
1866 * rs6000-tdep.h: New file.
1867 * rs6000-tdep.c: Include "rs6000-tdep.h".
1868 (rs6000_gdbarch_init): Remove enabling of software single step.
1869 Will be done in the AIX-specific initialization routine.
1870 * rs6000-aix-tdep.c: New file.
1871 * config/powerpc/aix.mt (TDEPFILES): Add rs6000-aix-tdep.o.
1872 * Makefile.in (rs6000_tdep_h): New variable.
1873 (rs6000-tdep.o): Update dependencies.
1874 (rs6000-aix-tdep.o): New rule.
1875
577b7047
JB
18762006-02-10 Joel Brobecker <brobecker@adacore.com>
1877
1878 * aix-thread.c (_initialize_aix_thread): Use add_setshow_boolean_cmd
1879 instead of add_setshow_zinteger_cmd to defined the aix-thread
1880 boolean setting.
1881
ff800d76
NR
18822006-02-10 Nick Roberts <nickrob@snap.net.nz>
1883
1884 * mi/gdb-mi.el: Update to reflect changes in Emacs 22.0.50.
1885
5afb4e99
DJ
18862006-02-09 Daniel Jacobowitz <dan@codesourcery.com>
1887
1888 * dwarf2read.c (struct dwarf2_per_cu_data): Reduce length to
1889 30 bits. Add load_all_dies flag.
1890 (load_partial_dies): Load all DIEs if per_cu->load_all_dies is set.
1891 Load DW_TAG_member by default. Remove internal_error call.
1892 (find_partial_die): Reload the compilation unit if we can not find
1893 a DIE in the cache. Call internal_error here if we still can not
1894 find the DIE.
1895
a832795c
NR
18962006-02-10 Nick Roberts <nickrob@snap.net.nz>
1897
1898 * breakpoint.c (print_one_breakpoint): Add break to case
1899 bp_catch_vfork in switch statement.
1900
c9dd6fef
WZ
19012006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
1902
1903 * config/i386/nm-i386sol2.h: Update copyright year.
1904 * config/mips/nm-irix5.h: Ditto.
1905 * config/sparc/nm-sol2.h: Ditto.
1906 * s390-nat.c: Ditto.
1907 * ppc-linux-nat.c: Ditto.
1908
2a3cdf79
WZ
19092006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
1910
1911 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Delete.
1912 * config/i386/nm-i386sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
1913 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
1914 * config/mips/nm-irix5.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
1915 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
1916 * config/sparc/nm-sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
1917 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
1918 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): New.
1919 (inf_ttrace_region_size_ok_for_hw_watchpoint): Delete.
1920 (inf_ttrace_target): Delete to_region_size_ok_for_hw_watchpoint and
1921 add to_region_ok_for_hw_watchpoint.
1922 * s390-nat.c (s390_region_size_ok_for_hw_watchpoint): Delete.
1923 (s390_region_ok_for_hw_watchpoint): New.
1924 (_initialize_s390_nat): Delete to_region_size_ok_for_hw_watchpoint
1925 and add to_region_ok_for_hw_watchpoint.
1926 * target.c (default_region_size_ok_for_hw_watchpoint,
1927 debug_to_region_size_ok_for_hw_watchpoint): Delete prototype.
1928 (update_current_target): Delete to_region_size_ok_for_hw_watchpoint
1929 inheritance and default_region_size_ok_for_hw_watchpoint.
1930 (default_region_ok_for_hw_watchpoint): If len is less than or equal
1931 the length of void pointer, return ok.
1932 (default_region_size_ok_for_hw_watchpoint): Delete.
1933 (debug_to_region_size_ok_for_hw_watchpoint): Delete.
1934 (setup_target_debug): Delete to_region_size_ok_for_hw_watchpoint.
1935 * target.h (struct target_ops): Delete
1936 to_region_size_ok_for_hw_watchpoint.
1937 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
1938
e0d24f8d
WZ
19392006-02-08 Ben Elliston <bje@au1.ibm.com>
1940 Wu Zhou <woodzltc@cn.ibm.com>
1941
1942 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG,
1943 PTRACE_GETSIGINFO): Define.
1944 (last_stopped_data_address): New.
1945 (ppc_linux_check_watch_resources): New function.
1946 (ppc_linux_region_ok_for_hw_watchpoint): New function.
1947 (ppc_linux_insert_watchpoint): New function.
1948 (ppc_linux_remove_watchpoint): New function.
1949 (ppc_linux_stopped_data_address): New function.
1950 (ppc_linux_stopped_by_watchpoint): New function.
1951 (_initialize_ppc_linux_nat): Set the above hardware watchpoint
1952 related target vectors.
1953 * rs6000-tdep.c (rs6000_gdbarch_init): Set PPC architectures
1954 to have nonsteppable watchpoint.
1955 * target.c (default_region_ok_for_hw_watchpoint,
1956 debug_to_region_ok_for_hw_watchpoint): New prototypes.
1957 (update_current_target): Inherit to_region_ok_for_hw_watchpoint
1958 and set default to_region_ok_for_hw_watchpoint.
1959 (default_region_ok_for_hw_watchpoint): New function.
1960 (debug_to_region_ok_for_hw_watchpoint): New function.
1961 (setup_target_debug): Set to_region_ok_for_hw_watchpoint of
1962 debug_target.
1963 * target.h (struct target_ops): Add a new target vector
1964 to_region_ok_for_hw_watchpoint.
1965 (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Define this if it is not
1966 defined anyplace else.
927890d0 1967
e0d24f8d 19682005-02-07 Joel Brobecker <brobecker@adacore.com>
927890d0
JB
1969 * symfile.c (add_symbol_file_command): Abort if the user forgot
1970 to provide the address when the file has been loaded.
1971
f4d408c6
DJ
19722006-02-07 Daniel Jacobowitz <dan@codesourcery.com>
1973
1974 * MAINTAINERS: Update file based on maintainers survey. Add
1975 a note to Past Maintainers. Move unresponsive or inactive
1976 maintainers to Authorized Committers or Past Maintainers as
1977 appropriate. Correct Jim Kingdon's email address. Remove
1978 vacant areas of responsibility.
1979
38fcd64c
DJ
19802006-02-06 Vladimir Prus <ghost@cs.msu.su>
1981
1982 * breakpoint.c (print_one_breakpoint): For MI-like UI, output
1983 fullname field.
1984
7b871fab
DJ
19852006-02-03 Daniel Jacobowitz <dan@codesourcery.com>
1986
1987 * exceptions.h (enum errors): Rename NO_ERROR to GDB_NO_ERROR.
1988 * exceptions.c (exception_none, exceptions_state_mc_init)
1989 (throw_vfatal): Use GDB_NO_ERROR.
1990
e4cd0d6a
MK
19912006-02-02 Mark Kettenis <kettenis@gnu.org>
1992
1993 * solib-svr4.h (struct link_map_offsets): Remove r_debug_size and
1994 r_map_size members. Add r_version_offset, r_version_size and
1995 r_ldsomap_offset members.
1996 * solib-svr4.c (solib_svr4_r_map): Renamed from
1997 fetch_link_map_member. Simplify using read_memory_typed_address.
1998 (solib_svr4_r_ldsomap): New function.
1999 (open_symbol_file_object): Use solib_svr_r_map.
2000 (svr4_current_sos): Use solib_svr4_r_map and look for the dynamic
2001 linker by using solib_svr4_r_ldsomap.
2002 (svr4_ilp32_fetch_link_map_offsets)
2003 (svr4_lp64_fetch_link_map_offsets): Adjust for changes to `struct
2004 link_map_offsets'.
2005 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Adjust for
2006 changes to `struct link_map_offsets'.
2007 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets)
2008 (mipsnbsd_lp64_fetch_link_map_offsets): Adjust for changes to
2009 `struct link_map_offsets'.
2010
e26af52f
DJ
20112006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2012
2013 * linux-nat.c (struct saved_ptids, threads_to_delete)
2014 (record_dead_thread, prune_lwps, find_thread_from_lwp)
2015 (exit_lwp): New.
2016 (linux_nat_resume): Call prune_lwps.
2017 (wait_lwp, linux_nat_wait): Call exit_lwp.
2018
46e9880c
DJ
20192006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2020
2021 * printcmd.c (printf_command): Make format string checking
2022 stricter. Add separate cases for long_arg, ptr_arg, and
2023 long_double_arg.
2024 * utils.c (xstrvprintf): Improve the error message issued
2025 for a bad format string.
2026 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT, INTERNAL_CFLAGS_BASE):
2027 New variables.
2028 (gnu-v3-abi.o, monitor.o, procfs.o, linux-thread-db.o): Remove
2029 $(NO_WERROR_CFLAGS).
2030 (printcmd.o): Likewise. Use $(GDB_WARN_CFLAGS_NO_FORMAT) and
2031 enable -Werror.
2032
37a105a1
DJ
20332006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2034
2035 * Makefile.in (remote.o): Update.
2036 * remote.c (show_packet_config_cmd): Shorten messages.
2037 (remote_set_cmdlist, remote_show_cmdlist): Make file-static.
2038 (show_remote_cmd): Iterate.
2039 (_initialize_remote): Remove remote_set_cmdlist,
2040 remote_show_cmdlist.
2041
ae5a43e0
DJ
20422006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2043
2044 * Makefile.in (gdbtypes_h, gdbtypes.o, utils.o): Update.
2045 * defs.h (hashtab_obstack_allocate, dummy_obstack_deallocate): Add
2046 prototypes.
2047 * dwarf2read.c (read_subroutine_type): Use TYPE_ZALLOC.
2048 (hashtab_obstack_allocate, dummy_obstack_deallocate): Moved to...
2049 * utils.c (hashtab_obstack_allocate, dummy_obstack_deallocate):
2050 ...here.
2051 * gdbtypes.c: Include "hashtab.h".
2052 (build_gdbtypes): Remove extra prototype.
2053 (struct type_pair, type_pair_hash, type_pair_eq)
2054 (create_copied_types_hash, copy_type_recursive): New.
2055 * gdbtypes.h: Include "hashtab.h".
2056 (TYPE_ZALLOC): New.
2057 (create_copied_types_hash, copy_type_recursive): New prototypes.
2058 * objfiles.c (free_objfile): Call preserve_values.
2059 * symfile.c (reread_symbols): Likewise.
2060 (clear_symtab_users): Remove calls to clear_value_history and
2061 clear_internalvars.
2062 * value.c (clear_value_history, clear_internalvars): Removed.
2063 (preserve_one_value, preserve_values): New functions.
2064 * value.h (clear_value_history, clear_internalvars): Removed.
2065 (preserve_values): New prototype.
2066
2067 * tracepoint.c (_initialize_tracepoint): Do not initialize convenience
2068 variables here.
2069
b929c77f
MK
20702006-01-29 Mark Kettenis <kettenis@gnu.org>
2071
2072 * amd64-tdep.c (amd64_classify): Handle TYPE_CODE_BOOL.
2073 Fixes PR tdep/2075.
2074
1581f359
JB
20752006-01-27 Joel Brobecker <brobecker@adacore.com>
2076
2077 * MAINTAINERS: Use a consistent email address for brobecker.
2078
37706b70
JB
20792006-01-27 Joel Brobecker <brobecker@adacore.com>
2080
2081 * infcmd.c (post_create_inferior): Fix copy/paste error introduced
2082 in the previous change.
2083
9353355f
DJ
20842006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
2085
2086 PR gdb/1914
2087 * fork-child.c (fork_inferior): Don't call
2088 solib_create_inferior_hook.
2089 * infcmd.c (post_create_inferior): Call solib_add,
2090 solib_create_inferior_hook, and re_enable_breakpoints_in_shlibs.
2091 (attach_command): Don't call solib_add or
2092 re_enable_breakpoints_in_shlibs. Call post_create_inferior
2093 instead.
2094 * remote.c (remote_open_1): Don't call solib_create_inferior_hook
2095 or observer_notify_inferior_created. Call post_create_inferior
2096 instead.
2097 * corelow.c: Don't include "observer.h".
2098 (solib_add_stub): Deleted.
2099 (core_open): Don't call observer_notify_inferior_created or
2100 solib_add_stub. Call post_create_inferior instead.
2101 * inf-ptrace.c: Don't include "observer.h".
2102 (inf_ptrace_attach): Don't call observer_notify_inferior_created.
2103 * inf-ttrace.c: Don't include "observer.h".
2104 (inf_ttrace_attach): Don't call observer_notify_inferior_created.
2105 * inferior.h (solib_create_inferior_hook): Remove redundant
2106 prototype.
2107 * inftarg.c: Don't include "observer.h".
2108 (child_attach): Don't call observer_notify_inferior_created.
2109 * Makefile.in: Update dependencies.
2110
281b533b
DJ
21112006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
2112
2113 * infcmd.c: Include "observer.h".
2114 (post_create_inferior): New function.
2115 (run_command_1): Call it. Also call proceed.
2116 * inferior.h (post_create_inferior): New prototype.
2117 * Makefile.in (infcmd.o): Update.
2118
2119 * gnu-nat.c (gnu_create_inferior): Don't call proceed.
2120 * go32-nat.c (go32_create_inferior): Likewise.
2121 * nto-procfs.c (procfs_create_inferior): Likewise.
2122 * procfs.c (procfs_create_inferior): Likewise.
2123 * remote-sim.c (gdbsim_create_inferior): Likewise.
2124 * remote.c (extended_remote_create_inferior)
2125 (extended_remote_async_create_inferior): Likewise.
2126 * win32-nat.c (win32_create_inferior): Likewise.
2127 * wince.c (child_create_inferior): Likewise.
2128
2129 * monitor.c (monitor_create_inferior): Don't call proceed.
2130 Set the PC manually.
2131 * ocd.c (ocd_create_inferior): Likewise.
2132 * remote-e7000.c (e7000_create_inferior): Likewise.
2133 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2134 * remote-mips.c (mips_create_inferior): Likewise.
2135 * remote-rdp.c (remote_rdp_create_inferior): Likewise.
2136 * remote-sds.c (sds_create_inferior): Likewise.
2137 * remote-st.c (st2000_create_inferior): Likewise.
2138
2139 * inf-ptrace.c (inf_ptrace_create_inferior): Don't call
2140 proceed or observer_notify_inferior_created.
2141 * inf-ttrace.c (inf_ttrace_create_inferior): Likewise.
2142 * inftarg.c (child_create_inferior): Likewise.
2143
e23fc6de
DJ
21442006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
2145
2146 * linux-thread-db.c (thread_db_mourn_inferior): Remove breakpoints
2147 after mourning the inferior.
2148
13d6656b
JB
21492006-01-24 Jim Blandy <jimb@redhat.com>
2150
2151 * valarith.c (binop_user_defined_p): Handle refs to typedefs.
2152
59f92a09
FF
21532006-01-24 Fred Fish <fnf@specifix.com>
2154
2155 * parse.c (source.h): Include.
2156 (parse_exp_in_context): Use static source context if no
2157 other context found.
2158
dda63807
AS
21592006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
2160
2161 * sh-tdep.c: Include reggroups.h.
2162 (sh_register_reggroup_p): New function.
2163 (sh_gdbarch_init): Add call to set_gdbarch_register_reggroup_p.
2164 * Makefile.in (sh-tdep.o): Add dependency on reggroups.h.
2165
4b505b12
AS
21662006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
2167
2168 * cli/cli-cmds.c: Include fcntl.h.
2169 (source_command): Use the GDB search path to find script files.
2170
721d14ba
DJ
21712006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
2172
2173 PR tdep/2029
2174 Suggested by Till Straumann <strauman@slac.stanford.edu>:
2175 * rs6000-tdep.c (skip_prologue): Update check for later mtlr
2176 instructions. Handle PIC bcl.
2177
3d64d617
DJ
21782006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
2179
2180 * config/djgpp/README: Typo fix.
2181 * config/djgpp/fnchange.lst: Update.
2182
0a8f48b9
MK
21832006-01-22 Mark Kettenis <kettenis@gnu.org>
2184
c893be75
MK
2185 * sparc-tdep.h (struct gdbarch_tdep): Add step_trap member.
2186 (sparc_address_from_register): New prototype.
2187 (sparcnbsd_step_trap): New prototype.
2188 * sparc-tdep.c (sparc_address_from_register): Make globally
2189 visible.
2190 (sparc_analyze_control_transfer): Change prototype to accept
2191 `struct gdbarch *' as first argument. Allow for optional hnadling
2192 for trap instructions.
2193 (sparc_step_trap): New function.
2194 (sparc_software_single_step): Adjust call to
2195 sparc_analyze_control_trabsfer.
2196 (sparc32_gdbarch_init): Initialize TDEP->step_trap.
2197 * sparcnbsd-tdep.c (sparcnbsd_step_trap): New function.
2198 (sparc32nbsd_init_abi): Set TDEP->step_trap.
2199 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Set TDEP->step_trap.
2200 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Set TDEP->step_trap.
2201
0a8f48b9
MK
2202 * sparc-tdep.c (sparc32_return_value): Convert to use
2203 RETURN_VALUE_ABI_PRESERVES_ADDRESS instead of
2204 RETURN_VALUE_STRUCT_CONVENTION.
2205 (sparc32_extract_struct_value_address): Remove.
2206
1f3a99d5
DJ
22072006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
2208
2209 * avr-tdep.c (avr_address_to_pointer, avr_pointer_to_address)
2210 (avr_extract_return_value, avr_frame_prev_register): Use gdb_byte.
2211
84eb3c4f
DJ
22122006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
2213
2214 * solib.c (info_sharedlibrary_command): Avoid internal_error.
2215
878d9193
MK
22162006-01-21 Mark Kettenis <kettenis@gnu.org>
2217
2218 * i386-tdep.c (i386_mxcsr_type): New variable.
2219 (i386_init_types): Initialize i386_mxcsr_type.
2220 (i386_register_type): Return i386_mxcsr_type for %mxcsr.
2221 * i386-tdep.c (i386_mxcsr_type): New extern.
2222 * amd64-tdep.c (amd64_register_info): Return i386_mxcsr_type for
2223 %mxcsr.
2224
acab6ab2
MM
22252006-01-20 Mark Mitchell <mark@codesourcery.com>
2226
2227 * Makefile.in (remote-rdi.o): Remove.
2228 (rdi-share/libangsd.a): Likewise.
2229 * README: Don't mention remote-rdi.c.
2230 * NEWS: Mention removal of rdi-share.
2231 * configure.ac: Don't configure rdi-share subdirectory.
2232 * remote-rdi.c: Remove.
2233 * config/arm/embed.mt (TDEPFILES): Remove remote-rdi.o.
2234 (TDEPLIBS): Remove rdi-share/libangsd.a.
2235 * rdi-share/Makefile.am: Remove.
2236 * rdi-share/Makefile.in: Likewise.
2237 * rdi-share/README.CYGNUS: Likewise.
2238 * rdi-share/aclocal.m4: Likewise.
2239 * rdi-share/adp.h: Likewise.
2240 * rdi-share/adperr.h: Likewise.
2241 * rdi-share/angel.h: Likewise.
2242 * rdi-share/angel_bytesex.c: Likewise.
2243 * rdi-share/angel_bytesex.h: Likewise.
2244 * rdi-share/angel_endian.h: Likewise.
2245 * rdi-share/ardi.c: Likewise.
2246 * rdi-share/ardi.h: Likewise.
2247 * rdi-share/armdbg.h: Likewise.
2248 * rdi-share/buffers.h: Likewise.
2249 * rdi-share/chandefs.h: Likewise.
2250 * rdi-share/channels.h: Likewise.
2251 * rdi-share/chanpriv.h: Likewise.
2252 * rdi-share/configure: Likewise.
2253 * rdi-share/configure.in: Likewise.
2254 * rdi-share/crc.c: Likewise.
2255 * rdi-share/crc.h: Likewise.
2256 * rdi-share/dbg_conf.h: Likewise.
2257 * rdi-share/dbg_cp.h: Likewise.
2258 * rdi-share/dbg_hif.h: Likewise.
2259 * rdi-share/dbg_rdi.h: Likewise.
2260 * rdi-share/devclnt.h: Likewise.
2261 * rdi-share/devices.h: Likewise.
2262 * rdi-share/devsw.c: Likewise.
2263 * rdi-share/devsw.h: Likewise.
2264 * rdi-share/drivers.c: Likewise.
2265 * rdi-share/drivers.h: Likewise.
2266 * rdi-share/etherdrv.c: Likewise.
2267 * rdi-share/ethernet.h: Likewise.
2268 * rdi-share/host.h: Likewise.
2269 * rdi-share/hostchan.c: Likewise.
2270 * rdi-share/hostchan.h: Likewise.
2271 * rdi-share/hsys.c: Likewise.
2272 * rdi-share/hsys.h: Likewise.
2273 * rdi-share/logging.c: Likewise.
2274 * rdi-share/logging.h: Likewise.
2275 * rdi-share/msgbuild.c: Likewise.
2276 * rdi-share/msgbuild.h: Likewise.
2277 * rdi-share/params.c: Likewise.
2278 * rdi-share/params.h: Likewise.
2279 * rdi-share/rx.c: Likewise.
2280 * rdi-share/rxtx.h: Likewise.
2281 * rdi-share/serdrv.c: Likewise.
2282 * rdi-share/serpardr.c: Likewise.
2283 * rdi-share/sys.h: Likewise.
2284 * rdi-share/tx.c: Likewise.
2285 * rdi-share/unixcomm.c: Likewise.
2286 * rdi-share/unixcomm.h: Likewise.
2287
4577207e
MK
22882006-01-21 Mark Kettenis <kettenis@gnu.org>
2289
2290 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register):
2291 Change type of last argument to `gdb_byte *'.
2292
34f55018
MK
22932006-01-20 Mark Kettenis <kettenis@gnu.org>
2294
2295 * hppa-tdep.h (hppa_in_solib_call_trampoline)
2296 (hppa_skip_trampoline_code): New prototypes.
2297 * hppa-tdep.c (struct insn_pattern): New.
2298 (hppa_long_branch_stub, hppa_long_branch_pic_stub)
2299 (hppa_import_stub, hppa_import_pic_stub, hppa_plt_stub): Moved
2300 here from hppa-linux-tdep.c
2301 (HPPA_MAX_INSN_PATTERN_LEN): New define.
2302 (hppa_match_insns, hppa_match_insns_relaxed, hppa_in_dyncall)
2303 (hppa_in_solib_call_trampoline, hppa_skip_trampoline_code): New
2304 functions based on functions removed from hppa-linux-tdep.c.
2305 * hppa-linux-tdep.c (hppa_long_branch_stub)
2306 (hppa_long_branch_pic_stub, hppa_import_stub)
2307 (hppa_import_pic_stub, hppa_plt_stub): Moved to hppa-tdep.c.
2308 (insns_match_pattern_relaxed, hppa_linux_in_dyncall)
2309 (hppa_linux_in_solib_call_trampoline)
2310 (hppa_linux_skip_trampoline_code): Removed.
2311 (hppa_linux_init_abi): Set TDEP->in_solib_call_tranpoline to
2312 hppa_in_solib_call_trampoline and skip_trampoline_code to
2313 hppa_skip_trampoline_code.
2314 * hppabsd-tdep.c (hppabsd_init_abi): Set
2315 TDEP->in_solib_call_trampoline and skip_trampoline_code.
2316
7be93b9e
JB
23172006-01-20 Jim Blandy <jimb@redhat.com>
2318
f408839d
JB
2319 * MAINTAINERS: Change my E-mail address.
2320
7be93b9e
JB
2321 * configure.ac: Add -Wno-pointer-sign to list of build warnings.
2322 * configure: Regenerated.
2323
b2a74f99
DJ
23242006-01-20 Daniel Jacobowitz <dan@codesourcery.com>
2325
2326 * MAINTAINERS: Overhaul.
2327
4f2aea11
MK
23282006-01-18 Mark Kettenis <kettenis@gnu.org>
2329
5ae96ec1
MK
2330 Based on a previous patch form Michal Ludvig:
2331 * amd64-tdep.c (amd64_sse_type): Remove.
2332 (amd64_register_info): Use i386_eflags_type and i386_sse_type
2333 where appropriate.
2334 (AMD64_NUM_REGS): Use ARRAY_SIZE.
2335 (amd64_register_type): Remove code to build amd_sse_type.
2336 * i386-tdep.c (i386_eflag_type): New variable.
2337 (i386_mmx_type, i386_sse_type): Make global.
2338 (i386_init_types): New function.
2339 (i386_build_mmx_type, i386_build_sse_type): Remove functions.
2340 (i386_register_type): Return i386_eflag_type, i386_sse_type and
2341 i386_mmx_type when appropriate.
2342 (_initialize_i386_tdep): Call i386_init_types.
2343 * i386-tdep.h (i386_eflags_type, i386_mmx_type, i386_sse_type):
2344 Declare extern.
2345
4f2aea11
MK
2346 Based on a previous patch form Michal Ludvig:
2347 * gdbtypes.c (append_flags_type_flag, init_flags_type): New
2348 functions.
2349 (is_integral_type, rank_one_type, recursive_dump_type): Add
2350 support for TYPE_CODE_FLAGS.
2351 * gdbtypes.h (enum type_code): Add TYPE_CODE_FLAGS.
2352 (append_flags_type_field, init_flags_type): New prototypes.
2353 * ada-valprint.c (ada_val_print_1): Add support for
2354 TYPE_CODE_FLAGS.
2355 * c-valprint.c (c_val_print): Likewise.
2356 * f-valprint.c (f_val_print): Likewise.
2357 * p-valprint.c (pascal_val_print): Likewise.
2358 * valprint.c (val_print_type_code_flags): New function.
2359 * valprint.h (val_print_type_code_flags): New prototype.
2360 * value.c (unpack_long, value_from_longest): Add support for
2361 TYPE_CODE_FLAGS.
2362
4cdb5adf
CF
23632006-01-17 Christopher Faylor <cgf@timesys.com>
2364
2365 * MAINTAINERS: Very belatedly remove myself from from the list of
2366 people caught up in the paper trail.
2367
1193688d
JB
23682006-01-17 Jim Blandy <jimb@redhat.com>
2369
4e38b386
JB
2370 * symtab.h (struct general_symbol_info): Use gdb_byte for
2371 value.bytes.
2372 * stabsread.c (define_symbol): Use gdb_byte for the buffer holding
2373 a floating-point constant's value.
2374 * dwarf2read.c (dwarf2_const_value): Remove casts of value buffer
2375 to char *.
2376 * findvar.c (read_var_value): Eliminate needless temporary.
2377
1193688d
JB
2378 * dwarf2-frame.c (dwarf2_read_section): Update forward declaration
2379 to match prior change to dwarf2_read_section's type.
2380
0d1243d9
PG
23812006-01-16 Paul Gilliam <pgilliam@us.ibm.com>
2382
2383 * ppc-tdep.h (PPC_MAX_EPILOGUE_INSTRUCTIONS): New define.
2384 * rs6000-tdep.c (insn_changes_sp_or_jumps)
2385 (rs6000_in_function_epilogue_p): New functions.
2386 (rs6000_gdbarch_init): Set in_function_epilogue_p.
2387
fe1b8b76
JB
23882006-01-17 Jim Blandy <jimb@redhat.com>
2389
2390 * dwarf2read.c (struct dwarf2_per_objfile, struct comp_unit_head)
2391 (struct line_header, struct partial_die_info, struct dwarf_block):
2392 Use gdb_byte for members that refer to Dwarf section contents.
2393 (dwarf2_read_abbrevs, dwarf2_read_section, dwarf_decode_lines,
2394 dwarf_decode_macros, load_comp_unit, load_partial_dies,
2395 locate_pdi_sibling, partial_read_comp_unit_head, peek_die_abbrev,
2396 read_1_byte, read_1_signed_byte, read_2_bytes, read_4_bytes,
2397 read_8_bytes, read_address, read_attribute, read_attribute_value,
2398 read_comp_unit, read_comp_unit_head, read_die_and_children,
2399 read_die_and_siblings, read_full_die, read_indirect_string,
2400 read_initial_length, read_n_bytes, read_offset, read_partial_die,
2401 read_signed_leb128, read_string, read_unsigned_leb128,
2402 skip_children, skip_leb128, skip_one_die): Same.
2403
a0841d7a
DJ
24042006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
2405
2406 * complaints.c (stop_whining): Make signed.
2407 * linux-thread-db.c (thread_db_store_registers): Use gdb_byte.
2408
939b2b42
DJ
24092006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
2410
2411 * dwarf2read.c, remote-fileio.c, remote.h: Update copyright
2412 notices.
2413
891d2f0b
DJ
24142006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
2415
2416 * dwarf2read.c (peek_die_abbrev, read_address, read_initial_length)
2417 (read_offset): Change BYTES_READ argument to unsigned int.
2418 (dwarf2_build_psymtabs_easy, read_comp_unit_head)
2419 (create_all_comp_units, dwarf2_get_pc_bounds)
2420 (dwarf_decode_line_header, var_decode_location)
2421 (dwarf_decode_macros): Change local BYTES_READ variables to
2422 unsigned int.
2423 (read_indirect_string): Remove obsolete cast.
2424
cfd77fa1
DJ
24252006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
2426
2427 * remote-fileio.c (remote_fileio_return_success): Take a gdb_byte
2428 argument.
2429 (remote_fileio_func_open, remote_fileio_func_rename)
2430 (remote_fileio_func_unlink, remote_fileio_func_stat)
2431 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
2432 (remote_fileio_func_system): Cast the arguments to
2433 remote_read_bytes and remote_write_bytes.
2434 (remote_fileio_func_read, remote_fileio_func_write): Use a
2435 gdb_byte buffer.
2436 * remote.h (remote_read_bytes, remote_write_bytes): Update
2437 prototypes.
2438 * remote.c (hex2bin, bin2hex): Use gdb_byte for the BIN argument.
2439 (threadref_to_int): Replace bogus char * cast.
2440 (remote_unpack_thread_info_response): Use int for tag.
2441 (remote_threads_extra_info, remote_check_symbols): Cast string
2442 arguments to hex2bin.
2443 (remote_wait): Use a char buffer for packets and a gdb_byte
2444 buffer for registers.
2445 (remote_async_wait): Likewise.
2446 (remote_prepare_to_store, store_register_using_P)
2447 (remote_store_registers): Use gdb_byte buffers.
2448 (remote_write_bytes, remote_read_bytes): Use a gdb_byte pointer
2449 for MYADDR and char buffers for strings.
2450 (remote_xfer_partial): Add casts for string operations on READBUF.
2451 (remote_rcmd): Cast strings passed to bin2hex.
2452
60bf0650
MM
24532006-01-16 Mark Mitchell <mark@codesourcery.com>
2454
2455 * aclocal.m4: Regenerate.
2456
60e81fcc
NS
24572006-01-16 Nathan Sidwell <nathan@codesourcery.com>
2458
2459 * mt-tdep.c (enum mt_gdb_regnums): Add MT_COPRO_PSEUDOREG_ARRAY,
2460 MT_COPRO_PSEUDOREG_DIM_1, MT_COPRO_PSEUDOREG_DIM_2,
2461 MT_COPRO_PSEUDOREG_REGS members. Adjust MT_NUM_PSEUDO_REGS.
2462 (mt_register_name): Lazily synthesize name for coprocessor pseudo
2463 array registers.
2464 (mt_copro_register_type): New. Broken out of ...
2465 (mt_register_type): ... here. Use it. Deal with coprocessor
2466 pseudo array.
2467 (mt_select_coprocessor): New.
2468 (mt_pseudo_register_read, mt_pseudo_register_write): Deal with
2469 coprocessor pseudo array.
2470
f365de73
AS
24712006-01-16 Andrew Stubbs <andrew.stubbs@st.com>
2472
2473 * breakpoint.c (insert_breakpoints): Check that a thread exists
2474 before inserting thread specific breakpoints.
2475
9d519230
MK
24762006-01-15 Mark Kettenis <kettenis@gnu.org>
2477
6062517a
MK
2478 * osabi.c (generic_elf_osabi_sniffer): Fix typo in previous
2479 commit.
2480
9d519230
MK
2481 * alpha-tdep.c (alpha_gdbarch_init): Set cannot_step_breakpoint.
2482 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Remove.
2483 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Remove.
2484 * config/alpha/nm-nbsd.h: Remove file.
2485 * config/alpha/nm-fbsd.h: Remove file
2486 * config/alpha/nbsd.mh (NAT_FILE): Remove.
2487 * config/alpha/fbsd.mh (NAT_FILE): Remove.
2488
0a029df5
DJ
24892006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
2490
2491 * macroexp.c (expand): Initialize argc.
2492 * stabsread.c (read_type): Handle errors from read_args.
2493 (read_args): Return NULL for errors.
2494
1731e543
MK
24952006-01-15 Mark Kettenis <kettenis@gnu.org>
2496
2497 * osabi.c (generic_elf_osabi_sniffer): Use memcmp instead of
2498 strcmp to compare string to a byte buffer.
2499
777ea8f1
DJ
25002006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
2501
2502 * printcmd.c (output_command): Always initialize fmt.size.
2503 (printf_command): Use gdb_byte.
2504 * symfile.c (separate_debug_file_exists): Use gdb_byte.
2505 (load_section_callback, read_target_long_array): Likewise.
2506 (simple_read_overlay_table, simple_read_overlay_region_table)
2507 (simple_overlay_update_1): Correct calls to read_target_long_array.
2508 * valprint.c (partial_memory_read): Change MYADDR to a gdb_byte *.
2509 Also change local pointers.
2510 (val_print_string): Use gdb_byte.
2511
4b17b389
MK
25122006-01-15 Mark Kettenis <kettenis@gnu.org>
2513
2514 * alphafbsd-tdep.c: Include "solib-svr4.h".
2515 (alphafbsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2516 svr4_lp64_fetch_link_map_offsets.
2517 * Makefile.in (alphafbsd-tdep.o): Update dependencies.
2518 * config/alpha/fbsd.mt (TDEPFILES): Add corelow.o, solib.o and
2519 solib-svr4.o.
2520 * config/alpha/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
2521 and solib-legacy.o.
2522 * config/alpha/nm-fbsd.h: Don't include "solib.h".
2523
bd4109fb
DJ
25242006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
2525
2526 * source.c (_initialize_source): Use add_setshow_integer_cmd.
2527
1dce6535
DJ
25282006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
2529
2530 * linux-fork.c (delete_fork_command, detach_fork_command): Use
2531 PIDGET.
2532
76a9d10f
MK
25332006-01-15 Mark Kettenis <kettenis@gnu.org>
2534
2535 * arm-linux-tdep.c (arm_linux_svr4_fetch_link_map_offsets):
2536 Remove.
2537 (arm_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
2538 svr4_ilp32_fetch_link_map_offsets.
2539 * cris-tdep.c (cris_linux_svr4_fetch_link_map_offsets): Remove
2540 function.
2541 (cris_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
2542 svr4_ilp32_fetch_link_map_offsets.
2543 * mips-linux-tdep.c (mips_linux_svr4_fetch_link_map_offsets)
2544 (mips64_linux_svr4_fetch_link_map_offsets): Remove functions.
2545 (mips_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
2546 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
2547 where appropriate.
2548 * nbsd-tdep.c (nbsd_ilp32_solib_svr4_fetch_link_map_offsets):
2549 Simply call svr4_ilp32_fetch_link_map_offsets.
2550 (nbsd_lp64_solib_svr4_fetch_link_map_offsets): Simply call
2551 svr4_lp64_fetch_link_map_offsets.
2552 * ppc-linux-tdep.c (ppc_linux_svr4_fetch_link_map_offsets): Remove
2553 function.
2554 (ppc_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
2555 svr4_ilp32_fetch_link_map_offsets.
2556 * s390-tdep.c (s390_svr4_fetch_link_map_offsets)
2557 (s390x_svr4_fetch_link_map_offsets): Remove functions.
2558 (s390_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
2559 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
2560 where appropriate.
2561
469db033
MK
25622006-01-15 Mark Kettenis <kettenis@gnu.org>
2563
25224166
MK
2564 * arm-tdep.c (arm_return_value): Change type of readbuf and
2565 writebuf arguments to `gdb_byte *'.
2566
469db033
MK
2567 * s390-tdep.c: Do not include "tm.h" and "../bfd/bfd.h".
2568 * Makefile.in (s390-tdep.o): Update dependencies.
2569
4dd7c9f6
MK
25702006-01-14 Mark Kettenis <kettenis@gnu.org>
2571
081bf9da
MK
2572 * sol2-tdep.h. sol2-tdep.c: New files.
2573 * amd64-sol2-tdep.c: Include "sol2-tdep.h".
2574 (amd64_sol2_init_abi): Set skip_solib_resolver.
2575 * i386-sol2-tdep.c: Include "sol2-tdep.h".
2576 (i386_sol2_init_abi): Set skip_solib_resolver.
2577 * sparc-sol2-tdep.c: Include "sol2-tdep.h".
2578 (sparc32_sol2_init_abi): Set skip_solib_resolver.
2579 * sparc64-sol2-tdep.c: Include "sol2-tdep.h".
2580 (sparc64_sol2_init_abi): Set skip_solib_resolver.
2581 * Makefile.in (sol2_tdep_h): New variable.
2582 (ALLDEPFILES): Add sol2-tdep.c.
2583 (sol2-tdep.o): New target.
2584 (amd64-sol2-tdep.o, i386-sol2-tdep.o, sparc-sol2-tdep.o)
2585 (sparc64-sol2-tdep.o): Update dependencies
2586 * config/i386/i386sol2.mt (TDEPFILES): Add sol2-tdep.o.
2587 * config/i386/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
2588 * config/sparc/sol2.mt (TDEPFILES): Add sol2-tdep.o.
2589 * config/sparc/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
2590
c0f96416
MK
2591 * hppa-linux-tdep.c: Fix copyright indentation.
2592
4dd7c9f6
MK
2593 * hppa-tdep.h (enum hppa_regnum): Add HPPA_FP31R_REGNUM.
2594 * hppabsd-nat.c (hppabsd_fpregset_supplies_p)
2595 (hppabsd_supply_fpregset, hppabsd_collect_fpregset): New
2596 functions.
2597 (hppabsd_fetch_registers, hppabsd_store_registers): Handle
2598 floating-point registers.
2599
6da86618
MM
26002006-01-13 Mark Mitchell <mark@codesourcery.com>
2601
2602 * event-loop.c (gdb_select): Detect file descriptors that have
2603 been closed.
2604
ed944ce7
MK
26052006-01-13 Mark Kettenis <kettenis@gnu.org>
2606
2607 * hppabsd-tdep.c (hppabsd_init_abi): Set long_double_bit to 64,
2608 and long_double_format accordingly.
2609
03ee6b2e
PH
26102006-01-12 Paul N. Hilfinger <hilfinger@adacore.com>
2611
2612 * ada-exp.y (yyerror): Change message to ignore the argument, avoiding
2613 translation problems.
2614 * ada-lang.c (ada_value_struct_elt): Change interface and handling
2615 of errors to avoid translation problem (and less than optimal error
2616 messages).
2617 (ada_value_tag, ada_tag_name_1, ada_tag_name_2, ada_evaluate_subexp):
2618 Use new interface to ada_value_struct_elt.
2619 * ada_lang.h (ada_value_struct_elt): Update declaration to new
2620 interface.
2621
2622 * ChangeLog: remove reference to ada-tasks.c from entry of
2623 2006-01-07.
2624
24b06219
MK
26252006-01-11 Mark Kettenis <kettenis@gnu.org>
2626
2627 * remote.c (get_memory_packet_size, set_thread)
2628 (remote_unpack_thread_info_response, remote_get_threadinfo)
2629 (parse_threadlist_response, remote_get_threadlist)
2630 (remote_current_thread, remote_threads_info)
2631 (remote_threads_extra_info, extended_remote_restart, get_offsets)
2632 (remote_check_symbols, remote_open_1, remote_detach)
2633 (remote_async_wait, remote_fetch_registers)
2634 (remote_store_registers, check_binary_download, putpkt_binary)
2635 (remote_insert_breakpoint, remote_insert_watchpoint)
2636 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
2637 (remote_remove_hw_breakpoint, remote_xfer_partial, remote_rcmd)
2638 (packet_command): Remove redundant parenthesis.
2639
15550d6b
MK
26402006-01-10 Mark Kettenis <kettenis@gnu.org>
2641
dfb65433
MK
2642 * corefile.c (read_memory_integer, read_memory_unsigned_integer)
2643 (read_memory_typed_address, write_memory)
2644 (write_memory_unsigned_integer, write_memory_signed_integer): Use
2645 gdb_byte where appropriate.
2646
508416a1
MK
2647 * mi/mi-main.c (mi_cmd_data_read_memory): Change type of mbus into
2648 'gdb_byte *'.
2649
f6519ebc
MK
2650 * target.h (target_read_memory_partial, target_write_memory_partial):
2651 Change second argument to 'gdb_byte *'.
2652 * target.c (target_xfer_memory_partial): Change third argument to
2653 'gdb_byte *'.
2654 (target_read_memory_partial, target_write_memory_partial): Change
2655 second argument to 'gdb_byte *'.
2656
15550d6b
MK
2657 * linespec.c (decode_objc): Make i1 and i2 unsigned.
2658 (find_method): Set values.sals to NULL.
2659
d7a30af7
MK
26602006-01-09 Mark Kettenis <kettenis@gnu.org>
2661
2662 * amd64obsd-nat.c (amd64obsd_supply_pcb): Use 'gdb_byte *' instead
2663 of 'char *' in cast.
2664
e1d5a0d2
PH
26652006-01-07 Paul N. Hilfinger <hilfinger@adacore.com>
2666
2667 * ada-exp.y, ada-lex.l, ada-typeprint.c: I18n markup.
03ee6b2e 2668 * ada-lang.c: I18n markup.
e1d5a0d2
PH
2669 Editorial: change "can not" => "cannot" throughout.
2670
790124be
MK
26712006-01-07 Mark Kettenis <kettenis@gnu.org>
2672
2673 * Makefile.in: Sort dependencies.
2674
3c481fdc
EZ
26752006-01-07 Eli Zaretskii <eliz@gnu.org>
2676
2677 * top.c (control_level): Remove unused variable.
2678
cb5d864f
FF
26792006-01-06 Fred Fish <fnf@specifix.com>
2680
2681 * objfiles.c (source.h): Include.
2682 (free_objfile): Update comment about clear_symtab_users().
2683 (free_objfile): Check all symtabs of objfile being freed and if
2684 one of them is the current source symtab, call
2685 clear_current_source_symtab_and_line().
2686
ac264b3b
MS
26872006-01-04 Michael Snyder <msnyder@redhat.com>
2688
2689 Checkpoint/Restart for Linux.
2690 * linux-nat.c: Add support for debugging multiple forks.
2691 Add #include for linux-fork.h (interface spec).
2692 (super_mourn_inferior): New function pointer.
2693 (child_mourn_inferior): New function / target method.
2694 (linux_target): Claim to_mourn_inferior method pointer.
2695 (child_follow_fork): Call interface to linux-fork, conditionally
2696 add new fork processes to list of debugged processes.
2697 (kill_inferior): Use interface to linux-fork to kill
2698 multiple processes.
2699
2700 * linux-fork.h: New file.
2701 * linux-fork.c: New file. Support for debugging multiple forks
2702 of the same program. Support for checkpoint and restart commands.
2703
2704 * infrun.c (nullify_last_target_wait_ptid): New function.
2705
2706 * Makefile.in: Add linux-fork.
2707 * config/*/linux.mh: Add linux-fork.
2708 * NEWS: Mention new functionality.
2709
f98ce7c2
PH
27102006-01-02 Paul Hilfinger <hilfingr@nile.gnat.com>
2711
2712 * ada-exp.y (syntax definitions,write_var_or_type,write_name_assoc):
2713 Change uses of "illegal" to "invalid".
2714
52ce6436
PH
27152006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
2716
2717 * ada-exp.y: Considerable reorganization to move functionality
2718 from ada-lex.l to here, where it is logically more appropriate.
2719 The original reason, however, was to prevent premature name
2720 lookups for selector names in record aggregates.
2721 (BLOCKNAME, TYPENAME, OBJECT_RENAMING): Remove; lexer now returns
2722 NAME for all of these.
2723 (VAR): New artificial token to clarify precedence rules.
2724 (OTHERS): New lexeme.
2725 (empty_stoken): New symbol.
2726 (%union): Remove ssym, voidval.
2727 (%type): Remove <voidval> type declarations.
2728 (syntax definitions): Add aggregates.
2729 Remove distinction between NAME, TYPENAME, BLOCKNAME, OBJECT_RENAMING.
2730 Rename some non-terminals to be closer to reference manual usage.
2731 Tighten up expression syntax to disallow certain non-Ada
2732 constructions such as X and then Y or else Z.
2733 (ada_parse): Remove initialization of left_block_context.
2734 (write_var_from_name): Remove.
2735 (write_var_or_type): New function, containing previous code from
2736 defunct write_var_from_name and name_lookup.
2737 (block_lookup): New function, moved from ada-lex.l
2738 (select_possible_type_sym): New function, factored out of
2739 name_lookup, which used to be in ada-lex.l.
2740 (find_primitive_type): Ditto.
2741 (chop_selector): Ditto.
2742 (write_ambiguous_var): New function, factored out of defunct
2743 write_var_from_name.
2744 (write_selectors): New function.
2745 (write_name_assoc): New function.
2746 (write_exp_op_with_string): New function.
2747
2748 * ada-lex.l (processId): Change interface to return stoken.
2749 (tempbuf, resize_tempbuf, tempbuf_size, tempbuf_len): Remove.
2750 (block_lookup, name_lookup): Remove. Functionality moved to
2751 ada-exp.y.
2752 (state IN_STRING): Remove.
2753 (rules): Handle string escapes in processString.
2754 Add 'others' token.
2755 Return all NAMEs, BLOCKNAMEs, OBJECT_RENAMINGs, TYPENAMEs in
2756 yylval.sval (as simple strings).
2757 All name look-ups now handled in ada-exp.y.
2758 Introduce "::" (COLONCOLON) token and return as separate token.
2759 (processId): Change return convention. Comment.
2760 Leave leading "'" in place.
2761 (processString): New function.
2762 (find_dot_all): Add note to comment.
2763 Fix problem that allowed match only at the end.
2764
2765 * ada-lang.c: Introduce aggregates.
2766 (find_struct_field): Add new parameter to count fields skipped, and
2767 allow other output parameters to be NULL.
2768 (value_tag_from_contents_and_address, ada_value_struct_elt): Use
2769 new find_struct_field.
2770 (ada_index_struct_field, assign_aggregate, ada_is_array_type)
2771 (num_visible_fields, ada_index_struct_field_1, ada_index_struct_field)
2772 (num_component_specs, assign_component, assign_aggregate):
2773 (aggregate_assign_from_choices,aggregate_assign_positional)
2774 (aggregate_assign_others,add_component_interval):
2775 New functions.
2776 (ada_evaluate_subexp): Declare.
2777 Add aggregate-related operators.
2778 (ada_forward_operator_length): Declare.
2779 (resolve_subexp): Add cases for new aggregate operators and OP_NAME.
2780 Consolidate Ada operators, using ada_forward_operator_length.
2781 (ada_search_struct_field): Search in forward order.
2782 (ADA_OPERATORS): Add new aggregate operators.
2783 (ada_operator_length, ada_op_name, ada_forward_operator_length)
2784 (ada_dump_subexp_body, ada_print_subexp): Handle new aggregate
2785 operators and OP_NAME.
2786 (ada_type_of_array): Use longest_to_int.
2787 (value_assign_to_component): New function.
2788 (ada_forward_operator_length, ada_op_name, ada_dump_subexp_body):
2789 Add OP_NAME case.
2790 (ada_forward_operator_length, ada_dump_subexp_body):
2791 Add OP_STRING case.
2792
2793 * ada-lang.h (enum ada_operator): Add OP_AGGREGATE, OP_OTHERS,
2794 OP_CHOICES, OP_DISCRETE_RANGE, OP_POSITIONAL.
2795
529cad9c
PH
27962006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
2797
2798 * ada-lang.c (process_raise_exception_name): Remove extraneous
2799 definition from unsubmitted code.
2800
2801 (is_lower_alphanum): New function.
2802 (ada_decode): Add support for decoding protected object subprograms
2803 and entries, and of entities declared inside protected object
2804 subprograms.
2805 Also add missing handling for__{DIGITS}+ suffixes.
2806 Allow '$<digits>' as valid overloading suffix.
2807 (is_name_suffix): Add handling for protected type entriy suffixes.
2808 Also add support for protected type subprogram suffixes, but keep
2809 it commented out for now, as there is an ambiguity between these
2810 entities and other internally generated entities.
2811 Allow '$<digits>' as valid overloading suffix.
2812 (is_valid_name_for_wild_match): New function.
2813 (wild_match): Add an exra level of verification of the entity name
2814 before declaring it a match for the given pattern.
2815
2816 (ada_type_of_array, ada_evaluate_subexp): Use more proper
2817 longest_to_int rather than cast.
2818
2819 (ada_evaluate_subexp): Use "invalid" rather than "illegal" in comment.
2820
2821 (ada_coerce_to_simple_array): Call check_size to make sure
2822 that the object size is reasonable.
2823
2824 (ada_value_primitive_packed_val): Use correct location in target
2825 buffer for extracting packed record fields that are themselves records.
2826
2827 (add_defn_to_vec): Do not try to replace a stub type by its full
2828 type. Avoids a potential infinite loop.
2829
2830 (ada_lookup_symbol): Move return incorrectly placed return statement,
2831 causing a loop that should be scanning all object files to only
2832 scan the first one.
2833
2834 (ada_tag_name_2): New function.
2835 (ada_tag_name_1): If no 'tsd' field found in the dispatching table,
2836 use alternative representation.
2837
2838 (ada_find_renaming_symbol): Strip the function name suffix when
2839 computing the XR type name.
2840
2841 (ada_to_fixed_type): Try determining the tag only if we have the
2842 object's address.
2843 (to_fixed_array_type): Add comments.
2844
2845 (ada_check_typedef): Replace expression checking whether the given
2846 type is a stub or not by a "call" to TYPE_STUB. Clearer and more
2847 consistent.
2848
2849 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Allow
2850 '$' in addition to '.' for runtime auxiliary function name suffixes.
2851 See changes to ada_decode above.
2852
2853 (struct task_control_block): Add field called_task. (This change is
2854 to keep synchronized with our local sources; it does not affect the
2855 public version yet.)
2856
2857 * ada-typeprint.c (ada_print_type): Use int_string for printing
2858 modulus of modular type.
2859
2860 (print_range): Trivial editorial comment fix.
2861
2862 * ada-valprint.c (ada_emit_char): Use normal Ada syntax for
2863 double quote in string.
2864
9b799fe6
JB
28652006-01-01 Joel Brobecker <brobecker@adacore.com>
2866
2867 * top.c: Add 2006 to list of copyright years in file header.
2868
0bee0712
JB
28692006-01-01 Joel Brobecker <brobecker@adacore.com>
2870
2871 * top.c (print_gdb_version): Update copyright year to 2006.
2872
13c763f4
JB
28732006-01-01 Roger Sayle <roger@eyesopen.com>
2874 Elena Zannoni <ezannoni@redhat.com>
2875
2876 PR symtab/1651
2877 * xcoffread.c (xcoff_next_symbol_text): Check this_symtab_psymtab
2878 for NULL before assigning this_symtab_psymtab->objfile to objfile.
2879 (scan_xcoff_symtab): Initialize next_symbol_text_func.
2880 (Committed by Jim Blandy)
2881
e50f0da1 2882For older changes see ChangeLog-2005.
c906108c
SS
2883\f
2884Local Variables:
2885mode: change-log
2886left-margin: 8
2887fill-column: 74
2888version-control: never
2889End:
This page took 0.923628 seconds and 4 git commands to generate.