1 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
4 (regcache_raw_read_unsigned, regcache_raw_read_signed)
5 (regcache_raw_read_unsigned, regcache_raw_read_part)
6 (regcache_cooked_read, regcache_cooked_read_signed)
7 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8 (regcache_cooked_read_ftype): Change return to enum
10 * regcache.c: Include exceptions.h
11 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
12 (do_cooked_read): Change return to enum register_status. Always
13 forward to regcache_cooked_read.
14 (regcache_raw_read): Change return to enum register_status. If
15 the register is not REG_VALID, memset the buffer. Return the
17 (regcache_raw_read_signed): Handle non-REG_VALID registers and
18 return the register's status.
19 (regcache_raw_read_unsigned): Ditto.
20 (regcache_cooked_read): Change return to enum register_status.
21 Assert that with read-only regcaches, the register's status must
22 be known. If the regcache is read-only, and the register is not
23 REG_VALID, memset the buffer. Return the register's status.
24 (regcache_cooked_read_signed): Change return to enum
25 register_status. Handle non-REG_VALID registers and return the
27 (regcache_cooked_read_unsigned): Change return to enum
28 register_status. Handle non-REG_VALID registers and return the
30 (regcache_xfer_part, regcache_raw_read_part)
31 (regcache_cooked_read_part): Change return to enum
32 register_status. Return the register's status.
33 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
35 (regcache_dump): Handle unavailable cooked registers.
36 * frame.c (do_frame_register_read): Adjust interface to match
37 regcache_cooked_read_ftype.
38 * gdbarch.sh (pseudo_register_read): Change return to enum
40 * gdbarch.h, gdbarch.c: Regenerate.
42 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
44 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
45 register_status. If reading a raw register indicates the raw
46 register is not valid, return the raw register's status,
47 otherwise, return REG_VALID.
48 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
49 register_status. Handle non-REG_VALID raw registers and return
50 the register's status.
51 * arm-tdep.c (arm_neon_quad_read)
52 (arm_pseudo_read): Change return to enum register_status. Handle
53 non-REG_VALID raw registers and return the register's status.
54 * avr-tdep.c (avr_pseudo_register_read): Ditto.
55 * frv-tdep.c (frv_pseudo_register_read): Ditto.
56 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
57 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
58 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
60 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
61 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
62 (m32c_part_write, m32c_cat_read, m32c_cat_write)
63 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
64 (m32c_pseudo_register_read): Change return to enum
65 register_status. Adjust.
66 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
67 enum register_status. Return the register's status.
68 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
69 register_status. Return the register's status.
70 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
71 * mips-tdep.c (mips_pseudo_register_read): Ditto.
72 * mt-tdep.c (mt_pseudo_register_read): Ditto.
73 * rs6000-tdep.c (move_ev_register_func): New typedef.
74 (e500_move_ev_register): Use it. Change return to enum
75 register_status. Return the register's status.
76 (do_regcache_raw_read): New function.
77 (do_regcache_raw_write): New function.
78 (e500_pseudo_register_read): Change return to enum
79 register_status. Return the register's status. Use
81 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
82 (dfp_pseudo_register_read): Change return to enum register_status.
83 Return the register's status.
84 (vsx_pseudo_register_read): Ditto.
85 (efpr_pseudo_register_read): Ditto.
86 (rs6000_pseudo_register_read): Ditto.
87 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
88 register_status. Return the register's status.
89 * sh64-tdep.c (pseudo_register_read_portions): New function.
90 (sh64_pseudo_register_read): Change return to enum
91 register_status. Use pseudo_register_read_portions. Return the
93 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
94 register_status. Return the register's status.
95 * sh-tdep.c (pseudo_register_read_portions): New function.
96 (sh_pseudo_register_read): Change return to enum register_status.
97 Use pseudo_register_read_portions. Return the register's status.
98 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
99 enum register_status. Return the register's status.
100 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
101 * spu-tdep.c (spu_pseudo_register_read_spu)
102 (spu_pseudo_register_read): Ditto.
103 * xtensa-tdep.c (xtensa_register_read_masked)
104 (xtensa_pseudo_register_read): Ditto.
105 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
107 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
109 * python/py-value.c (valpy_getitem): Fix formatting of error function
112 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
114 ARI fixes: Add missing internationalization markups throughout
116 * darwin-nat-info.c: Ditto.
119 * mi/mi-main.c: Ditto.
121 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
123 ARI fixes: Add missing internationalization markups throughout
126 * cp-name-parser.y: Ditto.
132 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
134 ARI fixes: Messages should have no trailing new lines.
135 * darwin-nat.c (mach_check_error): Remove trailing new line from
136 warning function call message.
137 * record.c (bfdcore_read): Idem for error call.
139 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
141 * common/signals.c (target_signal_from_host): Add _ markup to error
142 function call message.
143 (target_signal_to_host): Add _ markup and remove trailing new line
144 from warning call message.
145 (target_signal_from_command): Add _ markup to error function call
148 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
152 * python/python.c (gdbpy_write): Accept a stream argument and
153 operate to the appropriate stream.
154 (gdbpy_flush): Likewise.
155 (_initialize_python): Add stream constants.
156 (finish_python_initialization): Add GdbOutputErrorFile class.
158 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
160 * MAINTAINERS: Add myself as a write-after-approval maintainer.
162 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
164 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
165 to store_signed_integer. Add debug message when relocating CALL
166 instructions. Fix formatting of debug message.
167 * i386-tdep.c (i386_relocate_instruction): Ditto.
169 2011-03-17 Joel Brobecker <brobecker@gnat.com>
171 * target.h (struct target_ops): Remove to_lookup_symbol field.
172 (target_lookup_symbol): Delete macro.
173 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
174 (update_current_target, setup_target_debug): Remove handling
175 of to_lookup_symbol target_ops field.
176 * ada-tasks.c (get_known_tasks_addr): Remove use of
177 target_lookup_symbol.
178 * coffread.c (coff_symtab_read): Likewise.
179 * dbxread.c (read_dbx_symtab): Ditto.
181 2011-03-17 Joel Brobecker <brobecker@gnat.com>
184 * configure.ac: Add getthrds declaration check.
185 * configure, config.in: Regenerate.
186 * aix-thread.c (getthrds): Declare only if not already declared
187 in procinfo.h. More declaration out of get_signaled_thread to
190 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
192 * python/py-symtab.c: Populate symtab_object_methods,
194 (stpy_is_valid): New function.
195 (salpy_is_valid): Ditto.
196 * python/py-symbol.c: Declare symbol_object_methods. Populate.
197 (sympy_is_valid): New function.
198 * python/py-objfile.c: Declare objfile_object_methods. Populate.
199 (objfpy_is_valid): New function.
200 * python/py-inferior.c: Populate inferior_object_methods.
201 (infpy_is_valid): New function.
202 * python/py-infthread.c: Populate thread_object_methods.
203 (thpy_is_valid): New function.
204 * python/py-block.c: Declare block_object_methods. Populate. Declare
205 block_iterator_object_methods. Populate.
206 (blpy_is_valid): New function.
207 (blpy_iter_is_valid): Ditto.
209 2011-03-16 Keith Seitz <keiths@redhat.com>
211 * linespec.c (find_methods): Canonicalize NAME before looking
213 (name_end): New function.
214 (keep_name_info): New function.
215 (decode_line_1): Use keep_name_info.
216 (decode_compound): Likewise.
217 * cli/cli-utils.h (remove_trailing_whitespace): New function.
218 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
221 * linespec.c (locate_first_half): Keep overload information, too.
222 (decode_compound): Use a string to represent break characters
224 If P points to a break character, do not increment it.
225 For C++ and Java, keep overload information and relevant keywords.
226 If we cannot find a symbol, search the minimal symbols.
229 * linespec.c (decode_compound): Rename SAVED_ARG to
231 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
233 Pass a valid block to lookup_symbol.
234 (lookup_prefix_sym): Likewise.
235 (find_method): Construct search name based on SYM_CLASS instead
237 * psymtab.c (lookup_partial_symbol): Add language parameter.
238 (lookup_symbol_aux_psymtabs): Likewise.
239 Don't assume that the psymtab we found was the right one. Search
240 for the desired symbol in the symtab to be certain.
241 (psymtab_search_name): New function.
242 (lookup_partial_symbol): Use psymtab_search_name.
243 Add language parameter.
244 (read_symtabs_for_function): Add language parameter and pass to
245 lookup_partial_symbol.
246 (find_symbol_file_from_partial): Likewise.
248 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
251 * dwarf2read.c (noop_record_line): New function.
252 (dwarf_decode_lines): Ignore line tables for GCd functions.
254 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
256 Fix ARI warnings about new lines at the end of messages, which
257 are unneeded as there is a new line added at the end of the message
259 * darwin-nat.c (darwin_stop_inferior): Ditto.
260 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
261 * dfp.c (decimal_to_number): Ditto.
262 * exec.c (print_section_info): Ditto.
263 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
264 * osdata.c (get_osdata): Ditto.
265 * record.c (bfdcore_write): Ditto.
266 * remote-mips.c (mips_readchar): Ditto.
267 * remote.c (read_ptid): Ditto.
268 * ser-mingw.c (ser_windows_raw): Ditto.
269 * tracepoint.c (add_local_symbols): Ditto.
270 * windows-nat.c (fake_create_process): Ditto.
272 2011-03-16 Tom Tromey <tromey@redhat.com>
274 * tracepoint.c (stop_tracing): Don't declare.
275 * event-top.c (after_char_processing_hook): Add `(void)'.
277 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
279 * NEWS: Add Parameter sub-classing description.
281 2011-03-16 Kai Tietz <ktietz@redhat.com>
283 * MAINTAINERS: Update my e-mail address.
285 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
287 * MAINTAINERS: Add myself for write after approval privileges.
289 2011-03-15 Michael Snyder <msnyder@vmware.com>
291 * frame.c (find_frame_sal): Assert sym is not null.
293 * dbxread.c (process_one_symbol): Assert 'name' is not null.
295 * objc-lang.c (selectors_info): Check strchr for null result.
297 * stabsread.c (define_symbol): Guard against bad stabstring input.
299 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
301 Remove trailing spaces and tabulations from pascal language
308 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
310 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
311 than LOW. Comment it.
312 (read_partial_die): Call complaint for inappropriate zero LOWPC or
313 HIGHPC not strictly higher than LOWPC.
315 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
317 Fix formatting of function declarations returning a pointer in
319 * varobj.c (varobj_add_child): Ditto.
320 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
321 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
323 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
325 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
326 for the "generic" vector ABI used with GCC 4.3 and later.
327 (ppc64_sysv_abi_return_value): Likewise.
329 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
331 * infcall.c (call_function_by_hand): Function return value is
332 always a non_lval, even when using struct_return.
334 2011-03-15 Pedro Alves <pedro@codesourcery.com>
336 * printcmd.c (ALL_DISPLAYS_SAFE): New.
337 (map_display_numbers): New.
338 (do_delete_display): New.
339 (undisplay_command): Use map_display_numbers.
340 (do_enable_disable_display): New.
341 (enable_disable_display_command): New function.
342 (enable_display): Delete.
343 (enable_display_command): New.
344 (disable_display_command): Reimplement.
345 (_initialize_printcmd): Adjust "enable display" command to use
346 `enable_display_command' as callback.
348 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
350 * NEWS: Add Python breakpoint 'stop' operation.
352 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
354 * NEWS: Delete duplicate entry. Fix typo.
356 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
358 Fix ARI warning about function names in first column.
359 Put prototype declaration on same line as return type.
362 * python/py-stopevent.h: Ditto.
363 For long function names, split parameters to
364 allow function name on same line as return type.
365 * solib-pa64.c: Ditto.
368 For long function declaration, use single line.
369 * hppa-tdep.h: Ditto.
372 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
374 * python/python.h: Declare gdbpy_should_stop and
375 gdbpy_breakpoint_has_py_cond.
376 * python/python.c: Add python.h to includes. Remove python.h from
377 HAVE_PYTHON definition
378 (gdbpy_should_stop): New dummy function.
379 (gdbpy_breakpoint_has_py_cond): New dummy function.
380 * python/py-breakpoint.c (bppy_init): Rewrite to allow
381 sub-classing capabilities.
382 (gdbpy_should_stop): New function.
383 (gdbpy_breakpoint_has_py_cond): New function.
384 (local_setattro): New function.
385 * breakpoint.c (condition_command): Add check for Python 'stop'
387 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
388 operation function as part of stop/continue tests.
390 2011-03-14 Tom Tromey <tromey@redhat.com>
393 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
394 (needs_frame_dwarf_call): Likewise.
396 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
398 Fix ARI warning about functions without parameters that do not
400 * breakpoint.c (all_tracepoints): Replace () by (void).
401 * f-exp.y (match_string_literal): Ditto.
403 * m2-exp.y (yylex): Ditto.
404 * mep-tdep.c (current_me_module): Ditto.
405 (current_options): Ditto.
406 (current_cop_data_bus_width): Ditto.
407 (current_cr_names): Ditto.
408 (current_cr_is_float): Ditto.
409 (current_ccr_names): Ditto.
410 * objc-exp.y (yylex): Ditto.
411 * p-exp.y (yylex): Ditto.
412 * remote.c (send_interrupt_sequence): Ditto.
413 * tracepoint.c (current_trace_status): Ditto.
414 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
415 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
417 2011-03-11 Michael Snyder <msnyder@vmware.com>
419 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
420 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
421 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
422 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
423 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
425 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
426 (delete_async_event_handler): Ditto.
428 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
430 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
432 * top.c (set_verbose): Assert showcmd was found.
434 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
436 * xtensa-tdep.c (warning_once): Correct style issues.
438 2011-03-11 Yao Qi <yao@codesourcery.com>
440 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
442 2011-03-11 Andreas Schwab <schwab@redhat.com>
444 * common/aclocal.m4: Remove.
446 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
448 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
449 (xtensa_write_register, xtensa_read_register): Likewise.
450 (xtensa_hextochar): Removed.
451 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
453 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
455 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
456 (xtensa_call0_frame_cache_t): Update comments. New fields added.
457 (xtensa_alloc_frame_cache): Add initialization for new fields.
458 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
459 (warning_once): New function.
460 (xtensa_insn_kind): New item c0opc_and.
461 (call0_classify_opcode): Add the case for AND instruction.
462 (call0_track_op): Change arguments. New local variable litbase.
463 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
464 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
466 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
467 (call0_analyze_prologue): Update the comments. Change arguments.
468 Add the variety of updates to handle extended prologues, which now can
469 conduct dynamic stack adjustments.
470 (call0_frame_cache): Likewise.
471 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
472 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
474 2011-03-10 Michael Snyder <msnyder@vmware.com>
476 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
477 (cmd_qtframe): Ditto.
478 (cmd_qtbuffer): Ditto.
479 (cmd_bigqtbuffer): Ditto.
481 2011-03-10 Tom Tromey <tromey@redhat.com>
483 * tracepoint.c (trace_actions_command): Update.
484 * thread.c (thread_apply_command): Update.
485 * reverse.c (delete_bookmark_command): Update.
486 (bookmarks_info): Update.
487 * printcmd.c (undisplay_command): Update.
488 * memattr.c (mem_enable_command): Update.
489 (mem_disable_command): Update.
490 (mem_delete_command): Update.
491 * inferior.c (detach_inferior_command): Update.
492 (kill_inferior_command): Update.
493 (remove_inferior_command): Update.
494 * cli/cli-utils.h (struct get_number_or_range_state): New.
495 (init_number_or_range): Declare.
496 (get_number_or_range): Update.
497 * cli/cli-utils.c (init_number_or_range): New function.
498 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
500 (number_is_in_list): Update.
501 * breakpoint.h (get_tracepoint_by_number): Update.
502 * breakpoint.c (map_breakpoint_numbers): Update for change to
504 (find_location_by_number): Use get_number, not
506 (trace_pass_set_count): New function.
507 (trace_pass_command): Update for change to get_number_or_range.
509 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
512 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
514 * python/py-param.c (add_setshow_generic): Add set/show callback
515 parameters. Register Python object context.
516 (get_show_value): New function.
517 (get_set_value): New function.
518 (call_doc_function): New function.
519 (get_doc_string): Move behind get_show_value/get_set_value.
521 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
523 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
525 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
527 * xtensa-tdep.c (xtensa_read_register): Add comment.
528 (xtensa_write_register): Likewise.
529 (xtensa_hextochar): Add comment and update to match coding conventions.
530 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
531 (execute_l32e, execute_s32e, execute_code): Update comments.
532 (xtensa_exception_handler_t): Update to match coding conventions.
533 (xtensa_insn_kind): Likewise.
535 2011-03-09 Michael Snyder <msnyder@vmware.com>
537 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
539 2011-03-09 Pedro Alves <pedro@codesourcery.com>
541 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
543 2011-03-09 Tom Tromey <tromey@redhat.com>
545 * thread.c (restore_selected_frame): Handle frame_level == -1.
546 (make_cleanup_restore_current_thread): Use
547 get_selected_frame_if_set.
548 * frame.h (get_selected_frame_if_set): Declare.
549 * frame.c (get_selected_frame_if_set): New function.
551 2011-03-09 Pedro Alves <pedro@codesourcery.com>
553 * cli/cli-cmds.c (shell_escape): Use lbasename.
554 * coffread.c (coff_start_symtab): Constify parameter.
555 (complete_symtab): Constify `name' parameter.
556 (coff_symtab_read): Constify `filestring' local.
557 (coff_getfilename): Constify return and `result' local.
559 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
560 * linux-fork.c (info_checkpoints_command): Use lbasename.
561 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
562 * minsyms.c (lookup_minimal_symbol): Use lbasename.
563 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
564 * procfs.c (procfs_make_note_section): Use lbasename.
565 * tui/tui-io.c (printable_part): Constity return and parameter.
567 (print_filename): Constify parameters, and local `s'.
568 (tui_rl_display_match_list): Constify local `temp'.
570 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
573 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
574 Fix DWARF-3+ DW_AT_accessibility default assumption.
575 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
576 cu->header.version >= 3.
578 2011-03-09 Yao Qi <yao@codesourcery.com>
580 * common/Makefile.in: Remove.
581 * common/configure: Remove.
582 * common/configure.ac: Remove.
584 2011-03-09 Yao Qi <yao@codesourcery.com>
587 2011-02-11 Yao Qi <yao@codesourcery.com>
589 * common/Makefile.in: Add copyright header.
591 2011-02-11 Yao Qi <yao@codesourcery.com>
593 * Makefile.in: Remove signals.o from COMMON_OBS. Link
595 * configure.ac: Add common to sub dir.
596 * configure: Regenerate.
598 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
600 * xtensa-tdep.c (call0_ret): New function.
601 (xtensa_skip_prologue): Speed up analysis.
603 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
605 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
606 while executing MI command -data-list-changed-registers.
608 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
610 * xtensa-tdep.c (xtensa_read_register): New function.
611 (xtensa_write_register): New function.
612 (xtensa_find_register_by_name): New function.
613 (xtensa_windowed_frame_cache): Update comments in type description.
614 (xtensa_frame_cache): Likewise.
615 (xtensa_window_interrupt_insn): New function.
616 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
617 (xtensa_insn_kind): Add new instructions.
618 (rwx_special_register): New function.
619 (call0_classify_opcode): Add new instructions to the analysis.
620 (a0_saved, a7_saved, a11_saved): New variables.
621 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
622 (execute_l32e): New function.
623 (execute_s32e): New function.
624 (xtensa_exception_handler_t): New type.
625 (execute_code): New function.
626 (xtensa_window_interrupt_frame_cache): New function to conduct frame
627 analysis for Xtensa Window Exception handlers.
629 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
631 * xtensa-tdep.c (TX_PS): New.
632 (windowing_enabled): Update to count for Call0 ABI.
633 (xtensa_hextochar): New.
634 (xtensa_init_reggroups): Make algorithm generic.
635 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
637 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
639 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
641 2011-03-08 Michael Snyder <msnyder@vmware.com>
643 * i386-tdep.c (i386_follow_jump): Check return value of
645 (i386_analyze_struct_return): Ditto.
646 (i386_skip_probe): Ditto.
647 (i386_match_insn): Ditto.
648 (i386_skip_noop): Ditto.
649 (i386_analyze_frame_setup): Ditto.
650 (i386_analyze_register_saves): Ditto.
651 (i386_skip_prologue): Ditto.
652 (i386_skip_main_prologue): Ditto.
654 * target.c (read_whatever_is_readable): Fix memory leak.
656 * i386-tdep.c (i386_process_record): Document fall through.
658 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
660 Fix DWARF-3+ DW_AT_accessibility default assumption.
661 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
662 cu->header.version >= 3.
664 2011-03-08 Pedro Alves <pedro@codesourcery.com>
666 * remote.c (remote_check_symbols): Skip if the target has no
669 2011-03-08 Joel Brobecker <brobecker@adacore.com>
671 * target.c (read_whatever_is_readable): Reformat comment,
672 with a minor typo fix. Minor reformatting of the code.
674 2011-03-08 Yao Qi <yao@codesourcery.com>
676 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
677 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
678 Use cached result instead of calling displaced_in_arm_mode again.
679 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
680 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
681 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
682 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
683 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
684 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
685 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
686 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
687 (cleanup_block_load_pc, copy_block_xfer): Likewise.
688 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
689 (arm_catch_kernel_helper_return): Likewise.
690 * gdb/arm-tdep.h : Update function declarations.
692 2011-03-07 Michael Snyder <msnyder@vmware.com>
694 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
696 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
698 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
700 * elfread.c (elf_symtab_read): Stop memory leak.
702 * main.c (captured_main): Fix memory leak.
704 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
706 * ada-lang.c (compare_names): Call is_name_suffix with string1
709 2011-03-07 Tom Tromey <tromey@redhat.com>
711 * xcoffread.c (xcoff_sym_fns): Update.
712 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
713 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
714 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
715 (symbol_file_add_with_addrs_or_offsets): Likewise.
716 (reread_symbols): Handle OBJF_PSYMTABS_READ.
717 * somread.c (som_sym_fns): Update.
718 * psymtab.h (require_partial_symbols): Declare.
719 * psymtab.c (require_partial_symbols): New function.
720 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
721 (ALL_OBJFILE_PSYMTABS): Undef.
722 (ALL_PSYMTABS): Move from psympriv.h.
723 (lookup_partial_symtab, find_pc_sect_psymtab)
724 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
725 (find_last_source_symtab_from_partial)
726 (forget_cached_source_info_partial)
727 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
728 (expand_partial_symbol_tables, read_psymtabs_with_filename)
729 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
730 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
731 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
732 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
733 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
734 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
735 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
737 * mipsread.c (ecoff_sym_fns): Update.
738 * machoread.c (macho_sym_fns): Update.
739 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
740 (read_psyms): New function.
741 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
742 (elf_sym_fns_lazy_psyms): New global.
743 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
744 dwarf2_build_psymtabs.
745 * dbxread.c (aout_sym_fns): Update.
746 * coffread.c (coff_sym_fns): Update.
748 2011-03-07 Tom Tromey <tromey@redhat.com>
750 * infrun.c (print_exited_reason): Include inferior id and pid in
753 2011-03-07 Tom Tromey <tromey@redhat.com>
755 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
757 (target_has_execution_1): Update.
758 (target_has_execution_current): Declare.
759 (target_has_execution): Call target_has_execution_current.
760 (default_child_has_execution): Update.
761 * target.c (default_child_has_execution): Add 'the_ptid'
763 (target_has_execution_1): Likewise.
764 (target_has_execution_current): New function.
765 (add_target): Update.
766 (init_dummy_target): Update.
767 * remote-m32r-sdi.c (m32r_has_execution): New function.
768 (init_m32r_ops): Use it.
769 * record.c (record_core_has_execution): Now static. Add
770 'the_ptid' parameter.
771 * inferior.c (have_live_inferiors): Don't save current thread.
772 Use target_has_execution_1.
774 2011-03-07 Yao Qi <yao@codesourcery.com>
776 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
778 2011-03-07 Joel Brobecker <brobecker@adacore.com>
780 * elfread.c (elf_symtab_read): Minor reformatting.
782 2011-03-07 Joel Brobecker <brobecker@adacore.com>
784 * objc-lang.c (selectors_info): Minor reformatting.
786 2011-03-07 Joel Brobecker <brobecker@adacore.com>
788 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
790 2011-03-07 Joel Brobecker <brobecker@adacore.com>
791 Michael Snyder <msnyder@vmware.com>
793 * ada-valprint.c (ada_val_print_array): Move the declaration of
794 "byte_order" and "elttype" inside the block where these variables
795 are actually used. Remove some special handling for the case
796 where "elttype" and "eltlen" are null. Replace by a comment
797 and a couple of assertion checks.
799 2011-03-05 Michael Snyder <msnyder@vmware.com>
801 * source.c (add_path): Replace semicolon at end of block.
802 * dwarf2expr.c (execute_stack_op): Ditto.
804 2011-03-05 Mike Frysinger <vapier@gentoo.org>
806 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
807 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
808 (bfin-*-*): Likewise.
810 2011-03-05 Michael Snyder <msnyder@vmware.com>
812 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
813 * mdebugread.c (parse_symbol): Ditto.
814 * parse.c (parse_exp_in_context): Ditto.
815 * source.c (add_path): Ditto.
816 * utils.c (gnu_debuglink_crc32): Ditto.
817 * varobj.c (variable_language): Ditto.
819 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
821 2011-03-04 Michael Snyder <msnyder@vmware.com>
823 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
825 * symfile.c (simple_overlay_update): Check for null return value
826 from lookup_minimal_symbol.
828 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
830 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
832 * eval.c (parse_and_eval_address_1): Remove function.
833 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
834 instead of parse_and_eval_address_1.
835 * value.h (parse_and_eval_address_1): Remove prototype.
837 2011-03-04 Michael Snyder <msnyder@vmware.com>
839 * remote.c (putpkt_binary): Document that case stmt falls through.
841 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
843 * breakpointc (print_it_typical): Move NULL check from here...
844 (print_bp_stop_message): ... to here.
846 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
848 * breakpoint.c (enable_command): Use break instead of continue,
849 and fill in a missing break.
850 (disable_command): Ditto.
852 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
854 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
855 (terminal_save_ours): Remove misleading comment.
856 (inflow_inferior_data_cleanup): Free ttystate.
857 (inflow_inferior_exit): Likewise.
858 (copy_terminal_info): Copy ttystate.
860 * serial.c (serial_copy_tty_state): New function.
861 * serial.h (serial_copy_tty_state): Add prototype.
862 (struct serial_ops): Add copy_tty_state callback.
863 * ser-base.c (ser_base_copy_tty_state): New function.
864 * ser-base.h (ser_base_copy_tty_state): Add prototype.
865 * ser-go32.c (dos_copy_tty_state): New function.
866 (dos_ops): Install copy_tty_state callback.
867 * ser-mingw.c (_initialize_ser_windows): Likewise.
868 * ser-pipe.c (_initialize_ser_pipe): Likewise.
869 * ser-unix.c (hardwire_copy_tty_state): New function.
870 (_initialize_ser_hardwire): Install it.
872 2011-03-04 Michael Snyder <msnyder@vmware.com>
874 * breakpoint.c (create_breakpoint): Add missing break statement.
876 Reverting this patch:
877 * infcall.c (call_function_by_hand): Add break statements for lint.
879 Reverting this patch:
880 * cli/cli-script.c (script_from_file): Add break for lint.
882 2011-03-04 Michael Snyder <msnyder@vmware.com>
884 * solib.c (reload_shared_libraries_1): Close memory leak.
886 2011-03-03 Tom Tromey <tromey@redhat.com>
889 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
892 2011-03-03 Michael Snyder <msnyder@vmware.com>
894 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
895 fields of struct 'st' to zero.
897 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
898 sal.pspace before calling set_current_source_symtab_and_line.
900 2011-03-03 Yao Qi <yao@codesourcery.com>
902 * Makefile.in (configure-common): Remove. Let Makefile
903 in dir common to rebuild itself.
904 (common/Makefile): Likewise.
906 2011-03-03 Joel Brobecker <brobecker@adacore.com>
908 * utils.c (parse_escape): Add i18n markup in error message.
910 2011-03-03 Yao Qi <yao@codesourcery.com>
912 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
914 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
915 (displaced_write_reg, displaced_read_reg): Likewise.
916 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
917 (cleanup_block_load_pc, copy_block_xfer): Likewise.
918 (cleanup_branch): Replace magic number 14 and 15 with
919 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
921 2011-03-02 Michael Snyder <msnyder@vmware.com>
923 * maint.c (maintenance_do_deprecate): No need to check for NULL.
925 * cli/cli-script.c (script_from_file): Add break for lint.
927 * mdebugread.c (parse_partial_symbols): Fix indent.
929 * target-descriptions.c (tdesc_gdb_type): No need to call
930 xstrdup, callee saves a copy.
932 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
934 * infcall.c (call_function_by_hand): Add break statements for lint.
936 * utils.c (parse_escape): Escape the escape char.
938 * python/py-inferior.c (build_inferior_list): Error out if
940 (gdbpy_inferiors): Error out if build_inferior_list fails.
942 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
945 * record.c (record_restore): Move printf to before error return.
947 2011-03-02 Yao Qi <yao@codesourcery.com>
949 * arm-tdep.h (struct displaced_step_closure): Add two new fields
950 is_thumb and insn_size.
951 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
952 on both ARM and Thumb mode.
953 (arm_process_displaced_insn): Set is_thumb and insn_size.
954 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
955 (arm_displaced_step_fixup): Likewise.
957 2011-03-01 Michael Snyder <msnyder@vmware.com>
959 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
961 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
963 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
965 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
967 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
970 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
971 which shadows function parameter.
973 * tracepoint.c (create_tsv_from_upload): Superfluous call
974 to xstrdup. Callee already calls xstrdup.
976 * linespec.c (decode_line_1): Remove unnecessary null check.
978 * tracepoint.c (scope_info): Fix mem leak, remove underused
981 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
982 superfluous null check.
984 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
985 (value_of_builtin_frame_fp_reg): Ditto.
987 * event-top.c (display_gdb_prompt): Remove superfluous null check.
989 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
992 * linespec.c (decode_line_1): Check for null before dereference.
994 * reverse.c (record_restore): Move null-check to before pointer
997 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
999 * objc-lang.c (selectors_info): Add explanitory comment.
1000 (classes_info): Ditto.
1002 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1004 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
1005 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
1006 versions of the trampoline. Handle Thumb vs. ARM addresses.
1007 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
1008 (arm_linux_init_abi): Install it.
1009 * arm-tdep.c (arm_psr_thumb_bit): Make global.
1010 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
1012 2011-02-28 Michael Snyder <msnyder@vmware.com>
1014 * ui-out.c (ui_out_field_core_addr): Make local char buffer
1015 a little bigger, to avoid possibility of an overflow.
1017 * breakpoint.c (breakpoint_adjustment_warning): Make local char
1018 buffers a little bigger, to avoid possibility of an overflow.
1020 * coffread.c (coff_getfilename): Add check to avoid overflow.
1022 * objc-lang.c (selectors_info): Add a small safety margin to
1024 (classes_info): Error out on too long REGEXP.
1026 * infrun.c (handle_inferior_event): Remove unused function call.
1028 * fork-child.c (fork_inferior): Remove ifdef'd code and
1031 * linux-thread-db.c (attach_thread): Discard unused value.
1033 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
1035 * remote.c (remote_get_noisy_reply): Discard unused value.
1036 (remote_vcont_resume): Ditto.
1037 (remote_stop_ns): Ditto.
1039 * linespec.c (decode_objc): Delete unused variable.
1041 * tui/tui-regs.c (tui_register_format): Delete unused variable.
1043 * dwarf2read.c (add_partial_symbol): Discard unused values.
1044 (read_base_type): Delete unused variable.
1046 * dbxread.c (read_dbx_symtab): Discard unused value.
1048 * eval.c (evaluate_subexp_standard): Delete unused variable,
1049 and discard unused values.
1051 * infcmd.c (_initialize_infcmd): Discard unused values.
1053 * stabsread.c (rs6000_builtin_type): Missing break statement.
1055 * dbxread.c (process_one_symbol): Discard unused value.
1057 * coffread.c (coff_end_symtab): Delete unused variable.
1059 * dwarf2read.c (dw2_get_file_names): Discard unused value.
1060 (dwarf2_add_typedef): Delete unused variable.
1061 (read_namespace): Ditto.
1062 (dwarf_decode_macros): Ditto.
1064 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
1066 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
1068 * p-valprint.c (pascal_val_print): Discard unused value.
1070 * utils.c (nquery): Call va_end before return;
1074 * proc-service.c (ps_plog): Call va_end before return.
1076 2011-02-28 Tom Tromey <tromey@redhat.com>
1078 * python/python.c (gdbpy_value_cst): New global.
1079 (_initialize_python): Initialize it.
1080 * python/python-internal.h (gdbpy_value_cst): Declare.
1081 * python/py-value.c (convert_value_from_python): Use
1084 2011-02-28 Michael Snyder <msnyder@vmware.com>
1086 * python/py-cmd.c (cmdpy_init): Fix memory leak.
1088 * breakpoint.c (catch_syscall_completer): Free malloced list.
1090 * jv-lang.c (java_primitive_type_from_name): Add missing break.
1092 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
1093 (lval_func_check_synthetic_pointer): Ditto.
1094 (lval_func_free_closure): Fix use-after-free.
1096 2011-02-28 Tom Tromey <tromey@redhat.com>
1098 * psymtab.c (expand_partial_symbol_tables): Use
1099 ALL_OBJFILE_PSYMTABS.
1101 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1103 * objc-lang.c (selectors_info): Error on too long REGEXP.
1105 2011-02-28 Michael Snyder <msnyder@vmware.com>
1107 * python/py-param.c (set_parameter_value): Add missing
1110 * linux-record.c (record_linux_system_call): Add missing
1113 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1115 * breakpoint.c (print_one_breakpoint_location): Remove unused
1116 argument PRINT_ADDRESS_BITS. Update callers.
1117 (print_one_breakpoint): Likewise.
1119 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1121 * breakpoint.c (wrap_indent_at_field): New function.
1122 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
1123 Allocate ui_stream locally instead of using STB argument.
1124 (print_one_breakpoint_location): Update call.
1125 * ui-out.c (ui_out_query_field): New function.
1126 * ui-out.h (ui_out_query_field): Add prototype.
1128 2011-02-28 Joel Brobecker <brobecker@adacore.com>
1130 From Michael Snyder <msnyder@vmware.com>
1131 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
1133 2011-02-27 Michael Snyder <msnyder@vmware.com>
1135 * objc-lang.c (selectors_info): Prevent string overrun.
1137 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
1140 * symtab.c (rbreak_command): Move variable 'file_name' to
1143 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
1144 param with a local variable of the same name.
1146 2011-02-27 Michael Snyder <msnyder@vmware.com>
1148 * value.c (value_from_history_ref): New function.
1149 * value.h (value_from_history_ref): Export.
1150 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
1151 to parse value history references.
1152 * cli/cli-utils.h (get_number_trailer): Update comment.
1154 2011-02-27 Michael Snyder <msnyder@vmware.com>
1156 * inferior.c (detach_inferior_command): Use get_number_or_range.
1157 (kill_inferior_command): Ditto.
1158 (remove_inferior_command): Ditto.
1159 (initialize_inferiors): Make command names plural.
1160 Update help strings.
1162 2011-02-27 Michael Snyder <msnyder@vmware.com>
1164 * darwin-nat-info.c: Fix comment typo.
1165 * dwarf2expr.h: Ditto.
1166 * fbsd-nat.c: Ditto.
1167 * fbsd-nat.h: Ditto.
1168 * frame-unwind.h: Ditto.
1170 * hppa-hpux-tdep.c: Ditto.
1171 * i386-linux-nat.c: Ditto.
1172 * linux-nat.c: Ditto.
1173 * nbsd-nat.c: Ditto.
1174 * nbsd-nat.h: Ditto.
1175 * ppc-linux-tdep.c: Ditto.
1178 * tui/tui-winsource.c: Ditto.
1180 2011-02-26 Michael Snyder <msnyder@vmware.com>
1182 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
1184 * maint.c (maintenance_do_deprecate): Plug a memory leak.
1186 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
1187 with a local variable of the same name.
1189 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
1190 param with a local variable of the same name.
1191 (i387_supply_xsave): Ditto.
1193 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
1194 that it does not shadow a function parameter.
1196 * i386-nat.c (i386_length_and_rw_bits): Document that case
1197 statement is meant to fall through.
1199 * expprint.c (dump_subexp_body_standard): Document that case
1200 statement is meant to fall through.
1202 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
1203 dead if statement. Condition can't be false.
1205 2011-02-25 Michael Snyder <msnyder@vmware.com>
1207 * arm-tdep.c: Fix typos in comments.
1208 * bsd-uthread.c: Ditto.
1209 * completer.c: Ditto.
1211 * cp-namespace.c: Ditto.
1212 * cp-support.c: Ditto.
1213 * cris-tdep.c: Ditto.
1215 * dwarf2read.c: Ditto.
1217 * gdbtypes.h: Ditto.
1218 * inferior.h: Ditto.
1219 * mdebugread.c: Ditto.
1220 * mips-tdep.c: Ditto.
1221 * ppc-linux-nat.c: Ditto.
1222 * ppc-linux-tdep.c: Ditto.
1223 * printcmd.c: Ditto.
1224 * sol-thread.c: Ditto.
1225 * solib-frv.c: Ditto.
1227 * sparc64-tdep.c: Ditto.
1228 * spu-tdep.c: Ditto.
1229 * stabsread.c: Ditto.
1234 * python/py-block.c: Ditto.
1235 * python/py-symbol.c: Ditto.
1236 * python/py-symtab.c: Ditto.
1237 * python/py-value.c: Ditto.
1238 * tui/tui-win.c: Ditto.
1240 2011-02-25 Michael Snyder <msnyder@vmware.com>
1242 * inferior.c (print_inferior): Accept a string instead of an int
1243 for requested_inferiors, and use get_number_or_range to parse it.
1244 (info_inferiors_command): Pass args string to print_inferior.
1245 (initialize_inferiors): Change help string for info inferiors.
1246 * inferior.h (print_inferior): Export prototype change.
1248 2011-02-25 Tom Tromey <tromey@redhat.com>
1250 * common/ax.def (invalid2): Set to 0x31.
1252 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1254 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
1256 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
1258 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
1260 2011-02-24 Michael Snyder <msnyder@vmware.com>
1262 * Makefile.in (clean): Make clean should remove generated files
1263 observer.h and observer.inc.
1265 2011-02-24 Joel Brobecker <brobecker@adacore.com>
1267 Revert the following patch (not approved yet):
1268 2011-02-21 Hui Zhu <teawater@gmail.com>
1269 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
1270 * ax-gdb.c (gen_printf_expr_callback): New function.
1271 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
1272 * ax-general.c (ax_memcpy): New function.
1273 (ax_print): Handle "printf".
1275 * ax.h (ax_memcpy): Forward declare.
1276 * common/ax.def (invalid2): Removed.
1277 (printf): New entry.
1278 * printcmd.c (printcmd.h): New include.
1279 (string_printf): New function.
1280 (ui_printf): Removed.
1281 (printf_command): Remove static. Call string_printf.
1282 (eval_command): Call string_printf.
1283 * printcmd.h: New file.
1284 * tracepoint.c (validate_actionline,
1285 encode_actions_1): handle printf_command.
1287 2011-02-23 Tom Tromey <tromey@redhat.com>
1289 * ax-general.c (ax_pick): Add missing newline.
1291 2011-02-23 Michael Snyder <msnyder@vmware.com>
1293 * breakpoint.c (breakpoint_1): Change first argument from an int
1294 to a char pointer, so that the function now accepts a list of
1295 breakpoints rather than just one. Use new function
1296 'number_is_in_list' to implement.
1297 (breakpoints_info): Pass char * instead of int to breakpoint_1.
1298 (watchpoints_info): Ditto.
1299 (tracepoints_info): Ditto.
1300 (maintenance_info_breakpoints): Ditto.
1301 (_initialize_breakpoint): Update help strings to reflect the fact
1302 that these functions can now take more than one argument.
1303 * cli/cli-utils.c (number_is_in_list): New function.
1304 * cli/cli-utils.h (number_is_in_list): Export.
1306 2011-02-23 Michael Snyder <msnyder@vmware.com>
1308 * memattr.c (mem_enable_command): Use get_number_or_range.
1309 (mem_disable_command): Ditto.
1310 (mem_delete_command): Ditto.
1311 (_initialize_mem): Tweak usage message to reflect multiple
1314 2011-02-22 Doug Evans <dje@google.com>
1316 Add gdb.lookup_global_symbol python function.
1318 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
1319 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
1320 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
1322 2011-02-22 Tom Tromey <tromey@redhat.com>
1324 * language.c (language_class_name_from_physname): Rename
1325 'curr_language' argument to 'lang'; use in body.
1327 2011-02-22 Michael Snyder <msnyder@vmware.com>
1329 * cli/cli-utils.c (number_is_in_list): Check for zero return.
1331 2011-02-22 Pedro Alves <pedro@codesourcery.com>
1333 * frame-unwind.h: Fix comment to mention the this frame, not the
1336 2011-02-22 Tom Tromey <tromey@redhat.com>
1338 * symfile.c (auto_solib_limit): Remove.
1339 * symfile.h (auto_solib_limit): Remove.
1341 2011-02-22 Joel Brobecker <brobecker@adacore.com>
1343 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
1345 2011-02-21 Michael Snyder <msnyder@vmware.com>
1347 * gdbthread.h (print_thread_info): Change prototype.
1348 * thread.c (print_thread_info): Accept char* instead of int for
1349 requested_threads argument. Use new function number_is_in_list
1350 to determine which threads to list.
1351 (info_threads_command): Pass char* to print_thread_info.
1352 * cli/cli-utils.c (number_is_in_list): New function.
1353 * cli/cli-utils.h (number_is_in_list): Export.
1354 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
1356 (print_one_inferior): Ditto.
1357 (mi_cmd_list_thread_groups): Ditto.
1359 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1361 * common/Makefile.in (CFLAGS): New.
1362 (COMPILE): Add $(CFLAGS).
1364 2011-02-21 Tom Tromey <tromey@redhat.com>
1366 * breakpoint.c (catch_syscall_command_1): Fix typo.
1368 2011-02-21 Tom Tromey <tromey@redhat.com>
1370 * reverse.c: Include cli-utils.h.
1371 * printcmd.c: Include cli-utils.h.
1372 (string_printf): Use skip_spaces.
1373 * cli/cli-utils.h: New file.
1374 * cli/cli-utils.c: New file.
1375 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
1376 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
1377 * breakpoint.h (get_number, get_number_or_range): Move to
1379 * breakpoint.c: Include cli-utils.h.
1380 (get_number_trailer, get_number, get_number_or_range)
1381 (ep_skip_leading_whitespace): Move to cli-utils.c.
1382 (create_breakpoint_sal, find_condition_and_thread)
1383 (decode_static_tracepoint_spec, watch_command_1)
1384 (watch_maybe_just_location, ep_parse_optional_if_clause)
1385 (catch_fork_command_1, catch_exec_command_1)
1386 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
1387 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
1388 (SUBDIR_CLI_SRCS): Add cli-utils.c.
1389 (HFILES_NO_SRCDIR): Add cli-utils.h.
1390 (cli-utils.o): New target.
1392 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
1394 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
1395 before calling discard_all_inferiors.
1397 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
1399 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
1400 (struct builtin_opencl_type): Remove.
1401 (builtin_opencl_type): Change return type to "struct type **".
1402 (lookup_opencl_vector_type): Update caller.
1403 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
1404 (build_opencl_types): Install plain array of "struct type *"
1405 instead of "struct builtin_opencl_type".
1407 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1408 Ulrich Weigand <uweigand@de.ibm.com>
1410 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
1411 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
1412 (struct arm_linux_hwbp_cap): New type.
1413 (arm_linux_get_hwbp_cap): New function.
1414 (arm_linux_get_hw_breakpoint_count): Likewise.
1415 (arm_linux_get_hw_watchpoint_count): Likewise.
1416 (arm_linux_can_use_hw_breakpoint): Likewise.
1417 (arm_hwbp_type): New type.
1418 (arm_hwbp_control_t): Likewise.
1419 (struct arm_linux_hw_breakpoint): Likewise.
1420 (struct arm_linux_thread_points): Likewise.
1421 (arm_threads): New global variable.
1422 (arm_linux_find_breakpoints_by_tid): New function.
1423 (arm_hwbp_control_initialize): Likewise.
1424 (arm_hwbp_control_is_enabled): Likewise.
1425 (arm_hwbp_control_disable): Likewise.
1426 (arm_linux_hw_breakpoint_initialize): Likewise.
1427 (arm_linux_get_hwbp_type): Likewise.
1428 (arm_linux_hw_watchpoint_initialize): Likewise.
1429 (arm_linux_hw_breakpoint_equal): Likewise.
1430 (arm_linux_insert_hw_breakpoint1): Likewise.
1431 (arm_linux_remove_hw_breakpoint1): Likewise.
1432 (arm_linux_insert_hw_breakpoint): Likewise.
1433 (arm_linux_remove_hw_breakpoint): Likewise.
1434 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
1435 (arm_linux_insert_watchpoint): Likewise.
1436 (arm_linux_remove_watchpoint): Likewise.
1437 (arm_linux_stopped_data_address): Likewise.
1438 (arm_linux_stopped_by_watchpoint): Likewise.
1439 (arm_linux_watchpoint_addr_within_range): Likewise.
1440 (arm_linux_new_thread): Likewise.
1441 (arm_linux_thread_exit): Likewise.
1442 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
1443 related target callbacks. Register arm_linux_new_thread and
1444 arm_linux_thread_exit.
1445 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
1446 * arm-tdep.c (arm_pc_is_thumb): Make global.
1447 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
1449 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
1451 * breakpoint.c (update_watchpoint): Do not attempt to recreate
1452 per-frame locations while within a function epilogue.
1454 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
1456 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
1457 to GNU coding standards.
1459 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
1461 Allow use of mingw native on Windows 95 OS.
1462 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
1463 (ser_windows_close): Only call CancelIo if function exists.
1464 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
1465 to check for existence of CancelIo function in kernel32 DLL.
1467 2011-02-21 Hui Zhu <teawater@gmail.com>
1469 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
1470 * ax-gdb.c (gen_printf_expr_callback): New function.
1471 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
1472 * ax-general.c (ax_memcpy): New function.
1473 (ax_print): Handle "printf".
1475 * ax.h (ax_memcpy): Forward declare.
1476 * common/ax.def (invalid2): Removed.
1477 (printf): New entry.
1478 * printcmd.c (printcmd.h): New include.
1479 (string_printf): New function.
1480 (ui_printf): Removed.
1481 (printf_command): Remove static. Call string_printf.
1482 (eval_command): Call string_printf.
1483 * printcmd.h: New file.
1484 * tracepoint.c (validate_actionline,
1485 encode_actions_1): handle printf_command.
1487 2011-02-19 Michael Snyder <msnyder@vmware.com>
1489 * reverse.c (delete_one_bookmark): Argument is now bookmark
1490 id rather than pointer to bookmark struct.
1491 (delete_bookmark_command): Use get_number_or_range.
1492 (goto_bookmark_command): Parse with get_number instead of strtoul.
1493 (bookmark_1): New function. Print info for one bookmark.
1494 (bookmarks_info): Use get_number_or_range and bookmark_1.
1496 2011-02-18 Michael Snyder <msnyder@vmware.com>
1498 * thread.c (info_threads_command): Re-implement using
1499 get_number_or_range.
1500 (thread_apply_command): Ditto.
1502 2011-02-18 Tom Tromey <tromey@redhat.com>
1504 * common/ax.def: New file.
1505 * ax.h (enum agent_op): Use ax.def.
1506 * ax-general.c (aop_map): Use ax.def.
1508 2011-02-18 Tom Tromey <tromey@redhat.com>
1510 * ax-general.c (aop_map): Add pick and rot.
1511 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
1512 <DW_OP_rot>: Implement.
1513 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
1515 * ax-general.c (ax_pick): New function.
1517 2011-02-18 Tom Tromey <tromey@redhat.com>
1519 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
1521 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1522 Tom Tromey <tromey@redhat.com>
1524 * cp-support.c (make_symbol_overload_list_namespace): Do not call
1525 make_symbol_overload_list_block with NULL BLOCK.
1526 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
1528 2011-02-18 Pedro Alves <pedro@codesourcery.com>
1530 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
1531 * breakpoint.h (get_number_or_range): Declare.
1532 * printcmd.c (ALL_DISPLAYS): Declare.
1533 (delete_display): Reimplement taking a display pointer.
1534 (undisplay_command): Accept a range of displays to delete, using
1535 get_number_or_range.
1537 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
1539 * c-valprint.c (c_val_print): Add embedded_offset to address
1540 for arrays of unspecified length.
1541 * p-valprint.c (pascal_val_print): Likewise.
1543 2011-02-18 Yao Qi <yao@codesourcery.com>
1545 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
1546 (arm_process_displaced_insn): .. here. Remove parameter INSN.
1547 (thumb_process_displaced_insn): New.
1548 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
1549 call to arm_process_displaced_insn.
1550 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
1552 2011-02-17 Tom Tromey <tromey@redhat.com>
1554 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
1555 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
1556 compile_dwarf_to_ax. No longer static. Call
1557 dwarf2_compile_cfa_to_ax.
1558 (locexpr_tracepoint_var_ref): Update.
1559 (loclist_tracepoint_var_ref): Update.
1560 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
1561 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
1562 argument; add 'gdbarch' and 'pc'.
1563 (dwarf2_compile_cfa_to_ax): New function.
1564 (dwarf2_frame_cache): Update.
1566 2011-02-17 Joel Brobecker <brobecker@adacore.com>
1568 * ada-lang.c (ada_type_of_array): Fix the size of the array
1569 in the case of an unconstrained packed array.
1571 2011-02-17 Yao Qi <yao@codesourcery.com>
1573 * common/Makefile.in: Add more targets for make.
1575 2011-02-16 Tom Tromey <tromey@redhat.com>
1577 * dwarf2loc.c (unimplemented): Fix typo.
1579 2011-02-16 Tom Tromey <tromey@redhat.com>
1581 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
1582 (compile_dwarf_to_ax) <default>: Use unimplemented.
1583 <DW_OP_deref>: Update.
1584 (disassemble_dwarf_expression): Update.
1585 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
1586 (decode_locdesc): Update.
1587 * dwarf2expr.h (dwarf_stack_op_name): Update.
1589 2011-02-16 Tom Tromey <tromey@redhat.com>
1591 * ax.h (struct aop_map) <name>: Now const.
1593 2011-02-16 Tom Tromey <tromey@redhat.com>
1595 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
1598 2011-02-16 Yao Qi <yao@codesourcery.com>
1600 * infrun.c (get_displaced_step_closure_by_addr): New.
1601 * inferior.h: Declare it.
1602 * arm-tdep.c: (arm_pc_is_thumb): Call
1603 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
1606 2011-02-16 Pedro Alves <pedro@codesourcery.com>
1607 Jan Kratochvil <jan.kratochvil@redhat.com>
1610 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
1612 2011-02-16 Pedro Alves <pedro@codesourcery.com>
1613 Jan Kratochvil <jan.kratochvil@redhat.com>
1615 * value.c (value_contents_copy_raw): Extend describing comment.
1616 Assert that the destination contents we're overwriting are wholly
1618 (value_contents_copy): Extend describing comment.
1620 2011-02-16 Pedro Alves <pedro@codesourcery.com>
1621 Jan Kratochvil <jan.kratochvil@redhat.com>
1623 * value.c (value_available_contents_eq): Remove redundant local
1624 variables. Fix available contents comparision.
1625 * value.h (value_available_contents_eq): Extend describing
1628 2011-02-16 Yao Qi <yao@codesourcery.com>
1630 * thread.c (info_threads_command): Add missing i18n markup and remove
1633 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
1635 * breakpoint.c (longjmp_names): New variable.
1636 (struct breakpoint_objfile_data): New type.
1637 (breakpoint_objfile_key): New variable.
1638 (msym_not_found): New variable.
1639 (msym_not_found_p): New predicate.
1640 (get_breakpoint_objfile_data): New function.
1641 (create_overlay_event_breakpoint): Check per-objfile cache for
1643 (create_longjmp_master_breakpoint): Likewise.
1644 (create_std_terminate_master_breakpoint): Likewise.
1645 (create_exception_master_breakpoint): Likewise.
1646 (_initialize_breakpoint): Register per-objfile data key.
1648 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
1650 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
1652 (create_longjmp_master_breakpoint): Loop over longjmp names.
1653 (create_std_terminate_master_breakpoint): Const-propagate parameter
1655 (update_breakpoints_after_exec): Adjust.
1656 (breakpoint_re_set): Adjust.
1658 2011-02-15 Michael Snyder <msnyder@vmware.com>
1660 * thread.c (info_threads_command): Process arg as thread id,
1661 or list of thread ids.
1662 (thread_find_command): New command.
1663 (_initialize_thread): Document argument for info threads.
1664 Document 'thread find' command.
1665 * NEWS: Document new command "thread find".
1667 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1669 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
1670 * aclocal.m4: Regenerated with aclocal-1.11.1.
1671 * common/configure: Regenerate with autoconf-2.64.
1673 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
1675 * opencl-lang.c (build_opencl_types): Set the size of the built-in
1676 bool data type to a size of one byte.
1678 2011-02-15 Pedro Alves <pedro@codesourcery.com>
1679 Jan Kratochvil <jan.kratochvil@redhat.com>
1681 * target.c (memory_xfer_live_readonly_partial): Document where to
1682 look for interface description.
1684 2011-02-15 Yao Qi <yao@codesourcery.com>
1687 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
1688 order to store PC value on stack instead of text section.
1690 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
1692 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
1693 the EFP register set size.
1694 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
1695 data from the VMX register.
1696 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
1697 and write data from/to the VMX register.
1699 2011-02-14 Michael Snyder <msnyder@vmware.com>
1701 * command.h (enum command_class): New class 'no_set_class', for
1702 "show" commands without a corresponding "set" command.
1703 * value.c (_initialize_values): Use 'no_set_class' for "show values".
1704 * copying.c (_initialize_copying): Ditto for "show copying" and
1706 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
1708 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
1709 which there is no corresponding "set" command (eg. "show copying").
1711 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1712 Jan Kratochvil <jan.kratochvil@redhat.com>
1714 * exec.c (section_table_available_memory): Change `len' parameter
1716 * exec.h (section_table_available_memory): Ditto.
1717 * value.h (read_value_memory): Rename the `offset' parameter to
1720 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1721 Jan Kratochvil <jan.kratochvil@redhat.com>
1723 * memrange.c (compare_mem_ranges): Mention sort order in
1725 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
1726 * tracepoint.c (traceframe_available_memory): Extend comment to
1727 mention what happens to RESULT when the target does not support
1730 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1731 Jan Kratochvil <jan.kratochvil@redhat.com>
1733 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
1736 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1738 * value.c (value_bits_valid, value_bits_synthetic_pointer):
1739 No longer handle NULL values.
1741 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1743 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
1744 * value.c: Include "exceptions.h".
1745 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
1747 * cp-abi.c: Include gdb_assert.h.
1748 (baseclass_offset): Add `embedded_offset' and `val' parameters.
1749 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
1751 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
1752 parameters. No longer returns -1 on error.
1753 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
1755 * cp-valprint.c: Include exceptions.h.
1756 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
1757 the baseclass_offset. Handle unavailable base classes. Use
1758 val_print_invalid_address.
1759 * p-valprint.c: Include exceptions.h.
1760 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
1761 when fetching the baseclass_offset. No longer expect
1762 baseclass_offset returning -1. Handle unavailable base classes.
1763 Use val_print_invalid_address.
1764 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
1765 `valaddr' parameter, and change its type to gdb_byte pointer. Add
1766 `embedded_offset' and `val' parameters. Adjust.
1767 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
1768 parameter, and change its type to gdb_byte pointer. Add
1769 `embedded_offset' and `val' parameters. Adjust. No longer expect
1770 baseclass_offset returning -1.
1771 (value_dynamic_cast): Use value_contents_for_printing rather than
1772 value_contents. Adjust.
1773 (search_struct_field): No longer expect baseclass_offset returning
1775 (search_struct_method): If reading memory from the target is
1776 necessary, wrap it in a new value to pass to baseclass_offset. No
1777 longer expect baseclass_offset returning -1.
1778 (find_method_list): No longer expect baseclass_offset returning
1779 -1. Use value_contents_for_printing rather than value_contents.
1780 * valprint.c (val_print_invalid_address): New function.
1781 * valprint.h (val_print_invalid_address): Declare.
1782 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
1783 and `val' parameters. No longer expect baseclass_offset returning
1785 * gnu-v2-abi.c: Include "exceptions.h".
1786 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
1787 parameters. Handle unavailable memory. Recurse through
1788 gnuv2_baseclass_offset directly, rather than through
1789 baseclass_offset. No longer returns -1 on not found, instead
1791 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
1792 `val' parameters. Adjust.
1794 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1796 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
1797 almost but not quite adjacent.
1799 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1801 * value.h (value_entirely_available): Declare.
1802 * value.c (value_entirely_available): New function.
1803 * c-valprint.c (c_value_print): Don't try fetching the pointer's
1804 real type if the pointer is unavailable.
1806 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1808 * valops.c (value_repeat): Use read_value_memory instead of
1811 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1813 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
1814 * value.c (value_contents_copy_raw, value_contents_copy): New
1816 (value_primitive_field): Use value_contents_copy_raw instead of
1818 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
1820 (value_array, value_slice): Ditto.
1821 * valarith.c (value_subscripted_rvalue): Use
1822 value_contents_copy_raw instead of memcpy.
1824 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1826 <unavailable> references.
1828 * valops.c (get_value_at): Use value_from_contents_and_address,
1829 avoiding read_memory.
1831 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1833 * c-valprint.c (c_val_print): Print a string with unavailable
1834 contents as an array.
1836 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1838 * value.h (unpack_bits_as_long): Delete declaration.
1839 (unpack_value_bits_as_long): Declare.
1840 (unpack_value_field_as_long): Declare.
1841 (value_field_bitfield): Declare.
1842 * value.c (unpack_bits_as_long): Rename to...
1843 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
1844 value parameters. Return the extracted result in a new output
1845 parameter. If the value contents are unavailable, return false,
1846 otherwise return true.
1847 (unpack_value_bits_as_long): New.
1848 (unpack_field_as_long): Rename to...
1849 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
1850 Add embedded_offset and value parameters. Return the extracted
1851 result in a new output parameter. If the value contents are
1852 unavailable, return false, otherwise return true.
1853 (unpack_value_field_as_long): New.
1854 (unpack_field_as_long_1): New.
1855 (unpack_field_as_long): Reimplement as wrapper around
1856 unpack_value_field_as_long_1.
1857 (value_field_bitfield): New function.
1858 * valops.c (value_fetch_lazy): When fetching a bitfield, use
1859 unpack_value_bits_as_long. Mark the value as unavailable, if it
1861 * jv-valprint.c (java_print_value_fields): Use
1862 value_field_bitfield.
1863 * p-valprint.c (pascal_object_print_value_fields): Use
1864 value_field_bitfield.
1865 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
1867 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1869 * value.c (get_internalvar_integer): Also return the int value of
1870 TYPE_CODE_INT INTERNALVAR_VALUE values.
1871 (set_internalvar): Don't special case TYPE_CODE_INT.
1873 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1875 * value.c (struct internalvar) <enum internalvar_kind>: Remove
1876 INTERNALVAR_POINTER.
1878 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
1879 (set_internalvar): Remove special TYPE_CODE_PTR handling.
1880 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
1882 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1884 * value.h (value_available_contents_eq): Declare.
1885 * value.c (find_first_range_overlap): New function.
1886 (value_available_contents_eq): New function.
1887 * valprint.c (val_print_array_elements): Use
1888 value_available_contents_eq.
1889 * ada-valprint.c (val_print_packed_array_elements): Use
1890 value_available_contents_eq.
1891 * jv-valprint.c (java_value_print): Use
1892 value_available_contents_eq.
1894 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1896 * target.c (target_read_live_memory): New function.
1897 (memory_xfer_live_readonly_partial): New.
1898 (memory_xfer_partial): If reading from a traceframe, fallback to
1899 reading unavailable read-only memory from read-only regions of
1901 * tracepoint.c (disconnect_tracing): Adjust.
1902 (set_current_traceframe): New, factored out from
1903 set_traceframe_number.
1904 (set_traceframe_number): Reimplement to only change the traceframe
1905 number on the GDB side.
1906 (do_restore_current_traceframe_cleanup): Adjust.
1907 (make_cleanup_restore_traceframe_number): New.
1908 (cur_traceframe_number): New global.
1909 (tfile_open): Set cur_traceframe_number to no traceframe.
1910 (set_tfile_traceframe): New function.
1911 (tfile_trace_find): If looking up a traceframe using any method
1912 other than by number, make sure the current tfile traceframe
1913 matches gdb's current traceframe. Update the current tfile
1914 traceframe if the lookup succeeded.
1915 (tfile_fetch_registers, tfile_xfer_partial)
1916 (tfile_get_trace_state_variable_value): Make sure the remote
1917 traceframe matches gdb's current traceframe.
1918 * remote.c (remote_traceframe_number): New global.
1919 (remote_open_1): Set it to -1.
1920 (set_remote_traceframe): New function.
1921 (remote_fetch_registers, remote_store_registers)
1922 (remote_xfer_memory, remote_xfer_partial)
1923 (remote_get_trace_state_variable_value): Make sure the remote
1924 traceframe matches gdb's current traceframe.
1925 (remote_trace_find): If looking up a traceframe using any method
1926 other than by number, make sure the current remote traceframe
1927 matches gdb's current traceframe. Update the current remote
1928 traceframe if the lookup succeeded.
1929 * infrun.c (fetch_inferior_event): Adjust.
1930 * tracepoint.h (set_current_traceframe): Declare.
1931 (get_traceframe_number, set_traceframe_number): Add describing
1934 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1936 Mark pieces of values as unavailable if the corresponding memory
1939 * valops.c: Include tracepoint.h.
1940 (value_fetch_lazy): Use read_value_memory.
1941 (read_value_memory): New.
1942 * value.h (read_value_memory): Declare.
1943 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
1944 * exec.c (section_table_available_memory): New function.
1945 * exec.h (section_table_available_memory): Declare.
1947 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1949 * Makefile.in (SFILES): Add memrange.c.
1950 (HFILES_NO_SRCDIR): Add memrange.h.
1951 (COMMON_OBS): Add memrange.o.
1952 * memrange.c: New file.
1953 * memrange.h: New file.
1954 * tracepoint.c: Include memrange.h.
1955 (struct mem_range): Delete.
1956 (mem_range_s): Delete.
1957 (traceframe_available_memory): New function.
1958 * tracepoint.h (traceframe_available_memory): Declare.
1960 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1962 * target.h (struct traceframe_info): Forward declare.
1963 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
1964 (struct target_ops) <to_traceframe_info>: New field.
1965 (target_traceframe_info): New.
1966 * target.c (update_current_target): Inherit and default
1968 * remote.c (PACKET_qXfer_traceframe_info): New.
1969 (remote_protocol_features): Register qXfer:traceframe-info:read.
1970 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
1971 (remote_traceframe_info): New.
1972 (init_remote_ops): Install it.
1973 (_initialize_remote): Install "set/show remote traceframe-info"
1975 * tracepoint.h (parse_traceframe_info): Declare.
1976 * tracepoint.c (struct mem_range): New.
1977 (mem_range_s): New typedef.
1978 (struct traceframe_info): New.
1979 (traceframe_info): New global.
1980 (free_traceframe_info): New function.
1981 (clear_traceframe_info): New function.
1982 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
1984 (build_traceframe_info): New function.
1985 (tfile_traceframe_info): New function.
1986 (init_tfile_ops): Install tfile_traceframe_info.
1987 (traceframe_info_start_memory, free_result): New functions.
1988 (memory_attributes, traceframe_info_elements): New globals.
1989 (parse_traceframe_info, get_traceframe_info): New functions.
1990 * features/traceframe-info.dtd: New file.
1991 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
1993 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1995 Base support for <unavailable> value contents.
1997 * value.h (value_bytes_available): Declare.
1998 (mark_value_bytes_unavailable): Declare.
1999 * value.c (struct range): New struct.
2000 (range_s): New typedef.
2001 (ranges_overlap): New function.
2002 (range_lessthan): New function.
2003 (ranges_contain_p): New function.
2004 (struct value) <unavailable>: New field.
2005 (value_bytes_available): New function.
2006 (mark_value_bytes_unavailable): New function.
2007 (require_not_optimized_out): Constify parameter.
2008 (require_available): New function.
2009 (value_contents_all, value_contents): Require all bytes be
2011 (value_free): Free `unavailable'.
2012 (value_copy): Copy `unavailable'.
2013 * valprint.h (val_print_unavailable): Declare.
2014 * valprint.c (valprint_check_validity): Rename `offset' parameter
2015 to `embedded_offset'. If printing a scalar, check whether the
2016 value chunk is available.
2017 (val_print_unavailable): New.
2018 (val_print_scalar_formatted): Check whether the value is
2020 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
2021 pretty-printing unavailable values.
2023 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2025 Fix const/volatile qualifiers of C++ types, PR c++/12328.
2026 * c-typeprint.c (c_type_print_args): Update the function comment. New
2027 variable param_type, initialize it. Remove const/volatile qualifiers
2028 for language_cplus and !show_artificial. Use param_type.
2030 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2032 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
2033 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
2034 * symtab.h (struct symtab) <next>: Comment extension.
2036 2011-02-12 Yao Qi <yao@codesourcery.com>
2038 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
2040 2011-02-11 Yao Qi <yao@codesourcery.com>
2042 * common/Makefile.in: Add copyright header.
2044 2011-02-11 Pedro Alves <pedro@codesourcery.com>
2046 * infrun.c (proceed): Move switching out and in of tfind mode from
2048 (fetch_inferior_event): ... to here.
2050 2011-02-11 Yao Qi <yao@codesourcery.com>
2052 * Makefile.in: Remove signals.o from COMMON_OBS. Link
2054 * configure.ac: Add common to sub dir.
2055 * configure: Regenerate.
2057 2011-02-11 Yao Qi <yao@codesourcery.com>
2061 * common/Makefile.in: New.
2062 * common/configure.ac: New.
2063 * common/aclocal.m4: New.
2064 * common/configure: Generate.
2066 2011-02-10 Pedro Alves <pedro@codesourcery.com>
2068 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
2069 side of the parenthesis.
2072 2010-07-13 Jakub Jelinek <jakub@redhat.com>
2073 * vec.h (VEC_block_remove): Fix comment.
2075 2011-02-08 Michael Snyder <msnyder@vmware.com>
2077 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
2079 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2081 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
2082 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
2085 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2088 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
2090 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
2091 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
2093 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2095 * dwarf2read.c (read_subroutine_type): Set special calling
2096 convention flag for functions compiled by IBM XL C for OpenCL.
2097 * ppc-sysv-tdep.c: Include "dwarf2.h"
2098 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
2100 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
2101 IBM OpenCL vector types calling convention.
2102 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
2103 (ppc_sysv_abi_broken_return_value): Likewise.
2104 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
2105 types calling convention.
2106 (ppc64_sysv_abi_return_value): Likewise.
2107 * spu-tdep.c: Include "dwarf2.h"
2108 (spu_return_value): Implement IBM OpenCL vector types calling
2111 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2113 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
2114 correct ABI for AltiVec vector arguments.
2116 2011-02-07 Pedro Alves <pedro@codesourcery.com>
2118 * valprint.c (val_print): Extend comment.
2119 * ada-valprint.c (ada_valprint): Rewrite comment deferring
2120 interface explanation to val_print.
2121 (ada_val_print_array): Adjust comment to current interface.
2122 (print_field_values): Adjust comment to current interface.
2123 * c-valprint.c (c_val_print): Rewrite comment deferring interface
2124 explanation to val_print.
2125 * f-valprint.c (f_val_print): Ditto.
2126 * jv-valprint.c (java_val_print): Ditto.
2127 * m2-valprint.c (m2_val_print): Ditto.
2128 * p-valprint.c (pascal_val_print): Ditto.
2130 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
2132 * breakpoint.c (parse_breakpoint_sals): Fix description.
2134 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
2135 Oguz Kayral <oguzkayral@gmail.com>
2137 * python/py-inferior.c (python_on_normal_stop): New function.
2138 (python_on_resume): New function.
2139 (python_inferior_exit): New function.
2140 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
2141 inferior_exit observers.
2142 * python/py-evtregistry.c: New file.
2143 * python/py-threadevent.c : New file.
2144 * python/py-event.c: New file.
2145 * python/py-evts.c: New file.
2146 * python/py-continueevent.c: New file.
2147 * python/py-bpevent.c: New file.
2148 * python/py-signalevent.c: New file.
2149 * python/py-exetiedevent.c: New file.
2150 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
2151 Move struct breakpoint_object from here...
2152 * python/python-internal.h: ... to here.
2153 * python/py-event.h: New file.
2154 * python/py-events.h: New file.
2155 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
2156 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
2157 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
2158 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
2159 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
2160 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
2161 Add build rules for all the above.
2163 2011-02-04 Tom Tromey <tromey@redhat.com>
2165 * dwarf2read.c (dwarf2_section_empty_p): New function.
2166 (dwarf2_read_section): Use dwarf2_section_empty_p.
2167 (dwarf2_section_size): New function.
2168 (dwarf2_get_section_info): Unconditionally read section.
2169 (dwarf2_read_index): Use dwarf2_section_empty_p.
2170 (partial_read_comp_unit_head): Use dwarf2_section_size.
2171 (dwarf2_symbol_mark_computed): Likewise.
2173 2011-02-04 David Daney <ddaney@caviumnetworks.com>
2175 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
2177 2011-02-04 David Daney <ddaney@caviumnetworks.com>
2179 * mips-linux-tdep.c: Include xml-syscall.h.
2180 (mips_linux_get_syscall_number): New function.
2181 (mips_linux_init_abi): Add calls to
2182 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
2183 * data-directory/Makefile.in (SYSCALLS_FILES): Add
2184 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
2185 * syscalls/mips-n32-linux.xml: New file.
2186 * syscalls/mips-n64-linux.xml: New file.
2187 * syscalls/mips-o32-linux.xml: New file.
2189 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
2191 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
2192 Complain about inverted range entries.
2193 (dwarf2_record_block_ranges): Likewise.
2195 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2198 * breakpoint.c (update_watchpoint): Fix name of the
2199 update_global_location_list function.
2200 (print_one_breakpoint): Fix typo.
2201 (_initialize_breakpoint): Remove extra space in hbreak help
2203 * breakpoint.h (struct bp_location) <length>: Fix field
2206 2011-02-04 Pedro Alves <pedro@codesourcery.com>
2208 * regcache.c (registers_changed_ptid): Don't explictly always
2209 clear `current_regcache'. Only clear current_thread_ptid and
2210 current_thread_arch when PTID matches. Only reinit the frame
2211 cache if PTID matches the current inferior_ptid. Move alloca(0)
2213 (registers_changed): ... here.
2215 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
2217 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
2218 starts with __stack_chk_guard as stack guard symbol.
2220 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
2222 * disasm.c (compare_lines): Handle the end of sequence markers
2223 within the line table to better support disassembling over
2224 compilation unit boundaries.
2226 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2228 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
2229 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
2230 implementation even if no symbols are available.
2231 (thumb_analyze_prologue): Update call to skip_prologue_function.
2232 (arm_analyze_prologue): Likewise.
2234 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2236 * arm-tdep.c: Include "observer.h".
2237 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
2238 (arm_exidx_data_key): New static variable.
2239 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
2240 (struct arm_exidx_data): Likewise.
2241 (arm_exidx_data_free): New function.
2242 (arm_compare_exidx_entries): Likewise.
2243 (arm_obj_section_from_vma): Likewise.
2244 (arm_exidx_new_objfile): Likewise.
2245 (arm_find_exidx_entry): Likewise.
2246 (arm_exidx_fill_cache): Likewise.
2247 (arm_exidx_unwind_sniffer): Likewise.
2248 (arm_exidx_unwind): New global variable.
2249 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
2250 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
2251 observer. Register arm_exidx_data_key as objfile data.
2253 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2255 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
2256 due to accessing uninitialized variable. Fix indentation.
2258 2011-02-02 Pedro Alves <pedro@codesourcery.com>
2260 * c-valprint.c (c_value_print): When doing virtual base pointer
2261 adjustment, create a new value with adjusted contents rather than
2262 changing the contents of the value being printed (and getting it
2265 2011-02-02 Pedro Alves <pedro@codesourcery.com>
2267 * xml-support.c (xml_find_attribute): New.
2268 (xinclude_start_include): Use it.
2269 * xml-support.h (xml_find_attribute): Declare.
2270 * memory-map.c (memory_map_start_memory)
2271 (memory_map_start_property): Use xml_find_attribute.
2272 * osdata.c (osdata_start_osdata, osdata_start_column): Use
2274 * remote.c (start_thread): Use xml_find_attribute.
2275 * solib-target.c (library_list_start_segment)
2276 (library_list_start_section, library_list_start_library)
2277 (library_list_start_list): Use xml_find_attribute.
2278 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
2279 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
2280 (tdesc_start_field): Use xml_find_attribute.
2282 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
2284 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
2285 (BUILD_OCL_VTYPES): Update.
2287 2011-02-02 Joel Brobecker <brobecker@adacore.com>
2289 * configure.ac: Work around non-GNU sed limitation when computing
2290 python version number.
2291 * configure: Regenerate.
2293 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2295 Fix debug printing of TYPE_INSTANCE.
2296 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
2297 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
2299 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2301 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
2302 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
2303 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
2304 * ada-operator.inc: Rename the file to ...
2305 * ada-operator.def: ... here, wrap all the entries by macro OP.
2306 * expprint.c (op_name_standard): Remove all the entries. Include
2307 "std-operator.def" instead.
2308 * expression.h (enum exp_opcode): Include "std-operator.def" and
2309 "ada-operator.def". Move all the entries ...
2310 * std-operator.def: ... here, wrap all the entries by macro OP.
2312 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2314 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
2315 * breakpoint.c (remove_jit_event_breakpoints): New function.
2316 * jit.c (jit_descriptor_addr): Delete.
2317 (registering_code): Delete.
2318 (clear_int): Delete.
2319 (jit_inferior_data): New variable.
2320 (struct jit_inferior_data): New type.
2321 (get_jit_inferior_data): New function.
2322 (jit_inferior_data_cleanup): New function.
2323 (jit_read_descriptor): Adjust.
2324 (jit_register_code): Adjust.
2325 (jit_breakpoint_re_set_internal): New function; move code here ...
2326 (jit_inferior_init): ... from here.
2327 (jit_breakpoint_re_set): Adjust.
2328 (jit_reset_inferior_data_and_breakpoints): New function.
2329 (jit_inferior_created_observer): Adjust.
2330 (jit_inferior_exit_hook): Adjust.
2331 (jit_executable_changed_observer): New function.
2332 (jit_event_handler): Adjust.
2333 (_initialize_jit): Adjust.
2335 2011-01-31 Michael Snyder <msnyder@vmware.com>
2337 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
2340 2011-01-31 Tom Tromey <tromey@redhat.com>
2343 * python/python.c (execute_gdb_command): Call
2344 prevent_dont_repeat.
2345 * top.c (suppress_dont_repeat): New global.
2346 (dont_repeat): Use it.
2347 (prevent_dont_repeat): New function.
2348 * command.h (prevent_dont_repeat): Declare.
2350 2011-01-31 Tom Tromey <tromey@redhat.com>
2352 * infcmd.c (finish_backward): Use breakpoint_set_silent.
2353 * python/py-breakpoint.c (bppy_set_silent): Use
2354 breakpoint_set_silent.
2355 (bppy_set_thread): Use breakpoint_set_thread.
2356 (bppy_set_task): Use breakpoint_set_task.
2357 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
2358 (breakpoint_set_task): Declare.
2359 (make_breakpoint_silent): Remove.
2360 * breakpoint.c (breakpoint_set_silent): New function.
2361 (breakpoint_set_thread): Likewise.
2362 (breakpoint_set_task): Likewise.
2363 (make_breakpoint_silent): Remove.
2365 2011-01-31 Tom Tromey <tromey@redhat.com>
2367 * breakpoint.h (user_breakpoint_p): Declare.
2368 * breakpoint.c (user_breakpoint_p): New function.
2369 (breakpoint_1): Use it.
2370 (save_breakpoints): Likewise.
2372 2011-01-31 Joel Brobecker <brobecker@adacore.com>
2374 * configure.ac: Add handling of Python distribution on Windows.
2375 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
2376 sysconfig variables are not defined, then do not use them.
2377 On Windows, if LIBPL is not defined, then use prefix + '/libs'
2378 instead. On Windows, return all paths using forward-slashes
2379 rather than backslashes.
2381 2011-01-31 Joel Brobecker <brobecker@adacore.com>
2383 * configure.ac: Remove fallback behavior for building
2384 against Python. Remove tweaking of Python include path.
2385 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
2386 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
2387 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
2388 Always restore CPPFLAGS and LIBS after linking test.
2389 * configure: Regenerated.
2390 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
2391 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
2392 * python/python-internal.h: Adjust includes of Python .h files.
2394 2011-01-31 Joel Brobecker <brobecker@adacore.com>
2396 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
2399 2011-01-31 Joel Brobecker <brobecker@adacore.com>
2401 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
2404 2011-01-31 Yao Qi <yao@codesourcery.com>
2406 * arm-linux-nat.c: Update calls to regcache_register_status
2407 instead of regcache_valid_p.
2408 * aix-thread.c: Likewise.
2409 * i386gnu-nat.c: Likewise.
2411 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2414 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
2415 touching TYPE_FIELD_ARTIFICIAL.
2417 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
2419 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
2422 2011-01-28 Pedro Alves <pedro@codesourcery.com>
2424 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
2425 selected, don't try iterating over the traceframe's blocks.
2426 (tfile_has_stack): If there's no traceframe selected, then there's
2428 (tfile_has_registers): If there's no traceframe selected, then
2429 there's no registers.
2431 2011-01-28 Pedro Alves <pedro@codesourcery.com>
2433 * target.c (memory_xfer_partial): No need to restore shadows if we
2434 haven't read anything.
2436 2011-01-28 Pedro Alves <pedro@codesourcery.com>
2438 * mips-tdep.c (mips_print_register): Use get_frame_register_value
2439 and val_print_scalar_formatted.
2441 2011-01-27 Pedro Alves <pedro@codesourcery.com>
2443 * tracepoint.c (tfile_read): New.
2444 (tfile_open): Use it.
2445 (tfile_get_traceframe_address): Use it.
2446 (tfile_trace_find): Use it.
2447 (walk_blocks_callback_func): New typedef.
2448 (match_blocktype): New function.
2449 (traceframe_walk_blocks): New function.
2450 (traceframe_find_block_type): New function.
2451 (tfile_fetch_registers, tfile_xfer_partial)
2452 (tfile_get_trace_state_variable_value): Use
2453 traceframe_find_block_type and tfile_read.
2455 2011-01-26 Kevin Buettner <kevinb@redhat.com>
2457 * remote-mips.c: Add internationalization mark ups. Remove
2458 trailing \n from already marked up strings.
2460 2011-01-26 Tom Tromey <tromey@redhat.com>
2462 * python/py-prettyprint.c (print_string_repr): Clear
2463 'addressprint' option when calling val_print_string.
2464 (print_children): Handle Val_pretty_default. Clear 'addressprint'
2465 option when calling val_print_string.
2467 2011-01-26 Tom Tromey <tromey@redhat.com>
2469 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
2471 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
2473 (gdb_py_longest, gdb_py_ulongest): New typedefs.
2474 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
2475 (gdb_py_long_as_ulongest): New defines.
2476 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
2477 (gdb_py_int_as_long): Declare.
2478 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
2479 GDB_PY_LL_ARG, gdb_py_object_from_longest.
2480 (valpy_long): Add comment.
2481 * python/py-utils.c (get_addr_from_python): Use
2482 gdb_py_long_as_ulongest. Handle overflow properly.
2483 (gdb_py_object_from_longest): New function.
2484 (gdb_py_object_from_ulongest): Likewise.
2485 (gdb_py_int_as_long): Likewise.
2486 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
2487 * python/py-symtab.c (salpy_get_pc): Use
2488 gdb_py_long_from_ulongest.
2489 (salpy_get_line): Use PyInt_FromLong.
2490 * python/py-param.c (set_parameter_value): Use
2492 * python/py-lazy-string.c (stpy_get_address): Use
2493 gdb_py_long_from_ulongest.
2494 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
2495 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
2496 * python/py-breakpoint.c (bppy_set_thread): Use
2498 (bppy_set_task): Likewise.
2499 (bppy_set_ignore_count): Likewise.
2500 (bppy_set_hit_count): Likewise.
2501 * python/py-block.c (blpy_get_start): Use
2502 gdb_py_object_from_ulongest.
2503 (blpy_get_end): Likewise.
2504 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
2506 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
2509 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
2510 * gdb/solib.c (solib_read_symbols): Check for addr_low in
2511 equality test for objfile, initialize addr_low if needed.
2513 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2515 * tui/tui-regs.c (tui_register_format): Remove dead code.
2517 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2519 * printcmd.c (print_formatted): Use val_print_scalar_formatted
2520 instead of print_scalar_formatted.
2521 (print_scalar_formatted): Don't handle 's' format strings here,
2522 and add an assertion that we never see such format here.
2523 * valprint.h (val_print_scalar_formatted): Declare.
2524 * valprint.c (val_print_scalar_formatted): New.
2525 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
2526 instead of print_scalar_formatted.
2527 * jv-valprint.c (java_val_print): Ditto.
2528 * p-valprint.c (pascal_val_print): Ditto.
2529 * ada-valprint.c (ada_val_print_1): Ditto.
2530 * f-valprint.c (f_val_print): Ditto.
2531 * infcmd.c (registers_info): Ditto.
2532 * m2-valprint.c (m2_val_print): Ditto.
2534 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2536 * m2-valprint.c (print_unbounded_array): Pass
2537 value_contents_for_printing rather than value_contents, to
2538 m2_print_array_contents. Also pass in the value.
2540 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2542 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
2543 (save_gdb_index_command): Switch to .gdb_index version 4.
2545 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2547 * mi/mi-main.c (get_register): Use get_frame_register_value rather
2548 than frame_register, and always pass a valid value to val_print.
2550 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2552 Centralize printing "<optimized out>".
2554 * valprint.h (val_print_optimized_out): Declare.
2555 * cp-valprint.c (cp_print_value_fields): Use
2556 val_print_optimized_out.
2557 * jv-valprint.c (java_print_value_fields): Ditto.
2558 * p-valprint.c (pascal_object_print_value_fields): Ditto.
2559 * printcmd.c (print_formatted): Ditto.
2560 * valprint.c (valprint_check_validity): Ditto.
2561 (value_check_printable): Ditto.
2562 (val_print_optimized_out): New.
2564 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2566 * infcmd.c (default_print_registers_info): Allocate values so to
2567 never pass a NULL value to val_print.
2569 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2571 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
2572 boolean. Make sure to always pass a value that matches the
2573 contents buffer to callees. Preserve `address' for following
2575 * value.c (value_contents_for_printing_const): New.
2576 (value_address): Constify value argument.
2577 * value.h (value_contents_for_printing_const): Declare.
2578 (value_address): Constify value argument.
2580 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2582 * regcache.c (struct regcache_descr): Rename
2583 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
2584 and sizeof_cooked_register_valid_p to
2585 sizeof_cooked_register_status.
2586 (init_regcache_descr): Adjust.
2587 (struct regcache): Rename register_valid_p field to
2589 (regcache_xmalloc_1, regcache_xfree, regcache_save)
2590 (do_cooked_read): Adjust.
2591 (regcache_valid_p): Rename to ...
2592 (regcache_register_status): ... this. Adjust.
2593 (regcache_invalidate): Adjust.
2594 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
2596 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
2597 as unavailable, not valid.
2598 (regcache_dump): Adjust.
2599 * regcache.h (enum register_status): New.
2600 (regcache_register_status): Declare.
2601 (regcache_invalidate): Delete declaration.
2602 * corelow.c (get_core_registers): Adjust.
2603 * tracepoint.c (tfile_fetch_registers): Adjust.
2604 * trad-frame.c (REG_VALUE): Rename to ...
2605 (TF_REG_VALUE): ... this.
2606 (REG_UNKNOWN): Rename to ...
2607 (TF_REG_UNKNOWN): ... this.
2608 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
2609 * mi/mi-main.c (register_changed_p): Adjust.
2611 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2613 * regcache.c (struct regcache_descr): Remove outdated comment.
2614 (init_regcache_descr): Remove sizeof_raw_register_valid_p
2616 (regcache_xmalloc): Rename to ...
2617 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
2618 Allocate the regcache type accordingly.
2619 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
2620 (regcache_xfree): Asser the source is also readonly. Copy sizeof
2621 cooked registers, not raw.
2622 (regcache_dup_no_passthrough): Delete.
2623 (get_thread_arch_regcache): Use regcache_xmalloc_1.
2624 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
2625 mention obsolete write_register_bytes.
2626 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
2628 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2630 Stop remote_read_bytes from handling partial reads itself.
2632 * remote-fileio.c: Include target.h.
2633 (remote_fileio_write_bytes): Delete.
2634 (remote_fileio_func_open, remote_fileio_func_write)
2635 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
2637 (remote_fileio_func_stat): Use target_read_memory and
2638 target_write_memory.
2639 (remote_fileio_func_gettimeofday): Use target_write_memory.
2640 (remote_fileio_func_system): Use target_read_memory.
2641 * remote.c (remote_write_bytes): Make it static.
2642 (remote_read_bytes): Don't handle partial reads here.
2643 * remote.h (remote_read_bytes): Delete declaration.
2645 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2647 Simplify XML parsing a bit.
2649 * xml-support.h (gdb_xml_parse_quick): Declare.
2650 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
2651 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
2653 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
2654 gdb_xml_create_parser_and_cleanup_1.
2655 (gdb_xml_parse_quick): New.
2656 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
2657 * osdata.c (osdata_parse): Ditto.
2658 * remote.c (remote_threads_info): Ditto.
2659 * solib-target.c (solib_target_parse_libraries): Ditto.
2660 * xml-syscall.c (syscall_parse_xml): Ditto.
2661 * xml-tdesc.c (tdesc_parse_xml): Ditto.
2663 2011-01-24 Kevin Buettner <kevinb@redhat.com>
2665 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
2666 with remote-mips.o added to gdb_target_obs.
2667 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
2669 2011-01-24 Pedro Alves <pedro@codesourcery.com>
2671 * ada-valprint.c (val_print_packed_array_elements): Pass the
2672 correct struct value to val_print.
2673 (ada_val_print_1): Ditto.
2675 2011-01-24 Pedro Alves <pedro@codesourcery.com>
2677 Don't lose embedded_offset in printing routines throughout.
2679 * valprint.h (val_print_array_elements): Change prototype.
2680 * valprint.c (val_print_array_elements): Add `embedded_offset'
2681 parameter, and adjust to pass it down to val_print, while passing
2682 `valaddr' or `address' unmodified. Take embedded_offset into
2683 account when checking repetitions.
2684 * c-valprint.c (c_val_print): Pass embedded_offset to
2685 val_print_array_elements instead of adjusting `valaddr' and
2687 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
2688 embedded_offset to val_print_array_elements instead of adjusting
2690 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
2691 * p-valprint.c (pascal_val_print): Pass embedded_offset to
2692 val_print_array_elements and pascal_object_print_value_fields
2693 instead of adjusting `valaddr'.
2694 (pascal_object_print_value_fields): Add `offset' parameter, and
2696 (pascal_object_print_value): Add `offset' parameter, and adjust to
2698 (pascal_object_print_static_field): Use
2699 value_contents_for_printing/value_embedded_offset, rather than
2701 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
2702 parameter, and adjust to use it. Use
2703 value_contents_for_printing/value_embedded_offset, rather than
2705 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
2706 (ada_val_print_array): Add `offset' parameter, and adjust to use
2708 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
2709 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
2710 Instead work with offsets. Use
2711 value_contents_for_printing/value_embedded_offset, rather than
2712 value_contents. Change `defer_val_int' local type to CORE_ADDR,
2713 and use value_from_pointer to extract a target pointer, rather
2714 than value_from_longest.
2715 (print_variant_part): Add `offset' parameter. Replace
2716 `outer_valaddr' parameter by a new `outer_offset' parameter.
2717 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
2718 (ada_value_print): Use
2719 value_contents_for_printing/value_embedded_offset, rather than
2721 (print_record): Add `offset' parameter, and adjust to pass it
2723 (print_field_values): Add `offset' parameter. Replace
2724 `outer_valaddr' parameter by a new `outer_offset' parameter.
2725 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
2726 Use value_contents_for_printing/value_embedded_offset, rather than
2728 * d-valprint.c (dynamic_array_type): Use
2729 value_contents_for_printing/value_embedded_offset, rather than
2731 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
2732 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
2733 (java_print_value_fields): Take `offset' into account. Don't
2734 re-adjust `valaddr'. Instead pass down adjusted offsets.
2735 (java_val_print): Take `embedded_offset' into account. Pass it to
2736 java_print_value_fields.
2737 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
2738 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
2739 down adjusted offsets.
2740 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
2741 (f_val_print): Take `embedded_offset' into account.
2743 2011-01-21 Joel Brobecker <brobecker@adacore.com>
2745 * inflow.c: Include "gdbcmd.h".
2746 (interactive_mode): New static global, moved here from top.c.
2747 (show_interactive_mode): New function, moved here from top.c.
2748 use gdb_has_a_terminal instead of input_from_terminal_p to
2749 determine the current mode.
2750 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
2752 (_initialize_inflow): Add the "set/show interactive-mode"
2753 commands. Moved here from top.c, after having adjusted slightly
2755 * top.c (interactive_mode, show_interactive_mode): Delete, moved
2757 (input_from_terminal_p): Remove handling of "interactive-mode"
2758 setting, moved to infow.c.
2759 (init_main): Remove creation of the "set/show interactive-mode"
2760 commands, moved to inflow.c.
2762 2011-01-19 Joel Brobecker <brobecker@adacore.com>
2764 * NEWS: Add entry for native ia64-hpux support.
2766 2011-01-19 Tom Tromey <tromey@redhat.com>
2769 * thread.c (free_thread): Free 'name'.
2770 (print_thread_info): Emit thread name. Change CLI output.
2771 (thread_name_command): New function.
2772 (do_captured_thread_select): Emit newline.
2773 (_initialize_thread): Register 'thread name' command.
2774 * target.h (struct target_ops) <to_thread_name>: New field.
2775 (target_thread_name): New macro.
2776 * target.c (update_current_target): Handle to_thread_name.
2777 * python/py-infthread.c (thpy_get_name): New function.
2778 (thpy_set_name): Likewise.
2779 (thread_object_getset): Add "name".
2780 * linux-nat.c (linux_nat_thread_name): New function.
2781 (linux_nat_add_target): Set to_thread_name.
2782 * gdbthread.h (struct thread_info) <name>: New field.
2784 2011-01-18 Joel Brobecker <brobecker@adacore.com>
2786 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
2787 (ada_val_print_1): Likewise.
2789 2011-01-18 Joel Brobecker <brobecker@adacore.com>
2791 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
2792 upper limit address is not greater than the function end address
2793 when the upper limit could not be computed using the debugging
2796 2011-01-17 Tom Tromey <tromey@redhat.com>
2798 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
2800 * utils.c: Include gdb_regex.h.
2801 (do_regfree_cleanup): New function.
2802 (make_regfree_cleanup): Likewise.
2803 (get_regcomp_error): Likewise.
2804 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
2806 2011-01-17 Tom Tromey <tromey@redhat.com>
2808 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
2811 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
2813 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
2814 for internal variables.
2815 (last_was_structop): New static variable.
2816 (COMPLETE): New token.
2817 (field_exp): New rule to group all '.' suffix handling.
2818 Add mark_struct_expression calls when approriate to be able
2819 to correctly find fields for completion.
2820 (yylex): Adapt to handle field completion and set INTVAR when
2823 2011-01-14 Yao Qi <yao@codesourcery.com>
2825 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
2826 save_reggroup, restore_reggroup and all_reggroup.
2828 2011-01-14 Joel Brobecker <brobecker@adacore.com>
2830 * ada-valprint. (ada_printchar): Use the correct type length
2831 in call to ada_emit_char.
2832 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
2834 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
2836 * solib-som.h (hpux_major_release): Declare variable here.
2837 * solib-som.c: Remove <sys/utsname.h> header.
2838 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
2839 (hpux_major_release): Make global, change default value to
2840 DEFAULT_HPUX_MAJOR_RELEASE.
2841 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
2842 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
2843 Add "solib-som.h" header.
2844 (set_hpux_major_release): New function.
2845 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
2847 2011-01-14 Mike Frysinger <vapier@gentoo.org>
2849 * configure.tgt (*-*-uclinux*): Match more Linux os targets
2851 2011-01-14 Joel Brobecker <brobecker@adacore.com>
2853 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
2854 new-line at end of warning message.
2855 (ia64_hpux_store_register): Remove trailing new-line at end of
2857 * ia64-hpux-tdep.c: Rephrase comment.
2858 * solib-ia64-hpux.c (struct dld_info): Change type of field
2859 dld_flags from "long long" to ULONGEST.
2861 2011-01-14 Pedro Alves <pedro@codesourcery.com>
2863 * target.h (deprecated_child_ops): Delete declaration.
2864 * target.c (deprecated_child_ops): Delete definition.
2866 2011-01-14 Pedro Alves <pedro@codesourcery.com>
2868 * Makefile.in (hpux-thread.o): Delete rule.
2869 * configure.ac: Don't check for HPUX DCE threads support.
2870 * configure, config.in: Regenerate.
2871 * hppa-hpux-nat.c (child_suppress_run): Delete.
2872 (hppa_hpux_child_can_run): Delete.
2873 (_initialize_hppa_hpux_nat): Don't override to_can_run.
2874 * hpux-thread.c: Delete.
2876 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2878 * hpux-thread.c (hpux_pid_to_str): Delete.
2880 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2882 * ada-valprint.c (ada_emit_char): Remove strange code.
2883 Check that c is <= UCHAR_MAX before passing it to isascii.
2884 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
2886 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2888 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
2889 to the case where instream is stdin.
2891 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2893 * ia64-tdep.h (struct regcache): Forward declare.
2894 (struct ia64_infcall_ops): New struct type.
2895 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
2897 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
2898 Renames ia64_find_global_pointer.
2899 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
2900 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
2901 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
2903 (ia64_infcall_ops): New static global constant.
2904 (ia64_gdbarch_init): Set tdep->infcall_ops.
2905 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
2906 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
2907 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
2908 (ia64_hpux_dummy_code): New static global constant.
2909 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
2910 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
2911 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
2913 (ia64_hpux_infcall_ops): New static global constant.
2914 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
2915 for inferior function calls to work properly on ia64-hpux.
2917 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2919 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
2920 * ia64-tdep.h (struct frame_info): forward declaration.
2921 (struct gdbarch_tdep): Add field size_of_register_frame.
2922 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
2923 to determine the size of the register frame.
2924 (ia64_size_of_register_frame): New function.
2925 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
2926 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
2927 (IA64_HPUX_UREG_REASON): New macro.
2928 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
2930 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
2931 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
2932 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
2935 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2937 Add support for ia64-hpux.
2938 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
2939 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
2941 * configure.host: Add handling for ia64-hpux hosts. Add associated
2943 * configure.tgt: Add handling for ia64-hpux targets.
2944 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
2945 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
2946 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
2948 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2950 [ttrace] Compute thread list immediately after attach.
2951 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
2953 (inf_ttrace_attach): Use it.
2955 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2957 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
2958 if we could not determine the frame's function address. Instead,
2959 use the frame's PC, and then continue.
2961 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2963 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
2964 not already defined.
2966 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2968 * ia64-tdep.c (ia64_struct_type_p): New function.
2969 (ia64_extract_return_value): Handle integral values that are
2970 less than 8 bytes long.
2971 (ia64_push_dummy_call): Likewise.
2973 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2975 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
2976 floatformat_ia64_ext.
2977 (floatformat_ia64_ext_big): New static const.
2978 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
2980 2011-01-12 Tom Tromey <tromey@redhat.com>
2982 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
2984 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
2985 (mi_cmd_thread_list_ids): Likewise.
2986 (mi_cmd_data_list_changed_registers): Likewise.
2987 (mi_cmd_data_list_register_values): Likewise.
2988 (mi_cmd_data_write_register_values): Likewise.
2989 (mi_cmd_data_evaluate_expression): Likewise.
2990 (mi_cmd_data_read_memory): Likewise.
2991 (mi_cmd_data_read_memory_bytes): Likewise.
2992 (mi_cmd_data_write_memory): Likewise.
2993 (mi_cmd_enable_timings): Likewise.
2994 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
2995 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
2996 (mi_cmd_var_delete): Likewise.
2997 (mi_cmd_var_set_format): Likewise.
2998 (mi_cmd_var_show_format): Likewise.
2999 (mi_cmd_var_info_num_children): Likewise.
3000 (mi_cmd_var_list_children): Likewise.
3001 (mi_cmd_var_info_type): Likewise.
3002 (mi_cmd_var_info_expression): Likewise.
3003 (mi_cmd_var_show_attributes): Likewise.
3004 (mi_cmd_var_assign): Likewise.
3005 (mi_cmd_var_update): Likewise.
3006 (mi_cmd_enable_pretty_printing): Likewise.
3007 (mi_cmd_var_set_update_range): Likewise.
3008 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
3010 (mi_cmd_target_file_put): Likewise.
3011 (mi_cmd_target_file_delete): Likewise.
3012 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
3014 (mi_cmd_stack_info_depth): Likewise.
3015 (mi_cmd_stack_list_locals): Likewise.
3016 (mi_cmd_stack_list_args): Likewise.
3017 (mi_cmd_stack_select_frame): Likewise.
3018 (mi_cmd_stack_select_frame): Likewise.
3019 (mi_cmd_stack_info_frame): Likewise.
3020 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
3022 (mi_cmd_file_list_exec_source_files): Likewise.
3023 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
3024 (mi_cmd_env_cd): Likewise.
3025 (mi_cmd_env_path): Likewise.
3026 (mi_cmd_env_dir): Likewise.
3027 (mi_cmd_inferior_tty_show): Likewise.
3028 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
3029 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
3030 (mi_cmd_break_watch): Likewise.
3032 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
3034 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
3035 (ppc_linux_insert_hw_breakpoint): Likewise.
3036 (ppc_linux_remove_hw_breakpoint): Likewise.
3037 (ppc_linux_insert_watchpoint): Likewise.
3039 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
3040 Jan Kratochvil <jan.kratochvil@redhat.com>
3042 PR fortran/11104 and DWARF unbound arrays detection.
3043 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
3044 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
3045 unspecified upper bound.
3046 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
3047 variables array_size_array, tmp_type and offset_item. New variable
3048 array. Remove call to f77_get_upperbound. New variables array_type
3049 and index. Call value_subscripted_rvalue for each dimenasion. Remove
3050 the final call to deprecated_set_value_type.
3052 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3054 Make value allocations more lazy.
3055 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
3056 instead of allocate_value and set_value_lazy when possible.
3057 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
3058 instead of allocate_value and set_value_lazy.
3059 * findvar.c (value_of_register_lazy): Likewise.
3060 (read_var_value): Remove V preallocation, call just check_typedef in
3061 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
3062 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
3063 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
3064 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
3065 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
3066 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
3067 the end, remove set_value_lazy there.
3068 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
3069 instead of allocate_value and set_value_lazy when possible.
3070 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
3071 * value.c (allocate_computed_value): Use allocate_value_lazy instead
3072 of allocate_value and set_value_lazy.
3073 (value_from_contents_and_address): Use allocate_value_lazy instead of
3074 allocate_value and set_value_lazy when possible.
3076 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
3078 * disasm.c (dump_insns): Support dumping opcodes for MI.
3079 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
3080 dumping of instruction opcodes.
3082 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
3084 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
3087 2011-01-11 Tom Tromey <tromey@redhat.com>
3089 * thread.c (do_captured_thread_select): Emit newline before
3092 2011-01-11 Michael Snyder <msnyder@vmware.com>
3094 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
3095 * score-tdep.c: Ditto.
3096 * score-tdep.h: Ditto.
3097 * ser-base.c: Ditto.
3098 * ser-go32.c: Ditto.
3101 * ser-mingw.c: Ditto.
3102 * ser-pipe.c: Ditto.
3104 * ser-unix.c: Ditto.
3105 * sh64-tdep.c: Ditto.
3106 * shnbsd-nat.c: Ditto.
3110 * solib-darwin.c: Ditto.
3111 * solib-frv.c: Ditto.
3113 * solib-irix.c: Ditto.
3114 * solib-osf.c: Ditto.
3115 * solib-pa64.c: Ditto.
3116 * solib-som.c: Ditto.
3117 * solib-spu.c: Ditto.
3118 * solib-sunos.c: Ditto.
3119 * solib-svr4.c: Ditto.
3121 * sol-thread.c: Ditto.
3125 * sparc64-linux-tdep.c: Ditto.
3126 * sparc64-tdep.c: Ditto.
3127 * sparc-linux-nat.c: Ditto.
3128 * sparc-linux-tdep.c: Ditto.
3129 * sparc-sol2-nat.c: Ditto.
3130 * sparc-sol2-tdep.c: Ditto.
3131 * sparc-tdep.c: Ditto.
3132 * sparc-tdep.h: Ditto.
3133 * spu-tdep.c: Ditto.
3134 * stabsread.c: Ditto.
3135 * stabsread.h: Ditto.
3143 * target-descriptions.c: Ditto.
3144 * target-descriptions.h: Ditto.
3146 * target-memory.c: Ditto.
3147 * terminal.h: Ditto.
3150 * tracepoint.c: Ditto.
3151 * tracepoint.h: Ditto.
3152 * trad-frame.h: Ditto.
3153 * typeprint.c: Ditto.
3155 2011-01-11 Michael Snyder <msnyder@vmware.com>
3157 * ui-file.c: Comment cleanup, mostly periods and spaces.
3162 * v850-tdep.c: Ditto.
3163 * valarith.c: Ditto.
3165 * valprint.c: Ditto.
3166 * valprint.h: Ditto.
3171 * vax-tdep.c: Ditto.
3175 * windows-nat.c: Ditto.
3176 * windows-tdep.c: Ditto.
3177 * xcoffread.c: Ditto.
3178 * xcoffsolib.c: Ditto.
3179 * xml-support.c: Ditto.
3180 * xstormy16-tdep.c: Ditto.
3181 * xtensa-tdep.c: Ditto.
3182 * xtensa-tdep.h: Ditto.
3184 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3186 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
3187 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
3189 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3190 Thiago Jung Bauermann <bauerman@br.ibm.com>
3192 Implement support for PowerPC BookE ranged watchpoints.
3194 (struct breakpoint_ops) <resources_needed>: New method.
3195 Initialize to NULL in all existing breakpoint_ops instances.
3196 (struct breakpoint) <exact>: New field.
3197 (target_exact_watchpoints): Declare external global.
3198 * breakpoint.c (target_exact_watchpoints): New global flag.
3199 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
3200 b->enable_state to bp_enabled before calling
3201 hw_watchpoint_used_count.
3202 (hw_watchpoint_used_count): Iterate over all bp_locations in a
3203 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
3205 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
3206 if the watchpoint is exact.
3207 (resources_needed_watchpoint): New function.
3208 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
3209 (watch_command_1): Set b->exact if the user asked for an exact
3210 watchpoint and one can be set.
3211 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
3212 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
3213 the user asks for an exact watchpoint and one can be set. Return
3214 number of needed debug registers to watch the expression.
3215 * gdbtypes.c (is_scalar_type): New function, based on
3216 valprint.c:scalar_type_p.
3217 (is_scalar_type_recursive): New function.
3218 * gdbtypes.h (is_scalar_type_recursive): Declare.
3219 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
3220 handle regions when ranged watchpoints are available.
3221 (create_watchpoint_request): New function.
3222 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
3223 create_watchpoint_request.
3224 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
3225 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
3226 `set powerpc' and `show powerpc' commands.
3227 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
3228 Mention documentation comment in the target macro.
3229 (target_region_ok_for_hw_watchpoint): Document return value.
3231 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3233 * breakpoint.c (update_watchpoint): Decide on using a software or
3234 hardware watchpoint after the bp_locations are created.
3236 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3238 Convert hardware watchpoints to use breakpoint_ops.
3239 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
3240 <insert_location>: ... this. Return int instead of void.
3241 Accept pointer to struct bp_location instead of pointer to
3242 struct breakpoint. Adapt all implementations.
3243 (breakpoint_ops) <remove>: Rename to...
3244 <remove_location>: ... this. Accept pointer to struct bp_location
3245 instead of pointer to struct breakpoint. Adapt all implementations.
3246 * breakpoint.c (insert_catchpoint): Delete function.
3247 (insert_bp_location): Call the watchpoint or catchpoint's
3248 breakpoint_ops.insert method.
3249 (remove_breakpoint_1): Call the watchpoint or catchpoint's
3250 breakpoint_ops.remove method.
3251 (insert_watchpoint, remove_watchpoint): New functions.
3252 (watchpoint_breakpoint_ops): New structure.
3253 (watch_command_1): Initialize the OPS field.
3254 * inf-child.c (inf_child_insert_fork_catchpoint)
3255 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
3256 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
3257 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
3259 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
3260 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
3261 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
3262 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
3263 * target.c (update_current_target): Change default implementation of
3264 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
3265 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
3266 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
3267 to_set_syscall_catchpoint to return_one.
3268 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
3269 (debug_to_insert_exec_catchpoint): Report return value.
3270 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
3271 (to_insert_exec_catchpoint): Change declaration to return int instead
3274 2011-01-11 Michael Snyder <msnyder@vmware.com>
3276 * arm-tdep.c: Internationalization.
3279 * fork-child.c: Ditto.
3280 * nto-procfs.c: Ditto.
3281 * ppc-sysv-tdep.c: Ditto.
3283 * remote-mips.c: Ditto.
3285 * rs6000-nat.c: Ditto.
3286 * rs6000-tdep.c: Ditto.
3290 * xml-support.c: Ditto.
3291 * mi/mi-cmd-break.c: Ditto.
3292 * mi/mi-cmd-var.c: Ditto.
3293 * mi/mi-interp.c: Ditto.
3294 * mi/mi-main.c: Ditto.
3296 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
3298 * remote-sim.c (gdbsim_store_register): Update API to
3299 sim_store_register to check more error conditions.
3301 2011-01-10 Michael Snyder <msnyder@vmware.com>
3303 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
3304 * nto-tdep.c: Ditto.
3305 * nto-tdep.h: Ditto.
3306 * objc-exp.y: Ditto.
3307 * objc-lang.c: Ditto.
3308 * objfiles.c: Ditto.
3309 * objfiles.h: Ditto.
3310 * observer.c: Ditto.
3311 * opencl-lang.c: Ditto.
3314 * parser-defs.h: Ditto.
3317 * posix-hdep.c: Ditto.
3318 * ppcbug-rom.c: Ditto.
3319 * ppc-linux-nat.c: Ditto.
3320 * ppc-linux-tdep.c: Ditto.
3321 * ppc-linux-tdep.h: Ditto.
3322 * ppcnbsd-tdep.c: Ditto.
3323 * ppcobsd-tdep.c: Ditto.
3324 * ppcobsd-tdep.h: Ditto.
3325 * ppc-sysv-tdep.c: Ditto.
3326 * ppc-tdep.h: Ditto.
3327 * printcmd.c: Ditto.
3328 * proc-abi.c: Ditto.
3329 * proc-flags.c: Ditto.
3331 * proc-utils.h: Ditto.
3332 * progspace.h: Ditto.
3333 * prologue-value.c: Ditto.
3334 * prologue-value.h: Ditto.
3335 * psympriv.h: Ditto.
3337 * p-typeprint.c: Ditto.
3338 * p-valprint.c: Ditto.
3339 * ravenscar-sparc-thread.c: Ditto.
3340 * ravenscar-thread.c: Ditto.
3341 * ravenscar-thread.h: Ditto.
3343 * regcache.c: Ditto.
3344 * regcache.h: Ditto.
3346 * remote-fileio.c: Ditto.
3347 * remote-fileio.h: Ditto.
3349 * remote-m32r-sdi.c: Ditto.
3350 * remote-mips.c: Ditto.
3351 * remote-sim.c: Ditto.
3352 * rs6000-aix-tdep.c: Ditto.
3353 * rs6000-nat.c: Ditto.
3354 * rs6000-tdep.c: Ditto.
3356 2011-01-10 Michael Snyder <msnyder@vmware.com>
3358 * charset.c (validate): Internationalization.
3359 * coffread.c (read_one_sym): Ditto.
3360 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
3361 * h8300-tdep.c (H8300_extract_return_value): Ditto.
3362 * inflow.c (new_tty): Ditto.
3363 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
3364 * m32c-tdep.c (m32c_return_value): Ditto.
3365 * mep-tdep.c (mep_store_return_value): Ditto.
3366 * score-tdep.c (score7_fetch_insn): Ditto.
3367 * ser-mingw.c (pipe_windows_open): Ditto.
3368 * sh64-tdep.c (sh64_extract_return_value): Ditto.
3369 * spu-tdep.c (spu_register_type): Ditto.
3370 * tracepoint.c (trace_find_command): Ditto.
3371 * valarith.c (value_pos): Ditto.
3373 2011-01-10 Joel Brobecker <brobecker@adacore.com>
3375 * ada-valprint.c (printstr): Minor comment reformatting.
3377 2011-01-08 Michael Snyder <msnyder@vmware.com>
3379 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
3382 2011-01-08 Michael Snyder <msnyder@vmware.com>
3384 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
3385 * hppa-hpux-tdep.c: Ditto.
3386 * hppa-linux-nat.c: Ditto.
3387 * hppa-linux-tdep.c: Ditto.
3388 * hppanbsd-tdep.c: Ditto.
3389 * hppa-tdep.c: Ditto.
3390 * hppa-tdep.h: Ditto.
3391 * hpux-thread.c: Ditto.
3392 * i386-cygwin-tdep.c: Ditto.
3393 * i386-darwin-nat.c: Ditto.
3394 * i386gnu-nat.c: Ditto.
3395 * i386-linux-nat.c: Ditto.
3396 * i386-linux-tdep.c: Ditto.
3397 * i386-nat.c: Ditto.
3398 * i386-nat.h: Ditto.
3399 * i386nbsd-tdep.c: Ditto.
3400 * i386-sol2-nat.c: Ditto.
3401 * i386-stub.c: Ditto.
3402 * i386-tdep.c: Ditto.
3403 * i386-tdep.h: Ditto.
3404 * i387-tdep.c: Ditto.
3405 * ia64-linux-nat.c: Ditto.
3406 * ia64-linux-tdep.c: Ditto.
3407 * ia64-tdep.c: Ditto.
3411 * inferior.c: Ditto.
3412 * inferior.h: Ditto.
3418 * iq2000-tdep.c: Ditto.
3419 * irix5-nat.c: Ditto.
3425 * jv-typeprint.c: Ditto.
3426 * jv-valprint.c: Ditto.
3427 * language.c: Ditto.
3428 * language.h: Ditto.
3429 * linespec.c: Ditto.
3430 * linux-fork.c: Ditto.
3431 * linux-nat.c: Ditto.
3432 * linux-thread-db.c: Ditto.
3433 * lm32-tdep.c: Ditto.
3435 2011-01-08 Michael Snyder <msnyder@vmware.com>
3437 * m2-exp.y: Comment cleanup, mostly periods and spaces.
3439 * m2-typeprint.c: Ditto.
3440 * m2-valprint.c: Ditto.
3441 * m32c-tdep.c: Ditto.
3442 * m32r-linux-nat.c: Ditto.
3443 * m32r-rom.c: Ditto.
3444 * m32r-tdep.c: Ditto.
3445 * m32r-tdep.h: Ditto.
3446 * m68hc11-tdep.c: Ditto.
3447 * m58klinux-nat.c: Ditto.
3448 * m68k-tdep.c: Ditto.
3449 * m88k-tdep.c: Ditto.
3450 * m88k-tdep.h: Ditto.
3451 * machoread.c: Ditto.
3452 * macrocmd.c: Ditto.
3453 * macroexp.c: Ditto.
3454 * macrotab.c: Ditto.
3457 * mdebugread.c: Ditto.
3458 * mdebugread.h: Ditto.
3461 * memory-map.h: Ditto.
3462 * mep-tdep.c: Ditto.
3463 * microblaze-rom.c: Ditto.
3464 * microblaze-tdep.c: Ditto.
3466 * mips-irix-tdep.c: Ditto.
3467 * mips-linux-nat.c: Ditto.
3468 * mips-linux-tdep.c: Ditto.
3469 * mips-linux-tdep.h: Ditto.
3470 * mipsnbsd-nat.c: Ditto.
3471 * mipsnbsd-tdep.c: Ditto.
3472 * mipsread.c: Ditto.
3473 * mips-tdep.c: Ditto.
3474 * mips-tdep.h: Ditto.
3475 * mn10300-linux-tdep.c: Ditto.
3476 * mn10300-tdep.c: Ditto.
3477 * mn10300-tdep.h: Ditto.
3480 * moxie-tdep.c: Ditto.
3481 * moxie-tdep.h: Ditto.
3484 2011-01-08 Mike Frysinger <vapier@gentoo.org>
3486 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
3488 2011-01-08 Robert Millan <rmh@gnu.org>
3490 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
3492 2011-01-07 Michael Snyder <msnyder@vmware.com>
3494 * charset.c (_initialize_charset): Fix typo in string.
3496 2011-01-07 Michael Snyder <msnyder@vmware.com>
3498 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
3500 * tui/tui-layout.c (tui_set_layout_for_display_command):
3501 Split line so that operator goes to beginning of line.
3502 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
3503 assignment out of if statement.
3505 2011-01-07 Michael Snyder <msnyder@vmware.com>
3507 * ada-lang.c: Comment cleanup, mostly periods and spaces.
3508 * ada-lang.h: Ditto.
3509 * ada-tasks.c: Ditto.
3510 * ada-valprint.c: Ditto.
3511 * aix-threads.c: Ditto.
3512 * alpha-linux-nat.c: Ditto.
3513 * alpha-linux-tdep.c: Ditto.
3514 * alpha-mdebug-tdep.c: Ditto.
3515 * alpha-nat.c: Ditto.
3516 * alpha-osf1-tdep.c: Ditto.
3517 * alpha-tdep.c: Ditto.
3518 * alphabsd-nat.c: Ditto.
3519 * alphabsd-tdep.c: Ditto.
3520 * amd64-darwin-tdep.c: Ditto.
3521 * amd64-linux-nat.c: Ditto.
3522 * amd64-linux-tdep.c: Ditto.
3523 * amd64-sol2-tdep.c: Ditto.
3524 * amd64-tdep.c: Ditto.
3525 * amd64-fbsd-tdep.c: Ditto.
3526 * amd64-nbsd-tdep.c: Ditto.
3527 * amd64-obsd-tdep.c: Ditto.
3528 * amd64-linux-nat.c: Ditto.
3529 * amd64-linux-tdep.c: Ditto.
3530 * arm-tdep.c: Ditto.
3531 * arm-tdep.h: Ditto.
3532 * armnbsd-nat.c: Ditto.
3533 * avr-tdep.c: Ditto.
3534 * bfin-tdep.c: Ditto.
3536 * c-typeprintc: Ditto.
3537 * c-valprint.c: Ditto.
3538 * coff-pe-read.h: Ditto.
3539 * coffreead.c: Ditto.
3540 * cris-tdep.c: Ditto.
3542 * darwin-nat-info.c: Ditto.
3543 * darwin-nat.c: Ditto.
3544 * dbug-rom.c: Ditto.
3548 * dec-thread.c: Ditto.
3550 * demangle.c: Ditto.
3551 * dicos-tdep.c: Ditto.
3552 * dictionary.c: Ditto.
3553 * dictionary.h: Ditto.
3554 * dink32-rom.c: Ditto.
3556 * doublest.c: Ditto.
3558 * dummy-frame.c: Ditto.
3559 * dwarf2-frame.c: Ditto.
3560 * dwarf2expr.c: Ditto.
3561 * dwarf2loc.c: Ditto.
3562 * dwarf2read.c: Ditto.
3566 * event-top.h: Ditto.
3567 * exceptions.c: Ditto.
3568 * exceptions.h: Ditto.
3570 * expprint.c: Ditto.
3571 * expression.h: Ditto.
3575 * f-typeprint.c: Ditto.
3576 * f-valprint.c: Ditto.
3577 * fbsd-nat.c: Ditto.
3579 * fork-child.c: Ditto.
3582 * frv-linux-tdep.c: Ditto.
3583 * frv-tdep.c: Ditto.
3585 * gdb-stabs.h: Ditto.
3586 * gdb_assert.h: Ditto.
3587 * gdb_string.h: Ditto.
3588 * gdb_thread_db.h: Ditto.
3589 * gdb_wait.h: Ditto.
3590 * gdbarch.sh: Ditto.
3592 * gdbthread.h: Ditto.
3593 * gdbtypes.c: Ditto.
3594 * gdbtypes.h: Ditto.
3597 * gnu-v2-abi.c: Ditto.
3598 * gnu-v3-abi.c: Ditto.
3599 * go32-nat.c: Ditto.
3600 * gdbarch.c: Regenerate.
3601 * gdbarch.h: Regenerate.
3603 2011-01-07 Michael Snyder <msnyder@vmware.com>
3605 * ax-gdb.c: Adjust some long output strings.
3606 * breakpoint.c: Ditto.
3611 * linux-nat.c: Ditto.
3612 * solib-pa64.c: Ditto.
3613 * solib-som.c: Ditto.
3615 2011-01-06 Tom Tromey <tromey@redhat.com>
3619 * python/python.c (GdbMethods): Add "newest_frame" method.
3620 * python/python-internal.h (gdbpy_newest_frame): Declare.
3621 * python/py-frame.c (gdbpy_newest_frame): New function.
3623 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3625 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
3626 * jit.c (jit_debug): New variable.
3627 (show_jit_debug): New function.
3628 (struct target_buffer): Use ULONGEST.
3629 (bfd_open_from_target_memory): Likewise.
3630 (jit_register_code, jit_inferior_init): Add debug output.
3631 (_initialize_jit): Register "debug jit" command.
3633 2011-01-06 Tom Tromey <tromey@redhat.com>
3635 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
3636 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
3639 2011-01-06 Tom Tromey <tromey@redhat.com>
3641 * python/py-frame.c (frapy_block): Use get_frame_block.
3643 2011-01-06 Joel Brobecker <brobecker@adacore.com>
3645 Do not stop on SIGPRIO signals by default
3646 * infrun.c (_initialize_infrun): Unset signal_stop and
3647 signal_print for TARGET_SIGNAL_PRIO.
3649 2011-01-06 Joel Brobecker <brobecker@adacore.com>
3651 * ada-tasks.c: Fix style violation in comment.
3653 2011-01-06 Joel Brobecker <brobecker@adacore.com>
3655 * linespec.c (decode_compound, find_method): Remove trailing \n
3656 at end of error string.
3657 * solib-irix.c (irix_current_sos): Likewise.
3658 * varobj.c (uninstall_variable): Likewise.
3660 2011-01-06 Joel Brobecker <brobecker@adacore.com>
3662 * copyright.py: New script.
3663 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
3664 Launch emacs without exec'ing. Call copyright.py afterwards.
3666 2011-01-05 Michael Snyder <msnyder@vmware.com>
3668 * addrmap.c: Shorten lines of >= 80 columns.
3669 * arch-utils.c: Ditto.
3670 * arch-utils.h: Ditto.
3672 * ax-general.c: Ditto.
3674 * blockframe.c: Ditto.
3675 * breakpoint.c: Ditto.
3676 * buildsym.c: Ditto.
3678 * c-typeprint.c: Ditto.
3680 * coffread.c: Ditto.
3684 * cp-namespace.c: Ditto.
3685 * cp-support.c: Ditto.
3686 * dbug-rom.c: Ditto.
3691 * dictionary.c: Ditto.
3693 * doublest.c: Ditto.
3694 * dwarf2-frame.c: Ditto.
3695 * dwarf2expr.c: Ditto.
3696 * dwarf2loc.c: Ditto.
3697 * dwarf2read.c: Ditto.
3700 * event-loop.c: Ditto.
3701 * event-loop.h: Ditto.
3702 * exceptions.h: Ditto.
3704 * expprint.c: Ditto.
3705 * expression.h: Ditto.
3707 * f-valprint.c: Ditto.
3709 * frame-base.c: Ditto.
3710 * frame-unwind.c: Ditto.
3711 * frame-unwind.h: Ditto.
3715 * gdb-stabs.h: Ditto.
3716 * gdb_assert.h: Ditto.
3717 * gdb_dirent.h: Ditto.
3718 * gdb_obstack.h: Ditto.
3720 * gdbtypes.c: Ditto.
3721 * gdbtypes.h: Ditto.
3722 * inf-ttrace.c: Ditto.
3727 * inline-frame.h: Ditto.
3728 * language.c: Ditto.
3729 * language.h: Ditto.
3730 * libunwind-frame.c: Ditto.
3731 * libunwind-frame.h: Ditto.
3732 * linespec.c: Ditto.
3733 * linux-nat.c: Ditto.
3734 * linux-nat.h: Ditto.
3735 * linux-thread-db.c: Ditto.
3736 * machoread.c: Ditto.
3737 * macroexp.c: Ditto.
3738 * macrotab.c: Ditto.
3741 * mdebugread.c: Ditto.
3746 * objfiles.c: Ditto.
3747 * objfiles.h: Ditto.
3749 * p-typeprint.c: Ditto.
3750 * p-valprint.c: Ditto.
3752 * printcmd.c: Ditto.
3753 * proc-events.c: Ditto.
3755 * progspace.c: Ditto.
3756 * progspace.h: Ditto.
3757 * psympriv.h: Ditto.
3760 * regcache.c: Ditto.
3761 * regcache.h: Ditto.
3762 * remote-fileio.c: Ditto.
3764 * ser-mingw.c: Ditto.
3766 * ser-unix.c: Ditto.
3769 * solib-frv.c: Ditto.
3770 * solib-irix.c: Ditto.
3771 * solib-osf.c: Ditto.
3772 * solib-pa64.c: Ditto.
3773 * solib-som.c: Ditto.
3774 * solib-sunos.c: Ditto.
3775 * solib-svr4.c: Ditto.
3776 * solib-target.c: Ditto.
3780 * stabsread.c: Ditto.
3781 * stabsread.c: Ditto.
3784 * symfile-mem.c: Ditto.
3790 * target-descriptions.c: Ditto.
3791 * target-memory.c: Ditto.
3794 * terminal.h: Ditto.
3797 * tracepoint.c: Ditto.
3798 * tracepoint.h: Ditto.
3802 * user-regs.c: Ditto.
3803 * user-regs.h: Ditto.
3805 * valarith.c: Ditto.
3807 * valprint.c: Ditto.
3808 * valprint.h: Ditto.
3813 * xcoffread.c: Ditto.
3814 * xcoffsolib.c: Ditto.
3815 * xcoffsolib.h: Ditto.
3816 * xml-syscall.c: Ditto.
3817 * xml-tdesc.c: Ditto.
3819 2011-01-05 Michael Snyder <msnyder@vmware.com>
3821 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
3822 * cli/cli-decode.c: Ditto.
3823 * cli/cli-dump.c: Ditto.
3824 * cli/cli-logging.c: Ditto.
3825 * cli/cli-script.c: Ditto.
3826 * cli/cli-setshow.c: Ditto.
3827 * common/signals.c: Ditto.
3828 * mi/mi-cmd-break.c: Ditto.
3829 * mi/mi-cmd-disas.c: Ditto.
3830 * mi/mi-cmd-stack.c: Ditto.
3831 * mi/mi-cmd-var.c: Ditto.
3832 * mi/mi-cmds.c: Ditto.
3833 * mi/mi-common.h: Ditto.
3834 * mi/mi-console.c: Ditto.
3835 * mi/mi-interp.c: Ditto.
3836 * mi/mi-main.c: Ditto.
3837 * osf-share/cma_attr.c: Ditto.
3838 * osf-share/cma_deb_core.h: Ditto.
3839 * osf-share/cma_debug_client.h: Ditto.
3840 * osf-share/cma_handle.h: Ditto.
3841 * osf-share/cma_mutex.h: Ditto.
3842 * osf-share/cma_stack_int.h: Ditto.
3843 * osf-share/cma_tcb_defs.h: Ditto.
3844 * python/py-auto-load.c: Ditto.
3845 * python/py-breakpoint.c: Ditto.
3846 * python/py-cmd.c: Ditto.
3847 * python/py-frame.c: Ditto.
3848 * python/py-objfile.c: Ditto.
3849 * python/py-param.c: Ditto.
3850 * python/py-progspace.c: Ditto.
3851 * python/py-symbol.c: Ditto.
3852 * python/py-value.c: Ditto.
3853 * python/python-internal.h: Ditto.
3854 * python/python.c: Ditto.
3855 * tui/tui-data.c: Ditto.
3856 * tui/tui-disasm.c: Ditto.
3857 * tui/tui-hooks.c: Ditto.
3858 * tui/tui-io.c: Ditto.
3859 * tui/tui-layout.c: Ditto.
3860 * tui/tui-regs.c: Ditto.
3861 * tui/tui-source.c: Ditto.
3862 * tui/tui-stack.c: Ditto.
3863 * tui/tui-win.c: Ditto.
3864 * tui/tui-windata.c: Ditto.
3865 * tui/tui-winsource.c: Ditto.
3867 2011-01-05 Joel Brobecker <brobecker@adacore.com>
3869 * configure.ac, gdb.1: Copyright year update.
3871 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3873 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
3874 this_pc_in_block, morestack_msym and morestack_name. Check for
3875 "__morestack" minimal symbol there.
3877 2011-01-03 Joel Brobecker <brobecker@adacore.com>
3879 * symfile.c (find_sym_fns): Add call to dont_repeat.
3881 2011-01-01 Joel Brobecker <brobecker@adacore.com>
3883 Copyright year update in most files (performed by copyright.sh).
3885 2011-01-01 Joel Brobecker <brobecker@adacore.com>
3887 * top.c (print_gdb_version): Update copyright year in version output.
3889 For older changes see ChangeLog-2010.
3895 version-control: never