* arm-dis.c (coprocessor_opcodes): Don't interpret fldmx/fstmx as
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
401835eb
FF
12006-05-06 Fred Fish <fnf@specifix.com>
2
3 * mips-tdep.c (mips_o64_push_dummy_call): Left shift big endian
4 structs or unions independent of ABI register size.
5
7a076fd2
FF
62006-05-06 Fred Fish <fnf@specifix.com>
7
8 * mips-tdep.c (mips_o64_return_value): Replace stub that always
9 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
10
eec01795
DJ
112006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
12
13 * mi/mi-main.c (captured_mi_execute_command): Check the return
14 value of -interpreter-exec.
15
14b3d9c9
JB
162006-05-03 Vladimir Prus <ghost@cs.msu.su>
17
18 * varobj.c (c_value_of_variable): Ignore top-level references.
19 (Committed by Jim Blandy.)
20
1893a4c0
MK
212006-04-30 Mark Kettenis <kettenis@gnu.org>
22
23 * breakpoint.c (insert_single_step_breakpoint): Make a failure to
24 insert a single-step breakpoint an error instead of a warning.
25
21f79b33
NW
262006-05-01 Nathan J. Williams <nathanw@wasabisystems.com>
27
28 * ppcnbsd-tdep.c (ppcnbsd_return_value): Change type of last two
29 arguments from void * to gdb_byte *.
30
b8db102d
MS
312006-04-26 Michael Snyder <msnyder@redhat.com>
32
33 * linux-fork.c (_initialize_linux_fork): Rename "delete-fork"
34 command to "delete fork" (no hyphen), compatible with other
35 "delete" commands.
36 (info_forks_command): Accept a fork ID argument, for info
37 on a single fork. Report if no matching forks.
38
bc0c849e
MK
392006-04-25 Mark Kettenis <kettenis@gnu.org>
40
1893a4c0
MK
41 * breakpoint.c (remove_single_step_breakpoints): Bail out early if
42 no breakpoints are inserted.
43
bc0c849e
MK
44 From Masaki MURANAKA <monaka@monami-software.com>:
45 * mips-mdebug-tdep.c (mips_mdebug_frame_prev_register): Change
46 type of last argument to `gdb_byte *'
47
5f1fb6dc
JB
482006-04-25 Jim Blandy <jimb@codesourcery.com>
49
50 Add support for 'target remote |' on MinGW.
51 * ser-mingw.c (struct pipe_state): New structure.
52 (make_pipe_state, free_pipe_state, cleanup_pipe_state)
53 (pipe_windows_open, pipe_windows_close, pipe_windows_read)
54 (pipe_windows_write, pipe_wait_handle): New functions.
55 (_initialize_ser_windows): Register a "pipe" interface based on
56 them.
57
c3e2b812
DJ
582006-04-24 Daniel Jacobowitz <dan@codesourcery.com>
59
60 * ser-mingw.c: Include <conio.h>.
61 (struct ser_console_state, struct net_windows_state): Add exit_select,
62 have_stopped, thread.
63 (pipe_select_thread, console_select_thread)
64 (net_windows_select_thread): Don't create a local state copy or
65 close stop_select. Exit on exit_select instead of stop_select. Set
66 have_stopped.
67 (console_select_thread): Don't report control keypresses as pending
68 input.
69 (pipe_select_thread): Allow stop_select to interrupt sleeping.
70 (set_console_wait_handle): Create exit_select and have_stopped.
71 Save the thread handle. Check _kbhit before starting a thread.
72 (ser_console_done_wait_handle): New.
73 (ser_console_close): Close new handles. Wait for the thread to
74 exit.
75 (new_windows_select_thread): Assert that an event occurred.
76 (net_windows_wait_handle): Check for pending input before starting
77 a thread.
78 (net_windows_done_wait_handle): New.
79 (net_windows_open): Create exit_select and have_stopped.
80 Save the thread handle.
81 (net_windows_close): Close new handles. Wait for the thread to
82 exit.
83 (_intiialize_ser_windows): Register done_wait_handle methods.
84
85 * serial.c [USE_WIN32API] (serial_done_wait_handle): New.
86 * serial.h [USE_WIN32API] (struct serial_ops): Add done_wait_handle.
87 [USE_WIN32API] (serial_done_wait_handle): New prototype.
88 * mingw-hdep.c (gdb_select): Use serial_done_wait_handle.
89
b8eb021a
AS
902006-04-23 Andreas Schwab <schwab@suse.de>
91
92 * rs6000-tdep.c: Include "reggroups.h" only once.
93 * Makefile.in (rs6000-tdep.o): Update dependencies.
94
4f1520fb
FR
952006-04-21 Frederic Riss <frederic.riss@st.com>
96
97 * dwarf2read.c (dwarf2_start_subfile): Change prototype to accept
98 compilation directory as last argument.
99 Always pass comp_dir as second argument to start_subfile and prepend
100 dirname to the filename when necessary.
101 Remove now superfluous search for pre-existing subfile.
102 (dwarf_decode_lines): Pass the compilation directory to
103 dwarf2_start_subfile.
104
0271fba4
MS
1052006-04-20 Michael Snyder <msnyder@redhat.com>
106
107 * 2006-03-22 Jim Blandy <jimb@redhat.com>
108 Add support for the Renesas M32C and M16C.
109
110 * configure.tgt (m32c-*-*): New entry.
111 * config/m32c/m32c.mt: New file.
112 * m32c-tdep.c: New file.
113 * Makefile.in (elf_m32c_h): New variable.
114 (m32c-tdep.o): New rule.
115 * NEWS: Mention new target.
116 * MAINTAINERS: Designate Jim Blandy as responsible maintainer.
117
cfde0993
MS
1182006-04-20 Michael Snyder <msnyder@redhat.com>
119
120 * remote.c: Fix spelling error in comment.
121
cba5fab9
DJ
1222006-04-20 Daniel Jacobowitz <dan@codesourcery.com>
123
124 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_prev_register):
125 Correct type of VALUEP. Reported by Jean-Rene Peulve
126 <jr.peulve@wanadoo.fr>.
127
cbba9205
KI
1282006-04-19 Masaki Muranaka <monaka@monami-software.com>
129
130 * m32r-rom.c: On MinGW, include winsock.h instead of sys/types.h,
131 netdb.h, netinet/in.h.
132 (m32r_upload_command); Add calls WSAStartup().
133 * remote-m32r-sdi.c: On MinGW, include winsock.h instead of
134 netinet/in.h.
135
8181d85f
DJ
1362006-04-18 Daniel Jacobowitz <dan@codesourcery.com>
137
138 * breakpoint.c (deprecated_read_memory_nobpt): Update to use
139 shadow_len.
140 (insert_bp_location, reattach_breakpoints, remove_breakpoint)
141 (delete_breakpoint): Update calls to changed methods.
142 (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
143 (single_step_breakpoints, insert_single_step_breakpoint)
144 (remove_single_step_breakpoints): New.
145 * breakpoint.h (struct bp_target_info): New.
146 (struct bp_location): Replace shadow_contents with
147 target_info and overlay_target_info.
148 (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
149 (insert_single_step_breakpoint, remove_single_step_breakpoints): New
150 prototypes.
151 * gdbarch.sh: Forward declare struct bp_target_info in gdbarch.h.
152 (memory_insert_breakpoint, memory_remove_breakpoint): Update second
153 argument.
154 * mem-break.c (default_memory_insert_breakpoint): Update. Set
155 placed_address, placed_size, and shadow_len.
156 (default_memory_remove_breakpoint): Update. Don't use
157 BREAKPOINT_FROM_PC.
158 (memory_insert_breakpoint, memory_remove_breakpoint): Update.
159 * target.c (update_current_target): Update prototypes for changed
160 functions.
161 (debug_to_insert_breakpoint, debug_to_remove_breakpoint)
162 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint):
163 Update.
164 * target.h: Forward declare struct bp_target_info.
165 (struct target_ops): Use a bp_target_info argument for
166 to_insert_breakpoint, to_remove_breakpoint,
167 to_insert_hw_breakpoint, and to_remove_hw_breakpoint.
168 (target_insert_breakpoint, target_remove_breakpoint)
169 (target_insert_hw_breakpoint, target_remove_hw_breakpoint)
170 (memory_insert_breakpoint, memory_remove_breakpoint)
171 (default_memory_insert_breakpoint, default_memory_remove_breakpoint):
172 Update.
173 * config/i386/nm-i386.h: Forward declare struct bp_target_info.
174 (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): Update.
175 (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Likewise.
176
177 * gdbarch.c, gdbarch.h: Regenerated.
178
179 * alpha-tdep.c (alpha_software_single_step): Use
180 insert_single_step_breakpoint and remove_single_step_breakpoints.
181 Remove unused statics.
182 * arm-tdep.c (arm_software_single_step): Likewise. Add a note.
183 * cris-tdep.c (cris_software_single_step): Likewise.
184 * mips-tdep.c (mips_software_single_step): Likewise.
185 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
186 * sparc-tdep.c (sparc_software_single_step): Likewise.
187 * wince.c (struct thread_info_struct): Remove step_prev.
188 (undoSStep): Use remove_single_step_breakpoints.
189 (wince_software_single_step): Use insert_single_step_breakpoint.
190
191 * corelow.c (ignore): Remove unneeded prototype. Update arguments.
192 * exec.c (ignore): Likewise.
193 * sol-thread.c (ignore): Likewise.
194
195 * procfs.c (dbx_link_shadow_contents): Delete.
196 (dbx_link_bpt): New.
197 (procfs_mourn_inferior): Remove it if necessary.
198 (remove_dbx_link_breakpoint): Use it.
199 (insert_dbx_link_bpt_in_file): Set it.
200 (procfs_init_inferior): Don't update dbx_link_bpt_addr.
201 * rs6000-nat.c (exec_one_dummy_insn): Use
202 deprecated_insert_raw_breakpoint and
203 deprecated_remove_raw_breakpoint.
204 * solib-irix.c (shadow_contents, breakpoint_addr): Delete.
205 (base_breakpoint): New.
206 (disable_break): Use it.
207 (enable_break): Set it.
208
209 * i386-nat.c (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint):
210 Update.
211 * ia64-tdep.c (ia64_memory_insert_breakpoint)
212 (ia64_memory_remove_breakpoint): Likewise.
213 * m32r-tdep.c (m32r_memory_insert_breakpoint)
214 (m32r_memory_remove_breakpoint): Likewise.
215 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
216 Likewise. Remove unnecessary prototypes. Use placed_address
217 and placed_size. Removed useless read from memory.
218 * nto-procfs.c (procfs_insert_breakpoint)
219 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
220 (procfs_remove_hw_breakpoint): Update.
221 * ocd.c (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
222 * ocd.h (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
223 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
224 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Likewise.
225 * remote-e7000.c (e7000_insert_breakpoint)
226 (e7000_remove_breakpoint): Likewise.
227 * remote-m32r-sdi.c (m32r_insert_breakpoint)
228 (m32r_remove_breakpoint): Likewise.
229 * remote-mips.c (mips_insert_breakpoint)
230 (mips_remove_breakpoint): Likewise.
231 * remote-rdp.c (remote_rdp_insert_breakpoint)
232 (remote_rdp_remove_breakpoint): Likewise.
233 (rdp_step): Use deprecated_insert_raw_breakpoint and
234 deprecated_remove_raw_breakpoint.
235 * remote-sds.c (sds_insert_breakpoint, sds_remove_breakpoint):
236 Update.
237 * remote-sim.c (gdbsim_insert_breakpoint, gdbsim_remove_breakpoint):
238 Delete.
239 (init_gdbsim_ops): Use memory_insert_breakpoint and
240 memory_remove_breakpoint.
241 * remote-st.c (st2000_insert_breakpoint)
242 (st2000_remove_breakpoint): Update. Remove unused
243 BREAKPOINT_FROM_PC.
244 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
245 Update. Use placed_address and placed_size.
246 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Likewise.
247
01d3a6ce
DJ
2482006-04-12 Daniel Jacobowitz <dan@codesourcery.com>
249
250 * remote.c (extended_remote_restart): Pass the correct length
251 to getpkt.
252
2821caf1
JB
2532006-04-11 Jim Blandy <jimb@codesourcery.com>
254
255 * serial.c (serial_open): Check for special cases at the front of
256 the "device" name before scanning for the ':' that would indicate
257 an IP-based connection.
258
02c5aecd
CF
2592006-04-10 Christopher Faylor <cgf@timesys.com>
260
261 * win32-nat.c (open_symbol_file_object): New function.
262 (in_dynsym_resolve_code): Ditto.
263 (init_win32_ops): Fill in fields which ought not to be NULL.
264
cb832706
CF
2652006-04-10 Christopher Faylor <cgf@timesys.com>
266
267 * win32-nat.c (do_win32_fetch_inferior_registers): Don't do anything
268 with saved context if __COPY_CONTEXT_SIZE is not defined.
269 (handle_output_debug_string): Ditto.
270
03926e1f
DJ
2712006-04-10 Daniel Jacobowitz <dan@codesourcery.com>
272
273 * arm-linux-tdep.c (arm_linux_extract_return_value): Use gdb_byte.
274
b2a0b9b2
DM
2752006-04-09 David S. Miller <davem@sunset.davemloft.net>
276
277 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Append dwarf2
278 frame sniffer.
279 * sparc-tdep.c (sparc32_gdbarch_init): Make sure to call
280 dwarf2_frame_set_init_reg() before gdbarch_init_osabi() so
281 that the latter can override.
282 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
283
ee1b3323
UW
2842006-04-09 Ulrich Weigand <uweigand@de.ibm.com>
285
286 * s390-tdep.c (struct s390_prologue_data): New field 'stack'.
287 (s390_store): Call pv_area_store to track stack slots.
288 (s390_load): Call pv_area_fetch to track stack slots.
289 (s390_check_for_saved): New function.
290 (s390_analyze_prologue): Call pv_area_scan. Allocate and free stack.
291
3fc46200
UW
2922006-04-09 Ulrich Weigand <uweigand@de.ibm.com>
293
294 * Makefile.in (s390-tdep.o): Add dependency on $(prologue_value_h).
295 * s390-tdep.c: Include "prologue-value.h".
296 (struct prologue_value): Remove.
297 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
298 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
299 pv_logical_and, pv_is_identical, pv_is_register): Remove.
300 (compute_x_addr): Remove, replace by ...
301 (s390_addr): ... this new function.
302 (struct s390_prologue_data): Use pv_t instead of prologue_value.
303 (s390_store, s390_load): Likewise.
304 (s390_prologue_frame_unwind_cache): Likewise.
305 (s390_analyze_prologue): Likewise. Also, simplify and combine
306 several conditional statements.
307
d750b939
JB
3082006-04-08 Jim Blandy <jimb@codesourcery.com>
309
310 * Makefile.in (COMMON_OBS): List prologue-value.o. (Omitted from
311 last patch.)
312
0b4294d3
DM
3132006-04-08 David S. Miller <davem@sunset.davemloft.net>
314
315 * sparc-linux-tdep.c (sparc32_linux_step_trap): New.
316 (sparc32_linux_init_abi): Hook it into tdep->step_trap.
07c5f590
DM
317 (sparc32_linux_core_gregset,
318 sparc32_linux_supply_core_gregset,
319 sparc32_linux_collect_core_gregset,
320 sparc32_linux_supply_core_fpregset,
321 sparc32_linux_collect_core_fpregset): New.
322 (sparc32_linux_init_abi): Register them with generic sparc
323 core regset infrastructure.
0b4294d3
DM
324 * sparc64-linux-tdep.c (sparc64_linux_step_trap): New.
325 (sparc64_linux_init_abi): Hook it into tdep->step_trap.
07c5f590
DM
326 (sparc64_linux_core_gregset,
327 sparc64_linux_supply_core_gregset,
328 sparc64_linux_collect_core_gregset,
329 sparc64_linux_supply_core_fpregset,
330 sparc64_linux_collect_core_fpregset): New.
331 (sparc64_linux_init_abi): Register them with generic sparc
332 core regset infrastructure.
0b4294d3
DM
333 * Makefile.in: Update dependencies.
334
9c0dd46b
DM
3352006-04-07 David S. Miller <davem@sunset.davemloft.net>
336
337 * linux-nat.c (linux_nat_thread_alive): Handle targets that
338 do not implement PTRACE_PEEKUSER.
339
670aa98f
DJ
3402006-04-07 Daniel Jacobowitz <dan@codesourcery.com>
341
342 * remote.c (remote_wait): Convert warning to error before
343 parsing corrupt packets.
344
e28493f2
AS
3452006-04-07 Andrew Stubbs <andrew.stubbs@st.com>
346
347 * cli/cli-script.c (struct user_args): Add command field.
348 (arg_cleanup): Free command string.
349 (setup_user_args): Copy the command line before relying on it.
350
7f198e01
JB
3512006-04-06 Joel Brobecker <brobecker@adacore.com>
352
353 * breakpoint.c (_initialize_breakpoint): Add "del" as an alias
354 of the "delete" command.
355
c9f7217e
RC
3562006-04-06 Randolph Chung <tausq@debian.org>
357
358 * MAINTAINERS (Patch champions): Add myself.
359
d993720d
AS
3602006-04-05 Andreas Schwab <schwab@suse.de>
361
362 * Makefile.in: Update dependencies.
363
f5a9b87d
DM
3642006-04-05 David S. Miller <davem@sunset.davemloft.net>
365
366 * sparc-tdep.c (sparc32_dwarf2_frame_init_reg): New.
367 (sparc32_gdbarch_init): Pass it to dwarf2_frame_set_init_reg.
368 * Makefile.in (sparc-tdep.o): Update dependencies.
80f9e3aa
DM
369 * sparc-linux-tdep.c (sparc32_linux_sigframe_init): Pull register
370 window out of the correct stack frame.
371 * sparc64-linux-tdep.c (sparc64_linux_sigframe_init): Likewise.
aff37fc1
DM
372 * dwarf2-frame.c (dwarf2_frame_ops init_reg): Add "next_frame"
373 argument.
374 (dwarf2_frame_default_init_reg): Likewise.
375 (dwarf2_frame_set_init_reg): Update init_reg arg.
376 (dwarf2_frame_init_reg): Take "next_frame" and pass it to
377 ops->init_reg().
378 (dwarf2_frame_cache): Pass next_frame to dwarf2_frame_init_reg.
379 * dwarf2-frame.h (dwarf2-frame_set_init_reg): Update declaration.
380 * cris-tdep.c (cris_dwarf2_frame_init_reg): Add next_frame arg.
381 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
382 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
383 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
384 * sparc-tdep.c (sparc32_struct_return_from_sym): New function.
385 (sparc32_frame_cache): Call it.
386 (sparc32_dwarf2_struct_return_p): New function.
387 (sparc_dwarf2_frame_init_reg): Use it to determine if the function
388 returns a structure and thus we have to indicate the return PC and
389 NPC are 4 bytes later than usual.
faea95b1
DM
390 * sparc-linux-tdep.c (sparc32_linux_init_abi): Append
391 dwarf2 frame sniffer.
392 * Makefile.in (sparc-linux-tdep.o): Update dependencies.
f5a9b87d 393
75e192e6
DM
3942006-04-04 David S. Miller <davem@davemloft.net>
395
396 * config/linux.mh (NATDEPFILES): Remove sparc-sol2-nat.o
397 * config/linux64.h (NATDEPFILES): Likewise
398 * sparc-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
399 fill_fpregset): New.
400 * sparc64-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
401 fill_fpregset): New.
0a59b3af
DM
402 * Makefile.in (sparc-linux-nat.o, sparc64-linux-nat.o): Update for
403 new includes.
404
dbcd679b
AS
4052006-04-04 Andreas Schwab <schwab@suse.de>
406
407 * Makefile.in (elf_common_h): Define.
408
357d3800
AS
4092006-04-03 Andrew Stubbs <andrew.stubbs@st.com>
410
411 * sh-tdep.c (sh_dwarf2_frame_init_reg): New function.
412 (sh_gdbarch_init): Call dwarf2_frame_set_init_reg().
413
d3c139e9
AS
4142006-03-31 Andrew Stubbs <andrew.stubbs@st.com>
415
416 * value.h (struct internalvar): Add field 'endian'.
417 * value.c (lookup_internalvar): Initialise endian.
418 (value_of_internalvar): Flip the endian of built-in types if required.
419 (set_internalvar): Set the endian.
420 (show_convenience): Access the value through value_of_internalvar().
421
bb858e6a
DJ
4222006-03-30 Vladimir Prus <ghost@cs.msu.su>
423
424 * remote.c (watchpoint_to_Z_packet): Use values of Z_packet_type enum
425 instead of hardcoded integer literals.
426
61d9b92f
DJ
4272006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
428
429 * cli/cli-script.c (insert_args): Handle NULL user_args.
430
f7060f85
DJ
4312006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
432
433 * arm-tdep.c (thumb_scan_prologue): Don't try to analyze
434 the function at zero if we have no symbols.
435
295bf0ff
DJ
4362006-03-30 Adrien Kunysz <a_kunysz@yahoo.com>
437
438 * i386-stub.c (getpacket): Fix array overflow.
439 * m32r-stub.c (getpacket): Likewise.
440 * m68k-stub.c (getpacket): Likewise.
441 * sh-stub.c (getpacket): Likewise.
442 * sparc-stub.c (getpacket): Likewise.
443
7abfe014
DJ
4442006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
445
446 * frame.h (set_current_sal_from_frame): New prototype.
447 * stack.c (set_current_sal_from_frame): Make global.
448 * infrun.c (normal_stop): Call set_current_sal_from_frame.
449
0ec9a092
DJ
4502006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
451
452 * linux-thread-db.c: Include "linux-nat.h".
453 (check_for_thread_db): New function, split out from
454 thread_db_new_objfile. Remove dead check for active
455 thread_db on inapplicable targets.
456 (thread_db_new_objfile): Call check_for_thread_db.
457 * Makefile.in (linux-thread-db.o): Update.
458 * linux-nat.c (child_post_attach): Call check_for_thread_db.
459 (linux_child_post_startup_inferior): Likewise.
460 (lin_lwp_attach_lwp): Call target_post_attach instead of
461 child_post_attach.
462 * linux-nat.h (check_for_thread_db): New prototype.
463
6d820c5c
DJ
4642006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
465
466 * remote.c (struct remote_state): Add BUF and BUF_SIZE.
467 (init_remote_state): Initialize the new fields.
468 (get_memory_packet_size): Update BUF and BUF_SIZE if necessary.
469 (set_thread, remote_thread_alive, remote_unpack_thread_info_response)
470 (remote_get_threadinfo, parse_threadlist_response)
471 (remote_get_threadlist, remote_current_thread, remote_threads_info)
472 (remote_threads_extra_info, extended_remote_restart, get_offsets)
473 (remote_check_symbols, remote_open_1, remote_detach)
474 (remove_vcont_probe, remote_vcont_resume, remote_resume)
475 (remote_wait, remote_async_wait, fetch_register_using_p)
476 (remote_fetch_registers, store_register_using_P)
477 (remote_store_registers, check_binary_download, remote_write_bytes)
478 (remote_read_bytes, remote_insert_breakpoint)
479 (remote_remove_breakpoint, remote_insert_watchpoint)
480 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
481 (remote_remove_hw_breakpoint, compare_sections_command)
482 (remote_xfer_partial, remote_rcmd, packet_command)
483 (remote_get_thread_local_address): Use the global incoming buffer
484 instead of alloca or xmalloc. Limit outgoing packets to
485 rs->remote_packet_size and incoming packets to rs->buf_size.
486 Update calls to getpkt and remote_send.
487 (remote_send): Take arguments by reference.
488 (putpkt_binary): Eliminate junkbuf. Use skip_frame.
489 (skip_frame): New function.
490 (read_frame): Take arguments by reference. Expand the packet
491 buffer instead of issuing an error.
492 (getpkt, getpkt_sane): Take arguments by reference.
493 * remote.h (getpkt): Update prototype and doc.
494 * tracepoint.c (remote_get_noisy_reply): Take arguments by
495 reference.
496 (target_buf): Change from array to pointer.
497 (target_buf_size): New variable.
498 (remote_set_transparent_ranges): Update call to getpkt.
499 (trace_start_command, trace_stop_command, trace_status_command):
500 Update calls to remote_get_noisy_reply.
501 (finish_tfind_command): Take arguments by reference.
502 (trace_find_command, trace_find_pc_command)
503 (trace_find_tracepoint_command, trace_find_line_command):
504 (trace_find_range_command, trace_find_outside_command): Update
505 calls to finish_tfind_command.
506 (_initialize_tracepoint): Initialize target_buf_size and target_buf.
507
3d8dcac6
RC
5082005-03-30 Randolph Chung <tausq@debian.org>
509
510 * hppa-linux-tdep.c: Include regset.h.
511 (GR_REGNUM, TR_REGNUM, greg_map): New.
512 (hppa_linux_supply_regset, hppa_linux_supply_fpregset): New.
513 (hppa_linux_regset, hppa_linux_fpregset): New.
514 (hppa_linux_regset_from_core_section): New.
515 (hppa_linux_init_abi): Set regset_from_core_section.
516 (_initialize_hppa_linux_tdep): Register osabi handler for
517 64-bit Linux.
518 * Makefile.in (hppa-linux-tdep.o): Update dependencies.
519 * config/pa/linux.mh: Stop using core-regset.o
520
29d375ac
RC
5212006-03-30 Randolph Chung <tausq@debian.org>
522
523 * hppa-tdep.c (hppa_find_unwind_entry_in_block): New.
524 (hppa_frame_cache): Use new function to find unwind entry.
525 (hppa_frame_this_id): Likewise.
526 (hppa_frame_unwind_sniffer): Likewise.
527
f4267320
DJ
5282006-03-29 Daniel Jacobowitz <dan@codesourcery.com>
529
530 * NEWS: Mention the removal of NLM.
531
5322006-03-29 Steve Ellcey <sje@cup.hp.com>
533
534 * Makefile.in (nlm): Remove target.
535 * configure.tgt (i[34567]86-*-netware*): Do not set build_nlm.
536 * configure.ac: Remove AC_CONFIG_SUBDIRS of nlm.
537 * configure: Regenerate.
538 * doc/gdb.texinfo: Remove gdbserve.nlm documentation.
539 * nlm: Remove directory.
540
698ba934
DJ
5412006-03-29 Daniel Jacobowitz <dan@codesourcery.com>
542
543 * Makefile.in (utils.o): Update.
544 * top.c (in_user_command): New.
545 (command_line_input): Use input_from_terminal_p.
546 (input_from_terminal_p): Don't check caution. Handle
547 stdin == NULL for Insight.
548 * top.h (in_user_command, caution): New declarations.
549 * utils.c: Include "top.h".
550 (query, defaulted_query): Check caution here. Move the call
551 to input_from_terminal_p higher.
552 * cli/cli-script.c (do_restore_user_call_depth): Only decrement
553 the depth. Update in_user_command if necessary.
554 (execute_user_command): Don't clobber old_chain. Set
555 in_user_command. Let do_restore_user_call_depth handle
556 user_call_depth.
557 (read_command_lines): Check whether to prompt before calling
558 Insight hooks.
559 * tui/tui-hooks.c (tui_query_hook): Remove newly unnecessary
560 input_from_terminal_p check.
561
2f00de94
UW
5622006-03-29 Ulrich Weigand <uweigand@de.ibm.com>
563
564 * s390-nat.c (s390_insert_watchpoint): Add missing argument.
565 (s390_remove_watchpoint): Likewise.
566
7d30c22d
JB
5672006-03-28 Jim Blandy <jimb@codesourcery.com>
568
569 * prologue-value.c, prologue-value.h: New files.
570 * Makefile.in (prologue_value_h): New variable.
571 (HFILES_NO_SRCDIR): List prologue-value.h.
572 (SFILES): List prologue-value.c.
573 (COMMON_OBS): List prologue-value.o.
574 (prologue-value.o): New rule.
575
05c6a9a1
MS
5762006-03-27 Michael Snyder <msnyder@redhat.com>
577
578 * xstormy16-tdep.c (xstormy16_return_value, xstormy16_push_dummy_call,
579 xstormy16_pointer_to_address, xstormy16_address_to_pointer,
580 xstormy16_frame_prev_register): Change void* to gdb_byte*.
581 (xstormy16_push_dummy_call): Add block-local char* val,
582 to avoid type conflict with outer scope variable.
583
4e6cbc38
AS
5842006-03-27 Andrew Stubbs <andrew.stubbs@st.com>
585
586 * sh-tdep.c (sh_gdbarch_init): Add missing architectures.
587
75483fbe
NR
5882006-03-27 Nick Roberts <nickrob@snap.net.nz>
589
590 * varobj.c (c_name_of_child, c_value_of_child): Allow non-zero
591 offsets for languages like Fortran.
592
97ce3a05
RC
5932006-03-26 Randolph Chung <tausq@debian.org>
594
595 * config/pa/hppa64.mt: Use HPUX version of the tm file.
596
be85b69f
NR
5972006-03-25 Nick Roberts <nickrob@snap.net.nz>
598
599 * mi/gdb-mi.el (gdbmi-send): Improve regexp to repeat commands.
600 Try to deal with continuation line.
601 (gdbmi, gdbmi-prompt1, gud-gdbmi-marker-filter): Update to new
602 variable names.
603 (gdb-break-list-regexp, gdb-stack-list-frames-regexp):
604 Future proof against new fields being added to MI output.
605 (gdbmi-prompt2, gdb-break-list-handler,gdb-get-source-file)
606 (gdbmi-frame-handler): Update to new variable name
607 gdb-get-buffer-create.
608 (gdbmi-frame-handler): Use hollow-right-triangle for all selected
609 frames which except the innermost (where execution has stopped).
610
7fc4b1a1
RC
6112006-03-24 Randolph Chung <tausq@debian.org>
612
613 * solib-som.c (link_map_start): Don't error out if there is
614 not yet a link map.
615
f973ed9c
DJ
6162006-03-24 Daniel Jacobowitz <dan@codesourcery.com>
617
618 * linux-nat.c (linux_ops_saved): New.
619 (super_mourn_inferior, kill_inferior, threaded, linux_nat_ops)
620 (child_mourn_inferior, child_wait, linux_nat_create_inferior)
621 (linux_nat_fetch_registers, linux_nat_store_registers)
622 (linux_nat_child_post_startup_inferior, init_linux_nat_ops): Delete.
623 (init_lwp_list): Don't set threaded.
624 (add_lwp): Don't modify threaded.
625 (delete_lwp): Don't mention non-threaded mode.
626 (linux_nat_switch_fork): New.
627 (linux_nat_attach): Update inferior_ptid.
628 (linux_nat_wait): Handle num_lwps == 0 at entry. Don't check
629 threaded flag.
630 (linux_nat_kill): Handle pending forks and saved forks.
631 (linux_nat_mourn_inferior): Handle saved forks.
632 (linux_nat_pid_to_str): Don't use the LWP form when there is
633 only one thread.
634 (linux_target): Don't set to_wait, to_kill, or to_mourn_inferior.
635 (linux_nat_add_target): New.
636 (_initialize_linux_nat): Don't initialize the linux native target
637 here.
638 * linux-nat.h (linux_nat_add_target, linux_nat_switch_fork): New
639 prototypes.
640 * linux-fork.c: Include "linux-nat.h".
641 (add_fork): Update initial PID.
642 (fork_load_infrun_state): Call linux_nat_switch_fork.
643 * Makefile.in (linux-fork.o): Update.
644
645 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
646 linux_nat_add_target instead of add_target.
647 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Likewise.
648 * arm-linux-nat.c (_initialize_arm_linux_nat): Likewise.
649 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Likewise.
650 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Likewise.
651 * i386-linux-nat.c (_initialize_i386_linux_nat): Likewise.
652 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Likewise.
653 * m68klinux-nat.c (_initialize_m68k_linux_nat): Likewise.
654 * mips-linux-nat.c (_initialize_mips_linux_nat): Likewise.
655 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Likewise.
656 * s390-nat.c (_initialize_s390_nat): Likewise.
657 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Likewise.
658 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Likewise.
659
791b663b
DJ
6602006-03-24 Daniel Jacobowitz <dan@codesourcery.com>
661
662 * linux-fork.c: Include "gdb_assert.h".
663 (fork_load_infrun_state): Set inferior_ptid and stop_pc here.
664 Update the register cache and selected frame also.
665 (linux_fork_mourn_inferior): Use fork_load_infrun_state. Return
666 to single fork mode if necessary.
667 (linux_fork_context): Remove bits handled by fork_load_infrun_state.
668 * Makefile.in (linux_fork_h): New.
669 (linux-fork.o, linux-nat.o): Update.
670
d311d956
AS
6712006-03-23 Andreas Schwab <schwab@suse.de>
672
673 * config/s390/s390.mh (NATDEPFILES): Add linux-fork.o.
674
a849c9ab
JB
6752006-03-18 Jim Blandy <jimb@codesourcery.com>
676
677 * symtab.h (enum address_class): Doc fix.
678
cf913f37
MS
6792006-03-16 Michael Snyder <msnyder@redhat.com>
680
712e3020 681 * tracepoint.c (tracepoint_save_command): Fix typo in error msg.
88c231eb 682 * target.c (push_target): Fix typo in comment.
94e08568 683 * remote.c (remote_watch_data_address): Fix typo in comment.
cf913f37
MS
684 * i386-tdep.c (i386_push_dummy_call): Fix typo in comment.
685
7c699b81
KB
6862006-03-15 Kevin Buettner <kevinb@redhat.com>
687
688 * frv-linux-tdep.c (gdbcore.h, regcache.h, regset.h, gdb_string.h):
689 Include.
690 (FRV_ELF_NGREG, FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR, FRV_PT_CCCR)
691 (FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0, FRV_PT_GNER1)
692 (FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR, FRV_PT_TBR)
693 (FRV_PT_EXEC_FDPIC_LOADMAP, FRV_PT_INTERP_FDPIC_LOADMAP): Define.
694 (frv_elf_greg_t, frv_elf_gregset_t, frv_elf_fpreg_t)
695 (frv_elf_fpregset_t): Define types.
696 (frv_linux_supply_gregset, frv_linux_supply_fpregset)
697 (frv_linux_regset_from_core_section: New functions.
698 (frv_linux_gregset, frv_linux_fpregset): New static globals.
699 (frv_linux_init_abi): Register the `regset_from_core_section' method.
700 * Makefile.in (frv-linux-tdep.o): Update dependencies.
701 * solib-frv.c (frv_current_sos): Relocate main executable after
702 loading core file.
703 (frv_clear_solib): Clean up space associated with
704 `main_executable_lm_info'.
705 * config/frv/frv.mt (TDEPFILES): Add corelow.o to this list.
706
d37eb719
DJ
7072006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
708
709 * Makefile.in (mips_linux_tdep_h): New.
710 (mpis-linux-nat.o, mips-linux-tdep.o): Update.
711 * mips-linux-nat.c: Include "inferior.h", "mips-linux-tdep.h", and
712 <sys/ptrace.h>.
713 (have_ptrace_regsets, super_fetch_registers, super_store_registers)
714 (mips64_linux_regsets_fetch_registers)
715 (mips64_linux_regsets_store_registers, mips64_linux_fetch_registers)
716 (mips64_linux_store_registers): New.
717 (_initialize_mips_linux_nat): Override to_fetch_registers and
718 to_store_registers.
719 * mips-linux-tdep.h: New file.
720 * mips-linux-tdep.c: Include "mips-linux-tdep.c".
721 (ELF_NGREG, ELF_NFPREG, elf_greg_t, elf_gregset_t, elf_fpreg_t)
722 (elf_fpregset_t, FPR_BASE, PC, CAUSE, BADVADDR, MMHI, MMLO)
723 (FPC_CSR, FPC_EIR, EF_REG0, EF_REG31, EF_LO, EF_HI, EF_CP0_EPC)
724 (EF_CP0_BADVADDR, EF_CP0_STATUS, EF_CP0_CAUSE, EF_SIZE)
725 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, mips64_elf_greg_t)
726 (mips64_elf_gregset_t, mips64_elf_fpreg_t, mips64_elf_fpregset_t)
727 (MIPS64_FPR_BASE, MIPS64_PC, MIPS64_CAUSE, MIPS64_BADVADDR)
728 (MIPS64_MMHI, MIPS64_MMLO, MIPS64_FPC_CSR, MIPS64_FPC_EIR)
729 (MIPS64_EF_REG0, MIPS64_EF_REG31, MIPS64_EF_LO, MIPS64_EF_HI)
730 (MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR, MIPS64_EF_CP0_STATUS)
731 (MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE): Delete.
732 (supply_32bit_reg): Use gdb_byte.
733 (supply_64bit_reg): New.
734 (mips_supply_gregset, mips_fill_gregset, mips_supply_fpregset)
735 (mips_fill_fpregset, fetch_core_registers, supply_gregset)
736 (fill_gregset, supply_fpregset): Update for renamed types.
737 (mips64_supply_gregset): Use gdb_byte and supply_64bit_reg.
738 (mips64_fill_gregset): Make global. Handle 32-bit register
739 sizes.
740 (mips64_fill_fpregset): Make global. Use gdb_byte. Handle
741 FP regsets properly.
742
9f62d0e2
DJ
7432006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
744
745 * mips-linux-tdep.c (mips_supply_gregset): Renamed from supply_gregset.
746 (mips_fill_gregset): Renamed from fill_gregset.
747 (mips_supply_fpregset): Renamed from supply_fpregset.
748 (mips_fill_fpregset): Renamed from fill_fpregset.
749 (fetch_core_registers): Update calls.
750 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): New
751 functions.
752
26c53e50
DJ
7532006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
754
755 * mips-tdep.c (mips_gdbarch_init): Default 64-bit ELF files to N64.
756
5b652102
DJ
7572006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
758
759 * mips-tdep.c (is_mips16_addr, mips32_next_pc, add_offset_16):
760 Correct arithmetic for 64-bit CORE_ADDR.
761
d05f6826
DJ
7622006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
763
764 * mips-linux-tdep.c: Include "floatformat.h".
765 (mips_linux_init_abi): Use 128-bit long double for N32 and N64.
0a407ead
DJ
766 * mips-tdep.c (mips_n32n64_return_value): Support 128-bit long
767 double.
d05f6826
DJ
768 (print_gp_register_row): Don't print spaces before ignored
769 or floating point registers.
6367c6b1 770 * Makefile.in (mips-linux-tdep.o): Update.
d05f6826 771
3e5af19e
DJ
7722006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
773
774 * mips-mdebug-tdep.c (compare_pdr_entries): Use bfd_get_signed_32
775 for code addresses.
776 (non_heuristic_proc_desc): Likewise.
777
dc60ece8
DJ
7782006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
779
780 * mips-linux-nat.c: Include "gdb_proc_service.h".
781 (PTRACE_GET_THREAD_AREA): Define.
782 (ps_get_thread_area): New.
783 * Makefile.in (mips-linux-nat.o): Update.
784
2f83030f
JB
7852006-03-13 Jim Blandy <jimb@codesourcery.com>
786
787 * MAINTAINERS: Use my work address.
788
56aac7e8 7892006-03-09 Michael Snyder <msnyder@redhat.com>
a9877905 790
56aac7e8
MS
791 * linux-nat.c (kill_inferior): Just call target_mourn_inferior
792 instead of getting tricky for the multi-fork case.
793 * linux-fork.c (linux_fork_killall): Call PT_KILL and waitpid
794 for each fork, and then use init_fork_list to delete them.
a9877905 795
831004b7
AO
7962006-03-08 Alexandre Oliva <aoliva@redhat.com>
797
798 * solib-svr4.c (svr4_current_sos): Move up initialization of
799 l_addr, such that it clearly covers all cases.
800
f1b4b38e
AS
8012006-03-08 Andreas Schwab <schwab@suse.de>
802
803 * ia64-tdep.c (ia64_libunwind_frame_this_id): Adapt use of
804 libunwind_frame_prev_register to use a gdb_byte buffer and
805 extract_unsigned_integer.
806 (ia64_libunwind_sigtramp_frame_prev_register): Likewise.
807
808 * libunwind-frame.c (libunwind_frame_prev_register): Change type
809 of last argument to `gdb_byte *'
810 * libunwind-frame.h: Adjust declaration.
811
f53f0d0b
PB
8122006-03-08 Paul Brook <paul@codesourcery.com>
813
814 * arm-tdep.c (arm_push_dummy_call): Remove stack alignment.
815 (arm_frame_align): New function.
816 (arm_gdbarch_init): Use it.
817
b67fd56f
AC
8182006-03-03 Khem Raj <khem@mvista.com>
819
820 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Use gdb_byte.
821 Committed by Andrew Cagney.
822
a64ae7e0
CV
8232006-03-02 Corinna Vinschen <vinschen@redhat.com>
824
825 * mn10300-tdep.c (mn10300_push_dummy_call): Write breakpoint
826 address to MDR register.
827
9733fc94
DJ
8282006-03-01 Daniel Jacobowitz <dan@codesourcery.com>
829
830 * gdbtypes.c (lookup_struct_elt_type): Correct noerr for recursive
831 calls.
832
4897bfb9
RC
8332006-03-01 Randolph Chung <tausq@debian.org>
834
835 * somread.c (som_symfile_read): Update comment and remove unneeded
836 use of a deprecated variable.
837
6fcecea0
RC
8382006-03-01 Randolph Chung <tausq@debian.org>
839
840 * hppa-tdep.h (unwind_table_entry): Update field names to match HP
841 runtime specification.
842 * hppa-tdep.c (internalize_unwinds, hppa_frame_cache): Likewise.
843 (unwind_command): Likewise.
844
46acf081
RC
8452006-03-01 Randolph Chung <tausq@debian.org>
846
847 * hppa-tdep.c (hppa_frame_cache): Handle Region_Description and
848 Pseudo_SP_Set in unwind record.
849
477e69e8
RC
8502006-03-01 Randolph Chung <tausq@debian.org>
851
852 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Use
853 TDEP->is_elf to determine if we are working with a SOM binary.
854 (null_symtab_and_line): Remove unused variable.
855 * config/pa/hppa64.mt: Use tm-hppa.h.
856 * config/pa/tm-hppa64.h: Remove file.
857
848359ac
WZ
8582006-03-01 Wu Zhou <woodzltc@cn.ibm.com>
859
860 * f-typeprint.c (f_type_print_base): Delete the redundant space.
861
f9ec92b6
KB
8622006-02-28 Kevin Buettner <kevinb@redhat.com>
863
864 * Makefile.in (mn10300-linux-tdep.o): Update dependencies.
865 * mn10300-linux-tdep.c (frame.h, trad-frame.h, tramp-frame.h):
866 Include.
867 (am33_linux_sigframe_cache_init): New function.
868 (am33_linux_sigframe, am33_linux_rt_sigframe): New signal frame
869 descriptions.
870 (AM33_SIGCONTEXT_D0, AM33_SIGCONTEXT_D1, AM33_SIGCONTEXT_D2)
871 (AM33_SIGCONTEXT_D3, AM33_SIGCONTEXT_A0, AM33_SIGCONTEXT_A1)
872 (AM33_SIGCONTEXT_A2, AM33_SIGCONTEXT_A3, AM33_SIGCONTEXT_E0)
873 (AM33_SIGCONTEXT_E1, AM33_SIGCONTEXT_E2, AM33_SIGCONTEXT_E3)
874 (AM33_SIGCONTEXT_E4, AM33_SIGCONTEXT_E5, AM33_SIGCONTEXT_E6)
875 (AM33_SIGCONTEXT_E7, AM33_SIGCONTEXT_LAR, AM33_SIGCONTEXT_LIR)
876 (AM33_SIGCONTEXT_MDR, AM33_SIGCONTEXT_MCVF, AM33_SIGCONTEXT_MCRL)
877 (AM33_SIGCONTEXT_MCRH, AM33_SIGCONTEXT_MDRQ, AM33_SIGCONTEXT_SP)
878 (AM33_SIGCONTEXT_EPSW, AM33_SIGCONTEXT_PC, AM33_SIGCONTEXT_FPUCONTEXT):
879 New constants.
880 (am33_linux_init_osabi): Register signal frame unwinders.
881
e92e42f5
KB
8822006-02-28 Kevin Buettner <kevinb@redhat.com>
883
884 * mn10300-tdep.c (mn10300_analyze_prologue): Implement backtrack
885 out of pattern match by saving relevant state. Fix stack size
886 adjustment bug.
887
cc10cae3
AO
8882006-02-28 Alexandre Oliva <aoliva@redhat.com>
889
890 * solib-svr4.h (struct link_map_offsets): Add l_ld_offset and
891 l_ld_size fields.
892 * solib-svr4.c (struct lm_info): Add l_addr field.
893 (LM_ADDR_FROM_LINK_MAP): Renamed from LM_ADDR.
894 (HAS_LM_DYNAMIC_FROM_LINK_MAP): New.
895 (LM_DYNAMIC_FROM_LINK_MAP): New.
896 (LM_ADDR_CHECK): New. Use it instead of LM_ADDR.
897 (svr4_current_sos): Initialize l_addr. Adjust.
898 (svr4_relocate_section_addresses): Adjust.
899 (svr4_ilp32_fetch_link_map_offsets): Define new members.
900 (svr4_lp64_fetch_link_map_offsets): Likewise.
901 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
902 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Likewise.
903 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
904 * Makefile.in (solib-svr4.o): Depend on $(elf_bfd_h).
905
691342f9
DM
9062006-02-26 David S. Miller <davem@sunset.davemloft.net>
907
908 * config/sparc/linux.mt (TDEPFILES): Add sol2-tdep.o.
909 * config/sparc/linux64.mt (TDEPFILES): Likewise.
910
2c387241
AM
9112006-02-27 Alan Modra <amodra@bigpond.net.au>
912
913 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Correct return type.
914 (ppc_linux_remove_watchpoint): Likewise, and args.
915
3597fb82
MK
9162006-02-26 Mark Kettenis <kettenis@gnu.org>
917
918 * i386obsd-tdep.c (i386obsd_trapframe_sniffer): Also recognize
919 "soft" interrupts.
920
637d6690
CW
9212006-02-24 Charles Wilson <cygwin@cwilson.fastmail.fm>
922
923 * gdb/defs.h: unconditionally include <fcntl.h>, and
924 ensure that O_BINARY is defined.
925 * gdb/solib.c(solib_open): ensure solib files are opened in
926 binary mode.
927 * gdb/corelow.c: Remove O_BINARY macro definition.
928 * gdb/exec.c: Remove O_BINARY macro definition
929 * gdb/remote-rdp.c: Remove O_BINARY macro definition
930 * gdb/source.c: Remove O_BINARY macro definition
931 * gdb/symfile.c: Remove O_BINARY macro definition
932
9846e541
RC
9332006-02-24 Randolph Chung <tausq@debian.org>
934
935 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Initialize
936 argreg.
937 * solib-som.c (som_solib_remove_inferior_hook): Remove unused
938 function.
939
2a5e440c
WZ
9402006-02-24 Wu Zhou <woodzltc@cn.ibm.com>
941
942 * f-exp.y: Symbol '%' is not used as the modulus operator in
943 Fortran. Delete this from Fortran expression.
944 It is now used by Fortran 90 and later to access the member
945 of derived type. Add this into Fortran expression.
946 * f-valprint.c (f_val_print): Add code to handle TYPE_CODE_STRUCT.
947 Print each elements in the derived type.
948 * f-typeprint.c (print_equivalent_f77_float_type): Add a parameter
949 level into the function definition to do indented printing. And
950 call fprintfi_filtered instead to do indented printing.
951 (f_type_print_base): Replace fprintf_filtered with the indented
952 version (fprintfi_filtered).
953 (f_type_print_base): Call indented print_equivalent_f77_float_type.
954 (f_type_print_base): Add code to handle TYPE_CODE_STRUCT. Print
955 the definition of the derived type.
956
92128691
DJ
9572006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
958
959 * gdb_curses.h: Provide a fallback prototype for tgetnum.
960
a6205f53
DJ
9612006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
962
963 * doublest.h: Conditionalize DOUBLEST on PRINTF_HAS_LONG_DOUBLE
964 also.
965 (DOUBLEST_FORMAT): Rename to DOUBLEST_PRINT_FORMAT.
966 (DOUBLEST_SCAN_FORMAT): New.
967 * ada-lex.l (PRINTF_HAS_LONG_DOUBLE): Remove redefinitions.
968 (processReal): Use DOUBLEST_SCAN_FORMAT.
969 * c-exp.y (parse_number): Likewise.
970 * jv-exp.y (parse_number): Likewise.
971 * objc-exp.y (parse_number): Likewise.
972 * p-exp.y (parse_number): Likewise.
973
0f0b8dcd
DJ
9742006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
975
976 * event-top.c (async_do_nothing, async_disconnect)
977 (async_stop_sig, async_float_handler): Remove duplicated
978 prototypes.
979 (handle_sighup): Guard prototype with SIGHUP.
980 (async_do_nothing): Guard function and prototype with
981 SIGQUIT || SIGHUP.
982 (async_disconnect): Guard prototype with SIGHUP.
983 (async_stop_sig): Guard prototype with STOP_SIGNAL.
984
4e91d01c
DJ
9852006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
986
987 * maint.c (maintenance_dump_me): Remove unnecessary prototype.
988
1e0600be
DJ
9892006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
990
991 * win32-termcap.c (tputs): Return 0.
992
094a342e
MK
9932006-02-21 Mark Kettenis <kettenis@gnu.org>
994
995 * configure.ac: Introduce ---enable-werror, which adds -Werror to
996 the compiler command line. Enabled by default. Disable with
997 --disable-werror.
998 * configure regenerate.
999
74763737
DJ
10002006-02-21 Daniel Jacobowitz <dan@codesourcery.com>
1001
1002 * elfread.c (elf_symtab_read): Skip symbols which BFD considers
1003 special.
1004
13d35ae5
AS
10052006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
1006
1007 * defs.h (directory_switch): Add prototype.
1008 * main.c (captured_main): Use directory_switch() instead of
1009 directory_command() to add directories from the -d switch.
1010 * source.c (directory_switch): New function.
1011 (add_path): Use buildargv() to parse spaces in filenames properly.
1012 Strip multiple trailing '/' rather than just one.
1013
5b96932b
AS
10142006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
1015
1016 * symfile.c (add_symbol_file_command): Use buildargv(), instead of
1017 hand decoding the command line, to allow use of quotes and spaces.
1018 (_initialize_symfile): Reorganize the help message for add-symbol-file
1019 such that 'help files' shows a better message.
1020
a6b0a3f3
AS
10212006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
1022
1023 * sh-tdep.c (sh_generic_show_regs): Reformat both code and output.
1024 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs): Likewise.
1025 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs): Likewise.
1026 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs): Likewise.
1027
17fbb0bd
DJ
10282006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
1029
1030 * linux-nat.c (lin_thread_get_thread_signals): Default to __SIGRTMIN
1031 and __SIGRTMIN + 1.
1032
444abaca
DJ
10332006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
1034
1035 * remote.c: Add an enumeration for configurable remote
1036 packets.
1037 (remote_protocol_packets, set_remote_protocol_packet_cmd)
1038 (show_remote_protocol_packet_cmd): New.
1039 (remote_protocol_vcont)
1040 (set_remote_protocol_vcont_packet_cmd)
1041 (show_remote_protocol_vcont_packet_cmd)
1042 (remote_protocol_qSymbol)
1043 (set_remote_protocol_qSymbol_packet_cmd)
1044 (show_remote_protocol_qSymbol_packet_cmd)
1045 (remote_protocol_P, set_remote_protocol_P_packet_cmd)
1046 (show_remote_protocol_P_packet_cmd)
1047 (remote_protocol_Z)
1048 (set_remote_protocol_Z_software_bp_packet_cmd)
1049 (show_remote_protocol_Z_software_bp_packet_cmd)
1050 (set_remote_protocol_Z_hardware_bp_packet_cmd)
1051 (show_remote_protocol_Z_hardware_bp_packet_cmd)
1052 (set_remote_protocol_Z_write_wp_packet_cmd)
1053 (show_remote_protocol_Z_write_wp_packet_cmd)
1054 (set_remote_protocol_Z_read_wp_packet_cmd)
1055 (show_remote_protocol_Z_read_wp_packet_cmd)
1056 (set_remote_protocol_Z_access_wp_packet_cmd)
1057 (show_remote_protocol_Z_access_wp_packet_cmd)
1058 (remote_protocol_binary_download)
1059 (set_remote_protocol_binary_download_cmd)
1060 (show_remote_protocol_binary_download_cmd)
1061 (remote_protocol_qPart_auxv)
1062 (set_remote_protocol_qPart_auxv_packet_cmd)
1063 (show_remote_protocol_qPart_auxv_packet_cmd)
1064 (remote_protocol_qGetTLSAddr)
1065 (set_remote_protocol_qGetTLSAddr_packet_cmd)
1066 (show_remote_protocol_qGetTLSAddr_packet_cmd)
1067 (remote_protocol_p)
1068 (set_remote_protocol_p_packet_cmd)
1069 (show_remote_protocol_p_packet_cmd): Delete.
1070
1071 (init_all_packet_configs): Simplify.
1072 (set_remote_protocol_Z_packet_cmd)
1073 (show_remote_protocol_Z_packet_cmd)
1074 (remote_check_symbols, remote_vcont_probe, remote_vcont_resume)
1075 (remote_fetch_registers, remote_prepare_to_store)
1076 (remote_store_registers, check_binary_download)
1077 (remote_write_bytes, remote_insert_breakpoint)
1078 (remote_remove_breakpoint, remote_insert_watchpoint)
1079 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
1080 (remote_remove_hw_breakpoint, remote_xfer_partial)
1081 (remote_get_thread_local_address): Update for packet array.
1082 (_initialize_remote): Likewise; also update for common
1083 set/show commands.
1084
3bd72c6f
DJ
10852006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
1086
1087 * symfile.c (place_section): Correct retry logic.
1088
a244bdca
CF
10892006-02-19 Christopher Faylor <cgf@timesys.com>
1090
1091 * win32_nat.c (cygwin_load_start): New variable.
1092 (cygwin_load_end): Ditto.
1093 (have_saved_context): Ditto.
1094 (saved_context): Ditto.
1095 (max_dll_name_len): Delete obsolete variable.
1096 (do_win32_fetch_inferior_registers): Use context saved from cygwin1.dll
1097 if we are in a cygwin signal rather than a windows signal.
1098 (solib_symbols_add): Detect and store beginning and end of cygwin DLL
1099 if dll being loaded is the cygwin DLL.
1100 (register_loaded_dll): Remove calculation of max_dll_name_len.
1101 (win32_clear_solib): Ditto.
1102 (handle_load_dll): Delete obsolete variable. Remove unneeded call to
1103 solib_add.
1104 (handle_output_debug_string): Detect and store signal information sent
1105 by Cygwin here.
1106 (handle_exception): Silently pass on errors in the cygwin DLL. Return
1107 -1 on first pass exception.
1108 (win32_continue): Remove spurious clearing of continue_status.
1109 (get_win32_debug_event): Deal differently first chance exception.
1110
806e23c0
RC
11112006-02-19 Randolph Chung <tausq@debian.org>
1112
1113 * hppa-tdep.c (hppa_in_solib_call_trampoline): Only use if no
1114 unwind entry.
1115
d843c49c
FF
11162006-02-16 Fred Fish <fnf@specifix.com>
1117
1118 * eval.c (evaluate_subexp_standard): For OP_TYPE, return
1119 a non lval value zero, of the appropriate type, when avoiding
1120 side effects.
1121 * typeprint.c (ptype_eval): Remove function and declaration.
1122 (ptype_command): Simplify to just a call to whatis_exp.
1123
1c5bada0
PB
11242006-02-15 Paul Brook <paul@codesourcery.com>
1125
1126 * arm-tdep.c (arm_skip_prologue, thumb_get_next_pc, arm_get_next_pc):
1127 Load insn opcodes as unsigned values.
1128
96c1eda2
AO
11292006-02-14 Alexandre Oliva <aoliva@redhat.com>
1130
1131 * doublest.h (DOUBLEST): Use long double only if we can scan
1132 it in. Undefine HAVE_LONG_DOUBLE otherwise.
1133 (DOUBLEST_FORMAT): New.
1134 * c-exp.y (parse_number): Use it.
1135 * jv-exp.y (parse_number): Likewise.
1136 * objc-exp.y (parse_number): Likewise.
1137 * p-exp.y (parse_number): Likewise.
1138 * varobj.c (free_variable): Silence type-punning warnings.
1139 * tui/tui-data.h (struct tui_list): Change type of list member.
1140 * tui/tui-data.c: Remove no-longer-needed type casts.
1141 (source_windows): Silence type-punning warnings.
1142 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Likewise.
1143
92dd43fa
MK
11442006-02-13 Mark Kettenis <kettenis@gnu.org>
1145
1146 Fix PR breakpoints/2080.
1147 * i386-tdep.c (struct i386_frame_cache): Add stack_align member.
1148 (i386_analyze_stack_align): New function.
1149 (i386_analyze_prologue): Use i386_analyze_stack_align.
1150 (i386_frame_cache): Deal with stack realignment.
1151
7314787a
NR
11522006-02-14 Nick Roberts <nickrob@snap.net.nz>
1153
1154 * mi/gdb-mi.el: Use more functions from gdb-ui.el.
1155 (gdb-break-list-regexp): Match "what" field if present.
be85b69f 1156 (gdb-stack-list-frames-regexp): Match "from" field if present.
7314787a
NR
1157 (gdb-stack-list-frames-handler): Present output like "info
1158 breakpoints" so regexps can be shared with gdb-ui
1159
0ea3f30e
DJ
11602006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
1161
1162 * NEWS: Mention native Windows support.
1163 * Makefile.in (gdb_select_h, ser_tcp_h): New.
1164 (ALLDEPFILES): Add ser-mingw.c.
1165 (event-loop.o, inflow.o, mingw-hdep.o, posix-hdep.o, ser-base.o)
1166 (ser-tcp.o, ser-unix.o): Update.
1167 (ser-mingw.o): New rule.
1168 * configure: Regenerated.
1169 * configure.ac: Add ser-mingw.o for mingw32.
1170 * ser-mingw.c: New file.
1171 * event-loop.c: Include "gdb_select.h".
1172 (gdb_select): Remove, moved to mingw-hdep.c and posix-hdep.c.
1173 * ser-base.c: Include "gdb_select.h".
1174 (ser_base_wait_for): Use gdb_select.
1175 * serial.c (serial_for_fd): New function.
1176 (serial_fdopen): Try "terminal" before "hardwire". Initialize
1177 the allocated struct serial.
1178 (serial_wait_handle): New function.
1179 * serial.h (serial_for_fd, serial_wait_handle): New prototypes.
1180 (struct serial_ops) [USE_WIN32API]: Add wait_handle.
1181 * gdb_select.h: New file.
1182 * ser-tcp.c: Include "ser-tcp.h". Remove unused "ser-unix.h" include.
1183 (net_close, net_read_prim, net_write_prim): Make global.
1184 (net_open): Likewise. Pass an exception set to select. Whitespace fix.
1185 Document why we can not use gdb_select.
1186 (_initialize_ser_tcp) [USE_WIN32API]: Do not register TCP support here.
1187 * ser-tcp.h: New file.
1188 * inflow.c (gdb_has_a_terminal): Don't initialize stdin_serial here.
1189 (handle_sigio): Use gdb_select.
1190 (initialize_stdin_serial): New function.
1191 * terminal.h (initialize_stdin_serial): New prototype.
1192 * top.c (gdb_init): Call initialize_stdin_serial.
1193 * mingw-hdep.c (gdb_select): New function, moved from gdb_select in
1194 event-loop.c. Add exception condition support. Use serial_for_fd
1195 and serial_wait_handle. Fix timeout handling.
1196 * posix-hdep.c: Include "gdb_select.h".
1197 (gdb_select): New function.
1198 * remote-st.c (connect_command): Use gdb_select.
1199 * ser-unix.c: Include "gdb_select.h".
1200 (hardwire_send_break, wait_for): Use gdb_select.
1201
121ce6e5
DJ
12022006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
1203
1204 * Makefile.in (mingw-hdep.o, posix-hdep.o): New dependencies.
1205 (ALLDEPFILES): Add mingw-hdep.c and posix-hdep.c.
1206 * configure.ac: Add gdb_host_obs to CONFIG_OBS. Set gdb_host_obs
1207 to posix-hdep.o by default.
1208 * configure: Regenerated.
1209 * configure.host: Document gdb_host_obs. Add an entry for
1210 i[34567]86-*-mingw32*.
1211 * mingw-hdep.c, posix-hdep.c: New files.
1212 * utils.c (safe_strerror): Remove, moved to posix-hdep.o.
1213
1f82754b
JB
12142006-02-10 Joel Brobecker <brobecker@adacore.com>
1215
1216 * defs.h (gdb_osabi): New enum value GDB_OSABI_AIX.
1217 * osabi.c (gdb_osabi_name): Add name of new value GDB_OSABI_AIX.
1218 * rs6000-tdep.h: New file.
1219 * rs6000-tdep.c: Include "rs6000-tdep.h".
1220 (rs6000_gdbarch_init): Remove enabling of software single step.
1221 Will be done in the AIX-specific initialization routine.
1222 * rs6000-aix-tdep.c: New file.
1223 * config/powerpc/aix.mt (TDEPFILES): Add rs6000-aix-tdep.o.
1224 * Makefile.in (rs6000_tdep_h): New variable.
1225 (rs6000-tdep.o): Update dependencies.
1226 (rs6000-aix-tdep.o): New rule.
1227
577b7047
JB
12282006-02-10 Joel Brobecker <brobecker@adacore.com>
1229
1230 * aix-thread.c (_initialize_aix_thread): Use add_setshow_boolean_cmd
1231 instead of add_setshow_zinteger_cmd to defined the aix-thread
1232 boolean setting.
1233
ff800d76
NR
12342006-02-10 Nick Roberts <nickrob@snap.net.nz>
1235
1236 * mi/gdb-mi.el: Update to reflect changes in Emacs 22.0.50.
1237
5afb4e99
DJ
12382006-02-09 Daniel Jacobowitz <dan@codesourcery.com>
1239
1240 * dwarf2read.c (struct dwarf2_per_cu_data): Reduce length to
1241 30 bits. Add load_all_dies flag.
1242 (load_partial_dies): Load all DIEs if per_cu->load_all_dies is set.
1243 Load DW_TAG_member by default. Remove internal_error call.
1244 (find_partial_die): Reload the compilation unit if we can not find
1245 a DIE in the cache. Call internal_error here if we still can not
1246 find the DIE.
1247
a832795c
NR
12482006-02-10 Nick Roberts <nickrob@snap.net.nz>
1249
1250 * breakpoint.c (print_one_breakpoint): Add break to case
1251 bp_catch_vfork in switch statement.
1252
c9dd6fef
WZ
12532006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
1254
1255 * config/i386/nm-i386sol2.h: Update copyright year.
1256 * config/mips/nm-irix5.h: Ditto.
1257 * config/sparc/nm-sol2.h: Ditto.
1258 * s390-nat.c: Ditto.
1259 * ppc-linux-nat.c: Ditto.
1260
2a3cdf79
WZ
12612006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
1262
1263 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Delete.
1264 * config/i386/nm-i386sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
1265 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
1266 * config/mips/nm-irix5.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
1267 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
1268 * config/sparc/nm-sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
1269 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
1270 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): New.
1271 (inf_ttrace_region_size_ok_for_hw_watchpoint): Delete.
1272 (inf_ttrace_target): Delete to_region_size_ok_for_hw_watchpoint and
1273 add to_region_ok_for_hw_watchpoint.
1274 * s390-nat.c (s390_region_size_ok_for_hw_watchpoint): Delete.
1275 (s390_region_ok_for_hw_watchpoint): New.
1276 (_initialize_s390_nat): Delete to_region_size_ok_for_hw_watchpoint
1277 and add to_region_ok_for_hw_watchpoint.
1278 * target.c (default_region_size_ok_for_hw_watchpoint,
1279 debug_to_region_size_ok_for_hw_watchpoint): Delete prototype.
1280 (update_current_target): Delete to_region_size_ok_for_hw_watchpoint
1281 inheritance and default_region_size_ok_for_hw_watchpoint.
1282 (default_region_ok_for_hw_watchpoint): If len is less than or equal
1283 the length of void pointer, return ok.
1284 (default_region_size_ok_for_hw_watchpoint): Delete.
1285 (debug_to_region_size_ok_for_hw_watchpoint): Delete.
1286 (setup_target_debug): Delete to_region_size_ok_for_hw_watchpoint.
1287 * target.h (struct target_ops): Delete
1288 to_region_size_ok_for_hw_watchpoint.
1289 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
1290
e0d24f8d
WZ
12912006-02-08 Ben Elliston <bje@au1.ibm.com>
1292 Wu Zhou <woodzltc@cn.ibm.com>
1293
1294 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG,
1295 PTRACE_GETSIGINFO): Define.
1296 (last_stopped_data_address): New.
1297 (ppc_linux_check_watch_resources): New function.
1298 (ppc_linux_region_ok_for_hw_watchpoint): New function.
1299 (ppc_linux_insert_watchpoint): New function.
1300 (ppc_linux_remove_watchpoint): New function.
1301 (ppc_linux_stopped_data_address): New function.
1302 (ppc_linux_stopped_by_watchpoint): New function.
1303 (_initialize_ppc_linux_nat): Set the above hardware watchpoint
1304 related target vectors.
1305 * rs6000-tdep.c (rs6000_gdbarch_init): Set PPC architectures
1306 to have nonsteppable watchpoint.
1307 * target.c (default_region_ok_for_hw_watchpoint,
1308 debug_to_region_ok_for_hw_watchpoint): New prototypes.
1309 (update_current_target): Inherit to_region_ok_for_hw_watchpoint
1310 and set default to_region_ok_for_hw_watchpoint.
1311 (default_region_ok_for_hw_watchpoint): New function.
1312 (debug_to_region_ok_for_hw_watchpoint): New function.
1313 (setup_target_debug): Set to_region_ok_for_hw_watchpoint of
1314 debug_target.
1315 * target.h (struct target_ops): Add a new target vector
1316 to_region_ok_for_hw_watchpoint.
1317 (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Define this if it is not
1318 defined anyplace else.
927890d0 1319
e0d24f8d 13202005-02-07 Joel Brobecker <brobecker@adacore.com>
927890d0
JB
1321 * symfile.c (add_symbol_file_command): Abort if the user forgot
1322 to provide the address when the file has been loaded.
1323
f4d408c6
DJ
13242006-02-07 Daniel Jacobowitz <dan@codesourcery.com>
1325
1326 * MAINTAINERS: Update file based on maintainers survey. Add
1327 a note to Past Maintainers. Move unresponsive or inactive
1328 maintainers to Authorized Committers or Past Maintainers as
1329 appropriate. Correct Jim Kingdon's email address. Remove
1330 vacant areas of responsibility.
1331
38fcd64c
DJ
13322006-02-06 Vladimir Prus <ghost@cs.msu.su>
1333
1334 * breakpoint.c (print_one_breakpoint): For MI-like UI, output
1335 fullname field.
1336
7b871fab
DJ
13372006-02-03 Daniel Jacobowitz <dan@codesourcery.com>
1338
1339 * exceptions.h (enum errors): Rename NO_ERROR to GDB_NO_ERROR.
1340 * exceptions.c (exception_none, exceptions_state_mc_init)
1341 (throw_vfatal): Use GDB_NO_ERROR.
1342
e4cd0d6a
MK
13432006-02-02 Mark Kettenis <kettenis@gnu.org>
1344
1345 * solib-svr4.h (struct link_map_offsets): Remove r_debug_size and
1346 r_map_size members. Add r_version_offset, r_version_size and
1347 r_ldsomap_offset members.
1348 * solib-svr4.c (solib_svr4_r_map): Renamed from
1349 fetch_link_map_member. Simplify using read_memory_typed_address.
1350 (solib_svr4_r_ldsomap): New function.
1351 (open_symbol_file_object): Use solib_svr_r_map.
1352 (svr4_current_sos): Use solib_svr4_r_map and look for the dynamic
1353 linker by using solib_svr4_r_ldsomap.
1354 (svr4_ilp32_fetch_link_map_offsets)
1355 (svr4_lp64_fetch_link_map_offsets): Adjust for changes to `struct
1356 link_map_offsets'.
1357 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Adjust for
1358 changes to `struct link_map_offsets'.
1359 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets)
1360 (mipsnbsd_lp64_fetch_link_map_offsets): Adjust for changes to
1361 `struct link_map_offsets'.
1362
e26af52f
DJ
13632006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1364
1365 * linux-nat.c (struct saved_ptids, threads_to_delete)
1366 (record_dead_thread, prune_lwps, find_thread_from_lwp)
1367 (exit_lwp): New.
1368 (linux_nat_resume): Call prune_lwps.
1369 (wait_lwp, linux_nat_wait): Call exit_lwp.
1370
46e9880c
DJ
13712006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1372
1373 * printcmd.c (printf_command): Make format string checking
1374 stricter. Add separate cases for long_arg, ptr_arg, and
1375 long_double_arg.
1376 * utils.c (xstrvprintf): Improve the error message issued
1377 for a bad format string.
1378 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT, INTERNAL_CFLAGS_BASE):
1379 New variables.
1380 (gnu-v3-abi.o, monitor.o, procfs.o, linux-thread-db.o): Remove
1381 $(NO_WERROR_CFLAGS).
1382 (printcmd.o): Likewise. Use $(GDB_WARN_CFLAGS_NO_FORMAT) and
1383 enable -Werror.
1384
37a105a1
DJ
13852006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1386
1387 * Makefile.in (remote.o): Update.
1388 * remote.c (show_packet_config_cmd): Shorten messages.
1389 (remote_set_cmdlist, remote_show_cmdlist): Make file-static.
1390 (show_remote_cmd): Iterate.
1391 (_initialize_remote): Remove remote_set_cmdlist,
1392 remote_show_cmdlist.
1393
ae5a43e0
DJ
13942006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1395
1396 * Makefile.in (gdbtypes_h, gdbtypes.o, utils.o): Update.
1397 * defs.h (hashtab_obstack_allocate, dummy_obstack_deallocate): Add
1398 prototypes.
1399 * dwarf2read.c (read_subroutine_type): Use TYPE_ZALLOC.
1400 (hashtab_obstack_allocate, dummy_obstack_deallocate): Moved to...
1401 * utils.c (hashtab_obstack_allocate, dummy_obstack_deallocate):
1402 ...here.
1403 * gdbtypes.c: Include "hashtab.h".
1404 (build_gdbtypes): Remove extra prototype.
1405 (struct type_pair, type_pair_hash, type_pair_eq)
1406 (create_copied_types_hash, copy_type_recursive): New.
1407 * gdbtypes.h: Include "hashtab.h".
1408 (TYPE_ZALLOC): New.
1409 (create_copied_types_hash, copy_type_recursive): New prototypes.
1410 * objfiles.c (free_objfile): Call preserve_values.
1411 * symfile.c (reread_symbols): Likewise.
1412 (clear_symtab_users): Remove calls to clear_value_history and
1413 clear_internalvars.
1414 * value.c (clear_value_history, clear_internalvars): Removed.
1415 (preserve_one_value, preserve_values): New functions.
1416 * value.h (clear_value_history, clear_internalvars): Removed.
1417 (preserve_values): New prototype.
1418
1419 * tracepoint.c (_initialize_tracepoint): Do not initialize convenience
1420 variables here.
1421
b929c77f
MK
14222006-01-29 Mark Kettenis <kettenis@gnu.org>
1423
1424 * amd64-tdep.c (amd64_classify): Handle TYPE_CODE_BOOL.
1425 Fixes PR tdep/2075.
1426
1581f359
JB
14272006-01-27 Joel Brobecker <brobecker@adacore.com>
1428
1429 * MAINTAINERS: Use a consistent email address for brobecker.
1430
37706b70
JB
14312006-01-27 Joel Brobecker <brobecker@adacore.com>
1432
1433 * infcmd.c (post_create_inferior): Fix copy/paste error introduced
1434 in the previous change.
1435
9353355f
DJ
14362006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
1437
1438 PR gdb/1914
1439 * fork-child.c (fork_inferior): Don't call
1440 solib_create_inferior_hook.
1441 * infcmd.c (post_create_inferior): Call solib_add,
1442 solib_create_inferior_hook, and re_enable_breakpoints_in_shlibs.
1443 (attach_command): Don't call solib_add or
1444 re_enable_breakpoints_in_shlibs. Call post_create_inferior
1445 instead.
1446 * remote.c (remote_open_1): Don't call solib_create_inferior_hook
1447 or observer_notify_inferior_created. Call post_create_inferior
1448 instead.
1449 * corelow.c: Don't include "observer.h".
1450 (solib_add_stub): Deleted.
1451 (core_open): Don't call observer_notify_inferior_created or
1452 solib_add_stub. Call post_create_inferior instead.
1453 * inf-ptrace.c: Don't include "observer.h".
1454 (inf_ptrace_attach): Don't call observer_notify_inferior_created.
1455 * inf-ttrace.c: Don't include "observer.h".
1456 (inf_ttrace_attach): Don't call observer_notify_inferior_created.
1457 * inferior.h (solib_create_inferior_hook): Remove redundant
1458 prototype.
1459 * inftarg.c: Don't include "observer.h".
1460 (child_attach): Don't call observer_notify_inferior_created.
1461 * Makefile.in: Update dependencies.
1462
281b533b
DJ
14632006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
1464
1465 * infcmd.c: Include "observer.h".
1466 (post_create_inferior): New function.
1467 (run_command_1): Call it. Also call proceed.
1468 * inferior.h (post_create_inferior): New prototype.
1469 * Makefile.in (infcmd.o): Update.
1470
1471 * gnu-nat.c (gnu_create_inferior): Don't call proceed.
1472 * go32-nat.c (go32_create_inferior): Likewise.
1473 * nto-procfs.c (procfs_create_inferior): Likewise.
1474 * procfs.c (procfs_create_inferior): Likewise.
1475 * remote-sim.c (gdbsim_create_inferior): Likewise.
1476 * remote.c (extended_remote_create_inferior)
1477 (extended_remote_async_create_inferior): Likewise.
1478 * win32-nat.c (win32_create_inferior): Likewise.
1479 * wince.c (child_create_inferior): Likewise.
1480
1481 * monitor.c (monitor_create_inferior): Don't call proceed.
1482 Set the PC manually.
1483 * ocd.c (ocd_create_inferior): Likewise.
1484 * remote-e7000.c (e7000_create_inferior): Likewise.
1485 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1486 * remote-mips.c (mips_create_inferior): Likewise.
1487 * remote-rdp.c (remote_rdp_create_inferior): Likewise.
1488 * remote-sds.c (sds_create_inferior): Likewise.
1489 * remote-st.c (st2000_create_inferior): Likewise.
1490
1491 * inf-ptrace.c (inf_ptrace_create_inferior): Don't call
1492 proceed or observer_notify_inferior_created.
1493 * inf-ttrace.c (inf_ttrace_create_inferior): Likewise.
1494 * inftarg.c (child_create_inferior): Likewise.
1495
e23fc6de
DJ
14962006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
1497
1498 * linux-thread-db.c (thread_db_mourn_inferior): Remove breakpoints
1499 after mourning the inferior.
1500
13d6656b
JB
15012006-01-24 Jim Blandy <jimb@redhat.com>
1502
1503 * valarith.c (binop_user_defined_p): Handle refs to typedefs.
1504
59f92a09
FF
15052006-01-24 Fred Fish <fnf@specifix.com>
1506
1507 * parse.c (source.h): Include.
1508 (parse_exp_in_context): Use static source context if no
1509 other context found.
1510
dda63807
AS
15112006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
1512
1513 * sh-tdep.c: Include reggroups.h.
1514 (sh_register_reggroup_p): New function.
1515 (sh_gdbarch_init): Add call to set_gdbarch_register_reggroup_p.
1516 * Makefile.in (sh-tdep.o): Add dependency on reggroups.h.
1517
4b505b12
AS
15182006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
1519
1520 * cli/cli-cmds.c: Include fcntl.h.
1521 (source_command): Use the GDB search path to find script files.
1522
721d14ba
DJ
15232006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
1524
1525 PR tdep/2029
1526 Suggested by Till Straumann <strauman@slac.stanford.edu>:
1527 * rs6000-tdep.c (skip_prologue): Update check for later mtlr
1528 instructions. Handle PIC bcl.
1529
3d64d617
DJ
15302006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
1531
1532 * config/djgpp/README: Typo fix.
1533 * config/djgpp/fnchange.lst: Update.
1534
0a8f48b9
MK
15352006-01-22 Mark Kettenis <kettenis@gnu.org>
1536
c893be75
MK
1537 * sparc-tdep.h (struct gdbarch_tdep): Add step_trap member.
1538 (sparc_address_from_register): New prototype.
1539 (sparcnbsd_step_trap): New prototype.
1540 * sparc-tdep.c (sparc_address_from_register): Make globally
1541 visible.
1542 (sparc_analyze_control_transfer): Change prototype to accept
1543 `struct gdbarch *' as first argument. Allow for optional hnadling
1544 for trap instructions.
1545 (sparc_step_trap): New function.
1546 (sparc_software_single_step): Adjust call to
1547 sparc_analyze_control_trabsfer.
1548 (sparc32_gdbarch_init): Initialize TDEP->step_trap.
1549 * sparcnbsd-tdep.c (sparcnbsd_step_trap): New function.
1550 (sparc32nbsd_init_abi): Set TDEP->step_trap.
1551 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Set TDEP->step_trap.
1552 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Set TDEP->step_trap.
1553
0a8f48b9
MK
1554 * sparc-tdep.c (sparc32_return_value): Convert to use
1555 RETURN_VALUE_ABI_PRESERVES_ADDRESS instead of
1556 RETURN_VALUE_STRUCT_CONVENTION.
1557 (sparc32_extract_struct_value_address): Remove.
1558
1f3a99d5
DJ
15592006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
1560
1561 * avr-tdep.c (avr_address_to_pointer, avr_pointer_to_address)
1562 (avr_extract_return_value, avr_frame_prev_register): Use gdb_byte.
1563
84eb3c4f
DJ
15642006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
1565
1566 * solib.c (info_sharedlibrary_command): Avoid internal_error.
1567
878d9193
MK
15682006-01-21 Mark Kettenis <kettenis@gnu.org>
1569
1570 * i386-tdep.c (i386_mxcsr_type): New variable.
1571 (i386_init_types): Initialize i386_mxcsr_type.
1572 (i386_register_type): Return i386_mxcsr_type for %mxcsr.
1573 * i386-tdep.c (i386_mxcsr_type): New extern.
1574 * amd64-tdep.c (amd64_register_info): Return i386_mxcsr_type for
1575 %mxcsr.
1576
acab6ab2
MM
15772006-01-20 Mark Mitchell <mark@codesourcery.com>
1578
1579 * Makefile.in (remote-rdi.o): Remove.
1580 (rdi-share/libangsd.a): Likewise.
1581 * README: Don't mention remote-rdi.c.
1582 * NEWS: Mention removal of rdi-share.
1583 * configure.ac: Don't configure rdi-share subdirectory.
1584 * remote-rdi.c: Remove.
1585 * config/arm/embed.mt (TDEPFILES): Remove remote-rdi.o.
1586 (TDEPLIBS): Remove rdi-share/libangsd.a.
1587 * rdi-share/Makefile.am: Remove.
1588 * rdi-share/Makefile.in: Likewise.
1589 * rdi-share/README.CYGNUS: Likewise.
1590 * rdi-share/aclocal.m4: Likewise.
1591 * rdi-share/adp.h: Likewise.
1592 * rdi-share/adperr.h: Likewise.
1593 * rdi-share/angel.h: Likewise.
1594 * rdi-share/angel_bytesex.c: Likewise.
1595 * rdi-share/angel_bytesex.h: Likewise.
1596 * rdi-share/angel_endian.h: Likewise.
1597 * rdi-share/ardi.c: Likewise.
1598 * rdi-share/ardi.h: Likewise.
1599 * rdi-share/armdbg.h: Likewise.
1600 * rdi-share/buffers.h: Likewise.
1601 * rdi-share/chandefs.h: Likewise.
1602 * rdi-share/channels.h: Likewise.
1603 * rdi-share/chanpriv.h: Likewise.
1604 * rdi-share/configure: Likewise.
1605 * rdi-share/configure.in: Likewise.
1606 * rdi-share/crc.c: Likewise.
1607 * rdi-share/crc.h: Likewise.
1608 * rdi-share/dbg_conf.h: Likewise.
1609 * rdi-share/dbg_cp.h: Likewise.
1610 * rdi-share/dbg_hif.h: Likewise.
1611 * rdi-share/dbg_rdi.h: Likewise.
1612 * rdi-share/devclnt.h: Likewise.
1613 * rdi-share/devices.h: Likewise.
1614 * rdi-share/devsw.c: Likewise.
1615 * rdi-share/devsw.h: Likewise.
1616 * rdi-share/drivers.c: Likewise.
1617 * rdi-share/drivers.h: Likewise.
1618 * rdi-share/etherdrv.c: Likewise.
1619 * rdi-share/ethernet.h: Likewise.
1620 * rdi-share/host.h: Likewise.
1621 * rdi-share/hostchan.c: Likewise.
1622 * rdi-share/hostchan.h: Likewise.
1623 * rdi-share/hsys.c: Likewise.
1624 * rdi-share/hsys.h: Likewise.
1625 * rdi-share/logging.c: Likewise.
1626 * rdi-share/logging.h: Likewise.
1627 * rdi-share/msgbuild.c: Likewise.
1628 * rdi-share/msgbuild.h: Likewise.
1629 * rdi-share/params.c: Likewise.
1630 * rdi-share/params.h: Likewise.
1631 * rdi-share/rx.c: Likewise.
1632 * rdi-share/rxtx.h: Likewise.
1633 * rdi-share/serdrv.c: Likewise.
1634 * rdi-share/serpardr.c: Likewise.
1635 * rdi-share/sys.h: Likewise.
1636 * rdi-share/tx.c: Likewise.
1637 * rdi-share/unixcomm.c: Likewise.
1638 * rdi-share/unixcomm.h: Likewise.
1639
4577207e
MK
16402006-01-21 Mark Kettenis <kettenis@gnu.org>
1641
1642 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register):
1643 Change type of last argument to `gdb_byte *'.
1644
34f55018
MK
16452006-01-20 Mark Kettenis <kettenis@gnu.org>
1646
1647 * hppa-tdep.h (hppa_in_solib_call_trampoline)
1648 (hppa_skip_trampoline_code): New prototypes.
1649 * hppa-tdep.c (struct insn_pattern): New.
1650 (hppa_long_branch_stub, hppa_long_branch_pic_stub)
1651 (hppa_import_stub, hppa_import_pic_stub, hppa_plt_stub): Moved
1652 here from hppa-linux-tdep.c
1653 (HPPA_MAX_INSN_PATTERN_LEN): New define.
1654 (hppa_match_insns, hppa_match_insns_relaxed, hppa_in_dyncall)
1655 (hppa_in_solib_call_trampoline, hppa_skip_trampoline_code): New
1656 functions based on functions removed from hppa-linux-tdep.c.
1657 * hppa-linux-tdep.c (hppa_long_branch_stub)
1658 (hppa_long_branch_pic_stub, hppa_import_stub)
1659 (hppa_import_pic_stub, hppa_plt_stub): Moved to hppa-tdep.c.
1660 (insns_match_pattern_relaxed, hppa_linux_in_dyncall)
1661 (hppa_linux_in_solib_call_trampoline)
1662 (hppa_linux_skip_trampoline_code): Removed.
1663 (hppa_linux_init_abi): Set TDEP->in_solib_call_tranpoline to
1664 hppa_in_solib_call_trampoline and skip_trampoline_code to
1665 hppa_skip_trampoline_code.
1666 * hppabsd-tdep.c (hppabsd_init_abi): Set
1667 TDEP->in_solib_call_trampoline and skip_trampoline_code.
1668
7be93b9e
JB
16692006-01-20 Jim Blandy <jimb@redhat.com>
1670
f408839d
JB
1671 * MAINTAINERS: Change my E-mail address.
1672
7be93b9e
JB
1673 * configure.ac: Add -Wno-pointer-sign to list of build warnings.
1674 * configure: Regenerated.
1675
b2a74f99
DJ
16762006-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1677
1678 * MAINTAINERS: Overhaul.
1679
4f2aea11
MK
16802006-01-18 Mark Kettenis <kettenis@gnu.org>
1681
5ae96ec1
MK
1682 Based on a previous patch form Michal Ludvig:
1683 * amd64-tdep.c (amd64_sse_type): Remove.
1684 (amd64_register_info): Use i386_eflags_type and i386_sse_type
1685 where appropriate.
1686 (AMD64_NUM_REGS): Use ARRAY_SIZE.
1687 (amd64_register_type): Remove code to build amd_sse_type.
1688 * i386-tdep.c (i386_eflag_type): New variable.
1689 (i386_mmx_type, i386_sse_type): Make global.
1690 (i386_init_types): New function.
1691 (i386_build_mmx_type, i386_build_sse_type): Remove functions.
1692 (i386_register_type): Return i386_eflag_type, i386_sse_type and
1693 i386_mmx_type when appropriate.
1694 (_initialize_i386_tdep): Call i386_init_types.
1695 * i386-tdep.h (i386_eflags_type, i386_mmx_type, i386_sse_type):
1696 Declare extern.
1697
4f2aea11
MK
1698 Based on a previous patch form Michal Ludvig:
1699 * gdbtypes.c (append_flags_type_flag, init_flags_type): New
1700 functions.
1701 (is_integral_type, rank_one_type, recursive_dump_type): Add
1702 support for TYPE_CODE_FLAGS.
1703 * gdbtypes.h (enum type_code): Add TYPE_CODE_FLAGS.
1704 (append_flags_type_field, init_flags_type): New prototypes.
1705 * ada-valprint.c (ada_val_print_1): Add support for
1706 TYPE_CODE_FLAGS.
1707 * c-valprint.c (c_val_print): Likewise.
1708 * f-valprint.c (f_val_print): Likewise.
1709 * p-valprint.c (pascal_val_print): Likewise.
1710 * valprint.c (val_print_type_code_flags): New function.
1711 * valprint.h (val_print_type_code_flags): New prototype.
1712 * value.c (unpack_long, value_from_longest): Add support for
1713 TYPE_CODE_FLAGS.
1714
4cdb5adf
CF
17152006-01-17 Christopher Faylor <cgf@timesys.com>
1716
1717 * MAINTAINERS: Very belatedly remove myself from from the list of
1718 people caught up in the paper trail.
1719
1193688d
JB
17202006-01-17 Jim Blandy <jimb@redhat.com>
1721
4e38b386
JB
1722 * symtab.h (struct general_symbol_info): Use gdb_byte for
1723 value.bytes.
1724 * stabsread.c (define_symbol): Use gdb_byte for the buffer holding
1725 a floating-point constant's value.
1726 * dwarf2read.c (dwarf2_const_value): Remove casts of value buffer
1727 to char *.
1728 * findvar.c (read_var_value): Eliminate needless temporary.
1729
1193688d
JB
1730 * dwarf2-frame.c (dwarf2_read_section): Update forward declaration
1731 to match prior change to dwarf2_read_section's type.
1732
0d1243d9
PG
17332006-01-16 Paul Gilliam <pgilliam@us.ibm.com>
1734
1735 * ppc-tdep.h (PPC_MAX_EPILOGUE_INSTRUCTIONS): New define.
1736 * rs6000-tdep.c (insn_changes_sp_or_jumps)
1737 (rs6000_in_function_epilogue_p): New functions.
1738 (rs6000_gdbarch_init): Set in_function_epilogue_p.
1739
fe1b8b76
JB
17402006-01-17 Jim Blandy <jimb@redhat.com>
1741
1742 * dwarf2read.c (struct dwarf2_per_objfile, struct comp_unit_head)
1743 (struct line_header, struct partial_die_info, struct dwarf_block):
1744 Use gdb_byte for members that refer to Dwarf section contents.
1745 (dwarf2_read_abbrevs, dwarf2_read_section, dwarf_decode_lines,
1746 dwarf_decode_macros, load_comp_unit, load_partial_dies,
1747 locate_pdi_sibling, partial_read_comp_unit_head, peek_die_abbrev,
1748 read_1_byte, read_1_signed_byte, read_2_bytes, read_4_bytes,
1749 read_8_bytes, read_address, read_attribute, read_attribute_value,
1750 read_comp_unit, read_comp_unit_head, read_die_and_children,
1751 read_die_and_siblings, read_full_die, read_indirect_string,
1752 read_initial_length, read_n_bytes, read_offset, read_partial_die,
1753 read_signed_leb128, read_string, read_unsigned_leb128,
1754 skip_children, skip_leb128, skip_one_die): Same.
1755
a0841d7a
DJ
17562006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
1757
1758 * complaints.c (stop_whining): Make signed.
1759 * linux-thread-db.c (thread_db_store_registers): Use gdb_byte.
1760
939b2b42
DJ
17612006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
1762
1763 * dwarf2read.c, remote-fileio.c, remote.h: Update copyright
1764 notices.
1765
891d2f0b
DJ
17662006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
1767
1768 * dwarf2read.c (peek_die_abbrev, read_address, read_initial_length)
1769 (read_offset): Change BYTES_READ argument to unsigned int.
1770 (dwarf2_build_psymtabs_easy, read_comp_unit_head)
1771 (create_all_comp_units, dwarf2_get_pc_bounds)
1772 (dwarf_decode_line_header, var_decode_location)
1773 (dwarf_decode_macros): Change local BYTES_READ variables to
1774 unsigned int.
1775 (read_indirect_string): Remove obsolete cast.
1776
cfd77fa1
DJ
17772006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
1778
1779 * remote-fileio.c (remote_fileio_return_success): Take a gdb_byte
1780 argument.
1781 (remote_fileio_func_open, remote_fileio_func_rename)
1782 (remote_fileio_func_unlink, remote_fileio_func_stat)
1783 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
1784 (remote_fileio_func_system): Cast the arguments to
1785 remote_read_bytes and remote_write_bytes.
1786 (remote_fileio_func_read, remote_fileio_func_write): Use a
1787 gdb_byte buffer.
1788 * remote.h (remote_read_bytes, remote_write_bytes): Update
1789 prototypes.
1790 * remote.c (hex2bin, bin2hex): Use gdb_byte for the BIN argument.
1791 (threadref_to_int): Replace bogus char * cast.
1792 (remote_unpack_thread_info_response): Use int for tag.
1793 (remote_threads_extra_info, remote_check_symbols): Cast string
1794 arguments to hex2bin.
1795 (remote_wait): Use a char buffer for packets and a gdb_byte
1796 buffer for registers.
1797 (remote_async_wait): Likewise.
1798 (remote_prepare_to_store, store_register_using_P)
1799 (remote_store_registers): Use gdb_byte buffers.
1800 (remote_write_bytes, remote_read_bytes): Use a gdb_byte pointer
1801 for MYADDR and char buffers for strings.
1802 (remote_xfer_partial): Add casts for string operations on READBUF.
1803 (remote_rcmd): Cast strings passed to bin2hex.
1804
60bf0650
MM
18052006-01-16 Mark Mitchell <mark@codesourcery.com>
1806
1807 * aclocal.m4: Regenerate.
1808
60e81fcc
NS
18092006-01-16 Nathan Sidwell <nathan@codesourcery.com>
1810
1811 * mt-tdep.c (enum mt_gdb_regnums): Add MT_COPRO_PSEUDOREG_ARRAY,
1812 MT_COPRO_PSEUDOREG_DIM_1, MT_COPRO_PSEUDOREG_DIM_2,
1813 MT_COPRO_PSEUDOREG_REGS members. Adjust MT_NUM_PSEUDO_REGS.
1814 (mt_register_name): Lazily synthesize name for coprocessor pseudo
1815 array registers.
1816 (mt_copro_register_type): New. Broken out of ...
1817 (mt_register_type): ... here. Use it. Deal with coprocessor
1818 pseudo array.
1819 (mt_select_coprocessor): New.
1820 (mt_pseudo_register_read, mt_pseudo_register_write): Deal with
1821 coprocessor pseudo array.
1822
f365de73
AS
18232006-01-16 Andrew Stubbs <andrew.stubbs@st.com>
1824
1825 * breakpoint.c (insert_breakpoints): Check that a thread exists
1826 before inserting thread specific breakpoints.
1827
9d519230
MK
18282006-01-15 Mark Kettenis <kettenis@gnu.org>
1829
6062517a
MK
1830 * osabi.c (generic_elf_osabi_sniffer): Fix typo in previous
1831 commit.
1832
9d519230
MK
1833 * alpha-tdep.c (alpha_gdbarch_init): Set cannot_step_breakpoint.
1834 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Remove.
1835 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Remove.
1836 * config/alpha/nm-nbsd.h: Remove file.
1837 * config/alpha/nm-fbsd.h: Remove file
1838 * config/alpha/nbsd.mh (NAT_FILE): Remove.
1839 * config/alpha/fbsd.mh (NAT_FILE): Remove.
1840
0a029df5
DJ
18412006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
1842
1843 * macroexp.c (expand): Initialize argc.
1844 * stabsread.c (read_type): Handle errors from read_args.
1845 (read_args): Return NULL for errors.
1846
1731e543
MK
18472006-01-15 Mark Kettenis <kettenis@gnu.org>
1848
1849 * osabi.c (generic_elf_osabi_sniffer): Use memcmp instead of
1850 strcmp to compare string to a byte buffer.
1851
777ea8f1
DJ
18522006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
1853
1854 * printcmd.c (output_command): Always initialize fmt.size.
1855 (printf_command): Use gdb_byte.
1856 * symfile.c (separate_debug_file_exists): Use gdb_byte.
1857 (load_section_callback, read_target_long_array): Likewise.
1858 (simple_read_overlay_table, simple_read_overlay_region_table)
1859 (simple_overlay_update_1): Correct calls to read_target_long_array.
1860 * valprint.c (partial_memory_read): Change MYADDR to a gdb_byte *.
1861 Also change local pointers.
1862 (val_print_string): Use gdb_byte.
1863
4b17b389
MK
18642006-01-15 Mark Kettenis <kettenis@gnu.org>
1865
1866 * alphafbsd-tdep.c: Include "solib-svr4.h".
1867 (alphafbsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1868 svr4_lp64_fetch_link_map_offsets.
1869 * Makefile.in (alphafbsd-tdep.o): Update dependencies.
1870 * config/alpha/fbsd.mt (TDEPFILES): Add corelow.o, solib.o and
1871 solib-svr4.o.
1872 * config/alpha/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
1873 and solib-legacy.o.
1874 * config/alpha/nm-fbsd.h: Don't include "solib.h".
1875
bd4109fb
DJ
18762006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
1877
1878 * source.c (_initialize_source): Use add_setshow_integer_cmd.
1879
1dce6535
DJ
18802006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
1881
1882 * linux-fork.c (delete_fork_command, detach_fork_command): Use
1883 PIDGET.
1884
76a9d10f
MK
18852006-01-15 Mark Kettenis <kettenis@gnu.org>
1886
1887 * arm-linux-tdep.c (arm_linux_svr4_fetch_link_map_offsets):
1888 Remove.
1889 (arm_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
1890 svr4_ilp32_fetch_link_map_offsets.
1891 * cris-tdep.c (cris_linux_svr4_fetch_link_map_offsets): Remove
1892 function.
1893 (cris_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
1894 svr4_ilp32_fetch_link_map_offsets.
1895 * mips-linux-tdep.c (mips_linux_svr4_fetch_link_map_offsets)
1896 (mips64_linux_svr4_fetch_link_map_offsets): Remove functions.
1897 (mips_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
1898 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
1899 where appropriate.
1900 * nbsd-tdep.c (nbsd_ilp32_solib_svr4_fetch_link_map_offsets):
1901 Simply call svr4_ilp32_fetch_link_map_offsets.
1902 (nbsd_lp64_solib_svr4_fetch_link_map_offsets): Simply call
1903 svr4_lp64_fetch_link_map_offsets.
1904 * ppc-linux-tdep.c (ppc_linux_svr4_fetch_link_map_offsets): Remove
1905 function.
1906 (ppc_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
1907 svr4_ilp32_fetch_link_map_offsets.
1908 * s390-tdep.c (s390_svr4_fetch_link_map_offsets)
1909 (s390x_svr4_fetch_link_map_offsets): Remove functions.
1910 (s390_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
1911 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
1912 where appropriate.
1913
469db033
MK
19142006-01-15 Mark Kettenis <kettenis@gnu.org>
1915
25224166
MK
1916 * arm-tdep.c (arm_return_value): Change type of readbuf and
1917 writebuf arguments to `gdb_byte *'.
1918
469db033
MK
1919 * s390-tdep.c: Do not include "tm.h" and "../bfd/bfd.h".
1920 * Makefile.in (s390-tdep.o): Update dependencies.
1921
4dd7c9f6
MK
19222006-01-14 Mark Kettenis <kettenis@gnu.org>
1923
081bf9da
MK
1924 * sol2-tdep.h. sol2-tdep.c: New files.
1925 * amd64-sol2-tdep.c: Include "sol2-tdep.h".
1926 (amd64_sol2_init_abi): Set skip_solib_resolver.
1927 * i386-sol2-tdep.c: Include "sol2-tdep.h".
1928 (i386_sol2_init_abi): Set skip_solib_resolver.
1929 * sparc-sol2-tdep.c: Include "sol2-tdep.h".
1930 (sparc32_sol2_init_abi): Set skip_solib_resolver.
1931 * sparc64-sol2-tdep.c: Include "sol2-tdep.h".
1932 (sparc64_sol2_init_abi): Set skip_solib_resolver.
1933 * Makefile.in (sol2_tdep_h): New variable.
1934 (ALLDEPFILES): Add sol2-tdep.c.
1935 (sol2-tdep.o): New target.
1936 (amd64-sol2-tdep.o, i386-sol2-tdep.o, sparc-sol2-tdep.o)
1937 (sparc64-sol2-tdep.o): Update dependencies
1938 * config/i386/i386sol2.mt (TDEPFILES): Add sol2-tdep.o.
1939 * config/i386/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
1940 * config/sparc/sol2.mt (TDEPFILES): Add sol2-tdep.o.
1941 * config/sparc/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
1942
c0f96416
MK
1943 * hppa-linux-tdep.c: Fix copyright indentation.
1944
4dd7c9f6
MK
1945 * hppa-tdep.h (enum hppa_regnum): Add HPPA_FP31R_REGNUM.
1946 * hppabsd-nat.c (hppabsd_fpregset_supplies_p)
1947 (hppabsd_supply_fpregset, hppabsd_collect_fpregset): New
1948 functions.
1949 (hppabsd_fetch_registers, hppabsd_store_registers): Handle
1950 floating-point registers.
1951
6da86618
MM
19522006-01-13 Mark Mitchell <mark@codesourcery.com>
1953
1954 * event-loop.c (gdb_select): Detect file descriptors that have
1955 been closed.
1956
ed944ce7
MK
19572006-01-13 Mark Kettenis <kettenis@gnu.org>
1958
1959 * hppabsd-tdep.c (hppabsd_init_abi): Set long_double_bit to 64,
1960 and long_double_format accordingly.
1961
03ee6b2e
PH
19622006-01-12 Paul N. Hilfinger <hilfinger@adacore.com>
1963
1964 * ada-exp.y (yyerror): Change message to ignore the argument, avoiding
1965 translation problems.
1966 * ada-lang.c (ada_value_struct_elt): Change interface and handling
1967 of errors to avoid translation problem (and less than optimal error
1968 messages).
1969 (ada_value_tag, ada_tag_name_1, ada_tag_name_2, ada_evaluate_subexp):
1970 Use new interface to ada_value_struct_elt.
1971 * ada_lang.h (ada_value_struct_elt): Update declaration to new
1972 interface.
1973
1974 * ChangeLog: remove reference to ada-tasks.c from entry of
1975 2006-01-07.
1976
24b06219
MK
19772006-01-11 Mark Kettenis <kettenis@gnu.org>
1978
1979 * remote.c (get_memory_packet_size, set_thread)
1980 (remote_unpack_thread_info_response, remote_get_threadinfo)
1981 (parse_threadlist_response, remote_get_threadlist)
1982 (remote_current_thread, remote_threads_info)
1983 (remote_threads_extra_info, extended_remote_restart, get_offsets)
1984 (remote_check_symbols, remote_open_1, remote_detach)
1985 (remote_async_wait, remote_fetch_registers)
1986 (remote_store_registers, check_binary_download, putpkt_binary)
1987 (remote_insert_breakpoint, remote_insert_watchpoint)
1988 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
1989 (remote_remove_hw_breakpoint, remote_xfer_partial, remote_rcmd)
1990 (packet_command): Remove redundant parenthesis.
1991
15550d6b
MK
19922006-01-10 Mark Kettenis <kettenis@gnu.org>
1993
dfb65433
MK
1994 * corefile.c (read_memory_integer, read_memory_unsigned_integer)
1995 (read_memory_typed_address, write_memory)
1996 (write_memory_unsigned_integer, write_memory_signed_integer): Use
1997 gdb_byte where appropriate.
1998
508416a1
MK
1999 * mi/mi-main.c (mi_cmd_data_read_memory): Change type of mbus into
2000 'gdb_byte *'.
2001
f6519ebc
MK
2002 * target.h (target_read_memory_partial, target_write_memory_partial):
2003 Change second argument to 'gdb_byte *'.
2004 * target.c (target_xfer_memory_partial): Change third argument to
2005 'gdb_byte *'.
2006 (target_read_memory_partial, target_write_memory_partial): Change
2007 second argument to 'gdb_byte *'.
2008
15550d6b
MK
2009 * linespec.c (decode_objc): Make i1 and i2 unsigned.
2010 (find_method): Set values.sals to NULL.
2011
d7a30af7
MK
20122006-01-09 Mark Kettenis <kettenis@gnu.org>
2013
2014 * amd64obsd-nat.c (amd64obsd_supply_pcb): Use 'gdb_byte *' instead
2015 of 'char *' in cast.
2016
e1d5a0d2
PH
20172006-01-07 Paul N. Hilfinger <hilfinger@adacore.com>
2018
2019 * ada-exp.y, ada-lex.l, ada-typeprint.c: I18n markup.
03ee6b2e 2020 * ada-lang.c: I18n markup.
e1d5a0d2
PH
2021 Editorial: change "can not" => "cannot" throughout.
2022
790124be
MK
20232006-01-07 Mark Kettenis <kettenis@gnu.org>
2024
2025 * Makefile.in: Sort dependencies.
2026
3c481fdc
EZ
20272006-01-07 Eli Zaretskii <eliz@gnu.org>
2028
2029 * top.c (control_level): Remove unused variable.
2030
cb5d864f
FF
20312006-01-06 Fred Fish <fnf@specifix.com>
2032
2033 * objfiles.c (source.h): Include.
2034 (free_objfile): Update comment about clear_symtab_users().
2035 (free_objfile): Check all symtabs of objfile being freed and if
2036 one of them is the current source symtab, call
2037 clear_current_source_symtab_and_line().
2038
ac264b3b
MS
20392006-01-04 Michael Snyder <msnyder@redhat.com>
2040
2041 Checkpoint/Restart for Linux.
2042 * linux-nat.c: Add support for debugging multiple forks.
2043 Add #include for linux-fork.h (interface spec).
2044 (super_mourn_inferior): New function pointer.
2045 (child_mourn_inferior): New function / target method.
2046 (linux_target): Claim to_mourn_inferior method pointer.
2047 (child_follow_fork): Call interface to linux-fork, conditionally
2048 add new fork processes to list of debugged processes.
2049 (kill_inferior): Use interface to linux-fork to kill
2050 multiple processes.
2051
2052 * linux-fork.h: New file.
2053 * linux-fork.c: New file. Support for debugging multiple forks
2054 of the same program. Support for checkpoint and restart commands.
2055
2056 * infrun.c (nullify_last_target_wait_ptid): New function.
2057
2058 * Makefile.in: Add linux-fork.
2059 * config/*/linux.mh: Add linux-fork.
2060 * NEWS: Mention new functionality.
2061
f98ce7c2
PH
20622006-01-02 Paul Hilfinger <hilfingr@nile.gnat.com>
2063
2064 * ada-exp.y (syntax definitions,write_var_or_type,write_name_assoc):
2065 Change uses of "illegal" to "invalid".
2066
52ce6436
PH
20672006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
2068
2069 * ada-exp.y: Considerable reorganization to move functionality
2070 from ada-lex.l to here, where it is logically more appropriate.
2071 The original reason, however, was to prevent premature name
2072 lookups for selector names in record aggregates.
2073 (BLOCKNAME, TYPENAME, OBJECT_RENAMING): Remove; lexer now returns
2074 NAME for all of these.
2075 (VAR): New artificial token to clarify precedence rules.
2076 (OTHERS): New lexeme.
2077 (empty_stoken): New symbol.
2078 (%union): Remove ssym, voidval.
2079 (%type): Remove <voidval> type declarations.
2080 (syntax definitions): Add aggregates.
2081 Remove distinction between NAME, TYPENAME, BLOCKNAME, OBJECT_RENAMING.
2082 Rename some non-terminals to be closer to reference manual usage.
2083 Tighten up expression syntax to disallow certain non-Ada
2084 constructions such as X and then Y or else Z.
2085 (ada_parse): Remove initialization of left_block_context.
2086 (write_var_from_name): Remove.
2087 (write_var_or_type): New function, containing previous code from
2088 defunct write_var_from_name and name_lookup.
2089 (block_lookup): New function, moved from ada-lex.l
2090 (select_possible_type_sym): New function, factored out of
2091 name_lookup, which used to be in ada-lex.l.
2092 (find_primitive_type): Ditto.
2093 (chop_selector): Ditto.
2094 (write_ambiguous_var): New function, factored out of defunct
2095 write_var_from_name.
2096 (write_selectors): New function.
2097 (write_name_assoc): New function.
2098 (write_exp_op_with_string): New function.
2099
2100 * ada-lex.l (processId): Change interface to return stoken.
2101 (tempbuf, resize_tempbuf, tempbuf_size, tempbuf_len): Remove.
2102 (block_lookup, name_lookup): Remove. Functionality moved to
2103 ada-exp.y.
2104 (state IN_STRING): Remove.
2105 (rules): Handle string escapes in processString.
2106 Add 'others' token.
2107 Return all NAMEs, BLOCKNAMEs, OBJECT_RENAMINGs, TYPENAMEs in
2108 yylval.sval (as simple strings).
2109 All name look-ups now handled in ada-exp.y.
2110 Introduce "::" (COLONCOLON) token and return as separate token.
2111 (processId): Change return convention. Comment.
2112 Leave leading "'" in place.
2113 (processString): New function.
2114 (find_dot_all): Add note to comment.
2115 Fix problem that allowed match only at the end.
2116
2117 * ada-lang.c: Introduce aggregates.
2118 (find_struct_field): Add new parameter to count fields skipped, and
2119 allow other output parameters to be NULL.
2120 (value_tag_from_contents_and_address, ada_value_struct_elt): Use
2121 new find_struct_field.
2122 (ada_index_struct_field, assign_aggregate, ada_is_array_type)
2123 (num_visible_fields, ada_index_struct_field_1, ada_index_struct_field)
2124 (num_component_specs, assign_component, assign_aggregate):
2125 (aggregate_assign_from_choices,aggregate_assign_positional)
2126 (aggregate_assign_others,add_component_interval):
2127 New functions.
2128 (ada_evaluate_subexp): Declare.
2129 Add aggregate-related operators.
2130 (ada_forward_operator_length): Declare.
2131 (resolve_subexp): Add cases for new aggregate operators and OP_NAME.
2132 Consolidate Ada operators, using ada_forward_operator_length.
2133 (ada_search_struct_field): Search in forward order.
2134 (ADA_OPERATORS): Add new aggregate operators.
2135 (ada_operator_length, ada_op_name, ada_forward_operator_length)
2136 (ada_dump_subexp_body, ada_print_subexp): Handle new aggregate
2137 operators and OP_NAME.
2138 (ada_type_of_array): Use longest_to_int.
2139 (value_assign_to_component): New function.
2140 (ada_forward_operator_length, ada_op_name, ada_dump_subexp_body):
2141 Add OP_NAME case.
2142 (ada_forward_operator_length, ada_dump_subexp_body):
2143 Add OP_STRING case.
2144
2145 * ada-lang.h (enum ada_operator): Add OP_AGGREGATE, OP_OTHERS,
2146 OP_CHOICES, OP_DISCRETE_RANGE, OP_POSITIONAL.
2147
529cad9c
PH
21482006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
2149
2150 * ada-lang.c (process_raise_exception_name): Remove extraneous
2151 definition from unsubmitted code.
2152
2153 (is_lower_alphanum): New function.
2154 (ada_decode): Add support for decoding protected object subprograms
2155 and entries, and of entities declared inside protected object
2156 subprograms.
2157 Also add missing handling for__{DIGITS}+ suffixes.
2158 Allow '$<digits>' as valid overloading suffix.
2159 (is_name_suffix): Add handling for protected type entriy suffixes.
2160 Also add support for protected type subprogram suffixes, but keep
2161 it commented out for now, as there is an ambiguity between these
2162 entities and other internally generated entities.
2163 Allow '$<digits>' as valid overloading suffix.
2164 (is_valid_name_for_wild_match): New function.
2165 (wild_match): Add an exra level of verification of the entity name
2166 before declaring it a match for the given pattern.
2167
2168 (ada_type_of_array, ada_evaluate_subexp): Use more proper
2169 longest_to_int rather than cast.
2170
2171 (ada_evaluate_subexp): Use "invalid" rather than "illegal" in comment.
2172
2173 (ada_coerce_to_simple_array): Call check_size to make sure
2174 that the object size is reasonable.
2175
2176 (ada_value_primitive_packed_val): Use correct location in target
2177 buffer for extracting packed record fields that are themselves records.
2178
2179 (add_defn_to_vec): Do not try to replace a stub type by its full
2180 type. Avoids a potential infinite loop.
2181
2182 (ada_lookup_symbol): Move return incorrectly placed return statement,
2183 causing a loop that should be scanning all object files to only
2184 scan the first one.
2185
2186 (ada_tag_name_2): New function.
2187 (ada_tag_name_1): If no 'tsd' field found in the dispatching table,
2188 use alternative representation.
2189
2190 (ada_find_renaming_symbol): Strip the function name suffix when
2191 computing the XR type name.
2192
2193 (ada_to_fixed_type): Try determining the tag only if we have the
2194 object's address.
2195 (to_fixed_array_type): Add comments.
2196
2197 (ada_check_typedef): Replace expression checking whether the given
2198 type is a stub or not by a "call" to TYPE_STUB. Clearer and more
2199 consistent.
2200
2201 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Allow
2202 '$' in addition to '.' for runtime auxiliary function name suffixes.
2203 See changes to ada_decode above.
2204
2205 (struct task_control_block): Add field called_task. (This change is
2206 to keep synchronized with our local sources; it does not affect the
2207 public version yet.)
2208
2209 * ada-typeprint.c (ada_print_type): Use int_string for printing
2210 modulus of modular type.
2211
2212 (print_range): Trivial editorial comment fix.
2213
2214 * ada-valprint.c (ada_emit_char): Use normal Ada syntax for
2215 double quote in string.
2216
9b799fe6
JB
22172006-01-01 Joel Brobecker <brobecker@adacore.com>
2218
2219 * top.c: Add 2006 to list of copyright years in file header.
2220
0bee0712
JB
22212006-01-01 Joel Brobecker <brobecker@adacore.com>
2222
2223 * top.c (print_gdb_version): Update copyright year to 2006.
2224
13c763f4
JB
22252006-01-01 Roger Sayle <roger@eyesopen.com>
2226 Elena Zannoni <ezannoni@redhat.com>
2227
2228 PR symtab/1651
2229 * xcoffread.c (xcoff_next_symbol_text): Check this_symtab_psymtab
2230 for NULL before assigning this_symtab_psymtab->objfile to objfile.
2231 (scan_xcoff_symtab): Initialize next_symbol_text_func.
2232 (Committed by Jim Blandy)
2233
e50f0da1 2234For older changes see ChangeLog-2005.
c906108c
SS
2235\f
2236Local Variables:
2237mode: change-log
2238left-margin: 8
2239fill-column: 74
2240version-control: never
2241End:
This page took 0.918799 seconds and 4 git commands to generate.