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