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