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