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