daily update
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
de051565
MK
12008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
2
3 * mi/mi-cmd-var.c: Include "mi-getopt.h".
4 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
5 (mi_cmd_var_set_format): Use new mi_parse_format.
6 (mi_cmd_var_evaluate_expression): Support for -f option to specify
7 format.
8 * Makefile.in (mi-cmd-var.o): Update dependencies.
9
10 * varobj.h (varobj_get_formatted_value): Declare.
11 * varobj.c (my_value_of_variable): Added format parameter.
12 (cplus_value_of_variable): Likewise.
13 (java_value_of_variable): Likewise.
14 (c_value_of_variable): Likewise. Evaluate expression based
15 on format parameter.
16 (struct language_specific): Add format parameter to function member
17 *value_of_variable.
18 (varobj_get_formatted_value): New.
19 (varobj_get_value): Added format parameter to method call.
20
56953f80
JB
212008-04-08 Joel Brobecker <brobecker@adacore.com>
22
23 * stabsread.c (cleanup_undefined_types_noname): Manually set the
24 instance flags of the undefined type before calling replace_type.
25
e4e33b9e
VP
262008-04-08 Vladimir Prus <vladimir@codesourcery.com>
27
28 * target.h (enum strata): Remove the download_stratum.
29
92b5c263
DE
302008-04-07 Doug Evans <dje@google.com>
31
32 * buildsym.h (last_source_file): Add dwarf info to comment.
33 (last_source_start_addr): Ditto.
34
effa26a9
PA
352008-04-07 Pedro Alves <pedro@codesourcery.com>
36
37 * alphanbsd-tdep.c: Include "target.h".
38 * mn10300-tdep.c: Include "target.h".
39 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
40
2b2d9e11
VP
412008-04-06 Vladimir Prus <vladimir@codesourcery.com>
42
43 Fix breakpoint condition that use member variables.
44 * valops.c (check_field): Remove.
45 (check_field_in): Rename to check_field.
46 (value_of_this): Use la_name_of_this.
47 * value.h (check_field): Adjust prototype.
48
49 * language.h (la_value_of_this): Rename to la_name_of_this.
50 * language.c (unknown_language_defn): Specify "this" for
51 name_of_this.
52 (auto_language_defn): Likewise.
53 (local_language_defn): Likewise.
54 * ada-lang.c (ada_language_defn): Adjust comment.
55 * c-lang.c (c_language_defn): Adjust comment.
56 (cplus_language_defn): Specify "this" for name_of_this.
57 (asm_language_defn): Adjust comment.
58 (minimal_language_defn): Adjust comment.
59 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
60 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
61 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
62 * objc-lang.c (objc_language_defn): Specify "self" for
63 name_of_this.
64 * p-lang.c (pascal_language_defn): Specify "this" for
65 name_of_this.
66 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
67
68 * symtab.c (lookup_symbol_aux): Lookup "this" in the
69 proper scope, and check for field in type of "this", without
70 trying to create a value.
71
a13e061a
PA
722008-04-04 Pedro Alves <pedro@codesourcery.com>
73
74 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
75 (mi_error_message): Delete declaration.
76 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
77 returning MI_CMD_ERROR.
78 * mi/mi-main.c (mi_error_message): Delete.
79 (mi_cmd_exec_interrupt):
80 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
81 (mi_cmd_thread_info): Call error instead of returning
82 MI_CMD_ERROR.
83 (mi_cmd_data_list_register_values): Call error instead of
84 returning MI_CMD_ERROR. Adapt to new get_register interface.
85 (get_register): Change return typo to void. Call error instead of
86 returning MI_CMD_ERROR.
87 (mi_cmd_data_write_register_values): Call error instead of
88 returning MI_CMD_ERROR.
89 (mi_cmd_list_features): Return MI_CMD_DONE.
90 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
91 (mi_execute_command): Always print exceptions with -error.
92
aad4b048
JB
932008-04-04 Joel Brobecker <brobecker@adacore.com>
94
95 * NEWS: Mention new commands set/show multiple-symbols.
96
717d2f5a
JB
972008-04-03 Joel Brobecker <brobecker@adacore.com>
98
99 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
100 (multiple_symbols_cancel): New constants.
101 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
102 (multiple_symbols_select_mode): New function.
103 (_initialize_symtab): Add new set/show multiple-symbols commands.
104 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
105 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
106 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
107 setting.
108 * linespec.c (decode_line_2): Likewise.
109
f73634e5
DE
1102008-04-03 Doug Evans <dje@sebabeach.org>
111
112 * symtab.h (enum free_code): Delete free_contents, unused.
113 * symmisc.c (free_symtab_block): Delete.
114 (free_symtab, case free_code): Delete.
115
6af87b03
AR
1162008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
117
118 * valops.c (value_cast_structs): New function. Cast related
119 STRUCT types up/down and return cast value. The body of this
120 function comes mostly from value_cast_pointers.
121 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
122 to value_cast_structs. Now value_cast_pointers needs only create
123 appropriate reference after using value_cast_structs for actual
124 casting.
125 (value_cast): Handle references.
126
61ad90e1
MK
1272008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
128
129 * MAINTAINERS: Added myself to section Write After Approval.
130
b7d038ae
DJ
1312008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
132
133 * ia64-tdep.c (examine_prologue): Correct array access.
134
1352008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
c836824f
AR
136
137 * cp-support.c (first_component_command): Return if no arguments.
138
df3ac606
CD
1392008-03-28 Carlos O'Donell <carlos@codesourcery.com>
140
141 * ser-mingw.c (ser_windows_open): Open requested name.
142
ca933485
AR
1432008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
144
145 * MAINTAINERS: Added myself.
146
5f667f2d
PA
1472008-03-28 Pedro Alves <pedro@codesourcery.com>
148
149 * target.c (find_default_run_target): Allow a NULL `do_mesg'
150 parameter. If it is NULL, don't call error.
151 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
152 `do_mesg' parameter to find_default_run_target. If no target was
153 found, return 0.
154
e741f4d4
DJ
1552008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
156
157 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
158 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
159 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
160 Delete.
161 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
162
f66d8205 1632008-03-27 Joel Brobecker <brobecker@adacore.com>
164
165 GDB 6.8 released.
166
221c031f
UW
1672008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
168
169 * features/Makefile (%.dat): Set xmltarget to the base filename
170 of the XML source, without subdirectory.
171 * regformats/rs6000/powerpc-32.dat: Regenerate.
172 * regformats/rs6000/powerpc-64.dat: Regenerate.
173 * regformats/rs6000/powerpc-e500.dat: Regenerate.
174
40c58d95
MD
1752008-03-27 Markus Deuling <deuling@de.ibm.com>
176
177 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
178 objfile arch.
179
bb1ec7d2
NR
1802008-03-27 Nick Roberts <nickrob@snap.net.nz>
181
182 * mi/mi-main.c (enum captured_mi_execute_command_actions):
183 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
184
5e2b427d
UW
1852008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
186
187 * objfiles.h (struct objfile): New GDBARCH member.
188 (get_objfile_arch): Add prototype.
189 * objfiles.c: Include "arch-utils.h".
190 (allocate_objfile): Look up gdbarch associated with bfd.
191 (get_objfile_arch): New function.
192 * Makefile (objfiles.o): Update dependencies.
193
194 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
195 by objfile arch.
196 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
197 by frame arch.
198 (locexpr_describe_location): Replace current_gdbarch by
199 objfile arch.
200 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
201 (dwarf2_add_field): Likewise.
202 (read_tag_pointer_type): Likewise.
203 (read_base_type): Likewise.
204 (new_symbol): Likewise.
205
206 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
207 (decode_base_type, decode_function_type): Likewise.
208 (coff_read_struct_type, coff_read_enum_type): Likewise.
209 (coff_symtab_read): Replace current_gdbarch by objfile arch.
210 (decode_base_type): Likewise.
211 (coff_read_enum_type): Likewise.
212 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
213 (coff_read_enum_type): Likewise.
214
215 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
216 (end_psymtab): Likewise.
217 (process_one_symbol): Likewise.
218
219 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
220 (parse_procedure): Likewise.
221 (parse_partial_symbols): Likewise.
222
223 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
224
225 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
226 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
227 built-in types.
228 (read_range_type): Replace current_gdbarch by objfile arch. Replace
229 static range_index_type by built-in type.
230 (read_one_struct_field): Replace current_gdbarch by objfile arch.
231 (read_enum_type): Likewise.
232
233 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
234 objfile arch.
235
5a413362
VP
2362008-03-26 Vladimir Prus <vladimir@codesourcery.com>
237
238 * varobj.h (varobj_floating_p): Declare.
239 * varobj.c (varobj_floating_p): New.
240 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
241 '@' as the name, update all floating varobjs.
242
a5defcdc
VP
2432008-03-26 Vladimir Prus <vladimir@codesourcery.com>
244
245 * varobj.c (struct varobj_root): Rename use_selected_frame to
246 floating, and clarify the meaning.
247 (varobj_create, varobj_update, new_root_variable): Adjust.
248 (value_of_root): Don't use type_changed as in variable,
249 adjust comment.
250 (c_value_of_root): Adjust.
5a413362 251
403fe197
PA
2522008-03-25 Pedro Alves <pedro@codesourcery.com>
253
254 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
255 gdb's thread list.
256 (linux_nat_wait): Add main lwp to gdb's thread list.
257 * linux-thread-db.c (find_new_threads_callback): Also attach to
258 already listed threads which thread_db didn't know about yet.
259
710151dd
PA
2602008-03-25 Pedro Alves <pedro@codesourcery.com>
261
262 * linux-nat.c (drain_queued_events): Fix comment typo.
263 (linux_nat_attach): In async mode, don't rely on storing a pending
264 status. Instead place the wait status on the pipe.
265 (linux_nat_resume): Remove unreacheable shortcut code in async
266 mode.
267 (stop_wait_callback): In async mode, don't store pending status.
268 Instead, cancel breakpoints or resend the signal appropriatelly.
269 (cancel_breakpoint): New, refactored from
270 cancel_breakpoints_callback.
271 (cancel_breakpoints_callback): Call cancel_breakpoint.
272 (pipe_to_local_event_queue): Remove special token processing.
273 (linux_nat_wait): Issue an internal error if a pending status is
274 found in async mode.
275
807bddf3
DJ
2762008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
277
278 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
279
c5b48eac
VP
2802008-03-24 Nick Roberts <nickrob@snap.net.nz>
281 Vladimir Prus <vladimir@codesourcery.com>
282
283 * varobj.c (struct varobj_root): New component thread_id.
284 (varobj_get_thread_id, check_scope): New functions.
285 (c_value_of_root): Use check_scope. Switch to the
286 proper thread if necessary.
287
288 * varobj.h (varobj_get_thread_id): New extern.
289
290 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
291
12f4afab
DJ
2922008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
293
294 PR gdb/544
295 * top.c: Revert 2008-03-21 changes.
296
6208b47d
VP
2972008-03-23 Vladimir Prus <vladimir@codesourcery.com>
298
299 * thread.c (make_cleanup_restore_current_thread): Make it
300 globally visible.
301 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
302 * varobj.c (varobj_update): Don't save/restore frame.
303 (c_value_of_root): Save/restore thread and frame here,
304 using make_cleanup_restore_current_thread.
305 * Makefile.in: Update dependecies.
306
44a67aa7
VP
3072008-03-23 Vladimir Prus <vladimir@codesourcery.com>
308
309 * varobj.c (struct varobj_root): Clarify
310 comment on the frame field.
311 (varobj_create): Don't set frame if we have no
312 block.
313
b562a0cb
DJ
3142008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
315
316 PR gdb/544
317 Suggested by Jan Kratochvil:
318 * top.c (gdb_rl_operate_and_get_next_completion): Call
319 rl_redisplay_function.
320 (gdb_rl_redisplay): New.
321 (init_main): Set rl_redisplay_function.
322
ed1bd5f5
JB
3232008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
324
325 * aix-thread.c (pdc_read_regs): Fix compiler warning.
326 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
327 (store_regs_kernel_thread): Likewise.
328
b84876c2
PA
3292008-03-21 Pedro Alves <pedro@codesourcery.com>
330
331 Linux native async support.
332
333 * target.h (struct target_ops): Delete to_async_mask_value and add
334 to_async_mask.
335 (target_is_async_p, target_async): Formatting.
336 (target_async_mask_value): Delete.
337 (target_async_mask): Delete function declaration, and add new
338 target macro with the same name.
339
340 * target.c (update_current_target): Replace to_async_mask_value by
341 to_async_mask. Default to_async_mask to return_one.
342 (target_async_mask): Delete.
343 (find_default_can_async_p, find_default_is_async_p): New.
344 (init_dummy_target): register find_default_can_async_p and
345 find_default_is_async_p on the dummy target.
346
347 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
348 (debug_linux_nat_async): New global.
349 (show_debug_linux_nat_async): New function.
350 (linux_nat_async_enabled, linux_nat_async_mask_value)
351 (linux_nat_event_pipe, linux_nat_num_queued_events)
352 (linux_nat_async_events_enabled): New globals.
353 (struct waitpid_result): New struct.
354 (waitpid_queue): New global.
355 (queued_waitpid, push_waitpid, drain_queued_events): New.
356 (my_waitpid): Call queued_waitpid.
357 (linux_child_follow_fork): Disable async events during the call.
358 (blocked_mask): Delete.
359 (sync_sigchld_action, async_sigchld_action): New globals.
360 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
361 async mode, block events during the call.
362 (linux_nat_create_inferior): New.
363 (linux_nat_attach): In sync mode, restore the mask states. In
364 async mode, wake the event loop immediatelly.
365 (detach_callback): Drain all queued events of the lwp we're
366 detaching from.
367 (linux_nat_detach): Block async mode, and drain events of the main
368 process.
369 (linux_nat_resume): If in async mode, mask async events during the
370 call. If short circuiting, force event loop to wake up. If
371 resuming, set target_executing, and register target events in the
372 event loop.
373 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
374 (linux_nat_wait): In async mode, block events during the call.
375 Only enable/disable passing SIGINT to the inferior in sync mode.
376 Get events from local waitpid queue. If no interesting events was
377 found, return to events loop. Reregister target events in the
378 event loop on exit. In sync mode, no need to reblock SIGCHLD.
379 (linux_nat_kill): Disable events on entry.
380 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
381 here. Detach async mode from the event loop if there are no more
382 forks available, otherwise leave it on.
383 (sigchld_handler): Assure this is called only in sync mode.
384 (linux_async_permitted, linux_async_permitted_1): New globals.
385 (set_maintenance_linux_async_permitted)
386 (show_maintenance_linux_async_permitted): New functions.
387 (linux_nat_is_async_p, linux_nat_can_async_p)
388 (linux_nat_async_mask): New.
389 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
390 (get_pending_events, async_sigchld_handler): New.
391 (linux_nat_async_events): New.
392 (async_terminal_is_ours): New global.
393 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
394 (async_client_callback, async_client_context): New.
395 (linux_nat_async_file_handler, linux_nat_async)
396 (linux_nat_disable_async, linux_nat_enable_async): New.
397 (linux_nat_add_target): Register linux_nat_create_inferior,
398 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
399 linux_nat_async_mask, linux_nat_terminal_inferior and
400 linux_nat_terminal_ours.
401 (_initialize_linux_nat): Remove local action variable, and update
402 code that used it to use sync_sigchld_action. Add new
403 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
404 set/show command in the maintenance class. Add new "linux-async"
405 maintenance set/show command. Block SIGCHLD by default. Setup
406 async_sichld_action, and sync_sigchld_action. Install the default
407 async mode.
408 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
409 the cancel signals.
410
411 * linux-thread-db.c (re_check_for_thread_db): New.
412 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
413 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
414 (thread_db_async_mask): New.
415 (init_thread_db_ops): Register thread_db_can_async_p,
416 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
417
418 * remote.c (remote_async_mask_value): New.
419 (remote_return_zero): New.
420 (init_remote_ops): Register remote_return_zero as callbacks of
421 to_can_async_p and to_is_async_p.
422 (remote_can_async_p, remote_is_async_p, remote_async): Update to
423 use remote_async_mask_value.
424 (remote_async_mask): New.
425 (init_remote_async_ops): Remove to_async_mask_value setting and
426 register remote_async_mask as to_async_mask callback in
427 remote_async_ops.
428
429 * Makefile.in (linux-nat.o): Update.
430
17faa917
DJ
4312008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
432
433 * gdbthread.h (add_thread_with_info): New.
434 * linux-thread-db.c: Add some documentation.
435 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
436 (struct private_thread_info): Remove th_valid and ti_valid.
437 Replace ti with tid.
438 (thread_get_info_callback): Do not add TID to the new ptid. Do
439 not cache th or ti.
440 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
441 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
442 new PTID.
443 (attach_thread): Handle an already-existing thread. Use
444 add_thread_with_info. Cache the th and tid.
445 (detach_thread): Verify that private was set. Remove verbose
446 argument and printing. Update caller.
447 (thread_db_detach): Do not adjust inferior_ptid.
448 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
449 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
450 (thread_db_wait): Do not use lwp_from_thread.
451 (thread_db_pid_to_str): Use the cached TID.
452 (thread_db_extra_thread_info): Check that private is set.
453 (same_ptid_callback): Delete.
454 (thread_db_get_thread_local_address): Do not use it or check
455 is_thread. Check that private is set. Assume that the thread
456 handle is already cached.
457 (init_thread_db_ops): Remove to_resume and to_kill.
458 * thread.c (add_thread_with_info): New.
459 (add_thread): Use it.
460 * linux-nat.c (find_thread_from_lwp): Delete.
461 (exit_lwp): Do not use it. Check print_thread_events. Print before
462 deleting the thread.
463 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
464 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
465 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
466 printf_unfiltered for thread exits.
467 * procfs.c (procfs_wait): Likewise.
468
6214f497
DJ
4692008-03-21 Chris Demetriou <cgd@google.com>
470
471 * symtab.c (rbreak_command): Quote symbol name before passing
472 it to break_command.
473
63092375
DJ
4742008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
475
476 * eval.c (evaluate_subexp_for_address): Clarify error message.
477 Use value_must_coerce_to_target.
478 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
479 * valops.c (value_assign): Call value_coerce_to_target when
480 assigning to anything but internalvars. Leave GDB-side arrays
481 as arrays when assigning to internalvars.
482 (value_must_coerce_to_target, value_coerce_to_target): New.
483 (value_coerce_array, value_addr): Call value_coerce_to_target.
484 (value_array): Create the array in GDB's memory instead of
485 the inferior's.
486 * value.h (value_must_coerce_to_target, value_coerce_to_target):
487 Declare.
488
b21991b0
DJ
4892008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
490
491 * top.c (quit_confirm): Warn that we will kill the program.
492
49a834f9
PA
4932008-03-19 Pedro Alves <pedro@codesourcery.com>
494
495 * inflow.c (terminal_ours_1): Guard access to
496 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
497
ae0d2f24
UW
4982008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
499 Jim Blandy <jimb@codesourcery.com>
500 Daniel Jacobowitz <drow@false.org>
501
502 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
503 (dwarf2_read_address): Update prototype.
504
505 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
506 (signed_address_type): Likewise.
507 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
508 (execute_stack_op): Update calls to unsigned_address_type,
509 signed_address_type and dwarf2_read_address. Fix implementation
510 of DW_OP_deref_size.
511
512 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
513 (dwarf2_per_cu_addr_size): Likewise.
514 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
515 (struct dwarf2_loclist_baton): Likewise.
516
517 * dwarf2loc.c (find_location_expression): Update calls to
518 dwarf2_read_address. Use dwarf2_per_cu_objfile and
519 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
520 (locexpr_describe_location): Likewise.
521 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
522 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
523 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
524 to dwarf2_per_cu_addr_size (per_cu).
525 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
526 (loclist_read_variable): Likewise.
527 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
528
529 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
530 instead of baton->objfile.
531 (dwarf2_per_cu_obfile): New function.
532 (dwarf2_per_cu_addr_size): Likewise.
533
534 * dwarf2-frame.c (struct comp_unit): Move higher.
535 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
536 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
537 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
538 parameter by using fde->eh_frame_p. Use read_encoded_value
539 to implement DW_CFA_set_loc.
540 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
541 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
542 execute_stack_op and execute_cfa_program.
543 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
544 (size_of_encoded_value): Remove.
545 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
546 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
547 (add_cie): Set cie->unit backlink.
548 (decode_frame_entry_1): Set cie->addr_size. Update calls to
549 read_encoded_value.
550 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
551
1c8201d1
MD
5522008-03-17 Markus Deuling <deuling@de.ibm.com>
553
554 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
555 gdbarch_bfd_arch_info.
556
46bba1ef
JB
5572008-03-17 Joel Brobecker <brobecker@adacore.com>
558
559 * aix-thread.c (pdc_read_regs): Minor reformatting.
560
0bcd3e20
VP
5612008-03-17 Vladimir Prus <vladimir@codesourcery.com>
562
563 * thread.c (print_thread_info): Don't insist
564 on having current thread if there are no
565 threads at all.
566
9356cf8d
PA
5672008-03-17 Pedro Alves <pedro@codesourcery.com>
568
569 * infcmd.c (attach_command_post_wait)
570 (attach_command_continuation): New.
571 (attach_command): Support background async execution, and async
572 execution in synchronous mode.
573
5c3ce3f7
DJ
5742008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
575
576 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
577 * symmisc.c (dump_symtab_1): Likewise.
578 * wrapper.c (gdb_value_struct_elt): Likewise.
579
fa2c6a57
PA
5802008-03-17 Pedro Alves <pedro@codesourcery.com>
581
582 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
583
02f3fc28
PA
5842008-03-17 Pedro Alves <pedro@codesourcery.com>
585
586 * linux-nat.c (linux_nat_filter_event): New, refactored from
587 linux_nat_wait.
588 (linux_nat_wait): Call linux_nat_filter_event.
589
2f77b315
UW
5902008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
591
592 * top.c (execute_command): Fix uninitialized variable error.
593
f01be29b
NH
5942008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
595
596 * Makefile.in (amd64nbsd-nat.o): New dependency.
597 * amd64nbsd-nat.c: Include "nbsd-nat.h".
598 (_initialize_amd64nbsd_nat): Update target vector to use
599 nbsd_pid_to_exec_file.
600 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
601
6cf32704
VP
6022008-03-15 Vladimir Prus <vladimir@codesourcery.com>
603
604 Remove ignoring leading exec events code.
605 * fork-child.c (startup_inferior): Do not set
606 inferior_ignoring_leading_exec_events.
607 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
608 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
609 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
610 (handle_inferior_event): Remove code for ignoring leading exec
611 events.
612 * target.c (update_current_target): Do not inherit, or default,
613 to_reported_exec_events_per_exec_call.
614 (debug_to_reported_exec_events_per_exec_call): Remove.
615 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
616 * target.h (target_reported_exec_events_per_exec_call): Remove.
617 (struct target): Remove the to_reported_exec_events_per_exec_call
618 field.
619
8e8901c5
VP
6202008-03-15 Vladimir Prus <vladimir@codesourcery.com>
621
622 Implement -thread-info.
623 * gdbthread.h (print_thread_info): Declare.
624
625 * thread.c (print_thread_info): New, extracted
626 from info_threads_command and adjusted to
627 work for CLI and MI.
628 (info_threads_command): Use print_thread_info.
629 * Makefile.in: Update dependencies.
630
631 * mi/mi-cmds.c (mi_cmds): Specify a handler
632 for -thread-info.
633 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
634 * mi/mi-main.c (mi_cmd_thread_info): New.
635 (mi_cmd_list_features): Include 'thread-info'.
636
7d1e6fb8
KB
6372008-03-14 Kevin Buettner <kevinb@redhat.com>
638
639 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
640 to decide whether to match instruction patterns using "sw" and "sd".
641
89113898
PA
6422008-03-14 Pedro Alves <pedro@codesourcery.com>
643
644 * infcmd.c (jump_command): Postpone disabling stdin until after
645 the possible query.
646
64a0ac84
PA
6472008-03-14 Pedro Alves <pedro@codesourcery.com>
648
649 * inflow.c (gdb_getpgrp): New.
650 (gdb_has_a_terminal): Use get_getpgrp.
651 (terminal_ours_1): If attach_flag is set, don't refetch
652 inferior_process_group.
653
1fddbabb
PA
6542008-03-14 Pedro Alves <pedro@codesourcery.com>
655
656 * features/library-list.dtd: Allow "section" elements as children
657 of "library". Add "section" element and describe its attributes.
658
659 * solib-target.c (struct lm_info): Add section_bases member.
660 (library_list_start_segment): Error out if seen a section element.
661 (library_list_start_section): New.
662 (library_list_end_library): New.
663 (solib_target_free_library_list): Free section_bases.
664 (section_attributes): New.
665 (library_children): Make "segment" optional. Add "section" child.
666 (library_list_children): Register library_list_end_library.
667 (solib_target_relocate_section_addresses): Handle section bases.
668
669 * NEWS: Mention new qXfer:libraries:read section offsets support.
670
712af3be
VP
6712008-03-14 Vladimir Prus <vladimir@codesourcery.com>
672
673 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
674 (make_exec_error_cleanup): Remove declarations.
675 * utils.c (exec_error_cleanup_chain): Remove.
676 (do_exec_error_cleanups, discard_exec_error_cleanups)
677 (make_exec_error_cleanup): Remove.
678 * event-loop.c (start_event_loop): Adjust call to
679 async_enable_stdin.
680 * event-top.c (async_enable_stdin): Remove the paramater dummy.
681 (async_disable_stdin): Don't register async_enable_stdin via
682 cleanup.
683 * inf-loop.c (inferior_event_handler): Don't
684 call do_exec_error_cleanups. Call async_enable_stdin instead.
685 * event-loop.c (start_event_loop): Adjust call to
686 async_enable_stdin.
687 * tui/tui-interp.c (tui_command_loop): Adjust call to
688 async_enable_stdin.
689
32c1e744
VP
6902008-03-14 Vladimir Prus <vladimir@codesourcery.com>
691
692 Async mode fixes.
693 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
694 * breakpoint.c (bpstat_do_actions): In async mode,
695 don't jump to top expecting stop_bpstat to be already
696 updated.
697 * event-loop.c (start_event_loop): Call async_enable_stdin
698 on exception.
699 * event-top.c (async_enable_stdin): Do nothing if sync_execution
700 is not set.
701 (command_handler): Do not setup continuation here.
702 (command_line_handler_continuation): Move to...
703 * top.c (command_line_handler_continuation): ... here.
704 (execute_command): In async mode, register continuation.
705 Don't check frame's language in running in async mode.
706 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
707 * inf-loop.c (complete_execution): Inline into...
708 (inferior_event_handler): ... here. Clear target_executing before
709 doing any cleanups. Don't try to show prompt if the target was
710 resumed.
711 * infcmd.c (signal_command): Add support for async mode.
712 (finish_command): Only add continuation if the target was
713 successfully resumed.
714 * remote.c (init_async_opts): Register to_get_thread_local_address
715 handler.
716 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
717 with sync_execution.
718 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
719 on exception.
720
c04ea773
DJ
7212008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
722
723 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
724 * exec.c (exec_bfd_mtime): Define.
725 (exec_close): Clear it.
726 (exec_file_attach): Set it.
727 * gdbcore.h (exec_bfd_mtime): Declare.
728 * source.c (find_source_lines): Do not use bfd_get_mtime.
729
952dc227
VP
7302008-03-14 Vladimir Prus <vladimir@codesourcery.com>
731
732 * top.c (simplified_command_loop): Remove.
733
4cf46804
VP
7342008-03-14 Vladimir Prus <vladimir@codesourcery.com>
735
736 Remove unused remote.c hooks.
737 * remote.c (deprecated_target_resume_hook)
738 (deprecated_target_wait_loop_hook): Remove.
739 (remote_resume): Do not call deprecated_target_resume_hook.
740 (remote_wait): Do not call deprecated_target_wait_loop_hook.
741 (remote_async_wait): Likewise.
742
683f2885
VP
7432008-03-14 Vladimir Prus <vladimir@codesourcery.com>
744
745 Implement MI notification for new threads.
746 * doc/observer.texi (new_thread): Document.
747 * observer.sh: Forward declare struct thread_info.
748 * thread.c (add_thread): Notify observer.
749
750 * interps.h (interp_init_ftype): New parameter
751 top_level.
752 (interp_set): Likewise.
753 (top_level_interpreter_data): Declare.
754 * interps.c (interp_set): New parameter top_level.
755 Pass it to interpreter's init function. Remember
756 top level interpreter.
757 (interpreter_exec_cmd): Adjust.
758 (top_level_interpreter_data): New.
759 * main.c (captured_main): Pass 1 for top_level
760 parameter of interp_set.
761 * cli/cli-interp.c (cli_interpreter_init): New
762 parameter top_level.
763 * tui/tui-interp.c (tui_init): New parameter top_level.
764
765 * mi/mi-interp.c (mi_new_thread): New.
766 (mi_interpreter_init): If top level, register
767 observer for new threads.
768
769 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
770
ff9b3928
PA
7712008-03-14 Pedro Alves <pedro@codesourcery.com>
772
773 * top.c (execute_command): Disable break and stop
774 commands in async mode.
775
b18392ef
PA
7762008-03-14 Pedro Alves <pedro@codesourcery.com>
777
778 revert:
779 2008-03-14 Pedro Alves <pedro@codesourcery.com>
780 * inf-loop.c (inferior_event_handler): Don't include remote.h.
781 Call target_stop in the INF_QUIT_REQ case.
782 * Makefile.in (inf-loop.o): Update.
783
0aca9f07
PA
7842008-03-14 Pedro Alves <pedro@codesourcery.com>
785
786 * inf-loop.c (inferior_event_handler): Don't include remote.h.
787 Call target_stop in the INF_QUIT_REQ case.
788 * Makefile.in (inf-loop.o): Update.
789
0b4e556c
PA
7902008-03-14 Pedro Alves <pedro@codesourcery.com>
791
792 * top.c (execute_command): Enable break, info and interrupt
793 commands in async mode.
794
8defab1a
DJ
7952008-03-13 Vladimir Prus <vladimir@codesourcery.com>
796 Daniel Jacobowitz <dan@codesourcery.com>
797
798 * breakpoint.h (breakpoint_restore_shadows): New
799 declaration.
800 * breakpoint.c (breakpoint_restore_shadows): New.
801 (read_memory_nobpt): Delete.
802 * gdbcore.h (read_memory_nobpt): Delete declaration.
803 * target.c (memory_xfer_partial): Call
804 breakpoint_restore_shadows.
805 (restore_show_memory_breakpoints)
806 (make_show_memory_beakpoints_cleanup): New.
807 (show_memory_breakpoints): New.
808 * target.h (make_show_memory_beakpoints_cleanup): Declare.
809 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
810 Make sure we see memory breakpoints when checking if
811 breakpoint is still there.
812 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
813 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
814 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
815 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
816
fd532e2e
PA
8172008-03-12 Pedro Alves <pedro@codesourcery.com>
818
819 * thread.c (add_thread): Use printf_unfiltered to print.
820
f749779f 8212008-03-12 Joel Brobecker <brobecker@gnat.com>
965b60ee
JB
822
823 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
824 that is true only on x86-solaris and x86_64-solaris.
825 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
826 with proc_get_LDT_entry.
827
8282008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
83116857
TJB
829
830 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
831 * config.in, configure: Regenerate.
832 * fork-child.c (fork_inferior): Call create_tty_session.
833 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
834 (create_tty_session): New function.
835 * terminal.h: Declare create_tty_session.
836
4fbb74a6
AM
8372008-03-12 Alan Modra <amodra@bigpond.net.au>
838
839 PR 5900
840 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
841 * mipsread.c: Include elf/internal.h.
842 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
843 to internal range.
844
20a6ec49
MD
8452008-03-11 Markus Deuling <deuling@de.ibm.com>
846
847 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
848 to get at the current architecture and at the target specific vector.
849 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
850 remove define of I387_ST0_REGNUM.
851
852 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
853
854 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
855 get at the current architecture
856 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
857 parameter.
858
859 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
860 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
861
862 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
863 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
864 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
865
866 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
867 at the target specific vector.
868
869 (i386_get_longjmp_target): Use get_frame_arch to get at the current
870 architecture. Use gdbarch_tdep to get at the target specific vector.
871
872 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
873 update caller. Use gdbarch_tdep to get at the target specific vector.
874
875 (i386_register_to_value: Use get_frame_arch to get at the current
876 architecture.
877
878 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
879 parameter.
880
881 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
882 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
883 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
884 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
885
886 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
887 undef's.
888
889 (i387_convert_register_p, i387_register_to_value,
890 i387_value_to_register): Update call for i386_fp_regnum_p.
891
892 * i387-tdep.h: Remove comment.
893 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
894 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
895 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
896 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
897 I387_MXCSR_REGNUM): Add target specific vector as parameter.
898
ccd213ac
DJ
8992008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
900
901 * Makefile.in (fork-child.o): Update.
902 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
903 argument. Gather all gdbserver features together.
904 * fork-child.c (exec_wrapper): New variable.
905 (fork_inferior): Use it.
906 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
907 (unset_exec_wrapper_command, _initialize_fork_child): New.
908
9092008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
80618b99
MS
910
911 * source.c (directory_command): Modify the determination of
912 condition of terminal "from_tty".
913
22566fbd
DJ
9142008-03-10 Matt Rice <ratmice@gmail.com>
915
916 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
917
9971ac47
UW
9182008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
919
920 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
921 of the data passing to strtoulst function.
922 (info_spu_signal_command): Likewise.
923
835670cf
VP
9242008-03-08 Vladimir Prus <vladimir@codesourcery.com>
925
926 * mi/mi-interp.c (mi_command_loop): Remove
927 commented-out code.
928
be86555c
JB
9292008-03-07 Joel Brobecker <brobecker@adacore.com>
930
931 * remote.c (extended_remote_attach_1): Make local variable pid an int
932 instead of a pid_t.
933
4d7b2d5b
JB
9342008-03-07 Joel Brobecker <brobecker@adacore.com>
935
936 * solib-svr4.c (svr4_same_1): New function, originally extracted
937 from svr4_same and expanded to handle the sparc64 case.
938 (svr4_same): Move up and reimplement using svr4_same_1.
939 (enable_break): Use svr4_same_1 to do shared library name comparisons.
940
61fed90e
RR
9412008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
942
943 * MAINTAINERS: Move self to Paper trail.
944
b803fb0f
DJ
9452008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
946
947 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
948 * event-loop.c (call_async_signal_handler): New.
949 * event-loop.h (call_async_signal_handler)
950 (gdb_call_async_signal_handler): Declare.
951 (mark_async_signal_handler): Add comments.
952 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
953 * mingw-hdep.c (sigint_event, sigint_handler): New.
954 (gdb_select): Use them. Wait for the readline signal handler
955 to finish.
956 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
957 * posix-hdep.c (gdb_call_async_signal_handler): New function.
958 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
959 New.
960 (remote_fileio_ctrl_c_signal_handler): Use
961 gdb_call_async_signal_handler.
962 (initialize_remote_fileio): Initialize sigint_fileio_token.
963 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
964 not initialize tokens here.
965 (handle_remote_sigint_twice): Likewise. Reinstall
966 handle_remote_sigint.
967 (async_remote_interrupt_twice): Just call interrupt_query.
968 (cleanup_sigint_signal_handler): Do not delete tokens.
969 (remote_interrupt, remote_interrupt_twice): Use
970 gdb_call_async_signal_handler.
971 (interrupt_query): Reinstall the default signal handler.
972 (_initialize_remote): Initialize tokens here.
973
8f4d54ed
JB
9742008-03-04 Joel Brobecker <brobecker@adacore.com>
975
976 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
977 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
978 Change the type of the lr register to code_ptr.
979 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
980 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
981 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
982 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
983 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
984 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
985 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
986
95ece428
JW
9872008-03-03 James E. Wilson <wilson@tuliptree.org>
988
989 * MAINTAINERS: Update my email address.
990
686a5eed
KS
9912008-03-03 Keith Seitz <keiths@redhat.com>
992
993 From Dave Murphy <davem@devkitpro.org>:
994 * configure.ac: Set tcl configdir to win under mingw.
995 * configure: Regenerate.
996
fa4727a6
DJ
9972008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
998
999 * breakpoint.c (fetch_watchpoint_value): New function.
1000 (update_watchpoint): Set and clear val_valid. Use
1001 fetch_watchpoint_value. Handle unreadable values on the
1002 value chain. Correct check for user-requested array watchpoints.
1003 (breakpoint_init_inferior): Clear val_valid.
1004 (watchpoint_value_print): New function.
1005 (print_it_typical): Use it. Do not free or clear old_val. Print
1006 watchpoints even if old_val == NULL.
1007 (watchpoint_check): Use fetch_watchpoint_value. Check for values
1008 becoming readable or unreadable.
1009 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
1010 (do_enable_watchpoint): Likewise.
1011 * breakpoint.h (struct breakpoint): Update comment for val. Add
1012 val_valid.
1013 * NEWS: Mention watchpoints on inaccessible memory.
1014
c03374d5
DJ
10152007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
1016
1017 * Makefile.in (i386-nat.o): Update.
1018 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
1019 i386_use_watchpoints.
1020 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
1021 i386_use_watchpoints.
1022 * i386-nat.c (i386_stopped_data_address): Take two arguments.
1023 (i386_stopped_by_watchpoint): Update call.
1024 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
1025 * config/i386/nm-i386.h: Conditionalize definitions on
1026 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
1027 (i386_use_watchpoints): Declare.
1028 (i386_stopped_data_address): Update.
1029 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
1030 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
1031
c24d7425 10322008-02-29 Joel Brobecker <brobecker@adacore.com>
1033
1034 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
1035 * version.in: Bump version to 6.8.50.20080229-cvs.
1036
a7dfd010
MD
10372008-02-28 Markus Deuling <deuling@de.ibm.com>
1038
1039 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
1040 properly.
1041
258c00cc
TT
10422008-02-28 Tom Tromey <tromey@redhat.com>
1043
1044 * infcmd.c (notice_args_read): Print result of get_inferior_args.
1045
8edfe269
DJ
10462008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
1047
1048 * infcmd.c (kill_if_already_running): Make static. Use
1049 target_require_runnable.
1050 * target.c (target_require_runnable): New.
1051 * target.h (target_require_runnable): Declare.
1052
0d6ba1b1
DJ
10532008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
1054
1055 * frame.c (reinit_frame_cache): Only annotate if frames were
1056 previously valid.
1057
6fe305f7
UW
10582008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1059
1060 * regformats/reg-ppc.dat: Rename "ps" to "msr".
1061 * regformats/reg-ppc64.dat: Likewise.
1062
9b4b61c8
UW
10632008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1064
1065 * features/Makefile (%.dat): Emit xmltarget statement.
1066
1067 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
1068 Generate code to set gdbserver_xmltarget in init_registers_${name}.
1069
1070 * regformats/arm-with-iwmmxt.dat: Regenerate.
1071 * regformats/mips64-linux.dat: Regenerate.
1072 * regformats/mips-linux.dat: Regenerate.
1073 * regformats/rs6000/powerpc-32.dat: Regenerate.
1074 * regformats/rs6000/powerpc-64.dat: Regenerate.
1075 * regformats/rs6000/powerpc-e500.dat: Regenerate.
1076
1077 * regformats/reg-arm.dat: Add xmlarch statement.
1078 * regformats/reg-i386.dat: Likewise.
1079 * regformats/reg-i386-linux.dat: Likewise.
1080 * regformats/reg-x86-64-linux.dat: Likewise.
1081 * regformats/reg-spu.dat: Likewise.
1082
20b4711e
DJ
10832008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
1084
1085 * remote.c (remote_wait, remote_async_wait): Stop if we receive
1086 an error.
1087
1843f87b
DJ
10882008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
1089
1090 * utils.c (debug_timestamp): New.
1091 (vfprintf_unfiltered): Print timestamps if requested.
1092 (show_debug_timestamp): New.
1093 (initialize_utils): Register "set debug timestamp".
1094 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
1095
6a048695
JB
10962008-02-27 Joel Brobecker <brobecker@adacore.com>
1097
1098 * breakpoint.c (skip_prologue_sal): New function.
1099 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
1100 computed from a line number.
1101
0b998f49
JB
11022008-02-27 Joel Brobecker <brobecker@adacore.com>
1103
1104 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
1105 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
1106 Set PC register type to "code_ptr".
1107 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
1108 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
1109 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
1110 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
1111 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
1112 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
1113 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
1114 Regenerate.
1115
d05b4ac3
UW
11162008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
1117
1118 * regformats/regdat.sh: Rename init_registers function in
1119 generated file to init_registers_${name}.
1120
1121 * regformats/reg-crisv32.dat: Set "name" to crisv32.
1122 * regformats/reg-ppc64.dat: Set "name" to ppc64.
1123 * regformats/reg-s390x.dat: Set "name" to s390x.
1124
a5d9d57d
DJ
11252008-02-26 Greg Law <glaw@undo-software.com>
1126
1127 * regcache.c (registers_changed): Call reinit_frame_cache.
1128
e25c958c
DJ
11292008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
1130
1131 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
1132 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
1133 and svr4_fetch_objfile_link_map.
1134 * Makefile.in (sh-linux-tdep.o): Update.
1135
5daa78cc
TJB
11362008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
1137
1138 * amd64-tdep.c (amd64_classify): Add support for decimal float
1139 types.
1140 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
1141 use the struct return convention.
1142
54e52265
VP
11432008-02-26 Nick Roberts <nickrob@snap.net.nz>
1144
1145 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
1146 to old format. Discard breakpoint address if shared library is
1147 unloaded.
1148 (breakpoint_1): Adjust formatting of table header accordingly.
1149
d8f2712d
VP
11502008-02-25 Vladimir Prus <vladimir@codesourcery.com>
1151
1152 * remote.c (remote_get_threadlist): If the response
1153 is empty, don't try to parse it.
1154
05ce04a4
VP
11552008-02-23 Vladimir Prus <vladimir@codesourcery.com>
1156
1157 Unbreak 'target async'.
1158 * serial.c (serial_async): Set the
1159 handler function before enabling async
1160 mode.
1161
b36ec657
DJ
11622008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
1163
1164 * solib-svr4.c (enable_break): Convert r_brk to a code address.
1165
df7df359
PA
11662008-02-21 Pedro Alves <pedro@codesourcery.com>
1167
1168 * remote.c (extended_remote_attach_1): Set attach_flag.
1169 (extended_remote_create_inferior_1): Clear attach_flag.
1170
7cd25cfc
DJ
11712008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
1172
1173 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
1174 r_brk_offset.
1175 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
1176 * solib-svr4.c (solib_svr4_r_brk): New.
1177 (open_symbol_file_object, svr4_current_sos): Always check the
1178 debug base.
1179 (svr4_fetch_objfile_link_map): Do not set debug_base.
1180 (enable_break): Use r_brk if it is set.
1181 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
1182 (svr4_lp64_fetch_link_map_offsets): Likewise.
1183 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
1184
07ea644b
MD
11852008-02-20 Markus Deuling <deuling@de.ibm.com>
1186 Mark Kettenis <kettenis@gnu.org>
1187
1188 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
1189 trad_frame_saved_reg.
1190 (trad-frame.h): New include.
1191
1192 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
1193 instead of frame_obstack_zalloc.
1194 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
1195
1196 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
1197
40887e1a
MD
11982008-02-20 Markus Deuling <deuling@de.ibm.com>
1199
1200 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
1201 from disassemble_info instead of gdbarch_byte_order.
1202
1203 * mips-tdep.c (gdb_print_insn_mips): Likewise.
1204 * arm-tdep.c (gdb_print_insn_arm): Likewise.
1205
ae4b2284
MD
12062008-02-20 Markus Deuling <deuling@de.ibm.com>
1207
1208 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
1209 gdbarch as parameter.
1210
1211 * gdbarch.{c,h}: Regenerate.
1212
1213 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
1214 parameter.
1215 * mem-break.c (default_memory_insert_breakpoint)
1216 (default_memory_remove_breakpoint): Likewise.
1217 * target.h (default_memory_remove_breakpoint)
1218 (default_memory_insert_breakpoint): Likewise.
1219
1220 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
1221 parameter. Replace current_gdbarch by gdbarch.
1222 * m32r-tdep.c (m32r_memory_insert_breakpoint)
1223 (m32r_memory_remove_breakpoint): Likewise.
1224
d9bf65d5
DJ
12252008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
1226
1227 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
1228
b93b6ca7
JB
12292008-02-19 Joel Brobecker <brobecker@adacore.com>
1230
1231 * NEWS: Add entry describing Add support improvements.
1232
4ed226fe
MD
12332008-02-18 Markus Deuling <deuling@de.ibm.com>
1234
1235 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
1236 M68K_FP0_REGNUM.
1237
caaa79ad
MD
12382008-02-18 Markus Deuling <deuling@de.ibm.com>
1239
1240 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
1241 register_offset_hack anymore.
1242
1243 * regcache.{c,h} (register_offset_hack): Remove.
1244
e38c262f
MD
12452008-02-18 Markus Deuling <deuling@de.ibm.com>
1246
1247 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
1248
1249 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
1250 current_gdbarch by gdbarch.
1251 (hppa64_hpux_find_global_pointer): Likewise.
1252 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
1253 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
1254 find_global_pointer.
1255
1256 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
1257 parameter.
1258 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
1259
1260 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
1261 of gdbarch_num_regs.
1262
1263 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
1264 replace current_gdbarch by gdbarch.
1265 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
1266
206988c4
MD
12672008-02-18 Markus Deuling <deuling@de.ibm.com>
1268
1269 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
1270 and replace current_gdbarch by gdbarch.
1271
1272 (store_register): Update call for exec_one_dummy_insn.
1273 (fetch_register, store_register): Update call of regmap.
1274
1275 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
1276 parameter and replace current_gdbarch by gdbarch.
1277
1278 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
1279 the current architecture. Update call for getregs_supplies and
1280 getfpregs_supplies.
1281 (ppcnbsd_fetch_inferior_registers): Likewise.
1282
1283 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
1284 replace current_gdbarch by gdbarch.
1285 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
1286 get_regcache_arch to get at the current architecture. Update call for
1287 getfpregs_supplies.
1288
f642be6b
MD
12892008-02-18 Markus Deuling <deuling@de.ibm.com>
1290
1291 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
1292 variables.
1293
b1f2bf01
MD
12942008-02-15 Markus Deuling <deuling@de.ibm.com>
1295
1296 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
1297
ee163bf5
VP
12982008-02-14 Vladimir Prus <vladimir@codesourcery.com>
1299
1300 * NEWS: Mention pending breakpints in MI.
1301
f6fbcbf9
MD
13022008-02-14 Markus Deuling <deuling@de.ibm.com>
1303
1304 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
1305
36af4ef6
MD
13062008-02-13 Markus Deuling <deuling@de.ibm.com>
1307
1308 Add script to build and test GDB using enable-targets=all.
1309
1310 * gdb_buildall.sh: New file.
1311
94a0e877
MG
13122008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
1313
1314 * NEWS (New native configurations): Xtensa GNU/Linux.
1315 (New targets): Xtensa GNU/Linux.
1316 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
1317 xtensa-linux-tdep.o
1318 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
1319 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
1320 * configure.tgt (xtensa*-*-linux*): New entry.
1321 * xtensa-config.c (xtensa_tdep): New variable.
1322 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
1323 (rmap): Change format based on new macro XTREG.
1324 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
1325 * xtensa-linux-nat.c: New.
1326 * xtensa-linux-tdep.c: New.
1327 * xtensa-xtregs.c: New.
1328 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
1329 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
1330 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
1331 (xtensa_register_t): New field coprocessor.
1332 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
1333 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
1334 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
1335 Update to handle privileged registers.
1336 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
1337 (xtensa_push_dummy_call): Set windowstart register correctly.
1338 (call0_analyze_prologue): Initialize xtensa_default_isa.
1339 (xtensa_derive_tdep): New.
1340 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
1341 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
1342 Call xtensa_derive_tdep().
1343 * config/xtensa/linux.mh: New.
1344 * regformats/reg-xtensa.dat: New.
1345
b7ee1b0a 13462008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
f90c07ac
EZ
1347
1348 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
1349 (filenames.h): New include.
1350 * Makefile.in (corelow.o): Add dependency for filenames.h.
1351
8da2a1df
DJ
13522008-02-08 Doug Evans <dje@google.com>
1353
1354 * source.c (find_and_open_source): Always rewrite absolute filenames.
1355
776592bf
DE
13562008-02-07 Doug Evans <dje@google.com>
1357
1358 * breakpoint.c: #include "hashtab.h".
1359 (ambiguous_names_p): New fn.
1360 (update_breakpoint_locations): When restoring bp enable status, don't
1361 compare function names if any functions have same name.
1362 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
1363
d6565258
JB
13642008-02-07 Joel Brobecker <brobecker@adacore.com>
1365
1366 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
1367 instead of just a VEC*. Update use of SV.
1368 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
1369
6d53d0af
JB
13702007-02-07 Joel Brobecker <brobecker@adacore.com>
1371
1372 * NEWS: Put all new commands since gdb-6.7 together.
1373
2ba95b9b
JB
13742007-02-07 Joel Brobecker <brobecker@adacore.com>
1375
1376 * ada-lang.c: #include "vec.h".
1377 (struct string_vector, new_string_vector, string_vector_append):
1378 Delete.
1379 (char_ptr): New typedef.
1380 (DEF_VEC_P (char_ptr)): New VEC type.
1381 (symbol_completion_add): Update profile to take the new VEC type
1382 instead of the old string_vector structure. Update code accordingly.
1383 (ada_make_symbol_completion_list): Use the new VEC type instead of
1384 the old string_vector structure, and update the code accordingly.
1385 * Makefile.in (ada-lang.o): Add dependency on vec.h.
1386
4ae0885a
PM
13872008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
1388
1389 * p-exp.y: Set current_type in missing places.
1390 (leftdiv_is_integer): New static variable.
1391 Typecast right operand of BINOP_DIV to long_double if both operands
1392 are integers.
1393
06b1d59c
MR
13942008-02-06 Maciej W. Rozycki <macro@mips.com>
1395
1396 * remote-mips.c (set_breakpoint): Rename to...
1397 (mips_set_breakpoint): ... this.
1398 (clear_breakpoint): Rename to...
1399 (mips_clear_breakpoint): ... this.
1400 (common_breakpoint): Rename to...
1401 (mips_common_breakpoint): ... this.
1402 (check_lsi_error): Rename to...
1403 (mips_check_lsi_error): ... this.
1404
41d27058
JB
14052007-02-05 Joel Brobecker <brobecker@adacore.com>
1406
1407 * language.h (struct language_defn): Add new field
1408 la_make_symbol_completion_list.
1409 * symtab.c (default_make_symbol_completion_list): Renames
1410 make_symbol_completion_list.
1411 (make_symbol_completion_list): New function.
1412 * symtab.h (default_make_symbol_completion_list): Add declaration.
1413 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
1414 (auto_language, local_language): Likewise.
1415 * objc-lang.c (objc_language_defn): Likewise.
1416 * scm-lang.c (scm_language_defn): Likewise.
1417 * m2-lang.c (m2_language_defn): Likewise.
1418 * f-lang.c (f_language_defn): Likewise.
1419 * jv-lang.c (java_language_defn): Likewise.
1420 * p-lang.c (pascal_language_defn): Likewise.
1421 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
1422 (minimal_language_defn): Likewise.
1423 * ada-lang.c (struct string_vector): New structure.
1424 (new_string_vector, string_vector_append, ada_unqualified_name)
1425 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
1426 (ada_make_symbol_completion_list): New functions.
1427 (ada_language_defn): Set la_make_symbol_completion_list.
1428 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
1429 this function is static.
1430
ee3a2f01
KB
14312008-02-05 Kevin Buettner <kevinb@redhat.com>
1432
1433 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
1434 to account for call site optimizations.
1435
d844e34b
JB
14362008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
1437
1438 * tracepoint.c (read_actions): Handle end-of-text indicator
1439 in action list properly. (Committed by Jim Blandy)
1440
02e4669d
JB
14412008-02-05 Jim Blandy <jimb@red-bean.com>
1442
1443 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
1444 pseudoregister, not an internal error.
85ecb32b 1445 Reported by: Andrzej Zaborowski
02e4669d 1446
c39c8256
VP
14472008-02-04 Vladimir Prus <vladimir@codesourcery.com>
1448
1449 * varobj.c (c_value_of_variable): Use xstrdup.
1450
ae7d22a6
VP
14512008-02-04 Vladimir Prus <vladimir@codesourcery.com>
1452
1453 Update stored rendition of varobj value when format changes.
1454 * varobj.c (varobj_set_display_format): Recomputed
1455 print_value.
1456 (c_value_of_variable): Return print_value.
1457
81fe8080
DE
14582008-02-03 Doug Evans <dje@google.com>
1459
301f0ecf
DE
1460 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
1461 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
1462 * valops.c (value_one): New function.
1463 * value.h (value_one): Declare.
1464
1465 Fix argument promotion for binary arithmetic ops for C.
1466 * valarith.c (unop_result_type): New fn.
1467 (binop_result_type): New fn.
1468 (value_binop): Move result type computation to binop_result_type.
1469 (value_pos, value_neg, value_complement): Move result type
1470 computation to unop_result_type.
1471
81fe8080
DE
1472 PR 2384
1473 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
1474 Return basetype, fieldno if found. All callers updated.
1475 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
1476 objfile.
1477 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
1478 * symfile.h (fill_in_vptr_fieldno): Delete.
1479
41808ebe
DE
14802008-02-02 Doug Evans <dje@google.com>
1481
f8597ac3
DE
1482 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
1483
41808ebe
DE
1484 * typeprint.c (*): Whitespace cleanup.
1485
f964a756
MK
14862008-02-02 Mark Kettenis <kettenis@gnu.org>
1487 Luis Machado <luisgpm@br.ibm.com>
1488 Thiago Jung Bauermann <bauerman@br.ibm.com>
1489
1490 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
1491 don't fit into registerson the stack the way GCC does.
1492
b06ead72
JB
14932008-02-01 Joel Brobecker <brobecker@adacore.com>
1494
1495 * symtab.c (symbol_set_names): Do not add an entry in the demangling
1496 hash table for Ada symbols. Just store the linkage name as is,
1497 and leave the demangled_name as NULL.
1498
2cfa0c8d
JB
14992007-02-01 Joel Brobecker <brobecker@adacore.com>
1500
1501 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
1502 in the global scope.
1503 (new_symbol): Likewise.
1504
98deb0da
VP
15052008-02-01 Vladimir Prus <vladimir@codesourcery.com>
1506
1507 * breakpoint.c (break_command_1): Return void.
1508 (break_command_really): Return void. Rethrow
1509 exceptions instead of returning.
1510 (gdb_breakpoint): Remove the error_message parameter.
1511 Return void. Rename to set_breakpoint.
1512 * gdb.h (gdb_breakpoint): Rename and move to...
1513 * breakpoint.h (set_breakpoint): ...here.
1514 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
1515 event hooks even if exception is thrown. Adjust to
1516 gdb_breakpoint interface changes.
1517
1518
ce0451ad
TJB
15192008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
1520
1521 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
1522 float in both first and second word in the doubleword, to support
1523 old and new ABIs.
1524
723a2275
VP
15252008-02-01 Vladimir Prus <vladimir@codesourcery.com>
1526
1527 Properly rethrow exception. This fixes errors
1528 about non-existent functions for -break-insert.
1529 * breakpoint.c (break_command_really): Use throw_exception
1530 for rethrowing. If rethrowing, don't print the exception.
1531
d64a946d
TJB
15322008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1533
1534 * NEWS: Mention Decimal Floating Point support.
1535
02b156f5
JB
15362008-01-31 Joel Brobecker <brobecker@adacore.com>
1537
1538 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
1539 value type to builtin_type_void_func_ptr.
1540
a16b8bcd
UW
15412008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
1542
1543 * s390-tdep.c (is_float_singleton, is_float_like,
1544 alignment_of, s390_return_value): Make checks for
1545 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
1546
f949c649
TJB
15472008-01-31 Luis Machado <luisgpm@br.ibm.com>
1548 Thiago Jung Bauermann <bauerman@br.ibm.com>
1549
1550 * infcmd.c (default_print_registers_info): Also print hex
1551 raw contents for TYPE_CODE_DECFLOAT registers.
1552 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
1553 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
1554 (rs6000_register_name): Add support for DFP pseudo-registers.
1555 (rs6000_pseudo_register_type): Likewise.
1556 rs6000_pseudo_register_reggroup_p): Likewise.
1557 (ppc_pseudo_register_read): New function.
1558 (ppc_pseudo_register_write): Likewise.
1559 (rs6000_pseudo_register_read): Likewise.
1560 (rs6000_pseudo_register_write): Likewise.
1561 (e500_pseudo_register_read): Move checks to
1562 rs6000_pseudo_register_read.
1563 (e500_pseudo_register_write): Move checks to
1564 rs6000_pseudo_register_write.
1565 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
1566 rs6000_pseudo_register_read and rs6000_pseudo_register_write
1567 in gdbarch if SPE or DFP is available. Adjust gdbarch's
1568 num_pseudo_regs to account for DFP pseudo regs.
1569
5a9e69ba
TJB
15702008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1571
1572 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
1573 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
1574 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
1575 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
1576 e500_pseudo_register_read, e500_pseudo_register_write): Use
1577 IS_SPE_PSEUDOREG macro.
1578 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
1579 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
1580 Remove initialization of tdep->ppc_ev31_regnum.
1581
4e885b20
JB
15822008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1583
1584 * printcmd.c (print_formatted): Handle references as for unformatted
1585 prints.
1586
80f064a2
JB
15872008-01-30 Joel Brobecker <brobecker@adacore.com>
1588
1589 * eval.c (evaluate_subexp_standard): Add handling of user
1590 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
1591
9b3442ee
PM
15922008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
1593
1594 * eval.c (evaluate_subexp_standard): Support
1595 BINOP_INTDIV opcode.
1596
d118ef87
PH
15972008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
1598
1599 * valarith.c (value_binop): Add floating-point BINOP_MIN and
1600 BINOP_MAX cases.
1601 For BINOP_EXP, use length and signedness of left operand only for
1602 result, as for shifts.
1603 For integral operands to BINOP_EXP, use new integer_pow and
1604 uinteger_pow functions so as to get full range of results.
1605 (integer_pow): New function.
1606 (uinteger_pow): New function.
1607
d56d46f5
VP
16082008-01-30 Vladimir Prus <vladimir@codesourcery.com>
1609
1610 Use vector for varobj_list_children interface.
1611 * gdb/varobj.c (varobj_list_children): Return vector
1612 of varobjs.
1613 * gdb/varobj.h (varobj_list_children): Adjust
1614 prototype.
1615 (varobj_p): Declare. Declare vector thereof.
1616 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
1617 for varobj_list_children change.
1618 * Makefile.in (varobj_h): Update dependencies.
1619
1300a2f4
TJB
16202008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1621
1622 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
1623 TYPE_CODE_DECFLOAT arguments.
1624 (ppc64_sysv_abi_push_dummy_call) Likewise.
1625 (get_decimal_float_return_value): New function.
1626 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
1627 values by calling get_decimal_float_return_value.
1628 (ppc64_sysv_abi_return_value): Likewise.
1629
95ef687d
NR
16302008-01-30 Nick Roberts <nickrob@snap.net.nz>
1631
1632 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
1633 for preprocessor macro information. Formatting changes.
1634
2d717e4f
DJ
16352008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1636
1637 * remote.c (struct remote_state): Add cached_wait_status.
1638 (remote_exec_file): New variable.
1639 (PACKET_vAttach, PACKET_vRun): New constants.
1640 (extended_remote_restart): Do not query for status.
1641 (struct start_remote_args): New.
1642 (remote_start_remote): Take it as a second argument. Check
1643 whether the target is running. Issue an error for non-running
1644 non-extended targets. Cache the wait status. Set inferior_ptid
1645 here.
1646 (remote_open_1): Prompt to disconnect non-running targets. Make
1647 sure the target is marked running. Do not set inferior_ptid here.
1648 Update call to remote_start_remote. Do not call remote_check_symbols
1649 if the target is not running.
1650 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
1651 argument. Handle a non-running target.
1652 (remote_detach): Use it.
1653 (extended_remote_detach): New.
1654 (remote_disconnect): Fix typo. Use remoute_mourn_1.
1655 (extended_remote_attach_1, extended_remote_attach)
1656 (extended_async_remote_attach): New.
1657 (remote_vcont_resume): Remove unused variable.
1658 (remote_wait, remote_async_wait): Use any cached wait status.
1659 (putpkt_binary, getpkt): Clear any cached wait status.
1660 (extended_remoute_mourn_1): New.
1661 (extended_remote_mourn): Use it.
1662 (extended_async_remote_mourn, extended_remote_run): New.
1663 (extended_remote_create_inferior_1): New.
1664 (extended_remote_create_inferior): Use it.
1665 (extended_remote_async_create_inferior): Likewise.
1666 (remote_xfer_partial): Skip for non-executing targets.
1667 (init_extended_remote_ops): Set to_detach and to_attach.
1668 (init_extended_async_remote_ops): Likewise. Use
1669 extended_async_remote_mourn.
1670 (_initialize_remote): Register vAttach, vRun, and
1671 set remote exec-file.
1672 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
1673
e85a822c
DJ
16742008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1675
1676 * Makefile.in (symfile.o): Update.
1677 * NEWS: Mention exec tracing support.
1678 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
1679 exec events.
1680 * infcmd.c (kill_if_already_running, detach_command)
1681 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
1682 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
1683 (follow_exec): Do not check may_follow_exec. Do not mourn and push
1684 targets. Apply the sysroot path to the loaded executable. Use
1685 no_shared_libraries.
1686 * linux-nat.c (linux_child_follow_fork): Print fork following
1687 messages if verbose.
1688 (kill_wait_callback): Kill again before waiting a second time.
1689 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
1690 no_shared_libraries.
1691
9db13498
JB
16922008-01-29 Joel Brobecker <brobecker@adacore.com>
1693
1694 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
1695
b4d5ed91
JB
16962008-01-29 Joel Brobecker <brobecker@adacore.com>
1697
1698 * nto-tdep.h: Remove #include "defs.h".
1699 * nto-tdep.c: Add #include "defs.h".
1700 * Makefile.in (nto_tdep_h): Update dependencies.
1701 (nto-tdep.o): Likewise.
1702
107313f7 17032008-01-29 Joel Brobecker <brobecker@adacore.com>
ae123ec6
JB
1704
1705 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
1706 and use it.
1707 (proceed, start_remote): Update call to wait_for_inferior.
1708 * inferior.h (wait_for_inferior): Update declaration.
1709 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
1710 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
1711 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
1712 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
1713
3f4178d6
DJ
17142008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
1715
1716 * varobj (adjust_value_for_child_access): Added checking for
1717 returned value from gdb_value_ind.
1718 (c_describe_child): Likewise.
1719 (cplus_describe_child): Fixed a typo.
1720
5eeba8d4
JB
17212008-01-29 Jim Blandy <jimb@red-bean.com>
1722
1723 * MAINTAINERS: Update my info.
1724
a5606eee
VP
17252008-01-29 Vladimir Prus <vladimir@codesourcery.com>
1726
1727 Use multiple locations for hardware watchpoints.
1728 This eliminates the need to traverse value chain, doing
1729 various checks, in three different places.
1730
1731 * breakpoint.h (struct bp_location): New fields
1732 lengths and watchpoint_type.
1733 (struct breakpoint): Remove the val_chain field.
1734 * breakpoint.c (is_hardware_watchpoint): New.
1735 (free_valchain): Remove.
1736 (update_watchpoint): New.
1737 (insert_bp_location): For hardware watchpoint, just
1738 directly insert it.
1739 (insert_breakpoints): Call update_watchpoint_locations
1740 on all watchpoints. If we have failed to insert
1741 any location of a hardware watchpoint, remove all inserted
1742 locations.
1743 (remove_breakpoint): For hardware watchpoints, directly
1744 remove location.
1745 (watchpoints_triggered): Iterate over locations.
1746 (bpstat_stop_status): Use only first location of
1747 a resource watchpoint.
1748 (delete_breakpoint): Don't call free_valchain.
1749 (print_one_breakpoint): Don't print all
1750 locations for watchpoints.
1751 (breakpoint_re_set_one): Use update_watchpoint for
1752 watchpoints.
1753
0b3de036
VP
17542008-01-29 Vladimir Prus <vladimir@codesourcery.com>
1755
1756 Don't reset watchpoint block on solib load.
1757
1758 * breakpoint.c (insert_bp_location): For watchpoints,
1759 recompute condition.
1760 (breakpoint_re_set_one): Instead of recomputing value
1761 and condition for watchpoints, just reset value and
1762 let insert_breakpoints/insert_bp_location recompute it.
1763 Don't do anything about disabled watchpoint.
1764
c3940723
PM
17652008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
1766
1767 * valarith.c (value_binop): Handle unsigned integer
1768 division by zero.
1769
83845630
KB
17702008-01-28 Kevin Buettner <kevinb@redhat.com>
1771
1772 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
1773 instruction pattern that appears frequently in position
1774 independent code. Fix bug in code which looks for "fmov" and
1775 backtracks if no "fmov" is found.
1776
9ce5d3bb
DE
17772008-01-28 Doug Evans <dje@google.com>
1778
1779 * dbxread.c (read_dbx_symtab): Fix indentation.
131fe1bb
DE
1780 Reformat comments to 80 columns.
1781 Move local var def closer to only use.
9ce5d3bb 1782
c78d192c
DJ
17832008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
1784
1785 * fork-child.c (SHELL_FILE): Remove #ifndef.
1786 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
1787
e11481da
PM
17882008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
1789
1790 * i386-tdep.c (i386_skip_noop): New function.
1791 (i386_analyze_prologue): Call i386_skip_noop function.
1792
244e85c8
MS
17932008-01-24 Michael Snyder <msnyder@specifix.com>
1794
1795 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
1796 * win32-nat.c (win32_xfer_partial): Ditto.
1797 * target.c (default_xfer_partial): Minor whitespace adjustment.
1798
dd6be234
PA
17992008-01-24 Pedro Alves <pedro@codesourcery.com>
1800
1801 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
1802 strip bit 1 even if pc doesn't point to thumb code.
1803
9fa2223d
DJ
18042008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
1805
1806 * remote.c (remote_wait): Handle SIGINT between packets.
1807 (remote_async_wait): Likewise.
1808
93815fbf
VP
18092008-01-23 Vladimir Prus <vladimir@codesourcery.com>
1810 Chris Demetriou <cgd@google.com>
1811
1812 * thread.c (add_thread_silent): Renamed
1813 from add_thread.
1814 (print_thread_events): New variable definition.
1815 (show_print_thread_events): New function.
1816 (_initialize_thread): Add "set print thread-events" and
1817 "show print thread-events" commands.
1818 (add_thread): Announce new thread.
1819 * gdbthread.h (add_thread_silent): Declare.
1820 (print_thread_events): New variable declaration.
1821 * inf-ttrace.c (inf_ttrace_wait): Don't
1822 inform about new thread, as add_thread is always
1823 called too, and will take care of that.
1824 * infrun.c (handle_inferior_event): Likewise.
1825 * procfs.c (procfs_wait): Likewise.
1826 * remote.c (remote_currthread): Likewise.
1827 * sol-thread.c (sol_thread_wait): Likewise.
1828 * win32-nat.c (get_win32_debug_event): Likewise.
1829 * linux-thread-db.c (attach_thread): Likewise.
1830 Remove the verbose parameter.
1831 (check_event): Make detach_thread be verbose
1832 only if print_thread_events is set.
1833 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
1834 about new thread. This is called only from
1835 linux-thread-db.c:attach_thread, which will take care.
1836 Remove the verbose parameter.
1837 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
1838
b4d7c9a6
NR
18392008-01-23 Nick Roberts <nickrob@snap.net.nz>
1840
1841 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
1842
60c46647
VP
18432008-01-22 Vladimir Prus <vladimir@codesourcery.com>
1844
1845 * breakpoint.c (break_command_really): New parameter
1846 ignore_count.
1847 (break_command_1): Pass 0 as
1848 ignore_count to break_command_really.
1849 (gdb_breakpoint): Pass ignore_count to
1850 break_command_really.
1851
e84605cd
KB
18522008-01-21 Kevin Buettner <kevinb@redhat.com>
1853
1854 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
1855 sigcontext struct via pointer.
1856 (struct sigframe comment): Update to show new field `psc'.
1857
9d9cd7ac
VP
18582008-01-21 Vladimir Prus <vladimir@codesourcery.com>
1859
1860 * infrun.c (handle_inferior_event): If
1861 we failed to remove breakpoints, error,
1862 don't try to increment PC by hand.
1863
af5ca30d
NH
18642008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
1865
1866 Add NetBSD/hppa target and host support.
1867
1868 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
1869 (hppabsd_gregset): Move to ...
1870 (hppabsd_regset_from_core_section): Rename
1871 hppaobsd_regset_from_core_section and move to ...
1872 (hppabsd_find_global_pointer): Update comment.
1873 (hppabsd_init_abi): Make global. Do not register
1874 hppabsd_regset_from_core_section.
1875 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
1876 move to ...
1877 (_initialize_hppabsd_tdep): Move to ...
1878 * hppaobsd-tdep.c: ... here. New file.
1879 * hppnbsd-tdep.c: New file.
1880 * hppnbsd-nat.c: New file.
1881 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
1882 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
1883 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
1884 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
1885 * configure.host (hppa*-*-netbsd*): New entry.
1886 * configure.tgt (hppa*-*-netbsd*): New entry.
1887 (hppa*-*-openbsd*): Update.
1888 * NEWS (New native configuration): Mention NetBSD/hppa.
1889 (New targets): Mention NetBSD/hppa.
1890
32c9a795
MD
18912008-01-18 Markus Deuling <deuling@de.ibm.com>
1892
1893 * gdbarch.sh (function_list): Add new property bits_big_endian to
1894 gdbarch structure.
1895 * gdbarch.{c,h}: Regenerate.
1896
1897 * value.c (struct value): Replace BITS_BIG_ENDIAN by
1898 gdbarch_bits_big_endian (comment).
1899 (unpack_field_as_long, modify_field): Likewise.
1900 * value.h: Likewise (comment).
1901 * valops.c (value_slice): Likewise.
1902 * valarith.c (value_subscript, value_bit_index): Likewise.
1903 * gdbtypes.h (field): Likewise (comment).
1904 * eval.c (evaluate_subexp_standard): Likewise.
1905 * dwarf2read.c (dwarf2_add_field): Likewise.
1906 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
1907 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
1908
1909 * defs.h (BITS_BIG_ENDIAN): Remove.
1910
1e5e79d0
MD
19112008-01-18 Markus Deuling <deuling@de.ibm.com>
1912
1913 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
1914 function calls.
1915 * m2-exp.y (yylex): Likewise.
1916 * objc-exp.y (yylex): Likewise.
1917
1918 * defs.h (DEPRECATED_STREQN): Remove.
1919
fabda5a7
L
19202008-01-17 H.J. Lu <hjl.tools@gmail.com>
1921
1922 * MAINTAINERS: Update my email address.
1923
92726479
JB
19242008-01-17 Jim Blandy <jimb@codesourcery.com>
1925
1926 * README: Mention gdbserver/README.
1927
ef80d18e
PM
19282008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
1929
1930 * valarith.c (value_binop): Handle BINOP_INTDIV
1931 for unsigned and signed integers.
1932
1de90795
UW
19332008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
1934
1935 * s390-tdep.c (s390_gdbarch_init): Set default long double
1936 type to 128-bit IEEE quad.
1937
c70bd6f3
JB
19382008-01-17 Joel Brobecker <brobecker@adacore.com>
1939
1940 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
1941
ba759613
MK
19422008-01-16 Mark Kettenis <kettenis@gnu.org>
1943
77d49ac6
MK
1944 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
1945
ba759613
MK
1946 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
1947 * value.c: All callers changed.
1948
7ecb6532
MD
19492008-01-16 Markus Deuling <deuling@de.ibm.com>
1950
1951 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
1952 DEPRECATED_STREQ by its expression.
1953 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
1954 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
1955 (scan_xcoff_symtab): Likewise.
1956 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
1957 * f-lang.c (find_common_for_function): Likewise.
1958 * objc-exp.y (parse_number): Likewise.
1959
1960 * defs.h (DEPRECATED_STREQ): Remove.
1961
d15cf01c
MD
19622008-01-16 Markus Deuling <deuling@de.ibm.com>
1963
1964 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
1965 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
1966 get_frame_arch to get at the current_architecture. Update AM33_MODE
1967 call.
1968 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
1969 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1970 architecture.
1971 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
1972
f8028488
MD
19732008-01-16 Markus Deuling <deuling@de.ibm.com>
1974
1975 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
1976 parameter.
1977 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
1978
1979 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
1980 current_gdbarch by gdbarch. Update caller.
1981
1982 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
1983 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
1984 the current architecture. Update calls of
1985 amd64_native_gregset_supplies_p.
1986 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
1987 (amd64bsd_store_inferior_registers): Likewise.
1988
e101270f
MD
19892008-01-16 Markus Deuling <deuling@de.ibm.com>
1990
1991 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
1992 Replace current_gdbarch by gdbarch. Update caller.
1993
063e58ba
MD
19942008-01-16 Markus Deuling <deuling@de.ibm.com>
1995
1996 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
1997 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
1998 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
1999 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
2000 (stabsect_build_psymtabs): Fix indentation.
2001
662fb31b
MS
20022008-01-15 Michael Snyder <msnyder@specifix.com>
2003
2004 * corelow.c (core_xfer_partial): Comment, cut/paste error.
2005
c1766e7d
PM
20062008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
2007
2008 * win32-nat.c (win32_create_inferior): Restore code calling
2009 CloseHandle on ProcessInformation structure.
2010
5ed10e6e
NH
20112008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
2012
2013 * configure.ac: Check for void * as 3 argument of ptrace.
2014 * configure: regenerate.
2015
be8626e0
MD
20162008-01-11 Markus Deuling <deuling@de.ibm.com>
2017
2018 * alpha-tdep.c (alpha_heuristic_proc_start)
2019 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
2020 current_gdbarch by gdbarch.
2021
2022 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
2023 current architecture by frame_info. Update alpha_heuristic_proc_start
2024 call.
2025
2026 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
2027 get_frame_arch to get at the current architecture by frame_info. Update
2028 alpha_sigtramp_register_address call.
2029
2030 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
2031 current_gdbarch by gdbarch. Update caller.
2032 (convert_to_extended, convert_from_extended): Add endianess parameter
2033 for comparison. Update caller.
2034 (arm_extract_return_value, arm_store_return_value): Use
2035 get_regcache_arch to get at the current architecture.
2036
2037 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
2038 current_gdbarch by gdbarch. Update caller.
2039 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
2040 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
2041
2042 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
2043 gdbarch as parameter. Update caller.
2044 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
2045 current_gdbarch by gdbarch. Update caller.
2046
2047 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
2048 update caller. Replace current_gdbarch by gdbarch.
2049
2050 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
2051 the current architecture. Replace current_gdbarch by gdbarch.
2052 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2053 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
2054 expression. Add gdbarch as parameter and replace current_gdbarch with
2055 it. Update caller.
2056 (M6811_TDEP): Remove.
2057 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
2058 architecture.
2059 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
2060 current_gdbarch by gdbarch. Update caller.
2061
2062 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
2063 update caller.
2064 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
2065 by gdbarch.
2066
2067 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
2068 caller. Relace current_gdbarch by gdbarch.
2069 (altivec_register_p, spe_register_p): Likewise.
2070 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
2071 parameter.
2072 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
2073 altivec_register_p and spe_register_p.
2074
2075 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
2076 caller. Replace current_gdbarch by gdbarch.
2077 (score_analyze_prologue): use get_frame_arch to get at the current
2078 architecture.
2079
2080 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
2081 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
2082 current_gdbarch by gdbarch. Update caller.
2083 (sparc_frame_cache): Use get_frame_arch to get at the current
2084 architecture.
2085 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
2086 sparc_analyze_prologue.
2087
2088 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
2089 parameter.
2090
ed49a04f
MD
20912008-01-11 Markus Deuling <deuling@de.ibm.com>
2092
2093 * exec.c: #include "arch-utils.h"
2094 (print_section_info): Use gdbarch_from_bfd to get at the
2095 current architecture. Replace current_gdbarch. Fix indention. Replace
2096 deprecated_print_address_numeric by paddress.
2097 * Makefile.in (exec.o) Add dependency to arch-utils.h.
2098
2099 * valprint.c (val_print_string): Replace
2100 deprecated_print_address_numeric.
2101 * tracepoint.c (trace_mention, scope_info): Likewise.
2102 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
2103 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
2104 (maintenance_check_symtabs): Likewise.
2105 * symfile.c (list_overlays_command): Likewise.
2106 * stack.c (frame_info, print_block_frame_labels): Likewise.
2107 * printcmd.c (print_address, print_address_demangle)
2108 (address_info): Likewise.
2109 * corefile.c (memory_error): Likewise.
2110 * infcmd.c (jump_command): Likewise.
2111 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
2112 (mention, delete_breakpoint): Likewise.
2113 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
2114 * dwarf2read.c (dump_die): Likewise.
2115 * ada-valprint.c (ada_val_print_1): Likewise.
2116 * f-valprint.c (f_val_print): Likewise.
2117 * linux-fork.c (info_forks_command): Likewise.
2118 * m32r-com.c (m32r_load_section, m32r_load)
2119 (m32r_upload_command): Likewise.
2120
2121 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
2122
6093d2eb
MD
21232008-01-11 Markus Deuling <deuling@de.ibm.com>
2124
2125 * gdbarch.sh (skip_prologue): Add gdbarch
2126 as parameter.
2127 * gdbarch.{c,h}: Regenerate.
2128
2129 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
2130 * amd64-tdep.c (amd64_skip_prologue): Likewise.
2131 * avr-tdep.c (avr_skip_prologue): Likewise.
2132 * cris-tdep.c (cris_skip_prologue): Likewise.
2133 * frv-tdep.c (frv_skip_prologue): Likewise.
2134 * h8300-tdep.c (h8300_skip_prologue): Likewise.
2135 * hppa-tdep.c (hppa_skip_prologue): Likewise.
2136 * i386-tdep.c (i386_skip_prologue): Likewise.
2137 * ia64-tdep.c (ia64_skip_prologue): Likewise.
2138 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
2139 * m32r-tdep.c (m32r_skip_prologue): Likewise.
2140 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
2141 * m68k-tdep.c (m68k_skip_prologue): Likewise.
2142 * m88k-tdep.c (m88k_skip_prologue): Likewise.
2143 * mep-tdep.c (mep_skip_prologue): Likewise.
2144 * mips-tdep.c (mips_skip_prologue): Likewise.
2145 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
2146 * mt-tdep.c (mt_skip_prologue): Likewise.
2147 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
2148 * score-tdep.c (score_skip_prologue): Likewise.
2149 * sh64-tdep.c (sh64_skip_prologue): Likewise.
2150 * sh-tdep.c (sh_skip_prologue): Likewise.
2151 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
2152 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
2153 * spu-tdep.c (spu_skip_prologue): Likewise.
2154 * v850-tdep.c (v850_skip_prologue): Likewise.
2155 * vax-tdep.c (vax_skip_prologue): Likewise.
2156 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
2157 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
2158
2159 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
2160 current_gdbarch by gdbarch.
2161 * m32c-tdep.c (m32c_skip_prologue): Likewise.
2162 * s390-tdep.c (s390_skip_prologue): Likewise.
2163
72f5cf0e
DE
21642008-01-10 Doug Evans <dje@google.com>
2165
2166 * defs.h (struct continuation_arg): Fix typo in comment.
2167 * target.c (target_translate_tls_address): Fix comment spelling error.
2168
689e4e2d
TJB
21692008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
2170
2171 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
2172 (DOUBLEST_SCAN_FORMAT): Likewise.
2173 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
2174 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
2175 * c-exp.y (parse_number): Likewise.
2176 * jv-exp.y (parse_number): Likewise.
2177 * objc-exp.y (parse_number): Likewise.
2178 * p-exp.y (parse_number): Likewise.
2179
ab0d6e0d
JB
21802008-01-09 Joel Brobecker <brobecker@adacore.com>
2181
2182 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
2183 (check_typedef): Likewise.
2184
0aea4bf3
LM
21852008-01-09 Luis Machado <luisgpm@br.ibm.com>
2186
2187 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
2188 seen_double_big_d, treat the new H, D, and DD modifiers as length
2189 modifiers.
2190
137033e9
JB
21912008-01-08 Joel Brobecker <brobecker@adacore.com>
2192
2193 * dwarf2read.c (read_enumeration_type): Add comment.
2194
dda297ec
TJB
21952008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
2196
2197 * config.in: Regenerate.
2198
a93c0eb6
JB
21992008-01-08 Joel Brobecker <brobecker@adacore.com>
2200
2201 * ada-lang.c (ada_convert_actual): Renames convert_actual.
2202 Make non-static.
2203 (ada_convert_actuals): Delete.
2204 * ada-lang.h (ada_convert_actual): Add declaration.
2205 (ada_convert_actuals): Remove declaration.
2206 * infcall.c: #include "ada-lang.h".
2207 (value_arg_coerce): Add new parameter sp. Update function
2208 documetnation. Add handling of Ada function call parameters.
2209 * Makefile.in (infcall.o): Update dependencies.
2210
a84a8a0d
JB
22112008-01-08 Paul Hilfinger <hilfinger@adacore.com>
2212
2213 * ada-lang.c (ensure_lval): Fix value lval kind.
2214 (convert_actual): Add handling for arguments passed by reference.
2215
d7f98cce
DE
22162008-01-08 Doug Evans <dje@google.com>
2217
2218 * dbxread.c (read_dbx_symtab): Fix indentation.
2219
4ef30785
TJB
22202008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
2221
2222 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
2223 (valarith.o): Depend on dfp.h.
2224 (valops.o): Likewise.
2225 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
2226 (set_decnumber_context): New function.
2227 (decimal_check_errors): Likewise.
2228 (decimal_from_number): Likewise.
2229 (decimal_to_number): Likewise.
2230 (decimal_from_string): Use set_decnumber_context and
2231 decimal_check_errors.
2232 (decimal_from_integral): New function.
2233 (decimal_from_floating): Likewise.
2234 (decimal_to_double): Likewise.
2235 (promote_decimal): Likewise.
2236 (decimal_binop): Likewise.
2237 (decimal_is_zero): Likewise.
2238 (decimal_compare): Likewise.
2239 (decimal_convert): Likewise.
2240 * dfp.h (decimal_from_integral): New prototype.
2241 (decimal_from_floating): Likewise.
2242 (decimal_to_double): Likewise.
2243 (decimal_binop): Likewise.
2244 (decimal_is_zero): Likewise.
2245 (decimal_compare): Likewise.
2246 (decimal_convert): Likewise.
2247 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
2248 call to value_from_decfloat.
2249 * valarith.c: Include dfp.h.
2250 (value_args_as_decimal): New function.
2251 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
2252 (value_logical_not): Likewise.
2253 (value_equal): Likewise.
2254 (value_less): Likewise.
2255 (value_pos): Likewise.
2256 (value_neg): Formatting fix.
2257 * valops.c: Include dfp.h.
2258 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
2259 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
2260 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
2261 (value_from_decfloat): Remove expect_type argument.
2262 * value.h (value_from_decfloat): Update prototype.
2263
a7c02bc8
VP
22642008-01-07 Vladimir Prus <vladimir@codesourcery.com>
2265
2266 Ignore change in name of dynamic linker during
2267 execution on Solaris. This also unbreaks pending breakpoints.
2268
2269 * solist.h (struct target_so_ops): New field same.
2270 * solib-svr4.c (svr4_same): New.
2271 (_initialize_svr4_solib): Register svr4_same.
2272 * solib.c (update_solib_list): Use ops->same, if available.
2273
610dd7f9
CF
22742008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
2275
2276 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
2277 when using MS-DOS paths.
2278
7a404eba
PA
22792008-01-05 Pedro Alves <pedro@codesourcery.com>
2280
2281 * NEWS: Mention --pid and --core command line behaviour changes.
2282
a4d9b460
PA
22832008-01-05 Pedro Alves <pedro@codesourcery.com>
2284
2285 * main.c (captured_main): Remove 'count' varible and the
2286 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
2287 --pid options were issued simultaneously. If an explicit pid
2288 option was passed, don't fallback to core file. Detect extra
2289 arguments better in the presence of explicit pid or core
2290 arguments.
2291
0c281816
JB
22922008-01-05 Joel Brobecker <brobecker@adacore.com>
2293
2294 * ada-lang.c (ada_which_variant_applies): Correctly compute
2295 the value of the discriminant when the variant record is packed.
2296
babe1480
JB
22972008-01-04 Joel Brobecker <brobecker@adacore.com>
2298
2299 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
2300 that are used to differentiate homonyms.
2301
727e3d2e
JB
23022008-01-04 Jerome Guitton <guitton@adacore.com>
2303
2304 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
2305 when the type is an anonymous pointer type.
2306 (ada_check_typedef): Avoid a seg fault when the type is null.
2307 * ada-typeprint.c (print_array_type): Add support for pointer
2308 to packed arrays.
2309
bb28a9dc
JB
23102008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
2311
2312 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
2313
6799def4
JB
23142008-01-04 Joel Brobecker <brobecker@adacore.com>
2315
2316 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
2317 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
2318
d3353bbd
JB
23192008-01-04 Joel Brobecker <brobecker@adacore.com>
2320
2321 * ada-exp.y (chop_separator): New function.
2322 (write_selectors): Rewrite to re-use chop_separator.
2323 (ada_nget_field_index, get_symbol_field_type): New functions.
2324 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
2325 expressions.
2326
82cf6c60
TJB
23272008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
2328
2329 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
2330 of SYMBOL_VALUE when working with function symbols.
2331
b3dbf008
JB
23322008-01-03 Joel Brobecker <brobecker@adacore.com>
2333
2334 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
2335 expressions. These expressions do not need to be rewriten.
2336
02eb380e
JB
23372008-01-03 Joel Brobecker <brobecker@adacore.com>
2338
2339 * dwarf2read.c (read_enumeration_type): Flag type as stub if
2340 the given die is a declaration.
2341
abb68b3e
JB
23422008-01-03 Joel Brobecker <brobecker@adacore.com>
2343
2344 * ada-lang.c (ada_array_bound_from_type): Make non-static.
2345 Handle properly the case when the index type is an enumerated type.
2346 Do not return the subtype of the bounds type, just return the
2347 bounds type directly - this is not needed and is more consistent
2348 with what we do for arrays when no XA parallel type exists.
2349
f192137b
JB
23502008-01-03 Joel Brobecker <brobecker@adacore.com>
2351
2352 * ada-lang.c (static_unwrap_type): Add forward declaration.
2353 (template_to_static_fixed_type): Fields of dynamic types sometimes
2354 also need to be unwrapped. Take this into account.
2355 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
2356 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
2357 * ada-typeprint.c (ada_print_type): Get the typename from
2358 the original type, not the base type.
2359
1ed6ede0
JB
23602008-01-03 Jerome Guitton <guitton@adacore.com>
2361
2362 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
2363 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
2364 Update calls to ada_to_fixed_type.
2365 (ada_template_to_fixed_record_type_1): Ditto, but without looking
2366 for the tag.
2367 (ada_to_fixed_type): Add check_tag parameter; do not look for
2368 tag if null. When looking for a tag, use a fixed record type.
2369 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
2370 * ada-valprint.c (printable_val_type, ada_value_print): Update
2371 calls to ada_to_fixed_type.
2372
542a88d0
LM
23732008-01-03 Luis Machado <luisgpm@br.ibm.com>
2374
2375 * doublest.c (convert_floatformat_to_doublest): Call
2376 floatformat_to_doublest instead of floatformat_to_double and use
2377 DOUBLEST variables.
2378 (convert_doublest_to_floatformat): Call floatformat_from_doublest
2379 instead of floatformat_from_double and use DOUBLEST variables.
2380
dc2bbab2
NH
23812008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
2382
2383 * MAINTAINERS (Write After Approval): Add self.
2384
8b60591b
JB
23852008-01-03 Joel Brobecker <brobecker@adacore.com>
2386
2387 * symfile.c (set_initial_language): Make non-static.
2388 * symfile.h (set_initial_language): Add declaration.
2389 * language.c: #include "symfile.h".
2390 (set_language): Call set_initial_language if the frame language
2391 could not be determined.
2392
ceef53c1
JB
23932008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
2394
2395 * eval.c (evaluate_subexp_for_address): Provide frame address to
2396 locate_var_value only if it will be needed.
2397
ef29ce1a
JK
23982008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2399
2400 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
2401
0a07e705
JB
24022008-01-02 Joel Brobecker <brobecker@adacore.com>
2403
2404 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
2405 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
2406 This is needed to make sure that any other treatment applied
2407 to the resulting value does not fail for spurious reason,
2408 such as trying to take the address of this value.
2409
f58b38bf
JB
24102008-01-02 Joel Brobecker <brobecker@adacore.com>
2411
2412 * ada-lang.c (ada_value_equal): Dereference reference types when
2413 comparing arrays.
2414
9b254dd1
DJ
24152008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
2416
2417 Updated copyright notices for most files.
2418
33605d39
CF
24192008-01-01 Christopher Faylor <me+gdb@cgf.cx>
2420
2421 * win32-nat.c (psapi_module_handle): Remove static.
2422 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
2423 return first module found if base_address is zero. Don't initialize
2424 psapi function pointers here. Convert to cygwin paths when
2425 appropriate.
2426 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
2427 executable name. Use get_module_name when that fails or when
2428 !__CYGWIN__.
2429 (_initialize_psapi): New function. Initialize psapi stuff before it is
2430 needed or issue a warning if it is not found. Move psapi_module_handle
2431 here.
2432
29480c32
JB
24332008-01-01 Joel Brobecker <brobecker@adacore.com>
2434
2435 * ada-lang.c (ada_remove_trailing_digits): New function.
2436 (ada_remove_po_subprogram_suffix): New function.
2437 (ada_decode): Improve. Move the description of the algorithm
2438 directly inside the code, instead of in the function global
2439 description.
2440
969a1360
JB
24412008-01-01 Joel Brobecker <brobecker@adacore.com>
2442
2443 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
2444 and always print the dereferenced value.
2445
b7789565
JB
24462008-01-01 Joel Brobecker <brobecker@adacore.com>
2447
2448 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
2449 of the case where the first argument is a reference.
2450 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
2451
73fb9985
JB
24522008-01-01 Joel Brobecker <brobecker@adacore.com>
2453
2454 Implement support for Ada interface types.
2455
2456 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
2457 (ada_is_ignored_field): Ignore fields that are a dispatch table
2458 of a tagged type.
2459
636265b6
JB
24602008-01-01 Joel Brobecker <brobecker@adacore.com>
2461
2462 * top.c (print_gdb_version): Update copyright year.
2463
9d200a2e 24642008-01-01 Joel Brobecker <brobecker@adacore.com>
b7589f7d 2465
9d200a2e
JB
2466 * ChangeLog-2007: New ChangeLog rotation.
2467 * ChangeLog: Reset for 2008.
2468 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
2469 ChangeLog-2007.
b7589f7d 2470
9d200a2e 2471For older changes see ChangeLog-2007.
c906108c
SS
2472\f
2473Local Variables:
2474mode: change-log
2475left-margin: 8
2476fill-column: 74
2477version-control: never
57da7796 2478coding: utf-8
c906108c 2479End:
This page took 1.157914 seconds and 4 git commands to generate.