]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
* linux-nat.c (linux_ops_saved): New.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f973ed9c
DJ
12006-03-24 Daniel Jacobowitz <dan@codesourcery.com>
2
3 * linux-nat.c (linux_ops_saved): New.
4 (super_mourn_inferior, kill_inferior, threaded, linux_nat_ops)
5 (child_mourn_inferior, child_wait, linux_nat_create_inferior)
6 (linux_nat_fetch_registers, linux_nat_store_registers)
7 (linux_nat_child_post_startup_inferior, init_linux_nat_ops): Delete.
8 (init_lwp_list): Don't set threaded.
9 (add_lwp): Don't modify threaded.
10 (delete_lwp): Don't mention non-threaded mode.
11 (linux_nat_switch_fork): New.
12 (linux_nat_attach): Update inferior_ptid.
13 (linux_nat_wait): Handle num_lwps == 0 at entry. Don't check
14 threaded flag.
15 (linux_nat_kill): Handle pending forks and saved forks.
16 (linux_nat_mourn_inferior): Handle saved forks.
17 (linux_nat_pid_to_str): Don't use the LWP form when there is
18 only one thread.
19 (linux_target): Don't set to_wait, to_kill, or to_mourn_inferior.
20 (linux_nat_add_target): New.
21 (_initialize_linux_nat): Don't initialize the linux native target
22 here.
23 * linux-nat.h (linux_nat_add_target, linux_nat_switch_fork): New
24 prototypes.
25 * linux-fork.c: Include "linux-nat.h".
26 (add_fork): Update initial PID.
27 (fork_load_infrun_state): Call linux_nat_switch_fork.
28 * Makefile.in (linux-fork.o): Update.
29
30 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
31 linux_nat_add_target instead of add_target.
32 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Likewise.
33 * arm-linux-nat.c (_initialize_arm_linux_nat): Likewise.
34 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Likewise.
35 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Likewise.
36 * i386-linux-nat.c (_initialize_i386_linux_nat): Likewise.
37 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Likewise.
38 * m68klinux-nat.c (_initialize_m68k_linux_nat): Likewise.
39 * mips-linux-nat.c (_initialize_mips_linux_nat): Likewise.
40 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Likewise.
41 * s390-nat.c (_initialize_s390_nat): Likewise.
42 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Likewise.
43 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Likewise.
44
791b663b
DJ
452006-03-24 Daniel Jacobowitz <dan@codesourcery.com>
46
47 * linux-fork.c: Include "gdb_assert.h".
48 (fork_load_infrun_state): Set inferior_ptid and stop_pc here.
49 Update the register cache and selected frame also.
50 (linux_fork_mourn_inferior): Use fork_load_infrun_state. Return
51 to single fork mode if necessary.
52 (linux_fork_context): Remove bits handled by fork_load_infrun_state.
53 * Makefile.in (linux_fork_h): New.
54 (linux-fork.o, linux-nat.o): Update.
55
d311d956
AS
562006-03-23 Andreas Schwab <schwab@suse.de>
57
58 * config/s390/s390.mh (NATDEPFILES): Add linux-fork.o.
59
a849c9ab
JB
602006-03-18 Jim Blandy <jimb@codesourcery.com>
61
62 * symtab.h (enum address_class): Doc fix.
63
cf913f37
MS
642006-03-16 Michael Snyder <msnyder@redhat.com>
65
712e3020 66 * tracepoint.c (tracepoint_save_command): Fix typo in error msg.
88c231eb 67 * target.c (push_target): Fix typo in comment.
94e08568 68 * remote.c (remote_watch_data_address): Fix typo in comment.
cf913f37
MS
69 * i386-tdep.c (i386_push_dummy_call): Fix typo in comment.
70
7c699b81
KB
712006-03-15 Kevin Buettner <kevinb@redhat.com>
72
73 * frv-linux-tdep.c (gdbcore.h, regcache.h, regset.h, gdb_string.h):
74 Include.
75 (FRV_ELF_NGREG, FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR, FRV_PT_CCCR)
76 (FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0, FRV_PT_GNER1)
77 (FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR, FRV_PT_TBR)
78 (FRV_PT_EXEC_FDPIC_LOADMAP, FRV_PT_INTERP_FDPIC_LOADMAP): Define.
79 (frv_elf_greg_t, frv_elf_gregset_t, frv_elf_fpreg_t)
80 (frv_elf_fpregset_t): Define types.
81 (frv_linux_supply_gregset, frv_linux_supply_fpregset)
82 (frv_linux_regset_from_core_section: New functions.
83 (frv_linux_gregset, frv_linux_fpregset): New static globals.
84 (frv_linux_init_abi): Register the `regset_from_core_section' method.
85 * Makefile.in (frv-linux-tdep.o): Update dependencies.
86 * solib-frv.c (frv_current_sos): Relocate main executable after
87 loading core file.
88 (frv_clear_solib): Clean up space associated with
89 `main_executable_lm_info'.
90 * config/frv/frv.mt (TDEPFILES): Add corelow.o to this list.
91
d37eb719
DJ
922006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
93
94 * Makefile.in (mips_linux_tdep_h): New.
95 (mpis-linux-nat.o, mips-linux-tdep.o): Update.
96 * mips-linux-nat.c: Include "inferior.h", "mips-linux-tdep.h", and
97 <sys/ptrace.h>.
98 (have_ptrace_regsets, super_fetch_registers, super_store_registers)
99 (mips64_linux_regsets_fetch_registers)
100 (mips64_linux_regsets_store_registers, mips64_linux_fetch_registers)
101 (mips64_linux_store_registers): New.
102 (_initialize_mips_linux_nat): Override to_fetch_registers and
103 to_store_registers.
104 * mips-linux-tdep.h: New file.
105 * mips-linux-tdep.c: Include "mips-linux-tdep.c".
106 (ELF_NGREG, ELF_NFPREG, elf_greg_t, elf_gregset_t, elf_fpreg_t)
107 (elf_fpregset_t, FPR_BASE, PC, CAUSE, BADVADDR, MMHI, MMLO)
108 (FPC_CSR, FPC_EIR, EF_REG0, EF_REG31, EF_LO, EF_HI, EF_CP0_EPC)
109 (EF_CP0_BADVADDR, EF_CP0_STATUS, EF_CP0_CAUSE, EF_SIZE)
110 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, mips64_elf_greg_t)
111 (mips64_elf_gregset_t, mips64_elf_fpreg_t, mips64_elf_fpregset_t)
112 (MIPS64_FPR_BASE, MIPS64_PC, MIPS64_CAUSE, MIPS64_BADVADDR)
113 (MIPS64_MMHI, MIPS64_MMLO, MIPS64_FPC_CSR, MIPS64_FPC_EIR)
114 (MIPS64_EF_REG0, MIPS64_EF_REG31, MIPS64_EF_LO, MIPS64_EF_HI)
115 (MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR, MIPS64_EF_CP0_STATUS)
116 (MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE): Delete.
117 (supply_32bit_reg): Use gdb_byte.
118 (supply_64bit_reg): New.
119 (mips_supply_gregset, mips_fill_gregset, mips_supply_fpregset)
120 (mips_fill_fpregset, fetch_core_registers, supply_gregset)
121 (fill_gregset, supply_fpregset): Update for renamed types.
122 (mips64_supply_gregset): Use gdb_byte and supply_64bit_reg.
123 (mips64_fill_gregset): Make global. Handle 32-bit register
124 sizes.
125 (mips64_fill_fpregset): Make global. Use gdb_byte. Handle
126 FP regsets properly.
127
9f62d0e2
DJ
1282006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
129
130 * mips-linux-tdep.c (mips_supply_gregset): Renamed from supply_gregset.
131 (mips_fill_gregset): Renamed from fill_gregset.
132 (mips_supply_fpregset): Renamed from supply_fpregset.
133 (mips_fill_fpregset): Renamed from fill_fpregset.
134 (fetch_core_registers): Update calls.
135 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): New
136 functions.
137
26c53e50
DJ
1382006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
139
140 * mips-tdep.c (mips_gdbarch_init): Default 64-bit ELF files to N64.
141
5b652102
DJ
1422006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
143
144 * mips-tdep.c (is_mips16_addr, mips32_next_pc, add_offset_16):
145 Correct arithmetic for 64-bit CORE_ADDR.
146
d05f6826
DJ
1472006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
148
149 * mips-linux-tdep.c: Include "floatformat.h".
150 (mips_linux_init_abi): Use 128-bit long double for N32 and N64.
0a407ead
DJ
151 * mips-tdep.c (mips_n32n64_return_value): Support 128-bit long
152 double.
d05f6826
DJ
153 (print_gp_register_row): Don't print spaces before ignored
154 or floating point registers.
6367c6b1 155 * Makefile.in (mips-linux-tdep.o): Update.
d05f6826 156
3e5af19e
DJ
1572006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
158
159 * mips-mdebug-tdep.c (compare_pdr_entries): Use bfd_get_signed_32
160 for code addresses.
161 (non_heuristic_proc_desc): Likewise.
162
dc60ece8
DJ
1632006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
164
165 * mips-linux-nat.c: Include "gdb_proc_service.h".
166 (PTRACE_GET_THREAD_AREA): Define.
167 (ps_get_thread_area): New.
168 * Makefile.in (mips-linux-nat.o): Update.
169
2f83030f
JB
1702006-03-13 Jim Blandy <jimb@codesourcery.com>
171
172 * MAINTAINERS: Use my work address.
173
56aac7e8 1742006-03-09 Michael Snyder <msnyder@redhat.com>
a9877905 175
56aac7e8
MS
176 * linux-nat.c (kill_inferior): Just call target_mourn_inferior
177 instead of getting tricky for the multi-fork case.
178 * linux-fork.c (linux_fork_killall): Call PT_KILL and waitpid
179 for each fork, and then use init_fork_list to delete them.
a9877905 180
831004b7
AO
1812006-03-08 Alexandre Oliva <aoliva@redhat.com>
182
183 * solib-svr4.c (svr4_current_sos): Move up initialization of
184 l_addr, such that it clearly covers all cases.
185
f1b4b38e
AS
1862006-03-08 Andreas Schwab <schwab@suse.de>
187
188 * ia64-tdep.c (ia64_libunwind_frame_this_id): Adapt use of
189 libunwind_frame_prev_register to use a gdb_byte buffer and
190 extract_unsigned_integer.
191 (ia64_libunwind_sigtramp_frame_prev_register): Likewise.
192
193 * libunwind-frame.c (libunwind_frame_prev_register): Change type
194 of last argument to `gdb_byte *'
195 * libunwind-frame.h: Adjust declaration.
196
f53f0d0b
PB
1972006-03-08 Paul Brook <paul@codesourcery.com>
198
199 * arm-tdep.c (arm_push_dummy_call): Remove stack alignment.
200 (arm_frame_align): New function.
201 (arm_gdbarch_init): Use it.
202
b67fd56f
AC
2032006-03-03 Khem Raj <khem@mvista.com>
204
205 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Use gdb_byte.
206 Committed by Andrew Cagney.
207
a64ae7e0
CV
2082006-03-02 Corinna Vinschen <vinschen@redhat.com>
209
210 * mn10300-tdep.c (mn10300_push_dummy_call): Write breakpoint
211 address to MDR register.
212
9733fc94
DJ
2132006-03-01 Daniel Jacobowitz <dan@codesourcery.com>
214
215 * gdbtypes.c (lookup_struct_elt_type): Correct noerr for recursive
216 calls.
217
4897bfb9
RC
2182006-03-01 Randolph Chung <tausq@debian.org>
219
220 * somread.c (som_symfile_read): Update comment and remove unneeded
221 use of a deprecated variable.
222
6fcecea0
RC
2232006-03-01 Randolph Chung <tausq@debian.org>
224
225 * hppa-tdep.h (unwind_table_entry): Update field names to match HP
226 runtime specification.
227 * hppa-tdep.c (internalize_unwinds, hppa_frame_cache): Likewise.
228 (unwind_command): Likewise.
229
46acf081
RC
2302006-03-01 Randolph Chung <tausq@debian.org>
231
232 * hppa-tdep.c (hppa_frame_cache): Handle Region_Description and
233 Pseudo_SP_Set in unwind record.
234
477e69e8
RC
2352006-03-01 Randolph Chung <tausq@debian.org>
236
237 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Use
238 TDEP->is_elf to determine if we are working with a SOM binary.
239 (null_symtab_and_line): Remove unused variable.
240 * config/pa/hppa64.mt: Use tm-hppa.h.
241 * config/pa/tm-hppa64.h: Remove file.
242
848359ac
WZ
2432006-03-01 Wu Zhou <woodzltc@cn.ibm.com>
244
245 * f-typeprint.c (f_type_print_base): Delete the redundant space.
246
f9ec92b6
KB
2472006-02-28 Kevin Buettner <kevinb@redhat.com>
248
249 * Makefile.in (mn10300-linux-tdep.o): Update dependencies.
250 * mn10300-linux-tdep.c (frame.h, trad-frame.h, tramp-frame.h):
251 Include.
252 (am33_linux_sigframe_cache_init): New function.
253 (am33_linux_sigframe, am33_linux_rt_sigframe): New signal frame
254 descriptions.
255 (AM33_SIGCONTEXT_D0, AM33_SIGCONTEXT_D1, AM33_SIGCONTEXT_D2)
256 (AM33_SIGCONTEXT_D3, AM33_SIGCONTEXT_A0, AM33_SIGCONTEXT_A1)
257 (AM33_SIGCONTEXT_A2, AM33_SIGCONTEXT_A3, AM33_SIGCONTEXT_E0)
258 (AM33_SIGCONTEXT_E1, AM33_SIGCONTEXT_E2, AM33_SIGCONTEXT_E3)
259 (AM33_SIGCONTEXT_E4, AM33_SIGCONTEXT_E5, AM33_SIGCONTEXT_E6)
260 (AM33_SIGCONTEXT_E7, AM33_SIGCONTEXT_LAR, AM33_SIGCONTEXT_LIR)
261 (AM33_SIGCONTEXT_MDR, AM33_SIGCONTEXT_MCVF, AM33_SIGCONTEXT_MCRL)
262 (AM33_SIGCONTEXT_MCRH, AM33_SIGCONTEXT_MDRQ, AM33_SIGCONTEXT_SP)
263 (AM33_SIGCONTEXT_EPSW, AM33_SIGCONTEXT_PC, AM33_SIGCONTEXT_FPUCONTEXT):
264 New constants.
265 (am33_linux_init_osabi): Register signal frame unwinders.
266
e92e42f5
KB
2672006-02-28 Kevin Buettner <kevinb@redhat.com>
268
269 * mn10300-tdep.c (mn10300_analyze_prologue): Implement backtrack
270 out of pattern match by saving relevant state. Fix stack size
271 adjustment bug.
272
cc10cae3
AO
2732006-02-28 Alexandre Oliva <aoliva@redhat.com>
274
275 * solib-svr4.h (struct link_map_offsets): Add l_ld_offset and
276 l_ld_size fields.
277 * solib-svr4.c (struct lm_info): Add l_addr field.
278 (LM_ADDR_FROM_LINK_MAP): Renamed from LM_ADDR.
279 (HAS_LM_DYNAMIC_FROM_LINK_MAP): New.
280 (LM_DYNAMIC_FROM_LINK_MAP): New.
281 (LM_ADDR_CHECK): New. Use it instead of LM_ADDR.
282 (svr4_current_sos): Initialize l_addr. Adjust.
283 (svr4_relocate_section_addresses): Adjust.
284 (svr4_ilp32_fetch_link_map_offsets): Define new members.
285 (svr4_lp64_fetch_link_map_offsets): Likewise.
286 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
287 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Likewise.
288 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
289 * Makefile.in (solib-svr4.o): Depend on $(elf_bfd_h).
290
691342f9
DM
2912006-02-26 David S. Miller <davem@sunset.davemloft.net>
292
293 * config/sparc/linux.mt (TDEPFILES): Add sol2-tdep.o.
294 * config/sparc/linux64.mt (TDEPFILES): Likewise.
295
2c387241
AM
2962006-02-27 Alan Modra <amodra@bigpond.net.au>
297
298 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Correct return type.
299 (ppc_linux_remove_watchpoint): Likewise, and args.
300
3597fb82
MK
3012006-02-26 Mark Kettenis <kettenis@gnu.org>
302
303 * i386obsd-tdep.c (i386obsd_trapframe_sniffer): Also recognize
304 "soft" interrupts.
305
637d6690
CW
3062006-02-24 Charles Wilson <cygwin@cwilson.fastmail.fm>
307
308 * gdb/defs.h: unconditionally include <fcntl.h>, and
309 ensure that O_BINARY is defined.
310 * gdb/solib.c(solib_open): ensure solib files are opened in
311 binary mode.
312 * gdb/corelow.c: Remove O_BINARY macro definition.
313 * gdb/exec.c: Remove O_BINARY macro definition
314 * gdb/remote-rdp.c: Remove O_BINARY macro definition
315 * gdb/source.c: Remove O_BINARY macro definition
316 * gdb/symfile.c: Remove O_BINARY macro definition
317
9846e541
RC
3182006-02-24 Randolph Chung <tausq@debian.org>
319
320 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Initialize
321 argreg.
322 * solib-som.c (som_solib_remove_inferior_hook): Remove unused
323 function.
324
2a5e440c
WZ
3252006-02-24 Wu Zhou <woodzltc@cn.ibm.com>
326
327 * f-exp.y: Symbol '%' is not used as the modulus operator in
328 Fortran. Delete this from Fortran expression.
329 It is now used by Fortran 90 and later to access the member
330 of derived type. Add this into Fortran expression.
331 * f-valprint.c (f_val_print): Add code to handle TYPE_CODE_STRUCT.
332 Print each elements in the derived type.
333 * f-typeprint.c (print_equivalent_f77_float_type): Add a parameter
334 level into the function definition to do indented printing. And
335 call fprintfi_filtered instead to do indented printing.
336 (f_type_print_base): Replace fprintf_filtered with the indented
337 version (fprintfi_filtered).
338 (f_type_print_base): Call indented print_equivalent_f77_float_type.
339 (f_type_print_base): Add code to handle TYPE_CODE_STRUCT. Print
340 the definition of the derived type.
341
92128691
DJ
3422006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
343
344 * gdb_curses.h: Provide a fallback prototype for tgetnum.
345
a6205f53
DJ
3462006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
347
348 * doublest.h: Conditionalize DOUBLEST on PRINTF_HAS_LONG_DOUBLE
349 also.
350 (DOUBLEST_FORMAT): Rename to DOUBLEST_PRINT_FORMAT.
351 (DOUBLEST_SCAN_FORMAT): New.
352 * ada-lex.l (PRINTF_HAS_LONG_DOUBLE): Remove redefinitions.
353 (processReal): Use DOUBLEST_SCAN_FORMAT.
354 * c-exp.y (parse_number): Likewise.
355 * jv-exp.y (parse_number): Likewise.
356 * objc-exp.y (parse_number): Likewise.
357 * p-exp.y (parse_number): Likewise.
358
0f0b8dcd
DJ
3592006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
360
361 * event-top.c (async_do_nothing, async_disconnect)
362 (async_stop_sig, async_float_handler): Remove duplicated
363 prototypes.
364 (handle_sighup): Guard prototype with SIGHUP.
365 (async_do_nothing): Guard function and prototype with
366 SIGQUIT || SIGHUP.
367 (async_disconnect): Guard prototype with SIGHUP.
368 (async_stop_sig): Guard prototype with STOP_SIGNAL.
369
4e91d01c
DJ
3702006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
371
372 * maint.c (maintenance_dump_me): Remove unnecessary prototype.
373
1e0600be
DJ
3742006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
375
376 * win32-termcap.c (tputs): Return 0.
377
094a342e
MK
3782006-02-21 Mark Kettenis <kettenis@gnu.org>
379
380 * configure.ac: Introduce ---enable-werror, which adds -Werror to
381 the compiler command line. Enabled by default. Disable with
382 --disable-werror.
383 * configure regenerate.
384
74763737
DJ
3852006-02-21 Daniel Jacobowitz <dan@codesourcery.com>
386
387 * elfread.c (elf_symtab_read): Skip symbols which BFD considers
388 special.
389
13d35ae5
AS
3902006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
391
392 * defs.h (directory_switch): Add prototype.
393 * main.c (captured_main): Use directory_switch() instead of
394 directory_command() to add directories from the -d switch.
395 * source.c (directory_switch): New function.
396 (add_path): Use buildargv() to parse spaces in filenames properly.
397 Strip multiple trailing '/' rather than just one.
398
5b96932b
AS
3992006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
400
401 * symfile.c (add_symbol_file_command): Use buildargv(), instead of
402 hand decoding the command line, to allow use of quotes and spaces.
403 (_initialize_symfile): Reorganize the help message for add-symbol-file
404 such that 'help files' shows a better message.
405
a6b0a3f3
AS
4062006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
407
408 * sh-tdep.c (sh_generic_show_regs): Reformat both code and output.
409 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs): Likewise.
410 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs): Likewise.
411 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs): Likewise.
412
17fbb0bd
DJ
4132006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
414
415 * linux-nat.c (lin_thread_get_thread_signals): Default to __SIGRTMIN
416 and __SIGRTMIN + 1.
417
444abaca
DJ
4182006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
419
420 * remote.c: Add an enumeration for configurable remote
421 packets.
422 (remote_protocol_packets, set_remote_protocol_packet_cmd)
423 (show_remote_protocol_packet_cmd): New.
424 (remote_protocol_vcont)
425 (set_remote_protocol_vcont_packet_cmd)
426 (show_remote_protocol_vcont_packet_cmd)
427 (remote_protocol_qSymbol)
428 (set_remote_protocol_qSymbol_packet_cmd)
429 (show_remote_protocol_qSymbol_packet_cmd)
430 (remote_protocol_P, set_remote_protocol_P_packet_cmd)
431 (show_remote_protocol_P_packet_cmd)
432 (remote_protocol_Z)
433 (set_remote_protocol_Z_software_bp_packet_cmd)
434 (show_remote_protocol_Z_software_bp_packet_cmd)
435 (set_remote_protocol_Z_hardware_bp_packet_cmd)
436 (show_remote_protocol_Z_hardware_bp_packet_cmd)
437 (set_remote_protocol_Z_write_wp_packet_cmd)
438 (show_remote_protocol_Z_write_wp_packet_cmd)
439 (set_remote_protocol_Z_read_wp_packet_cmd)
440 (show_remote_protocol_Z_read_wp_packet_cmd)
441 (set_remote_protocol_Z_access_wp_packet_cmd)
442 (show_remote_protocol_Z_access_wp_packet_cmd)
443 (remote_protocol_binary_download)
444 (set_remote_protocol_binary_download_cmd)
445 (show_remote_protocol_binary_download_cmd)
446 (remote_protocol_qPart_auxv)
447 (set_remote_protocol_qPart_auxv_packet_cmd)
448 (show_remote_protocol_qPart_auxv_packet_cmd)
449 (remote_protocol_qGetTLSAddr)
450 (set_remote_protocol_qGetTLSAddr_packet_cmd)
451 (show_remote_protocol_qGetTLSAddr_packet_cmd)
452 (remote_protocol_p)
453 (set_remote_protocol_p_packet_cmd)
454 (show_remote_protocol_p_packet_cmd): Delete.
455
456 (init_all_packet_configs): Simplify.
457 (set_remote_protocol_Z_packet_cmd)
458 (show_remote_protocol_Z_packet_cmd)
459 (remote_check_symbols, remote_vcont_probe, remote_vcont_resume)
460 (remote_fetch_registers, remote_prepare_to_store)
461 (remote_store_registers, check_binary_download)
462 (remote_write_bytes, remote_insert_breakpoint)
463 (remote_remove_breakpoint, remote_insert_watchpoint)
464 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
465 (remote_remove_hw_breakpoint, remote_xfer_partial)
466 (remote_get_thread_local_address): Update for packet array.
467 (_initialize_remote): Likewise; also update for common
468 set/show commands.
469
3bd72c6f
DJ
4702006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
471
472 * symfile.c (place_section): Correct retry logic.
473
a244bdca
CF
4742006-02-19 Christopher Faylor <cgf@timesys.com>
475
476 * win32_nat.c (cygwin_load_start): New variable.
477 (cygwin_load_end): Ditto.
478 (have_saved_context): Ditto.
479 (saved_context): Ditto.
480 (max_dll_name_len): Delete obsolete variable.
481 (do_win32_fetch_inferior_registers): Use context saved from cygwin1.dll
482 if we are in a cygwin signal rather than a windows signal.
483 (solib_symbols_add): Detect and store beginning and end of cygwin DLL
484 if dll being loaded is the cygwin DLL.
485 (register_loaded_dll): Remove calculation of max_dll_name_len.
486 (win32_clear_solib): Ditto.
487 (handle_load_dll): Delete obsolete variable. Remove unneeded call to
488 solib_add.
489 (handle_output_debug_string): Detect and store signal information sent
490 by Cygwin here.
491 (handle_exception): Silently pass on errors in the cygwin DLL. Return
492 -1 on first pass exception.
493 (win32_continue): Remove spurious clearing of continue_status.
494 (get_win32_debug_event): Deal differently first chance exception.
495
806e23c0
RC
4962006-02-19 Randolph Chung <tausq@debian.org>
497
498 * hppa-tdep.c (hppa_in_solib_call_trampoline): Only use if no
499 unwind entry.
500
d843c49c
FF
5012006-02-16 Fred Fish <fnf@specifix.com>
502
503 * eval.c (evaluate_subexp_standard): For OP_TYPE, return
504 a non lval value zero, of the appropriate type, when avoiding
505 side effects.
506 * typeprint.c (ptype_eval): Remove function and declaration.
507 (ptype_command): Simplify to just a call to whatis_exp.
508
1c5bada0
PB
5092006-02-15 Paul Brook <paul@codesourcery.com>
510
511 * arm-tdep.c (arm_skip_prologue, thumb_get_next_pc, arm_get_next_pc):
512 Load insn opcodes as unsigned values.
513
96c1eda2
AO
5142006-02-14 Alexandre Oliva <aoliva@redhat.com>
515
516 * doublest.h (DOUBLEST): Use long double only if we can scan
517 it in. Undefine HAVE_LONG_DOUBLE otherwise.
518 (DOUBLEST_FORMAT): New.
519 * c-exp.y (parse_number): Use it.
520 * jv-exp.y (parse_number): Likewise.
521 * objc-exp.y (parse_number): Likewise.
522 * p-exp.y (parse_number): Likewise.
523 * varobj.c (free_variable): Silence type-punning warnings.
524 * tui/tui-data.h (struct tui_list): Change type of list member.
525 * tui/tui-data.c: Remove no-longer-needed type casts.
526 (source_windows): Silence type-punning warnings.
527 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Likewise.
528
92dd43fa
MK
5292006-02-13 Mark Kettenis <kettenis@gnu.org>
530
531 Fix PR breakpoints/2080.
532 * i386-tdep.c (struct i386_frame_cache): Add stack_align member.
533 (i386_analyze_stack_align): New function.
534 (i386_analyze_prologue): Use i386_analyze_stack_align.
535 (i386_frame_cache): Deal with stack realignment.
536
7314787a
NR
5372006-02-14 Nick Roberts <nickrob@snap.net.nz>
538
539 * mi/gdb-mi.el: Use more functions from gdb-ui.el.
540 (gdb-break-list-regexp): Match "what" field if present.
541 (gdb-stack-list-frames-regexp): Match "from" if present field.
542 (gdb-stack-list-frames-handler): Present output like "info
543 breakpoints" so regexps can be shared with gdb-ui
544
0ea3f30e
DJ
5452006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
546
547 * NEWS: Mention native Windows support.
548 * Makefile.in (gdb_select_h, ser_tcp_h): New.
549 (ALLDEPFILES): Add ser-mingw.c.
550 (event-loop.o, inflow.o, mingw-hdep.o, posix-hdep.o, ser-base.o)
551 (ser-tcp.o, ser-unix.o): Update.
552 (ser-mingw.o): New rule.
553 * configure: Regenerated.
554 * configure.ac: Add ser-mingw.o for mingw32.
555 * ser-mingw.c: New file.
556 * event-loop.c: Include "gdb_select.h".
557 (gdb_select): Remove, moved to mingw-hdep.c and posix-hdep.c.
558 * ser-base.c: Include "gdb_select.h".
559 (ser_base_wait_for): Use gdb_select.
560 * serial.c (serial_for_fd): New function.
561 (serial_fdopen): Try "terminal" before "hardwire". Initialize
562 the allocated struct serial.
563 (serial_wait_handle): New function.
564 * serial.h (serial_for_fd, serial_wait_handle): New prototypes.
565 (struct serial_ops) [USE_WIN32API]: Add wait_handle.
566 * gdb_select.h: New file.
567 * ser-tcp.c: Include "ser-tcp.h". Remove unused "ser-unix.h" include.
568 (net_close, net_read_prim, net_write_prim): Make global.
569 (net_open): Likewise. Pass an exception set to select. Whitespace fix.
570 Document why we can not use gdb_select.
571 (_initialize_ser_tcp) [USE_WIN32API]: Do not register TCP support here.
572 * ser-tcp.h: New file.
573 * inflow.c (gdb_has_a_terminal): Don't initialize stdin_serial here.
574 (handle_sigio): Use gdb_select.
575 (initialize_stdin_serial): New function.
576 * terminal.h (initialize_stdin_serial): New prototype.
577 * top.c (gdb_init): Call initialize_stdin_serial.
578 * mingw-hdep.c (gdb_select): New function, moved from gdb_select in
579 event-loop.c. Add exception condition support. Use serial_for_fd
580 and serial_wait_handle. Fix timeout handling.
581 * posix-hdep.c: Include "gdb_select.h".
582 (gdb_select): New function.
583 * remote-st.c (connect_command): Use gdb_select.
584 * ser-unix.c: Include "gdb_select.h".
585 (hardwire_send_break, wait_for): Use gdb_select.
586
121ce6e5
DJ
5872006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
588
589 * Makefile.in (mingw-hdep.o, posix-hdep.o): New dependencies.
590 (ALLDEPFILES): Add mingw-hdep.c and posix-hdep.c.
591 * configure.ac: Add gdb_host_obs to CONFIG_OBS. Set gdb_host_obs
592 to posix-hdep.o by default.
593 * configure: Regenerated.
594 * configure.host: Document gdb_host_obs. Add an entry for
595 i[34567]86-*-mingw32*.
596 * mingw-hdep.c, posix-hdep.c: New files.
597 * utils.c (safe_strerror): Remove, moved to posix-hdep.o.
598
1f82754b
JB
5992006-02-10 Joel Brobecker <brobecker@adacore.com>
600
601 * defs.h (gdb_osabi): New enum value GDB_OSABI_AIX.
602 * osabi.c (gdb_osabi_name): Add name of new value GDB_OSABI_AIX.
603 * rs6000-tdep.h: New file.
604 * rs6000-tdep.c: Include "rs6000-tdep.h".
605 (rs6000_gdbarch_init): Remove enabling of software single step.
606 Will be done in the AIX-specific initialization routine.
607 * rs6000-aix-tdep.c: New file.
608 * config/powerpc/aix.mt (TDEPFILES): Add rs6000-aix-tdep.o.
609 * Makefile.in (rs6000_tdep_h): New variable.
610 (rs6000-tdep.o): Update dependencies.
611 (rs6000-aix-tdep.o): New rule.
612
577b7047
JB
6132006-02-10 Joel Brobecker <brobecker@adacore.com>
614
615 * aix-thread.c (_initialize_aix_thread): Use add_setshow_boolean_cmd
616 instead of add_setshow_zinteger_cmd to defined the aix-thread
617 boolean setting.
618
ff800d76
NR
6192006-02-10 Nick Roberts <nickrob@snap.net.nz>
620
621 * mi/gdb-mi.el: Update to reflect changes in Emacs 22.0.50.
622
5afb4e99
DJ
6232006-02-09 Daniel Jacobowitz <dan@codesourcery.com>
624
625 * dwarf2read.c (struct dwarf2_per_cu_data): Reduce length to
626 30 bits. Add load_all_dies flag.
627 (load_partial_dies): Load all DIEs if per_cu->load_all_dies is set.
628 Load DW_TAG_member by default. Remove internal_error call.
629 (find_partial_die): Reload the compilation unit if we can not find
630 a DIE in the cache. Call internal_error here if we still can not
631 find the DIE.
632
a832795c
NR
6332006-02-10 Nick Roberts <nickrob@snap.net.nz>
634
635 * breakpoint.c (print_one_breakpoint): Add break to case
636 bp_catch_vfork in switch statement.
637
c9dd6fef
WZ
6382006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
639
640 * config/i386/nm-i386sol2.h: Update copyright year.
641 * config/mips/nm-irix5.h: Ditto.
642 * config/sparc/nm-sol2.h: Ditto.
643 * s390-nat.c: Ditto.
644 * ppc-linux-nat.c: Ditto.
645
2a3cdf79
WZ
6462006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
647
648 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Delete.
649 * config/i386/nm-i386sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
650 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
651 * config/mips/nm-irix5.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
652 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
653 * config/sparc/nm-sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
654 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
655 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): New.
656 (inf_ttrace_region_size_ok_for_hw_watchpoint): Delete.
657 (inf_ttrace_target): Delete to_region_size_ok_for_hw_watchpoint and
658 add to_region_ok_for_hw_watchpoint.
659 * s390-nat.c (s390_region_size_ok_for_hw_watchpoint): Delete.
660 (s390_region_ok_for_hw_watchpoint): New.
661 (_initialize_s390_nat): Delete to_region_size_ok_for_hw_watchpoint
662 and add to_region_ok_for_hw_watchpoint.
663 * target.c (default_region_size_ok_for_hw_watchpoint,
664 debug_to_region_size_ok_for_hw_watchpoint): Delete prototype.
665 (update_current_target): Delete to_region_size_ok_for_hw_watchpoint
666 inheritance and default_region_size_ok_for_hw_watchpoint.
667 (default_region_ok_for_hw_watchpoint): If len is less than or equal
668 the length of void pointer, return ok.
669 (default_region_size_ok_for_hw_watchpoint): Delete.
670 (debug_to_region_size_ok_for_hw_watchpoint): Delete.
671 (setup_target_debug): Delete to_region_size_ok_for_hw_watchpoint.
672 * target.h (struct target_ops): Delete
673 to_region_size_ok_for_hw_watchpoint.
674 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
675
e0d24f8d
WZ
6762006-02-08 Ben Elliston <bje@au1.ibm.com>
677 Wu Zhou <woodzltc@cn.ibm.com>
678
679 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG,
680 PTRACE_GETSIGINFO): Define.
681 (last_stopped_data_address): New.
682 (ppc_linux_check_watch_resources): New function.
683 (ppc_linux_region_ok_for_hw_watchpoint): New function.
684 (ppc_linux_insert_watchpoint): New function.
685 (ppc_linux_remove_watchpoint): New function.
686 (ppc_linux_stopped_data_address): New function.
687 (ppc_linux_stopped_by_watchpoint): New function.
688 (_initialize_ppc_linux_nat): Set the above hardware watchpoint
689 related target vectors.
690 * rs6000-tdep.c (rs6000_gdbarch_init): Set PPC architectures
691 to have nonsteppable watchpoint.
692 * target.c (default_region_ok_for_hw_watchpoint,
693 debug_to_region_ok_for_hw_watchpoint): New prototypes.
694 (update_current_target): Inherit to_region_ok_for_hw_watchpoint
695 and set default to_region_ok_for_hw_watchpoint.
696 (default_region_ok_for_hw_watchpoint): New function.
697 (debug_to_region_ok_for_hw_watchpoint): New function.
698 (setup_target_debug): Set to_region_ok_for_hw_watchpoint of
699 debug_target.
700 * target.h (struct target_ops): Add a new target vector
701 to_region_ok_for_hw_watchpoint.
702 (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Define this if it is not
703 defined anyplace else.
927890d0 704
e0d24f8d 7052005-02-07 Joel Brobecker <brobecker@adacore.com>
927890d0
JB
706 * symfile.c (add_symbol_file_command): Abort if the user forgot
707 to provide the address when the file has been loaded.
708
f4d408c6
DJ
7092006-02-07 Daniel Jacobowitz <dan@codesourcery.com>
710
711 * MAINTAINERS: Update file based on maintainers survey. Add
712 a note to Past Maintainers. Move unresponsive or inactive
713 maintainers to Authorized Committers or Past Maintainers as
714 appropriate. Correct Jim Kingdon's email address. Remove
715 vacant areas of responsibility.
716
38fcd64c
DJ
7172006-02-06 Vladimir Prus <ghost@cs.msu.su>
718
719 * breakpoint.c (print_one_breakpoint): For MI-like UI, output
720 fullname field.
721
7b871fab
DJ
7222006-02-03 Daniel Jacobowitz <dan@codesourcery.com>
723
724 * exceptions.h (enum errors): Rename NO_ERROR to GDB_NO_ERROR.
725 * exceptions.c (exception_none, exceptions_state_mc_init)
726 (throw_vfatal): Use GDB_NO_ERROR.
727
e4cd0d6a
MK
7282006-02-02 Mark Kettenis <kettenis@gnu.org>
729
730 * solib-svr4.h (struct link_map_offsets): Remove r_debug_size and
731 r_map_size members. Add r_version_offset, r_version_size and
732 r_ldsomap_offset members.
733 * solib-svr4.c (solib_svr4_r_map): Renamed from
734 fetch_link_map_member. Simplify using read_memory_typed_address.
735 (solib_svr4_r_ldsomap): New function.
736 (open_symbol_file_object): Use solib_svr_r_map.
737 (svr4_current_sos): Use solib_svr4_r_map and look for the dynamic
738 linker by using solib_svr4_r_ldsomap.
739 (svr4_ilp32_fetch_link_map_offsets)
740 (svr4_lp64_fetch_link_map_offsets): Adjust for changes to `struct
741 link_map_offsets'.
742 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Adjust for
743 changes to `struct link_map_offsets'.
744 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets)
745 (mipsnbsd_lp64_fetch_link_map_offsets): Adjust for changes to
746 `struct link_map_offsets'.
747
e26af52f
DJ
7482006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
749
750 * linux-nat.c (struct saved_ptids, threads_to_delete)
751 (record_dead_thread, prune_lwps, find_thread_from_lwp)
752 (exit_lwp): New.
753 (linux_nat_resume): Call prune_lwps.
754 (wait_lwp, linux_nat_wait): Call exit_lwp.
755
46e9880c
DJ
7562006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
757
758 * printcmd.c (printf_command): Make format string checking
759 stricter. Add separate cases for long_arg, ptr_arg, and
760 long_double_arg.
761 * utils.c (xstrvprintf): Improve the error message issued
762 for a bad format string.
763 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT, INTERNAL_CFLAGS_BASE):
764 New variables.
765 (gnu-v3-abi.o, monitor.o, procfs.o, linux-thread-db.o): Remove
766 $(NO_WERROR_CFLAGS).
767 (printcmd.o): Likewise. Use $(GDB_WARN_CFLAGS_NO_FORMAT) and
768 enable -Werror.
769
37a105a1
DJ
7702006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
771
772 * Makefile.in (remote.o): Update.
773 * remote.c (show_packet_config_cmd): Shorten messages.
774 (remote_set_cmdlist, remote_show_cmdlist): Make file-static.
775 (show_remote_cmd): Iterate.
776 (_initialize_remote): Remove remote_set_cmdlist,
777 remote_show_cmdlist.
778
ae5a43e0
DJ
7792006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
780
781 * Makefile.in (gdbtypes_h, gdbtypes.o, utils.o): Update.
782 * defs.h (hashtab_obstack_allocate, dummy_obstack_deallocate): Add
783 prototypes.
784 * dwarf2read.c (read_subroutine_type): Use TYPE_ZALLOC.
785 (hashtab_obstack_allocate, dummy_obstack_deallocate): Moved to...
786 * utils.c (hashtab_obstack_allocate, dummy_obstack_deallocate):
787 ...here.
788 * gdbtypes.c: Include "hashtab.h".
789 (build_gdbtypes): Remove extra prototype.
790 (struct type_pair, type_pair_hash, type_pair_eq)
791 (create_copied_types_hash, copy_type_recursive): New.
792 * gdbtypes.h: Include "hashtab.h".
793 (TYPE_ZALLOC): New.
794 (create_copied_types_hash, copy_type_recursive): New prototypes.
795 * objfiles.c (free_objfile): Call preserve_values.
796 * symfile.c (reread_symbols): Likewise.
797 (clear_symtab_users): Remove calls to clear_value_history and
798 clear_internalvars.
799 * value.c (clear_value_history, clear_internalvars): Removed.
800 (preserve_one_value, preserve_values): New functions.
801 * value.h (clear_value_history, clear_internalvars): Removed.
802 (preserve_values): New prototype.
803
804 * tracepoint.c (_initialize_tracepoint): Do not initialize convenience
805 variables here.
806
b929c77f
MK
8072006-01-29 Mark Kettenis <kettenis@gnu.org>
808
809 * amd64-tdep.c (amd64_classify): Handle TYPE_CODE_BOOL.
810 Fixes PR tdep/2075.
811
1581f359
JB
8122006-01-27 Joel Brobecker <brobecker@adacore.com>
813
814 * MAINTAINERS: Use a consistent email address for brobecker.
815
37706b70
JB
8162006-01-27 Joel Brobecker <brobecker@adacore.com>
817
818 * infcmd.c (post_create_inferior): Fix copy/paste error introduced
819 in the previous change.
820
9353355f
DJ
8212006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
822
823 PR gdb/1914
824 * fork-child.c (fork_inferior): Don't call
825 solib_create_inferior_hook.
826 * infcmd.c (post_create_inferior): Call solib_add,
827 solib_create_inferior_hook, and re_enable_breakpoints_in_shlibs.
828 (attach_command): Don't call solib_add or
829 re_enable_breakpoints_in_shlibs. Call post_create_inferior
830 instead.
831 * remote.c (remote_open_1): Don't call solib_create_inferior_hook
832 or observer_notify_inferior_created. Call post_create_inferior
833 instead.
834 * corelow.c: Don't include "observer.h".
835 (solib_add_stub): Deleted.
836 (core_open): Don't call observer_notify_inferior_created or
837 solib_add_stub. Call post_create_inferior instead.
838 * inf-ptrace.c: Don't include "observer.h".
839 (inf_ptrace_attach): Don't call observer_notify_inferior_created.
840 * inf-ttrace.c: Don't include "observer.h".
841 (inf_ttrace_attach): Don't call observer_notify_inferior_created.
842 * inferior.h (solib_create_inferior_hook): Remove redundant
843 prototype.
844 * inftarg.c: Don't include "observer.h".
845 (child_attach): Don't call observer_notify_inferior_created.
846 * Makefile.in: Update dependencies.
847
281b533b
DJ
8482006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
849
850 * infcmd.c: Include "observer.h".
851 (post_create_inferior): New function.
852 (run_command_1): Call it. Also call proceed.
853 * inferior.h (post_create_inferior): New prototype.
854 * Makefile.in (infcmd.o): Update.
855
856 * gnu-nat.c (gnu_create_inferior): Don't call proceed.
857 * go32-nat.c (go32_create_inferior): Likewise.
858 * nto-procfs.c (procfs_create_inferior): Likewise.
859 * procfs.c (procfs_create_inferior): Likewise.
860 * remote-sim.c (gdbsim_create_inferior): Likewise.
861 * remote.c (extended_remote_create_inferior)
862 (extended_remote_async_create_inferior): Likewise.
863 * win32-nat.c (win32_create_inferior): Likewise.
864 * wince.c (child_create_inferior): Likewise.
865
866 * monitor.c (monitor_create_inferior): Don't call proceed.
867 Set the PC manually.
868 * ocd.c (ocd_create_inferior): Likewise.
869 * remote-e7000.c (e7000_create_inferior): Likewise.
870 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
871 * remote-mips.c (mips_create_inferior): Likewise.
872 * remote-rdp.c (remote_rdp_create_inferior): Likewise.
873 * remote-sds.c (sds_create_inferior): Likewise.
874 * remote-st.c (st2000_create_inferior): Likewise.
875
876 * inf-ptrace.c (inf_ptrace_create_inferior): Don't call
877 proceed or observer_notify_inferior_created.
878 * inf-ttrace.c (inf_ttrace_create_inferior): Likewise.
879 * inftarg.c (child_create_inferior): Likewise.
880
e23fc6de
DJ
8812006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
882
883 * linux-thread-db.c (thread_db_mourn_inferior): Remove breakpoints
884 after mourning the inferior.
885
13d6656b
JB
8862006-01-24 Jim Blandy <jimb@redhat.com>
887
888 * valarith.c (binop_user_defined_p): Handle refs to typedefs.
889
59f92a09
FF
8902006-01-24 Fred Fish <fnf@specifix.com>
891
892 * parse.c (source.h): Include.
893 (parse_exp_in_context): Use static source context if no
894 other context found.
895
dda63807
AS
8962006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
897
898 * sh-tdep.c: Include reggroups.h.
899 (sh_register_reggroup_p): New function.
900 (sh_gdbarch_init): Add call to set_gdbarch_register_reggroup_p.
901 * Makefile.in (sh-tdep.o): Add dependency on reggroups.h.
902
4b505b12
AS
9032006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
904
905 * cli/cli-cmds.c: Include fcntl.h.
906 (source_command): Use the GDB search path to find script files.
907
721d14ba
DJ
9082006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
909
910 PR tdep/2029
911 Suggested by Till Straumann <strauman@slac.stanford.edu>:
912 * rs6000-tdep.c (skip_prologue): Update check for later mtlr
913 instructions. Handle PIC bcl.
914
3d64d617
DJ
9152006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
916
917 * config/djgpp/README: Typo fix.
918 * config/djgpp/fnchange.lst: Update.
919
0a8f48b9
MK
9202006-01-22 Mark Kettenis <kettenis@gnu.org>
921
c893be75
MK
922 * sparc-tdep.h (struct gdbarch_tdep): Add step_trap member.
923 (sparc_address_from_register): New prototype.
924 (sparcnbsd_step_trap): New prototype.
925 * sparc-tdep.c (sparc_address_from_register): Make globally
926 visible.
927 (sparc_analyze_control_transfer): Change prototype to accept
928 `struct gdbarch *' as first argument. Allow for optional hnadling
929 for trap instructions.
930 (sparc_step_trap): New function.
931 (sparc_software_single_step): Adjust call to
932 sparc_analyze_control_trabsfer.
933 (sparc32_gdbarch_init): Initialize TDEP->step_trap.
934 * sparcnbsd-tdep.c (sparcnbsd_step_trap): New function.
935 (sparc32nbsd_init_abi): Set TDEP->step_trap.
936 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Set TDEP->step_trap.
937 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Set TDEP->step_trap.
938
0a8f48b9
MK
939 * sparc-tdep.c (sparc32_return_value): Convert to use
940 RETURN_VALUE_ABI_PRESERVES_ADDRESS instead of
941 RETURN_VALUE_STRUCT_CONVENTION.
942 (sparc32_extract_struct_value_address): Remove.
943
1f3a99d5
DJ
9442006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
945
946 * avr-tdep.c (avr_address_to_pointer, avr_pointer_to_address)
947 (avr_extract_return_value, avr_frame_prev_register): Use gdb_byte.
948
84eb3c4f
DJ
9492006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
950
951 * solib.c (info_sharedlibrary_command): Avoid internal_error.
952
878d9193
MK
9532006-01-21 Mark Kettenis <kettenis@gnu.org>
954
955 * i386-tdep.c (i386_mxcsr_type): New variable.
956 (i386_init_types): Initialize i386_mxcsr_type.
957 (i386_register_type): Return i386_mxcsr_type for %mxcsr.
958 * i386-tdep.c (i386_mxcsr_type): New extern.
959 * amd64-tdep.c (amd64_register_info): Return i386_mxcsr_type for
960 %mxcsr.
961
acab6ab2
MM
9622006-01-20 Mark Mitchell <mark@codesourcery.com>
963
964 * Makefile.in (remote-rdi.o): Remove.
965 (rdi-share/libangsd.a): Likewise.
966 * README: Don't mention remote-rdi.c.
967 * NEWS: Mention removal of rdi-share.
968 * configure.ac: Don't configure rdi-share subdirectory.
969 * remote-rdi.c: Remove.
970 * config/arm/embed.mt (TDEPFILES): Remove remote-rdi.o.
971 (TDEPLIBS): Remove rdi-share/libangsd.a.
972 * rdi-share/Makefile.am: Remove.
973 * rdi-share/Makefile.in: Likewise.
974 * rdi-share/README.CYGNUS: Likewise.
975 * rdi-share/aclocal.m4: Likewise.
976 * rdi-share/adp.h: Likewise.
977 * rdi-share/adperr.h: Likewise.
978 * rdi-share/angel.h: Likewise.
979 * rdi-share/angel_bytesex.c: Likewise.
980 * rdi-share/angel_bytesex.h: Likewise.
981 * rdi-share/angel_endian.h: Likewise.
982 * rdi-share/ardi.c: Likewise.
983 * rdi-share/ardi.h: Likewise.
984 * rdi-share/armdbg.h: Likewise.
985 * rdi-share/buffers.h: Likewise.
986 * rdi-share/chandefs.h: Likewise.
987 * rdi-share/channels.h: Likewise.
988 * rdi-share/chanpriv.h: Likewise.
989 * rdi-share/configure: Likewise.
990 * rdi-share/configure.in: Likewise.
991 * rdi-share/crc.c: Likewise.
992 * rdi-share/crc.h: Likewise.
993 * rdi-share/dbg_conf.h: Likewise.
994 * rdi-share/dbg_cp.h: Likewise.
995 * rdi-share/dbg_hif.h: Likewise.
996 * rdi-share/dbg_rdi.h: Likewise.
997 * rdi-share/devclnt.h: Likewise.
998 * rdi-share/devices.h: Likewise.
999 * rdi-share/devsw.c: Likewise.
1000 * rdi-share/devsw.h: Likewise.
1001 * rdi-share/drivers.c: Likewise.
1002 * rdi-share/drivers.h: Likewise.
1003 * rdi-share/etherdrv.c: Likewise.
1004 * rdi-share/ethernet.h: Likewise.
1005 * rdi-share/host.h: Likewise.
1006 * rdi-share/hostchan.c: Likewise.
1007 * rdi-share/hostchan.h: Likewise.
1008 * rdi-share/hsys.c: Likewise.
1009 * rdi-share/hsys.h: Likewise.
1010 * rdi-share/logging.c: Likewise.
1011 * rdi-share/logging.h: Likewise.
1012 * rdi-share/msgbuild.c: Likewise.
1013 * rdi-share/msgbuild.h: Likewise.
1014 * rdi-share/params.c: Likewise.
1015 * rdi-share/params.h: Likewise.
1016 * rdi-share/rx.c: Likewise.
1017 * rdi-share/rxtx.h: Likewise.
1018 * rdi-share/serdrv.c: Likewise.
1019 * rdi-share/serpardr.c: Likewise.
1020 * rdi-share/sys.h: Likewise.
1021 * rdi-share/tx.c: Likewise.
1022 * rdi-share/unixcomm.c: Likewise.
1023 * rdi-share/unixcomm.h: Likewise.
1024
4577207e
MK
10252006-01-21 Mark Kettenis <kettenis@gnu.org>
1026
1027 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register):
1028 Change type of last argument to `gdb_byte *'.
1029
34f55018
MK
10302006-01-20 Mark Kettenis <kettenis@gnu.org>
1031
1032 * hppa-tdep.h (hppa_in_solib_call_trampoline)
1033 (hppa_skip_trampoline_code): New prototypes.
1034 * hppa-tdep.c (struct insn_pattern): New.
1035 (hppa_long_branch_stub, hppa_long_branch_pic_stub)
1036 (hppa_import_stub, hppa_import_pic_stub, hppa_plt_stub): Moved
1037 here from hppa-linux-tdep.c
1038 (HPPA_MAX_INSN_PATTERN_LEN): New define.
1039 (hppa_match_insns, hppa_match_insns_relaxed, hppa_in_dyncall)
1040 (hppa_in_solib_call_trampoline, hppa_skip_trampoline_code): New
1041 functions based on functions removed from hppa-linux-tdep.c.
1042 * hppa-linux-tdep.c (hppa_long_branch_stub)
1043 (hppa_long_branch_pic_stub, hppa_import_stub)
1044 (hppa_import_pic_stub, hppa_plt_stub): Moved to hppa-tdep.c.
1045 (insns_match_pattern_relaxed, hppa_linux_in_dyncall)
1046 (hppa_linux_in_solib_call_trampoline)
1047 (hppa_linux_skip_trampoline_code): Removed.
1048 (hppa_linux_init_abi): Set TDEP->in_solib_call_tranpoline to
1049 hppa_in_solib_call_trampoline and skip_trampoline_code to
1050 hppa_skip_trampoline_code.
1051 * hppabsd-tdep.c (hppabsd_init_abi): Set
1052 TDEP->in_solib_call_trampoline and skip_trampoline_code.
1053
7be93b9e
JB
10542006-01-20 Jim Blandy <jimb@redhat.com>
1055
f408839d
JB
1056 * MAINTAINERS: Change my E-mail address.
1057
7be93b9e
JB
1058 * configure.ac: Add -Wno-pointer-sign to list of build warnings.
1059 * configure: Regenerated.
1060
b2a74f99
DJ
10612006-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1062
1063 * MAINTAINERS: Overhaul.
1064
4f2aea11
MK
10652006-01-18 Mark Kettenis <kettenis@gnu.org>
1066
5ae96ec1
MK
1067 Based on a previous patch form Michal Ludvig:
1068 * amd64-tdep.c (amd64_sse_type): Remove.
1069 (amd64_register_info): Use i386_eflags_type and i386_sse_type
1070 where appropriate.
1071 (AMD64_NUM_REGS): Use ARRAY_SIZE.
1072 (amd64_register_type): Remove code to build amd_sse_type.
1073 * i386-tdep.c (i386_eflag_type): New variable.
1074 (i386_mmx_type, i386_sse_type): Make global.
1075 (i386_init_types): New function.
1076 (i386_build_mmx_type, i386_build_sse_type): Remove functions.
1077 (i386_register_type): Return i386_eflag_type, i386_sse_type and
1078 i386_mmx_type when appropriate.
1079 (_initialize_i386_tdep): Call i386_init_types.
1080 * i386-tdep.h (i386_eflags_type, i386_mmx_type, i386_sse_type):
1081 Declare extern.
1082
4f2aea11
MK
1083 Based on a previous patch form Michal Ludvig:
1084 * gdbtypes.c (append_flags_type_flag, init_flags_type): New
1085 functions.
1086 (is_integral_type, rank_one_type, recursive_dump_type): Add
1087 support for TYPE_CODE_FLAGS.
1088 * gdbtypes.h (enum type_code): Add TYPE_CODE_FLAGS.
1089 (append_flags_type_field, init_flags_type): New prototypes.
1090 * ada-valprint.c (ada_val_print_1): Add support for
1091 TYPE_CODE_FLAGS.
1092 * c-valprint.c (c_val_print): Likewise.
1093 * f-valprint.c (f_val_print): Likewise.
1094 * p-valprint.c (pascal_val_print): Likewise.
1095 * valprint.c (val_print_type_code_flags): New function.
1096 * valprint.h (val_print_type_code_flags): New prototype.
1097 * value.c (unpack_long, value_from_longest): Add support for
1098 TYPE_CODE_FLAGS.
1099
4cdb5adf
CF
11002006-01-17 Christopher Faylor <cgf@timesys.com>
1101
1102 * MAINTAINERS: Very belatedly remove myself from from the list of
1103 people caught up in the paper trail.
1104
1193688d
JB
11052006-01-17 Jim Blandy <jimb@redhat.com>
1106
4e38b386
JB
1107 * symtab.h (struct general_symbol_info): Use gdb_byte for
1108 value.bytes.
1109 * stabsread.c (define_symbol): Use gdb_byte for the buffer holding
1110 a floating-point constant's value.
1111 * dwarf2read.c (dwarf2_const_value): Remove casts of value buffer
1112 to char *.
1113 * findvar.c (read_var_value): Eliminate needless temporary.
1114
1193688d
JB
1115 * dwarf2-frame.c (dwarf2_read_section): Update forward declaration
1116 to match prior change to dwarf2_read_section's type.
1117
0d1243d9
PG
11182006-01-16 Paul Gilliam <pgilliam@us.ibm.com>
1119
1120 * ppc-tdep.h (PPC_MAX_EPILOGUE_INSTRUCTIONS): New define.
1121 * rs6000-tdep.c (insn_changes_sp_or_jumps)
1122 (rs6000_in_function_epilogue_p): New functions.
1123 (rs6000_gdbarch_init): Set in_function_epilogue_p.
1124
fe1b8b76
JB
11252006-01-17 Jim Blandy <jimb@redhat.com>
1126
1127 * dwarf2read.c (struct dwarf2_per_objfile, struct comp_unit_head)
1128 (struct line_header, struct partial_die_info, struct dwarf_block):
1129 Use gdb_byte for members that refer to Dwarf section contents.
1130 (dwarf2_read_abbrevs, dwarf2_read_section, dwarf_decode_lines,
1131 dwarf_decode_macros, load_comp_unit, load_partial_dies,
1132 locate_pdi_sibling, partial_read_comp_unit_head, peek_die_abbrev,
1133 read_1_byte, read_1_signed_byte, read_2_bytes, read_4_bytes,
1134 read_8_bytes, read_address, read_attribute, read_attribute_value,
1135 read_comp_unit, read_comp_unit_head, read_die_and_children,
1136 read_die_and_siblings, read_full_die, read_indirect_string,
1137 read_initial_length, read_n_bytes, read_offset, read_partial_die,
1138 read_signed_leb128, read_string, read_unsigned_leb128,
1139 skip_children, skip_leb128, skip_one_die): Same.
1140
a0841d7a
DJ
11412006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
1142
1143 * complaints.c (stop_whining): Make signed.
1144 * linux-thread-db.c (thread_db_store_registers): Use gdb_byte.
1145
939b2b42
DJ
11462006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
1147
1148 * dwarf2read.c, remote-fileio.c, remote.h: Update copyright
1149 notices.
1150
891d2f0b
DJ
11512006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
1152
1153 * dwarf2read.c (peek_die_abbrev, read_address, read_initial_length)
1154 (read_offset): Change BYTES_READ argument to unsigned int.
1155 (dwarf2_build_psymtabs_easy, read_comp_unit_head)
1156 (create_all_comp_units, dwarf2_get_pc_bounds)
1157 (dwarf_decode_line_header, var_decode_location)
1158 (dwarf_decode_macros): Change local BYTES_READ variables to
1159 unsigned int.
1160 (read_indirect_string): Remove obsolete cast.
1161
cfd77fa1
DJ
11622006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
1163
1164 * remote-fileio.c (remote_fileio_return_success): Take a gdb_byte
1165 argument.
1166 (remote_fileio_func_open, remote_fileio_func_rename)
1167 (remote_fileio_func_unlink, remote_fileio_func_stat)
1168 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
1169 (remote_fileio_func_system): Cast the arguments to
1170 remote_read_bytes and remote_write_bytes.
1171 (remote_fileio_func_read, remote_fileio_func_write): Use a
1172 gdb_byte buffer.
1173 * remote.h (remote_read_bytes, remote_write_bytes): Update
1174 prototypes.
1175 * remote.c (hex2bin, bin2hex): Use gdb_byte for the BIN argument.
1176 (threadref_to_int): Replace bogus char * cast.
1177 (remote_unpack_thread_info_response): Use int for tag.
1178 (remote_threads_extra_info, remote_check_symbols): Cast string
1179 arguments to hex2bin.
1180 (remote_wait): Use a char buffer for packets and a gdb_byte
1181 buffer for registers.
1182 (remote_async_wait): Likewise.
1183 (remote_prepare_to_store, store_register_using_P)
1184 (remote_store_registers): Use gdb_byte buffers.
1185 (remote_write_bytes, remote_read_bytes): Use a gdb_byte pointer
1186 for MYADDR and char buffers for strings.
1187 (remote_xfer_partial): Add casts for string operations on READBUF.
1188 (remote_rcmd): Cast strings passed to bin2hex.
1189
60bf0650
MM
11902006-01-16 Mark Mitchell <mark@codesourcery.com>
1191
1192 * aclocal.m4: Regenerate.
1193
60e81fcc
NS
11942006-01-16 Nathan Sidwell <nathan@codesourcery.com>
1195
1196 * mt-tdep.c (enum mt_gdb_regnums): Add MT_COPRO_PSEUDOREG_ARRAY,
1197 MT_COPRO_PSEUDOREG_DIM_1, MT_COPRO_PSEUDOREG_DIM_2,
1198 MT_COPRO_PSEUDOREG_REGS members. Adjust MT_NUM_PSEUDO_REGS.
1199 (mt_register_name): Lazily synthesize name for coprocessor pseudo
1200 array registers.
1201 (mt_copro_register_type): New. Broken out of ...
1202 (mt_register_type): ... here. Use it. Deal with coprocessor
1203 pseudo array.
1204 (mt_select_coprocessor): New.
1205 (mt_pseudo_register_read, mt_pseudo_register_write): Deal with
1206 coprocessor pseudo array.
1207
f365de73
AS
12082006-01-16 Andrew Stubbs <andrew.stubbs@st.com>
1209
1210 * breakpoint.c (insert_breakpoints): Check that a thread exists
1211 before inserting thread specific breakpoints.
1212
9d519230
MK
12132006-01-15 Mark Kettenis <kettenis@gnu.org>
1214
6062517a
MK
1215 * osabi.c (generic_elf_osabi_sniffer): Fix typo in previous
1216 commit.
1217
9d519230
MK
1218 * alpha-tdep.c (alpha_gdbarch_init): Set cannot_step_breakpoint.
1219 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Remove.
1220 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Remove.
1221 * config/alpha/nm-nbsd.h: Remove file.
1222 * config/alpha/nm-fbsd.h: Remove file
1223 * config/alpha/nbsd.mh (NAT_FILE): Remove.
1224 * config/alpha/fbsd.mh (NAT_FILE): Remove.
1225
0a029df5
DJ
12262006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
1227
1228 * macroexp.c (expand): Initialize argc.
1229 * stabsread.c (read_type): Handle errors from read_args.
1230 (read_args): Return NULL for errors.
1231
1731e543
MK
12322006-01-15 Mark Kettenis <kettenis@gnu.org>
1233
1234 * osabi.c (generic_elf_osabi_sniffer): Use memcmp instead of
1235 strcmp to compare string to a byte buffer.
1236
777ea8f1
DJ
12372006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
1238
1239 * printcmd.c (output_command): Always initialize fmt.size.
1240 (printf_command): Use gdb_byte.
1241 * symfile.c (separate_debug_file_exists): Use gdb_byte.
1242 (load_section_callback, read_target_long_array): Likewise.
1243 (simple_read_overlay_table, simple_read_overlay_region_table)
1244 (simple_overlay_update_1): Correct calls to read_target_long_array.
1245 * valprint.c (partial_memory_read): Change MYADDR to a gdb_byte *.
1246 Also change local pointers.
1247 (val_print_string): Use gdb_byte.
1248
4b17b389
MK
12492006-01-15 Mark Kettenis <kettenis@gnu.org>
1250
1251 * alphafbsd-tdep.c: Include "solib-svr4.h".
1252 (alphafbsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1253 svr4_lp64_fetch_link_map_offsets.
1254 * Makefile.in (alphafbsd-tdep.o): Update dependencies.
1255 * config/alpha/fbsd.mt (TDEPFILES): Add corelow.o, solib.o and
1256 solib-svr4.o.
1257 * config/alpha/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
1258 and solib-legacy.o.
1259 * config/alpha/nm-fbsd.h: Don't include "solib.h".
1260
bd4109fb
DJ
12612006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
1262
1263 * source.c (_initialize_source): Use add_setshow_integer_cmd.
1264
1dce6535
DJ
12652006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
1266
1267 * linux-fork.c (delete_fork_command, detach_fork_command): Use
1268 PIDGET.
1269
76a9d10f
MK
12702006-01-15 Mark Kettenis <kettenis@gnu.org>
1271
1272 * arm-linux-tdep.c (arm_linux_svr4_fetch_link_map_offsets):
1273 Remove.
1274 (arm_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
1275 svr4_ilp32_fetch_link_map_offsets.
1276 * cris-tdep.c (cris_linux_svr4_fetch_link_map_offsets): Remove
1277 function.
1278 (cris_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
1279 svr4_ilp32_fetch_link_map_offsets.
1280 * mips-linux-tdep.c (mips_linux_svr4_fetch_link_map_offsets)
1281 (mips64_linux_svr4_fetch_link_map_offsets): Remove functions.
1282 (mips_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
1283 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
1284 where appropriate.
1285 * nbsd-tdep.c (nbsd_ilp32_solib_svr4_fetch_link_map_offsets):
1286 Simply call svr4_ilp32_fetch_link_map_offsets.
1287 (nbsd_lp64_solib_svr4_fetch_link_map_offsets): Simply call
1288 svr4_lp64_fetch_link_map_offsets.
1289 * ppc-linux-tdep.c (ppc_linux_svr4_fetch_link_map_offsets): Remove
1290 function.
1291 (ppc_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
1292 svr4_ilp32_fetch_link_map_offsets.
1293 * s390-tdep.c (s390_svr4_fetch_link_map_offsets)
1294 (s390x_svr4_fetch_link_map_offsets): Remove functions.
1295 (s390_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
1296 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
1297 where appropriate.
1298
469db033
MK
12992006-01-15 Mark Kettenis <kettenis@gnu.org>
1300
25224166
MK
1301 * arm-tdep.c (arm_return_value): Change type of readbuf and
1302 writebuf arguments to `gdb_byte *'.
1303
469db033
MK
1304 * s390-tdep.c: Do not include "tm.h" and "../bfd/bfd.h".
1305 * Makefile.in (s390-tdep.o): Update dependencies.
1306
4dd7c9f6
MK
13072006-01-14 Mark Kettenis <kettenis@gnu.org>
1308
081bf9da
MK
1309 * sol2-tdep.h. sol2-tdep.c: New files.
1310 * amd64-sol2-tdep.c: Include "sol2-tdep.h".
1311 (amd64_sol2_init_abi): Set skip_solib_resolver.
1312 * i386-sol2-tdep.c: Include "sol2-tdep.h".
1313 (i386_sol2_init_abi): Set skip_solib_resolver.
1314 * sparc-sol2-tdep.c: Include "sol2-tdep.h".
1315 (sparc32_sol2_init_abi): Set skip_solib_resolver.
1316 * sparc64-sol2-tdep.c: Include "sol2-tdep.h".
1317 (sparc64_sol2_init_abi): Set skip_solib_resolver.
1318 * Makefile.in (sol2_tdep_h): New variable.
1319 (ALLDEPFILES): Add sol2-tdep.c.
1320 (sol2-tdep.o): New target.
1321 (amd64-sol2-tdep.o, i386-sol2-tdep.o, sparc-sol2-tdep.o)
1322 (sparc64-sol2-tdep.o): Update dependencies
1323 * config/i386/i386sol2.mt (TDEPFILES): Add sol2-tdep.o.
1324 * config/i386/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
1325 * config/sparc/sol2.mt (TDEPFILES): Add sol2-tdep.o.
1326 * config/sparc/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
1327
c0f96416
MK
1328 * hppa-linux-tdep.c: Fix copyright indentation.
1329
4dd7c9f6
MK
1330 * hppa-tdep.h (enum hppa_regnum): Add HPPA_FP31R_REGNUM.
1331 * hppabsd-nat.c (hppabsd_fpregset_supplies_p)
1332 (hppabsd_supply_fpregset, hppabsd_collect_fpregset): New
1333 functions.
1334 (hppabsd_fetch_registers, hppabsd_store_registers): Handle
1335 floating-point registers.
1336
6da86618
MM
13372006-01-13 Mark Mitchell <mark@codesourcery.com>
1338
1339 * event-loop.c (gdb_select): Detect file descriptors that have
1340 been closed.
1341
ed944ce7
MK
13422006-01-13 Mark Kettenis <kettenis@gnu.org>
1343
1344 * hppabsd-tdep.c (hppabsd_init_abi): Set long_double_bit to 64,
1345 and long_double_format accordingly.
1346
03ee6b2e
PH
13472006-01-12 Paul N. Hilfinger <hilfinger@adacore.com>
1348
1349 * ada-exp.y (yyerror): Change message to ignore the argument, avoiding
1350 translation problems.
1351 * ada-lang.c (ada_value_struct_elt): Change interface and handling
1352 of errors to avoid translation problem (and less than optimal error
1353 messages).
1354 (ada_value_tag, ada_tag_name_1, ada_tag_name_2, ada_evaluate_subexp):
1355 Use new interface to ada_value_struct_elt.
1356 * ada_lang.h (ada_value_struct_elt): Update declaration to new
1357 interface.
1358
1359 * ChangeLog: remove reference to ada-tasks.c from entry of
1360 2006-01-07.
1361
24b06219
MK
13622006-01-11 Mark Kettenis <kettenis@gnu.org>
1363
1364 * remote.c (get_memory_packet_size, set_thread)
1365 (remote_unpack_thread_info_response, remote_get_threadinfo)
1366 (parse_threadlist_response, remote_get_threadlist)
1367 (remote_current_thread, remote_threads_info)
1368 (remote_threads_extra_info, extended_remote_restart, get_offsets)
1369 (remote_check_symbols, remote_open_1, remote_detach)
1370 (remote_async_wait, remote_fetch_registers)
1371 (remote_store_registers, check_binary_download, putpkt_binary)
1372 (remote_insert_breakpoint, remote_insert_watchpoint)
1373 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
1374 (remote_remove_hw_breakpoint, remote_xfer_partial, remote_rcmd)
1375 (packet_command): Remove redundant parenthesis.
1376
15550d6b
MK
13772006-01-10 Mark Kettenis <kettenis@gnu.org>
1378
dfb65433
MK
1379 * corefile.c (read_memory_integer, read_memory_unsigned_integer)
1380 (read_memory_typed_address, write_memory)
1381 (write_memory_unsigned_integer, write_memory_signed_integer): Use
1382 gdb_byte where appropriate.
1383
508416a1
MK
1384 * mi/mi-main.c (mi_cmd_data_read_memory): Change type of mbus into
1385 'gdb_byte *'.
1386
f6519ebc
MK
1387 * target.h (target_read_memory_partial, target_write_memory_partial):
1388 Change second argument to 'gdb_byte *'.
1389 * target.c (target_xfer_memory_partial): Change third argument to
1390 'gdb_byte *'.
1391 (target_read_memory_partial, target_write_memory_partial): Change
1392 second argument to 'gdb_byte *'.
1393
15550d6b
MK
1394 * linespec.c (decode_objc): Make i1 and i2 unsigned.
1395 (find_method): Set values.sals to NULL.
1396
d7a30af7
MK
13972006-01-09 Mark Kettenis <kettenis@gnu.org>
1398
1399 * amd64obsd-nat.c (amd64obsd_supply_pcb): Use 'gdb_byte *' instead
1400 of 'char *' in cast.
1401
e1d5a0d2
PH
14022006-01-07 Paul N. Hilfinger <hilfinger@adacore.com>
1403
1404 * ada-exp.y, ada-lex.l, ada-typeprint.c: I18n markup.
03ee6b2e 1405 * ada-lang.c: I18n markup.
e1d5a0d2
PH
1406 Editorial: change "can not" => "cannot" throughout.
1407
790124be
MK
14082006-01-07 Mark Kettenis <kettenis@gnu.org>
1409
1410 * Makefile.in: Sort dependencies.
1411
3c481fdc
EZ
14122006-01-07 Eli Zaretskii <eliz@gnu.org>
1413
1414 * top.c (control_level): Remove unused variable.
1415
cb5d864f
FF
14162006-01-06 Fred Fish <fnf@specifix.com>
1417
1418 * objfiles.c (source.h): Include.
1419 (free_objfile): Update comment about clear_symtab_users().
1420 (free_objfile): Check all symtabs of objfile being freed and if
1421 one of them is the current source symtab, call
1422 clear_current_source_symtab_and_line().
1423
ac264b3b
MS
14242006-01-04 Michael Snyder <msnyder@redhat.com>
1425
1426 Checkpoint/Restart for Linux.
1427 * linux-nat.c: Add support for debugging multiple forks.
1428 Add #include for linux-fork.h (interface spec).
1429 (super_mourn_inferior): New function pointer.
1430 (child_mourn_inferior): New function / target method.
1431 (linux_target): Claim to_mourn_inferior method pointer.
1432 (child_follow_fork): Call interface to linux-fork, conditionally
1433 add new fork processes to list of debugged processes.
1434 (kill_inferior): Use interface to linux-fork to kill
1435 multiple processes.
1436
1437 * linux-fork.h: New file.
1438 * linux-fork.c: New file. Support for debugging multiple forks
1439 of the same program. Support for checkpoint and restart commands.
1440
1441 * infrun.c (nullify_last_target_wait_ptid): New function.
1442
1443 * Makefile.in: Add linux-fork.
1444 * config/*/linux.mh: Add linux-fork.
1445 * NEWS: Mention new functionality.
1446
f98ce7c2
PH
14472006-01-02 Paul Hilfinger <hilfingr@nile.gnat.com>
1448
1449 * ada-exp.y (syntax definitions,write_var_or_type,write_name_assoc):
1450 Change uses of "illegal" to "invalid".
1451
52ce6436
PH
14522006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
1453
1454 * ada-exp.y: Considerable reorganization to move functionality
1455 from ada-lex.l to here, where it is logically more appropriate.
1456 The original reason, however, was to prevent premature name
1457 lookups for selector names in record aggregates.
1458 (BLOCKNAME, TYPENAME, OBJECT_RENAMING): Remove; lexer now returns
1459 NAME for all of these.
1460 (VAR): New artificial token to clarify precedence rules.
1461 (OTHERS): New lexeme.
1462 (empty_stoken): New symbol.
1463 (%union): Remove ssym, voidval.
1464 (%type): Remove <voidval> type declarations.
1465 (syntax definitions): Add aggregates.
1466 Remove distinction between NAME, TYPENAME, BLOCKNAME, OBJECT_RENAMING.
1467 Rename some non-terminals to be closer to reference manual usage.
1468 Tighten up expression syntax to disallow certain non-Ada
1469 constructions such as X and then Y or else Z.
1470 (ada_parse): Remove initialization of left_block_context.
1471 (write_var_from_name): Remove.
1472 (write_var_or_type): New function, containing previous code from
1473 defunct write_var_from_name and name_lookup.
1474 (block_lookup): New function, moved from ada-lex.l
1475 (select_possible_type_sym): New function, factored out of
1476 name_lookup, which used to be in ada-lex.l.
1477 (find_primitive_type): Ditto.
1478 (chop_selector): Ditto.
1479 (write_ambiguous_var): New function, factored out of defunct
1480 write_var_from_name.
1481 (write_selectors): New function.
1482 (write_name_assoc): New function.
1483 (write_exp_op_with_string): New function.
1484
1485 * ada-lex.l (processId): Change interface to return stoken.
1486 (tempbuf, resize_tempbuf, tempbuf_size, tempbuf_len): Remove.
1487 (block_lookup, name_lookup): Remove. Functionality moved to
1488 ada-exp.y.
1489 (state IN_STRING): Remove.
1490 (rules): Handle string escapes in processString.
1491 Add 'others' token.
1492 Return all NAMEs, BLOCKNAMEs, OBJECT_RENAMINGs, TYPENAMEs in
1493 yylval.sval (as simple strings).
1494 All name look-ups now handled in ada-exp.y.
1495 Introduce "::" (COLONCOLON) token and return as separate token.
1496 (processId): Change return convention. Comment.
1497 Leave leading "'" in place.
1498 (processString): New function.
1499 (find_dot_all): Add note to comment.
1500 Fix problem that allowed match only at the end.
1501
1502 * ada-lang.c: Introduce aggregates.
1503 (find_struct_field): Add new parameter to count fields skipped, and
1504 allow other output parameters to be NULL.
1505 (value_tag_from_contents_and_address, ada_value_struct_elt): Use
1506 new find_struct_field.
1507 (ada_index_struct_field, assign_aggregate, ada_is_array_type)
1508 (num_visible_fields, ada_index_struct_field_1, ada_index_struct_field)
1509 (num_component_specs, assign_component, assign_aggregate):
1510 (aggregate_assign_from_choices,aggregate_assign_positional)
1511 (aggregate_assign_others,add_component_interval):
1512 New functions.
1513 (ada_evaluate_subexp): Declare.
1514 Add aggregate-related operators.
1515 (ada_forward_operator_length): Declare.
1516 (resolve_subexp): Add cases for new aggregate operators and OP_NAME.
1517 Consolidate Ada operators, using ada_forward_operator_length.
1518 (ada_search_struct_field): Search in forward order.
1519 (ADA_OPERATORS): Add new aggregate operators.
1520 (ada_operator_length, ada_op_name, ada_forward_operator_length)
1521 (ada_dump_subexp_body, ada_print_subexp): Handle new aggregate
1522 operators and OP_NAME.
1523 (ada_type_of_array): Use longest_to_int.
1524 (value_assign_to_component): New function.
1525 (ada_forward_operator_length, ada_op_name, ada_dump_subexp_body):
1526 Add OP_NAME case.
1527 (ada_forward_operator_length, ada_dump_subexp_body):
1528 Add OP_STRING case.
1529
1530 * ada-lang.h (enum ada_operator): Add OP_AGGREGATE, OP_OTHERS,
1531 OP_CHOICES, OP_DISCRETE_RANGE, OP_POSITIONAL.
1532
529cad9c
PH
15332006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
1534
1535 * ada-lang.c (process_raise_exception_name): Remove extraneous
1536 definition from unsubmitted code.
1537
1538 (is_lower_alphanum): New function.
1539 (ada_decode): Add support for decoding protected object subprograms
1540 and entries, and of entities declared inside protected object
1541 subprograms.
1542 Also add missing handling for__{DIGITS}+ suffixes.
1543 Allow '$<digits>' as valid overloading suffix.
1544 (is_name_suffix): Add handling for protected type entriy suffixes.
1545 Also add support for protected type subprogram suffixes, but keep
1546 it commented out for now, as there is an ambiguity between these
1547 entities and other internally generated entities.
1548 Allow '$<digits>' as valid overloading suffix.
1549 (is_valid_name_for_wild_match): New function.
1550 (wild_match): Add an exra level of verification of the entity name
1551 before declaring it a match for the given pattern.
1552
1553 (ada_type_of_array, ada_evaluate_subexp): Use more proper
1554 longest_to_int rather than cast.
1555
1556 (ada_evaluate_subexp): Use "invalid" rather than "illegal" in comment.
1557
1558 (ada_coerce_to_simple_array): Call check_size to make sure
1559 that the object size is reasonable.
1560
1561 (ada_value_primitive_packed_val): Use correct location in target
1562 buffer for extracting packed record fields that are themselves records.
1563
1564 (add_defn_to_vec): Do not try to replace a stub type by its full
1565 type. Avoids a potential infinite loop.
1566
1567 (ada_lookup_symbol): Move return incorrectly placed return statement,
1568 causing a loop that should be scanning all object files to only
1569 scan the first one.
1570
1571 (ada_tag_name_2): New function.
1572 (ada_tag_name_1): If no 'tsd' field found in the dispatching table,
1573 use alternative representation.
1574
1575 (ada_find_renaming_symbol): Strip the function name suffix when
1576 computing the XR type name.
1577
1578 (ada_to_fixed_type): Try determining the tag only if we have the
1579 object's address.
1580 (to_fixed_array_type): Add comments.
1581
1582 (ada_check_typedef): Replace expression checking whether the given
1583 type is a stub or not by a "call" to TYPE_STUB. Clearer and more
1584 consistent.
1585
1586 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Allow
1587 '$' in addition to '.' for runtime auxiliary function name suffixes.
1588 See changes to ada_decode above.
1589
1590 (struct task_control_block): Add field called_task. (This change is
1591 to keep synchronized with our local sources; it does not affect the
1592 public version yet.)
1593
1594 * ada-typeprint.c (ada_print_type): Use int_string for printing
1595 modulus of modular type.
1596
1597 (print_range): Trivial editorial comment fix.
1598
1599 * ada-valprint.c (ada_emit_char): Use normal Ada syntax for
1600 double quote in string.
1601
9b799fe6
JB
16022006-01-01 Joel Brobecker <brobecker@adacore.com>
1603
1604 * top.c: Add 2006 to list of copyright years in file header.
1605
0bee0712
JB
16062006-01-01 Joel Brobecker <brobecker@adacore.com>
1607
1608 * top.c (print_gdb_version): Update copyright year to 2006.
1609
13c763f4
JB
16102006-01-01 Roger Sayle <roger@eyesopen.com>
1611 Elena Zannoni <ezannoni@redhat.com>
1612
1613 PR symtab/1651
1614 * xcoffread.c (xcoff_next_symbol_text): Check this_symtab_psymtab
1615 for NULL before assigning this_symtab_psymtab->objfile to objfile.
1616 (scan_xcoff_symtab): Initialize next_symbol_text_func.
1617 (Committed by Jim Blandy)
1618
e50f0da1 1619For older changes see ChangeLog-2005.
c906108c
SS
1620\f
1621Local Variables:
1622mode: change-log
1623left-margin: 8
1624fill-column: 74
1625version-control: never
1626End: