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