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