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