Implement displaced stepping.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
237fc4c9
PA
12008-05-02 Jim Blandy <jimb@codesourcery.com>
2 Pedro Alves <pedro@codesourcery.com>
3
4 Implement displaced stepping.
5
6 * gdbarch.sh (max_insn_length): New 'variable'.
7 (displaced_step_copy, displaced_step_fixup)
8 (displaced_step_free_closure, displaced_step_location): New
9 functions.
10 (struct displaced_step_closure): Add forward declaration.
11 * gdbarch.c, gdbarch.h: Regenerated.
12
13 * arch-utils.c: #include "objfiles.h".
14 (simple_displaced_step_copy_insn)
15 (simple_displaced_step_free_closure)
16 (displaced_step_at_entry_point): New functions.
17 * arch-utils.h (simple_displaced_step_copy_insn)
18 (simple_displaced_step_free_closure)
19 (displaced_step_at_entry_point): New prototypes.
20
21 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
22 (I386_MAX_MATCHED_INSN_LEN): ... this.
23 (i386_absolute_jmp_p, i386_absolute_call_p)
24 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
25 (i386_displaced_step_fixup): New functions.
26 (struct i386_insn, i386_match_insn): Update.
27 (i386_gdbarch_init): Set gdbarch_max_insn_length.
28 * i386-tdep.h (I386_MAX_INSN_LEN): New.
29 (i386_displaced_step_fixup): New prototype.
30 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
31 Register gdbarch_displaced_step_copy,
32 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
33 and gdbarch_displaced_step_location functions.
34
35 * infrun.c (debug_displaced): New variable.
36 (show_debug_displaced): New function.
37 (struct displaced_step_request): New struct.
38 (displaced_step_request_queue, displaced_step_ptid)
39 (displaced_step_gdbarch, displaced_step_closure)
40 (displaced_step_original, displaced_step_copy)
41 (displaced_step_saved_copy, can_use_displaced_stepping): New
42 variables.
43 (show_can_use_displaced_stepping, use_displaced_stepping)
44 (displaced_step_clear, cleanup_displaced_step_closure)
45 (displaced_step_dump_bytes, displaced_step_prepare)
46 (displaced_step_clear_cleanup, write_memory_ptid)
47 (displaced_step_fixup): New functions.
48 (resume): Call displaced_step_prepare.
49 (proceed): Call read_pc once, and remember the value. If using
50 displaced stepping, don't remove breakpoints.
51 (handle_inferior_event): Call displaced_step_fixup. Add some
52 debugging output. When we try to step over a breakpoint, but get
53 a signal to deliver to the thread instead, ensure the step-resume
54 breakpoint is actually inserted. If a thread hop is needed, and
55 displaced stepping is enabled, don't remove breakpoints.
56 (init_wait_for_inferior): Call displaced_step_clear.
57 (_initialize_infrun): Add "set debug displaced" command. Add
58 "maint set can-use-displaced-stepping" command. Clear
59 displaced_step_ptid.
60 * inferior.h (debug_displaced): Declare variable.
61 (displaced_step_dump_bytes): Declare function.
62
63 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
64 dependencies.
65
0428b8f5
DJ
662008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
67
68 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
69 (arm_force_mode_string, arm_show_fallback_mode)
70 (arm_show_force_mode): New.
71 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
72 arm_frame_is_thumb.
73 (_initialize_arm_tdep): Add "set arm fallback-mode"
74 and "set arm force-mode".
75 * NEWS: Document new commands.
76
d01a8610
AS
772008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
78
79 * main.h (batch_silent): Declare.
80 * event-top.c: Include main.h.
81 (gdb_setup_readline): Remove extern batch_silent declaration.
82 * infrun.c (normal_stop): Don't print source location when running in
83 --batch-silent mode.
84 * Makefile.in (event-top.o): Add main.h dependency.
85
5009afc5
AS
862008-05-02 Andreas Schwab <schwab@suse.de>
87
88 * target.h (struct target_ops): Add
89 to_watchpoint_addr_within_range.
90 (target_watchpoint_addr_within_range): New function.
91 * target.c (update_current_target): Inherit
92 to_watchpoint_addr_within_range, defaulting to
93 default_watchpoint_addr_within_range.
94 (default_watchpoint_addr_within_range): New function.
95 (debug_to_watchpoint_addr_within_range): New function.
96 (setup_target_debug): Set to_watchpoint_addr_within_range.
97 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
98 New function.
99 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
100 * breakpoint.c (watchpoints_triggered): Use
101 target_watchpoint_addr_within_range.
102
a15c5c83
PA
1032008-05-01 Pedro Alves <pedro@codesourcery.com>
104
105 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
106 (i[34567]86-*-dicos*, x86_64-*-dicos*):
107 Set gdb_osabi to GDB_OSABI_DICOS.
108
109 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
110 * osabi.c (gdb_osabi_name): Add "DICOS".
111
112 * i386-dicos-tdep.c: New file.
113
114 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
115 (ALLDEPFILES): Add i386-dicos-tdep.c.
116 (i386-dicos-tdep.o): New rule.
117
728c8f58
PA
1182008-05-01 Pedro Alves <pedro@codesourcery.com>
119
120 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
121 and register the fork's PTID as a thread.
122
604133b5
AR
1232008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
124
125 PR gdb/1665
126 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
127 assign its value to the breakpoint created.
128 (create_breakpoints): Add breakpoint_ops argument and pass it
129 to create_breakpoint call.
130 (break_command_really): Add breakpoint_ops argument and pass/assign
131 appropriately.
132 (break_command_1): Pass NULL as ops argument.
133 (set_breakpoint): Pass NULL as ops argument.
134 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
135 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
136 catch and throw catchpoints.
5009afc5 137
1cded358
AR
1382008-05-01 Aleksandar Riswtovski <aristovski@qnx.com>
139
140 PR gdb/2343
141 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
142 translate signal numeric value from the target to GDB's enum
143 target_signal.
144 * gdbarch.c, gdbarch.h: Regenerated.
145 * gdbarch.sh: Added two new functions target_signal_from_host and
146 target_signal_to_host.
147 * target.h (default_target_signal_from_host,
148 default_target_signal_to_host): New functions - declarations.
149 * signals/signals.c (struct gdbarch): New declaration.
150 (default_target_signal_to_host, default_target_signal_from_host): New
151 functions.
152
b39cc962
DJ
1532008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
154
155 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
156 * arm-tdep.c (arm_frame_is_thumb): New.
157 (arm_pc_is_thumb): Clarify comment.
158 (thumb_analyze_prologue): Remove PC special case.
159 (thumb_scan_prologue): Take a block_addr argument. Use it for
160 find_pc_partial_function. Remove unused variables.
161 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
162 for find_pc_partial_function. Remove PC special case.
163 (arm_prologue_prev_register): Add special handling for PC and CPSR.
164 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
165 (arm_get_next_pc): Use arm_frame_is_thumb.
166 (arm_write_pc): Use CPSR_T instead of 0x20.
167 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
168 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
169 (CPSR_T): Define.
170 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
171 DWARF2_FRAME_REG_FN.
172 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
173 DWARF2_FRAME_REG_FN.
174 (struct dwarf2_frame_state_reg): Add FN to loc union.
175
944f08ab
JB
1762008-05-01 Nick Roberts <nickrob@snap.net.nz>
177
178 * exec.c (print_section_info): Add missing '\n'.
179
cfc01461
VP
1802008-05-01 Vladimir Prus <vladimir@codesourcery.com>
181
182 * thread.c (add_thread): Move observer call to ...
183 (add_thread_silent): ... here.
184
1af5d7ce
UW
1852008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
186
187 * rs6000-tdep.c: Update for unwinder changes.
188 * ppcobsd-tdep.c: Likewise.
189
f089c433
UW
1902008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
191
192 * s390-tdep.c: Update for unwinder changes.
193
8d998b8f
UW
1942008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
195
196 * spu-tdep.c: Update for unwinder changes.
197
5366653e
DJ
1982008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
199
200 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
201 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
202 sparc64-linux-tdep.c: Update for unwinder changes.
203
b8a22b94
DJ
2042008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
205
206 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
207 for unwinder changes.
208 * mips-tdep.c: Likewise.
209 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
210 raw one.
211
a262aec2
DJ
2122008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
213
214 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
215 unwinder changes.
216
10458914
DJ
2172008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
218
219 Update i386 and amd64 ports for unwinder changes.
220
221 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
222 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
223 (amd64_frame_unwind): Use default_frame_sniffer.
224 (amd64_frame_sniffer): Delete.
225 (amd64_sigtramp_frame_cache): Expect this_frame.
226 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
227 (amd64_sigtramp_frame_sniffer): Update signature.
228 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
229 (amd64_frame_base_address): Expect this_frame.
230 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
231 this_frame.
232 (amd64_init_abi): Use set_gdbarch_dummy_id and
233 frame_unwind_append_unwinder.
234 * i386-tdep.c (i386_frame_cache): Expect this_frame.
235 (i386_frame_this_id, i386_frame_prev_register): Update signature.
236 (i386_frame_unwind): Use default_frame_sniffer.
237 (i386_frame_sniffer): Delete.
238 (i386_sigtramp_frame_cache): Expect this_frame.
239 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
240 (i386_sigtramp_frame_sniffer): Update signature.
241 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
242 (i386_frame_base_address): Update signature.
243 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
244 (i386_push_dummy_call): Update comment.
245 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
246 Expect this_frame.
247 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
248 and frame_unwind_append_unwinder.
249 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
250 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
251 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
252 i386nbsd-tdep.c: Update for unwinder changes.
253
25492ce3
DJ
2542008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
255
256 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
257 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
258 this_frame.
259 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
260 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
261 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
262 signature.
263 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
264 this_frame.
265 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
266 Update signature.
267 * tramp-frame.h (struct tramp_frame): Update signature of init.
268 * Makefile.in (trad-frame.o): Update.
269
4a4e5149
DJ
2702008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
271
272 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
273 (execute_stack_op): Put this_frame in the baton.
274 (execute_cfa_program): Take this_frame.
275 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
276 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
277 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
278 (dwarf2_frame_this_id): Adjust to work on this_frame.
279 (dwarf2_signal_frame_this_id): Delete.
280 (dwarf2_frame_prev_register): Update signature. Use new frame
281 unwind methods.
282 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
283 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
284 dwarf2_frame_sniffer.
285 (dwarf2_append_unwinders): New.
286 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
287 this_frame.
288 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
289 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
290 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
291 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
292 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
293 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
294 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
295 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
296 (dwarf2_append_unwinders): Declare.
297 (dwarf2_frame_base_sniffer): Update declaration.
298 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
299 this_frame.
300
669fac23
DJ
3012008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
302
303 Convert frame unwinders to use the current frame and
304 "struct value".
305
306 * frame.c (frame_debug): Make global.
307 (get_frame_id): Pass this frame to unwinder routines.
308 (frame_pc_unwind): Remove unused unwind->prev_pc support.
309 (do_frame_register_read): Do not discard the return value of
310 frame_register_read.
311 (frame_register_unwind): Remove debug messages. Use
312 frame_unwind_register_value.
313 (frame_unwind_register_value, get_frame_register_value): New
314 functions.
315 (create_new_frame, get_frame_base_address, get_frame_locals_address)
316 (get_frame_args_address, get_frame_type): Pass this frame to
317 unwinder routines.
318 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
319 functions.
320 * frame.h: Update comments.
321 (frame_debug, frame_unwind_register_value, get_frame_register_value)
322 (frame_prepare_for_sniffer): Declare.
323 * frame-unwind.h: Update comments and parameter names.
324 (default_frame_sniffer): Declare.
325 (frame_prev_register_ftype): Return a struct value *.
326 (struct frame_unwind): Remove prev_pc member.
327 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
328 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
329 (frame_unwind_got_register, frame_unwind_got_memory)
330 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
331 * frame-base.h: Update comments and parameter names.
332 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
333 if necessary. Add debugging output.
334 * sentinel-frame.c (sentinel_frame_prev_register)
335 (sentinel_frame_this_id): Update for new signature.
336 (sentinel_frame_prev_pc): Delete.
337 (sentinel_frame_unwinder): Remove prev_pc.
338 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
339 prev_pc.
340 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
341 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
342 (frame_unwind_append_sniffer): Delete.
343 (frame_unwind_append_unwinder): New function.
344 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
345 from unwinders. Use frame_prepare_for_sniffer.
346 (default_frame_sniffer, frame_unwind_got_optimized)
347 (frame_unwind_got_register, frame_unwind_got_memory)
348 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
349 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
350 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
351 signature.
352 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
353 * gdbarch.c, gdbarch.c: Regenerated.
354 * frame-base.c (default_frame_base_address)
355 (default_frame_locals_address, default_frame_args_address): Update
356 for new signature.
357 (frame_base_find_by_frame): Pass this frame to unwinder routines.
358 * infcall.c (call_function_by_hand): Update comments.
359 * Makefile.in (frame-unwind.o): Update dependencies.
360
9214ee5f
DJ
3612008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
362
363 * ada-lang.c (ada_value_primitive_packed_val): Only check
364 value_lazy for memory lvals.
365 * findvar.c (value_of_register_lazy): New function.
366 (locate_var_value): Only check value_lazy for memory lvals.
367 * valarith.c (value_subscripted_rvalue): Likewise.
368 * valops.c (value_fetch_lazy): Handle both memory and register
369 lvals.
370 (search_struct_field, value_slice): Only check value_lazy for memory
371 lvals.
372 * value.c (struct value): Update comment for lazy.
373 (value_primitive_field): Only check value_lazy for memory lvals.
374 * value.h (value_lazy): Update comment.
375 (value_of_register_lazy): Declare.
376
939643d7
DJ
3772008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
378
379 * corefile.c (reopen_exec_file): Close any open files.
380
1de34ab7
JB
3812008-04-29 Joel Brobecker <brobecker@adacore.com>
382
383 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
384 show_memory_breakpoints to 1 while reading the instruction bundle.
385
ea42b34a
JB
3862008-04-29 Joel Brobecker <brobecker@adacore.com>
387
388 * gdbarch.sh: Document the return_value method. Explain that
389 the FUNCTYPE parameter might be NULL.
390 * gdbarch.h: Regenerated.
391 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
392 type when calling using_struct_return, as this is unnecessary
393 on this target.
394
a0fe373c
JB
3952008-04-28 Joel Brobecker <brobecker@adacore.com>
396
397 * terminal.h (create_tty_session): Fix return type.
398
c6446539
VP
3992008-04-26 Vladimir Prus <vladimir@codesourcery.com>
400
401 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
402
2f069f6f
JB
4032008-04-26 Joel Brobecker <brobecker@adacore.com>
404
405 * breakpoint.c (condition_command, commands_from_control_command)
406 (break_command_really): Minor reformatting.
407
93b5768b
PA
4082008-04-25 Pedro Alves <pedro@codesourcery.com>
409
410 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
411
436675d3
PA
4122008-04-25 Pedro Alves <pedro@codesourcery.com>
413
414 * amd64-tdep.c (amd64_get_longjmp_target): New.
415 (amd64_init_abi): Register amd64_get_longjmp_target as
416 gdbarch_get_longjmp_target callback.
417 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
418
78b6a731
PA
4192008-04-25 Pedro Alves <pedro@codesourcery.com>
420
421 * breakpoint.h (enum bpstat_what_main_action): Delete
422 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
423
424 * breakpoint.c (clrs): Delete.
425 (bpstat_what): Update table.
426
427 * infrun.c (handle_inferior_event): Remove
428 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
429
9e22b03a
VP
4302008-04-24 Vladimir Prus <vladimir@codesourcery.com>
431
432 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
433 Adjust all prototypes using mi_cmd_args_ftype to use
434 mi_cmd_argv_ftype.
435 (struct mi_cmd): Remove the args_func field.
436 * mi/mi-cmds.c: Don't provide value for the args_func field.
437 * mi/mi-main.c (mi_execute_async_cli_command)
438 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
439 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
440 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
441 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
442 (mi_cmd_target_download): Adjust.
443 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
444 (mi_cmd_execute): Do not check for args_func.
445 (mi_execute_async_cli_command): Adjust.
446 * mi/mi-parse.c: Don't check for args_func.
447
721c02de 4482008-04-24 Vladimir Prus <vladimir@codesourcery.com>
18a18393
VP
449
450 * breakpoint.c (bpstat_check_location)
451 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
452 New, extracted from bpstat_stop_status.
453 (bpstat_stop_status): Use the above.
454
4552008-04-24 Vladimir Prus <vladimir@codesourcery.com>
456
721c02de
VP
457 * mi/mi-main.c (last_async_command): Rename to current_token.
458 (previous_async_command): Remove.
459 (mi_cmd_gdb_exit): Adjust.
460 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
461 (mi_cmd_target_select): Adjust.
462 (mi_cmd_execute): Don't set previous_async_command. Free token
463 here even in async mode.
464 (mi_execute_async_cli_command): Adjust.
465 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
466 token.
467 (mi_load_progress): Adjust.
468
f13468d9
VP
4692008-04-24 Vladimir Prus <vladimir@codesourcery.com>
470
471 * infcmd.c (step_1_continuation): Always disable longjmp
472 breakpoint if we're not going to do another step.
473
f107f563
VP
4742008-04-24 Vladimir Prus <vladimir@codesourcery.com>
475
476 exec_cleanup murder.
477 * breakpoint.c (until_break_command_continuation): Add
478 the 'error' parameter. Directly delete the breakoint as
479 opposed to running cleanups.
480 (until_break_command): Install continuation only
481 after starting the target. Don't use exec cleanups,
482 use ordinary cleanups. Discard cleanups is successfully
483 started the target in async mode.
484 (make_cleanup_delete_breakpoint): Remove.
485 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
486 declaration.
487 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
488 declarations.
489 (struct continations): Add the 'error' parameter to the
490 continuation_hook field.
491 (add_continuation, do_all_continuations)
492 (add_intermediate_continuation)
493 (do_all_intermediate_continuations): Add the 'error' parameter.
494 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
495 * inf-loop.c (inferior_event_handler): Instead of calling
496 discard_all_continuations, use do_all_continuations with 1 as
497 'error' parameter. Pass 0 as 'error' parameter in existing uses
498 of discard_all_continuations.
499 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
500 cleanups.
501 (step_once): Install continuation only after resuming the target.
502 (step_1_continuation): Disable longjmp breakpoint on error.
503 (finish_command_continuation): Add the error parameter. Delete
504 the finish breakpoint directly, do not use cleanups.
505 (finish_command): Do not use exec_cleanups. Always setup
506 continuation. For sync case, immediately run them.
507 (attach_command_continuation): Add the error parameter.
508 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
509 remove step_resume_breakpoint -- adjust delete it directly.
510 * interps.c (interp_set): Adjust call to do_all_continations.
511 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
512 do exec cleanups.
513 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
514 cleanups.
515 (mi_cmd_execute): Do not use exec_cleanup.
516 (mi_execute_async_cli_command): Simplify the string concatenation
517 logic. Do no use exec cleanup.
518 (mi_exec_async_cli_cmd_continuation): New parameter error.
519 Free last_async_command.
520 * top.c (command_line_handler_continuation): New parameter error.
521 * utils.c (exec_cleanup_chain, make_exec_cleanup)
522 (do_exec_cleanups): Remove.
523 (add_continuation, do_all_continations)
524 (add_intermediate_continuation)
525 (do_all_intermediate_continuations): New parameter error.
526
74960c60
VP
5272008-04-24 Vladimir Prus <vladimir@codesourcery.com>
528
529 * breakpoint.h (bp_location_p): New typedef.
530 Register a vector of bp_location_p.
531 * breakpoint.c (always_inserted_mode)
532 (show_always_inserted_mode): New.
533 (unlink_locations_from_global_list): Remove.
534 (update_global_location_list)
535 (update_global_location_list_nothrow): New.
536 (update_watchpoint): Don't free locations.
537 (should_insert_location): New.
538 (insert_bp_location): Use should_insert_location.
539 (insert_breakpoint_locations): Copied from
540 insert_breakpoints.
541 (insert_breakpoint): Use insert_breakpoint_locations.
542 (bpstat_stop_status): Call update_global_location_list
543 when disabling breakpoint.
544 (allocate_bp_location): Don't add to bp_location_chain.
545 (set_raw_breakpoint)
546 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
547 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
548 (enable_overlay_breakpoints, disable_overlay_breakpoints)
549 (set_longjmp_resume_breakpoint)
550 (enable_watchpoints_after_interactive_call_stop)
551 (disable_watchpoints_before_interactive_call_start)
552 (create_internal_breakpoint)
553 (create_fork_vfork_event_catchpoint)
554 (create_exec_event_catchpoint, set_momentary_breakpoint)
555 (create_breakpoints, break_command_1, watch_command_1)
556 (create_exception_catchpoint)
557 (handle_gnu_v3_exceptions)
558 (disable_breakpoint, breakpoint_re_set_one)
559 (create_thread_event_breakpoint, create_solib_event_breakpoint)
560 (create_ada_exception_breakpoint): : Don't call check_duplicates.
561 Call update_global_location_list.
562 (delete_breakpoint): Don't remove locations and don't
563 try to reinsert them. Call update_global_location_list.
564 (update_breakpoint_locations): Likewise.
565 (restore_always_inserted_mode): New.
566 (update_breakpoints_after_exec): Temporary disable
567 always inserted mode.
568 * Makefile.in: Update dependencies.
569
570 * infrun.c (proceed): Remove breakpoints while stepping
571 over breakpoint.
572 (handle_inferior_event): Don't remove or insert
573 breakpoints.
574 * linux-fork.c (checkpoint_command): Remove breakpoints
575 before fork and insert after.
576 (linux_fork_context): Remove breakpoints before switch
577 and insert after.
578 * target.c (target_disconnect, target_detach): Remove
579 breakpoints from target.
580
581
d24317b4
VP
5822008-04-24 Vladimir Prus <vladimir@codesourcery.com>
583
584 * breakpoint.c (print_one_breakpoint_location): In MI
585 mode, report the location string the breakpoint was
586 originally created with.
587
ee967b5f
MG
5882008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
589
590 * Makefile.in (xtensa-tdep.o): Update dependencies.
591 * configure.tgt (xtensa*): Update dependencies.
592 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
593 Local variable areg renamed to arreg.
594 (areg_number): New function.
595 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
596 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
597 replaced by arreg_number.
598 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
599 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
600 (xtensa_scan_prologue): New function.
601 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
602 when ENTRY instraction hasn't been executed yet. Get the frame pointer
603 value based on prologue analysis. Fix the bugs preventing WS and
604 AR4-AR7/A11 registers from getting right values for intermediate frames,
605 whose registers have been already spilled.
606 (xtensa_frame_prev_register): Fix WS register value. Use are_number
607 and arreg_number appropriately.
608 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
609 svr4_ilp32_fetch_link_map_offsets.
610
09d71d23
AS
6112008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
612
613 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
614 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
615
fdc59709
PB
6162008-04-23 Paolo Bonzini <bonzini@gnu.org>
617
618 * acinclude.m4: Add override.m4.
619 * configure: Regenerate.
620
0bcd0149
JK
6212008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
622
623 * ada-lang.c (get_selections): Variable PROMPT made non-const and
624 initialized with a trailing space now. Use PROMPT_ARG of
625 COMMAND_LINE_INPUT instead of printing it ourselves.
626
88d8a8e0
JB
6272008-04-22 Joel Brobecker <brobecker@adacore.com>
628
629 * NEWS: Document support for 64-bit core file.
630
c055b101
CV
6312008-04-22 Corinna Vinschen <vinschen@redhat.com>
632
633 * NEWS: Add information on calling convention and new SH CLI options.
634
635 * sh-tdep.c (sh_cc_gcc): New static string.
636 (sh_cc_renesas): Ditto.
637 (sh_cc_enum): New static string array.
638 (sh_active_calling_convention): New static string pointer denoting
639 active user chosen ABI.
640 (sh_is_renesas_calling_convention): New function to return function
641 specific ABI, or user choice if necessary.
642 (sh_use_struct_convention): Rename first argument and turn around its
643 meaning. Check for renesas ABI and return accordingly.
644 (sh_use_struct_convention_nofpu): New function.
645 (sh_next_flt_argreg): Get function type as third parameter. Check
646 for renesas ABI and choose floating registers accordingly.
647 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
648 struct return slot accordingly.
649 (sh_push_dummy_call_nofpu): Ditto.
650 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
651 Evaluate ABI and give to sh_use_struct_convention_nofpu.
652 (sh_return_value_fpu): Evaluate ABI and give to
653 sh_use_struct_convention.
654 (show_sh_command): New function.
655 (set_sh_command): Ditto.
656 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
657 CLI command.
658
659 * gdbarch.sh (return_value): Add func_type argument.
660 * gdbarch.c: Regenerate.
661 * gdbarch.h: Ditto.
662 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
663 val_type so as not to collide with value_type function. Call
664 using_struct_return with additional function type argument.
665 * infcall.c (call_function_by_hand): Call using_struct_return and
666 gdbarch_return_value with additional function type argument.
667 * infcmd.c (print_return_value): Take addition func_type argument.
668 Call gdbarch_return_value with additional function type argument.
669 (finish_command_continuation): Call print_return_value with additional
670 function type argument.
671 (finish_command): Ditto.
672 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
673 additional function type argument.
674 * stack.c (return_command): Call using_struct_return and
675 gdbarch_return_value with additional function type argument.
676 * value.c (using_struct_return): Take additional function type argument.
677 * value.h (using_struct_return): Accommodate declaration.
678 * alpha-tdep.c (alpha_return_value): Add func_type argument.
679 * amd64-tdep.c (amd64_return_value): Ditto.
680 * arm-tdep.c (arm_return_value): Ditto.
681 * avr-tdep.c (avr_return_value): Ditto.
682 * cris-tdep.c (cris_return_value): Ditto.
683 * frv-tdep.c (frv_return_value): Ditto.
684 * h8300-tdep.c (h8300_return_value): Ditto.
685 (h8300h_return_value): Ditto.
686 * hppa-tdep.c (hppa32_return_value): Ditto.
687 (hppa64_return_value): Ditto.
688 * i386-tdep.c (i386_return_value): Ditto.
689 * ia64-tdep.c (ia64_return_value): Ditto.
690 * iq2000-tdep.c (iq2000_return_value): Ditto.
691 * m32c-tdep.c (m32c_return_value): Ditto.
692 * m32r-tdep.c (m32r_return_value): Ditto.
693 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
694 * m68k-tdep.c (m68k_return_value): Ditto.
695 (m68k_svr4_return_value): Ditto.
696 * m88k-tdep.c (m88k_return_value): Ditto.
697 * mep-tdep.c (mep_return_value): Ditto.
698 * mips-tdep.c (mips_eabi_return_value): Ditto.
699 (mips_n32n64_return_value): Ditto.
700 (mips_o32_return_value): Ditto.
701 (mips_o64_return_value): Ditto.
702 * mn10300-tdep.c (mn10300_return_value): Ditto.
703 * mt-tdep.c (mt_return_value): Ditto.
704 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
705 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
706 (ppc_sysv_abi_broken_return_value): Ditto.
707 (ppc64_sysv_abi_return_value): Ditto.
708 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
709 (ppc_sysv_abi_broken_return_value): Ditto.
710 (ppc64_sysv_abi_return_value): Ditto.
711 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
712 * rs6000-tdep.c (rs6000_return_value): Ditto.
713 * s390-tdep.c (s390_return_value): Ditto.
714 * score-tdep.c (score_return_value): Ditto.
715 * sh-tdep.c (sh_return_value_nofpu): Ditto.
716 (sh_return_value_fpu): Ditto.
717 * sh64-tdep.c (sh64_return_value): Ditto.
718 * sparc-tdep.c (sparc32_return_value): Ditto.
719 * sparc64-tdep.c (sparc64_return_value): Ditto.
720 * spu-tdep.c (spu_return_value): Ditto.
721 * v850-tdep.c (v850_return_value): Ditto.
722 * vax-tdep.c (vax_return_value): Ditto.
723 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
724 * xtensa-tdep.c (xtensa_return_value): Ditto.
725
726 * gdbtypes.h (struct type): Add calling_convention member.
727 * dwarf2read.c (read_subroutine_type): Add calling convention read
728 from DW_AT_calling_convention attribute to function type.
729
9eec4d1e
MD
7302008-04-22 Markus Deuling <deuling@de.ibm.com>
731
732 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
733 multi_f77_subscript to support values from registers.
734 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
735 * value.h (value_subscripted_rvalue): Add prototype.
736
737 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
738 Fix output.
739 * f-valprint.c (f_val_print): Likewise.
740
ef72380d
CS
7412008-04-21 Craig Silverstein <csilvers@google.com>
742
743 * dwarf2read.c (zlib_decompress_section): Define abfd in the
744 !HAVE_ZLIB_H case.
745
ff8e85c3
PA
7462008-04-21 Pedro Alves <pedro@codesourcery.com>
747
748 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
749 section is not a code section.
750
31fffb02
CS
7512008-04-19 Craig Silverstein <csilvers@google.com>
752
753 * NEWS: Add information on compressed debug sections.
754
8e91f023
VP
7552008-04-19 Vladimir Prus <vladimir@codesourcery.com>
756
757 * mi/mi-cmd-var.c (varobj_update_one): Print new
758 value for variable objects that changed type.
759
603ba1de
VP
7602008-04-19 Vladimir Prus <vladimir@codesourcery.com>
761
762 * varobj.c (varobj_invalidate): Don't touch floating
763 varobjs.
764
7fc830e2
MK
7652008-04-19 Mark Kettenis <kettenis@gnu.org>
766
767 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
768 (multiple_symbols_cancel): Remove extra const.
769 * symtab.h: Likewise.
770
bcbf8b68
NR
7712008-04-19 Nick Roberts <nickrob@snap.net.nz>
772
773 * interps.c (top_level_interpreter): Rename static variable...
774 (top_level_interpreter_ptr): ...to this.
775 (top_level_interpreter): New function.
776
777 * interps.h: New extern for top_level_interpreter.
778
779 * linespec.c: Include interps.h and mi/mi-cmds.h.
780 (decode_line_2): When using MI, always set all breakpoints in menu.
781
782 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
783
31fffb02 7842008-04-18 Craig Silverstein <csilvers@google.com>
233a11ab
CS
785
786 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
787 * config.in, configure: Regenerate.
788 * dwarf2read.c: Include zlib.h if present.
789 Modified *_SECTION macros.
790 (section_is_p): New.
791 (dwarf2_locate_sections): Use section_is_p instead of strcmp
792 (dwarf2_resize_section): New.
793 to determine whether a given section has a given name.
794 (zlib_decompress_section): New.
795 (dwarf2_read_section): Read the compressed section if present
796 in the binary.
797 * MAINTAINERS: Added myself to section Write After Approval.
bcbf8b68 798
a03b3a97
TJB
7992008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
800
801 * defs.h (exec_set_section_offsets): Remove prototype.
802 * exec.c (exec_set_section_offsets): Remove function.
803
9e386756
JB
8042008-04-18 Joel Brobecker <brobecker@adacore.com>
805
806 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
807 in the search for the matching symbol.
808
2ec93238
MK
8092008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
810
811 * breakpoint.c (update_watchpoint): Always reparse
812 condition.
813
e9bbd7c5
JB
8142008-04-17 Joel Brobecker <brobecker@adacore.com>
815
816 * breakpoint.c (print_one_breakpoint_location): Make sure to print
817 the breakpoint address only once.
818
475bbd17
JB
8192008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
820
821 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
822 rather than a hard-coded architecture, for xcoff executables.
823
86991504
DE
8242008-04-17 Doug Evans <dje@google.com>
825
4584e32e
DE
826 * buildsym.c (watch_main_source_file_lossage): New fn.
827 (end_symtab): Call it.
828
86991504
DE
829 * source.c (find_and_open_source): Add some comments clarifying
830 handling of FULLNAME argument. Make static. Remove pointless
831 xstrdup/xfree.
832
0a320680
PA
8332008-04-17 Pedro Alves <pedro@codesourcery.com>
834
835 * inf-loop.c (inferior_event_handler): Also run the intermediate
836 continuations in the INF_EXEC_COMPLETE case.
837
700b53b1
TT
8382008-04-16 Tom Tromey <tromey@redhat.com>
839
840 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
841 (set_cmd_async_ok, get_cmd_async_ok): Declare.
842 * cli/cli-decode.c (set_cmd_async_ok): New function.
843 (get_cmd_async_ok): New function.
844 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
845 "show" as async-ok.
846 * top.c (execute_command): Use get_cmd_async_ok.
847 * infcmd.c: Include cli/cli-decode.h.
848 (_initialize_infcmd): Mark "interrupt" as async-ok.
849 * Makefile.in (infcmd.o): Depend on cli_decode_h.
850
dacec2a8
DJ
8512008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
852
853 PR gdb/2445
854 * exec.c: Correct "arch-utils.h" include.
855
2cec12e5
AR
8562008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
857
858 PR gdb/2424
859 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
860 to allow printing to 'see' real reason of stop. This fixes PR 2424.
861 * breakpoint.c (bpdisp_texst): New function. The function takes over
862 the role of bpstats static array in print_one_breakpoint_location.
863 (print_it_typical): Print "Temporary breakpoint" instead
864 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
865 protocols, print disp field.
866 (print_one_breakpoint_location): Removed bpdisps static definition.
867 Call new bpstat_text function to get value for 'disp' field.
868 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
869
4d7b71aa
DJ
8702008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
871
872 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
873 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
874 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
875 * gnulib/Makefile.in: Regenerate.
876
aa11fd3f
DJ
8772008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
878
879 * Makefile.in (GNULIB_H): New. Trigger all-lib.
880 (defs_h): Use $(GNULIB_H).
881 (all-lib): Depend on gnulib/Makefile.
882 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
883 * config.in, gnulib/Makefile.in: Regenerated.
884
e28b3332
DJ
8852008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
886
887 * Makefile.in (LIBGNU, INCGNU): Define.
888 (INTERNAL_CFLAGS_BASE): Add INCGNU.
889 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
890 (CLEANDIRS): New.
891 ($(LIBGNU), all-lib): New rules.
892 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
893 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
894 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
895 * gnulib: New directory, from gnulib-tool.
896 * configure, aclocal.m4: Regenerated.
897
e3bc4218
DJ
8982008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
899
900 * linux-thread-db.c (have_threads_callback): Check thread->private.
901
fcacd99f
VP
9022008-04-13 Nick Roberts <nickrob@snap.net.nz>
903 Vladimir Prus <vladimir@codesourcery.com>
904
905 Fix @-varobjs.
906 * varobj.c (value_of_root): Update the expression for
907 floating varobjs.
908 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
909 report that.
910
de051565
MK
9112008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
912
913 * mi/mi-cmd-var.c: Include "mi-getopt.h".
914 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
915 (mi_cmd_var_set_format): Use new mi_parse_format.
916 (mi_cmd_var_evaluate_expression): Support for -f option to specify
917 format.
918 * Makefile.in (mi-cmd-var.o): Update dependencies.
919
920 * varobj.h (varobj_get_formatted_value): Declare.
921 * varobj.c (my_value_of_variable): Added format parameter.
922 (cplus_value_of_variable): Likewise.
923 (java_value_of_variable): Likewise.
924 (c_value_of_variable): Likewise. Evaluate expression based
925 on format parameter.
926 (struct language_specific): Add format parameter to function member
927 *value_of_variable.
928 (varobj_get_formatted_value): New.
929 (varobj_get_value): Added format parameter to method call.
930
56953f80
JB
9312008-04-08 Joel Brobecker <brobecker@adacore.com>
932
933 * stabsread.c (cleanup_undefined_types_noname): Manually set the
934 instance flags of the undefined type before calling replace_type.
935
e4e33b9e
VP
9362008-04-08 Vladimir Prus <vladimir@codesourcery.com>
937
938 * target.h (enum strata): Remove the download_stratum.
939
92b5c263
DE
9402008-04-07 Doug Evans <dje@google.com>
941
942 * buildsym.h (last_source_file): Add dwarf info to comment.
943 (last_source_start_addr): Ditto.
944
effa26a9
PA
9452008-04-07 Pedro Alves <pedro@codesourcery.com>
946
947 * alphanbsd-tdep.c: Include "target.h".
948 * mn10300-tdep.c: Include "target.h".
949 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
950
2b2d9e11
VP
9512008-04-06 Vladimir Prus <vladimir@codesourcery.com>
952
953 Fix breakpoint condition that use member variables.
954 * valops.c (check_field): Remove.
955 (check_field_in): Rename to check_field.
956 (value_of_this): Use la_name_of_this.
957 * value.h (check_field): Adjust prototype.
958
959 * language.h (la_value_of_this): Rename to la_name_of_this.
960 * language.c (unknown_language_defn): Specify "this" for
961 name_of_this.
962 (auto_language_defn): Likewise.
963 (local_language_defn): Likewise.
964 * ada-lang.c (ada_language_defn): Adjust comment.
965 * c-lang.c (c_language_defn): Adjust comment.
966 (cplus_language_defn): Specify "this" for name_of_this.
967 (asm_language_defn): Adjust comment.
968 (minimal_language_defn): Adjust comment.
969 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
970 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
971 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
972 * objc-lang.c (objc_language_defn): Specify "self" for
973 name_of_this.
974 * p-lang.c (pascal_language_defn): Specify "this" for
975 name_of_this.
976 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
977
978 * symtab.c (lookup_symbol_aux): Lookup "this" in the
979 proper scope, and check for field in type of "this", without
980 trying to create a value.
981
a13e061a
PA
9822008-04-04 Pedro Alves <pedro@codesourcery.com>
983
984 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
985 (mi_error_message): Delete declaration.
986 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
987 returning MI_CMD_ERROR.
988 * mi/mi-main.c (mi_error_message): Delete.
989 (mi_cmd_exec_interrupt):
990 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
991 (mi_cmd_thread_info): Call error instead of returning
992 MI_CMD_ERROR.
993 (mi_cmd_data_list_register_values): Call error instead of
994 returning MI_CMD_ERROR. Adapt to new get_register interface.
995 (get_register): Change return typo to void. Call error instead of
996 returning MI_CMD_ERROR.
997 (mi_cmd_data_write_register_values): Call error instead of
998 returning MI_CMD_ERROR.
999 (mi_cmd_list_features): Return MI_CMD_DONE.
1000 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
1001 (mi_execute_command): Always print exceptions with -error.
1002
aad4b048
JB
10032008-04-04 Joel Brobecker <brobecker@adacore.com>
1004
1005 * NEWS: Mention new commands set/show multiple-symbols.
1006
717d2f5a
JB
10072008-04-03 Joel Brobecker <brobecker@adacore.com>
1008
1009 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
1010 (multiple_symbols_cancel): New constants.
1011 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
1012 (multiple_symbols_select_mode): New function.
1013 (_initialize_symtab): Add new set/show multiple-symbols commands.
1014 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
1015 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
1016 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
1017 setting.
1018 * linespec.c (decode_line_2): Likewise.
1019
f73634e5
DE
10202008-04-03 Doug Evans <dje@sebabeach.org>
1021
1022 * symtab.h (enum free_code): Delete free_contents, unused.
1023 * symmisc.c (free_symtab_block): Delete.
1024 (free_symtab, case free_code): Delete.
1025
6af87b03
AR
10262008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
1027
1028 * valops.c (value_cast_structs): New function. Cast related
1029 STRUCT types up/down and return cast value. The body of this
1030 function comes mostly from value_cast_pointers.
1031 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
1032 to value_cast_structs. Now value_cast_pointers needs only create
1033 appropriate reference after using value_cast_structs for actual
1034 casting.
1035 (value_cast): Handle references.
1036
61ad90e1
MK
10372008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
1038
1039 * MAINTAINERS: Added myself to section Write After Approval.
1040
b7d038ae
DJ
10412008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1042
1043 * ia64-tdep.c (examine_prologue): Correct array access.
1044
10452008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
c836824f
AR
1046
1047 * cp-support.c (first_component_command): Return if no arguments.
1048
df3ac606
CD
10492008-03-28 Carlos O'Donell <carlos@codesourcery.com>
1050
1051 * ser-mingw.c (ser_windows_open): Open requested name.
1052
ca933485
AR
10532008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
1054
1055 * MAINTAINERS: Added myself.
1056
5f667f2d
PA
10572008-03-28 Pedro Alves <pedro@codesourcery.com>
1058
1059 * target.c (find_default_run_target): Allow a NULL `do_mesg'
1060 parameter. If it is NULL, don't call error.
1061 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
1062 `do_mesg' parameter to find_default_run_target. If no target was
1063 found, return 0.
1064
e741f4d4
DJ
10652008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
1066
1067 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
1068 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
1069 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
1070 Delete.
1071 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
1072
f66d8205 10732008-03-27 Joel Brobecker <brobecker@adacore.com>
1074
1075 GDB 6.8 released.
1076
221c031f
UW
10772008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
1078
1079 * features/Makefile (%.dat): Set xmltarget to the base filename
1080 of the XML source, without subdirectory.
1081 * regformats/rs6000/powerpc-32.dat: Regenerate.
1082 * regformats/rs6000/powerpc-64.dat: Regenerate.
1083 * regformats/rs6000/powerpc-e500.dat: Regenerate.
1084
40c58d95
MD
10852008-03-27 Markus Deuling <deuling@de.ibm.com>
1086
1087 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
1088 objfile arch.
1089
bb1ec7d2
NR
10902008-03-27 Nick Roberts <nickrob@snap.net.nz>
1091
1092 * mi/mi-main.c (enum captured_mi_execute_command_actions):
1093 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
1094
5e2b427d
UW
10952008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1096
1097 * objfiles.h (struct objfile): New GDBARCH member.
1098 (get_objfile_arch): Add prototype.
1099 * objfiles.c: Include "arch-utils.h".
1100 (allocate_objfile): Look up gdbarch associated with bfd.
1101 (get_objfile_arch): New function.
1102 * Makefile (objfiles.o): Update dependencies.
1103
1104 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
1105 by objfile arch.
1106 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
1107 by frame arch.
1108 (locexpr_describe_location): Replace current_gdbarch by
1109 objfile arch.
1110 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
1111 (dwarf2_add_field): Likewise.
1112 (read_tag_pointer_type): Likewise.
1113 (read_base_type): Likewise.
1114 (new_symbol): Likewise.
1115
1116 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
1117 (decode_base_type, decode_function_type): Likewise.
1118 (coff_read_struct_type, coff_read_enum_type): Likewise.
1119 (coff_symtab_read): Replace current_gdbarch by objfile arch.
1120 (decode_base_type): Likewise.
1121 (coff_read_enum_type): Likewise.
1122 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
1123 (coff_read_enum_type): Likewise.
1124
1125 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
1126 (end_psymtab): Likewise.
1127 (process_one_symbol): Likewise.
1128
1129 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
1130 (parse_procedure): Likewise.
1131 (parse_partial_symbols): Likewise.
1132
1133 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
1134
1135 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
1136 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
1137 built-in types.
1138 (read_range_type): Replace current_gdbarch by objfile arch. Replace
1139 static range_index_type by built-in type.
1140 (read_one_struct_field): Replace current_gdbarch by objfile arch.
1141 (read_enum_type): Likewise.
1142
1143 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
1144 objfile arch.
1145
5a413362
VP
11462008-03-26 Vladimir Prus <vladimir@codesourcery.com>
1147
1148 * varobj.h (varobj_floating_p): Declare.
1149 * varobj.c (varobj_floating_p): New.
1150 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
1151 '@' as the name, update all floating varobjs.
1152
a5defcdc
VP
11532008-03-26 Vladimir Prus <vladimir@codesourcery.com>
1154
1155 * varobj.c (struct varobj_root): Rename use_selected_frame to
1156 floating, and clarify the meaning.
1157 (varobj_create, varobj_update, new_root_variable): Adjust.
1158 (value_of_root): Don't use type_changed as in variable,
1159 adjust comment.
1160 (c_value_of_root): Adjust.
5a413362 1161
403fe197
PA
11622008-03-25 Pedro Alves <pedro@codesourcery.com>
1163
1164 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
1165 gdb's thread list.
1166 (linux_nat_wait): Add main lwp to gdb's thread list.
1167 * linux-thread-db.c (find_new_threads_callback): Also attach to
1168 already listed threads which thread_db didn't know about yet.
1169
710151dd
PA
11702008-03-25 Pedro Alves <pedro@codesourcery.com>
1171
1172 * linux-nat.c (drain_queued_events): Fix comment typo.
1173 (linux_nat_attach): In async mode, don't rely on storing a pending
1174 status. Instead place the wait status on the pipe.
1175 (linux_nat_resume): Remove unreacheable shortcut code in async
1176 mode.
1177 (stop_wait_callback): In async mode, don't store pending status.
1178 Instead, cancel breakpoints or resend the signal appropriatelly.
1179 (cancel_breakpoint): New, refactored from
1180 cancel_breakpoints_callback.
1181 (cancel_breakpoints_callback): Call cancel_breakpoint.
1182 (pipe_to_local_event_queue): Remove special token processing.
1183 (linux_nat_wait): Issue an internal error if a pending status is
1184 found in async mode.
1185
807bddf3
DJ
11862008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
1187
1188 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
1189
c5b48eac
VP
11902008-03-24 Nick Roberts <nickrob@snap.net.nz>
1191 Vladimir Prus <vladimir@codesourcery.com>
1192
1193 * varobj.c (struct varobj_root): New component thread_id.
1194 (varobj_get_thread_id, check_scope): New functions.
1195 (c_value_of_root): Use check_scope. Switch to the
1196 proper thread if necessary.
1197
1198 * varobj.h (varobj_get_thread_id): New extern.
1199
1200 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
1201
12f4afab
DJ
12022008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
1203
1204 PR gdb/544
1205 * top.c: Revert 2008-03-21 changes.
1206
6208b47d
VP
12072008-03-23 Vladimir Prus <vladimir@codesourcery.com>
1208
1209 * thread.c (make_cleanup_restore_current_thread): Make it
1210 globally visible.
1211 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
1212 * varobj.c (varobj_update): Don't save/restore frame.
1213 (c_value_of_root): Save/restore thread and frame here,
1214 using make_cleanup_restore_current_thread.
1215 * Makefile.in: Update dependecies.
1216
44a67aa7
VP
12172008-03-23 Vladimir Prus <vladimir@codesourcery.com>
1218
1219 * varobj.c (struct varobj_root): Clarify
1220 comment on the frame field.
1221 (varobj_create): Don't set frame if we have no
1222 block.
1223
b562a0cb
DJ
12242008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
1225
1226 PR gdb/544
1227 Suggested by Jan Kratochvil:
1228 * top.c (gdb_rl_operate_and_get_next_completion): Call
1229 rl_redisplay_function.
1230 (gdb_rl_redisplay): New.
1231 (init_main): Set rl_redisplay_function.
1232
ed1bd5f5
JB
12332008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
1234
1235 * aix-thread.c (pdc_read_regs): Fix compiler warning.
1236 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
1237 (store_regs_kernel_thread): Likewise.
1238
b84876c2
PA
12392008-03-21 Pedro Alves <pedro@codesourcery.com>
1240
1241 Linux native async support.
1242
1243 * target.h (struct target_ops): Delete to_async_mask_value and add
1244 to_async_mask.
1245 (target_is_async_p, target_async): Formatting.
1246 (target_async_mask_value): Delete.
1247 (target_async_mask): Delete function declaration, and add new
1248 target macro with the same name.
1249
1250 * target.c (update_current_target): Replace to_async_mask_value by
1251 to_async_mask. Default to_async_mask to return_one.
1252 (target_async_mask): Delete.
1253 (find_default_can_async_p, find_default_is_async_p): New.
1254 (init_dummy_target): register find_default_can_async_p and
1255 find_default_is_async_p on the dummy target.
1256
1257 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
1258 (debug_linux_nat_async): New global.
1259 (show_debug_linux_nat_async): New function.
1260 (linux_nat_async_enabled, linux_nat_async_mask_value)
1261 (linux_nat_event_pipe, linux_nat_num_queued_events)
1262 (linux_nat_async_events_enabled): New globals.
1263 (struct waitpid_result): New struct.
1264 (waitpid_queue): New global.
1265 (queued_waitpid, push_waitpid, drain_queued_events): New.
1266 (my_waitpid): Call queued_waitpid.
1267 (linux_child_follow_fork): Disable async events during the call.
1268 (blocked_mask): Delete.
1269 (sync_sigchld_action, async_sigchld_action): New globals.
1270 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
1271 async mode, block events during the call.
1272 (linux_nat_create_inferior): New.
1273 (linux_nat_attach): In sync mode, restore the mask states. In
1274 async mode, wake the event loop immediatelly.
1275 (detach_callback): Drain all queued events of the lwp we're
1276 detaching from.
1277 (linux_nat_detach): Block async mode, and drain events of the main
1278 process.
1279 (linux_nat_resume): If in async mode, mask async events during the
1280 call. If short circuiting, force event loop to wake up. If
1281 resuming, set target_executing, and register target events in the
1282 event loop.
1283 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
1284 (linux_nat_wait): In async mode, block events during the call.
1285 Only enable/disable passing SIGINT to the inferior in sync mode.
1286 Get events from local waitpid queue. If no interesting events was
1287 found, return to events loop. Reregister target events in the
1288 event loop on exit. In sync mode, no need to reblock SIGCHLD.
1289 (linux_nat_kill): Disable events on entry.
1290 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
1291 here. Detach async mode from the event loop if there are no more
1292 forks available, otherwise leave it on.
1293 (sigchld_handler): Assure this is called only in sync mode.
1294 (linux_async_permitted, linux_async_permitted_1): New globals.
1295 (set_maintenance_linux_async_permitted)
1296 (show_maintenance_linux_async_permitted): New functions.
1297 (linux_nat_is_async_p, linux_nat_can_async_p)
1298 (linux_nat_async_mask): New.
1299 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
1300 (get_pending_events, async_sigchld_handler): New.
1301 (linux_nat_async_events): New.
1302 (async_terminal_is_ours): New global.
1303 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
1304 (async_client_callback, async_client_context): New.
1305 (linux_nat_async_file_handler, linux_nat_async)
1306 (linux_nat_disable_async, linux_nat_enable_async): New.
1307 (linux_nat_add_target): Register linux_nat_create_inferior,
1308 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
1309 linux_nat_async_mask, linux_nat_terminal_inferior and
1310 linux_nat_terminal_ours.
1311 (_initialize_linux_nat): Remove local action variable, and update
1312 code that used it to use sync_sigchld_action. Add new
1313 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
1314 set/show command in the maintenance class. Add new "linux-async"
1315 maintenance set/show command. Block SIGCHLD by default. Setup
1316 async_sichld_action, and sync_sigchld_action. Install the default
1317 async mode.
1318 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
1319 the cancel signals.
1320
1321 * linux-thread-db.c (re_check_for_thread_db): New.
1322 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
1323 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
1324 (thread_db_async_mask): New.
1325 (init_thread_db_ops): Register thread_db_can_async_p,
1326 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
1327
1328 * remote.c (remote_async_mask_value): New.
1329 (remote_return_zero): New.
1330 (init_remote_ops): Register remote_return_zero as callbacks of
1331 to_can_async_p and to_is_async_p.
1332 (remote_can_async_p, remote_is_async_p, remote_async): Update to
1333 use remote_async_mask_value.
1334 (remote_async_mask): New.
1335 (init_remote_async_ops): Remove to_async_mask_value setting and
1336 register remote_async_mask as to_async_mask callback in
1337 remote_async_ops.
1338
1339 * Makefile.in (linux-nat.o): Update.
1340
17faa917
DJ
13412008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
1342
1343 * gdbthread.h (add_thread_with_info): New.
1344 * linux-thread-db.c: Add some documentation.
1345 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
1346 (struct private_thread_info): Remove th_valid and ti_valid.
1347 Replace ti with tid.
1348 (thread_get_info_callback): Do not add TID to the new ptid. Do
1349 not cache th or ti.
1350 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
1351 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
1352 new PTID.
1353 (attach_thread): Handle an already-existing thread. Use
1354 add_thread_with_info. Cache the th and tid.
1355 (detach_thread): Verify that private was set. Remove verbose
1356 argument and printing. Update caller.
1357 (thread_db_detach): Do not adjust inferior_ptid.
1358 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
1359 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
1360 (thread_db_wait): Do not use lwp_from_thread.
1361 (thread_db_pid_to_str): Use the cached TID.
1362 (thread_db_extra_thread_info): Check that private is set.
1363 (same_ptid_callback): Delete.
1364 (thread_db_get_thread_local_address): Do not use it or check
1365 is_thread. Check that private is set. Assume that the thread
1366 handle is already cached.
1367 (init_thread_db_ops): Remove to_resume and to_kill.
1368 * thread.c (add_thread_with_info): New.
1369 (add_thread): Use it.
1370 * linux-nat.c (find_thread_from_lwp): Delete.
1371 (exit_lwp): Do not use it. Check print_thread_events. Print before
1372 deleting the thread.
1373 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
1374 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
1375 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
1376 printf_unfiltered for thread exits.
1377 * procfs.c (procfs_wait): Likewise.
1378
6214f497
DJ
13792008-03-21 Chris Demetriou <cgd@google.com>
1380
1381 * symtab.c (rbreak_command): Quote symbol name before passing
1382 it to break_command.
1383
63092375
DJ
13842008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
1385
1386 * eval.c (evaluate_subexp_for_address): Clarify error message.
1387 Use value_must_coerce_to_target.
1388 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
1389 * valops.c (value_assign): Call value_coerce_to_target when
1390 assigning to anything but internalvars. Leave GDB-side arrays
1391 as arrays when assigning to internalvars.
1392 (value_must_coerce_to_target, value_coerce_to_target): New.
1393 (value_coerce_array, value_addr): Call value_coerce_to_target.
1394 (value_array): Create the array in GDB's memory instead of
1395 the inferior's.
1396 * value.h (value_must_coerce_to_target, value_coerce_to_target):
1397 Declare.
1398
b21991b0
DJ
13992008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
1400
1401 * top.c (quit_confirm): Warn that we will kill the program.
1402
49a834f9
PA
14032008-03-19 Pedro Alves <pedro@codesourcery.com>
1404
1405 * inflow.c (terminal_ours_1): Guard access to
1406 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
1407
ae0d2f24
UW
14082008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
1409 Jim Blandy <jimb@codesourcery.com>
1410 Daniel Jacobowitz <drow@false.org>
1411
1412 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
1413 (dwarf2_read_address): Update prototype.
1414
1415 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
1416 (signed_address_type): Likewise.
1417 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
1418 (execute_stack_op): Update calls to unsigned_address_type,
1419 signed_address_type and dwarf2_read_address. Fix implementation
1420 of DW_OP_deref_size.
1421
1422 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
1423 (dwarf2_per_cu_addr_size): Likewise.
1424 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
1425 (struct dwarf2_loclist_baton): Likewise.
1426
1427 * dwarf2loc.c (find_location_expression): Update calls to
1428 dwarf2_read_address. Use dwarf2_per_cu_objfile and
1429 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
1430 (locexpr_describe_location): Likewise.
1431 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
1432 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
1433 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
1434 to dwarf2_per_cu_addr_size (per_cu).
1435 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
1436 (loclist_read_variable): Likewise.
1437 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
1438
1439 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
1440 instead of baton->objfile.
1441 (dwarf2_per_cu_obfile): New function.
1442 (dwarf2_per_cu_addr_size): Likewise.
1443
1444 * dwarf2-frame.c (struct comp_unit): Move higher.
1445 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
1446 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
1447 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
1448 parameter by using fde->eh_frame_p. Use read_encoded_value
1449 to implement DW_CFA_set_loc.
1450 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
1451 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
1452 execute_stack_op and execute_cfa_program.
1453 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
1454 (size_of_encoded_value): Remove.
1455 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
1456 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
1457 (add_cie): Set cie->unit backlink.
1458 (decode_frame_entry_1): Set cie->addr_size. Update calls to
1459 read_encoded_value.
1460 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
1461
1c8201d1
MD
14622008-03-17 Markus Deuling <deuling@de.ibm.com>
1463
1464 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
1465 gdbarch_bfd_arch_info.
1466
46bba1ef
JB
14672008-03-17 Joel Brobecker <brobecker@adacore.com>
1468
1469 * aix-thread.c (pdc_read_regs): Minor reformatting.
1470
0bcd3e20
VP
14712008-03-17 Vladimir Prus <vladimir@codesourcery.com>
1472
1473 * thread.c (print_thread_info): Don't insist
1474 on having current thread if there are no
1475 threads at all.
1476
9356cf8d
PA
14772008-03-17 Pedro Alves <pedro@codesourcery.com>
1478
1479 * infcmd.c (attach_command_post_wait)
1480 (attach_command_continuation): New.
1481 (attach_command): Support background async execution, and async
1482 execution in synchronous mode.
1483
5c3ce3f7
DJ
14842008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
1485
1486 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
1487 * symmisc.c (dump_symtab_1): Likewise.
1488 * wrapper.c (gdb_value_struct_elt): Likewise.
1489
fa2c6a57
PA
14902008-03-17 Pedro Alves <pedro@codesourcery.com>
1491
1492 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
1493
02f3fc28
PA
14942008-03-17 Pedro Alves <pedro@codesourcery.com>
1495
1496 * linux-nat.c (linux_nat_filter_event): New, refactored from
1497 linux_nat_wait.
1498 (linux_nat_wait): Call linux_nat_filter_event.
1499
2f77b315
UW
15002008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
1501
1502 * top.c (execute_command): Fix uninitialized variable error.
1503
f01be29b
NH
15042008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
1505
1506 * Makefile.in (amd64nbsd-nat.o): New dependency.
1507 * amd64nbsd-nat.c: Include "nbsd-nat.h".
1508 (_initialize_amd64nbsd_nat): Update target vector to use
1509 nbsd_pid_to_exec_file.
1510 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
1511
6cf32704
VP
15122008-03-15 Vladimir Prus <vladimir@codesourcery.com>
1513
1514 Remove ignoring leading exec events code.
1515 * fork-child.c (startup_inferior): Do not set
1516 inferior_ignoring_leading_exec_events.
1517 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
1518 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
1519 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
1520 (handle_inferior_event): Remove code for ignoring leading exec
1521 events.
1522 * target.c (update_current_target): Do not inherit, or default,
1523 to_reported_exec_events_per_exec_call.
1524 (debug_to_reported_exec_events_per_exec_call): Remove.
1525 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
1526 * target.h (target_reported_exec_events_per_exec_call): Remove.
1527 (struct target): Remove the to_reported_exec_events_per_exec_call
1528 field.
1529
8e8901c5
VP
15302008-03-15 Vladimir Prus <vladimir@codesourcery.com>
1531
1532 Implement -thread-info.
1533 * gdbthread.h (print_thread_info): Declare.
1534
1535 * thread.c (print_thread_info): New, extracted
1536 from info_threads_command and adjusted to
1537 work for CLI and MI.
1538 (info_threads_command): Use print_thread_info.
1539 * Makefile.in: Update dependencies.
1540
1541 * mi/mi-cmds.c (mi_cmds): Specify a handler
1542 for -thread-info.
1543 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
1544 * mi/mi-main.c (mi_cmd_thread_info): New.
1545 (mi_cmd_list_features): Include 'thread-info'.
1546
7d1e6fb8
KB
15472008-03-14 Kevin Buettner <kevinb@redhat.com>
1548
1549 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
1550 to decide whether to match instruction patterns using "sw" and "sd".
1551
89113898
PA
15522008-03-14 Pedro Alves <pedro@codesourcery.com>
1553
1554 * infcmd.c (jump_command): Postpone disabling stdin until after
1555 the possible query.
1556
64a0ac84
PA
15572008-03-14 Pedro Alves <pedro@codesourcery.com>
1558
1559 * inflow.c (gdb_getpgrp): New.
1560 (gdb_has_a_terminal): Use get_getpgrp.
1561 (terminal_ours_1): If attach_flag is set, don't refetch
1562 inferior_process_group.
1563
1fddbabb
PA
15642008-03-14 Pedro Alves <pedro@codesourcery.com>
1565
1566 * features/library-list.dtd: Allow "section" elements as children
1567 of "library". Add "section" element and describe its attributes.
1568
1569 * solib-target.c (struct lm_info): Add section_bases member.
1570 (library_list_start_segment): Error out if seen a section element.
1571 (library_list_start_section): New.
1572 (library_list_end_library): New.
1573 (solib_target_free_library_list): Free section_bases.
1574 (section_attributes): New.
1575 (library_children): Make "segment" optional. Add "section" child.
1576 (library_list_children): Register library_list_end_library.
1577 (solib_target_relocate_section_addresses): Handle section bases.
1578
1579 * NEWS: Mention new qXfer:libraries:read section offsets support.
1580
712af3be
VP
15812008-03-14 Vladimir Prus <vladimir@codesourcery.com>
1582
1583 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
1584 (make_exec_error_cleanup): Remove declarations.
1585 * utils.c (exec_error_cleanup_chain): Remove.
1586 (do_exec_error_cleanups, discard_exec_error_cleanups)
1587 (make_exec_error_cleanup): Remove.
1588 * event-loop.c (start_event_loop): Adjust call to
1589 async_enable_stdin.
1590 * event-top.c (async_enable_stdin): Remove the paramater dummy.
1591 (async_disable_stdin): Don't register async_enable_stdin via
1592 cleanup.
1593 * inf-loop.c (inferior_event_handler): Don't
1594 call do_exec_error_cleanups. Call async_enable_stdin instead.
1595 * event-loop.c (start_event_loop): Adjust call to
1596 async_enable_stdin.
1597 * tui/tui-interp.c (tui_command_loop): Adjust call to
1598 async_enable_stdin.
1599
32c1e744
VP
16002008-03-14 Vladimir Prus <vladimir@codesourcery.com>
1601
1602 Async mode fixes.
1603 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
1604 * breakpoint.c (bpstat_do_actions): In async mode,
1605 don't jump to top expecting stop_bpstat to be already
1606 updated.
1607 * event-loop.c (start_event_loop): Call async_enable_stdin
1608 on exception.
1609 * event-top.c (async_enable_stdin): Do nothing if sync_execution
1610 is not set.
1611 (command_handler): Do not setup continuation here.
1612 (command_line_handler_continuation): Move to...
1613 * top.c (command_line_handler_continuation): ... here.
1614 (execute_command): In async mode, register continuation.
1615 Don't check frame's language in running in async mode.
1616 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
1617 * inf-loop.c (complete_execution): Inline into...
1618 (inferior_event_handler): ... here. Clear target_executing before
1619 doing any cleanups. Don't try to show prompt if the target was
1620 resumed.
1621 * infcmd.c (signal_command): Add support for async mode.
1622 (finish_command): Only add continuation if the target was
1623 successfully resumed.
1624 * remote.c (init_async_opts): Register to_get_thread_local_address
1625 handler.
1626 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
1627 with sync_execution.
1628 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
1629 on exception.
1630
c04ea773
DJ
16312008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
1632
1633 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
1634 * exec.c (exec_bfd_mtime): Define.
1635 (exec_close): Clear it.
1636 (exec_file_attach): Set it.
1637 * gdbcore.h (exec_bfd_mtime): Declare.
1638 * source.c (find_source_lines): Do not use bfd_get_mtime.
1639
952dc227
VP
16402008-03-14 Vladimir Prus <vladimir@codesourcery.com>
1641
1642 * top.c (simplified_command_loop): Remove.
1643
4cf46804
VP
16442008-03-14 Vladimir Prus <vladimir@codesourcery.com>
1645
1646 Remove unused remote.c hooks.
1647 * remote.c (deprecated_target_resume_hook)
1648 (deprecated_target_wait_loop_hook): Remove.
1649 (remote_resume): Do not call deprecated_target_resume_hook.
1650 (remote_wait): Do not call deprecated_target_wait_loop_hook.
1651 (remote_async_wait): Likewise.
1652
683f2885
VP
16532008-03-14 Vladimir Prus <vladimir@codesourcery.com>
1654
1655 Implement MI notification for new threads.
1656 * doc/observer.texi (new_thread): Document.
1657 * observer.sh: Forward declare struct thread_info.
1658 * thread.c (add_thread): Notify observer.
1659
1660 * interps.h (interp_init_ftype): New parameter
1661 top_level.
1662 (interp_set): Likewise.
1663 (top_level_interpreter_data): Declare.
1664 * interps.c (interp_set): New parameter top_level.
1665 Pass it to interpreter's init function. Remember
1666 top level interpreter.
1667 (interpreter_exec_cmd): Adjust.
1668 (top_level_interpreter_data): New.
1669 * main.c (captured_main): Pass 1 for top_level
1670 parameter of interp_set.
1671 * cli/cli-interp.c (cli_interpreter_init): New
1672 parameter top_level.
1673 * tui/tui-interp.c (tui_init): New parameter top_level.
1674
1675 * mi/mi-interp.c (mi_new_thread): New.
1676 (mi_interpreter_init): If top level, register
1677 observer for new threads.
1678
1679 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
1680
ff9b3928
PA
16812008-03-14 Pedro Alves <pedro@codesourcery.com>
1682
1683 * top.c (execute_command): Disable break and stop
1684 commands in async mode.
1685
b18392ef
PA
16862008-03-14 Pedro Alves <pedro@codesourcery.com>
1687
1688 revert:
1689 2008-03-14 Pedro Alves <pedro@codesourcery.com>
1690 * inf-loop.c (inferior_event_handler): Don't include remote.h.
1691 Call target_stop in the INF_QUIT_REQ case.
1692 * Makefile.in (inf-loop.o): Update.
1693
0aca9f07
PA
16942008-03-14 Pedro Alves <pedro@codesourcery.com>
1695
1696 * inf-loop.c (inferior_event_handler): Don't include remote.h.
1697 Call target_stop in the INF_QUIT_REQ case.
1698 * Makefile.in (inf-loop.o): Update.
1699
0b4e556c
PA
17002008-03-14 Pedro Alves <pedro@codesourcery.com>
1701
1702 * top.c (execute_command): Enable break, info and interrupt
1703 commands in async mode.
1704
8defab1a
DJ
17052008-03-13 Vladimir Prus <vladimir@codesourcery.com>
1706 Daniel Jacobowitz <dan@codesourcery.com>
1707
1708 * breakpoint.h (breakpoint_restore_shadows): New
1709 declaration.
1710 * breakpoint.c (breakpoint_restore_shadows): New.
1711 (read_memory_nobpt): Delete.
1712 * gdbcore.h (read_memory_nobpt): Delete declaration.
1713 * target.c (memory_xfer_partial): Call
1714 breakpoint_restore_shadows.
1715 (restore_show_memory_breakpoints)
1716 (make_show_memory_beakpoints_cleanup): New.
1717 (show_memory_breakpoints): New.
1718 * target.h (make_show_memory_beakpoints_cleanup): Declare.
1719 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
1720 Make sure we see memory breakpoints when checking if
1721 breakpoint is still there.
1722 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
1723 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
1724 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
1725 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
1726
fd532e2e
PA
17272008-03-12 Pedro Alves <pedro@codesourcery.com>
1728
1729 * thread.c (add_thread): Use printf_unfiltered to print.
1730
f749779f 17312008-03-12 Joel Brobecker <brobecker@gnat.com>
965b60ee
JB
1732
1733 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
1734 that is true only on x86-solaris and x86_64-solaris.
1735 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
1736 with proc_get_LDT_entry.
1737
17382008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
83116857
TJB
1739
1740 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
1741 * config.in, configure: Regenerate.
1742 * fork-child.c (fork_inferior): Call create_tty_session.
1743 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
1744 (create_tty_session): New function.
1745 * terminal.h: Declare create_tty_session.
1746
4fbb74a6
AM
17472008-03-12 Alan Modra <amodra@bigpond.net.au>
1748
1749 PR 5900
1750 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
1751 * mipsread.c: Include elf/internal.h.
1752 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
1753 to internal range.
1754
20a6ec49
MD
17552008-03-11 Markus Deuling <deuling@de.ibm.com>
1756
1757 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
1758 to get at the current architecture and at the target specific vector.
1759 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
1760 remove define of I387_ST0_REGNUM.
1761
1762 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
1763
1764 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
1765 get at the current architecture
1766 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
1767 parameter.
1768
1769 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
1770 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
1771
1772 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
1773 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
1774 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
1775
1776 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
1777 at the target specific vector.
1778
1779 (i386_get_longjmp_target): Use get_frame_arch to get at the current
1780 architecture. Use gdbarch_tdep to get at the target specific vector.
1781
1782 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
1783 update caller. Use gdbarch_tdep to get at the target specific vector.
1784
1785 (i386_register_to_value: Use get_frame_arch to get at the current
1786 architecture.
1787
1788 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
1789 parameter.
1790
1791 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
1792 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
1793 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
1794 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
1795
1796 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
1797 undef's.
1798
1799 (i387_convert_register_p, i387_register_to_value,
1800 i387_value_to_register): Update call for i386_fp_regnum_p.
1801
1802 * i387-tdep.h: Remove comment.
1803 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
1804 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
1805 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
1806 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
1807 I387_MXCSR_REGNUM): Add target specific vector as parameter.
1808
ccd213ac
DJ
18092008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
1810
1811 * Makefile.in (fork-child.o): Update.
1812 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
1813 argument. Gather all gdbserver features together.
1814 * fork-child.c (exec_wrapper): New variable.
1815 (fork_inferior): Use it.
1816 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
1817 (unset_exec_wrapper_command, _initialize_fork_child): New.
1818
18192008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
80618b99
MS
1820
1821 * source.c (directory_command): Modify the determination of
1822 condition of terminal "from_tty".
1823
22566fbd
DJ
18242008-03-10 Matt Rice <ratmice@gmail.com>
1825
1826 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
1827
9971ac47
UW
18282008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
1829
1830 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
1831 of the data passing to strtoulst function.
1832 (info_spu_signal_command): Likewise.
1833
835670cf
VP
18342008-03-08 Vladimir Prus <vladimir@codesourcery.com>
1835
1836 * mi/mi-interp.c (mi_command_loop): Remove
1837 commented-out code.
1838
be86555c
JB
18392008-03-07 Joel Brobecker <brobecker@adacore.com>
1840
1841 * remote.c (extended_remote_attach_1): Make local variable pid an int
1842 instead of a pid_t.
1843
4d7b2d5b
JB
18442008-03-07 Joel Brobecker <brobecker@adacore.com>
1845
1846 * solib-svr4.c (svr4_same_1): New function, originally extracted
1847 from svr4_same and expanded to handle the sparc64 case.
1848 (svr4_same): Move up and reimplement using svr4_same_1.
1849 (enable_break): Use svr4_same_1 to do shared library name comparisons.
1850
61fed90e
RR
18512008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
1852
1853 * MAINTAINERS: Move self to Paper trail.
1854
b803fb0f
DJ
18552008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
1856
1857 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
1858 * event-loop.c (call_async_signal_handler): New.
1859 * event-loop.h (call_async_signal_handler)
1860 (gdb_call_async_signal_handler): Declare.
1861 (mark_async_signal_handler): Add comments.
1862 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
1863 * mingw-hdep.c (sigint_event, sigint_handler): New.
1864 (gdb_select): Use them. Wait for the readline signal handler
1865 to finish.
1866 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
1867 * posix-hdep.c (gdb_call_async_signal_handler): New function.
1868 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
1869 New.
1870 (remote_fileio_ctrl_c_signal_handler): Use
1871 gdb_call_async_signal_handler.
1872 (initialize_remote_fileio): Initialize sigint_fileio_token.
1873 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
1874 not initialize tokens here.
1875 (handle_remote_sigint_twice): Likewise. Reinstall
1876 handle_remote_sigint.
1877 (async_remote_interrupt_twice): Just call interrupt_query.
1878 (cleanup_sigint_signal_handler): Do not delete tokens.
1879 (remote_interrupt, remote_interrupt_twice): Use
1880 gdb_call_async_signal_handler.
1881 (interrupt_query): Reinstall the default signal handler.
1882 (_initialize_remote): Initialize tokens here.
1883
8f4d54ed
JB
18842008-03-04 Joel Brobecker <brobecker@adacore.com>
1885
1886 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
1887 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
1888 Change the type of the lr register to code_ptr.
1889 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
1890 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
1891 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
1892 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
1893 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
1894 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
1895 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
1896
95ece428
JW
18972008-03-03 James E. Wilson <wilson@tuliptree.org>
1898
1899 * MAINTAINERS: Update my email address.
1900
686a5eed
KS
19012008-03-03 Keith Seitz <keiths@redhat.com>
1902
1903 From Dave Murphy <davem@devkitpro.org>:
1904 * configure.ac: Set tcl configdir to win under mingw.
1905 * configure: Regenerate.
1906
fa4727a6
DJ
19072008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
1908
1909 * breakpoint.c (fetch_watchpoint_value): New function.
1910 (update_watchpoint): Set and clear val_valid. Use
1911 fetch_watchpoint_value. Handle unreadable values on the
1912 value chain. Correct check for user-requested array watchpoints.
1913 (breakpoint_init_inferior): Clear val_valid.
1914 (watchpoint_value_print): New function.
1915 (print_it_typical): Use it. Do not free or clear old_val. Print
1916 watchpoints even if old_val == NULL.
1917 (watchpoint_check): Use fetch_watchpoint_value. Check for values
1918 becoming readable or unreadable.
1919 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
1920 (do_enable_watchpoint): Likewise.
1921 * breakpoint.h (struct breakpoint): Update comment for val. Add
1922 val_valid.
1923 * NEWS: Mention watchpoints on inaccessible memory.
1924
c03374d5
DJ
19252007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
1926
1927 * Makefile.in (i386-nat.o): Update.
1928 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
1929 i386_use_watchpoints.
1930 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
1931 i386_use_watchpoints.
1932 * i386-nat.c (i386_stopped_data_address): Take two arguments.
1933 (i386_stopped_by_watchpoint): Update call.
1934 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
1935 * config/i386/nm-i386.h: Conditionalize definitions on
1936 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
1937 (i386_use_watchpoints): Declare.
1938 (i386_stopped_data_address): Update.
1939 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
1940 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
1941
c24d7425 19422008-02-29 Joel Brobecker <brobecker@adacore.com>
1943
1944 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
1945 * version.in: Bump version to 6.8.50.20080229-cvs.
1946
a7dfd010
MD
19472008-02-28 Markus Deuling <deuling@de.ibm.com>
1948
1949 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
1950 properly.
1951
258c00cc
TT
19522008-02-28 Tom Tromey <tromey@redhat.com>
1953
1954 * infcmd.c (notice_args_read): Print result of get_inferior_args.
1955
8edfe269
DJ
19562008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
1957
1958 * infcmd.c (kill_if_already_running): Make static. Use
1959 target_require_runnable.
1960 * target.c (target_require_runnable): New.
1961 * target.h (target_require_runnable): Declare.
1962
0d6ba1b1
DJ
19632008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
1964
1965 * frame.c (reinit_frame_cache): Only annotate if frames were
1966 previously valid.
1967
6fe305f7
UW
19682008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1969
1970 * regformats/reg-ppc.dat: Rename "ps" to "msr".
1971 * regformats/reg-ppc64.dat: Likewise.
1972
9b4b61c8
UW
19732008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1974
1975 * features/Makefile (%.dat): Emit xmltarget statement.
1976
1977 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
1978 Generate code to set gdbserver_xmltarget in init_registers_${name}.
1979
1980 * regformats/arm-with-iwmmxt.dat: Regenerate.
1981 * regformats/mips64-linux.dat: Regenerate.
1982 * regformats/mips-linux.dat: Regenerate.
1983 * regformats/rs6000/powerpc-32.dat: Regenerate.
1984 * regformats/rs6000/powerpc-64.dat: Regenerate.
1985 * regformats/rs6000/powerpc-e500.dat: Regenerate.
1986
1987 * regformats/reg-arm.dat: Add xmlarch statement.
1988 * regformats/reg-i386.dat: Likewise.
1989 * regformats/reg-i386-linux.dat: Likewise.
1990 * regformats/reg-x86-64-linux.dat: Likewise.
1991 * regformats/reg-spu.dat: Likewise.
1992
20b4711e
DJ
19932008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
1994
1995 * remote.c (remote_wait, remote_async_wait): Stop if we receive
1996 an error.
1997
1843f87b
DJ
19982008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
1999
2000 * utils.c (debug_timestamp): New.
2001 (vfprintf_unfiltered): Print timestamps if requested.
2002 (show_debug_timestamp): New.
2003 (initialize_utils): Register "set debug timestamp".
2004 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
2005
6a048695
JB
20062008-02-27 Joel Brobecker <brobecker@adacore.com>
2007
2008 * breakpoint.c (skip_prologue_sal): New function.
2009 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
2010 computed from a line number.
2011
0b998f49
JB
20122008-02-27 Joel Brobecker <brobecker@adacore.com>
2013
2014 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
2015 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
2016 Set PC register type to "code_ptr".
2017 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2018 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2019 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2020 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2021 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2022 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2023 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
2024 Regenerate.
2025
d05b4ac3
UW
20262008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
2027
2028 * regformats/regdat.sh: Rename init_registers function in
2029 generated file to init_registers_${name}.
2030
2031 * regformats/reg-crisv32.dat: Set "name" to crisv32.
2032 * regformats/reg-ppc64.dat: Set "name" to ppc64.
2033 * regformats/reg-s390x.dat: Set "name" to s390x.
2034
a5d9d57d
DJ
20352008-02-26 Greg Law <glaw@undo-software.com>
2036
2037 * regcache.c (registers_changed): Call reinit_frame_cache.
2038
e25c958c
DJ
20392008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
2040
2041 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
2042 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
2043 and svr4_fetch_objfile_link_map.
2044 * Makefile.in (sh-linux-tdep.o): Update.
2045
5daa78cc
TJB
20462008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
2047
2048 * amd64-tdep.c (amd64_classify): Add support for decimal float
2049 types.
2050 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
2051 use the struct return convention.
2052
54e52265
VP
20532008-02-26 Nick Roberts <nickrob@snap.net.nz>
2054
2055 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
2056 to old format. Discard breakpoint address if shared library is
2057 unloaded.
2058 (breakpoint_1): Adjust formatting of table header accordingly.
2059
d8f2712d
VP
20602008-02-25 Vladimir Prus <vladimir@codesourcery.com>
2061
2062 * remote.c (remote_get_threadlist): If the response
2063 is empty, don't try to parse it.
2064
05ce04a4
VP
20652008-02-23 Vladimir Prus <vladimir@codesourcery.com>
2066
2067 Unbreak 'target async'.
2068 * serial.c (serial_async): Set the
2069 handler function before enabling async
2070 mode.
2071
b36ec657
DJ
20722008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
2073
2074 * solib-svr4.c (enable_break): Convert r_brk to a code address.
2075
df7df359
PA
20762008-02-21 Pedro Alves <pedro@codesourcery.com>
2077
2078 * remote.c (extended_remote_attach_1): Set attach_flag.
2079 (extended_remote_create_inferior_1): Clear attach_flag.
2080
7cd25cfc
DJ
20812008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
2082
2083 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
2084 r_brk_offset.
2085 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
2086 * solib-svr4.c (solib_svr4_r_brk): New.
2087 (open_symbol_file_object, svr4_current_sos): Always check the
2088 debug base.
2089 (svr4_fetch_objfile_link_map): Do not set debug_base.
2090 (enable_break): Use r_brk if it is set.
2091 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
2092 (svr4_lp64_fetch_link_map_offsets): Likewise.
2093 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
2094
07ea644b
MD
20952008-02-20 Markus Deuling <deuling@de.ibm.com>
2096 Mark Kettenis <kettenis@gnu.org>
2097
2098 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
2099 trad_frame_saved_reg.
2100 (trad-frame.h): New include.
2101
2102 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
2103 instead of frame_obstack_zalloc.
2104 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
2105
2106 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
2107
40887e1a
MD
21082008-02-20 Markus Deuling <deuling@de.ibm.com>
2109
2110 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
2111 from disassemble_info instead of gdbarch_byte_order.
2112
2113 * mips-tdep.c (gdb_print_insn_mips): Likewise.
2114 * arm-tdep.c (gdb_print_insn_arm): Likewise.
2115
ae4b2284
MD
21162008-02-20 Markus Deuling <deuling@de.ibm.com>
2117
2118 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
2119 gdbarch as parameter.
2120
2121 * gdbarch.{c,h}: Regenerate.
2122
2123 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
2124 parameter.
2125 * mem-break.c (default_memory_insert_breakpoint)
2126 (default_memory_remove_breakpoint): Likewise.
2127 * target.h (default_memory_remove_breakpoint)
2128 (default_memory_insert_breakpoint): Likewise.
2129
2130 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
2131 parameter. Replace current_gdbarch by gdbarch.
2132 * m32r-tdep.c (m32r_memory_insert_breakpoint)
2133 (m32r_memory_remove_breakpoint): Likewise.
2134
d9bf65d5
DJ
21352008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
2136
2137 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
2138
b93b6ca7
JB
21392008-02-19 Joel Brobecker <brobecker@adacore.com>
2140
2141 * NEWS: Add entry describing Add support improvements.
2142
4ed226fe
MD
21432008-02-18 Markus Deuling <deuling@de.ibm.com>
2144
2145 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
2146 M68K_FP0_REGNUM.
2147
caaa79ad
MD
21482008-02-18 Markus Deuling <deuling@de.ibm.com>
2149
2150 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
2151 register_offset_hack anymore.
2152
2153 * regcache.{c,h} (register_offset_hack): Remove.
2154
e38c262f
MD
21552008-02-18 Markus Deuling <deuling@de.ibm.com>
2156
2157 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
2158
2159 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
2160 current_gdbarch by gdbarch.
2161 (hppa64_hpux_find_global_pointer): Likewise.
2162 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
2163 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
2164 find_global_pointer.
2165
2166 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
2167 parameter.
2168 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
2169
2170 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
2171 of gdbarch_num_regs.
2172
2173 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
2174 replace current_gdbarch by gdbarch.
2175 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
2176
206988c4
MD
21772008-02-18 Markus Deuling <deuling@de.ibm.com>
2178
2179 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
2180 and replace current_gdbarch by gdbarch.
2181
2182 (store_register): Update call for exec_one_dummy_insn.
2183 (fetch_register, store_register): Update call of regmap.
2184
2185 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
2186 parameter and replace current_gdbarch by gdbarch.
2187
2188 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
2189 the current architecture. Update call for getregs_supplies and
2190 getfpregs_supplies.
2191 (ppcnbsd_fetch_inferior_registers): Likewise.
2192
2193 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
2194 replace current_gdbarch by gdbarch.
2195 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
2196 get_regcache_arch to get at the current architecture. Update call for
2197 getfpregs_supplies.
2198
f642be6b
MD
21992008-02-18 Markus Deuling <deuling@de.ibm.com>
2200
2201 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
2202 variables.
2203
b1f2bf01
MD
22042008-02-15 Markus Deuling <deuling@de.ibm.com>
2205
2206 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
2207
ee163bf5
VP
22082008-02-14 Vladimir Prus <vladimir@codesourcery.com>
2209
2210 * NEWS: Mention pending breakpints in MI.
2211
f6fbcbf9
MD
22122008-02-14 Markus Deuling <deuling@de.ibm.com>
2213
2214 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
2215
36af4ef6
MD
22162008-02-13 Markus Deuling <deuling@de.ibm.com>
2217
2218 Add script to build and test GDB using enable-targets=all.
2219
2220 * gdb_buildall.sh: New file.
2221
94a0e877
MG
22222008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
2223
2224 * NEWS (New native configurations): Xtensa GNU/Linux.
2225 (New targets): Xtensa GNU/Linux.
2226 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
2227 xtensa-linux-tdep.o
2228 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
2229 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
2230 * configure.tgt (xtensa*-*-linux*): New entry.
2231 * xtensa-config.c (xtensa_tdep): New variable.
2232 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
2233 (rmap): Change format based on new macro XTREG.
2234 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
2235 * xtensa-linux-nat.c: New.
2236 * xtensa-linux-tdep.c: New.
2237 * xtensa-xtregs.c: New.
2238 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
2239 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
2240 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
2241 (xtensa_register_t): New field coprocessor.
2242 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
2243 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
2244 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
2245 Update to handle privileged registers.
2246 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
2247 (xtensa_push_dummy_call): Set windowstart register correctly.
2248 (call0_analyze_prologue): Initialize xtensa_default_isa.
2249 (xtensa_derive_tdep): New.
2250 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
2251 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
2252 Call xtensa_derive_tdep().
2253 * config/xtensa/linux.mh: New.
2254 * regformats/reg-xtensa.dat: New.
2255
b7ee1b0a 22562008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
f90c07ac
EZ
2257
2258 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
2259 (filenames.h): New include.
2260 * Makefile.in (corelow.o): Add dependency for filenames.h.
2261
8da2a1df
DJ
22622008-02-08 Doug Evans <dje@google.com>
2263
2264 * source.c (find_and_open_source): Always rewrite absolute filenames.
2265
776592bf
DE
22662008-02-07 Doug Evans <dje@google.com>
2267
2268 * breakpoint.c: #include "hashtab.h".
2269 (ambiguous_names_p): New fn.
2270 (update_breakpoint_locations): When restoring bp enable status, don't
2271 compare function names if any functions have same name.
2272 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
2273
d6565258
JB
22742008-02-07 Joel Brobecker <brobecker@adacore.com>
2275
2276 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
2277 instead of just a VEC*. Update use of SV.
2278 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
2279
6d53d0af
JB
22802007-02-07 Joel Brobecker <brobecker@adacore.com>
2281
2282 * NEWS: Put all new commands since gdb-6.7 together.
2283
2ba95b9b
JB
22842007-02-07 Joel Brobecker <brobecker@adacore.com>
2285
2286 * ada-lang.c: #include "vec.h".
2287 (struct string_vector, new_string_vector, string_vector_append):
2288 Delete.
2289 (char_ptr): New typedef.
2290 (DEF_VEC_P (char_ptr)): New VEC type.
2291 (symbol_completion_add): Update profile to take the new VEC type
2292 instead of the old string_vector structure. Update code accordingly.
2293 (ada_make_symbol_completion_list): Use the new VEC type instead of
2294 the old string_vector structure, and update the code accordingly.
2295 * Makefile.in (ada-lang.o): Add dependency on vec.h.
2296
4ae0885a
PM
22972008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
2298
2299 * p-exp.y: Set current_type in missing places.
2300 (leftdiv_is_integer): New static variable.
2301 Typecast right operand of BINOP_DIV to long_double if both operands
2302 are integers.
2303
06b1d59c
MR
23042008-02-06 Maciej W. Rozycki <macro@mips.com>
2305
2306 * remote-mips.c (set_breakpoint): Rename to...
2307 (mips_set_breakpoint): ... this.
2308 (clear_breakpoint): Rename to...
2309 (mips_clear_breakpoint): ... this.
2310 (common_breakpoint): Rename to...
2311 (mips_common_breakpoint): ... this.
2312 (check_lsi_error): Rename to...
2313 (mips_check_lsi_error): ... this.
2314
41d27058
JB
23152007-02-05 Joel Brobecker <brobecker@adacore.com>
2316
2317 * language.h (struct language_defn): Add new field
2318 la_make_symbol_completion_list.
2319 * symtab.c (default_make_symbol_completion_list): Renames
2320 make_symbol_completion_list.
2321 (make_symbol_completion_list): New function.
2322 * symtab.h (default_make_symbol_completion_list): Add declaration.
2323 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
2324 (auto_language, local_language): Likewise.
2325 * objc-lang.c (objc_language_defn): Likewise.
2326 * scm-lang.c (scm_language_defn): Likewise.
2327 * m2-lang.c (m2_language_defn): Likewise.
2328 * f-lang.c (f_language_defn): Likewise.
2329 * jv-lang.c (java_language_defn): Likewise.
2330 * p-lang.c (pascal_language_defn): Likewise.
2331 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
2332 (minimal_language_defn): Likewise.
2333 * ada-lang.c (struct string_vector): New structure.
2334 (new_string_vector, string_vector_append, ada_unqualified_name)
2335 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
2336 (ada_make_symbol_completion_list): New functions.
2337 (ada_language_defn): Set la_make_symbol_completion_list.
2338 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
2339 this function is static.
2340
ee3a2f01
KB
23412008-02-05 Kevin Buettner <kevinb@redhat.com>
2342
2343 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
2344 to account for call site optimizations.
2345
d844e34b
JB
23462008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
2347
2348 * tracepoint.c (read_actions): Handle end-of-text indicator
2349 in action list properly. (Committed by Jim Blandy)
2350
02e4669d
JB
23512008-02-05 Jim Blandy <jimb@red-bean.com>
2352
2353 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
2354 pseudoregister, not an internal error.
85ecb32b 2355 Reported by: Andrzej Zaborowski
02e4669d 2356
c39c8256
VP
23572008-02-04 Vladimir Prus <vladimir@codesourcery.com>
2358
2359 * varobj.c (c_value_of_variable): Use xstrdup.
2360
ae7d22a6
VP
23612008-02-04 Vladimir Prus <vladimir@codesourcery.com>
2362
2363 Update stored rendition of varobj value when format changes.
2364 * varobj.c (varobj_set_display_format): Recomputed
2365 print_value.
2366 (c_value_of_variable): Return print_value.
2367
81fe8080
DE
23682008-02-03 Doug Evans <dje@google.com>
2369
301f0ecf
DE
2370 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
2371 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
2372 * valops.c (value_one): New function.
2373 * value.h (value_one): Declare.
2374
2375 Fix argument promotion for binary arithmetic ops for C.
2376 * valarith.c (unop_result_type): New fn.
2377 (binop_result_type): New fn.
2378 (value_binop): Move result type computation to binop_result_type.
2379 (value_pos, value_neg, value_complement): Move result type
2380 computation to unop_result_type.
2381
81fe8080
DE
2382 PR 2384
2383 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
2384 Return basetype, fieldno if found. All callers updated.
2385 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
2386 objfile.
2387 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
2388 * symfile.h (fill_in_vptr_fieldno): Delete.
2389
41808ebe
DE
23902008-02-02 Doug Evans <dje@google.com>
2391
f8597ac3
DE
2392 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
2393
41808ebe
DE
2394 * typeprint.c (*): Whitespace cleanup.
2395
f964a756
MK
23962008-02-02 Mark Kettenis <kettenis@gnu.org>
2397 Luis Machado <luisgpm@br.ibm.com>
2398 Thiago Jung Bauermann <bauerman@br.ibm.com>
2399
2400 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
2401 don't fit into registerson the stack the way GCC does.
2402
b06ead72
JB
24032008-02-01 Joel Brobecker <brobecker@adacore.com>
2404
2405 * symtab.c (symbol_set_names): Do not add an entry in the demangling
2406 hash table for Ada symbols. Just store the linkage name as is,
2407 and leave the demangled_name as NULL.
2408
2cfa0c8d
JB
24092007-02-01 Joel Brobecker <brobecker@adacore.com>
2410
2411 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
2412 in the global scope.
2413 (new_symbol): Likewise.
2414
98deb0da
VP
24152008-02-01 Vladimir Prus <vladimir@codesourcery.com>
2416
2417 * breakpoint.c (break_command_1): Return void.
2418 (break_command_really): Return void. Rethrow
2419 exceptions instead of returning.
2420 (gdb_breakpoint): Remove the error_message parameter.
2421 Return void. Rename to set_breakpoint.
2422 * gdb.h (gdb_breakpoint): Rename and move to...
2423 * breakpoint.h (set_breakpoint): ...here.
2424 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
2425 event hooks even if exception is thrown. Adjust to
2426 gdb_breakpoint interface changes.
2427
2428
ce0451ad
TJB
24292008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2430
2431 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
2432 float in both first and second word in the doubleword, to support
2433 old and new ABIs.
2434
723a2275
VP
24352008-02-01 Vladimir Prus <vladimir@codesourcery.com>
2436
2437 Properly rethrow exception. This fixes errors
2438 about non-existent functions for -break-insert.
2439 * breakpoint.c (break_command_really): Use throw_exception
2440 for rethrowing. If rethrowing, don't print the exception.
2441
d64a946d
TJB
24422008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2443
2444 * NEWS: Mention Decimal Floating Point support.
2445
02b156f5
JB
24462008-01-31 Joel Brobecker <brobecker@adacore.com>
2447
2448 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
2449 value type to builtin_type_void_func_ptr.
2450
a16b8bcd
UW
24512008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
2452
2453 * s390-tdep.c (is_float_singleton, is_float_like,
2454 alignment_of, s390_return_value): Make checks for
2455 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
2456
f949c649
TJB
24572008-01-31 Luis Machado <luisgpm@br.ibm.com>
2458 Thiago Jung Bauermann <bauerman@br.ibm.com>
2459
2460 * infcmd.c (default_print_registers_info): Also print hex
2461 raw contents for TYPE_CODE_DECFLOAT registers.
2462 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
2463 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
2464 (rs6000_register_name): Add support for DFP pseudo-registers.
2465 (rs6000_pseudo_register_type): Likewise.
2466 rs6000_pseudo_register_reggroup_p): Likewise.
2467 (ppc_pseudo_register_read): New function.
2468 (ppc_pseudo_register_write): Likewise.
2469 (rs6000_pseudo_register_read): Likewise.
2470 (rs6000_pseudo_register_write): Likewise.
2471 (e500_pseudo_register_read): Move checks to
2472 rs6000_pseudo_register_read.
2473 (e500_pseudo_register_write): Move checks to
2474 rs6000_pseudo_register_write.
2475 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
2476 rs6000_pseudo_register_read and rs6000_pseudo_register_write
2477 in gdbarch if SPE or DFP is available. Adjust gdbarch's
2478 num_pseudo_regs to account for DFP pseudo regs.
2479
5a9e69ba
TJB
24802008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2481
2482 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
2483 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
2484 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
2485 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
2486 e500_pseudo_register_read, e500_pseudo_register_write): Use
2487 IS_SPE_PSEUDOREG macro.
2488 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
2489 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
2490 Remove initialization of tdep->ppc_ev31_regnum.
2491
4e885b20
JB
24922008-01-08 Paul Hilfinger <hilfinger@adacore.com>
2493
2494 * printcmd.c (print_formatted): Handle references as for unformatted
2495 prints.
2496
80f064a2
JB
24972008-01-30 Joel Brobecker <brobecker@adacore.com>
2498
2499 * eval.c (evaluate_subexp_standard): Add handling of user
2500 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
2501
9b3442ee
PM
25022008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
2503
2504 * eval.c (evaluate_subexp_standard): Support
2505 BINOP_INTDIV opcode.
2506
d118ef87
PH
25072008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
2508
2509 * valarith.c (value_binop): Add floating-point BINOP_MIN and
2510 BINOP_MAX cases.
2511 For BINOP_EXP, use length and signedness of left operand only for
2512 result, as for shifts.
2513 For integral operands to BINOP_EXP, use new integer_pow and
2514 uinteger_pow functions so as to get full range of results.
2515 (integer_pow): New function.
2516 (uinteger_pow): New function.
2517
d56d46f5
VP
25182008-01-30 Vladimir Prus <vladimir@codesourcery.com>
2519
2520 Use vector for varobj_list_children interface.
2521 * gdb/varobj.c (varobj_list_children): Return vector
2522 of varobjs.
2523 * gdb/varobj.h (varobj_list_children): Adjust
2524 prototype.
2525 (varobj_p): Declare. Declare vector thereof.
2526 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
2527 for varobj_list_children change.
2528 * Makefile.in (varobj_h): Update dependencies.
2529
1300a2f4
TJB
25302008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
2531
2532 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
2533 TYPE_CODE_DECFLOAT arguments.
2534 (ppc64_sysv_abi_push_dummy_call) Likewise.
2535 (get_decimal_float_return_value): New function.
2536 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
2537 values by calling get_decimal_float_return_value.
2538 (ppc64_sysv_abi_return_value): Likewise.
2539
95ef687d
NR
25402008-01-30 Nick Roberts <nickrob@snap.net.nz>
2541
2542 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
2543 for preprocessor macro information. Formatting changes.
2544
2d717e4f
DJ
25452008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
2546
2547 * remote.c (struct remote_state): Add cached_wait_status.
2548 (remote_exec_file): New variable.
2549 (PACKET_vAttach, PACKET_vRun): New constants.
2550 (extended_remote_restart): Do not query for status.
2551 (struct start_remote_args): New.
2552 (remote_start_remote): Take it as a second argument. Check
2553 whether the target is running. Issue an error for non-running
2554 non-extended targets. Cache the wait status. Set inferior_ptid
2555 here.
2556 (remote_open_1): Prompt to disconnect non-running targets. Make
2557 sure the target is marked running. Do not set inferior_ptid here.
2558 Update call to remote_start_remote. Do not call remote_check_symbols
2559 if the target is not running.
2560 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
2561 argument. Handle a non-running target.
2562 (remote_detach): Use it.
2563 (extended_remote_detach): New.
2564 (remote_disconnect): Fix typo. Use remoute_mourn_1.
2565 (extended_remote_attach_1, extended_remote_attach)
2566 (extended_async_remote_attach): New.
2567 (remote_vcont_resume): Remove unused variable.
2568 (remote_wait, remote_async_wait): Use any cached wait status.
2569 (putpkt_binary, getpkt): Clear any cached wait status.
2570 (extended_remoute_mourn_1): New.
2571 (extended_remote_mourn): Use it.
2572 (extended_async_remote_mourn, extended_remote_run): New.
2573 (extended_remote_create_inferior_1): New.
2574 (extended_remote_create_inferior): Use it.
2575 (extended_remote_async_create_inferior): Likewise.
2576 (remote_xfer_partial): Skip for non-executing targets.
2577 (init_extended_remote_ops): Set to_detach and to_attach.
2578 (init_extended_async_remote_ops): Likewise. Use
2579 extended_async_remote_mourn.
2580 (_initialize_remote): Register vAttach, vRun, and
2581 set remote exec-file.
2582 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
2583
e85a822c
DJ
25842008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
2585
2586 * Makefile.in (symfile.o): Update.
2587 * NEWS: Mention exec tracing support.
2588 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
2589 exec events.
2590 * infcmd.c (kill_if_already_running, detach_command)
2591 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
2592 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
2593 (follow_exec): Do not check may_follow_exec. Do not mourn and push
2594 targets. Apply the sysroot path to the loaded executable. Use
2595 no_shared_libraries.
2596 * linux-nat.c (linux_child_follow_fork): Print fork following
2597 messages if verbose.
2598 (kill_wait_callback): Kill again before waiting a second time.
2599 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
2600 no_shared_libraries.
2601
9db13498
JB
26022008-01-29 Joel Brobecker <brobecker@adacore.com>
2603
2604 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
2605
b4d5ed91
JB
26062008-01-29 Joel Brobecker <brobecker@adacore.com>
2607
2608 * nto-tdep.h: Remove #include "defs.h".
2609 * nto-tdep.c: Add #include "defs.h".
2610 * Makefile.in (nto_tdep_h): Update dependencies.
2611 (nto-tdep.o): Likewise.
2612
107313f7 26132008-01-29 Joel Brobecker <brobecker@adacore.com>
ae123ec6
JB
2614
2615 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
2616 and use it.
2617 (proceed, start_remote): Update call to wait_for_inferior.
2618 * inferior.h (wait_for_inferior): Update declaration.
2619 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
2620 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
2621 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
2622 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
2623
3f4178d6
DJ
26242008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
2625
2626 * varobj (adjust_value_for_child_access): Added checking for
2627 returned value from gdb_value_ind.
2628 (c_describe_child): Likewise.
2629 (cplus_describe_child): Fixed a typo.
2630
5eeba8d4
JB
26312008-01-29 Jim Blandy <jimb@red-bean.com>
2632
2633 * MAINTAINERS: Update my info.
2634
a5606eee
VP
26352008-01-29 Vladimir Prus <vladimir@codesourcery.com>
2636
2637 Use multiple locations for hardware watchpoints.
2638 This eliminates the need to traverse value chain, doing
2639 various checks, in three different places.
2640
2641 * breakpoint.h (struct bp_location): New fields
2642 lengths and watchpoint_type.
2643 (struct breakpoint): Remove the val_chain field.
2644 * breakpoint.c (is_hardware_watchpoint): New.
2645 (free_valchain): Remove.
2646 (update_watchpoint): New.
2647 (insert_bp_location): For hardware watchpoint, just
2648 directly insert it.
2649 (insert_breakpoints): Call update_watchpoint_locations
2650 on all watchpoints. If we have failed to insert
2651 any location of a hardware watchpoint, remove all inserted
2652 locations.
2653 (remove_breakpoint): For hardware watchpoints, directly
2654 remove location.
2655 (watchpoints_triggered): Iterate over locations.
2656 (bpstat_stop_status): Use only first location of
2657 a resource watchpoint.
2658 (delete_breakpoint): Don't call free_valchain.
2659 (print_one_breakpoint): Don't print all
2660 locations for watchpoints.
2661 (breakpoint_re_set_one): Use update_watchpoint for
2662 watchpoints.
2663
0b3de036
VP
26642008-01-29 Vladimir Prus <vladimir@codesourcery.com>
2665
2666 Don't reset watchpoint block on solib load.
2667
2668 * breakpoint.c (insert_bp_location): For watchpoints,
2669 recompute condition.
2670 (breakpoint_re_set_one): Instead of recomputing value
2671 and condition for watchpoints, just reset value and
2672 let insert_breakpoints/insert_bp_location recompute it.
2673 Don't do anything about disabled watchpoint.
2674
c3940723
PM
26752008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
2676
2677 * valarith.c (value_binop): Handle unsigned integer
2678 division by zero.
2679
83845630
KB
26802008-01-28 Kevin Buettner <kevinb@redhat.com>
2681
2682 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
2683 instruction pattern that appears frequently in position
2684 independent code. Fix bug in code which looks for "fmov" and
2685 backtracks if no "fmov" is found.
2686
9ce5d3bb
DE
26872008-01-28 Doug Evans <dje@google.com>
2688
2689 * dbxread.c (read_dbx_symtab): Fix indentation.
131fe1bb
DE
2690 Reformat comments to 80 columns.
2691 Move local var def closer to only use.
9ce5d3bb 2692
c78d192c
DJ
26932008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
2694
2695 * fork-child.c (SHELL_FILE): Remove #ifndef.
2696 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
2697
e11481da
PM
26982008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
2699
2700 * i386-tdep.c (i386_skip_noop): New function.
2701 (i386_analyze_prologue): Call i386_skip_noop function.
2702
244e85c8
MS
27032008-01-24 Michael Snyder <msnyder@specifix.com>
2704
2705 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
2706 * win32-nat.c (win32_xfer_partial): Ditto.
2707 * target.c (default_xfer_partial): Minor whitespace adjustment.
2708
dd6be234
PA
27092008-01-24 Pedro Alves <pedro@codesourcery.com>
2710
2711 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
2712 strip bit 1 even if pc doesn't point to thumb code.
2713
9fa2223d
DJ
27142008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
2715
2716 * remote.c (remote_wait): Handle SIGINT between packets.
2717 (remote_async_wait): Likewise.
2718
93815fbf
VP
27192008-01-23 Vladimir Prus <vladimir@codesourcery.com>
2720 Chris Demetriou <cgd@google.com>
2721
2722 * thread.c (add_thread_silent): Renamed
2723 from add_thread.
2724 (print_thread_events): New variable definition.
2725 (show_print_thread_events): New function.
2726 (_initialize_thread): Add "set print thread-events" and
2727 "show print thread-events" commands.
2728 (add_thread): Announce new thread.
2729 * gdbthread.h (add_thread_silent): Declare.
2730 (print_thread_events): New variable declaration.
2731 * inf-ttrace.c (inf_ttrace_wait): Don't
2732 inform about new thread, as add_thread is always
2733 called too, and will take care of that.
2734 * infrun.c (handle_inferior_event): Likewise.
2735 * procfs.c (procfs_wait): Likewise.
2736 * remote.c (remote_currthread): Likewise.
2737 * sol-thread.c (sol_thread_wait): Likewise.
2738 * win32-nat.c (get_win32_debug_event): Likewise.
2739 * linux-thread-db.c (attach_thread): Likewise.
2740 Remove the verbose parameter.
2741 (check_event): Make detach_thread be verbose
2742 only if print_thread_events is set.
2743 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
2744 about new thread. This is called only from
2745 linux-thread-db.c:attach_thread, which will take care.
2746 Remove the verbose parameter.
2747 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
2748
b4d7c9a6
NR
27492008-01-23 Nick Roberts <nickrob@snap.net.nz>
2750
2751 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
2752
60c46647
VP
27532008-01-22 Vladimir Prus <vladimir@codesourcery.com>
2754
2755 * breakpoint.c (break_command_really): New parameter
2756 ignore_count.
2757 (break_command_1): Pass 0 as
2758 ignore_count to break_command_really.
2759 (gdb_breakpoint): Pass ignore_count to
2760 break_command_really.
2761
e84605cd
KB
27622008-01-21 Kevin Buettner <kevinb@redhat.com>
2763
2764 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
2765 sigcontext struct via pointer.
2766 (struct sigframe comment): Update to show new field `psc'.
2767
9d9cd7ac
VP
27682008-01-21 Vladimir Prus <vladimir@codesourcery.com>
2769
2770 * infrun.c (handle_inferior_event): If
2771 we failed to remove breakpoints, error,
2772 don't try to increment PC by hand.
2773
af5ca30d
NH
27742008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
2775
2776 Add NetBSD/hppa target and host support.
2777
2778 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
2779 (hppabsd_gregset): Move to ...
2780 (hppabsd_regset_from_core_section): Rename
2781 hppaobsd_regset_from_core_section and move to ...
2782 (hppabsd_find_global_pointer): Update comment.
2783 (hppabsd_init_abi): Make global. Do not register
2784 hppabsd_regset_from_core_section.
2785 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
2786 move to ...
2787 (_initialize_hppabsd_tdep): Move to ...
2788 * hppaobsd-tdep.c: ... here. New file.
2789 * hppnbsd-tdep.c: New file.
2790 * hppnbsd-nat.c: New file.
2791 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
2792 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2793 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
2794 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
2795 * configure.host (hppa*-*-netbsd*): New entry.
2796 * configure.tgt (hppa*-*-netbsd*): New entry.
2797 (hppa*-*-openbsd*): Update.
2798 * NEWS (New native configuration): Mention NetBSD/hppa.
2799 (New targets): Mention NetBSD/hppa.
2800
32c9a795
MD
28012008-01-18 Markus Deuling <deuling@de.ibm.com>
2802
2803 * gdbarch.sh (function_list): Add new property bits_big_endian to
2804 gdbarch structure.
2805 * gdbarch.{c,h}: Regenerate.
2806
2807 * value.c (struct value): Replace BITS_BIG_ENDIAN by
2808 gdbarch_bits_big_endian (comment).
2809 (unpack_field_as_long, modify_field): Likewise.
2810 * value.h: Likewise (comment).
2811 * valops.c (value_slice): Likewise.
2812 * valarith.c (value_subscript, value_bit_index): Likewise.
2813 * gdbtypes.h (field): Likewise (comment).
2814 * eval.c (evaluate_subexp_standard): Likewise.
2815 * dwarf2read.c (dwarf2_add_field): Likewise.
2816 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
2817 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
2818
2819 * defs.h (BITS_BIG_ENDIAN): Remove.
2820
1e5e79d0
MD
28212008-01-18 Markus Deuling <deuling@de.ibm.com>
2822
2823 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
2824 function calls.
2825 * m2-exp.y (yylex): Likewise.
2826 * objc-exp.y (yylex): Likewise.
2827
2828 * defs.h (DEPRECATED_STREQN): Remove.
2829
fabda5a7
L
28302008-01-17 H.J. Lu <hjl.tools@gmail.com>
2831
2832 * MAINTAINERS: Update my email address.
2833
92726479
JB
28342008-01-17 Jim Blandy <jimb@codesourcery.com>
2835
2836 * README: Mention gdbserver/README.
2837
ef80d18e
PM
28382008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
2839
2840 * valarith.c (value_binop): Handle BINOP_INTDIV
2841 for unsigned and signed integers.
2842
1de90795
UW
28432008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
2844
2845 * s390-tdep.c (s390_gdbarch_init): Set default long double
2846 type to 128-bit IEEE quad.
2847
c70bd6f3
JB
28482008-01-17 Joel Brobecker <brobecker@adacore.com>
2849
2850 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
2851
ba759613
MK
28522008-01-16 Mark Kettenis <kettenis@gnu.org>
2853
77d49ac6
MK
2854 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
2855
ba759613
MK
2856 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
2857 * value.c: All callers changed.
2858
7ecb6532
MD
28592008-01-16 Markus Deuling <deuling@de.ibm.com>
2860
2861 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
2862 DEPRECATED_STREQ by its expression.
2863 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
2864 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
2865 (scan_xcoff_symtab): Likewise.
2866 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
2867 * f-lang.c (find_common_for_function): Likewise.
2868 * objc-exp.y (parse_number): Likewise.
2869
2870 * defs.h (DEPRECATED_STREQ): Remove.
2871
d15cf01c
MD
28722008-01-16 Markus Deuling <deuling@de.ibm.com>
2873
2874 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
2875 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
2876 get_frame_arch to get at the current_architecture. Update AM33_MODE
2877 call.
2878 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
2879 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
2880 architecture.
2881 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
2882
f8028488
MD
28832008-01-16 Markus Deuling <deuling@de.ibm.com>
2884
2885 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
2886 parameter.
2887 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
2888
2889 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
2890 current_gdbarch by gdbarch. Update caller.
2891
2892 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
2893 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
2894 the current architecture. Update calls of
2895 amd64_native_gregset_supplies_p.
2896 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
2897 (amd64bsd_store_inferior_registers): Likewise.
2898
e101270f
MD
28992008-01-16 Markus Deuling <deuling@de.ibm.com>
2900
2901 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
2902 Replace current_gdbarch by gdbarch. Update caller.
2903
063e58ba
MD
29042008-01-16 Markus Deuling <deuling@de.ibm.com>
2905
2906 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
2907 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
2908 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
2909 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
2910 (stabsect_build_psymtabs): Fix indentation.
2911
662fb31b
MS
29122008-01-15 Michael Snyder <msnyder@specifix.com>
2913
2914 * corelow.c (core_xfer_partial): Comment, cut/paste error.
2915
c1766e7d
PM
29162008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
2917
2918 * win32-nat.c (win32_create_inferior): Restore code calling
2919 CloseHandle on ProcessInformation structure.
2920
5ed10e6e
NH
29212008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
2922
2923 * configure.ac: Check for void * as 3 argument of ptrace.
2924 * configure: regenerate.
2925
be8626e0
MD
29262008-01-11 Markus Deuling <deuling@de.ibm.com>
2927
2928 * alpha-tdep.c (alpha_heuristic_proc_start)
2929 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
2930 current_gdbarch by gdbarch.
2931
2932 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
2933 current architecture by frame_info. Update alpha_heuristic_proc_start
2934 call.
2935
2936 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
2937 get_frame_arch to get at the current architecture by frame_info. Update
2938 alpha_sigtramp_register_address call.
2939
2940 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
2941 current_gdbarch by gdbarch. Update caller.
2942 (convert_to_extended, convert_from_extended): Add endianess parameter
2943 for comparison. Update caller.
2944 (arm_extract_return_value, arm_store_return_value): Use
2945 get_regcache_arch to get at the current architecture.
2946
2947 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
2948 current_gdbarch by gdbarch. Update caller.
2949 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
2950 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
2951
2952 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
2953 gdbarch as parameter. Update caller.
2954 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
2955 current_gdbarch by gdbarch. Update caller.
2956
2957 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
2958 update caller. Replace current_gdbarch by gdbarch.
2959
2960 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
2961 the current architecture. Replace current_gdbarch by gdbarch.
2962 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2963 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
2964 expression. Add gdbarch as parameter and replace current_gdbarch with
2965 it. Update caller.
2966 (M6811_TDEP): Remove.
2967 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
2968 architecture.
2969 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
2970 current_gdbarch by gdbarch. Update caller.
2971
2972 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
2973 update caller.
2974 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
2975 by gdbarch.
2976
2977 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
2978 caller. Relace current_gdbarch by gdbarch.
2979 (altivec_register_p, spe_register_p): Likewise.
2980 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
2981 parameter.
2982 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
2983 altivec_register_p and spe_register_p.
2984
2985 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
2986 caller. Replace current_gdbarch by gdbarch.
2987 (score_analyze_prologue): use get_frame_arch to get at the current
2988 architecture.
2989
2990 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
2991 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
2992 current_gdbarch by gdbarch. Update caller.
2993 (sparc_frame_cache): Use get_frame_arch to get at the current
2994 architecture.
2995 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
2996 sparc_analyze_prologue.
2997
2998 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
2999 parameter.
3000
ed49a04f
MD
30012008-01-11 Markus Deuling <deuling@de.ibm.com>
3002
3003 * exec.c: #include "arch-utils.h"
3004 (print_section_info): Use gdbarch_from_bfd to get at the
3005 current architecture. Replace current_gdbarch. Fix indention. Replace
3006 deprecated_print_address_numeric by paddress.
3007 * Makefile.in (exec.o) Add dependency to arch-utils.h.
3008
3009 * valprint.c (val_print_string): Replace
3010 deprecated_print_address_numeric.
3011 * tracepoint.c (trace_mention, scope_info): Likewise.
3012 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
3013 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
3014 (maintenance_check_symtabs): Likewise.
3015 * symfile.c (list_overlays_command): Likewise.
3016 * stack.c (frame_info, print_block_frame_labels): Likewise.
3017 * printcmd.c (print_address, print_address_demangle)
3018 (address_info): Likewise.
3019 * corefile.c (memory_error): Likewise.
3020 * infcmd.c (jump_command): Likewise.
3021 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
3022 (mention, delete_breakpoint): Likewise.
3023 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
3024 * dwarf2read.c (dump_die): Likewise.
3025 * ada-valprint.c (ada_val_print_1): Likewise.
3026 * f-valprint.c (f_val_print): Likewise.
3027 * linux-fork.c (info_forks_command): Likewise.
3028 * m32r-com.c (m32r_load_section, m32r_load)
3029 (m32r_upload_command): Likewise.
3030
3031 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
3032
6093d2eb
MD
30332008-01-11 Markus Deuling <deuling@de.ibm.com>
3034
3035 * gdbarch.sh (skip_prologue): Add gdbarch
3036 as parameter.
3037 * gdbarch.{c,h}: Regenerate.
3038
3039 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
3040 * amd64-tdep.c (amd64_skip_prologue): Likewise.
3041 * avr-tdep.c (avr_skip_prologue): Likewise.
3042 * cris-tdep.c (cris_skip_prologue): Likewise.
3043 * frv-tdep.c (frv_skip_prologue): Likewise.
3044 * h8300-tdep.c (h8300_skip_prologue): Likewise.
3045 * hppa-tdep.c (hppa_skip_prologue): Likewise.
3046 * i386-tdep.c (i386_skip_prologue): Likewise.
3047 * ia64-tdep.c (ia64_skip_prologue): Likewise.
3048 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
3049 * m32r-tdep.c (m32r_skip_prologue): Likewise.
3050 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
3051 * m68k-tdep.c (m68k_skip_prologue): Likewise.
3052 * m88k-tdep.c (m88k_skip_prologue): Likewise.
3053 * mep-tdep.c (mep_skip_prologue): Likewise.
3054 * mips-tdep.c (mips_skip_prologue): Likewise.
3055 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
3056 * mt-tdep.c (mt_skip_prologue): Likewise.
3057 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
3058 * score-tdep.c (score_skip_prologue): Likewise.
3059 * sh64-tdep.c (sh64_skip_prologue): Likewise.
3060 * sh-tdep.c (sh_skip_prologue): Likewise.
3061 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
3062 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
3063 * spu-tdep.c (spu_skip_prologue): Likewise.
3064 * v850-tdep.c (v850_skip_prologue): Likewise.
3065 * vax-tdep.c (vax_skip_prologue): Likewise.
3066 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
3067 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
3068
3069 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
3070 current_gdbarch by gdbarch.
3071 * m32c-tdep.c (m32c_skip_prologue): Likewise.
3072 * s390-tdep.c (s390_skip_prologue): Likewise.
3073
72f5cf0e
DE
30742008-01-10 Doug Evans <dje@google.com>
3075
3076 * defs.h (struct continuation_arg): Fix typo in comment.
3077 * target.c (target_translate_tls_address): Fix comment spelling error.
3078
689e4e2d
TJB
30792008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
3080
3081 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
3082 (DOUBLEST_SCAN_FORMAT): Likewise.
3083 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
3084 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
3085 * c-exp.y (parse_number): Likewise.
3086 * jv-exp.y (parse_number): Likewise.
3087 * objc-exp.y (parse_number): Likewise.
3088 * p-exp.y (parse_number): Likewise.
3089
ab0d6e0d
JB
30902008-01-09 Joel Brobecker <brobecker@adacore.com>
3091
3092 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
3093 (check_typedef): Likewise.
3094
0aea4bf3
LM
30952008-01-09 Luis Machado <luisgpm@br.ibm.com>
3096
3097 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
3098 seen_double_big_d, treat the new H, D, and DD modifiers as length
3099 modifiers.
3100
137033e9
JB
31012008-01-08 Joel Brobecker <brobecker@adacore.com>
3102
3103 * dwarf2read.c (read_enumeration_type): Add comment.
3104
dda297ec
TJB
31052008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
3106
3107 * config.in: Regenerate.
3108
a93c0eb6
JB
31092008-01-08 Joel Brobecker <brobecker@adacore.com>
3110
3111 * ada-lang.c (ada_convert_actual): Renames convert_actual.
3112 Make non-static.
3113 (ada_convert_actuals): Delete.
3114 * ada-lang.h (ada_convert_actual): Add declaration.
3115 (ada_convert_actuals): Remove declaration.
3116 * infcall.c: #include "ada-lang.h".
3117 (value_arg_coerce): Add new parameter sp. Update function
3118 documetnation. Add handling of Ada function call parameters.
3119 * Makefile.in (infcall.o): Update dependencies.
3120
a84a8a0d
JB
31212008-01-08 Paul Hilfinger <hilfinger@adacore.com>
3122
3123 * ada-lang.c (ensure_lval): Fix value lval kind.
3124 (convert_actual): Add handling for arguments passed by reference.
3125
d7f98cce
DE
31262008-01-08 Doug Evans <dje@google.com>
3127
3128 * dbxread.c (read_dbx_symtab): Fix indentation.
3129
4ef30785
TJB
31302008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
3131
3132 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
3133 (valarith.o): Depend on dfp.h.
3134 (valops.o): Likewise.
3135 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
3136 (set_decnumber_context): New function.
3137 (decimal_check_errors): Likewise.
3138 (decimal_from_number): Likewise.
3139 (decimal_to_number): Likewise.
3140 (decimal_from_string): Use set_decnumber_context and
3141 decimal_check_errors.
3142 (decimal_from_integral): New function.
3143 (decimal_from_floating): Likewise.
3144 (decimal_to_double): Likewise.
3145 (promote_decimal): Likewise.
3146 (decimal_binop): Likewise.
3147 (decimal_is_zero): Likewise.
3148 (decimal_compare): Likewise.
3149 (decimal_convert): Likewise.
3150 * dfp.h (decimal_from_integral): New prototype.
3151 (decimal_from_floating): Likewise.
3152 (decimal_to_double): Likewise.
3153 (decimal_binop): Likewise.
3154 (decimal_is_zero): Likewise.
3155 (decimal_compare): Likewise.
3156 (decimal_convert): Likewise.
3157 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
3158 call to value_from_decfloat.
3159 * valarith.c: Include dfp.h.
3160 (value_args_as_decimal): New function.
3161 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
3162 (value_logical_not): Likewise.
3163 (value_equal): Likewise.
3164 (value_less): Likewise.
3165 (value_pos): Likewise.
3166 (value_neg): Formatting fix.
3167 * valops.c: Include dfp.h.
3168 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
3169 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
3170 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
3171 (value_from_decfloat): Remove expect_type argument.
3172 * value.h (value_from_decfloat): Update prototype.
3173
a7c02bc8
VP
31742008-01-07 Vladimir Prus <vladimir@codesourcery.com>
3175
3176 Ignore change in name of dynamic linker during
3177 execution on Solaris. This also unbreaks pending breakpoints.
3178
3179 * solist.h (struct target_so_ops): New field same.
3180 * solib-svr4.c (svr4_same): New.
3181 (_initialize_svr4_solib): Register svr4_same.
3182 * solib.c (update_solib_list): Use ops->same, if available.
3183
610dd7f9
CF
31842008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
3185
3186 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
3187 when using MS-DOS paths.
3188
7a404eba
PA
31892008-01-05 Pedro Alves <pedro@codesourcery.com>
3190
3191 * NEWS: Mention --pid and --core command line behaviour changes.
3192
a4d9b460
PA
31932008-01-05 Pedro Alves <pedro@codesourcery.com>
3194
3195 * main.c (captured_main): Remove 'count' varible and the
3196 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
3197 --pid options were issued simultaneously. If an explicit pid
3198 option was passed, don't fallback to core file. Detect extra
3199 arguments better in the presence of explicit pid or core
3200 arguments.
3201
0c281816
JB
32022008-01-05 Joel Brobecker <brobecker@adacore.com>
3203
3204 * ada-lang.c (ada_which_variant_applies): Correctly compute
3205 the value of the discriminant when the variant record is packed.
3206
babe1480
JB
32072008-01-04 Joel Brobecker <brobecker@adacore.com>
3208
3209 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
3210 that are used to differentiate homonyms.
3211
727e3d2e
JB
32122008-01-04 Jerome Guitton <guitton@adacore.com>
3213
3214 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
3215 when the type is an anonymous pointer type.
3216 (ada_check_typedef): Avoid a seg fault when the type is null.
3217 * ada-typeprint.c (print_array_type): Add support for pointer
3218 to packed arrays.
3219
bb28a9dc
JB
32202008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
3221
3222 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
3223
6799def4
JB
32242008-01-04 Joel Brobecker <brobecker@adacore.com>
3225
3226 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
3227 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
3228
d3353bbd
JB
32292008-01-04 Joel Brobecker <brobecker@adacore.com>
3230
3231 * ada-exp.y (chop_separator): New function.
3232 (write_selectors): Rewrite to re-use chop_separator.
3233 (ada_nget_field_index, get_symbol_field_type): New functions.
3234 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
3235 expressions.
3236
82cf6c60
TJB
32372008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3238
3239 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
3240 of SYMBOL_VALUE when working with function symbols.
3241
b3dbf008
JB
32422008-01-03 Joel Brobecker <brobecker@adacore.com>
3243
3244 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
3245 expressions. These expressions do not need to be rewriten.
3246
02eb380e
JB
32472008-01-03 Joel Brobecker <brobecker@adacore.com>
3248
3249 * dwarf2read.c (read_enumeration_type): Flag type as stub if
3250 the given die is a declaration.
3251
abb68b3e
JB
32522008-01-03 Joel Brobecker <brobecker@adacore.com>
3253
3254 * ada-lang.c (ada_array_bound_from_type): Make non-static.
3255 Handle properly the case when the index type is an enumerated type.
3256 Do not return the subtype of the bounds type, just return the
3257 bounds type directly - this is not needed and is more consistent
3258 with what we do for arrays when no XA parallel type exists.
3259
f192137b
JB
32602008-01-03 Joel Brobecker <brobecker@adacore.com>
3261
3262 * ada-lang.c (static_unwrap_type): Add forward declaration.
3263 (template_to_static_fixed_type): Fields of dynamic types sometimes
3264 also need to be unwrapped. Take this into account.
3265 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
3266 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
3267 * ada-typeprint.c (ada_print_type): Get the typename from
3268 the original type, not the base type.
3269
1ed6ede0
JB
32702008-01-03 Jerome Guitton <guitton@adacore.com>
3271
3272 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
3273 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
3274 Update calls to ada_to_fixed_type.
3275 (ada_template_to_fixed_record_type_1): Ditto, but without looking
3276 for the tag.
3277 (ada_to_fixed_type): Add check_tag parameter; do not look for
3278 tag if null. When looking for a tag, use a fixed record type.
3279 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
3280 * ada-valprint.c (printable_val_type, ada_value_print): Update
3281 calls to ada_to_fixed_type.
3282
542a88d0
LM
32832008-01-03 Luis Machado <luisgpm@br.ibm.com>
3284
3285 * doublest.c (convert_floatformat_to_doublest): Call
3286 floatformat_to_doublest instead of floatformat_to_double and use
3287 DOUBLEST variables.
3288 (convert_doublest_to_floatformat): Call floatformat_from_doublest
3289 instead of floatformat_from_double and use DOUBLEST variables.
3290
dc2bbab2
NH
32912008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
3292
3293 * MAINTAINERS (Write After Approval): Add self.
3294
8b60591b
JB
32952008-01-03 Joel Brobecker <brobecker@adacore.com>
3296
3297 * symfile.c (set_initial_language): Make non-static.
3298 * symfile.h (set_initial_language): Add declaration.
3299 * language.c: #include "symfile.h".
3300 (set_language): Call set_initial_language if the frame language
3301 could not be determined.
3302
ceef53c1
JB
33032008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
3304
3305 * eval.c (evaluate_subexp_for_address): Provide frame address to
3306 locate_var_value only if it will be needed.
3307
ef29ce1a
JK
33082008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3309
3310 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
3311
0a07e705
JB
33122008-01-02 Joel Brobecker <brobecker@adacore.com>
3313
3314 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
3315 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
3316 This is needed to make sure that any other treatment applied
3317 to the resulting value does not fail for spurious reason,
3318 such as trying to take the address of this value.
3319
f58b38bf
JB
33202008-01-02 Joel Brobecker <brobecker@adacore.com>
3321
3322 * ada-lang.c (ada_value_equal): Dereference reference types when
3323 comparing arrays.
3324
9b254dd1
DJ
33252008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
3326
3327 Updated copyright notices for most files.
3328
33605d39
CF
33292008-01-01 Christopher Faylor <me+gdb@cgf.cx>
3330
3331 * win32-nat.c (psapi_module_handle): Remove static.
3332 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
3333 return first module found if base_address is zero. Don't initialize
3334 psapi function pointers here. Convert to cygwin paths when
3335 appropriate.
3336 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
3337 executable name. Use get_module_name when that fails or when
3338 !__CYGWIN__.
3339 (_initialize_psapi): New function. Initialize psapi stuff before it is
3340 needed or issue a warning if it is not found. Move psapi_module_handle
3341 here.
3342
29480c32
JB
33432008-01-01 Joel Brobecker <brobecker@adacore.com>
3344
3345 * ada-lang.c (ada_remove_trailing_digits): New function.
3346 (ada_remove_po_subprogram_suffix): New function.
3347 (ada_decode): Improve. Move the description of the algorithm
3348 directly inside the code, instead of in the function global
3349 description.
3350
969a1360
JB
33512008-01-01 Joel Brobecker <brobecker@adacore.com>
3352
3353 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
3354 and always print the dereferenced value.
3355
b7789565
JB
33562008-01-01 Joel Brobecker <brobecker@adacore.com>
3357
3358 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
3359 of the case where the first argument is a reference.
3360 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
3361
73fb9985
JB
33622008-01-01 Joel Brobecker <brobecker@adacore.com>
3363
3364 Implement support for Ada interface types.
3365
3366 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
3367 (ada_is_ignored_field): Ignore fields that are a dispatch table
3368 of a tagged type.
3369
636265b6
JB
33702008-01-01 Joel Brobecker <brobecker@adacore.com>
3371
3372 * top.c (print_gdb_version): Update copyright year.
3373
9d200a2e 33742008-01-01 Joel Brobecker <brobecker@adacore.com>
b7589f7d 3375
9d200a2e
JB
3376 * ChangeLog-2007: New ChangeLog rotation.
3377 * ChangeLog: Reset for 2008.
3378 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
3379 ChangeLog-2007.
b7589f7d 3380
9d200a2e 3381For older changes see ChangeLog-2007.
c906108c
SS
3382\f
3383Local Variables:
3384mode: change-log
3385left-margin: 8
3386fill-column: 74
3387version-control: never
57da7796 3388coding: utf-8
c906108c 3389End:
This page took 1.20006 seconds and 4 git commands to generate.