]> Git Repo - binutils.git/blob - gdb/ChangeLog
* target.c (target_read_until_error): New.
[binutils.git] / gdb / ChangeLog
1 2008-06-26  Vladimir Prus  <[email protected]>
2
3         * target.c (target_read_until_error): New.
4         * target.h (target_read_until_error): Declare.
5         * mi/mi-main.c (mi_cmd_data_read_memory): Use
6         target_read_until_error.
7
8 2008-06-25  Jan Kratochvil  <[email protected]>
9
10         Fix a memory leak found by Hui Zhu <[email protected]>.
11         * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
12         after the DECFLOAT detection to fix a memory leak.  Remove the
13         redundant NUM initialization.  Protect the DECFLOAT detection memory
14         access before the P block.  Restore the P memory content for the
15         DECFLOAT detection.
16
17 2008-06-25  Vladimir Prus  <[email protected]>
18
19         Kill the return value for all MI command functions.
20         * mi/mi-cmds.h (enum mi_cmd_result): Remove.
21         (mi_cmd_argv_ftype): Change return type to void.
22
23         * mi/mi-main.c: Adjust all function that implement
24         MI commands to return nothing.
25         (struct captured_mi_execute_command_actions):
26         Remove the rc field.
27         (mi_cmd_execute): Return nothing.
28         (mi_execute_async_cli_command): Return nothing.
29         (mi_cmd_exec_interrupt): Don't print ^done here.
30         (mi_cmd_target_select): Don't print ^connected here.
31         (captured_mi_execute_command): Don't check for MI_CMD_DONE.
32         Special-case -target-select and output ^connected, not ^done.
33
34         * mi/mi-cmd-break.c: Adjust.
35         * mi/mi-cmd-disas.c: Adjust.
36         * mi/mi-cmd-env.c: Adjust.
37         * mi/mi-cmd-file.c: Adjust.
38         * mi/mi-cmd-stack.c: Adjust.
39         * mi/mi-cmd-target.c: Adjust.
40         * mi/mi-cmd-var.c: Adjust.
41         * mi/mi-interp.c: Adjust.
42         * mi/mi-symbol-cmds.c: Adjust.
43
44 2008-06-25  Vladimir Prus  <[email protected]>
45
46         Emit ^running via observer.
47         * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
48         ^running here.
49         (mi_on_resume): Print ^running if not previously output.
50         * mi/mi-main.c (running_result_record_printed): New.
51         (captured_mi_execute_command): Reset
52         running_result_record_printed.  Use running_result_record_printed
53         to decide if we should skip ^done.
54         (mi_execute_async_cli_command): Don't print ^running here.
55         * mi/mi-main.h (current_token, running_result_record_printed):
56         Declare.
57
58 2008-06-24  Michael Snyder  <[email protected]>
59
60         * infrun.c (_initialize_infrun): White space and typo fix.
61
62 2008-06-23  Christopher Faylor  <[email protected]>
63
64         * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
65         (do_initial_win32_stuff): Fix problem with inability to set breakpoints
66         when first loading DLL with "dll" command.
67
68 2008-06-19  Pierre Muller  <[email protected]>
69
70         * gnu-nat.c (proc_string): Use capital T for "Thread".
71  
72 2008-06-19  Pierre Muller  <[email protected]>
73
74         * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
75  
76 2008-06-18  Joel Brobecker  <[email protected]>
77
78         * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
79         the target cannot run.
80
81 2008-06-18  Joel Brobecker  <[email protected]>
82
83         * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
84         we're attaching to a running process.
85
86 2008-06-18  Pierre Muller  <[email protected]>
87
88         * win32-nat.c (handle_load_dll): Give dll name and load address
89         if debug_events is on.
90         (handle_unload_dll): Likewise.
91
92 2008-06-14  Vladimir Prus  <[email protected]>
93
94         Don't suppress *running when doing finish.
95         * infcall.c (call_function_by_hand): Set both
96         suppress_resume_observer and suppress_stop_observer.
97         * infcmd.c (suppress_run_stop_observers): Split into...
98         (suppress_resume_observer, suppress_stop_observer): ...those.
99         (finish_command_continuation): Clear suppress_stop_observer.
100         (finish_command): Set suppress_stop_observer.
101         * inferior.h (suppress_run_stop_observers): Split into...
102         (suppress_resume_observer, suppress_stop_observer): ...those.
103         * infrun.c (normal_stop): Check for suppress_stop_observer.
104         * thread.c (set_running): Check for suppress_resume_observer.
105
106 2008-06-12  Pedro Alves  <[email protected]>
107             Pierre Muller  <[email protected]>
108
109         * gdbarch.sh (gdbarch_skip_main_prologue): New.
110         * gdbarch.h, gdbarch.c: Regenerate.
111         * i386-tdep.h (i386_skip_main_prologue): Declare.
112         * i386-tdep.c (i386_skip_main_prologue): New.
113         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register 
114         i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
115         * symtab.c (find_function_start_sal): When pc points at the "main"
116         function, call gdbarch_skip_main_prologue.
117
118 2008-06-11  Daniel Jacobowitz  <[email protected]>
119
120         * value.c (value_primitive_field): Fetch lazy register values.
121
122 2008-06-11  Pedro Alves  <[email protected]>
123
124         * NEWS: Mention support removal of undocumented S AA p PID stop
125         reply packet.
126
127         * remote.c (remote_wait): Remove undocumented S AA p PID support.
128
129 2008-06-10  Stan Shebs  <[email protected]>
130
131         * MAINTAINERS: Update my affiliation and address.
132
133 2008-06-10  Andreas Schwab  <[email protected]>
134
135         * top.c (print_gdb_version): Don't print final newline.
136
137 2008-06-10  Vladimir Prus  <[email protected]>
138
139         Implement *running.
140         * Makefile.in: Update dependencies.
141         * gdbthread.h (struct thread_info): New field
142         running_.
143         (set_running, is_running): New.
144         * thread.c (set_running, is_running): New.
145         * inferior.h (suppress_normal_stop_observer): Rename to...
146         (suppress_run_stop_observers): ..this.
147         * infcmd.c (suppress_normal_stop_observer): Rename to...
148         (suppress_run_stop_observers): ..this.
149         (finish_command_continuation, finish_command): Adjust.
150         * infcall.c (call_function_by_hand): Adjust.
151         * infrun.c (normal_stop): Call set_running.
152         * target.c (target_resume): New.  Call set_running.
153         * target.h (target_resume): Convert from macro to
154         a function.
155
156         * mi/mi-interp.c (mi_on_resume): New.
157         (mi_interpreter_init): Register mi_on_resume.
158
159 2008-06-10  Vladimir Prus  <[email protected]>
160
161         Use observers to report stop events in MI.
162         * mi/mi-interp.c (mi_on_normal_stop): New.
163         (mi_interpreter_init): Register mi_on_normal_stop.
164         (mi_interpreter_exec_continuation): Remove.
165         (mi_cmd_interpreter_exec): Don't register the above.
166         * mi/mi-main.c (captured_mi_execute_command): Don't care
167         about sync_execution.
168         (mi_execute_async_cli_command): Don't install continuation.  Don't
169         print *stopped.
170         (mi_exec_async_cli_cmd_continuation): Remove.
171
172 2008-06-10  Vladimir Prus  <[email protected]>
173
174         Suppress normal stop observer when it's problematic.
175         * inferior.h (suppress_normal_stop_observer): New.
176         * infcall.c (call_function_by_hand): Disable stop events when
177         doing function calls.
178         * infmcd.c (suppress_normal_stop_observer): New.
179         (finish_command_continuation): Call normal_stop observer
180         explicitly.
181         (finish_command): Disable stop events inside proceed.
182         * infrun.c (normal_stop): Don't call normal stop observer if
183         suppressed of if multi-step is in progress.
184
185 2008-06-10  Vladimir Prus  <[email protected]>
186
187         Remove stale code.
188         * infrun.c (finish_command): Don't pass cleanup
189         to continuation.
190         (finish_command_continuation): Don't grab cleanup from
191         the passed data, as we don't use, and cannot, use it anyway.
192
193 2008-06-10  Vladimir Prus  <[email protected]>
194
195         Introduce common cleanup for restoring integers.
196         * defs.h (make_cleanup_restore_integer): New declaration.
197         (struct cleanup): New field free_arg.
198         (make_my_cleanup_2): New.
199         * utils.c (restore_integer_closure, restore_integer)
200         (make_cleanup_restore_integer): New.
201         (make_my_cleanup): Initialize the free_arg field and
202         renamed to make_my_cleanup_2.
203         (do_my_cleanups): Call free_arg.
204         (discard_cleanups): Call free_arg.
205         * breakpoint.c (restore_always_inserted_mode): Remove.
206         (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
207
208 2008-06-09  Doug Evans  <[email protected]>
209
210         * remote.c (remote_wait): Include beginning of malformed packet
211         in error output.
212
213 2008-06-09  Tom Tromey  <[email protected]>
214
215         * completer.c (complete_line): Don't special-case
216         expression_completer.
217         (expression_completer): Only pass last word to
218         location_completer.
219         * c-exp.y (yylex): Check 'token', not 'operator'.
220
221 2008-06-09  Daniel Jacobowitz  <[email protected]>
222
223         * configure.ac (build_warnings): Add -Wno-format for mingw.
224         * configure: Regenerated.
225
226 2008-06-07  Daniel Jacobowitz  <[email protected]>
227
228         * NEWS: Make indentation consistent.  Move exec tracing entry out
229         of remote packet list.
230
231 2008-06-06  Tom Tromey  <[email protected]>
232
233         * value.h (evaluate_subexpression_type, extract_field_op):
234         Declare.
235         * printcmd.c (_initialize_printcmd): Use expression_completer for
236         'p', 'inspect', 'call'.
237         * parser-defs.h (parse_field_expression): Declare.
238         * parse.c: Include exceptions.h.
239         (in_parse_field, expout_last_struct): New globals.
240         (mark_struct_expression): New function.
241         (prefixify_expression): Return int.
242         (prefixify_subexp): Return int.  Use expout_last_struct.
243         (parse_exp_1): Update.
244         (parse_exp_in_context): Add 'out_subexp' argument.  Handle
245         in_parse_field.
246         (parse_field_expression): New function.
247         * expression.h (parse_field_expression): Declare.
248         (in_parse_field): Likewise.
249         * eval.c (evaluate_subexpression_type): New function.
250         (extract_field_op): Likewise.
251         * completer.h (expression_completer): Declare.
252         * completer.c (expression_completer): New function.
253         (count_struct_fields, add_struct_fields): New functions.
254         * c-exp.y (yyparse): Redefine.
255         (COMPLETE): New token.
256         (exp): New productions.
257         (saw_name_at_eof, last_was_structop): New globals.
258         (yylex): Return COMPLETE when needed.  Recognize in_parse_field.
259         (c_parse): New function.
260         * breakpoint.c (_initialize_breakpoint): Use expression_completer
261         for watch, awatch, and rwatch.
262         * Makefile.in (parse.o): Depend on exceptions_h.
263
264 2008-06-06  Paul Pluzhnikov  <[email protected]>
265
266         PR gdb/1147
267         * gdb/valopts.c (find_overload_match): Handle references
268         to pointers.
269
270 2008-06-06  Paul N. Hilfinger  <[email protected]>
271
272         * ada-lang.c (ada_value_assign): Correct big-endian case to take into
273         account the bitsize of the 'from' operand.
274
275 2008-06-06  Pedro Alves  <[email protected]>
276
277         * annotate.h (annotate_thread_changed): Declare.
278
279 2008-06-06  Nick Roberts  <[email protected]>
280
281         * annotate.c (annotate_thread_changed): New function.
282         * thread.c (thread_command) : Use it.
283         * infrun.c (normal_stop): Use it.
284
285 2008-06-05  Vladimir Prus  <[email protected]>
286             Nathan Sidwell  <[email protected]>
287             Joseph Myers  <[email protected]>
288
289         * acinclude.m4: Include ../config/acx.m4.
290         * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
291         * configure, config.in: Regenerate.
292         * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
293         address.
294         * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
295
296 2008-06-05  Pedro Alves  <[email protected]>
297
298         Replace 'target async' by 'maintenance set remote-async' and
299         'target remote' combination.
300
301         * remote.c (remote_async_wait): Merge into remote_wait, and
302         remove.
303         (remote_async_permitted, remote_async_permitted_set): New
304         variables.
305         (set_maintenance_remote_async_permitted)
306         (show_maintenance_remote_async_permitted): New functions.
307         (remote_async_ops, extended_async_remote_ops): Delete.
308         (remote_async_open, extended_remote_async_open): Delete.
309         (remote_open_1): Drop async_p parameter.  Update callers.  Replace
310         async_p with remote_async_permitted checks.
311         (extended_async_remote_attach): Delete.
312         (remote_resume, remote_async_resume): Merge and leave remote_resume.
313         (remote_async_terminal_inferior): Rename to...
314         (remote_terminal_inferior): ... this, and add
315         remote_async_termitted check.
316         (remote_async_terminal_ours): Rename to...
317         (remote_terminal_ours): ... this, and add remote_async_termitted
318         check.
319         (remote_wait, remote_async_wait): Merge and leave remote_wait
320         only.
321         (remote_kill, remote_async_kill): Merge and leave remote_kill
322         only.
323         (remote_async_mourn, extended_async_remote_mourn): Delete.
324         (extended_remote_create_inferior_1): Drop async_p parameter.
325         Update callers.  Always use extended_remote_ops.
326         (extended_remote_async_create_inferior): Delete.
327         (remote_return_zero): Delete.
328         (init_remote_ops): Register remote_can_async_p, remote_async,
329         remote_async_mask, remote_terminal_inferior and
330         remote_terminal_ours.
331         (remote_can_async_p, remote_is_async_p): Check for
332         remote_async_permitted.
333         (init_remote_async_ops, init_extended_async_remote_ops): Remove.
334         (set_remote_cmd): Don't add async and extended-async targets.
335         (_initialize_remote): Add set/show remote-async maintenance
336         commands.
337
338 2008-06-05  Pedro Alves  <[email protected]>
339
340         * remote.c (kill_kludge): Delete.
341         (remote_wait, remote_async_wait): Don't set it.
342         (remote_kill, remote_async_kill): Don't do anything with it.
343
344 2008-06-05  Pedro Alves  <[email protected]>
345
346         * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
347
348 2008-06-05  Aleksandar Ristovski  <[email protected]>
349
350         * bcache.c (bcache_data): Call deprecated_bcache_added function.
351         (deprecated_bcache_added): New function name. Body of function 
352         bcache_data is used here with the addition of 'added' argument. 
353         * bcache.h (deprecated_bcache_added): New function.
354         * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
355         work from add_psymbol_to_list - initialises partial symbol and stashes
356         it in objfile's cache.
357         (append_psymbol_to_list): New helper function, takes other part of 
358         work from add_psymbol_to_list - adds partial symbol to the given list.
359         (add_psymbol_to_list): Call helper functions instead of doing work 
360         here. If adding to global list, do not duplicate partial symbols in the
361         partial symtab.
362
363 2008-06-05  Aleksandar Ristovski  <[email protected]>
364
365         * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
366         'exception caught|thrown' message.
367
368 2008-06-05  Jan Kratochvil  <[email protected]>
369
370         * Makefile.in: Update dependencies.
371         * dwarf2expr.c: New include "gdb_assert.h".
372         (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
373         (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
374         (execute_stack_op): Error out on too large RECURSION_DEPTH.
375         Increase/decrease RECURSION_DEPTH around the function.
376
377 2008-06-05  Daniel Jacobowitz  <[email protected]>
378
379         * remote.c (get_offsets): Handle a single segment.
380         * symfile.c (symfile_map_offsets_to_segments): Allow more bases
381         than segments.
382
383 2008-06-03  Daniel Jacobowitz  <[email protected]>
384
385         * solib-svr4.c (struct lm_info): Add lm_addr.
386         (main_lm_addr): New.
387         (svr4_default_sos): Set lm_addr.
388         (svr4_current_sos): Set lm_addr and main_lm_addr.
389         (svr4_fetch_objfile_link_map): Rewrite.
390         (svr4_clear_solib): Clear main_lm_addr.
391
392 2008-06-03  Michael Snyder  <[email protected]>
393             Joseph Myers  <[email protected]>
394
395         * mips-tdep.c (mips_eabi_return_value): Replace stub that always
396         returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
397
398 2008-06-02  Roman Zippel <[email protected]>
399
400         * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
401
402 2008-06-02  Roman Zippel <[email protected]>
403
404         * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
405
406 2008-06-01  Joel Brobecker  <[email protected]>
407
408         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
409         treat pointers in data space as function descriptors if the
410         target address is also in the data space.
411
412 2008-05-30  Joel Brobecker  <[email protected]>
413
414         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
415         the trad-frame register value for the SP register.
416
417 2008-05-29  Mark Kettenis  <[email protected]>
418
419         * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
420
421 2008-05-28  Joel Brobecker  <[email protected]>
422
423         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
424         that identifies function descriptors outside of the .opd section.
425
426 2008-05-28  Aleksandar Ristovski  <[email protected]>
427
428         * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
429         temporary catchpoints.  In MI add missing fields 'reason', 'disp', 
430         'bkptno'.
431         (print_mention_exception_catchpoint): Add 'Temporary' for temporary
432         catchpoints.
433         (handle_gnu_v3_exceptions): Use tempflag.
434
435 2008-05-28  Vladimir Prus  <[email protected]>
436
437         Refactor varobj_update interface.
438         * varobj.c (varobj_update): Report changes as vector.  Also
439         return not just a list of varobj, but a list of special structures
440         that tell what exactly has changed.
441         * varobj.h (enum varobj_update_error): Rename to
442         varobj_scope_status.
443         (struct varobj_update_result_t): New.
444         (varobj_update): Adjust prototype.
445         * mi/mi-cmd-var.c: Adjust for changes.
446
447 2008-05-28  Vladimir Prus  <[email protected]>
448
449         * varobj.c (varobj_update): Fix comment typo.
450         Fix indentation.
451
452 2008-05-26  Joel Brobecker  <[email protected]>
453
454         Set the symtab field of symbols read from ECOFF debugging entries.
455         * mdebugread.c (add_symbol): Add new parameter symtab.
456         (parse_symbol): Update calls to add_symbol throughout.
457
458 2008-05-27  Andreas Schwab  <[email protected]>
459
460         * symtab.h (enum address_class): Remove LOC_REGPARM and
461         LOC_COMPUTED_ARG.
462         (struct symbol): Add is_argument.
463         (SYMBOL_IS_ARGUMENT): Define.
464
465         * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
466         * buildsym.c (finish_block): Likewise.
467         * stack.c (print_frame_args, print_block_frame_locals)
468         (print_frame_arg_vars): Likewise.
469         * symtab.c (lookup_block_symbol): Likewise.
470         * tracepoint.c (add_local_symbols): Likewise.
471         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
472
473         * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
474         * dwarf2read.c (new_symbol): Likewise.
475         * mdebugread.c (parse_symbol): Likewise.
476         * stabsread.c (define_symbol): Likewise.
477
478         * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
479         and LOC_COMPUTED_ARG.
480         * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
481         * ax-gdb.c (gen_var_ref): Likewise.
482         * eval.c (evaluate_subexp_for_address): Likewise.
483         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
484         * m2-exp.y (yylex): Likewise.
485         * printcmd.c (address_info): Likewise.
486         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
487         * tracepoint.c (collect_symbol, scope_info): Likewise.
488
489 2008-05-24  Carlos Eduardo Seo  <[email protected]>
490
491         * gdbarch.sh: Added new gdbarch struct
492         core_regset_sections.
493         * gdbarch.c: Refreshed.
494         * gdbarch.h: Refreshed.
495         * regset.h (core_regset_section): Declared.
496         * linux-nat.c (linux_nat_do_thread_registers): Added
497         support for the new gdbarch struct core_regset_sections.
498         * utils.c (host_address_to_string): New function.
499         * defs.h (host_address_to_string): New prototype.
500         * i386-linux-tdep.c (i386_regset_rections): New register
501         sections list for i386.
502           (i386_linux_init_abi): Initialized new gdbarch struct
503           core_regset_sections.
504         * Makefile.in: Updated to reflect dependency changes.
505         * ppc-linux-tdep.c (ppc_regset_sections): Register
506         sections list for ppc.
507           (ppc_linux_init_abi): Initialized new gdbarch struct
508           core_regset_sections
509
510 2008-05-24  Andreas Schwab  <[email protected]>
511
512         * linespec.c (decode_objc): Save current language around call to
513         get_selected_block.
514
515 2008-05-23  Joel Brobecker  <[email protected]>
516
517         * valprint.h (get_array_bounds): Renames get_array_low_bound.
518         * valprint.c (get_array_bounds): Renames get_array_low_bound.
519         Return the proper bound value if the array index type is an
520         enumerated type. Compute the high bound if requested.
521         (val_print_array_elements): Handle the case when the array
522         element has a null size.
523         * ada-valprint.c (print_optional_low_bound): Add handling
524         for empty arrays or arrays of zero-size elements.
525         (ada_val_print_array): New function, extracted out from
526         ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
527         handle empty arrays and arrays of zero-size elements.
528         (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
529         code by call to ada_val_print_array.
530         (ada_value_print): Remove handling of null array.  The handling
531         was incomplete and is now better handled by ada_val_print_array.
532
533 2008-05-23 Markus Deuling  <[email protected]>
534
535         * annotate.c (annotate_source, annotate_frame_begin): Replace
536         deprecated_print_address_numeric with paddress.
537         * cli/cli-cmds.c (list_command, edit_command): Likewise.
538         * tui/tui-stack.c (tui_make_status_line): Likewise.
539
540         * defs.h (deprecated_print_address_numeric): Remove.
541         * printcmd.c (deprecated_print_address_numeric): Remove.
542         * maint.c (maint_print_section_info): Fix comment.
543
544 2008-05-23 Markus Deuling  <[email protected]>
545
546         * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
547         print_binary_chars, print_char_chars): Add byte_order parameter and
548         replace gdbarch_byte_order.
549         (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
550         expressions and remove them.  Remove unused TWO_TO_FOURTH.
551         (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
552         endianness.  Update call to print_hex_chars.
553         * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
554         print_binary_chars, print_char_chars): Add byte_order parameter.
555         * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
556         get at the endianness.  Update print_*_char calls to use byte_order.
557
558 2008-05-22  Ulrich Weigand  <[email protected]>
559
560         * symtab.h (struct symbol): Make "aux_value" member a void pointer
561         instead of a union.
562         (SYMBOL_LOCATION_BATON): Update.
563
564 2008-05-22  Ulrich Weigand  <[email protected]>
565
566         * symtab.h (enum address_class): Remove LOC_BASEREG and
567         LOC_BASEREG_ARG.
568         (struct symbol): Remove "basereg" member of "aux_value" union.
569         (SYMBOL_BASEREG): Remove.
570
571         * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
572         or LOC_BASEREG_ARG.
573         * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
574         (ada_add_block_symbols): Likewise.
575         * ax-gdb.c (gen_var_ref): Likewise.
576         * buildsym.c (finish_block): Likewise.
577         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
578         * m2-exp.y (yylex): Likewise.
579         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
580         * printcmd.c (address_info): Likewise.
581         * stack.c (print_frame_args, print_block_frame_locals): Likewise.
582         (print_frame_arg_vars): Likewise.
583         * symmisc.c (print_symbol): Likewise.
584         * symtab.c (lookup_block_symbol): Likewise.
585         * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
586         (scope_info): Likewise.
587
588 2008-05-22  Ulrich Weigand  <[email protected]>
589
590         * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
591
592         * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
593         * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
594         (ada_add_block_symbols): Likewise.
595         * ax-gdb.c (gen_var_ref): Likewise.
596         * buildsyms.c (finish_block): Likewise.
597         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
598         * m2-exp.y (yylex): Likewise.
599         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
600         * printcmd.c (address_info): Likewise.
601         * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
602         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
603         * symtab.c (lookup_block_symbol): Likewise.
604         * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
605         (scope_info): Likewise.
606
607 2008-05-22  Ulrich Weigand  <[email protected]>
608
609         * symtab.h (enum address_class): Remove LOC_INDIRECT and
610         LOC_HP_THREAD_LOCAL_STATIC.
611
612         * findvar.c (symbol_read_needs_frame, read_var_value): Do not
613         handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
614         (read_var_value): Likewise.
615         * buildsym.c (finish_block): Likewise.
616         * objfiles.c (objfile_relocate): Likewise.
617         * printcmd.c (address_info): Likewise.
618         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
619         * tracepoint.c (scope_info): Likewise.
620
621 2008-05-21 Markus Deuling  <[email protected]>
622            Maxim Grigoriev  <[email protected]>
623
624         * xtensa-tdep.c (xtensa_read_register): Remove.
625         (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
626         argument litbase to call0_frame_cache().
627         (call0_track_op, call0_analyze_prologue)
628         (call0_frame_cache): Use extra argument litbase.
629
630 2008-05-21  Joel Brobecker  <[email protected]>
631
632         * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
633
634 2008-05-21  Ulrich Weigand  <[email protected]>
635
636         * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
637
638 2008-05-21  Ulrich Weigand  <[email protected]>
639
640         * alpha-mdebug-tdep.c: Include "trad-frame.h".
641         (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
642         struct trad_frame_saved_reg *.
643         (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
644         trad_frame_alloc_saved_regs.  Update accesses.  Record previous
645         value of SP as being vfp.
646         (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
647         * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
648
649 2008-05-21  Markus Deuling  <[email protected]>
650
651         * score-tdep.c (score_print_insn): Get the current endianess from
652         disassemble_info instead of gdbarch_byte_order.
653
654 2008-05-21  Pedro Alves  <[email protected]>
655
656         * frame.c (get_prev_frame_1): Build frame id before setting
657         this_frame->prev_p, not after.
658
659 2008-05-21  Nick Roberts  <[email protected]>
660
661         * annotate.c (annotate_new_thread): New function for new-thread
662         annotation.
663         * annotate.h: (annotate_new_thread): New extern.
664         * thread.c (add_thread_with_info): Use it.
665         * Makefile.in (thread.o): Add dependency on annotate.h.
666
667 2008-05-20  Joel Brobecker  <[email protected]>
668
669         * win32-nat.c (win32_wait): Block the control-c event while
670         waiting for a debug event.
671
672 2008-05-19  Pedro Alves  <[email protected]>
673
674         * symtab.h (lookup_symbol_in_language): Update comment.
675         * symtab.c (lookup_symbol_aux_block): Update comment.
676         * ada-lang.c (ada_lookup_symbol_list): Update comment.
677
678 2008-05-19  Ulrich Weigand  <[email protected]>
679
680         * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
681         (lookup_symbol): Likewise.
682         * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
683         (lookup_symbol): Likewise.
684         (search_symbols): Update.
685
686         * linespec.c (find_methods, collect_methods): Update.
687         (add_matching_methods, add_constructors): Update.
688         (decode_compound, decode_dollar, decode_variable): Update.
689         (lookup_prefix_sym): Update.
690
691         (symbol_found): Remove SYM_SYMTAB parameter.
692         Use SYMBOL_SYMTAB (sym) instead.
693
694         * gdbtypes.c (lookup_typename): Update.
695         (lookup_struct, lookup_union, lookup_enum): Update.
696         (lookup_template_type): Update.
697         (check_typedef): Update.
698         * language.c (lang_bool_type): Update.
699         * mdebugread.c (parse_procedure): Update.
700         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
701         * parse.c (write_dollar_variable): Update.
702         * printcmd.c (address_info): Update.
703         * source.c (select_source_symtab): Update.
704         * stack.c (print_frame_args, print_frame_arg_vars): Update.
705         * valops.c (find_function_in_inferior): Update.
706         (value_struct_elt_for_reference): Update.
707         * value.c (value_static_field, value_fn_field): Update.
708
709         * alpha-mdebug-tdep.c (find_proc_desc): Update.
710         * arm-tdep.c (arm_skip_prologue): Update.
711         * mt-tdep.c (mt_skip_prologue): Update.
712         * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
713
714         * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
715         * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
716         (add_defn_to_vec): Likewise.
717         (ada_add_block_symbols): Likewise.
718         (lookup_cached_symbol, cache_symbol): Likewise.
719         (standard_lookup): Update.
720         (ada_lookup_symbol_list): Update.
721
722         * c-valprint.c (c_val_print): Update.
723         * cp-support.c (cp_lookup_rtti_type): Update.
724         * jv-lang.c (java_lookup_class, get_java_object_type): Update.
725         * objc-lang.c (lookup_struct_typedef, find_imps): Update.
726         * p-valprint.c (pascal_val_print): Update.
727         * scm-lang.c (scm_lookup_name): Update.
728
729         * c-exp.y: Update.
730         * f-exp.y: Update.
731         * jv-exp.y: Update.
732         * m2-exp.y: Update.
733         * objc-exp.y: Update.
734         * p-exp.y: Update.
735
736 2008-05-19  Ulrich Weigand  <[email protected]>
737
738         * language.h (struct language_defn): Remove SYMTAB parameter from
739         la_lookup_symbol_nonlocal callback function pointer.
740
741         * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
742         (ada_lookup_encoded_symbol): Likewise.
743         * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
744         Always call fixup_symbol_section.
745         (ada_lookup_symbol): Remove SYMTAB parameter.
746         (ada_lookup_symbol_nonlocal): Likewise.
747         * ada-exp.y (write_object_renaming): Update.
748         (find_primitive_type): Likewise.
749
750         * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
751         (cp_lookup_symbol_namespace): Likewise.
752         * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
753         (lookup_symbol_file): Likewise.
754         (lookup_possible_namespace_symbol): Likewise.
755         (cp_lookup_symbol_nonlocal): Likewise.
756         (cp_lookup_symbol_namespace): Likewise.
757         (cp_lookup_nested_type): Update.
758
759         * scm-valprint.c (scm_inferior_print): Update.
760         * valops.c (value_maybe_namespace_elt): Update.
761
762         * solist.h (struct target_so_ops): Remove SYMTAB parameter from
763         lookup_lib_global_symbol callback function pointer.
764         (solib_global_lookup): Remove SYMTAB parameter.
765         * solib.c (solib_global_lookup): Remove SYMTAB parameter.
766         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
767
768         * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
769         (lookup_symbol_static): Likewise.
770         (lookup_symbol_global): Likewise.
771         (lookup_symbol_aux_block): Likewise.
772         (lookup_global_symbol_from_objfile): Likewise.
773         * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
774         (lookup_symbol_aux_local): Likewise.
775         (lookup_symbol_aux_block): Likewise.
776         (lookup_symbol_aux_symtabs): Likewise.
777         (lookup_symbol_aux_psymtabs): Likewise.
778         (lookup_global_symbol_from_objfile): Likewise.
779         (basic_lookup_symbol_nonlocal): Likewise.
780         (lookup_symbol_static): Likewise.
781         (lookup_symbol_global): Likewise.
782
783         (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
784
785 2008-05-17  Pedro Alves  <[email protected]>
786
787         * remote.c (init_extended_remote_ops): Fix typo.
788
789 2008-05-16  Pedro Alves  <[email protected]>
790
791         * NEWS: Mention new DICOS x86 target configuration.
792
793 2008-05-16  Pedro Alves  <[email protected]>
794             Ulrich Weigand  <[email protected]>
795
796         * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
797         * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
798
799         * symtab.c (fixup_section): Remove prototype.  Add ADDR parameter;
800         use it instead of ginfo->value.address.  Look up minimal symbol by
801         address and name.  Assume OBJFILE is non-NULL.
802         (fixup_symbol_section): Ensure we always have an objfile to look
803         into.  Extract and pass to fixup_section the symbol's address that
804         will match the minimal symbol's address.
805         (fixup_psymbol_section): Likewise.
806
807         (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
808         overlays and the addrmap returned the wrong section.
809
810         * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
811         calling fixup_symbol_section.
812
813 2008-05-16  Ulrich Weigand  <[email protected]>
814
815         * minsyms.c: Include "target.h".
816         (find_solib_trampoline_target): Handle minimal symbols pointing
817         to function descriptors as well.
818         * Makefile.in (minsyms.o): Update dependencies.
819
820         * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
821         (ppc64_standard_linkage1): ... this.  Fix optional instructions.
822         (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
823         (PPC64_STANDARD_LINKAGE1_LEN): ... this.
824         (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
825         (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
826         (ppc64_standard_linkage_target): Rename to ...
827         (ppc64_standard_linkage1_target): ... this.
828         (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
829         (ppc64_skip_trampoline_code): Support three variants of standard
830         linkage stubs.  Call find_solib_trampoline_target to handle
831         glink stubs.
832
833 2008-05-16  Ulrich Weigand  <[email protected]>
834
835         * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
836         ppc64_sysv_abi_adjust_breakpoint_address.
837         * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
838         * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
839
840 2008-05-16  Ulrich Weigand  <[email protected]>
841
842         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
843         (ppc_linux_init_abi): Install find_solib_trampoline_target instead
844         of ppc_linux_skip_trampoline_code.
845
846 2008-05-15  Daniel Jacobowitz  <[email protected]>
847
848         * gdbarch.sh: Delete dwarf_reg_to_regnum.
849         * gdbarch.c, gdbarch.h: Regenerated.
850         * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
851         hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
852         s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
853
854 2008-05-15  Pedro Alves  <[email protected]>
855
856         * linux-nat.c (trap_ptid): Delete.
857         (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
858         Adjust.
859         * linux-thread-db.c (thread_db_wait): Adjust.
860
861 2008-05-15  Joel Brobecker  <[email protected]>
862
863         * linespec.c (decode_line_1): Fix a couple of comments.
864
865 2008-05-15  Alan Modra  <[email protected]>
866
867         * dbxread.c: Formatting.
868         (INTERNALIZE_SYMBOL): Init n_other.
869         (set_namestring): Take pointer to nlist arg rather than struct
870         copy.  Update all callers.
871
872 2008-05-15  Andreas Schwab  <[email protected]>
873
874         * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
875         (dwarf2read.o): Add $(addrmap_h).
876
877 2008-05-14  Ulrich Weigand  <[email protected]>
878
879         * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
880         (ppc64_linux_convert_from_func_ptr_addr): ... to this.  No longer try
881         to handle ppc32 PLT entries.
882         (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
883         only on ppc64.
884
885 2008-05-14  Daniel Jacobowitz  <[email protected]>
886
887         * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
888         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
889         lookup_minimal_symbol_by_pc_section.  Prefer trampolines if requested.
890         (lookup_minimal_symbol_by_pc_section): Use
891         lookup_minimal_symbol_by_pc_section_1.
892         (lookup_solib_trampoline_symbol_by_pc): Likewise.
893
894 2008-05-13  Joel Brobecker  <[email protected]>
895
896         * findcmd.c: Add #include "gdb_stdint.h".
897         * Makefile.in (findcmd.o): Update dependencies.
898
899 2008-05-11  David S. Miller  <[email protected]>
900
901         * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
902         long double size override, Linux does use 128-bit now.
903
904         * sparc-linux-tdep.c (PSR_SYSCALL): Define.
905         (sparc_linux_write_pc): New function.
906         (sparc32_linux_init_abi): Register it.
907         * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
908         (sparc64_linux_write_pc): New function.
909         (sparc64_linux_init_abi): Register it.
910
911         * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
912         dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
913
914 2008-05-11  Ulrich Weigand  <[email protected]>
915
916         * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
917         and info.tdep_info before calling gdbarch_init_osabi.
918
919 2008-05-09  Joel Brobecker  <[email protected]>
920
921         * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
922         the type of the right hand side of the assignment to the type
923         of the left hand side if the left hand side is a convenience
924         variable.
925
926 2008-05-09  Ulrich Weigand  <[email protected]>
927
928         * NEWS: Mention gdbserver bi-arch capability.
929
930 2008-05-09  Doug Evans  <[email protected]>
931
932         New "find" command.
933         * NEWS: Document find command and qSearch:memory packet.
934         * Makefile.in (SFILES): Add findcmd.c.
935         (COMMON_OBJS): Add findcmd.o.
936         (findcmd.o): New rule.
937         * findcmd.c: New file.
938         * target.h (target_ops): New member to_search_memory.
939         (simple_search_memory): Declare.
940         (target_search_memory): Declare.
941         * target.c (simple_search_memory): New fn.
942         (target_search_memory): New fn.
943         * remote.c (PACKET_qSearch_memory): New packet kind.
944         (remote_search_memory): New fn.
945         (init_remote_ops): Init to_search_memory.
946         (init_extended_remote_ops): Ditto.
947         (_initialize_remote): Add qSearch:memory packet config command.
948
949 2008-05-09  Eli Zaretskii  <[email protected]>
950
951         * thread.c (_initialize_thread): Don't use commas and periods in
952         first line of doc string of "set/show print thread-events".
953
954 2008-05-08  Joel Brobecker  <[email protected]>
955
956         * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
957         Update for unwinder changes.
958
959 2008-05-08  Joel Brobecker  <[email protected]>
960
961         * frame.c (get_frame_base_address, get_frame_locals_address)
962         (get_frame_args_address): Pass the correct frame when calling
963         frame_base_find_by_frame.
964
965 2008-05-08  Ulrich Weigand  <[email protected]>
966
967         * remote.c (extended_remote_attach_1): Call target_find_description.
968
969 2008-05-08  Daniel Jacobowitz  <[email protected]>
970
971         * remote.c (extended_remote_create_inferior_1): Clean up
972         before marking the target running.
973
974 2008-05-08  Joel Brobecker  <[email protected]>
975
976         * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
977         changes.
978
979 2008-05-07  Joel Brobecker  <[email protected]>
980
981         * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
982         sparc64-sol2-tdep.c: Update for unwinder changes.
983
984 2008-05-07  Daniel Jacobowitz  <[email protected]>
985
986         * cp-support.c (mangled_name_to_comp): Initialize storage.
987         (unqualified_name_from_comp): Likewise.
988
989 2008-05-07  Jie Zhang  <[email protected]>
990
991         * remote.c (remote_insert_breakpoint): Call get_remote_state
992         after gdbarch_breakpoint_from_pc is called.
993         (remote_insert_hw_breakpoint): Likewise.
994
995 2008-05-06  Joel Brobecker  <[email protected]>
996
997         * valprint.c (val_print): Add new language parameter and use it
998         instead of using the current_language. Update calls to val_print
999         throughout.
1000         (common_val_print): Add new langauge parameter and pass it to
1001         val_print.
1002         * value.h (struct language_defn): Add opaque declaration.
1003         (val_print, common_val_print): Update declarations.
1004         * stack.c (print_frame_args): Update call to common_val_print
1005         using the appropriate language.
1006         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
1007         * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
1008         mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
1009         scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
1010         #include "language.h" if necessary.
1011         Update calls to val_print and common_val_print.
1012         * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
1013         Update dependencies.
1014
1015 2008-05-06  Joel Brobecker  <[email protected]>
1016
1017         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
1018         pointing inside a non-executable section as function descriptors.
1019
1020 2008-05-06  Pedro Alves  <[email protected]>
1021
1022         * inf-loop.c (inferior_event_handler): Run all continuations and
1023         print any language change before running the breakpoint commands.
1024
1025 2008-05-06  Joel Brobecker  <[email protected]>
1026
1027         * frame-unwind.c (frame_unwind_got_bytes): New function.
1028         * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
1029         * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
1030         for unwinder changes.
1031
1032 2008-05-05  Doug Evans  <[email protected]>
1033
1034         * NEWS: Mention new /m modifier for disassemble command.
1035         * cli/cli-cmds.c (print_disassembly): New function.
1036         (disassemble_current_function): New function
1037         (disassemble_command): Recognize /m modifier, print mixed
1038         source+assembly.
1039         (init_cli_cmds): Update disassemble help text.
1040
1041 2008-05-05  Maxim Grigoriev  <[email protected]>
1042
1043         * xtensa-tdep.c: Update for unwinder changes.
1044
1045 2008-05-05  Andreas Schwab  <[email protected]>
1046
1047         Update m68k port for unwinder changes.
1048         * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
1049         (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
1050         (m68k_frame_unwind): Use default_frame_sniffer.
1051         (m68k_frame_sniffer): Remove.
1052         (m68k_frame_base_address): Expect this_frame.
1053         (m68k_dummy_id): Renamed from m68k_unwind_dummy_id.  Expect
1054         this_frame.
1055         (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
1056         dwarf2_append_unwinders, and frame_unwind_append_unwinder.
1057         * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
1058         parameter instead of pc value.
1059         (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
1060         Expect this_frame.
1061         (m68k_linux_sigtramp_frame_this_id)
1062         (m68k_linux_sigtramp_frame_prev_register)
1063         (m68k_linux_sigtramp_frame_sniffer): Update signature.
1064         (m68k_linux_sigtramp_frame_unwind): Use
1065         m68k_linux_sigtramp_frame_sniffer.
1066         (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
1067
1068         * m68klinux-nat.c (store_register): Fix typo.
1069
1070 2008-05-05  Pedro Alves  <[email protected]>
1071
1072         * infcmd.c (step_1): Put thread id on the stack to avoid possible
1073         NULL dereferencing.
1074
1075 2008-05-05  Luis Machado  <[email protected]>
1076
1077         * symfile.c (reread_symbols): Update objfile's entry point.
1078
1079 2008-05-05  Aleksandar Ristovski  <[email protected]>
1080             Joel Brobecker  <[email protected]>
1081
1082         * ada-lang.c: Update throughout to use symbol_matches_domain
1083         instead of matching the symbol domain explictly.
1084         * dwarf2read.c (add_partial_symbol): Do not add new psym for
1085         STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
1086         class as typedefs. See lookup_partial_symbol function.
1087         (new_symbol): Similar to add_partial_symbol, do not create
1088         symbol for the typedef. See lookup_block_symbol.
1089         * symtab.c (symbol_matches_domain): New function, takes care
1090         of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
1091         (lookup_partial_symbol): Use symbol_matches_domain to see if the
1092         found psym domain matches the given domain.
1093         (lookup_block_symbol): Likewise.
1094
1095 2008-05-05  Vladimir Prus  <[email protected]>
1096
1097         * top.c (command_line_handler_continuation): Remove.
1098         (execute_command): Do not install the above.
1099
1100 2008-05-05  Vladimir Prus  <[email protected]>
1101
1102         * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
1103         and catch all exceptions from it.
1104         * top.c (command_line_handler_continuation): Don't
1105         call bpstat_do_action here.
1106
1107 2008-05-04  Daniel Jacobowitz  <[email protected]>
1108
1109         * dwarf2read.c (struct dwarf2_cu): Add type_hash.
1110         (struct die_info): Remove type.
1111         (read_type_die, read_typedef, read_base_type, read_subrange_type)
1112         (read_structure_type, read_enumeration_type, read_array_type)
1113         (read_tag_pointer_type, read_tag_ptr_to_member_type)
1114         (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
1115         (read_tag_string_type, read_subroutine_type, read_set_type)
1116         (read_unspecified_type): Delete prototypes.  Remove check for
1117         already-loaded type.  Return the new type.
1118         (set_die_type): Return the new type.
1119         (reset_die_and_siblings_types): Delete.
1120         (load_comp_unit, load_full_comp_unit): Set type_hash.
1121         (process_queue): Remove call to reset_die_and_siblings_types.
1122         (process_die): Do not read most types here.  Use read_type_die
1123         for others.
1124         (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
1125         (quirk_gcc_member_function_pointer): Return the new type.
1126         (process_structure_scope, process_enumeration_scope): Use
1127         get_die_type and read the DIE's type.
1128         (read_full_die): Do not initialize die->type.
1129         (tag_type_to_type): Use read_type_die.
1130         (read_type_die): Check for already defined types.  Return the
1131         type.
1132         (determine_prefix): Use get_die_type.
1133         (set_die_type): Return the type.
1134         (get_die_type): Take a CU argument.  Check for no type_hash.
1135
1136 2008-05-04  Daniel Jacobowitz  <[email protected]>
1137
1138         * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
1139         locals.
1140
1141 2008-05-04  Pedro Alves  <[email protected]>
1142
1143         * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
1144         and bp_longjmp_resume breakpoints.
1145         (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
1146         meaningful.
1147         (create_longjmp_breakpoint): Don't create bp_longjmp_resume
1148         breakpoints.  Create bp_longjmp breakpoints as momentary
1149         breakpoints.
1150         (enable_longjmp_breakpoint): Delete.
1151         (set_longjmp_breakpoint): New.
1152         (disable_longjmp_breakpoint): Delete.
1153         (delete_longjmp_breakpoint): New.
1154         (set_longjmp_resume_breakpoint): Delete.
1155         (set_momentary_breakpoint_at_pc): New.
1156         (breakpoint_re_set_one): Don't delete bp_longjmp and
1157         bp_longjmp_resume breakpoints.
1158         (breakpoint_re_set): Don't create longjmp and longjmp-resume
1159         breakpoints.
1160
1161         * infrun.c (step_resume_breakpoint): Add comment.
1162         (struct execution_control_state): Delete handling_longjmp member.
1163         (init_execution_control_state). Don't clear handling_longjmp.
1164         (context_switch): Don't context switch handling_longjmp.
1165         (handle_inferior_event): If handling a bp_longjmp breakpoint,
1166         create a bp_longjmp_resume breakpoint, and set it as current
1167         step_resume_breakpoint, then step over the longjmp breakpoint.  If
1168         handling a bp_longjmp_resume breakpoint, don't delete the longjmp
1169         breakpoint, delete the longjmp-resume breakpoint, and stop
1170         stepping.
1171         (currently_stepping): Remove handling_longjmp from expression.
1172         (insert_step_resume_breakpoint_at_sal): Update comment.
1173         (insert_longjmp_resume_breakpoint): New.
1174
1175         * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
1176         (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
1177         declarations.
1178         (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
1179         (set_longjmp_resume_breakpoint): Delete declaration.
1180
1181         * gdbthread.h (save_infrun_state): Remove handling_longjmp
1182         parameter.
1183         (load_infrun_state): Delete *handling_longjmp parameter.
1184         * thread.c (save_infrun_state): Remove handling_longjmp parameter.
1185         Update body.
1186         (load_infrun_state): Delete *handling_longjmp parameter.  Update
1187         body.
1188
1189         * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
1190         (delete_longjmp_breakpoint_cleanup): New.
1191         (step_1): Call set_longjmp_breakpoint instead of
1192         enable_longjmp_breakpoint.  Use delete_longjmp_breakpoint_cleanup
1193         instead of disable_longjmp_breakpoint_cleanup when making cleanup.
1194         (step_1_continuation): Pass thread id in the continuation args to
1195         step_once.
1196         (step_once): Add thread parameter.  Pass thread id the the
1197         continuation.
1198
1199 2008-05-04  Jan Kratochvil  <[email protected]>
1200
1201         Set CU BASE_ADDRESS already from partial DIEs.
1202         * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
1203         BASE_ADDRESS_TYPE.  Set these variables from DW_AT_LOW_PC and
1204         DW_AT_ENTRY_PC.  Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
1205         from these variables if it was still unset.
1206
1207         * Makefile.in: Update dependencies.
1208         * dwarf2read.c: Include "addrmap.h"
1209         (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
1210         (dwarf2_ranges_read): New prototype.
1211         (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
1212         Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
1213         HAS_RANGES_OFFSET, otherwise add there the contiguous range.
1214         (dwarf2_ranges_read): New parameter RANGES_PST, update the function
1215         comment for it.  Add the found ranges to RANGES_PST.  New variable
1216         BASEADDR, initialize it the common way.
1217         (dwarf2_get_pc_bounds): Update the caller for the new parameter.
1218         (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
1219         HAS_RANGES_OFFSET for the later processing.
1220         * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
1221         * symtab.c: Include "addrmap.h"
1222         (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
1223         Move the psymtab locator into ...
1224         (find_pc_sect_psymtab_closer): ... a new function.
1225
1226 2008-05-04  Ulrich Weigand  <[email protected]>
1227
1228         * arch-utils.c (gdbarch_update_p): Use default values for
1229         info.abfd and info.target_desc if they are NULL.
1230         (gdbarch_from_bfd): Remove assertion.
1231         (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
1232         using the current target description.
1233         (gdbarch_info_fill): Do not use default values for info->abfd
1234         and info->target_desc.
1235
1236 2008-05-04  Jan Kratochvil  <[email protected]>
1237
1238         * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
1239
1240 2008-05-04  Ulrich Weigand  <[email protected]>
1241
1242         * inferior.h (read_pc_pid, write_pc_pid): Remove.
1243         * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
1244
1245         * regcache.c (read_pc_pid): Remove, replace by ...
1246         (regcache_read_pc): ... this function.
1247         (write_pc_pid): Remove, replace by ...
1248         (regcache_write_pc): ... this function.
1249         (read_pc, write_pc): Update.
1250
1251         * infrun.c (displaced_step_prepare): Replace read_pc_pid and
1252         write_pc_pid by regcache_read_pc and regcache_write_pc.
1253         (displaced_step_fixup): Likewise.
1254         (resume): Likewise.  Use regcache arch instead of current_gdbarch.
1255         (prepare_to_proceed): Likewise.
1256         (proceed): Likewise.
1257         (adjust_pc_after_break): Likewise.
1258         (handle_inferior_event): Likewise.
1259
1260         * linux-nat.c (cancel_breakpoint): Likewise.
1261         * linux-thread-db.c (check_event): Likewise.
1262         * aix-thread.c (aix_thread_wait): Likewise.
1263         * tracepoint.c (trace_dump_command): Likewise.
1264
1265 2008-05-04  Jan Kratochvil  <[email protected]>
1266
1267         * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
1268         SYMBOL_LOCATION_BATON.
1269
1270 2008-05-04  Vladimir Prus  <[email protected]>
1271
1272         * target.h (struct target_ops): New field to_auxv_parse.
1273         * auxv.c (default_auxv_parse): New, renamed from previous
1274         target_auxv_parse.
1275         (target_auxv_parse): Try to call target method.  Fallback to
1276         default_auxv_parse if not found.
1277         * procfs.c (procfs_auxv_parse): New.
1278         (init_procfs_ops): On Solaris, in 64-bit mode, install
1279         procfs_auxv_parse.
1280
1281 2008-05-03  Adam Nemet  <[email protected]>
1282
1283         * symfile.c (add_symbol_file_command):  Use paddress rather than
1284         hex_string to print the address.
1285
1286 2008-05-03  Ulrich Weigand  <[email protected]>
1287
1288         * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
1289         return the null frame ID to terminate the backtrace.
1290
1291 2008-05-03  Ulrich Weigand  <[email protected]>
1292
1293         * rs6000-tdep.c: Do not include "rs6000-tdep.h".
1294         (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
1295         (SIG_FRAME_PC_OFFSET): Likewise.
1296         (SIG_FRAME_LR_OFFSET): Likewise.
1297         (SIG_FRAME_FP_OFFSET): Likewise.
1298         (rs6000_push_dummy_call): Likewise.
1299         (rs6000_return_value): Likewise.
1300         (rs6000_convert_from_func_ptr_addr): Likewise.
1301         (branch_dest, rs6000_software_single_step): Likewise.
1302         (deal_with_atomic_sequence): Rename to ...
1303         (ppc_deal_with_atomic_sequence): ... this.  Adapt all callers.
1304         Do not call branch_dest; inline required parts of that function.
1305         (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
1306         with SYMBOL_LINKAGE_NAME.
1307         (struct reg, regsize): Delete.
1308         (read_memory_addr): Delete; inline into callers.
1309         (rs6000_skip_prologue): Move after skip_prologue.
1310         (skip_prologue): Remove prototype.
1311         (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
1312         initialization as if this variable were true.  Do not install
1313         ppc64_sysv_abi_adjust_breakpoint_address.
1314
1315         * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
1316         "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
1317         and "breakpoint.h".
1318         (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
1319         (SIG_FRAME_PC_OFFSET): Likewise.
1320         (SIG_FRAME_LR_OFFSET): Likewise.
1321         (SIG_FRAME_FP_OFFSET): Likewise.
1322         (rs6000_push_dummy_call): Likewise.
1323         (rs6000_return_value): Likewise.
1324         (rs6000_convert_from_func_ptr_addr): Likewise.
1325         (branch_dest, rs6000_software_single_step): Likewise.  Replace
1326         tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
1327         (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
1328         rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
1329         Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
1330         Set tdep->lr_frame_offset.  Do not set tdep->text_segment_base.
1331
1332         * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
1333         (AIX_TEXT_SEGMENT_BASE): New macro.
1334         * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
1335         by AIX_TEXT_SEGMENT_BASE.
1336
1337         * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
1338         (struct gdbarch_tdep): Remove text_segment_base member.
1339         * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
1340         ppc64_sysv_abi_adjust_breakpoint_address.
1341
1342         * Makefile.in (rs6000-tdep.o): Update dependencies.
1343         (rs6000-aix-tdep.o): Likewise.
1344
1345 2008-05-03  Luis Machado  <[email protected]>
1346             Thiago Jung Bauermann  <[email protected]>
1347
1348         * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
1349         * doublest.c (convert_typed_floating): Fix typo in comment.
1350         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
1351         * frame-unwind.h (frame_sniffer_ftype): Likewise.
1352         * frame.c (frame_unwind_address_in_block): Likewise.
1353         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
1354         * symtab.h (struct symbol): Likewise.
1355         * tramp-frame.h (struct trad_frame_cache): Likewise.
1356         * value.c (allocate_repeat_value): Likewise.
1357
1358 2008-05-03  Ulrich Weigand  <[email protected]>
1359
1360         * infrun.c (handle_inferior_event): Do not insert breakpoints at
1361         TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
1362
1363 2008-05-03  Pedro Alves  <[email protected]>
1364
1365         * parse.c (parse_exp_in_context): Don't override
1366         expression_context_pc if get_selected_block returned a valid
1367         block.
1368
1369 2008-05-03  Daniel Jacobowitz  <[email protected]>
1370
1371         * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
1372         * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
1373         * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
1374         Delete.
1375         * c-typeprint.c (c_type_print_base): Delete handling of template
1376         instantiations.
1377         * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
1378         (METHOD_PTR_TO_VOFFSET): Delete.
1379         * defs.h (QUIT_FIXME): Delete.
1380         * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
1381         (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
1382         * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
1383         ninstantiations, and instantiations.
1384         (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
1385         (TYPE_FN_FIELD_INLINED): Delete.
1386         * srec.h (SREC_BINARY): Delete.
1387         * symtab.c (symbol_init_demangled_name): Delete.
1388         * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
1389         (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
1390         (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
1391         (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
1392         (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
1393         (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
1394         * target.h (enum thread_control_capabilities): Delete tc_switch.
1395         (target_can_switch_threads): Delete.
1396
1397 2008-05-03  Daniel Jacobowitz  <[email protected]>
1398
1399         * Makefile.in (objfiles.o): Update.
1400         * exec.c (exec_set_section_address): Support p->addr != 0.
1401         * objfiles.c (objfile_relocate): Update exec_ops section
1402         addresses.
1403         * symfile.c (place_section): Move exec_set_section_address call...
1404         (default_symfile_offsets): ...to here.
1405
1406 2008-05-03  Ulrich Weigand  <[email protected]>
1407
1408         * Makefile.in (ppc_linux_tdep_h): New macro.
1409         (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
1410         (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
1411         (powerpc_e500l_c): Likewise.
1412         (ppc-linux-nat.o): Update dependencies.
1413         (ppc-linux-tdep.o): Update dependencies.
1414         (rs6000-tdep.o): Update dependencies.
1415
1416         * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
1417         (ppc_linux_svr4_fetch_link_map_offsets): Remove.
1418         (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
1419         (ppc_supply_reg, ppc_collect_reg): Add prototypes.
1420         (tdesc_powerpc_e500): Remove.
1421
1422         * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
1423         and "features/rs6000/powerpc-altivec64.c".
1424         (ppc_supply_reg, ppc_collect_reg): Make global.
1425         (variants): Use tdesc_powerpc_32 for "powerpc" and
1426         tdesc_powerpc_altivec64 for "powerpc64".
1427         (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
1428
1429         * ppc-linux-tdep.h: New file.
1430
1431         * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
1432         Include "features/rs6000/powerpc-32l.c".
1433         Include "features/rs6000/powerpc-altivec32l.c".
1434         Include "features/rs6000/powerpc-64l.c".
1435         Include "features/rs6000/powerpc-altivec64l.c".
1436         Include "features/rs6000/powerpc-e500l.c".
1437         (ppc_linux_supply_gregset): New function.
1438         (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
1439         (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
1440         (ppc64_linux_gregset): Likewise.
1441         (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
1442         (ppc_linux_trap_reg_p): New function.
1443         (ppc_linux_write_pc): New function.
1444         (ppc_linux_core_read_description): New function.
1445         (ppc_linux_init_abi): Install ppc_linux_write_pc and
1446         ppc_linux_core_read_description.  Install orig_r3 and trap
1447         registers if present in the target description.
1448         (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
1449
1450         * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
1451         (PT_ORIG_R3, PT_TRAP): Define if necessary.
1452         (ppc_register_u_addr): Handle orig_r3 and trap registers.
1453         (fetch_ppc_registers): Likewise.
1454         (store_ppc_registers): Likewise.
1455         (store_register): Likewise.
1456         (ppc_linux_read_description): Check whether AltiVec is supported.
1457         Check whether inferior is 32-bit or 64-bit.  Return the appropriate
1458         Linux target description.
1459
1460         * features/Makefile (WHICH): Use rs6000/powerpc-32l and
1461         rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
1462         Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
1463         of rs6000/powerpc-64.  Use rs6000/powerpc-e500l instead of
1464         rs6000/powerpc-e500.  Update -expedite variables accordingly.
1465
1466         * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
1467         * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
1468         * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
1469         * features/rs6000/powerpc-e500.c: Regenerate.
1470         * features/rs6000/powerpc-32.c: Regenerate.
1471         * features/rs6000/powerpc-64.c: Regenerate.
1472
1473         * features/rs6000/power-linux.xml: New file.
1474         * features/rs6000/power64-linux.xml: New file.
1475         * features/rs6000/powerpc-32l.xml: New file.
1476         * features/rs6000/powerpc-altivec32l.xml: New file.
1477         * features/rs6000/powerpc-64l.xml: New file.
1478         * features/rs6000/powerpc-altivec64l.xml: New file.
1479         * features/rs6000/powerpc-e500l.xml: New file.
1480         * features/rs6000/powerpc-32l.c: New (generated) file.
1481         * features/rs6000/powerpc-altivec32l.c: New (generated) file.
1482         * features/rs6000/powerpc-64l.c: New (generated) file.
1483         * features/rs6000/powerpc-altivec64l.c: New (generated) file.
1484         * features/rs6000/powerpc-e500l.xml: New (generated) file.
1485
1486         * regformats/reg-ppc.dat: Remove.
1487         * regformats/reg-ppc64.dat: Remove.
1488         * regformats/rs6000/powerpc-32.dat: Remove.
1489         * regformats/rs6000/powerpc-64.dat: Remove.
1490         * regformats/rs6000/powerpc-e500.dat: Remove.
1491         * regformats/rs6000/powerpc-32l.dat: New (generated) file.
1492         * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
1493         * regformats/rs6000/powerpc-64l.dat: New (generated) file.
1494         * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
1495         * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
1496
1497 2008-05-03  Pedro Alves  <[email protected]>
1498
1499         * thread.c (delete_thread): Call observer_notify_thread_exit.
1500         * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
1501         thread_exit observer.
1502         (mi_thread_exit): New.
1503
1504 2008-05-03  Thiago Jung Bauermann  <[email protected]>
1505
1506         * breakpoint.c (create_exception_catchpoint): Remove prototype
1507         for already deleted function.
1508         * breakpoint.h (ep_is_exception_catchpoint): Likewise.
1509         * frame.h (show_stack_frame): Remove prototype.
1510         * stack.c (show_stack_frame): Remove empty, unused function.
1511         * source.c (symtab_to_fullname, print_source_lines): Small fix
1512         in comment.
1513         * value.c (show_values): Update comments to mention "show values"
1514         command instead of "info history".
1515
1516 2008-05-02  Ulrich Weigand  <[email protected]>
1517
1518         * linespec.c: Include "target.h".
1519         (minsym_found): Handle minimal symbols pointing to function
1520         descriptors.  Use find_function_start_pc.
1521         * minsyms.c (msymbol_objfile): New function.
1522         * parse.c (write_exp_msymbol): Handle minimal symbols pointing
1523         to function descriptors.
1524         * symtab.c (fixup_section): Only use minimal symbol at the same
1525         address to determine section of a symbol.
1526         (find_function_start_pc): New function.
1527         (find_function_start_sal): Use it.
1528         * symtab.h (msymbol_objfile): Add prototype.
1529         (find_function_start_pc): Likewise.
1530         * value.c: Include "objfiles.h".
1531         (value_fn_field): Handle minimal symbols pointing to function
1532         descriptors. 
1533         * Makefile.in (linespec.o): Update dependencies.
1534         (value.o): Likewise.
1535
1536 2008-05-02  Joel Brobecker  <[email protected]>
1537
1538         * ada-lang.c (unwrap_value): Handle the case where the "F" field
1539         inside a PAD type is a bitfield.
1540
1541 2008-05-02  Ulrich Weigand  <[email protected]>
1542
1543         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
1544         TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
1545         Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
1546         Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
1547         Allow typedefs when checking for function pointer arguments.
1548         Right-align small structs passed on the stack.
1549         (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
1550         TYPE_CODE_CHAR the same as TYPE_CODE_INT.
1551         Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
1552
1553 2008-05-02  Daniel Jacobowitz  <[email protected]>
1554
1555         * Makefile.in (arm-tdep.o): Update.
1556         * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
1557         (struct arm_per_objfile, arm_compare_mapping_symbols): New.
1558         (arm_pc_is_thumb): Use mapping symbols.
1559         (arm_objfile_data_cleanup, arm_record_special_symbol): New.
1560         (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
1561         (_initialize_arm_tdep): Initialize arm_objfile_data_key.
1562         * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
1563         * gdbarch.sh: Add record_special_symbol.
1564         * gdbarch.c, gdbarch.h: Regenerated.
1565         * objfiles.c (struct objfile_data): Add cleanup member.
1566         (register_objfile_data_with_cleanup): New function, from
1567         register_objfile_data.
1568         (register_objfile_data): Use it.
1569         (objfile_free_data): Call clear_objfile_data.
1570         (clear_objfile_data): Call cleanup functions.
1571         * objfiles.h (register_objfile_data_with_cleanup): Declare.
1572
1573 2008-05-02  Daniel Jacobowitz  <[email protected]>
1574
1575         * objfiles.c (init_entry_point_info): Handle shared libraries.
1576
1577 2008-05-02  Daniel Jacobowitz  <[email protected]>
1578
1579         * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
1580         lowest_pc.
1581
1582 2008-05-02  Jim Blandy  <[email protected]>
1583             Pedro Alves  <[email protected]>
1584
1585         Implement displaced stepping.
1586
1587         * gdbarch.sh (max_insn_length): New 'variable'.
1588         (displaced_step_copy, displaced_step_fixup)
1589         (displaced_step_free_closure, displaced_step_location): New
1590         functions.
1591         (struct displaced_step_closure): Add forward declaration.
1592         * gdbarch.c, gdbarch.h: Regenerated.
1593
1594         * arch-utils.c: #include "objfiles.h".
1595         (simple_displaced_step_copy_insn)
1596         (simple_displaced_step_free_closure)
1597         (displaced_step_at_entry_point): New functions.
1598         * arch-utils.h (simple_displaced_step_copy_insn)
1599         (simple_displaced_step_free_closure)
1600         (displaced_step_at_entry_point): New prototypes.
1601
1602         * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
1603         (I386_MAX_MATCHED_INSN_LEN): ... this.
1604         (i386_absolute_jmp_p, i386_absolute_call_p)
1605         (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
1606         (i386_displaced_step_fixup): New functions.
1607         (struct i386_insn, i386_match_insn): Update.
1608         (i386_gdbarch_init): Set gdbarch_max_insn_length.
1609         * i386-tdep.h (I386_MAX_INSN_LEN): New.
1610         (i386_displaced_step_fixup): New prototype.
1611         * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
1612         Register gdbarch_displaced_step_copy,
1613         gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
1614         and gdbarch_displaced_step_location functions.
1615
1616         * infrun.c (debug_displaced): New variable.
1617         (show_debug_displaced): New function.
1618         (struct displaced_step_request): New struct.
1619         (displaced_step_request_queue, displaced_step_ptid)
1620         (displaced_step_gdbarch, displaced_step_closure)
1621         (displaced_step_original, displaced_step_copy)
1622         (displaced_step_saved_copy, can_use_displaced_stepping): New
1623         variables.
1624         (show_can_use_displaced_stepping, use_displaced_stepping)
1625         (displaced_step_clear, cleanup_displaced_step_closure)
1626         (displaced_step_dump_bytes, displaced_step_prepare)
1627         (displaced_step_clear_cleanup, write_memory_ptid)
1628         (displaced_step_fixup): New functions.
1629         (resume): Call displaced_step_prepare.
1630         (proceed): Call read_pc once, and remember the value.  If using
1631         displaced stepping, don't remove breakpoints.
1632         (handle_inferior_event): Call displaced_step_fixup.  Add some
1633         debugging output.  When we try to step over a breakpoint, but get
1634         a signal to deliver to the thread instead, ensure the step-resume
1635         breakpoint is actually inserted.  If a thread hop is needed, and
1636         displaced stepping is enabled, don't remove breakpoints.
1637         (init_wait_for_inferior): Call displaced_step_clear.
1638         (_initialize_infrun): Add "set debug displaced" command.  Add
1639         "maint set can-use-displaced-stepping" command.  Clear
1640         displaced_step_ptid.
1641         * inferior.h (debug_displaced): Declare variable.
1642         (displaced_step_dump_bytes): Declare function.
1643
1644         * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
1645         dependencies.
1646
1647 2008-05-02  Daniel Jacobowitz  <[email protected]>
1648
1649         * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
1650         (arm_force_mode_string, arm_show_fallback_mode)
1651         (arm_show_force_mode): New.
1652         (arm_pc_is_thumb): Honor fallback-mode and force-mode.  Use
1653         arm_frame_is_thumb.
1654         (_initialize_arm_tdep): Add "set arm fallback-mode"
1655         and "set arm force-mode".
1656         * NEWS: Document new commands.
1657
1658 2008-05-02  Andrew Stubbs  <[email protected]>
1659
1660         * main.h (batch_silent): Declare.
1661         * event-top.c: Include main.h.
1662         (gdb_setup_readline): Remove extern batch_silent declaration.
1663         * infrun.c (normal_stop): Don't print source location when running in
1664         --batch-silent mode.
1665         * Makefile.in (event-top.o): Add main.h dependency.
1666
1667 2008-05-02  Andreas Schwab  <[email protected]>
1668
1669         * target.h (struct target_ops): Add
1670         to_watchpoint_addr_within_range.
1671         (target_watchpoint_addr_within_range): New function.
1672         * target.c (update_current_target): Inherit
1673         to_watchpoint_addr_within_range, defaulting to
1674         default_watchpoint_addr_within_range.
1675         (default_watchpoint_addr_within_range): New function.
1676         (debug_to_watchpoint_addr_within_range): New function.
1677         (setup_target_debug): Set to_watchpoint_addr_within_range.
1678         * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
1679         New function.
1680         (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
1681         * breakpoint.c (watchpoints_triggered): Use
1682         target_watchpoint_addr_within_range.
1683
1684 2008-05-01  Pedro Alves  <[email protected]>
1685
1686         * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
1687         (i[34567]86-*-dicos*, x86_64-*-dicos*):
1688         Set gdb_osabi to GDB_OSABI_DICOS.
1689
1690         * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
1691         * osabi.c (gdb_osabi_name): Add "DICOS".
1692
1693         * i386-dicos-tdep.c: New file.
1694
1695         * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
1696         (ALLDEPFILES): Add i386-dicos-tdep.c.
1697         (i386-dicos-tdep.o): New rule.
1698
1699 2008-05-01  Pedro Alves  <[email protected]>
1700
1701         * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
1702         and register the fork's PTID as a thread.
1703
1704 2008-05-01  Aleksandar Ristovski  <[email protected]>
1705
1706         PR gdb/1665
1707         * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
1708         assign its value to the breakpoint created.
1709         (create_breakpoints): Add breakpoint_ops argument and pass it
1710         to create_breakpoint call.
1711         (break_command_really): Add breakpoint_ops argument and pass/assign
1712         appropriately.
1713         (break_command_1): Pass NULL as ops argument.
1714         (set_breakpoint): Pass NULL as ops argument.
1715         (print_one_exception_catchpoint): Print <PENDING> if no loc available.
1716         (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
1717         catch and throw catchpoints.
1718
1719 2008-05-01  Aleksandar Ristovski  <[email protected]>
1720
1721         PR gdb/2343
1722         * corelow.c (core_open): Use gdbarch_target_signal_from_host to
1723         translate signal numeric value from the target to GDB's enum
1724         target_signal.
1725         * gdbarch.c, gdbarch.h: Regenerated.
1726         * gdbarch.sh: Added two new functions target_signal_from_host and
1727         target_signal_to_host.
1728         * target.h (default_target_signal_from_host, 
1729         default_target_signal_to_host): New functions - declarations.
1730         * signals/signals.c (struct gdbarch): New declaration.
1731         (default_target_signal_to_host, default_target_signal_from_host): New
1732         functions.
1733
1734 2008-05-01  Daniel Jacobowitz  <[email protected]>
1735
1736         * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
1737         * arm-tdep.c (arm_frame_is_thumb): New.
1738         (arm_pc_is_thumb): Clarify comment.
1739         (thumb_analyze_prologue): Remove PC special case.
1740         (thumb_scan_prologue): Take a block_addr argument.  Use it for
1741         find_pc_partial_function.  Remove unused variables.
1742         (arm_scan_prologue): Use arm_frame_is_thumb.  Use the block address
1743         for find_pc_partial_function.  Remove PC special case.
1744         (arm_prologue_prev_register): Add special handling for PC and CPSR.
1745         (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
1746         (arm_get_next_pc): Use arm_frame_is_thumb.
1747         (arm_write_pc): Use CPSR_T instead of 0x20.
1748         (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
1749         * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
1750         (CPSR_T): Define.
1751         * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
1752         DWARF2_FRAME_REG_FN.
1753         * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
1754         DWARF2_FRAME_REG_FN.
1755         (struct dwarf2_frame_state_reg): Add FN to loc union.
1756
1757 2008-05-01  Nick Roberts  <[email protected]>
1758
1759         * exec.c (print_section_info): Add missing '\n'.
1760
1761 2008-05-01  Vladimir Prus  <[email protected]>
1762
1763         * thread.c (add_thread): Move observer call to ...
1764         (add_thread_silent): ... here.
1765
1766 2008-04-30  Ulrich Weigand  <[email protected]>
1767
1768         * rs6000-tdep.c: Update for unwinder changes.
1769         * ppcobsd-tdep.c: Likewise.
1770
1771 2008-04-30  Ulrich Weigand  <[email protected]>
1772
1773         * s390-tdep.c: Update for unwinder changes.
1774
1775 2008-04-30  Ulrich Weigand  <[email protected]>
1776
1777         * spu-tdep.c: Update for unwinder changes.
1778
1779 2008-04-30  Daniel Jacobowitz  <[email protected]>
1780
1781         * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
1782         ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
1783         sparc64-linux-tdep.c: Update for unwinder changes.
1784
1785 2008-04-30  Daniel Jacobowitz  <[email protected]>
1786
1787         * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
1788         for unwinder changes.
1789         * mips-tdep.c: Likewise.
1790         (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
1791         raw one.
1792
1793 2008-04-30  Daniel Jacobowitz  <[email protected]>
1794
1795         * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
1796         unwinder changes.
1797
1798 2008-04-30  Daniel Jacobowitz  <[email protected]>
1799
1800         Update i386 and amd64 ports for unwinder changes.
1801
1802         * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
1803         (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
1804         (amd64_frame_unwind): Use default_frame_sniffer.
1805         (amd64_frame_sniffer): Delete.
1806         (amd64_sigtramp_frame_cache): Expect this_frame.
1807         (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
1808         (amd64_sigtramp_frame_sniffer): Update signature.
1809         (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
1810         (amd64_frame_base_address): Expect this_frame.
1811         (amd64_dummy_id): Renamed from amd64_unwind_dummy_id.  Expect
1812         this_frame.
1813         (amd64_init_abi): Use set_gdbarch_dummy_id and
1814         frame_unwind_append_unwinder.
1815         * i386-tdep.c (i386_frame_cache): Expect this_frame.
1816         (i386_frame_this_id, i386_frame_prev_register): Update signature.
1817         (i386_frame_unwind): Use default_frame_sniffer.
1818         (i386_frame_sniffer): Delete.
1819         (i386_sigtramp_frame_cache): Expect this_frame.
1820         (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
1821         (i386_sigtramp_frame_sniffer): Update signature.
1822         (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
1823         (i386_frame_base_address): Update signature.
1824         (i386_dummy_id): Rename from i386_unwind_dummy_id.  Expect this_frame.
1825         (i386_push_dummy_call): Update comment.
1826         (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
1827         Expect this_frame.
1828         (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
1829         and frame_unwind_append_unwinder.
1830         * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
1831         amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
1832         i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
1833         i386nbsd-tdep.c: Update for unwinder changes.
1834
1835 2008-04-30  Daniel Jacobowitz  <[email protected]>
1836
1837         * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
1838         (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
1839         this_frame.
1840         (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
1841         * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
1842         (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
1843         signature.
1844         * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
1845         this_frame.
1846         (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
1847         Update signature.
1848         * tramp-frame.h (struct tramp_frame): Update signature of init.
1849         * Makefile.in (trad-frame.o): Update.
1850
1851 2008-04-30  Daniel Jacobowitz  <[email protected]>
1852
1853         * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
1854         (execute_stack_op): Put this_frame in the baton.
1855         (execute_cfa_program): Take this_frame.
1856         (struct dwarf2_frame_ops): Update comment for signal_frame_p.
1857         (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
1858         (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
1859         (dwarf2_frame_this_id): Adjust to work on this_frame.
1860         (dwarf2_signal_frame_this_id): Delete.
1861         (dwarf2_frame_prev_register): Update signature.  Use new frame
1862         unwind methods.
1863         (dwarf2_frame_sniffer): Update signature.  Expect this_frame.
1864         (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
1865         dwarf2_frame_sniffer.
1866         (dwarf2_append_unwinders): New.
1867         (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
1868         this_frame.
1869         * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
1870         (sparc32_dwarf2_frame_init_reg): Expect this_frame.
1871         * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
1872         * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
1873         * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
1874         * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
1875         * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
1876         * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
1877         (dwarf2_append_unwinders): Declare.
1878         (dwarf2_frame_base_sniffer): Update declaration.
1879         * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
1880         this_frame.
1881
1882 2008-04-30  Daniel Jacobowitz  <[email protected]>
1883
1884         Convert frame unwinders to use the current frame and
1885         "struct value".
1886
1887         * frame.c (frame_debug): Make global.
1888         (get_frame_id): Pass this frame to unwinder routines.
1889         (frame_pc_unwind): Remove unused unwind->prev_pc support.
1890         (do_frame_register_read): Do not discard the return value of
1891         frame_register_read.
1892         (frame_register_unwind): Remove debug messages.  Use
1893         frame_unwind_register_value.
1894         (frame_unwind_register_value, get_frame_register_value): New
1895         functions.
1896         (create_new_frame, get_frame_base_address, get_frame_locals_address)
1897         (get_frame_args_address, get_frame_type): Pass this frame to
1898         unwinder routines.
1899         (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
1900         functions.
1901         * frame.h: Update comments.
1902         (frame_debug, frame_unwind_register_value, get_frame_register_value)
1903         (frame_prepare_for_sniffer): Declare.
1904         * frame-unwind.h: Update comments and parameter names.
1905         (default_frame_sniffer): Declare.
1906         (frame_prev_register_ftype): Return a struct value *.
1907         (struct frame_unwind): Remove prev_pc member.
1908         (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
1909         (frame_unwind_append_unwinder, frame_unwind_got_optimized)
1910         (frame_unwind_got_register, frame_unwind_got_memory)
1911         (frame_unwind_got_constant, frame_unwind_got_address): Declare.
1912         * frame-base.h: Update comments and parameter names.
1913         * valops.c (value_fetch_lazy): Use get_frame_register_value.  Iterate
1914         if necessary.  Add debugging output.
1915         * sentinel-frame.c (sentinel_frame_prev_register)
1916         (sentinel_frame_this_id): Update for new signature.
1917         (sentinel_frame_prev_pc): Delete.
1918         (sentinel_frame_unwinder): Remove prev_pc.
1919         * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
1920         prev_pc.
1921         * libunwind-frame.c (libunwind_frame_unwind): Likewise.
1922         * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
1923         (frame_unwind_append_sniffer): Delete.
1924         (frame_unwind_append_unwinder): New function.
1925         (frame_unwind_find_by_frame): Take this frame.  Only use sniffers
1926         from unwinders.  Use frame_prepare_for_sniffer.
1927         (default_frame_sniffer, frame_unwind_got_optimized)
1928         (frame_unwind_got_register, frame_unwind_got_memory)
1929         (frame_unwind_got_constant, frame_unwind_got_address): New functions.
1930         * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
1931         (dummy_frame_prev_register, dummy_frame_this_id): Update for new
1932         signature.
1933         * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
1934         * gdbarch.c, gdbarch.c: Regenerated.
1935         * frame-base.c (default_frame_base_address)
1936         (default_frame_locals_address, default_frame_args_address): Update
1937         for new signature.
1938         (frame_base_find_by_frame): Pass this frame to unwinder routines.
1939         * infcall.c (call_function_by_hand): Update comments.
1940         * Makefile.in (frame-unwind.o): Update dependencies.
1941
1942 2008-04-30  Daniel Jacobowitz  <[email protected]>
1943
1944         * ada-lang.c (ada_value_primitive_packed_val): Only check
1945         value_lazy for memory lvals.
1946         * findvar.c (value_of_register_lazy): New function.
1947         (locate_var_value): Only check value_lazy for memory lvals.
1948         * valarith.c (value_subscripted_rvalue): Likewise.
1949         * valops.c (value_fetch_lazy): Handle both memory and register
1950         lvals.
1951         (search_struct_field, value_slice): Only check value_lazy for memory
1952         lvals.
1953         * value.c (struct value): Update comment for lazy.
1954         (value_primitive_field): Only check value_lazy for memory lvals.
1955         * value.h (value_lazy): Update comment.
1956         (value_of_register_lazy): Declare.
1957
1958 2008-04-30  Daniel Jacobowitz  <[email protected]>
1959
1960         * corefile.c (reopen_exec_file): Close any open files.
1961
1962 2008-04-29  Joel Brobecker  <[email protected]>
1963
1964         * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
1965         show_memory_breakpoints to 1 while reading the instruction bundle.
1966
1967 2008-04-29  Joel Brobecker  <[email protected]>
1968
1969         * gdbarch.sh: Document the return_value method. Explain that
1970         the FUNCTYPE parameter might be NULL.
1971         * gdbarch.h: Regenerated.
1972         * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
1973         type when calling using_struct_return, as this is unnecessary
1974         on this target.
1975
1976 2008-04-28  Joel Brobecker  <[email protected]>
1977
1978         * terminal.h (create_tty_session): Fix return type.
1979
1980 2008-04-26  Vladimir Prus  <[email protected]>
1981
1982         * mi/mi-interp.c (mi_new_thread): Quote the thread id.
1983
1984 2008-04-26  Joel Brobecker  <[email protected]>
1985
1986         * breakpoint.c (condition_command, commands_from_control_command)
1987         (break_command_really): Minor reformatting.
1988
1989 2008-04-25  Pedro Alves  <[email protected]>
1990
1991         * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
1992
1993 2008-04-25  Pedro Alves  <[email protected]>
1994
1995         * amd64-tdep.c (amd64_get_longjmp_target): New.
1996         (amd64_init_abi): Register amd64_get_longjmp_target as
1997         gdbarch_get_longjmp_target callback.
1998         * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
1999
2000 2008-04-25  Pedro Alves  <[email protected]>
2001
2002         * breakpoint.h (enum bpstat_what_main_action): Delete
2003         BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
2004
2005         * breakpoint.c (clrs): Delete.
2006         (bpstat_what): Update table.
2007
2008         * infrun.c (handle_inferior_event): Remove
2009         BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
2010
2011 2008-04-24  Vladimir Prus  <[email protected]>
2012
2013         * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
2014         Adjust all prototypes using mi_cmd_args_ftype to use
2015         mi_cmd_argv_ftype.
2016         (struct mi_cmd): Remove the args_func field.
2017         * mi/mi-cmds.c: Don't provide value for the args_func field.
2018         * mi/mi-main.c (mi_execute_async_cli_command)
2019         (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
2020         (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
2021         (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
2022         (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
2023         (mi_cmd_target_download): Adjust.
2024         (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
2025         (mi_cmd_execute): Do not check for args_func.
2026         (mi_execute_async_cli_command): Adjust.
2027         * mi/mi-parse.c: Don't check for args_func.
2028
2029 2008-04-24  Vladimir Prus  <[email protected]>
2030
2031         * breakpoint.c (bpstat_check_location)
2032         (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
2033         New, extracted from bpstat_stop_status.
2034         (bpstat_stop_status): Use the above.
2035
2036 2008-04-24  Vladimir Prus  <[email protected]>
2037
2038         * mi/mi-main.c (last_async_command): Rename to current_token.
2039         (previous_async_command): Remove.
2040         (mi_cmd_gdb_exit): Adjust.
2041         (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
2042         (mi_cmd_target_select): Adjust.
2043         (mi_cmd_execute): Don't set previous_async_command.  Free token
2044         here even in async mode.
2045         (mi_execute_async_cli_command): Adjust.
2046         (mi_exec_async_cli_cmd_continuation): Adjust.  Do not free the
2047         token.
2048         (mi_load_progress): Adjust.
2049
2050 2008-04-24  Vladimir Prus  <[email protected]>
2051
2052         * infcmd.c (step_1_continuation): Always disable longjmp
2053         breakpoint if we're not going to do another step.
2054
2055 2008-04-24  Vladimir Prus  <[email protected]>
2056
2057         exec_cleanup murder.
2058         * breakpoint.c (until_break_command_continuation): Add
2059         the 'error' parameter.  Directly delete the breakoint as
2060         opposed to running cleanups.
2061         (until_break_command): Install continuation only
2062         after starting the target.  Don't use exec cleanups,
2063         use ordinary cleanups.  Discard cleanups is successfully
2064         started the target in async mode.
2065         (make_cleanup_delete_breakpoint): Remove.
2066         * breakpoint.h (make_cleanup_delete_breakpoint): Remove
2067         declaration.
2068         * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
2069         declarations.
2070         (struct continations): Add the 'error' parameter to the
2071         continuation_hook field.
2072         (add_continuation, do_all_continuations)
2073         (add_intermediate_continuation)
2074         (do_all_intermediate_continuations): Add the 'error' parameter.
2075         * exceptions.c (throw_exception): Don't call do_exec_cleanups.
2076         * inf-loop.c (inferior_event_handler): Instead of calling
2077         discard_all_continuations, use do_all_continuations with 1 as
2078         'error' parameter.  Pass 0 as 'error' parameter in existing uses
2079         of discard_all_continuations.
2080         * infcmd.c (step_1): Do not use exec cleanup.  For async case, discard
2081         cleanups.
2082         (step_once): Install continuation only after resuming the target.
2083         (step_1_continuation): Disable longjmp breakpoint on error.
2084         (finish_command_continuation): Add the error parameter.  Delete
2085         the finish breakpoint directly, do not use cleanups.
2086         (finish_command): Do not use exec_cleanups. Always setup
2087         continuation.  For sync case, immediately run them.
2088         (attach_command_continuation): Add the error parameter.
2089         * infrun.c (fetch_inferior_event): Do not use exec cleanups to
2090         remove step_resume_breakpoint -- adjust delete it directly.
2091         * interps.c (interp_set): Adjust call to do_all_continations.
2092         * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
2093         do exec cleanups.
2094         * mi/mi-main.c (mi_cmd_target_select): Do not do exec
2095         cleanups.
2096         (mi_cmd_execute): Do not use exec_cleanup.
2097         (mi_execute_async_cli_command): Simplify the string concatenation
2098         logic.  Do no use exec cleanup.
2099         (mi_exec_async_cli_cmd_continuation): New parameter error.
2100         Free last_async_command.
2101         * top.c (command_line_handler_continuation): New parameter error.
2102         * utils.c (exec_cleanup_chain, make_exec_cleanup)
2103         (do_exec_cleanups): Remove.
2104         (add_continuation, do_all_continations)
2105         (add_intermediate_continuation)
2106         (do_all_intermediate_continuations): New parameter error.
2107
2108 2008-04-24  Vladimir Prus  <[email protected]>
2109
2110         * breakpoint.h (bp_location_p): New typedef.
2111         Register a vector of bp_location_p.
2112         * breakpoint.c (always_inserted_mode)
2113         (show_always_inserted_mode): New.
2114         (unlink_locations_from_global_list): Remove.
2115         (update_global_location_list)
2116         (update_global_location_list_nothrow): New.
2117         (update_watchpoint): Don't free locations.
2118         (should_insert_location): New.
2119         (insert_bp_location): Use should_insert_location.
2120         (insert_breakpoint_locations): Copied from
2121         insert_breakpoints.
2122         (insert_breakpoint): Use insert_breakpoint_locations.
2123         (bpstat_stop_status): Call update_global_location_list
2124         when disabling breakpoint.
2125         (allocate_bp_location): Don't add to bp_location_chain.
2126         (set_raw_breakpoint)
2127         (create_longjmp_breakpoint, enable_longjmp_breakpoint)
2128         (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
2129         (enable_overlay_breakpoints, disable_overlay_breakpoints)
2130         (set_longjmp_resume_breakpoint)
2131         (enable_watchpoints_after_interactive_call_stop)
2132         (disable_watchpoints_before_interactive_call_start)
2133         (create_internal_breakpoint)
2134         (create_fork_vfork_event_catchpoint)
2135         (create_exec_event_catchpoint, set_momentary_breakpoint)
2136         (create_breakpoints, break_command_1, watch_command_1)
2137         (create_exception_catchpoint)
2138         (handle_gnu_v3_exceptions)
2139         (disable_breakpoint, breakpoint_re_set_one)
2140         (create_thread_event_breakpoint, create_solib_event_breakpoint)
2141         (create_ada_exception_breakpoint): : Don't call check_duplicates.
2142         Call update_global_location_list.
2143         (delete_breakpoint): Don't remove locations and don't
2144         try to reinsert them. Call update_global_location_list.
2145         (update_breakpoint_locations): Likewise.
2146         (restore_always_inserted_mode): New.
2147         (update_breakpoints_after_exec): Temporary disable
2148         always inserted mode.
2149         * Makefile.in: Update dependencies.
2150
2151         * infrun.c (proceed): Remove breakpoints while stepping
2152         over breakpoint.
2153         (handle_inferior_event): Don't remove or insert
2154         breakpoints.
2155         * linux-fork.c (checkpoint_command): Remove breakpoints
2156         before fork and insert after.
2157         (linux_fork_context): Remove breakpoints before switch
2158         and insert after.
2159         * target.c (target_disconnect, target_detach): Remove
2160         breakpoints from target.
2161
2162         
2163 2008-04-24  Vladimir Prus  <[email protected]>
2164
2165         * breakpoint.c (print_one_breakpoint_location): In MI
2166         mode, report the location string the breakpoint was
2167         originally created with.
2168
2169 2008-04-23  Maxim Grigoriev  <[email protected]>
2170
2171         * Makefile.in (xtensa-tdep.o): Update dependencies.
2172         * configure.tgt (xtensa*): Update dependencies.
2173         * xtensa-tdep.c (arreg_number): Renamed from areg_number.
2174         Local variable areg renamed to arreg.
2175         (areg_number): New function.
2176         (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2177         (xtensa_extract_return_value, xtensa_store_return_value): areg_number
2178         replaced by arreg_number.
2179         (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
2180         (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
2181         (xtensa_scan_prologue): New function.
2182         (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
2183         when ENTRY instraction hasn't been executed yet. Get the frame pointer
2184         value based on prologue analysis. Fix the bugs preventing WS and
2185         AR4-AR7/A11 registers from getting right values for intermediate frames,
2186         whose registers have been already spilled.
2187         (xtensa_frame_prev_register): Fix WS register value. Use are_number
2188         and arreg_number appropriately.
2189         (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
2190         svr4_ilp32_fetch_link_map_offsets.
2191
2192 2008-04-23  Andrew Stubbs  <[email protected]>
2193
2194         * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
2195         (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
2196
2197 2008-04-23  Paolo Bonzini  <[email protected]>
2198
2199         * acinclude.m4: Add override.m4.
2200         * configure: Regenerate.
2201
2202 2008-04-22  Jan Kratochvil  <[email protected]>
2203
2204         * ada-lang.c (get_selections): Variable PROMPT made non-const and
2205         initialized with a trailing space now.  Use PROMPT_ARG of
2206         COMMAND_LINE_INPUT instead of printing it ourselves.
2207
2208 2008-04-22  Joel Brobecker  <[email protected]>
2209
2210         * NEWS: Document support for 64-bit core file.
2211
2212 2008-04-22  Corinna Vinschen  <[email protected]>
2213
2214         * NEWS: Add information on calling convention and new SH CLI options.
2215
2216         * sh-tdep.c (sh_cc_gcc): New static string.
2217         (sh_cc_renesas): Ditto.
2218         (sh_cc_enum): New static string array.
2219         (sh_active_calling_convention): New static string pointer denoting
2220         active user chosen ABI.
2221         (sh_is_renesas_calling_convention): New function to return function
2222         specific ABI, or user choice if necessary.
2223         (sh_use_struct_convention): Rename first argument and turn around its
2224         meaning.  Check for renesas ABI and return accordingly.
2225         (sh_use_struct_convention_nofpu): New function.
2226         (sh_next_flt_argreg): Get function type as third parameter.  Check
2227         for renesas ABI and choose floating registers accordingly.
2228         (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
2229         struct return slot accordingly.
2230         (sh_push_dummy_call_nofpu): Ditto.
2231         (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
2232         Evaluate ABI and give to sh_use_struct_convention_nofpu.
2233         (sh_return_value_fpu):  Evaluate ABI and give to
2234         sh_use_struct_convention.
2235         (show_sh_command): New function.
2236         (set_sh_command): Ditto.
2237         (_initialize_sh_tdep): Initialize `set/show sh calling-convention
2238         CLI command.
2239
2240         * gdbarch.sh (return_value): Add func_type argument.
2241         * gdbarch.c: Regenerate.
2242         * gdbarch.h: Ditto.
2243         * eval.c (evaluate_subexp_standard): Rename local variable value_type to
2244         val_type so as not to collide with value_type function.  Call
2245         using_struct_return with additional function type argument.
2246         * infcall.c (call_function_by_hand): Call using_struct_return and
2247         gdbarch_return_value with additional function type argument.
2248         * infcmd.c (print_return_value): Take addition func_type argument.
2249         Call gdbarch_return_value with additional function type argument.
2250         (finish_command_continuation): Call print_return_value with additional
2251         function type argument.
2252         (finish_command): Ditto.
2253         * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
2254         additional function type argument.
2255         * stack.c (return_command): Call using_struct_return and
2256         gdbarch_return_value with additional function type argument.
2257         * value.c (using_struct_return): Take additional function type argument.
2258         * value.h (using_struct_return): Accommodate declaration.
2259         * alpha-tdep.c (alpha_return_value): Add func_type argument.
2260         * amd64-tdep.c (amd64_return_value): Ditto.
2261         * arm-tdep.c (arm_return_value): Ditto.
2262         * avr-tdep.c (avr_return_value): Ditto.
2263         * cris-tdep.c (cris_return_value): Ditto.
2264         * frv-tdep.c (frv_return_value): Ditto.
2265         * h8300-tdep.c (h8300_return_value): Ditto.
2266         (h8300h_return_value): Ditto.
2267         * hppa-tdep.c (hppa32_return_value): Ditto.
2268         (hppa64_return_value): Ditto.
2269         * i386-tdep.c (i386_return_value): Ditto.
2270         * ia64-tdep.c (ia64_return_value): Ditto.
2271         * iq2000-tdep.c (iq2000_return_value): Ditto.
2272         * m32c-tdep.c (m32c_return_value): Ditto.
2273         * m32r-tdep.c (m32r_return_value): Ditto.
2274         * m68hc11-tdep.c (m68hc11_return_value): Ditto.
2275         * m68k-tdep.c (m68k_return_value): Ditto.
2276         (m68k_svr4_return_value): Ditto.
2277         * m88k-tdep.c  (m88k_return_value): Ditto.
2278         * mep-tdep.c (mep_return_value): Ditto.
2279         * mips-tdep.c (mips_eabi_return_value): Ditto.
2280         (mips_n32n64_return_value): Ditto.
2281         (mips_o32_return_value): Ditto.
2282         (mips_o64_return_value): Ditto.
2283         * mn10300-tdep.c (mn10300_return_value): Ditto.
2284         * mt-tdep.c (mt_return_value): Ditto.
2285         * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
2286         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
2287         (ppc_sysv_abi_broken_return_value): Ditto.
2288         (ppc64_sysv_abi_return_value): Ditto.
2289         * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
2290         (ppc_sysv_abi_broken_return_value): Ditto.
2291         (ppc64_sysv_abi_return_value): Ditto.
2292         * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
2293         * rs6000-tdep.c (rs6000_return_value): Ditto.
2294         * s390-tdep.c (s390_return_value): Ditto.
2295         * score-tdep.c (score_return_value): Ditto.
2296         * sh-tdep.c (sh_return_value_nofpu): Ditto.
2297         (sh_return_value_fpu): Ditto.
2298         * sh64-tdep.c (sh64_return_value): Ditto.
2299         * sparc-tdep.c (sparc32_return_value): Ditto.
2300         * sparc64-tdep.c (sparc64_return_value): Ditto.
2301         * spu-tdep.c (spu_return_value): Ditto.
2302         * v850-tdep.c (v850_return_value): Ditto.
2303         * vax-tdep.c (vax_return_value): Ditto.
2304         * xstormy16-tdep.c (xstormy16_return_value): Ditto.
2305         * xtensa-tdep.c (xtensa_return_value): Ditto.
2306
2307         * gdbtypes.h (struct type): Add calling_convention member.
2308         * dwarf2read.c (read_subroutine_type): Add calling convention read
2309         from DW_AT_calling_convention attribute to function type.
2310
2311 2008-04-22  Markus Deuling  <[email protected]>
2312
2313         * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
2314         multi_f77_subscript to support values from registers.
2315         * valarith.c (value_subscripted_rvalue): Remove prototype and static.
2316         * value.h (value_subscripted_rvalue): Add prototype.
2317
2318         * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
2319         Fix output.
2320         * f-valprint.c (f_val_print): Likewise.
2321
2322 2008-04-21  Craig Silverstein  <[email protected]>
2323
2324         * dwarf2read.c (zlib_decompress_section): Define abfd in the
2325         !HAVE_ZLIB_H case.
2326
2327 2008-04-21  Pedro Alves  <[email protected]>
2328
2329         * symfile.c (syms_from_objfile): Don't warn if lowest loadable
2330         section is not a code section.
2331
2332 2008-04-19  Craig Silverstein  <[email protected]>
2333
2334         * NEWS: Add information on compressed debug sections.
2335
2336 2008-04-19  Vladimir Prus  <[email protected]>
2337
2338         * mi/mi-cmd-var.c (varobj_update_one): Print new
2339         value for variable objects that changed type.
2340
2341 2008-04-19  Vladimir Prus  <[email protected]>
2342
2343         * varobj.c (varobj_invalidate): Don't touch floating
2344         varobjs.
2345
2346 2008-04-19  Mark Kettenis  <[email protected]>
2347
2348         * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
2349         (multiple_symbols_cancel): Remove extra const.
2350         * symtab.h: Likewise.
2351
2352 2008-04-19  Nick Roberts  <[email protected]>
2353
2354         * interps.c (top_level_interpreter): Rename static variable...
2355         (top_level_interpreter_ptr): ...to this.
2356         (top_level_interpreter): New function.
2357
2358         * interps.h: New extern for top_level_interpreter.
2359
2360         * linespec.c: Include interps.h and mi/mi-cmds.h.
2361         (decode_line_2): When using MI, always set all breakpoints in menu.
2362
2363         * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
2364
2365 2008-04-18  Craig Silverstein  <[email protected]>
2366
2367         * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
2368         * config.in, configure: Regenerate.
2369         * dwarf2read.c: Include zlib.h if present.
2370         Modified *_SECTION macros.
2371         (section_is_p): New.
2372         (dwarf2_locate_sections): Use section_is_p instead of strcmp
2373         (dwarf2_resize_section): New.
2374         to determine whether a given section has a given name.
2375         (zlib_decompress_section): New.
2376         (dwarf2_read_section): Read the compressed section if present
2377         in the binary.
2378         * MAINTAINERS: Added myself to section Write After Approval.
2379
2380 2008-04-18  Thiago Jung Bauermann  <[email protected]>
2381
2382         * defs.h (exec_set_section_offsets): Remove prototype.
2383         * exec.c (exec_set_section_offsets): Remove function.
2384
2385 2008-04-18  Joel Brobecker  <[email protected]>
2386
2387         * stabsread.c (cleanup_undefined_types_1): Add instance flags check
2388         in the search for the matching symbol.
2389
2390 2008-04-17  Marc Khouzam  <[email protected]>
2391
2392         * breakpoint.c (update_watchpoint): Always reparse
2393         condition.
2394
2395 2008-04-17  Joel Brobecker  <[email protected]>
2396
2397         * breakpoint.c (print_one_breakpoint_location): Make sure to print
2398         the breakpoint address only once.
2399
2400 2008-04-17  Dennis Roberts  <[email protected]>
2401
2402         * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
2403         rather than a hard-coded architecture, for xcoff executables.
2404
2405 2008-04-17  Doug Evans  <[email protected]>
2406
2407         * buildsym.c (watch_main_source_file_lossage): New fn.
2408         (end_symtab): Call it.
2409
2410         * source.c (find_and_open_source): Add some comments clarifying
2411         handling of FULLNAME argument.  Make static.  Remove pointless
2412         xstrdup/xfree.
2413
2414 2008-04-17  Pedro Alves  <[email protected]>
2415
2416         * inf-loop.c (inferior_event_handler): Also run the intermediate
2417         continuations in the INF_EXEC_COMPLETE case.
2418
2419 2008-04-16  Tom Tromey  <[email protected]>
2420
2421         * cli/cli-decode.h (CMD_ASYNC_OK): New define.
2422         (set_cmd_async_ok, get_cmd_async_ok): Declare.
2423         * cli/cli-decode.c (set_cmd_async_ok): New function.
2424         (get_cmd_async_ok): New function.
2425         * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
2426         "show" as async-ok.
2427         * top.c (execute_command): Use get_cmd_async_ok.
2428         * infcmd.c: Include cli/cli-decode.h.
2429         (_initialize_infcmd): Mark "interrupt" as async-ok.
2430         * Makefile.in (infcmd.o): Depend on cli_decode_h.
2431
2432 2008-04-16  Daniel Jacobowitz  <[email protected]>
2433
2434         PR gdb/2445
2435         * exec.c: Correct "arch-utils.h" include.
2436
2437 2008-04-15  Aleksandar Ristovski  <[email protected]>
2438
2439         PR gdb/2424
2440         * infrun.c (normal_stop) Move breakpoint_auto_delete further down
2441         to allow printing to 'see' real reason of stop. This fixes PR 2424.
2442         * breakpoint.c (bpdisp_texst): New function. The function takes over
2443         the role of bpstats static array in print_one_breakpoint_location.
2444         (print_it_typical): Print "Temporary breakpoint" instead
2445         of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
2446         protocols, print disp field.
2447         (print_one_breakpoint_location): Removed bpdisps static definition.
2448         Call new bpstat_text function to get value for 'disp' field.
2449         (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
2450
2451 2008-04-15  Daniel Jacobowitz  <[email protected]>
2452
2453         * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
2454         gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
2455         by rerunning gnulib-tool with --aux-dir=gnulib/extra.
2456         * gnulib/Makefile.in: Regenerate.
2457
2458 2008-04-14  Daniel Jacobowitz  <[email protected]>
2459
2460         * Makefile.in (GNULIB_H): New.  Trigger all-lib.
2461         (defs_h): Use $(GNULIB_H).
2462         (all-lib): Depend on gnulib/Makefile.
2463         (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
2464         * config.in, gnulib/Makefile.in: Regenerated.
2465
2466 2008-04-14  Daniel Jacobowitz  <[email protected]>
2467
2468         * Makefile.in (LIBGNU, INCGNU): Define.
2469         (INTERNAL_CFLAGS_BASE): Add INCGNU.
2470         (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
2471         (CLEANDIRS): New.
2472         ($(LIBGNU), all-lib): New rules.
2473         (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
2474         * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
2475         Simplify AC_CONFIG_AUX_DIR.  Generate gnulib/Makefile.
2476         * gnulib: New directory, from gnulib-tool.
2477         * configure, aclocal.m4: Regenerated.
2478
2479 2008-04-14  Daniel Jacobowitz  <[email protected]>
2480
2481         * linux-thread-db.c (have_threads_callback): Check thread->private.
2482
2483 2008-04-13  Nick Roberts  <[email protected]>
2484             Vladimir Prus  <[email protected]>
2485
2486         Fix @-varobjs.
2487         * varobj.c (value_of_root): Update the expression for
2488         floating varobjs.
2489         * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
2490         report that.
2491
2492 2008-04-09  Marc Khouzam  <[email protected]>
2493
2494         * mi/mi-cmd-var.c: Include "mi-getopt.h".
2495         (mi_parse_format): New.  Factored out from mi_cmd_var_set_format.
2496         (mi_cmd_var_set_format): Use new mi_parse_format.
2497         (mi_cmd_var_evaluate_expression): Support for -f option to specify
2498         format.
2499         * Makefile.in (mi-cmd-var.o): Update dependencies.
2500
2501         * varobj.h (varobj_get_formatted_value): Declare.
2502         * varobj.c (my_value_of_variable): Added format parameter.
2503         (cplus_value_of_variable): Likewise.
2504         (java_value_of_variable): Likewise.
2505         (c_value_of_variable): Likewise.  Evaluate expression based
2506         on format parameter.
2507         (struct language_specific): Add format parameter to function member
2508         *value_of_variable.
2509         (varobj_get_formatted_value): New.
2510         (varobj_get_value): Added format parameter to method call.
2511         
2512 2008-04-08  Joel Brobecker  <[email protected]>
2513
2514         * stabsread.c (cleanup_undefined_types_noname): Manually set the
2515         instance flags of the undefined type before calling replace_type.
2516
2517 2008-04-08  Vladimir Prus  <[email protected]>
2518
2519         * target.h (enum strata): Remove the download_stratum.
2520         
2521 2008-04-07  Doug Evans  <[email protected]>
2522
2523         * buildsym.h (last_source_file): Add dwarf info to comment.
2524         (last_source_start_addr): Ditto.
2525
2526 2008-04-07  Pedro Alves  <[email protected]>
2527
2528         * alphanbsd-tdep.c: Include "target.h".
2529         * mn10300-tdep.c: Include "target.h".
2530         * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
2531
2532 2008-04-06  Vladimir Prus  <[email protected]>
2533
2534         Fix breakpoint condition that use member variables.
2535         * valops.c (check_field): Remove.
2536         (check_field_in): Rename to check_field.
2537         (value_of_this): Use la_name_of_this.
2538         * value.h (check_field): Adjust prototype.
2539
2540         * language.h (la_value_of_this): Rename to la_name_of_this.
2541         * language.c (unknown_language_defn): Specify "this" for
2542         name_of_this.
2543         (auto_language_defn): Likewise.
2544         (local_language_defn): Likewise.
2545         * ada-lang.c (ada_language_defn): Adjust comment.
2546         * c-lang.c (c_language_defn): Adjust comment.
2547         (cplus_language_defn): Specify "this" for name_of_this.
2548         (asm_language_defn): Adjust comment.
2549         (minimal_language_defn): Adjust comment.
2550         * f-lang.c (f_language_defn): Specify NULL for name_of_this.
2551         * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
2552         * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
2553         * objc-lang.c (objc_language_defn): Specify "self" for
2554         name_of_this.
2555         * p-lang.c (pascal_language_defn): Specify "this" for
2556         name_of_this.
2557         * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
2558
2559         * symtab.c (lookup_symbol_aux): Lookup "this" in the
2560         proper scope, and check for field in type of "this", without
2561         trying to create a value.
2562
2563 2008-04-04  Pedro Alves  <[email protected]>
2564
2565         * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
2566         (mi_error_message): Delete declaration.
2567         * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
2568         returning MI_CMD_ERROR.
2569         * mi/mi-main.c (mi_error_message): Delete.
2570         (mi_cmd_exec_interrupt):
2571         (mi_cmd_thread_select, mi_cmd_thread_list_ids)
2572         (mi_cmd_thread_info): Call error instead of returning
2573         MI_CMD_ERROR.
2574         (mi_cmd_data_list_register_values): Call error instead of
2575         returning MI_CMD_ERROR.  Adapt to new get_register interface.
2576         (get_register): Change return typo to void.  Call error instead of
2577         returning MI_CMD_ERROR.
2578         (mi_cmd_data_write_register_values): Call error instead of
2579         returning MI_CMD_ERROR.
2580         (mi_cmd_list_features): Return MI_CMD_DONE.
2581         (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
2582         (mi_execute_command): Always print exceptions with -error.
2583
2584 2008-04-04  Joel Brobecker  <[email protected]>
2585
2586         * NEWS: Mention new commands set/show multiple-symbols.
2587
2588 2008-04-03  Joel Brobecker  <[email protected]>
2589
2590         * symtab.c (multiple_symbols_ask, multiple_symbols_all)
2591         (multiple_symbols_cancel): New constants.
2592         (multiple_symbols_modes, multiple_symbols_mode): New static globals.
2593         (multiple_symbols_select_mode): New function.
2594         (_initialize_symtab): Add new set/show multiple-symbols commands.
2595         * symtab.h (multiple_symbols_ask, multiple_symbols_all)
2596         (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
2597         * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
2598         setting.
2599         * linespec.c (decode_line_2): Likewise.
2600
2601 2008-04-03  Doug Evans  <[email protected]>
2602
2603         * symtab.h (enum free_code): Delete free_contents, unused.
2604         * symmisc.c (free_symtab_block): Delete.
2605         (free_symtab, case free_code): Delete.
2606
2607 2008-04-01  Aleksandar Ristovski  <[email protected]>
2608
2609         * valops.c (value_cast_structs): New function. Cast related
2610         STRUCT types up/down and return cast value. The body of this 
2611         function comes mostly from value_cast_pointers.
2612         (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
2613         to value_cast_structs. Now value_cast_pointers needs only create
2614         appropriate reference after using value_cast_structs for actual
2615         casting.
2616         (value_cast): Handle references.
2617
2618 2008-04-01  Marc Khouzam  <[email protected]>
2619
2620         * MAINTAINERS: Added myself to section Write After Approval.
2621
2622 2008-03-30  Daniel Jacobowitz  <[email protected]>
2623
2624         * ia64-tdep.c (examine_prologue): Correct array access.
2625
2626 2008-03-28  Aleksandar Ristovski  <[email protected]>
2627
2628         * cp-support.c (first_component_command): Return if no arguments.
2629
2630 2008-03-28  Carlos O'Donell  <[email protected]>
2631
2632         * ser-mingw.c (ser_windows_open): Open requested name.
2633
2634 2008-03-28  Aleksandar Ristovski  <[email protected]>
2635
2636         * MAINTAINERS: Added myself.
2637
2638 2008-03-28  Pedro Alves  <[email protected]>
2639
2640         * target.c (find_default_run_target): Allow a NULL `do_mesg'
2641         parameter.  If it is NULL, don't call error.
2642         (find_default_can_async_p, find_default_is_async_p): Pass NULL as
2643         `do_mesg' parameter to find_default_run_target.  If no target was
2644         found, return 0.
2645
2646 2008-03-28  Daniel Jacobowitz  <[email protected]>
2647
2648         * mips-linux-tdep.c: Update N32/N64 signal frame comments.
2649         (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
2650         (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
2651         Delete.
2652         (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
2653
2654 2008-03-27  Joel Brobecker  <[email protected]>
2655
2656         GDB 6.8 released.
2657
2658 2008-03-27  Ulrich Weigand  <[email protected]>
2659
2660         * features/Makefile (%.dat): Set xmltarget to the base filename
2661         of the XML source, without subdirectory.
2662         * regformats/rs6000/powerpc-32.dat: Regenerate.
2663         * regformats/rs6000/powerpc-64.dat: Regenerate.
2664         * regformats/rs6000/powerpc-e500.dat: Regenerate.
2665
2666 2008-03-27  Markus Deuling  <[email protected]>
2667
2668         * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
2669         objfile arch.
2670
2671 2008-03-27  Nick Roberts  <[email protected]>
2672
2673         * mi/mi-main.c (enum captured_mi_execute_command_actions):
2674         Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
2675
2676 2008-03-26  Ulrich Weigand  <[email protected]>
2677
2678         * objfiles.h (struct objfile): New GDBARCH member.
2679         (get_objfile_arch): Add prototype.
2680         * objfiles.c: Include "arch-utils.h".
2681         (allocate_objfile): Look up gdbarch associated with bfd.
2682         (get_objfile_arch): New function.
2683         * Makefile (objfiles.o): Update dependencies.
2684
2685         * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
2686         by objfile arch.
2687         * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
2688         by frame arch.
2689         (locexpr_describe_location): Replace current_gdbarch by
2690         objfile arch.
2691         * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
2692         (dwarf2_add_field): Likewise.
2693         (read_tag_pointer_type): Likewise.
2694         (read_base_type): Likewise.
2695         (new_symbol): Likewise.
2696
2697         * coffread.c (decode_type): Add OBJFILE argument.  Update callers.
2698         (decode_base_type, decode_function_type): Likewise.
2699         (coff_read_struct_type, coff_read_enum_type): Likewise.
2700         (coff_symtab_read): Replace current_gdbarch by objfile arch.
2701         (decode_base_type): Likewise.
2702         (coff_read_enum_type): Likewise.
2703         (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
2704         (coff_read_enum_type): Likewise.
2705
2706         * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
2707         (end_psymtab): Likewise.
2708         (process_one_symbol): Likewise.
2709
2710         * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
2711         (parse_procedure): Likewise.
2712         (parse_partial_symbols): Likewise.
2713
2714         * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
2715
2716         * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
2717         Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
2718         built-in types.
2719         (read_range_type): Replace current_gdbarch by objfile arch.  Replace
2720         static range_index_type by built-in type.
2721         (read_one_struct_field): Replace current_gdbarch by objfile arch.
2722         (read_enum_type): Likewise.
2723
2724         * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
2725         objfile arch.
2726
2727 2008-03-26  Vladimir Prus  <[email protected]>
2728
2729         * varobj.h (varobj_floating_p): Declare.
2730         * varobj.c (varobj_floating_p): New.
2731         * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
2732         '@' as the name, update all floating varobjs.
2733
2734 2008-03-26  Vladimir Prus  <[email protected]>
2735
2736         * varobj.c (struct varobj_root): Rename use_selected_frame to
2737         floating, and clarify the meaning.
2738         (varobj_create, varobj_update,  new_root_variable): Adjust.
2739         (value_of_root): Don't use type_changed as in variable,
2740         adjust comment.
2741         (c_value_of_root): Adjust.
2742
2743 2008-03-25  Pedro Alves  <[email protected]>
2744
2745         * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
2746         gdb's thread list.
2747         (linux_nat_wait): Add main lwp to gdb's thread list.
2748         * linux-thread-db.c (find_new_threads_callback): Also attach to
2749         already listed threads which thread_db didn't know about yet.
2750
2751 2008-03-25  Pedro Alves  <[email protected]>
2752
2753         * linux-nat.c (drain_queued_events): Fix comment typo.
2754         (linux_nat_attach): In async mode, don't rely on storing a pending
2755         status.  Instead place the wait status on the pipe.
2756         (linux_nat_resume): Remove unreacheable shortcut code in async
2757         mode.
2758         (stop_wait_callback): In async mode, don't store pending status.
2759         Instead, cancel breakpoints or resend the signal appropriatelly.
2760         (cancel_breakpoint): New, refactored from
2761         cancel_breakpoints_callback.
2762         (cancel_breakpoints_callback): Call cancel_breakpoint.
2763         (pipe_to_local_event_queue): Remove special token processing.
2764         (linux_nat_wait): Issue an internal error if a pending status is
2765         found in async mode.
2766
2767 2008-03-24  Daniel Jacobowitz  <[email protected]>
2768
2769         * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
2770
2771 2008-03-24  Nick Roberts  <[email protected]>
2772             Vladimir Prus  <[email protected]>
2773
2774         * varobj.c  (struct varobj_root): New component thread_id.
2775         (varobj_get_thread_id, check_scope): New functions.
2776         (c_value_of_root): Use check_scope.  Switch to the
2777         proper thread if necessary.
2778
2779         * varobj.h (varobj_get_thread_id): New extern.
2780
2781         * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
2782
2783 2008-03-23  Daniel Jacobowitz  <[email protected]>
2784
2785         PR gdb/544
2786         * top.c: Revert 2008-03-21 changes.
2787
2788 2008-03-23  Vladimir Prus  <[email protected]>
2789
2790         * thread.c (make_cleanup_restore_current_thread): Make it
2791         globally visible.
2792         * gdbthread.h (make_cleanup_restore_current_thread): Declare.
2793         * varobj.c (varobj_update): Don't save/restore frame.
2794         (c_value_of_root): Save/restore thread and frame here,
2795         using make_cleanup_restore_current_thread.
2796         * Makefile.in: Update dependecies.
2797
2798 2008-03-23  Vladimir Prus  <[email protected]>
2799
2800         * varobj.c (struct varobj_root): Clarify
2801         comment on the frame field.
2802         (varobj_create): Don't set frame if we have no
2803         block.
2804
2805 2008-03-21  Daniel Jacobowitz  <[email protected]>
2806
2807         PR gdb/544
2808         Suggested by Jan Kratochvil:
2809         * top.c (gdb_rl_operate_and_get_next_completion): Call
2810         rl_redisplay_function.
2811         (gdb_rl_redisplay): New.
2812         (init_main): Set rl_redisplay_function.
2813
2814 2008-03-21  Thomas Mittelstaedt  <[email protected]>  (tiny change)
2815
2816         * aix-thread.c (pdc_read_regs): Fix compiler warning.
2817         (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
2818         (store_regs_kernel_thread): Likewise.
2819
2820 2008-03-21  Pedro Alves  <[email protected]>
2821
2822         Linux native async support.
2823
2824         * target.h (struct target_ops): Delete to_async_mask_value and add
2825         to_async_mask.
2826         (target_is_async_p, target_async): Formatting.
2827         (target_async_mask_value): Delete.
2828         (target_async_mask): Delete function declaration, and add new
2829         target macro with the same name.
2830
2831         * target.c (update_current_target): Replace to_async_mask_value by
2832         to_async_mask.  Default to_async_mask to return_one.
2833         (target_async_mask): Delete.
2834         (find_default_can_async_p, find_default_is_async_p): New.
2835         (init_dummy_target): register find_default_can_async_p and
2836         find_default_is_async_p on the dummy target.
2837
2838         * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
2839         (debug_linux_nat_async): New global.
2840         (show_debug_linux_nat_async): New function.
2841         (linux_nat_async_enabled, linux_nat_async_mask_value)
2842         (linux_nat_event_pipe, linux_nat_num_queued_events)
2843         (linux_nat_async_events_enabled): New globals.
2844         (struct waitpid_result): New struct.
2845         (waitpid_queue): New global.
2846         (queued_waitpid, push_waitpid, drain_queued_events): New.
2847         (my_waitpid): Call queued_waitpid.
2848         (linux_child_follow_fork): Disable async events during the call.
2849         (blocked_mask): Delete.
2850         (sync_sigchld_action, async_sigchld_action): New globals.
2851         (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD.  In
2852         async mode, block events during the call.
2853         (linux_nat_create_inferior): New.
2854         (linux_nat_attach): In sync mode, restore the mask states.  In
2855         async mode, wake the event loop immediatelly.
2856         (detach_callback): Drain all queued events of the lwp we're
2857         detaching from.
2858         (linux_nat_detach): Block async mode, and drain events of the main
2859         process.
2860         (linux_nat_resume): If in async mode, mask async events during the
2861         call.  If short circuiting, force event loop to wake up.  If
2862         resuming, set target_executing, and register target events in the
2863         event loop.
2864         (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
2865         (linux_nat_wait): In async mode, block events during the call.
2866         Only enable/disable passing SIGINT to the inferior in sync mode.
2867         Get events from local waitpid queue.  If no interesting events was
2868         found, return to events loop.  Reregister target events in the
2869         event loop on exit.  In sync mode, no need to reblock SIGCHLD.
2870         (linux_nat_kill): Disable events on entry.
2871         (linux_nat_mourn_inferior): In sync mode, don't restore the masks
2872         here.  Detach async mode from the event loop if there are no more
2873         forks available, otherwise leave it on.
2874         (sigchld_handler): Assure this is called only in sync mode.
2875         (linux_async_permitted, linux_async_permitted_1): New globals.
2876         (set_maintenance_linux_async_permitted)
2877         (show_maintenance_linux_async_permitted): New functions.
2878         (linux_nat_is_async_p, linux_nat_can_async_p)
2879         (linux_nat_async_mask): New.
2880         (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
2881         (get_pending_events, async_sigchld_handler): New.
2882         (linux_nat_async_events): New.
2883         (async_terminal_is_ours): New global.
2884         (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
2885         (async_client_callback, async_client_context): New.
2886         (linux_nat_async_file_handler, linux_nat_async)
2887         (linux_nat_disable_async, linux_nat_enable_async): New.
2888         (linux_nat_add_target): Register linux_nat_create_inferior,
2889         linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
2890         linux_nat_async_mask, linux_nat_terminal_inferior and
2891         linux_nat_terminal_ours.
2892         (_initialize_linux_nat): Remove local action variable, and update
2893         code that used it to use sync_sigchld_action.  Add new
2894         "lin-lwp-async" debug set/show command.  Put the "lin-lwp" debug
2895         set/show command in the maintenance class.  Add new "linux-async"
2896         maintenance set/show command.  Block SIGCHLD by default.  Setup
2897         async_sichld_action, and sync_sigchld_action.  Install the default
2898         async mode.
2899         (lin_thread_get_thread_signals): Use a local sigset_t for blocking
2900         the cancel signals.
2901
2902         * linux-thread-db.c (re_check_for_thread_db): New.
2903         (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
2904         (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
2905         (thread_db_async_mask): New.
2906         (init_thread_db_ops): Register thread_db_can_async_p,
2907         thread_db_is_async_p, thread_db_async and thread_db_async_mask.
2908
2909         * remote.c (remote_async_mask_value): New.
2910         (remote_return_zero): New.
2911         (init_remote_ops): Register remote_return_zero as callbacks of
2912         to_can_async_p and to_is_async_p.
2913         (remote_can_async_p, remote_is_async_p, remote_async): Update to
2914         use remote_async_mask_value.
2915         (remote_async_mask): New.
2916         (init_remote_async_ops): Remove to_async_mask_value setting and
2917         register remote_async_mask as to_async_mask callback in
2918         remote_async_ops.
2919
2920         * Makefile.in (linux-nat.o): Update.
2921
2922 2008-03-21  Daniel Jacobowitz  <[email protected]>
2923
2924         * gdbthread.h (add_thread_with_info): New.
2925         * linux-thread-db.c: Add some documentation.
2926         (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
2927         (struct private_thread_info): Remove th_valid and ti_valid.
2928         Replace ti with tid.
2929         (thread_get_info_callback): Do not add TID to the new ptid.  Do
2930         not cache th or ti.
2931         (thread_db_map_id2thr, lwp_from_thread): Delete functions.
2932         (thread_from_lwp): Assert that the LWP is set.  Do not add TID to the
2933         new PTID.
2934         (attach_thread): Handle an already-existing thread.  Use
2935         add_thread_with_info.  Cache the th and tid.
2936         (detach_thread): Verify that private was set.  Remove verbose
2937         argument and printing.  Update caller.
2938         (thread_db_detach): Do not adjust inferior_ptid.
2939         (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
2940         (check_event, find_new_threads_callback): Do not add TID to the new PTID.
2941         (thread_db_wait): Do not use lwp_from_thread.
2942         (thread_db_pid_to_str): Use the cached TID.
2943         (thread_db_extra_thread_info): Check that private is set.
2944         (same_ptid_callback): Delete.
2945         (thread_db_get_thread_local_address): Do not use it or check
2946         is_thread.  Check that private is set.  Assume that the thread
2947         handle is already cached.
2948         (init_thread_db_ops): Remove to_resume and to_kill.
2949         * thread.c (add_thread_with_info): New.
2950         (add_thread): Use it.
2951         * linux-nat.c (find_thread_from_lwp): Delete.
2952         (exit_lwp): Do not use it.  Check print_thread_events.  Print before
2953         deleting the thread.
2954         (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
2955         * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
2956         * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
2957         printf_unfiltered for thread exits.
2958         * procfs.c (procfs_wait): Likewise.
2959
2960 2008-03-21  Chris Demetriou  <[email protected]>
2961
2962         * symtab.c (rbreak_command): Quote symbol name before passing
2963         it to break_command.
2964
2965 2008-03-21  Daniel Jacobowitz  <[email protected]>
2966
2967         * eval.c (evaluate_subexp_for_address): Clarify error message.
2968         Use value_must_coerce_to_target.
2969         * infcall.c (value_arg_coerce): Call value_coerce_to_target.
2970         * valops.c (value_assign): Call value_coerce_to_target when
2971         assigning to anything but internalvars.  Leave GDB-side arrays
2972         as arrays when assigning to internalvars.
2973         (value_must_coerce_to_target, value_coerce_to_target): New.
2974         (value_coerce_array, value_addr): Call value_coerce_to_target.
2975         (value_array): Create the array in GDB's memory instead of
2976         the inferior's.
2977         * value.h (value_must_coerce_to_target, value_coerce_to_target):
2978         Declare.
2979
2980 2008-03-21  Daniel Jacobowitz  <[email protected]>
2981
2982         * top.c (quit_confirm): Warn that we will kill the program.
2983
2984 2008-03-19  Pedro Alves  <[email protected]>
2985
2986         * inflow.c (terminal_ours_1): Guard access to
2987         inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
2988
2989 2008-03-18  Ulrich Weigand  <[email protected]>
2990             Jim Blandy  <[email protected]>
2991             Daniel Jacobowitz  <[email protected]>
2992
2993         * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
2994         (dwarf2_read_address): Update prototype.
2995
2996         * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
2997         (signed_address_type): Likewise.
2998         (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
2999         (execute_stack_op): Update calls to unsigned_address_type,
3000         signed_address_type and dwarf2_read_address.  Fix implementation
3001         of DW_OP_deref_size.
3002
3003         * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
3004         (dwarf2_per_cu_addr_size): Likewise.
3005         (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
3006         (struct dwarf2_loclist_baton): Likewise.
3007
3008         * dwarf2loc.c (find_location_expression): Update calls to
3009         dwarf2_read_address.  Use dwarf2_per_cu_objfile and
3010         dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
3011         (locexpr_describe_location): Likewise.
3012         (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
3013         Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
3014         (dwarf2_loc_desc_needs_frame): Add PER_CU parameter.  Set ctx->addr_size
3015         to dwarf2_per_cu_addr_size (per_cu).
3016         (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
3017         (loclist_read_variable): Likewise.
3018         (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
3019
3020         * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
3021         instead of baton->objfile.
3022         (dwarf2_per_cu_obfile): New function.
3023         (dwarf2_per_cu_addr_size): Likewise.
3024
3025         * dwarf2-frame.c (struct comp_unit): Move higher.
3026         (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
3027         (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
3028         (execute_cfa_program): Add FDE parameter.  Replace EH_FRAME_P
3029         parameter by using fde->eh_frame_p.  Use read_encoded_value
3030         to implement DW_CFA_set_loc.
3031         (struct dwarf2_frame_cache): Add ADDR_SIZE member.
3032         (dwarf2_frame_cache): Set cache->addr_size.  Update calls to
3033         execute_stack_op and execute_cfa_program.
3034         (dwarf2_frame_prev_register): Update calls to execute_stack_op.
3035         (size_of_encoded_value): Remove.
3036         (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
3037         Remove call to size_of_encoded_value.  Implement DW_EH_PE_funcrel.
3038         (add_cie): Set cie->unit backlink.
3039         (decode_frame_entry_1): Set cie->addr_size.  Update calls to
3040         read_encoded_value.
3041         (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
3042
3043 2008-03-17  Markus Deuling  <[email protected]>
3044
3045         * i386-tdep.c (i386_print_insn): Remove unnecessary call to
3046         gdbarch_bfd_arch_info.
3047
3048 2008-03-17  Joel Brobecker  <[email protected]>
3049
3050         * aix-thread.c (pdc_read_regs): Minor reformatting.
3051
3052 2008-03-17  Vladimir Prus  <[email protected]>
3053
3054         * thread.c (print_thread_info): Don't insist
3055         on having current thread if there are no
3056         threads at all.
3057
3058 2008-03-17  Pedro Alves  <[email protected]>
3059
3060         * infcmd.c (attach_command_post_wait)
3061         (attach_command_continuation): New.
3062         (attach_command): Support background async execution, and async
3063         execution in synchronous mode.
3064
3065 2008-03-17  Daniel Jacobowitz  <[email protected]>
3066
3067         * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
3068         * symmisc.c (dump_symtab_1): Likewise.
3069         * wrapper.c (gdb_value_struct_elt): Likewise.
3070
3071 2008-03-17  Pedro Alves  <[email protected]>
3072
3073         * linux-nat.c (linux_nat_filter_event): Fix comment typo.
3074
3075 2008-03-17  Pedro Alves  <[email protected]>
3076
3077         * linux-nat.c (linux_nat_filter_event): New, refactored from
3078         linux_nat_wait.
3079         (linux_nat_wait): Call linux_nat_filter_event.
3080
3081 2008-03-17  Ulrich Weigand  <[email protected]>
3082
3083         * top.c (execute_command): Fix uninitialized variable error.
3084
3085 2008-03-16  Nick Hudson  <[email protected]>
3086
3087         * Makefile.in (amd64nbsd-nat.o): New dependency.
3088         * amd64nbsd-nat.c: Include "nbsd-nat.h".
3089         (_initialize_amd64nbsd_nat): Update target vector to use
3090         nbsd_pid_to_exec_file.
3091         * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
3092
3093 2008-03-15  Vladimir Prus  <[email protected]>
3094
3095         Remove ignoring leading exec events code.
3096         * fork-child.c (startup_inferior): Do not set
3097         inferior_ignoring_leading_exec_events.
3098         * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
3099         (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
3100         * infrun.c (inferior_ignoring_leading_exec_events): Remove.
3101         (handle_inferior_event): Remove code for ignoring leading exec
3102         events.
3103         * target.c (update_current_target): Do not inherit, or default,
3104         to_reported_exec_events_per_exec_call.
3105         (debug_to_reported_exec_events_per_exec_call): Remove.
3106         (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
3107         * target.h (target_reported_exec_events_per_exec_call): Remove.
3108         (struct target): Remove the to_reported_exec_events_per_exec_call
3109         field.
3110
3111 2008-03-15  Vladimir Prus  <[email protected]>
3112
3113         Implement -thread-info.
3114         * gdbthread.h (print_thread_info): Declare.
3115
3116         * thread.c (print_thread_info): New, extracted
3117         from info_threads_command and adjusted to
3118         work for CLI and MI.
3119         (info_threads_command): Use print_thread_info.
3120         * Makefile.in: Update dependencies.
3121
3122         * mi/mi-cmds.c (mi_cmds): Specify a handler
3123         for -thread-info.
3124         * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
3125         * mi/mi-main.c (mi_cmd_thread_info): New.
3126         (mi_cmd_list_features): Include 'thread-info'.
3127
3128 2008-03-14  Kevin Buettner  <[email protected]>
3129
3130         * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
3131         to decide whether to match instruction patterns using "sw" and "sd".
3132
3133 2008-03-14  Pedro Alves  <[email protected]>
3134
3135         * infcmd.c (jump_command): Postpone disabling stdin until after
3136         the possible query.
3137
3138 2008-03-14  Pedro Alves  <[email protected]>
3139
3140         * inflow.c (gdb_getpgrp): New.
3141         (gdb_has_a_terminal): Use get_getpgrp.
3142         (terminal_ours_1): If attach_flag is set, don't refetch
3143         inferior_process_group.
3144
3145 2008-03-14  Pedro Alves  <[email protected]>
3146
3147         * features/library-list.dtd: Allow "section" elements as children
3148         of "library".  Add "section" element and describe its attributes.
3149
3150         * solib-target.c (struct lm_info): Add section_bases member.
3151         (library_list_start_segment): Error out if seen a section element.
3152         (library_list_start_section): New.
3153         (library_list_end_library): New.
3154         (solib_target_free_library_list): Free section_bases.
3155         (section_attributes): New.
3156         (library_children): Make "segment" optional.  Add "section" child.
3157         (library_list_children): Register library_list_end_library.
3158         (solib_target_relocate_section_addresses): Handle section bases.
3159
3160         * NEWS: Mention new qXfer:libraries:read section offsets support.
3161
3162 2008-03-14  Vladimir Prus  <[email protected]>
3163
3164         * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
3165         (make_exec_error_cleanup): Remove declarations.
3166         * utils.c (exec_error_cleanup_chain): Remove.
3167         (do_exec_error_cleanups, discard_exec_error_cleanups)
3168         (make_exec_error_cleanup): Remove.
3169         * event-loop.c (start_event_loop): Adjust call to
3170         async_enable_stdin.
3171         * event-top.c (async_enable_stdin): Remove the paramater dummy.
3172         (async_disable_stdin): Don't register async_enable_stdin via
3173         cleanup.
3174         * inf-loop.c (inferior_event_handler): Don't
3175         call do_exec_error_cleanups.  Call async_enable_stdin instead.
3176         * event-loop.c (start_event_loop): Adjust call to
3177         async_enable_stdin.
3178         * tui/tui-interp.c (tui_command_loop): Adjust call to
3179         async_enable_stdin.
3180
3181 2008-03-14  Vladimir Prus  <[email protected]>
3182
3183         Async mode fixes.
3184         * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
3185         * breakpoint.c (bpstat_do_actions): In async mode,
3186         don't jump to top expecting stop_bpstat to be already
3187         updated.
3188         * event-loop.c (start_event_loop): Call async_enable_stdin
3189         on exception.
3190         * event-top.c (async_enable_stdin): Do nothing if sync_execution
3191         is not set.
3192         (command_handler): Do not setup continuation here.
3193         (command_line_handler_continuation): Move to...
3194         * top.c (command_line_handler_continuation): ... here.
3195         (execute_command): In async mode, register continuation.
3196         Don't check frame's language in running in async mode.
3197         * exceptions.c (throw_exception): Don't do exec_error_cleanups.
3198         * inf-loop.c (complete_execution): Inline into...
3199         (inferior_event_handler): ... here.  Clear target_executing before
3200         doing any cleanups.  Don't try to show prompt if the target was
3201         resumed.
3202         * infcmd.c (signal_command): Add support for async mode.
3203         (finish_command): Only add continuation if the target was
3204         successfully resumed.
3205         * remote.c (init_async_opts): Register to_get_thread_local_address
3206         handler.
3207         * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
3208         with sync_execution.
3209         * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
3210         on exception.
3211
3212 2008-03-14  Daniel Jacobowitz  <[email protected]>
3213
3214         * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
3215         * exec.c (exec_bfd_mtime): Define.
3216         (exec_close): Clear it.
3217         (exec_file_attach): Set it.
3218         * gdbcore.h (exec_bfd_mtime): Declare.
3219         * source.c (find_source_lines): Do not use bfd_get_mtime.
3220
3221 2008-03-14  Vladimir Prus  <[email protected]>
3222
3223         * top.c (simplified_command_loop): Remove.
3224
3225 2008-03-14  Vladimir Prus  <[email protected]>
3226
3227         Remove unused remote.c hooks.
3228         * remote.c (deprecated_target_resume_hook)
3229         (deprecated_target_wait_loop_hook): Remove.
3230         (remote_resume): Do not call deprecated_target_resume_hook.
3231         (remote_wait): Do not call deprecated_target_wait_loop_hook.
3232         (remote_async_wait): Likewise.
3233
3234 2008-03-14  Vladimir Prus  <[email protected]>
3235
3236         Implement MI notification for new threads.
3237         * doc/observer.texi (new_thread): Document.
3238         * observer.sh: Forward declare struct thread_info.
3239         * thread.c (add_thread): Notify observer.
3240
3241         * interps.h (interp_init_ftype): New parameter
3242         top_level.
3243         (interp_set): Likewise.
3244         (top_level_interpreter_data): Declare.
3245         * interps.c (interp_set): New parameter top_level.
3246         Pass it to interpreter's init function.  Remember
3247         top level interpreter.
3248         (interpreter_exec_cmd): Adjust.
3249         (top_level_interpreter_data): New.
3250         * main.c (captured_main): Pass 1 for top_level
3251         parameter of interp_set.
3252         * cli/cli-interp.c (cli_interpreter_init): New
3253         parameter top_level.
3254         * tui/tui-interp.c (tui_init): New parameter top_level.
3255
3256         * mi/mi-interp.c (mi_new_thread): New.
3257         (mi_interpreter_init): If top level, register
3258         observer for new threads.
3259
3260         * Makefile.in (mi-interp.o, thread.o): Update dependencies.
3261
3262 2008-03-14  Pedro Alves  <[email protected]>
3263
3264         * top.c (execute_command): Disable break and stop
3265         commands in async mode.
3266
3267 2008-03-14  Pedro Alves  <[email protected]>
3268
3269         revert:
3270         2008-03-14  Pedro Alves  <[email protected]>
3271         * inf-loop.c (inferior_event_handler): Don't include remote.h.
3272         Call target_stop in the INF_QUIT_REQ case.
3273         * Makefile.in (inf-loop.o): Update.
3274
3275 2008-03-14  Pedro Alves  <[email protected]>
3276
3277         * inf-loop.c (inferior_event_handler): Don't include remote.h.
3278         Call target_stop in the INF_QUIT_REQ case.
3279         * Makefile.in (inf-loop.o): Update.
3280
3281 2008-03-14  Pedro Alves  <[email protected]>
3282
3283         * top.c (execute_command): Enable break, info and interrupt
3284         commands in async mode.
3285
3286 2008-03-13  Vladimir Prus  <[email protected]>
3287             Daniel Jacobowitz  <[email protected]>
3288
3289         * breakpoint.h (breakpoint_restore_shadows): New
3290         declaration.
3291         * breakpoint.c (breakpoint_restore_shadows): New.
3292         (read_memory_nobpt): Delete.
3293         * gdbcore.h (read_memory_nobpt): Delete declaration.
3294         * target.c (memory_xfer_partial): Call
3295         breakpoint_restore_shadows.
3296         (restore_show_memory_breakpoints)
3297         (make_show_memory_beakpoints_cleanup): New.
3298         (show_memory_breakpoints): New.
3299         * target.h (make_show_memory_beakpoints_cleanup): Declare.
3300         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
3301         Make sure we see memory breakpoints when checking if
3302         breakpoint is still there.
3303         * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
3304         hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
3305         m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
3306         sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
3307
3308 2008-03-12  Pedro Alves  <[email protected]>
3309
3310         * thread.c (add_thread): Use printf_unfiltered to print.
3311
3312 2008-03-12  Joel Brobecker  <[email protected]>
3313
3314         * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
3315         that is true only on x86-solaris and x86_64-solaris.
3316         * procfs.c: Likewise. Move procfs_find_LDT_entry up together
3317         with proc_get_LDT_entry.
3318
3319 2008-03-12  Thiago Jung Bauermann  <[email protected]>
3320
3321         * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
3322         * config.in, configure: Regenerate.
3323         * fork-child.c (fork_inferior): Call create_tty_session.
3324         * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
3325         (create_tty_session): New function.
3326         * terminal.h: Declare create_tty_session.
3327
3328 2008-03-12  Alan Modra  <[email protected]>
3329
3330         PR 5900
3331         * elfread.c (elf_symtab_read): Make shndx an unsigned int.
3332         * mipsread.c: Include elf/internal.h.
3333         (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
3334         to internal range.
3335
3336 2008-03-11  Markus Deuling  <[email protected]>
3337
3338         * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
3339         to get at the current architecture and at the target specific vector.
3340         Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
3341         remove define of I387_ST0_REGNUM.
3342
3343         * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
3344
3345         (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
3346         get at the current architecture
3347         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
3348         parameter.
3349
3350         * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
3351         I387_NUM_XMM_REGS and I387_MM0_REGNUM.
3352
3353         (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
3354         I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
3355         (I387_FSTAT_REGNUM): Add target specific vector as parameter.
3356
3357         (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
3358         at the target specific vector.
3359
3360         (i386_get_longjmp_target): Use get_frame_arch to get at the current
3361         architecture. Use gdbarch_tdep to get at the target specific vector.
3362
3363         (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
3364         update caller. Use gdbarch_tdep to get at the target specific vector.
3365
3366         (i386_register_to_value: Use get_frame_arch to get at the current
3367         architecture.
3368
3369         * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
3370         parameter.
3371
3372         * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
3373         I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
3374         I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
3375         FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
3376
3377         (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
3378         undef's.
3379
3380         (i387_convert_register_p, i387_register_to_value,
3381         i387_value_to_register): Update call for i386_fp_regnum_p.
3382
3383         * i387-tdep.h: Remove comment.
3384         (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
3385         (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
3386         I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
3387         I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
3388         I387_MXCSR_REGNUM): Add target specific vector as parameter.
3389
3390 2008-03-10  Daniel Jacobowitz  <[email protected]>
3391
3392         * Makefile.in (fork-child.o): Update.
3393         * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
3394         argument.  Gather all gdbserver features together.
3395         * fork-child.c (exec_wrapper): New variable.
3396         (fork_inferior): Use it.
3397         (startup_inferior): Skip an extra trap if using "set exec-wrapper".
3398         (unset_exec_wrapper_command, _initialize_fork_child): New.
3399
3400 2008-03-10  Hidetaka Takano  <[email protected]>
3401
3402         * source.c (directory_command): Modify the determination of
3403         condition of terminal "from_tty".
3404
3405 2008-03-10  Matt Rice  <[email protected]>
3406
3407         * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
3408
3409 2008-03-10  Hidetaka Takano  <[email protected]>
3410
3411         * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
3412         of the data passing to strtoulst function.
3413         (info_spu_signal_command): Likewise.
3414
3415 2008-03-08  Vladimir Prus  <[email protected]>
3416
3417         * mi/mi-interp.c (mi_command_loop): Remove
3418         commented-out code.
3419         
3420 2008-03-07  Joel Brobecker  <[email protected]>
3421
3422         * remote.c (extended_remote_attach_1): Make local variable pid an int
3423         instead of a pid_t.
3424
3425 2008-03-07  Joel Brobecker  <[email protected]>
3426
3427         * solib-svr4.c (svr4_same_1): New function, originally extracted
3428         from svr4_same and expanded to handle the sparc64 case.
3429         (svr4_same): Move up and reimplement using svr4_same_1.
3430         (enable_break): Use svr4_same_1 to do shared library name comparisons.
3431
3432 2008-03-07  Ramana Radhakrishnan  <[email protected]>
3433
3434         * MAINTAINERS: Move self to Paper trail.
3435
3436 2008-03-05  Daniel Jacobowitz  <[email protected]>
3437
3438         * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
3439         * event-loop.c (call_async_signal_handler): New.
3440         * event-loop.h (call_async_signal_handler)
3441         (gdb_call_async_signal_handler): Declare.
3442         (mark_async_signal_handler): Add comments.
3443         * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
3444         * mingw-hdep.c (sigint_event, sigint_handler): New.
3445         (gdb_select): Use them.  Wait for the readline signal handler
3446         to finish.
3447         (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
3448         * posix-hdep.c (gdb_call_async_signal_handler): New function.
3449         * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
3450         New.
3451         (remote_fileio_ctrl_c_signal_handler): Use
3452         gdb_call_async_signal_handler.
3453         (initialize_remote_fileio): Initialize sigint_fileio_token.
3454         * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
3455         not initialize tokens here.
3456         (handle_remote_sigint_twice): Likewise.  Reinstall
3457         handle_remote_sigint.
3458         (async_remote_interrupt_twice): Just call interrupt_query.
3459         (cleanup_sigint_signal_handler): Do not delete tokens.
3460         (remote_interrupt, remote_interrupt_twice): Use
3461         gdb_call_async_signal_handler.
3462         (interrupt_query): Reinstall the default signal handler.
3463         (_initialize_remote): Initialize tokens here.
3464
3465 2008-03-04  Joel Brobecker  <[email protected]>
3466
3467         * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
3468         features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
3469         Change the type of the lr register to code_ptr.
3470         * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
3471         features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
3472         features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
3473         features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
3474         features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
3475         features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
3476         features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
3477
3478 2008-03-03  James E. Wilson  <[email protected]>
3479
3480         * MAINTAINERS: Update my email address.
3481
3482 2008-03-03  Keith Seitz  <[email protected]>
3483
3484         From Dave Murphy  <[email protected]>:
3485         * configure.ac: Set tcl configdir to win under mingw.
3486         * configure: Regenerate.
3487
3488 2008-03-03  Daniel Jacobowitz  <[email protected]>
3489
3490         * breakpoint.c (fetch_watchpoint_value): New function.
3491         (update_watchpoint): Set and clear val_valid.  Use
3492         fetch_watchpoint_value.  Handle unreadable values on the
3493         value chain.  Correct check for user-requested array watchpoints.
3494         (breakpoint_init_inferior): Clear val_valid.
3495         (watchpoint_value_print): New function.
3496         (print_it_typical): Use it.  Do not free or clear old_val.  Print
3497         watchpoints even if old_val == NULL.
3498         (watchpoint_check): Use fetch_watchpoint_value.  Check for values
3499         becoming readable or unreadable.
3500         (watch_command_1): Use fetch_watchpoint_value.  Set val_valid.
3501         (do_enable_watchpoint): Likewise.
3502         * breakpoint.h (struct breakpoint): Update comment for val.  Add
3503         val_valid.
3504         * NEWS: Mention watchpoints on inaccessible memory.
3505
3506 2007-02-29  Daniel Jacobowitz  <[email protected]>
3507
3508         * Makefile.in (i386-nat.o): Update.
3509         * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
3510         i386_use_watchpoints.
3511         * i386-linux-nat.c (_initialize_i386_linux_nat): Call
3512         i386_use_watchpoints.
3513         * i386-nat.c (i386_stopped_data_address): Take two arguments.
3514         (i386_stopped_by_watchpoint): Update call.
3515         (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
3516         * config/i386/nm-i386.h: Conditionalize definitions on
3517         ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
3518         (i386_use_watchpoints): Declare.
3519         (i386_stopped_data_address): Update.
3520         * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
3521         * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
3522
3523 2008-02-29  Joel Brobecker  <[email protected]>
3524
3525         GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
3526         * version.in: Bump version to 6.8.50.20080229-cvs.
3527
3528 2008-02-28  Markus Deuling  <[email protected]>
3529
3530         * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
3531         properly.
3532
3533 2008-02-28  Tom Tromey  <[email protected]>
3534
3535         * infcmd.c (notice_args_read): Print result of get_inferior_args.
3536
3537 2008-02-28  Daniel Jacobowitz  <[email protected]>
3538
3539         * infcmd.c (kill_if_already_running): Make static.  Use
3540         target_require_runnable.
3541         * target.c (target_require_runnable): New.
3542         * target.h (target_require_runnable): Declare.
3543
3544 2008-02-28  Daniel Jacobowitz  <[email protected]>
3545
3546         * frame.c (reinit_frame_cache): Only annotate if frames were
3547         previously valid.
3548
3549 2008-02-28  Ulrich Weigand  <[email protected]>
3550
3551         * regformats/reg-ppc.dat: Rename "ps" to "msr".
3552         * regformats/reg-ppc64.dat: Likewise.
3553
3554 2008-02-28  Ulrich Weigand  <[email protected]>
3555
3556         * features/Makefile (%.dat): Emit xmltarget statement.
3557
3558         * regformats/regdat.sh: Support xmltarget and xmlarch statments.
3559         Generate code to set gdbserver_xmltarget in init_registers_${name}.
3560
3561         * regformats/arm-with-iwmmxt.dat: Regenerate.
3562         * regformats/mips64-linux.dat: Regenerate.
3563         * regformats/mips-linux.dat: Regenerate.
3564         * regformats/rs6000/powerpc-32.dat: Regenerate.
3565         * regformats/rs6000/powerpc-64.dat: Regenerate.
3566         * regformats/rs6000/powerpc-e500.dat: Regenerate.
3567
3568         * regformats/reg-arm.dat: Add xmlarch statement.
3569         * regformats/reg-i386.dat: Likewise.
3570         * regformats/reg-i386-linux.dat: Likewise.
3571         * regformats/reg-x86-64-linux.dat: Likewise.
3572         * regformats/reg-spu.dat: Likewise.
3573
3574 2008-02-27  Daniel Jacobowitz  <[email protected]>
3575
3576         * remote.c (remote_wait, remote_async_wait): Stop if we receive
3577         an error.
3578
3579 2008-02-27  Daniel Jacobowitz  <[email protected]>
3580
3581         * utils.c (debug_timestamp): New.
3582         (vfprintf_unfiltered): Print timestamps if requested.
3583         (show_debug_timestamp): New.
3584         (initialize_utils): Register "set debug timestamp".
3585         * NEWS: Mention "set debug timestamp".  Add GDB 6.8 section.
3586
3587 2008-02-27  Joel Brobecker  <[email protected]>
3588
3589         * breakpoint.c (skip_prologue_sal): New function.
3590         (resolve_sal_pc): Adjust SAL past prologue if the SAL was
3591         computed from a line number.
3592
3593 2008-02-27  Joel Brobecker  <[email protected]>
3594
3595         * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
3596         features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
3597         Set PC register type to "code_ptr".
3598         * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
3599         features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
3600         features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
3601         features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
3602         features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
3603         features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
3604         features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
3605         Regenerate.
3606
3607 2008-02-27  Ulrich Weigand  <[email protected]>
3608
3609         * regformats/regdat.sh: Rename init_registers function in
3610         generated file to init_registers_${name}.
3611
3612         * regformats/reg-crisv32.dat: Set "name" to crisv32.
3613         * regformats/reg-ppc64.dat: Set "name" to ppc64.
3614         * regformats/reg-s390x.dat: Set "name" to s390x.
3615
3616 2008-02-26  Greg Law  <[email protected]>
3617
3618         * regcache.c (registers_changed): Call reinit_frame_cache.
3619
3620 2008-02-26  Daniel Jacobowitz  <[email protected]>
3621
3622         * configure.tgt (sh-*-linux*): Match sh*.  Add glibc-tdep.o.
3623         * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
3624         and svr4_fetch_objfile_link_map.
3625         * Makefile.in (sh-linux-tdep.o): Update.
3626
3627 2008-02-26  Thiago Jung Bauermann  <[email protected]>
3628
3629         * amd64-tdep.c (amd64_classify): Add support for decimal float
3630         types.
3631         * i386-tdep.c (i386_return_value): Make 128-bit decimal float
3632         use the struct return convention.
3633
3634 2008-02-26  Nick Roberts  <[email protected]>
3635
3636         * breakpoint.c (print_one_breakpoint_location): Revert Enb field
3637         to old format.  Discard breakpoint address if shared library is
3638         unloaded.
3639         (breakpoint_1): Adjust formatting of table header accordingly.
3640
3641 2008-02-25  Vladimir Prus  <[email protected]>
3642
3643        * remote.c (remote_get_threadlist): If the response
3644        is empty, don't try to parse it.
3645
3646 2008-02-23  Vladimir Prus  <[email protected]>
3647
3648         Unbreak 'target async'.
3649         * serial.c (serial_async): Set the
3650         handler function before enabling async
3651         mode.
3652
3653 2008-02-22  Daniel Jacobowitz  <[email protected]>
3654
3655         * solib-svr4.c (enable_break): Convert r_brk to a code address.
3656
3657 2008-02-21  Pedro Alves  <[email protected]>
3658
3659         * remote.c (extended_remote_attach_1): Set attach_flag.
3660         (extended_remote_create_inferior_1): Clear attach_flag.
3661
3662 2008-02-20  Daniel Jacobowitz  <[email protected]>
3663
3664         * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
3665         r_brk_offset.
3666         (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
3667         * solib-svr4.c (solib_svr4_r_brk): New.
3668         (open_symbol_file_object, svr4_current_sos): Always check the
3669         debug base.
3670         (svr4_fetch_objfile_link_map): Do not set debug_base.
3671         (enable_break): Use r_brk if it is set.
3672         (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
3673         (svr4_lp64_fetch_link_map_offsets): Likewise.
3674         * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
3675
3676 2008-02-20  Markus Deuling  <[email protected]>
3677             Mark Kettenis  <[email protected]>
3678
3679         * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
3680         trad_frame_saved_reg.
3681         (trad-frame.h): New include. 
3682
3683         (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
3684         instead of frame_obstack_zalloc. 
3685         (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
3686
3687         * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h. 
3688
3689 2008-02-20  Markus Deuling  <[email protected]>
3690
3691         * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
3692         from disassemble_info instead of gdbarch_byte_order.
3693
3694         * mips-tdep.c (gdb_print_insn_mips): Likewise.
3695         * arm-tdep.c (gdb_print_insn_arm): Likewise.
3696
3697 2008-02-20  Markus Deuling  <[email protected]>
3698
3699         * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
3700         gdbarch as parameter.
3701
3702         * gdbarch.{c,h}: Regenerate.
3703
3704         * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
3705         parameter.
3706         * mem-break.c (default_memory_insert_breakpoint)
3707         (default_memory_remove_breakpoint): Likewise.
3708         * target.h (default_memory_remove_breakpoint)
3709         (default_memory_insert_breakpoint): Likewise.
3710
3711         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
3712         parameter. Replace current_gdbarch by gdbarch.
3713         * m32r-tdep.c (m32r_memory_insert_breakpoint)
3714         (m32r_memory_remove_breakpoint): Likewise.
3715
3716 2008-02-19  Daniel Jacobowitz  <[email protected]>
3717
3718         * MAINTAINERS: Add Vladimir Prus as MI maintainer.
3719
3720 2008-02-19  Joel Brobecker  <[email protected]>
3721
3722         * NEWS: Add entry describing Add support improvements.
3723
3724 2008-02-18  Markus Deuling  <[email protected]>
3725
3726         * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
3727         M68K_FP0_REGNUM.
3728
3729 2008-02-18  Markus Deuling  <[email protected]>
3730
3731         * sentinel-frame.c (sentinel_frame_prev_register): Do not call
3732         register_offset_hack anymore.
3733
3734         * regcache.{c,h} (register_offset_hack): Remove.
3735
3736 2008-02-18  Markus Deuling  <[email protected]>
3737
3738         * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
3739
3740         * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
3741         current_gdbarch by gdbarch.
3742         (hppa64_hpux_find_global_pointer): Likewise.
3743         * hppa-tdep.c (hppa_find_global_pointer): Likewise.
3744         (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
3745         find_global_pointer.
3746
3747         * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
3748         parameter.
3749         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
3750
3751         * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
3752         of gdbarch_num_regs.
3753
3754         * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
3755         replace current_gdbarch by gdbarch.     
3756         (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
3757
3758 2008-02-18  Markus Deuling  <[email protected]>
3759
3760         * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
3761         and replace current_gdbarch by gdbarch.
3762
3763         (store_register): Update call for exec_one_dummy_insn.
3764         (fetch_register, store_register): Update call of regmap.
3765
3766         * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
3767         parameter and replace current_gdbarch by gdbarch.
3768         
3769         (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
3770         the current architecture. Update call for getregs_supplies and
3771         getfpregs_supplies.
3772         (ppcnbsd_fetch_inferior_registers): Likewise.
3773
3774         * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and 
3775         replace current_gdbarch by gdbarch.
3776         (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
3777         get_regcache_arch to get at the current architecture. Update call for
3778         getfpregs_supplies.
3779
3780 2008-02-18  Markus Deuling  <[email protected]>
3781
3782         * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
3783         variables. 
3784
3785 2008-02-15  Markus Deuling  <[email protected]>
3786
3787         * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
3788
3789 2008-02-14  Vladimir Prus  <[email protected]>
3790
3791         * NEWS: Mention pending breakpints in MI.
3792         
3793 2008-02-14  Markus Deuling  <[email protected]>
3794
3795         * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
3796
3797 2008-02-13  Markus Deuling  <[email protected]>
3798
3799         Add script to build and test GDB using enable-targets=all.
3800
3801         * gdb_buildall.sh: New file.
3802
3803 2008-02-11  Maxim Grigoriev  <[email protected]>
3804
3805         * NEWS (New native configurations): Xtensa GNU/Linux.
3806         (New targets): Xtensa GNU/Linux.
3807         * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
3808         xtensa-linux-tdep.o
3809         (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
3810         (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
3811         * configure.tgt (xtensa*-*-linux*): New entry.
3812         * xtensa-config.c (xtensa_tdep): New variable.
3813         (xtensa_config_byte_order, xtensa_config_tdep): Removed.
3814         (rmap): Change format based on new macro XTREG.
3815         (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
3816         * xtensa-linux-nat.c: New.
3817         * xtensa-linux-tdep.c: New.
3818         * xtensa-xtregs.c: New.
3819         * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
3820         (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
3821         (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
3822         (xtensa_register_t): New field coprocessor.
3823         (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
3824         * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
3825         (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
3826         Update to handle privileged registers.
3827         (xtensa_supply_gregset) Remove exccause and excvaddr registers.
3828         (xtensa_push_dummy_call): Set windowstart register correctly.
3829         (call0_analyze_prologue): Initialize xtensa_default_isa.
3830         (xtensa_derive_tdep): New.
3831         (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
3832         xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
3833         Call xtensa_derive_tdep().
3834         * config/xtensa/linux.mh: New.
3835         * regformats/reg-xtensa.dat: New.
3836
3837 2008-02-09  Aleksandar Ristovski  <[email protected]>  (tiny change)
3838
3839         * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
3840         (filenames.h): New include.
3841         * Makefile.in (corelow.o): Add dependency for filenames.h.
3842
3843 2008-02-08  Doug Evans  <[email protected]>
3844
3845         * source.c (find_and_open_source): Always rewrite absolute filenames.
3846
3847 2008-02-07  Doug Evans  <[email protected]>
3848
3849         * breakpoint.c: #include "hashtab.h".
3850         (ambiguous_names_p): New fn.
3851         (update_breakpoint_locations): When restoring bp enable status, don't
3852         compare function names if any functions have same name.
3853         * Makefile.in (breakpoint.o): Add hashtab.h dependency.
3854
3855 2008-02-07  Joel Brobecker  <[email protected]>
3856
3857         * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
3858         instead of just a VEC*. Update use of SV.
3859         (ada_make_symbol_completion_list): Update symbol_completion_add calls.
3860
3861 2007-02-07  Joel Brobecker  <[email protected]>
3862
3863         * NEWS: Put all new commands since gdb-6.7 together.
3864
3865 2007-02-07  Joel Brobecker  <[email protected]>
3866
3867         * ada-lang.c: #include "vec.h".
3868         (struct string_vector, new_string_vector, string_vector_append):
3869         Delete.
3870         (char_ptr): New typedef.
3871         (DEF_VEC_P (char_ptr)): New VEC type.
3872         (symbol_completion_add): Update profile to take the new VEC type
3873         instead of the old string_vector structure. Update code accordingly.
3874         (ada_make_symbol_completion_list): Use the new VEC type instead of
3875         the old string_vector structure, and update the code accordingly.
3876         * Makefile.in (ada-lang.o): Add dependency on vec.h.
3877
3878 2008-02-06  Pierre Muller  <[email protected]>
3879
3880         * p-exp.y: Set current_type in missing places.
3881         (leftdiv_is_integer): New static variable.
3882         Typecast right operand of BINOP_DIV to long_double if both operands
3883         are integers.
3884
3885 2008-02-06  Maciej W. Rozycki  <[email protected]>
3886
3887         * remote-mips.c (set_breakpoint): Rename to...
3888         (mips_set_breakpoint): ... this.
3889         (clear_breakpoint): Rename to...
3890         (mips_clear_breakpoint): ... this.
3891         (common_breakpoint): Rename to...
3892         (mips_common_breakpoint): ... this.
3893         (check_lsi_error): Rename to...
3894         (mips_check_lsi_error): ... this.
3895
3896 2007-02-05  Joel Brobecker  <[email protected]>
3897
3898         * language.h (struct language_defn): Add new field
3899         la_make_symbol_completion_list.
3900         * symtab.c (default_make_symbol_completion_list): Renames
3901         make_symbol_completion_list.
3902         (make_symbol_completion_list): New function.
3903         * symtab.h (default_make_symbol_completion_list): Add declaration.
3904         * langauge.c (unknown_language): Set la_make_symbol_completion_list.
3905         (auto_language, local_language): Likewise.
3906         * objc-lang.c (objc_language_defn): Likewise.
3907         * scm-lang.c (scm_language_defn): Likewise.
3908         * m2-lang.c (m2_language_defn): Likewise.
3909         * f-lang.c (f_language_defn): Likewise.
3910         * jv-lang.c (java_language_defn): Likewise.
3911         * p-lang.c (pascal_language_defn): Likewise.
3912         * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
3913         (minimal_language_defn): Likewise.
3914         * ada-lang.c (struct string_vector): New structure.
3915         (new_string_vector, string_vector_append, ada_unqualified_name)
3916         (add_angle_brackets, symbol_completion_match, symbol_completion_add)
3917         (ada_make_symbol_completion_list): New functions.
3918         (ada_language_defn): Set la_make_symbol_completion_list.
3919         * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
3920         this function is static.
3921
3922 2008-02-05  Kevin Buettner  <[email protected]>
3923
3924         * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
3925         to account for call site optimizations.
3926
3927 2008-02-05  Andrzej Zaborowski  <[email protected]>
3928
3929         * tracepoint.c (read_actions): Handle end-of-text indicator
3930         in action list properly.  (Committed by Jim Blandy)
3931
3932 2008-02-05  Jim Blandy  <[email protected]>
3933
3934         * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
3935         pseudoregister, not an internal error.
3936         Reported by: Andrzej Zaborowski
3937
3938 2008-02-04  Vladimir Prus  <[email protected]>
3939
3940         * varobj.c (c_value_of_variable): Use xstrdup.
3941
3942 2008-02-04  Vladimir Prus  <[email protected]>
3943
3944         Update stored rendition of varobj value when format changes.
3945         * varobj.c (varobj_set_display_format): Recomputed
3946         print_value.
3947         (c_value_of_variable): Return print_value.
3948
3949 2008-02-03  Doug Evans  <[email protected]>
3950
3951         * eval.c (evaluate_subexp_standard): Fix type of result of mixed
3952         integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
3953         * valops.c (value_one): New function.
3954         * value.h (value_one): Declare.
3955
3956         Fix argument promotion for binary arithmetic ops for C.
3957         * valarith.c (unop_result_type): New fn.
3958         (binop_result_type): New fn.
3959         (value_binop): Move result type computation to binop_result_type.
3960         (value_pos, value_neg, value_complement): Move result type
3961         computation to unop_result_type.
3962
3963         PR 2384
3964         * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
3965         Return basetype, fieldno if found.  All callers updated.
3966         Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
3967         objfile.
3968         * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
3969         * symfile.h (fill_in_vptr_fieldno): Delete.
3970
3971 2008-02-02  Doug Evans  <[email protected]>
3972
3973         * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
3974
3975         * typeprint.c (*): Whitespace cleanup.
3976
3977 2008-02-02  Mark Kettenis  <[email protected]>
3978             Luis Machado  <[email protected]>
3979             Thiago Jung Bauermann  <[email protected]>        
3980
3981         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
3982         don't fit into registerson the stack the way GCC does.
3983
3984 2008-02-01  Joel Brobecker  <[email protected]>
3985
3986         * symtab.c (symbol_set_names): Do not add an entry in the demangling
3987         hash table for Ada symbols. Just store the linkage name as is,
3988         and leave the demangled_name as NULL.
3989
3990 2007-02-01  Joel Brobecker  <[email protected]>
3991
3992         * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
3993         in the global scope.
3994         (new_symbol): Likewise.
3995
3996 2008-02-01  Vladimir Prus  <[email protected]>
3997         
3998         * breakpoint.c (break_command_1): Return void.
3999         (break_command_really): Return void.  Rethrow
4000         exceptions instead of returning.
4001         (gdb_breakpoint): Remove the error_message parameter.
4002         Return void.  Rename to set_breakpoint.
4003         * gdb.h (gdb_breakpoint): Rename and move to...
4004         * breakpoint.h (set_breakpoint): ...here.
4005         * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
4006         event hooks even if exception is thrown.  Adjust to
4007         gdb_breakpoint interface changes.
4008         
4009
4010 2008-02-01  Thiago Jung Bauermann  <[email protected]>
4011
4012         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
4013         float in both first and second word in the doubleword, to support
4014         old and new ABIs.
4015
4016 2008-02-01  Vladimir Prus  <[email protected]>
4017
4018         Properly rethrow exception.  This fixes errors
4019         about non-existent functions for -break-insert.
4020         * breakpoint.c (break_command_really): Use throw_exception
4021         for rethrowing.  If rethrowing, don't print the exception.
4022
4023 2008-01-31  Thiago Jung Bauermann  <[email protected]>
4024
4025         * NEWS: Mention Decimal Floating Point support.
4026
4027 2008-01-31  Joel Brobecker  <[email protected]>
4028
4029         * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
4030         value type to builtin_type_void_func_ptr.
4031
4032 2008-01-31  Andreas Krebbel  <[email protected]>
4033
4034         * s390-tdep.c (is_float_singleton, is_float_like,
4035         alignment_of, s390_return_value): Make checks for
4036         TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
4037
4038 2008-01-31  Luis Machado  <[email protected]>
4039             Thiago Jung Bauermann  <[email protected]>
4040
4041         * infcmd.c (default_print_registers_info): Also print hex
4042         raw contents for TYPE_CODE_DECFLOAT registers.
4043         * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
4044         * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
4045         (rs6000_register_name): Add support for DFP pseudo-registers.
4046         (rs6000_pseudo_register_type): Likewise.
4047         rs6000_pseudo_register_reggroup_p): Likewise.
4048         (ppc_pseudo_register_read): New function.
4049         (ppc_pseudo_register_write): Likewise.
4050         (rs6000_pseudo_register_read): Likewise.
4051         (rs6000_pseudo_register_write): Likewise.
4052         (e500_pseudo_register_read): Move checks to
4053         rs6000_pseudo_register_read.
4054         (e500_pseudo_register_write): Move checks to
4055         rs6000_pseudo_register_write.
4056         (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum.  Install
4057         rs6000_pseudo_register_read and rs6000_pseudo_register_write
4058         in gdbarch if SPE or DFP is available.  Adjust gdbarch's
4059         num_pseudo_regs to account for DFP pseudo regs.
4060
4061 2008-01-31  Thiago Jung Bauermann  <[email protected]>
4062
4063         * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
4064         * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
4065         (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
4066         rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
4067         e500_pseudo_register_read, e500_pseudo_register_write): Use
4068         IS_SPE_PSEUDOREG macro.
4069         (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
4070         (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
4071         Remove initialization of tdep->ppc_ev31_regnum.
4072
4073 2008-01-08  Paul Hilfinger  <[email protected]>
4074
4075         * printcmd.c (print_formatted): Handle references as for unformatted
4076         prints.
4077
4078 2008-01-30  Joel Brobecker  <[email protected]>
4079
4080         * eval.c (evaluate_subexp_standard): Add handling of user
4081         registers when in EVAL_AVOID_SIDE_EFFECTS mode.
4082
4083 2008-01-30  Pierre Muller  <[email protected]>
4084
4085         * eval.c (evaluate_subexp_standard): Support
4086         BINOP_INTDIV opcode.
4087
4088 2008-01-30  Paul N. Hilfinger  <[email protected]>
4089
4090         * valarith.c (value_binop): Add floating-point BINOP_MIN and
4091         BINOP_MAX cases.
4092         For BINOP_EXP, use length and signedness of left operand only for
4093         result, as for shifts.
4094         For integral operands to BINOP_EXP, use new integer_pow and
4095         uinteger_pow functions so as to get full range of results.
4096         (integer_pow): New function.
4097         (uinteger_pow): New function.
4098
4099 2008-01-30  Vladimir Prus  <[email protected]>
4100
4101         Use vector for varobj_list_children interface.
4102         * gdb/varobj.c (varobj_list_children): Return vector
4103         of varobjs.
4104         * gdb/varobj.h (varobj_list_children): Adjust
4105         prototype.
4106         (varobj_p): Declare.  Declare vector thereof.
4107         * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
4108         for varobj_list_children change.
4109         * Makefile.in (varobj_h): Update dependencies.
4110
4111 2008-01-30  Thiago Jung Bauermann  <[email protected]>
4112
4113         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
4114         TYPE_CODE_DECFLOAT arguments.
4115         (ppc64_sysv_abi_push_dummy_call) Likewise.
4116         (get_decimal_float_return_value): New function.
4117         (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
4118         values by calling get_decimal_float_return_value.
4119         (ppc64_sysv_abi_return_value): Likewise.
4120
4121 2008-01-30  Nick Roberts  <[email protected]>
4122
4123         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):  Add field
4124         for preprocessor macro information.  Formatting changes.
4125
4126 2008-01-29  Daniel Jacobowitz  <[email protected]>
4127
4128         * remote.c (struct remote_state): Add cached_wait_status.
4129         (remote_exec_file): New variable.
4130         (PACKET_vAttach, PACKET_vRun): New constants.
4131         (extended_remote_restart): Do not query for status.
4132         (struct start_remote_args): New.
4133         (remote_start_remote): Take it as a second argument.  Check
4134         whether the target is running.  Issue an error for non-running
4135         non-extended targets.  Cache the wait status.  Set inferior_ptid
4136         here.
4137         (remote_open_1): Prompt to disconnect non-running targets.  Make
4138         sure the target is marked running.  Do not set inferior_ptid here.
4139         Update call to remote_start_remote.  Do not call remote_check_symbols
4140         if the target is not running.
4141         (remote_detach_1): Rename from remote_detach.  Take an EXTENDED
4142         argument.  Handle a non-running target.
4143         (remote_detach): Use it.
4144         (extended_remote_detach): New.
4145         (remote_disconnect): Fix typo.  Use remoute_mourn_1.
4146         (extended_remote_attach_1, extended_remote_attach)
4147         (extended_async_remote_attach): New.
4148         (remote_vcont_resume): Remove unused variable.
4149         (remote_wait, remote_async_wait): Use any cached wait status.
4150         (putpkt_binary, getpkt): Clear any cached wait status.
4151         (extended_remoute_mourn_1): New.
4152         (extended_remote_mourn): Use it.
4153         (extended_async_remote_mourn, extended_remote_run): New.
4154         (extended_remote_create_inferior_1): New.
4155         (extended_remote_create_inferior): Use it.
4156         (extended_remote_async_create_inferior): Likewise.
4157         (remote_xfer_partial): Skip for non-executing targets.
4158         (init_extended_remote_ops): Set to_detach and to_attach.
4159         (init_extended_async_remote_ops): Likewise.  Use
4160         extended_async_remote_mourn.
4161         (_initialize_remote): Register vAttach, vRun, and
4162         set remote exec-file.
4163         * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
4164
4165 2008-01-29  Daniel Jacobowitz  <[email protected]>
4166
4167         * Makefile.in (symfile.o): Update.
4168         * NEWS: Mention exec tracing support.
4169         * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
4170         exec events.
4171         * infcmd.c (kill_if_already_running, detach_command)
4172         (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
4173         * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
4174         (follow_exec): Do not check may_follow_exec.  Do not mourn and push
4175         targets.  Apply the sysroot path to the loaded executable.  Use
4176         no_shared_libraries.
4177         * linux-nat.c (linux_child_follow_fork): Print fork following
4178         messages if verbose.
4179         (kill_wait_callback): Kill again before waiting a second time.
4180         * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
4181         no_shared_libraries.
4182
4183 2008-01-29  Joel Brobecker  <[email protected]>
4184
4185         * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
4186
4187 2008-01-29  Joel Brobecker  <[email protected]>
4188
4189         * nto-tdep.h: Remove #include "defs.h".
4190         * nto-tdep.c: Add #include "defs.h".
4191         * Makefile.in (nto_tdep_h): Update dependencies.
4192         (nto-tdep.o): Likewise.
4193
4194 2008-01-29  Joel Brobecker  <[email protected]>
4195
4196         * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
4197         and use it.
4198         (proceed, start_remote): Update call to wait_for_inferior.
4199         * inferior.h (wait_for_inferior): Update declaration.
4200         * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
4201         solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
4202         * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
4203         TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
4204
4205 2008-01-29  Aleksandar Ristovski  <[email protected]>
4206
4207         * varobj (adjust_value_for_child_access): Added checking for 
4208         returned value from gdb_value_ind.
4209         (c_describe_child): Likewise.
4210         (cplus_describe_child): Fixed a typo.
4211
4212 2008-01-29  Jim Blandy  <[email protected]>
4213
4214         * MAINTAINERS: Update my info.
4215
4216 2008-01-29  Vladimir Prus  <[email protected]>
4217
4218         Use multiple locations for hardware watchpoints.
4219         This eliminates the need to traverse value chain, doing
4220         various checks, in three different places.
4221
4222         * breakpoint.h (struct bp_location): New fields
4223         lengths and watchpoint_type.
4224         (struct breakpoint): Remove the val_chain field.
4225         * breakpoint.c (is_hardware_watchpoint): New.
4226         (free_valchain): Remove.
4227         (update_watchpoint): New.
4228         (insert_bp_location): For hardware watchpoint, just
4229         directly insert it.
4230         (insert_breakpoints): Call update_watchpoint_locations
4231         on all watchpoints.  If we have failed to insert
4232         any location of a hardware watchpoint, remove all inserted
4233         locations.
4234         (remove_breakpoint): For hardware watchpoints, directly
4235         remove location.
4236         (watchpoints_triggered): Iterate over locations.
4237         (bpstat_stop_status): Use only first location of
4238         a resource watchpoint.
4239         (delete_breakpoint): Don't call free_valchain.
4240         (print_one_breakpoint): Don't print all
4241         locations for watchpoints.
4242         (breakpoint_re_set_one): Use update_watchpoint for
4243         watchpoints.
4244
4245 2008-01-29  Vladimir Prus  <[email protected]>
4246
4247         Don't reset watchpoint block on solib load.
4248
4249         * breakpoint.c (insert_bp_location): For watchpoints,
4250         recompute condition.
4251         (breakpoint_re_set_one): Instead of recomputing value
4252         and condition for watchpoints, just reset value and
4253         let insert_breakpoints/insert_bp_location recompute it.
4254         Don't do anything about disabled watchpoint.
4255
4256 2008-01-29  Pierre Muller  <[email protected]>
4257
4258         * valarith.c (value_binop): Handle unsigned integer
4259         division by zero.
4260
4261 2008-01-28  Kevin Buettner  <[email protected]>
4262
4263         * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
4264         instruction pattern that appears frequently in position
4265         independent code.  Fix bug in code which looks for "fmov" and
4266         backtracks if no "fmov" is found.
4267
4268 2008-01-28  Doug Evans  <[email protected]>
4269
4270         * dbxread.c (read_dbx_symtab): Fix indentation.
4271         Reformat comments to 80 columns.
4272         Move local var def closer to only use.
4273
4274 2008-01-28  Daniel Jacobowitz  <[email protected]>
4275
4276         * fork-child.c (SHELL_FILE): Remove #ifndef.
4277         (fork_inferior): Remove SHELL_COMMAND_CONCAT.
4278
4279 2008-01-25  Pierre Muller  <[email protected]>
4280
4281         * i386-tdep.c (i386_skip_noop): New function.
4282         (i386_analyze_prologue): Call i386_skip_noop function.
4283
4284 2008-01-24  Michael Snyder  <[email protected]>
4285
4286         * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
4287         * win32-nat.c (win32_xfer_partial): Ditto.
4288         * target.c (default_xfer_partial): Minor whitespace adjustment.
4289
4290 2008-01-24  Pedro Alves  <[email protected]>
4291
4292         * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
4293         strip bit 1 even if pc doesn't point to thumb code.
4294
4295 2008-01-23  Daniel Jacobowitz  <[email protected]>
4296
4297         * remote.c (remote_wait): Handle SIGINT between packets.
4298         (remote_async_wait): Likewise.
4299
4300 2008-01-23  Vladimir Prus  <[email protected]>
4301             Chris Demetriou  <[email protected]>
4302
4303         * thread.c (add_thread_silent): Renamed
4304         from add_thread.
4305         (print_thread_events): New variable definition.
4306         (show_print_thread_events): New function.
4307         (_initialize_thread): Add "set print thread-events" and
4308         "show print thread-events" commands.
4309         (add_thread): Announce new thread.
4310         * gdbthread.h (add_thread_silent): Declare.
4311         (print_thread_events): New variable declaration.
4312         * inf-ttrace.c (inf_ttrace_wait): Don't
4313         inform about new thread, as add_thread is always
4314         called too, and will take care of that.
4315         * infrun.c (handle_inferior_event): Likewise.
4316         * procfs.c (procfs_wait): Likewise.
4317         * remote.c (remote_currthread): Likewise.
4318         * sol-thread.c (sol_thread_wait): Likewise.
4319         * win32-nat.c (get_win32_debug_event): Likewise.
4320         * linux-thread-db.c (attach_thread): Likewise.
4321         Remove the verbose parameter.
4322         (check_event): Make detach_thread be verbose
4323         only if print_thread_events is set.
4324         * linux-nat.c (lin_lwp_attach_lwp): Don't inform
4325         about new thread.  This is called only from
4326         linux-thread-db.c:attach_thread, which will take care.
4327         Remove the verbose parameter.
4328         * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
4329
4330 2008-01-23  Nick Roberts  <[email protected]>
4331
4332         * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
4333
4334 2008-01-22  Vladimir Prus  <[email protected]>
4335
4336         * breakpoint.c (break_command_really): New parameter
4337         ignore_count.
4338         (break_command_1): Pass 0 as
4339         ignore_count to break_command_really.
4340         (gdb_breakpoint): Pass ignore_count to
4341         break_command_really.
4342
4343 2008-01-21  Kevin Buettner  <[email protected]>
4344
4345         * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
4346         sigcontext struct via pointer.
4347         (struct sigframe comment): Update to show new field `psc'.
4348
4349 2008-01-21  Vladimir Prus  <[email protected]>
4350
4351         * infrun.c (handle_inferior_event): If
4352         we failed to remove breakpoints, error,
4353         don't try to increment PC by hand.
4354
4355 2008-01-18  Nick Hudson  <[email protected]>
4356
4357         Add NetBSD/hppa target and host support.
4358
4359         * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
4360         (hppabsd_gregset): Move to ...
4361         (hppabsd_regset_from_core_section): Rename
4362         hppaobsd_regset_from_core_section and move to ...
4363         (hppabsd_find_global_pointer): Update comment.
4364         (hppabsd_init_abi): Make global. Do not register
4365         hppabsd_regset_from_core_section.
4366         (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
4367         move to ...
4368         (_initialize_hppabsd_tdep): Move to ...
4369         * hppaobsd-tdep.c: ... here. New file.
4370         * hppnbsd-tdep.c: New file.
4371         * hppnbsd-nat.c: New file.
4372         * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
4373         (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
4374         (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
4375         (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
4376         * configure.host (hppa*-*-netbsd*): New entry.
4377         * configure.tgt (hppa*-*-netbsd*): New entry.
4378         (hppa*-*-openbsd*): Update.
4379         * NEWS (New native configuration): Mention NetBSD/hppa.
4380         (New targets): Mention NetBSD/hppa.
4381
4382 2008-01-18  Markus Deuling  <[email protected]>
4383
4384         * gdbarch.sh (function_list): Add new property bits_big_endian to
4385         gdbarch structure.
4386         * gdbarch.{c,h}: Regenerate.
4387
4388         * value.c (struct value): Replace BITS_BIG_ENDIAN by
4389         gdbarch_bits_big_endian (comment).
4390         (unpack_field_as_long, modify_field): Likewise.
4391         * value.h: Likewise (comment).
4392         * valops.c (value_slice): Likewise.
4393         * valarith.c (value_subscript, value_bit_index): Likewise.
4394         * gdbtypes.h (field): Likewise (comment).
4395         * eval.c (evaluate_subexp_standard): Likewise.
4396         * dwarf2read.c (dwarf2_add_field): Likewise.
4397         * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
4398         (move_bits, ada_value_assign, value_assign_to_component): Likewise.
4399         
4400         * defs.h (BITS_BIG_ENDIAN): Remove.
4401
4402 2008-01-18  Markus Deuling  <[email protected]>
4403
4404         * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
4405         function calls.
4406         * m2-exp.y (yylex): Likewise.
4407         * objc-exp.y (yylex): Likewise.
4408
4409         * defs.h (DEPRECATED_STREQN): Remove.
4410
4411 2008-01-17  H.J. Lu  <[email protected]>
4412
4413         * MAINTAINERS: Update my email address.
4414
4415 2008-01-17  Jim Blandy  <[email protected]>
4416
4417         * README: Mention gdbserver/README.
4418
4419 2008-01-17  Pierre Muller  <[email protected]>
4420
4421         * valarith.c (value_binop): Handle BINOP_INTDIV
4422         for unsigned and signed integers.
4423
4424 2008-01-17  Ulrich Weigand  <[email protected]>
4425
4426         * s390-tdep.c (s390_gdbarch_init): Set default long double
4427         type to 128-bit IEEE quad.
4428
4429 2008-01-17  Joel Brobecker  <[email protected]>
4430
4431         * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
4432
4433 2008-01-16  Mark Kettenis  <[email protected]>
4434
4435         * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
4436
4437         * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
4438         * value.c: All callers changed.
4439
4440 2008-01-16  Markus Deuling  <[email protected]>
4441
4442         * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
4443         DEPRECATED_STREQ by its expression.
4444         * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
4445         * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
4446         (scan_xcoff_symtab): Likewise.
4447         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
4448         * f-lang.c (find_common_for_function): Likewise.
4449         * objc-exp.y (parse_number): Likewise.
4450
4451         * defs.h (DEPRECATED_STREQ): Remove.
4452
4453 2008-01-16  Markus Deuling  <[email protected]>
4454
4455         * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
4456         * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
4457         get_frame_arch to get at the current_architecture. Update AM33_MODE
4458         call.
4459         (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
4460         (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
4461         architecture.
4462         (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
4463
4464 2008-01-16  Markus Deuling  <[email protected]>
4465
4466         * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as 
4467         parameter.
4468         * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
4469
4470         (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
4471         current_gdbarch by gdbarch. Update caller.
4472
4473         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
4474         (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
4475         the current architecture. Update calls of
4476         amd64_native_gregset_supplies_p.
4477         * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
4478         (amd64bsd_store_inferior_registers): Likewise.
4479
4480 2008-01-16  Markus Deuling  <[email protected]>
4481
4482         * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
4483         Replace current_gdbarch by gdbarch. Update caller.
4484
4485 2008-01-16  Markus Deuling  <[email protected]>
4486
4487         * dbxread.c (repeated_header_complaint, dbx_symfile_init)
4488         (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
4489         (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
4490         (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
4491         (stabsect_build_psymtabs): Fix indentation.
4492
4493 2008-01-15  Michael Snyder  <[email protected]>
4494
4495         * corelow.c (core_xfer_partial): Comment, cut/paste error.
4496
4497 2008-01-14  Pierre Muller  <[email protected]>
4498
4499         * win32-nat.c (win32_create_inferior): Restore code calling
4500         CloseHandle on ProcessInformation structure.
4501
4502 2008-01-13  Nick Hudson  <[email protected]>
4503
4504         * configure.ac: Check for void * as 3 argument of ptrace.
4505         * configure: regenerate.
4506
4507 2008-01-11  Markus Deuling  <[email protected]>
4508
4509         * alpha-tdep.c (alpha_heuristic_proc_start)
4510         (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
4511         current_gdbarch by gdbarch.
4512
4513         (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
4514         current architecture by frame_info. Update alpha_heuristic_proc_start 
4515         call.
4516
4517         (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
4518         get_frame_arch to get at the current architecture by frame_info. Update
4519         alpha_sigtramp_register_address call.
4520
4521         * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
4522         current_gdbarch by gdbarch. Update caller.
4523         (convert_to_extended, convert_from_extended): Add endianess parameter
4524         for comparison. Update caller.
4525         (arm_extract_return_value, arm_store_return_value): Use
4526         get_regcache_arch to get at the current architecture.
4527
4528         * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
4529         current_gdbarch by gdbarch. Update caller.
4530         (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
4531         gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
4532
4533         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
4534         gdbarch as parameter. Update caller.    
4535         (h8300_init_frame_cache): Add gdbarch as parameter. Replace
4536         current_gdbarch by gdbarch. Update caller.
4537
4538         * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and 
4539         update caller. Replace current_gdbarch by gdbarch.
4540
4541         * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
4542         the current architecture. Replace current_gdbarch by gdbarch.
4543         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
4544         (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
4545         expression. Add gdbarch as parameter and replace current_gdbarch with
4546         it. Update caller.
4547         (M6811_TDEP): Remove.
4548         (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
4549         architecture.
4550         (m68hc11_scan_prologue): Add gdbarch as parameter. Replace 
4551         current_gdbarch by gdbarch. Update caller.
4552
4553         * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
4554         update caller.
4555         (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
4556         by gdbarch.
4557
4558         * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
4559         caller. Relace current_gdbarch by gdbarch.
4560         (altivec_register_p, spe_register_p): Likewise.
4561         * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
4562         parameter.
4563         * ppc-linux-nat.c (fetch_register, store_register): Update caller of
4564         altivec_register_p and spe_register_p.
4565
4566         * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update 
4567         caller. Replace current_gdbarch by gdbarch.
4568         (score_analyze_prologue): use get_frame_arch to get at the current
4569         architecture.   
4570
4571         * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
4572         * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
4573         current_gdbarch by gdbarch. Update caller.
4574         (sparc_frame_cache): Use get_frame_arch to get at the current
4575         architecture.
4576         * sparce64-tdep.c (sparc64_skip_prologue): Update call of
4577         sparc_analyze_prologue.
4578
4579         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
4580         parameter.
4581
4582 2008-01-11  Markus Deuling  <[email protected]>
4583
4584         * exec.c: #include "arch-utils.h"
4585          (print_section_info): Use gdbarch_from_bfd to get at the
4586         current architecture. Replace current_gdbarch. Fix indention. Replace
4587         deprecated_print_address_numeric by paddress.
4588         * Makefile.in (exec.o) Add dependency to arch-utils.h.
4589
4590         * valprint.c (val_print_string): Replace 
4591         deprecated_print_address_numeric.
4592         * tracepoint.c (trace_mention, scope_info): Likewise.
4593         * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
4594         (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
4595         (maintenance_check_symtabs): Likewise.
4596         * symfile.c (list_overlays_command): Likewise.
4597         * stack.c (frame_info, print_block_frame_labels): Likewise.
4598         * printcmd.c (print_address, print_address_demangle)
4599         (address_info): Likewise.
4600         * corefile.c (memory_error): Likewise.
4601         * infcmd.c (jump_command): Likewise.
4602         * breakpoint.c (insert_bp_location, describe_other_breakpoints)
4603         (mention, delete_breakpoint): Likewise.
4604         * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
4605         * dwarf2read.c (dump_die): Likewise.
4606         * ada-valprint.c (ada_val_print_1): Likewise.
4607         * f-valprint.c (f_val_print): Likewise.
4608         * linux-fork.c (info_forks_command): Likewise.  
4609         * m32r-com.c (m32r_load_section, m32r_load)
4610         (m32r_upload_command): Likewise.
4611
4612         * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
4613
4614 2008-01-11  Markus Deuling  <[email protected]>
4615
4616         * gdbarch.sh (skip_prologue): Add gdbarch
4617         as parameter.
4618         * gdbarch.{c,h}: Regenerate.
4619
4620         * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
4621         * amd64-tdep.c (amd64_skip_prologue): Likewise.
4622         * avr-tdep.c (avr_skip_prologue): Likewise.
4623         * cris-tdep.c (cris_skip_prologue): Likewise.
4624         * frv-tdep.c (frv_skip_prologue): Likewise.
4625         * h8300-tdep.c (h8300_skip_prologue): Likewise.
4626         * hppa-tdep.c (hppa_skip_prologue): Likewise.
4627         * i386-tdep.c (i386_skip_prologue): Likewise.
4628         * ia64-tdep.c (ia64_skip_prologue): Likewise.
4629         * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
4630         * m32r-tdep.c (m32r_skip_prologue): Likewise.
4631         * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
4632         * m68k-tdep.c (m68k_skip_prologue): Likewise.
4633         * m88k-tdep.c (m88k_skip_prologue): Likewise.
4634         * mep-tdep.c (mep_skip_prologue): Likewise.
4635         * mips-tdep.c (mips_skip_prologue): Likewise.
4636         * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
4637         * mt-tdep.c (mt_skip_prologue): Likewise.
4638         * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
4639         * score-tdep.c (score_skip_prologue): Likewise.
4640         * sh64-tdep.c (sh64_skip_prologue): Likewise.
4641         * sh-tdep.c (sh_skip_prologue): Likewise.
4642         * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
4643         * sparc-tdep.c (sparc32_skip_prologue): Likewise.
4644         * spu-tdep.c (spu_skip_prologue): Likewise.
4645         * v850-tdep.c (v850_skip_prologue): Likewise.
4646         * vax-tdep.c (vax_skip_prologue): Likewise.
4647         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
4648         * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
4649
4650         * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
4651         current_gdbarch by gdbarch.
4652         * m32c-tdep.c (m32c_skip_prologue): Likewise.
4653         * s390-tdep.c (s390_skip_prologue): Likewise.
4654
4655 2008-01-10  Doug Evans  <[email protected]>
4656
4657         * defs.h (struct continuation_arg): Fix typo in comment.
4658         * target.c (target_translate_tls_address): Fix comment spelling error.
4659
4660 2008-01-09  Thiago Jung Bauermann  <[email protected]>
4661
4662         * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
4663         (DOUBLEST_SCAN_FORMAT): Likewise.
4664         * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
4665         * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
4666         * c-exp.y (parse_number): Likewise.
4667         * jv-exp.y (parse_number): Likewise.
4668         * objc-exp.y (parse_number): Likewise.
4669         * p-exp.y (parse_number): Likewise.
4670
4671 2008-01-09  Joel Brobecker  <[email protected]>
4672
4673         * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
4674         (check_typedef): Likewise.
4675
4676 2008-01-09  Luis Machado  <[email protected]>
4677
4678         * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
4679         seen_double_big_d, treat the new H, D, and DD modifiers as length
4680         modifiers.
4681
4682 2008-01-08  Joel Brobecker  <[email protected]>
4683
4684         * dwarf2read.c (read_enumeration_type): Add comment.
4685
4686 2008-01-08  Thiago Jung Bauermann  <[email protected]>
4687
4688         * config.in: Regenerate.
4689
4690 2008-01-08  Joel Brobecker  <[email protected]>
4691
4692         * ada-lang.c (ada_convert_actual): Renames convert_actual.
4693         Make non-static.
4694         (ada_convert_actuals): Delete.
4695         * ada-lang.h (ada_convert_actual): Add declaration.
4696         (ada_convert_actuals): Remove declaration.
4697         * infcall.c: #include "ada-lang.h".
4698         (value_arg_coerce): Add new parameter sp.  Update function
4699         documetnation.  Add handling of Ada function call parameters.
4700         * Makefile.in (infcall.o): Update dependencies.
4701
4702 2008-01-08  Paul Hilfinger  <[email protected]>
4703
4704         * ada-lang.c (ensure_lval): Fix value lval kind.
4705         (convert_actual): Add handling for arguments passed by reference.
4706
4707 2008-01-08  Doug Evans  <[email protected]>
4708
4709         * dbxread.c (read_dbx_symtab): Fix indentation.
4710
4711 2008-01-07  Thiago Jung Bauermann  <[email protected]>
4712
4713         * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
4714         (valarith.o): Depend on dfp.h.
4715         (valops.o): Likewise.
4716         * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
4717         (set_decnumber_context): New function.
4718         (decimal_check_errors): Likewise.
4719         (decimal_from_number): Likewise.
4720         (decimal_to_number): Likewise.
4721         (decimal_from_string): Use set_decnumber_context and
4722         decimal_check_errors.
4723         (decimal_from_integral): New function.
4724         (decimal_from_floating): Likewise.
4725         (decimal_to_double): Likewise.
4726         (promote_decimal): Likewise.
4727         (decimal_binop): Likewise.
4728         (decimal_is_zero): Likewise.
4729         (decimal_compare): Likewise.
4730         (decimal_convert): Likewise.
4731         * dfp.h (decimal_from_integral): New prototype.
4732         (decimal_from_floating): Likewise.
4733         (decimal_to_double): Likewise.
4734         (decimal_binop): Likewise.
4735         (decimal_is_zero): Likewise.
4736         (decimal_compare): Likewise.
4737         (decimal_convert): Likewise.
4738         * eval.c (evaluate_subexp_standard): Remove expect_type argument from
4739         call to value_from_decfloat.
4740         * valarith.c: Include dfp.h.
4741         (value_args_as_decimal): New function.
4742         (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
4743         (value_logical_not): Likewise.
4744         (value_equal): Likewise.
4745         (value_less): Likewise.
4746         (value_pos): Likewise.
4747         (value_neg): Formatting fix.
4748         * valops.c: Include dfp.h.
4749         (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
4750         * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
4751         (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
4752         (value_from_decfloat): Remove expect_type argument.
4753         * value.h (value_from_decfloat): Update prototype.
4754
4755 2008-01-07  Vladimir Prus  <[email protected]>
4756
4757         Ignore change in name of dynamic linker during
4758         execution on Solaris.  This also unbreaks pending breakpoints.
4759
4760         * solist.h (struct target_so_ops): New field same.
4761         * solib-svr4.c (svr4_same): New.
4762         (_initialize_svr4_solib): Register svr4_same.
4763         * solib.c (update_solib_list): Use ops->same, if available.
4764
4765 2008-01-06  Christopher Faylor  <[email protected]>
4766
4767         * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
4768         when using MS-DOS paths.
4769
4770 2008-01-05  Pedro Alves  <[email protected]>
4771
4772         * NEWS: Mention --pid and --core command line behaviour changes.
4773
4774 2008-01-05  Pedro Alves  <[email protected]>
4775
4776         * main.c (captured_main): Remove 'count' varible and the
4777         ALIGN_STACK_ON_ENTRY block that used it.  Error out if --core and
4778         --pid options were issued simultaneously.  If an explicit pid
4779         option was passed, don't fallback to core file.  Detect extra
4780         arguments better in the presence of explicit pid or core
4781         arguments.
4782
4783 2008-01-05  Joel Brobecker  <[email protected]>
4784
4785         * ada-lang.c (ada_which_variant_applies): Correctly compute
4786         the value of the discriminant when the variant record is packed.
4787
4788 2008-01-04  Joel Brobecker  <[email protected]>
4789
4790         * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
4791         that are used to differentiate homonyms.
4792
4793 2008-01-04  Jerome Guitton  <[email protected]>
4794
4795         * ada-lang.c (decode_packed_array_type): Avoid a seg fault
4796         when the type is an anonymous pointer type.
4797         (ada_check_typedef): Avoid a seg fault when the type is null.
4798         * ada-typeprint.c (print_array_type): Add support for pointer
4799         to packed arrays.
4800
4801 2008-01-04  Paul N. Hilfinger  <[email protected]>
4802
4803         * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
4804
4805 2008-01-04  Joel Brobecker  <[email protected]>
4806
4807         * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
4808         EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
4809
4810 2008-01-04  Joel Brobecker  <[email protected]>
4811
4812         * ada-exp.y (chop_separator): New function.
4813         (write_selectors): Rewrite to re-use chop_separator.
4814         (ada_nget_field_index, get_symbol_field_type): New functions.
4815         (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
4816         expressions.
4817
4818 2008-01-03  Thiago Jung Bauermann  <[email protected]>
4819
4820         * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
4821         of SYMBOL_VALUE when working with function symbols.
4822
4823 2008-01-03  Joel Brobecker  <[email protected]>
4824
4825         * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
4826         expressions.  These expressions do not need to be rewriten.
4827
4828 2008-01-03  Joel Brobecker  <[email protected]>
4829
4830         * dwarf2read.c (read_enumeration_type): Flag type as stub if
4831         the given die is a declaration.
4832
4833 2008-01-03  Joel Brobecker  <[email protected]>
4834
4835         * ada-lang.c (ada_array_bound_from_type): Make non-static.
4836         Handle properly the case when the index type is an enumerated type.
4837         Do not return the subtype of the bounds type, just return the
4838         bounds type directly - this is not needed and is more consistent
4839         with what we do for arrays when no XA parallel type exists.
4840
4841 2008-01-03  Joel Brobecker  <[email protected]>
4842
4843         * ada-lang.c (static_unwrap_type): Add forward declaration.
4844         (template_to_static_fixed_type): Fields of dynamic types sometimes
4845         also need to be unwrapped. Take this into account.
4846         (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
4847         (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
4848         * ada-typeprint.c (ada_print_type): Get the typename from
4849         the original type, not the base type. 
4850
4851 2008-01-03  Jerome Guitton  <[email protected]>
4852
4853         * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
4854         (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value): 
4855         Update calls to ada_to_fixed_type.
4856         (ada_template_to_fixed_record_type_1): Ditto, but without looking
4857         for the tag.
4858         (ada_to_fixed_type): Add check_tag parameter; do not look for
4859         tag if null.  When looking for a tag, use a fixed record type.
4860         * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
4861         * ada-valprint.c (printable_val_type, ada_value_print): Update
4862         calls to ada_to_fixed_type.
4863
4864 2008-01-03  Luis Machado  <[email protected]>
4865
4866         * doublest.c (convert_floatformat_to_doublest): Call 
4867         floatformat_to_doublest instead of floatformat_to_double and use
4868         DOUBLEST variables.
4869         (convert_doublest_to_floatformat): Call floatformat_from_doublest
4870         instead of floatformat_from_double and use DOUBLEST variables.
4871
4872 2008-01-03  Nick Hudson  <[email protected]>
4873
4874         * MAINTAINERS (Write After Approval): Add self.
4875
4876 2008-01-03  Joel Brobecker  <[email protected]>
4877
4878         * symfile.c (set_initial_language): Make non-static.
4879         * symfile.h (set_initial_language): Add declaration.
4880         * language.c: #include "symfile.h".
4881         (set_language): Call set_initial_language if the frame language
4882         could not be determined.
4883
4884 2008-01-03  Paul N. Hilfinger  <[email protected]>
4885
4886         * eval.c (evaluate_subexp_for_address): Provide frame address to
4887         locate_var_value only if it will be needed.
4888
4889 2008-01-02  Jan Kratochvil  <[email protected]>
4890
4891         * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
4892
4893 2008-01-02  Joel Brobecker  <[email protected]>
4894
4895         * ada-lang.c (ada_evaluate_subexp): Modify the value returned
4896         when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
4897         This is needed to make sure that any other treatment applied
4898         to the resulting value does not fail for spurious reason,
4899         such as trying to take the address of this value.
4900
4901 2008-01-02  Joel Brobecker  <[email protected]>
4902
4903         * ada-lang.c (ada_value_equal): Dereference reference types when
4904         comparing arrays.
4905  
4906 2008-01-01  Daniel Jacobowitz  <[email protected]>
4907
4908         Updated copyright notices for most files.
4909
4910 2008-01-01  Christopher Faylor  <[email protected]>
4911
4912         * win32-nat.c (psapi_module_handle): Remove static.
4913         (get_module_name): Rename from psapi_get_dll_name.  Revamp slightly to
4914         return first module found if base_address is zero.  Don't initialize
4915         psapi function pointers here.  Convert to cygwin paths when
4916         appropriate.
4917         (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
4918         executable name.  Use get_module_name when that fails or when
4919         !__CYGWIN__.
4920         (_initialize_psapi): New function.  Initialize psapi stuff before it is
4921         needed or issue a warning if it is not found.  Move psapi_module_handle
4922         here.
4923
4924 2008-01-01  Joel Brobecker  <[email protected]>
4925
4926         * ada-lang.c (ada_remove_trailing_digits): New function.
4927         (ada_remove_po_subprogram_suffix): New function.
4928         (ada_decode): Improve. Move the description of the algorithm
4929         directly inside the code, instead of in the function global
4930         description.
4931
4932 2008-01-01  Joel Brobecker  <[email protected]>
4933
4934         * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
4935         and always print the dereferenced value.
4936
4937 2008-01-01  Joel Brobecker  <[email protected]>
4938
4939         * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
4940         of the case where the first argument is a reference.
4941         (ada_evaluate_subexp, case BINOP_ADD): Likewise.
4942
4943 2008-01-01  Joel Brobecker  <[email protected]>
4944
4945         Implement support for Ada interface types.
4946
4947         * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
4948         (ada_is_ignored_field): Ignore fields that are a dispatch table
4949         of a tagged type.
4950
4951 2008-01-01  Joel Brobecker  <[email protected]>
4952
4953         * top.c (print_gdb_version): Update copyright year.
4954
4955 2008-01-01  Joel Brobecker  <[email protected]>
4956
4957         * ChangeLog-2007: New ChangeLog rotation.
4958         * ChangeLog: Reset for 2008.
4959         * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
4960         ChangeLog-2007.
4961
4962 For older changes see ChangeLog-2007.
4963 \f
4964 Local Variables:
4965 mode: change-log
4966 left-margin: 8
4967 fill-column: 74
4968 version-control: never
4969 coding: utf-8
4970 End:
This page took 0.366961 seconds and 4 git commands to generate.