1 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
4 simplify, using regcache_cooked_read.
6 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
9 (regcache_raw_read_unsigned, regcache_raw_read_signed)
10 (regcache_raw_read_unsigned, regcache_raw_read_part)
11 (regcache_cooked_read, regcache_cooked_read_signed)
12 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
13 (regcache_cooked_read_ftype): Change return to enum
15 * regcache.c: Include exceptions.h
16 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
17 (do_cooked_read): Change return to enum register_status. Always
18 forward to regcache_cooked_read.
19 (regcache_raw_read): Change return to enum register_status. If
20 the register is not REG_VALID, memset the buffer. Return the
22 (regcache_raw_read_signed): Handle non-REG_VALID registers and
23 return the register's status.
24 (regcache_raw_read_unsigned): Ditto.
25 (regcache_cooked_read): Change return to enum register_status.
26 Assert that with read-only regcaches, the register's status must
27 be known. If the regcache is read-only, and the register is not
28 REG_VALID, memset the buffer. Return the register's status.
29 (regcache_cooked_read_signed): Change return to enum
30 register_status. Handle non-REG_VALID registers and return the
32 (regcache_cooked_read_unsigned): Change return to enum
33 register_status. Handle non-REG_VALID registers and return the
35 (regcache_xfer_part, regcache_raw_read_part)
36 (regcache_cooked_read_part): Change return to enum
37 register_status. Return the register's status.
38 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
40 (regcache_dump): Handle unavailable cooked registers.
41 * frame.c (do_frame_register_read): Adjust interface to match
42 regcache_cooked_read_ftype.
43 * gdbarch.sh (pseudo_register_read): Change return to enum
45 * gdbarch.h, gdbarch.c: Regenerate.
47 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
49 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
50 register_status. If reading a raw register indicates the raw
51 register is not valid, return the raw register's status,
52 otherwise, return REG_VALID.
53 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
54 register_status. Handle non-REG_VALID raw registers and return
55 the register's status.
56 * arm-tdep.c (arm_neon_quad_read)
57 (arm_pseudo_read): Change return to enum register_status. Handle
58 non-REG_VALID raw registers and return the register's status.
59 * avr-tdep.c (avr_pseudo_register_read): Ditto.
60 * frv-tdep.c (frv_pseudo_register_read): Ditto.
61 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
62 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
63 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
65 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
66 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
67 (m32c_part_write, m32c_cat_read, m32c_cat_write)
68 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
69 (m32c_pseudo_register_read): Change return to enum
70 register_status. Adjust.
71 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
72 enum register_status. Return the register's status.
73 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
74 register_status. Return the register's status.
75 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
76 * mips-tdep.c (mips_pseudo_register_read): Ditto.
77 * mt-tdep.c (mt_pseudo_register_read): Ditto.
78 * rs6000-tdep.c (move_ev_register_func): New typedef.
79 (e500_move_ev_register): Use it. Change return to enum
80 register_status. Return the register's status.
81 (do_regcache_raw_read): New function.
82 (do_regcache_raw_write): New function.
83 (e500_pseudo_register_read): Change return to enum
84 register_status. Return the register's status. Use
86 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
87 (dfp_pseudo_register_read): Change return to enum register_status.
88 Return the register's status.
89 (vsx_pseudo_register_read): Ditto.
90 (efpr_pseudo_register_read): Ditto.
91 (rs6000_pseudo_register_read): Ditto.
92 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
93 register_status. Return the register's status.
94 * sh64-tdep.c (pseudo_register_read_portions): New function.
95 (sh64_pseudo_register_read): Change return to enum
96 register_status. Use pseudo_register_read_portions. Return the
98 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
99 register_status. Return the register's status.
100 * sh-tdep.c (pseudo_register_read_portions): New function.
101 (sh_pseudo_register_read): Change return to enum register_status.
102 Use pseudo_register_read_portions. Return the register's status.
103 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
104 enum register_status. Return the register's status.
105 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
106 * spu-tdep.c (spu_pseudo_register_read_spu)
107 (spu_pseudo_register_read): Ditto.
108 * xtensa-tdep.c (xtensa_register_read_masked)
109 (xtensa_pseudo_register_read): Ditto.
110 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
112 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
114 * python/py-value.c (valpy_getitem): Fix formatting of error function
117 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
119 ARI fixes: Add missing internationalization markups throughout
121 * darwin-nat-info.c: Ditto.
124 * mi/mi-main.c: Ditto.
126 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
128 ARI fixes: Add missing internationalization markups throughout
131 * cp-name-parser.y: Ditto.
137 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
139 ARI fixes: Messages should have no trailing new lines.
140 * darwin-nat.c (mach_check_error): Remove trailing new line from
141 warning function call message.
142 * record.c (bfdcore_read): Idem for error call.
144 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
146 * common/signals.c (target_signal_from_host): Add _ markup to error
147 function call message.
148 (target_signal_to_host): Add _ markup and remove trailing new line
149 from warning call message.
150 (target_signal_from_command): Add _ markup to error function call
153 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
157 * python/python.c (gdbpy_write): Accept a stream argument and
158 operate to the appropriate stream.
159 (gdbpy_flush): Likewise.
160 (_initialize_python): Add stream constants.
161 (finish_python_initialization): Add GdbOutputErrorFile class.
163 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
165 * MAINTAINERS: Add myself as a write-after-approval maintainer.
167 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
169 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
170 to store_signed_integer. Add debug message when relocating CALL
171 instructions. Fix formatting of debug message.
172 * i386-tdep.c (i386_relocate_instruction): Ditto.
174 2011-03-17 Joel Brobecker <brobecker@gnat.com>
176 * target.h (struct target_ops): Remove to_lookup_symbol field.
177 (target_lookup_symbol): Delete macro.
178 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
179 (update_current_target, setup_target_debug): Remove handling
180 of to_lookup_symbol target_ops field.
181 * ada-tasks.c (get_known_tasks_addr): Remove use of
182 target_lookup_symbol.
183 * coffread.c (coff_symtab_read): Likewise.
184 * dbxread.c (read_dbx_symtab): Ditto.
186 2011-03-17 Joel Brobecker <brobecker@gnat.com>
189 * configure.ac: Add getthrds declaration check.
190 * configure, config.in: Regenerate.
191 * aix-thread.c (getthrds): Declare only if not already declared
192 in procinfo.h. More declaration out of get_signaled_thread to
195 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
197 * python/py-symtab.c: Populate symtab_object_methods,
199 (stpy_is_valid): New function.
200 (salpy_is_valid): Ditto.
201 * python/py-symbol.c: Declare symbol_object_methods. Populate.
202 (sympy_is_valid): New function.
203 * python/py-objfile.c: Declare objfile_object_methods. Populate.
204 (objfpy_is_valid): New function.
205 * python/py-inferior.c: Populate inferior_object_methods.
206 (infpy_is_valid): New function.
207 * python/py-infthread.c: Populate thread_object_methods.
208 (thpy_is_valid): New function.
209 * python/py-block.c: Declare block_object_methods. Populate. Declare
210 block_iterator_object_methods. Populate.
211 (blpy_is_valid): New function.
212 (blpy_iter_is_valid): Ditto.
214 2011-03-16 Keith Seitz <keiths@redhat.com>
216 * linespec.c (find_methods): Canonicalize NAME before looking
218 (name_end): New function.
219 (keep_name_info): New function.
220 (decode_line_1): Use keep_name_info.
221 (decode_compound): Likewise.
222 * cli/cli-utils.h (remove_trailing_whitespace): New function.
223 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
226 * linespec.c (locate_first_half): Keep overload information, too.
227 (decode_compound): Use a string to represent break characters
229 If P points to a break character, do not increment it.
230 For C++ and Java, keep overload information and relevant keywords.
231 If we cannot find a symbol, search the minimal symbols.
234 * linespec.c (decode_compound): Rename SAVED_ARG to
236 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
238 Pass a valid block to lookup_symbol.
239 (lookup_prefix_sym): Likewise.
240 (find_method): Construct search name based on SYM_CLASS instead
242 * psymtab.c (lookup_partial_symbol): Add language parameter.
243 (lookup_symbol_aux_psymtabs): Likewise.
244 Don't assume that the psymtab we found was the right one. Search
245 for the desired symbol in the symtab to be certain.
246 (psymtab_search_name): New function.
247 (lookup_partial_symbol): Use psymtab_search_name.
248 Add language parameter.
249 (read_symtabs_for_function): Add language parameter and pass to
250 lookup_partial_symbol.
251 (find_symbol_file_from_partial): Likewise.
253 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
256 * dwarf2read.c (noop_record_line): New function.
257 (dwarf_decode_lines): Ignore line tables for GCd functions.
259 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
261 Fix ARI warnings about new lines at the end of messages, which
262 are unneeded as there is a new line added at the end of the message
264 * darwin-nat.c (darwin_stop_inferior): Ditto.
265 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
266 * dfp.c (decimal_to_number): Ditto.
267 * exec.c (print_section_info): Ditto.
268 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
269 * osdata.c (get_osdata): Ditto.
270 * record.c (bfdcore_write): Ditto.
271 * remote-mips.c (mips_readchar): Ditto.
272 * remote.c (read_ptid): Ditto.
273 * ser-mingw.c (ser_windows_raw): Ditto.
274 * tracepoint.c (add_local_symbols): Ditto.
275 * windows-nat.c (fake_create_process): Ditto.
277 2011-03-16 Tom Tromey <tromey@redhat.com>
279 * tracepoint.c (stop_tracing): Don't declare.
280 * event-top.c (after_char_processing_hook): Add `(void)'.
282 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
284 * NEWS: Add Parameter sub-classing description.
286 2011-03-16 Kai Tietz <ktietz@redhat.com>
288 * MAINTAINERS: Update my e-mail address.
290 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
292 * MAINTAINERS: Add myself for write after approval privileges.
294 2011-03-15 Michael Snyder <msnyder@vmware.com>
296 * frame.c (find_frame_sal): Assert sym is not null.
298 * dbxread.c (process_one_symbol): Assert 'name' is not null.
300 * objc-lang.c (selectors_info): Check strchr for null result.
302 * stabsread.c (define_symbol): Guard against bad stabstring input.
304 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
306 Remove trailing spaces and tabulations from pascal language
313 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
315 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
316 than LOW. Comment it.
317 (read_partial_die): Call complaint for inappropriate zero LOWPC or
318 HIGHPC not strictly higher than LOWPC.
320 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
322 Fix formatting of function declarations returning a pointer in
324 * varobj.c (varobj_add_child): Ditto.
325 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
326 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
328 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
330 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
331 for the "generic" vector ABI used with GCC 4.3 and later.
332 (ppc64_sysv_abi_return_value): Likewise.
334 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
336 * infcall.c (call_function_by_hand): Function return value is
337 always a non_lval, even when using struct_return.
339 2011-03-15 Pedro Alves <pedro@codesourcery.com>
341 * printcmd.c (ALL_DISPLAYS_SAFE): New.
342 (map_display_numbers): New.
343 (do_delete_display): New.
344 (undisplay_command): Use map_display_numbers.
345 (do_enable_disable_display): New.
346 (enable_disable_display_command): New function.
347 (enable_display): Delete.
348 (enable_display_command): New.
349 (disable_display_command): Reimplement.
350 (_initialize_printcmd): Adjust "enable display" command to use
351 `enable_display_command' as callback.
353 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
355 * NEWS: Add Python breakpoint 'stop' operation.
357 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
359 * NEWS: Delete duplicate entry. Fix typo.
361 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
363 Fix ARI warning about function names in first column.
364 Put prototype declaration on same line as return type.
367 * python/py-stopevent.h: Ditto.
368 For long function names, split parameters to
369 allow function name on same line as return type.
370 * solib-pa64.c: Ditto.
373 For long function declaration, use single line.
374 * hppa-tdep.h: Ditto.
377 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
379 * python/python.h: Declare gdbpy_should_stop and
380 gdbpy_breakpoint_has_py_cond.
381 * python/python.c: Add python.h to includes. Remove python.h from
382 HAVE_PYTHON definition
383 (gdbpy_should_stop): New dummy function.
384 (gdbpy_breakpoint_has_py_cond): New dummy function.
385 * python/py-breakpoint.c (bppy_init): Rewrite to allow
386 sub-classing capabilities.
387 (gdbpy_should_stop): New function.
388 (gdbpy_breakpoint_has_py_cond): New function.
389 (local_setattro): New function.
390 * breakpoint.c (condition_command): Add check for Python 'stop'
392 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
393 operation function as part of stop/continue tests.
395 2011-03-14 Tom Tromey <tromey@redhat.com>
398 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
399 (needs_frame_dwarf_call): Likewise.
401 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
403 Fix ARI warning about functions without parameters that do not
405 * breakpoint.c (all_tracepoints): Replace () by (void).
406 * f-exp.y (match_string_literal): Ditto.
408 * m2-exp.y (yylex): Ditto.
409 * mep-tdep.c (current_me_module): Ditto.
410 (current_options): Ditto.
411 (current_cop_data_bus_width): Ditto.
412 (current_cr_names): Ditto.
413 (current_cr_is_float): Ditto.
414 (current_ccr_names): Ditto.
415 * objc-exp.y (yylex): Ditto.
416 * p-exp.y (yylex): Ditto.
417 * remote.c (send_interrupt_sequence): Ditto.
418 * tracepoint.c (current_trace_status): Ditto.
419 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
420 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
422 2011-03-11 Michael Snyder <msnyder@vmware.com>
424 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
425 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
426 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
427 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
428 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
430 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
431 (delete_async_event_handler): Ditto.
433 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
435 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
437 * top.c (set_verbose): Assert showcmd was found.
439 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
441 * xtensa-tdep.c (warning_once): Correct style issues.
443 2011-03-11 Yao Qi <yao@codesourcery.com>
445 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
447 2011-03-11 Andreas Schwab <schwab@redhat.com>
449 * common/aclocal.m4: Remove.
451 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
453 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
454 (xtensa_write_register, xtensa_read_register): Likewise.
455 (xtensa_hextochar): Removed.
456 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
458 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
460 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
461 (xtensa_call0_frame_cache_t): Update comments. New fields added.
462 (xtensa_alloc_frame_cache): Add initialization for new fields.
463 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
464 (warning_once): New function.
465 (xtensa_insn_kind): New item c0opc_and.
466 (call0_classify_opcode): Add the case for AND instruction.
467 (call0_track_op): Change arguments. New local variable litbase.
468 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
469 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
471 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
472 (call0_analyze_prologue): Update the comments. Change arguments.
473 Add the variety of updates to handle extended prologues, which now can
474 conduct dynamic stack adjustments.
475 (call0_frame_cache): Likewise.
476 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
477 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
479 2011-03-10 Michael Snyder <msnyder@vmware.com>
481 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
482 (cmd_qtframe): Ditto.
483 (cmd_qtbuffer): Ditto.
484 (cmd_bigqtbuffer): Ditto.
486 2011-03-10 Tom Tromey <tromey@redhat.com>
488 * tracepoint.c (trace_actions_command): Update.
489 * thread.c (thread_apply_command): Update.
490 * reverse.c (delete_bookmark_command): Update.
491 (bookmarks_info): Update.
492 * printcmd.c (undisplay_command): Update.
493 * memattr.c (mem_enable_command): Update.
494 (mem_disable_command): Update.
495 (mem_delete_command): Update.
496 * inferior.c (detach_inferior_command): Update.
497 (kill_inferior_command): Update.
498 (remove_inferior_command): Update.
499 * cli/cli-utils.h (struct get_number_or_range_state): New.
500 (init_number_or_range): Declare.
501 (get_number_or_range): Update.
502 * cli/cli-utils.c (init_number_or_range): New function.
503 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
505 (number_is_in_list): Update.
506 * breakpoint.h (get_tracepoint_by_number): Update.
507 * breakpoint.c (map_breakpoint_numbers): Update for change to
509 (find_location_by_number): Use get_number, not
511 (trace_pass_set_count): New function.
512 (trace_pass_command): Update for change to get_number_or_range.
514 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
517 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
519 * python/py-param.c (add_setshow_generic): Add set/show callback
520 parameters. Register Python object context.
521 (get_show_value): New function.
522 (get_set_value): New function.
523 (call_doc_function): New function.
524 (get_doc_string): Move behind get_show_value/get_set_value.
526 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
528 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
530 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
532 * xtensa-tdep.c (xtensa_read_register): Add comment.
533 (xtensa_write_register): Likewise.
534 (xtensa_hextochar): Add comment and update to match coding conventions.
535 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
536 (execute_l32e, execute_s32e, execute_code): Update comments.
537 (xtensa_exception_handler_t): Update to match coding conventions.
538 (xtensa_insn_kind): Likewise.
540 2011-03-09 Michael Snyder <msnyder@vmware.com>
542 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
544 2011-03-09 Pedro Alves <pedro@codesourcery.com>
546 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
548 2011-03-09 Tom Tromey <tromey@redhat.com>
550 * thread.c (restore_selected_frame): Handle frame_level == -1.
551 (make_cleanup_restore_current_thread): Use
552 get_selected_frame_if_set.
553 * frame.h (get_selected_frame_if_set): Declare.
554 * frame.c (get_selected_frame_if_set): New function.
556 2011-03-09 Pedro Alves <pedro@codesourcery.com>
558 * cli/cli-cmds.c (shell_escape): Use lbasename.
559 * coffread.c (coff_start_symtab): Constify parameter.
560 (complete_symtab): Constify `name' parameter.
561 (coff_symtab_read): Constify `filestring' local.
562 (coff_getfilename): Constify return and `result' local.
564 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
565 * linux-fork.c (info_checkpoints_command): Use lbasename.
566 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
567 * minsyms.c (lookup_minimal_symbol): Use lbasename.
568 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
569 * procfs.c (procfs_make_note_section): Use lbasename.
570 * tui/tui-io.c (printable_part): Constity return and parameter.
572 (print_filename): Constify parameters, and local `s'.
573 (tui_rl_display_match_list): Constify local `temp'.
575 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
578 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
579 Fix DWARF-3+ DW_AT_accessibility default assumption.
580 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
581 cu->header.version >= 3.
583 2011-03-09 Yao Qi <yao@codesourcery.com>
585 * common/Makefile.in: Remove.
586 * common/configure: Remove.
587 * common/configure.ac: Remove.
589 2011-03-09 Yao Qi <yao@codesourcery.com>
592 2011-02-11 Yao Qi <yao@codesourcery.com>
594 * common/Makefile.in: Add copyright header.
596 2011-02-11 Yao Qi <yao@codesourcery.com>
598 * Makefile.in: Remove signals.o from COMMON_OBS. Link
600 * configure.ac: Add common to sub dir.
601 * configure: Regenerate.
603 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
605 * xtensa-tdep.c (call0_ret): New function.
606 (xtensa_skip_prologue): Speed up analysis.
608 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
610 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
611 while executing MI command -data-list-changed-registers.
613 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
615 * xtensa-tdep.c (xtensa_read_register): New function.
616 (xtensa_write_register): New function.
617 (xtensa_find_register_by_name): New function.
618 (xtensa_windowed_frame_cache): Update comments in type description.
619 (xtensa_frame_cache): Likewise.
620 (xtensa_window_interrupt_insn): New function.
621 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
622 (xtensa_insn_kind): Add new instructions.
623 (rwx_special_register): New function.
624 (call0_classify_opcode): Add new instructions to the analysis.
625 (a0_saved, a7_saved, a11_saved): New variables.
626 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
627 (execute_l32e): New function.
628 (execute_s32e): New function.
629 (xtensa_exception_handler_t): New type.
630 (execute_code): New function.
631 (xtensa_window_interrupt_frame_cache): New function to conduct frame
632 analysis for Xtensa Window Exception handlers.
634 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
636 * xtensa-tdep.c (TX_PS): New.
637 (windowing_enabled): Update to count for Call0 ABI.
638 (xtensa_hextochar): New.
639 (xtensa_init_reggroups): Make algorithm generic.
640 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
642 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
644 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
646 2011-03-08 Michael Snyder <msnyder@vmware.com>
648 * i386-tdep.c (i386_follow_jump): Check return value of
650 (i386_analyze_struct_return): Ditto.
651 (i386_skip_probe): Ditto.
652 (i386_match_insn): Ditto.
653 (i386_skip_noop): Ditto.
654 (i386_analyze_frame_setup): Ditto.
655 (i386_analyze_register_saves): Ditto.
656 (i386_skip_prologue): Ditto.
657 (i386_skip_main_prologue): Ditto.
659 * target.c (read_whatever_is_readable): Fix memory leak.
661 * i386-tdep.c (i386_process_record): Document fall through.
663 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
665 Fix DWARF-3+ DW_AT_accessibility default assumption.
666 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
667 cu->header.version >= 3.
669 2011-03-08 Pedro Alves <pedro@codesourcery.com>
671 * remote.c (remote_check_symbols): Skip if the target has no
674 2011-03-08 Joel Brobecker <brobecker@adacore.com>
676 * target.c (read_whatever_is_readable): Reformat comment,
677 with a minor typo fix. Minor reformatting of the code.
679 2011-03-08 Yao Qi <yao@codesourcery.com>
681 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
682 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
683 Use cached result instead of calling displaced_in_arm_mode again.
684 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
685 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
686 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
687 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
688 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
689 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
690 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
691 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
692 (cleanup_block_load_pc, copy_block_xfer): Likewise.
693 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
694 (arm_catch_kernel_helper_return): Likewise.
695 * gdb/arm-tdep.h : Update function declarations.
697 2011-03-07 Michael Snyder <msnyder@vmware.com>
699 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
701 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
703 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
705 * elfread.c (elf_symtab_read): Stop memory leak.
707 * main.c (captured_main): Fix memory leak.
709 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
711 * ada-lang.c (compare_names): Call is_name_suffix with string1
714 2011-03-07 Tom Tromey <tromey@redhat.com>
716 * xcoffread.c (xcoff_sym_fns): Update.
717 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
718 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
719 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
720 (symbol_file_add_with_addrs_or_offsets): Likewise.
721 (reread_symbols): Handle OBJF_PSYMTABS_READ.
722 * somread.c (som_sym_fns): Update.
723 * psymtab.h (require_partial_symbols): Declare.
724 * psymtab.c (require_partial_symbols): New function.
725 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
726 (ALL_OBJFILE_PSYMTABS): Undef.
727 (ALL_PSYMTABS): Move from psympriv.h.
728 (lookup_partial_symtab, find_pc_sect_psymtab)
729 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
730 (find_last_source_symtab_from_partial)
731 (forget_cached_source_info_partial)
732 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
733 (expand_partial_symbol_tables, read_psymtabs_with_filename)
734 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
735 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
736 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
737 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
738 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
739 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
740 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
742 * mipsread.c (ecoff_sym_fns): Update.
743 * machoread.c (macho_sym_fns): Update.
744 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
745 (read_psyms): New function.
746 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
747 (elf_sym_fns_lazy_psyms): New global.
748 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
749 dwarf2_build_psymtabs.
750 * dbxread.c (aout_sym_fns): Update.
751 * coffread.c (coff_sym_fns): Update.
753 2011-03-07 Tom Tromey <tromey@redhat.com>
755 * infrun.c (print_exited_reason): Include inferior id and pid in
758 2011-03-07 Tom Tromey <tromey@redhat.com>
760 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
762 (target_has_execution_1): Update.
763 (target_has_execution_current): Declare.
764 (target_has_execution): Call target_has_execution_current.
765 (default_child_has_execution): Update.
766 * target.c (default_child_has_execution): Add 'the_ptid'
768 (target_has_execution_1): Likewise.
769 (target_has_execution_current): New function.
770 (add_target): Update.
771 (init_dummy_target): Update.
772 * remote-m32r-sdi.c (m32r_has_execution): New function.
773 (init_m32r_ops): Use it.
774 * record.c (record_core_has_execution): Now static. Add
775 'the_ptid' parameter.
776 * inferior.c (have_live_inferiors): Don't save current thread.
777 Use target_has_execution_1.
779 2011-03-07 Yao Qi <yao@codesourcery.com>
781 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
783 2011-03-07 Joel Brobecker <brobecker@adacore.com>
785 * elfread.c (elf_symtab_read): Minor reformatting.
787 2011-03-07 Joel Brobecker <brobecker@adacore.com>
789 * objc-lang.c (selectors_info): Minor reformatting.
791 2011-03-07 Joel Brobecker <brobecker@adacore.com>
793 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
795 2011-03-07 Joel Brobecker <brobecker@adacore.com>
796 Michael Snyder <msnyder@vmware.com>
798 * ada-valprint.c (ada_val_print_array): Move the declaration of
799 "byte_order" and "elttype" inside the block where these variables
800 are actually used. Remove some special handling for the case
801 where "elttype" and "eltlen" are null. Replace by a comment
802 and a couple of assertion checks.
804 2011-03-05 Michael Snyder <msnyder@vmware.com>
806 * source.c (add_path): Replace semicolon at end of block.
807 * dwarf2expr.c (execute_stack_op): Ditto.
809 2011-03-05 Mike Frysinger <vapier@gentoo.org>
811 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
812 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
813 (bfin-*-*): Likewise.
815 2011-03-05 Michael Snyder <msnyder@vmware.com>
817 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
818 * mdebugread.c (parse_symbol): Ditto.
819 * parse.c (parse_exp_in_context): Ditto.
820 * source.c (add_path): Ditto.
821 * utils.c (gnu_debuglink_crc32): Ditto.
822 * varobj.c (variable_language): Ditto.
824 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
826 2011-03-04 Michael Snyder <msnyder@vmware.com>
828 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
830 * symfile.c (simple_overlay_update): Check for null return value
831 from lookup_minimal_symbol.
833 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
835 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
837 * eval.c (parse_and_eval_address_1): Remove function.
838 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
839 instead of parse_and_eval_address_1.
840 * value.h (parse_and_eval_address_1): Remove prototype.
842 2011-03-04 Michael Snyder <msnyder@vmware.com>
844 * remote.c (putpkt_binary): Document that case stmt falls through.
846 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
848 * breakpointc (print_it_typical): Move NULL check from here...
849 (print_bp_stop_message): ... to here.
851 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
853 * breakpoint.c (enable_command): Use break instead of continue,
854 and fill in a missing break.
855 (disable_command): Ditto.
857 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
859 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
860 (terminal_save_ours): Remove misleading comment.
861 (inflow_inferior_data_cleanup): Free ttystate.
862 (inflow_inferior_exit): Likewise.
863 (copy_terminal_info): Copy ttystate.
865 * serial.c (serial_copy_tty_state): New function.
866 * serial.h (serial_copy_tty_state): Add prototype.
867 (struct serial_ops): Add copy_tty_state callback.
868 * ser-base.c (ser_base_copy_tty_state): New function.
869 * ser-base.h (ser_base_copy_tty_state): Add prototype.
870 * ser-go32.c (dos_copy_tty_state): New function.
871 (dos_ops): Install copy_tty_state callback.
872 * ser-mingw.c (_initialize_ser_windows): Likewise.
873 * ser-pipe.c (_initialize_ser_pipe): Likewise.
874 * ser-unix.c (hardwire_copy_tty_state): New function.
875 (_initialize_ser_hardwire): Install it.
877 2011-03-04 Michael Snyder <msnyder@vmware.com>
879 * breakpoint.c (create_breakpoint): Add missing break statement.
881 Reverting this patch:
882 * infcall.c (call_function_by_hand): Add break statements for lint.
884 Reverting this patch:
885 * cli/cli-script.c (script_from_file): Add break for lint.
887 2011-03-04 Michael Snyder <msnyder@vmware.com>
889 * solib.c (reload_shared_libraries_1): Close memory leak.
891 2011-03-03 Tom Tromey <tromey@redhat.com>
894 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
897 2011-03-03 Michael Snyder <msnyder@vmware.com>
899 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
900 fields of struct 'st' to zero.
902 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
903 sal.pspace before calling set_current_source_symtab_and_line.
905 2011-03-03 Yao Qi <yao@codesourcery.com>
907 * Makefile.in (configure-common): Remove. Let Makefile
908 in dir common to rebuild itself.
909 (common/Makefile): Likewise.
911 2011-03-03 Joel Brobecker <brobecker@adacore.com>
913 * utils.c (parse_escape): Add i18n markup in error message.
915 2011-03-03 Yao Qi <yao@codesourcery.com>
917 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
919 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
920 (displaced_write_reg, displaced_read_reg): Likewise.
921 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
922 (cleanup_block_load_pc, copy_block_xfer): Likewise.
923 (cleanup_branch): Replace magic number 14 and 15 with
924 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
926 2011-03-02 Michael Snyder <msnyder@vmware.com>
928 * maint.c (maintenance_do_deprecate): No need to check for NULL.
930 * cli/cli-script.c (script_from_file): Add break for lint.
932 * mdebugread.c (parse_partial_symbols): Fix indent.
934 * target-descriptions.c (tdesc_gdb_type): No need to call
935 xstrdup, callee saves a copy.
937 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
939 * infcall.c (call_function_by_hand): Add break statements for lint.
941 * utils.c (parse_escape): Escape the escape char.
943 * python/py-inferior.c (build_inferior_list): Error out if
945 (gdbpy_inferiors): Error out if build_inferior_list fails.
947 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
950 * record.c (record_restore): Move printf to before error return.
952 2011-03-02 Yao Qi <yao@codesourcery.com>
954 * arm-tdep.h (struct displaced_step_closure): Add two new fields
955 is_thumb and insn_size.
956 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
957 on both ARM and Thumb mode.
958 (arm_process_displaced_insn): Set is_thumb and insn_size.
959 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
960 (arm_displaced_step_fixup): Likewise.
962 2011-03-01 Michael Snyder <msnyder@vmware.com>
964 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
966 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
968 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
970 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
972 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
975 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
976 which shadows function parameter.
978 * tracepoint.c (create_tsv_from_upload): Superfluous call
979 to xstrdup. Callee already calls xstrdup.
981 * linespec.c (decode_line_1): Remove unnecessary null check.
983 * tracepoint.c (scope_info): Fix mem leak, remove underused
986 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
987 superfluous null check.
989 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
990 (value_of_builtin_frame_fp_reg): Ditto.
992 * event-top.c (display_gdb_prompt): Remove superfluous null check.
994 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
997 * linespec.c (decode_line_1): Check for null before dereference.
999 * reverse.c (record_restore): Move null-check to before pointer
1002 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
1004 * objc-lang.c (selectors_info): Add explanitory comment.
1005 (classes_info): Ditto.
1007 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1009 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
1010 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
1011 versions of the trampoline. Handle Thumb vs. ARM addresses.
1012 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
1013 (arm_linux_init_abi): Install it.
1014 * arm-tdep.c (arm_psr_thumb_bit): Make global.
1015 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
1017 2011-02-28 Michael Snyder <msnyder@vmware.com>
1019 * ui-out.c (ui_out_field_core_addr): Make local char buffer
1020 a little bigger, to avoid possibility of an overflow.
1022 * breakpoint.c (breakpoint_adjustment_warning): Make local char
1023 buffers a little bigger, to avoid possibility of an overflow.
1025 * coffread.c (coff_getfilename): Add check to avoid overflow.
1027 * objc-lang.c (selectors_info): Add a small safety margin to
1029 (classes_info): Error out on too long REGEXP.
1031 * infrun.c (handle_inferior_event): Remove unused function call.
1033 * fork-child.c (fork_inferior): Remove ifdef'd code and
1036 * linux-thread-db.c (attach_thread): Discard unused value.
1038 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
1040 * remote.c (remote_get_noisy_reply): Discard unused value.
1041 (remote_vcont_resume): Ditto.
1042 (remote_stop_ns): Ditto.
1044 * linespec.c (decode_objc): Delete unused variable.
1046 * tui/tui-regs.c (tui_register_format): Delete unused variable.
1048 * dwarf2read.c (add_partial_symbol): Discard unused values.
1049 (read_base_type): Delete unused variable.
1051 * dbxread.c (read_dbx_symtab): Discard unused value.
1053 * eval.c (evaluate_subexp_standard): Delete unused variable,
1054 and discard unused values.
1056 * infcmd.c (_initialize_infcmd): Discard unused values.
1058 * stabsread.c (rs6000_builtin_type): Missing break statement.
1060 * dbxread.c (process_one_symbol): Discard unused value.
1062 * coffread.c (coff_end_symtab): Delete unused variable.
1064 * dwarf2read.c (dw2_get_file_names): Discard unused value.
1065 (dwarf2_add_typedef): Delete unused variable.
1066 (read_namespace): Ditto.
1067 (dwarf_decode_macros): Ditto.
1069 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
1071 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
1073 * p-valprint.c (pascal_val_print): Discard unused value.
1075 * utils.c (nquery): Call va_end before return;
1079 * proc-service.c (ps_plog): Call va_end before return.
1081 2011-02-28 Tom Tromey <tromey@redhat.com>
1083 * python/python.c (gdbpy_value_cst): New global.
1084 (_initialize_python): Initialize it.
1085 * python/python-internal.h (gdbpy_value_cst): Declare.
1086 * python/py-value.c (convert_value_from_python): Use
1089 2011-02-28 Michael Snyder <msnyder@vmware.com>
1091 * python/py-cmd.c (cmdpy_init): Fix memory leak.
1093 * breakpoint.c (catch_syscall_completer): Free malloced list.
1095 * jv-lang.c (java_primitive_type_from_name): Add missing break.
1097 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
1098 (lval_func_check_synthetic_pointer): Ditto.
1099 (lval_func_free_closure): Fix use-after-free.
1101 2011-02-28 Tom Tromey <tromey@redhat.com>
1103 * psymtab.c (expand_partial_symbol_tables): Use
1104 ALL_OBJFILE_PSYMTABS.
1106 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1108 * objc-lang.c (selectors_info): Error on too long REGEXP.
1110 2011-02-28 Michael Snyder <msnyder@vmware.com>
1112 * python/py-param.c (set_parameter_value): Add missing
1115 * linux-record.c (record_linux_system_call): Add missing
1118 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1120 * breakpoint.c (print_one_breakpoint_location): Remove unused
1121 argument PRINT_ADDRESS_BITS. Update callers.
1122 (print_one_breakpoint): Likewise.
1124 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1126 * breakpoint.c (wrap_indent_at_field): New function.
1127 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
1128 Allocate ui_stream locally instead of using STB argument.
1129 (print_one_breakpoint_location): Update call.
1130 * ui-out.c (ui_out_query_field): New function.
1131 * ui-out.h (ui_out_query_field): Add prototype.
1133 2011-02-28 Joel Brobecker <brobecker@adacore.com>
1135 From Michael Snyder <msnyder@vmware.com>
1136 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
1138 2011-02-27 Michael Snyder <msnyder@vmware.com>
1140 * objc-lang.c (selectors_info): Prevent string overrun.
1142 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
1145 * symtab.c (rbreak_command): Move variable 'file_name' to
1148 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
1149 param with a local variable of the same name.
1151 2011-02-27 Michael Snyder <msnyder@vmware.com>
1153 * value.c (value_from_history_ref): New function.
1154 * value.h (value_from_history_ref): Export.
1155 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
1156 to parse value history references.
1157 * cli/cli-utils.h (get_number_trailer): Update comment.
1159 2011-02-27 Michael Snyder <msnyder@vmware.com>
1161 * inferior.c (detach_inferior_command): Use get_number_or_range.
1162 (kill_inferior_command): Ditto.
1163 (remove_inferior_command): Ditto.
1164 (initialize_inferiors): Make command names plural.
1165 Update help strings.
1167 2011-02-27 Michael Snyder <msnyder@vmware.com>
1169 * darwin-nat-info.c: Fix comment typo.
1170 * dwarf2expr.h: Ditto.
1171 * fbsd-nat.c: Ditto.
1172 * fbsd-nat.h: Ditto.
1173 * frame-unwind.h: Ditto.
1175 * hppa-hpux-tdep.c: Ditto.
1176 * i386-linux-nat.c: Ditto.
1177 * linux-nat.c: Ditto.
1178 * nbsd-nat.c: Ditto.
1179 * nbsd-nat.h: Ditto.
1180 * ppc-linux-tdep.c: Ditto.
1183 * tui/tui-winsource.c: Ditto.
1185 2011-02-26 Michael Snyder <msnyder@vmware.com>
1187 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
1189 * maint.c (maintenance_do_deprecate): Plug a memory leak.
1191 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
1192 with a local variable of the same name.
1194 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
1195 param with a local variable of the same name.
1196 (i387_supply_xsave): Ditto.
1198 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
1199 that it does not shadow a function parameter.
1201 * i386-nat.c (i386_length_and_rw_bits): Document that case
1202 statement is meant to fall through.
1204 * expprint.c (dump_subexp_body_standard): Document that case
1205 statement is meant to fall through.
1207 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
1208 dead if statement. Condition can't be false.
1210 2011-02-25 Michael Snyder <msnyder@vmware.com>
1212 * arm-tdep.c: Fix typos in comments.
1213 * bsd-uthread.c: Ditto.
1214 * completer.c: Ditto.
1216 * cp-namespace.c: Ditto.
1217 * cp-support.c: Ditto.
1218 * cris-tdep.c: Ditto.
1220 * dwarf2read.c: Ditto.
1222 * gdbtypes.h: Ditto.
1223 * inferior.h: Ditto.
1224 * mdebugread.c: Ditto.
1225 * mips-tdep.c: Ditto.
1226 * ppc-linux-nat.c: Ditto.
1227 * ppc-linux-tdep.c: Ditto.
1228 * printcmd.c: Ditto.
1229 * sol-thread.c: Ditto.
1230 * solib-frv.c: Ditto.
1232 * sparc64-tdep.c: Ditto.
1233 * spu-tdep.c: Ditto.
1234 * stabsread.c: Ditto.
1239 * python/py-block.c: Ditto.
1240 * python/py-symbol.c: Ditto.
1241 * python/py-symtab.c: Ditto.
1242 * python/py-value.c: Ditto.
1243 * tui/tui-win.c: Ditto.
1245 2011-02-25 Michael Snyder <msnyder@vmware.com>
1247 * inferior.c (print_inferior): Accept a string instead of an int
1248 for requested_inferiors, and use get_number_or_range to parse it.
1249 (info_inferiors_command): Pass args string to print_inferior.
1250 (initialize_inferiors): Change help string for info inferiors.
1251 * inferior.h (print_inferior): Export prototype change.
1253 2011-02-25 Tom Tromey <tromey@redhat.com>
1255 * common/ax.def (invalid2): Set to 0x31.
1257 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1259 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
1261 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
1263 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
1265 2011-02-24 Michael Snyder <msnyder@vmware.com>
1267 * Makefile.in (clean): Make clean should remove generated files
1268 observer.h and observer.inc.
1270 2011-02-24 Joel Brobecker <brobecker@adacore.com>
1272 Revert the following patch (not approved yet):
1273 2011-02-21 Hui Zhu <teawater@gmail.com>
1274 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
1275 * ax-gdb.c (gen_printf_expr_callback): New function.
1276 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
1277 * ax-general.c (ax_memcpy): New function.
1278 (ax_print): Handle "printf".
1280 * ax.h (ax_memcpy): Forward declare.
1281 * common/ax.def (invalid2): Removed.
1282 (printf): New entry.
1283 * printcmd.c (printcmd.h): New include.
1284 (string_printf): New function.
1285 (ui_printf): Removed.
1286 (printf_command): Remove static. Call string_printf.
1287 (eval_command): Call string_printf.
1288 * printcmd.h: New file.
1289 * tracepoint.c (validate_actionline,
1290 encode_actions_1): handle printf_command.
1292 2011-02-23 Tom Tromey <tromey@redhat.com>
1294 * ax-general.c (ax_pick): Add missing newline.
1296 2011-02-23 Michael Snyder <msnyder@vmware.com>
1298 * breakpoint.c (breakpoint_1): Change first argument from an int
1299 to a char pointer, so that the function now accepts a list of
1300 breakpoints rather than just one. Use new function
1301 'number_is_in_list' to implement.
1302 (breakpoints_info): Pass char * instead of int to breakpoint_1.
1303 (watchpoints_info): Ditto.
1304 (tracepoints_info): Ditto.
1305 (maintenance_info_breakpoints): Ditto.
1306 (_initialize_breakpoint): Update help strings to reflect the fact
1307 that these functions can now take more than one argument.
1308 * cli/cli-utils.c (number_is_in_list): New function.
1309 * cli/cli-utils.h (number_is_in_list): Export.
1311 2011-02-23 Michael Snyder <msnyder@vmware.com>
1313 * memattr.c (mem_enable_command): Use get_number_or_range.
1314 (mem_disable_command): Ditto.
1315 (mem_delete_command): Ditto.
1316 (_initialize_mem): Tweak usage message to reflect multiple
1319 2011-02-22 Doug Evans <dje@google.com>
1321 Add gdb.lookup_global_symbol python function.
1323 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
1324 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
1325 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
1327 2011-02-22 Tom Tromey <tromey@redhat.com>
1329 * language.c (language_class_name_from_physname): Rename
1330 'curr_language' argument to 'lang'; use in body.
1332 2011-02-22 Michael Snyder <msnyder@vmware.com>
1334 * cli/cli-utils.c (number_is_in_list): Check for zero return.
1336 2011-02-22 Pedro Alves <pedro@codesourcery.com>
1338 * frame-unwind.h: Fix comment to mention the this frame, not the
1341 2011-02-22 Tom Tromey <tromey@redhat.com>
1343 * symfile.c (auto_solib_limit): Remove.
1344 * symfile.h (auto_solib_limit): Remove.
1346 2011-02-22 Joel Brobecker <brobecker@adacore.com>
1348 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
1350 2011-02-21 Michael Snyder <msnyder@vmware.com>
1352 * gdbthread.h (print_thread_info): Change prototype.
1353 * thread.c (print_thread_info): Accept char* instead of int for
1354 requested_threads argument. Use new function number_is_in_list
1355 to determine which threads to list.
1356 (info_threads_command): Pass char* to print_thread_info.
1357 * cli/cli-utils.c (number_is_in_list): New function.
1358 * cli/cli-utils.h (number_is_in_list): Export.
1359 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
1361 (print_one_inferior): Ditto.
1362 (mi_cmd_list_thread_groups): Ditto.
1364 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1366 * common/Makefile.in (CFLAGS): New.
1367 (COMPILE): Add $(CFLAGS).
1369 2011-02-21 Tom Tromey <tromey@redhat.com>
1371 * breakpoint.c (catch_syscall_command_1): Fix typo.
1373 2011-02-21 Tom Tromey <tromey@redhat.com>
1375 * reverse.c: Include cli-utils.h.
1376 * printcmd.c: Include cli-utils.h.
1377 (string_printf): Use skip_spaces.
1378 * cli/cli-utils.h: New file.
1379 * cli/cli-utils.c: New file.
1380 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
1381 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
1382 * breakpoint.h (get_number, get_number_or_range): Move to
1384 * breakpoint.c: Include cli-utils.h.
1385 (get_number_trailer, get_number, get_number_or_range)
1386 (ep_skip_leading_whitespace): Move to cli-utils.c.
1387 (create_breakpoint_sal, find_condition_and_thread)
1388 (decode_static_tracepoint_spec, watch_command_1)
1389 (watch_maybe_just_location, ep_parse_optional_if_clause)
1390 (catch_fork_command_1, catch_exec_command_1)
1391 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
1392 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
1393 (SUBDIR_CLI_SRCS): Add cli-utils.c.
1394 (HFILES_NO_SRCDIR): Add cli-utils.h.
1395 (cli-utils.o): New target.
1397 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
1399 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
1400 before calling discard_all_inferiors.
1402 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
1404 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
1405 (struct builtin_opencl_type): Remove.
1406 (builtin_opencl_type): Change return type to "struct type **".
1407 (lookup_opencl_vector_type): Update caller.
1408 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
1409 (build_opencl_types): Install plain array of "struct type *"
1410 instead of "struct builtin_opencl_type".
1412 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1413 Ulrich Weigand <uweigand@de.ibm.com>
1415 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
1416 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
1417 (struct arm_linux_hwbp_cap): New type.
1418 (arm_linux_get_hwbp_cap): New function.
1419 (arm_linux_get_hw_breakpoint_count): Likewise.
1420 (arm_linux_get_hw_watchpoint_count): Likewise.
1421 (arm_linux_can_use_hw_breakpoint): Likewise.
1422 (arm_hwbp_type): New type.
1423 (arm_hwbp_control_t): Likewise.
1424 (struct arm_linux_hw_breakpoint): Likewise.
1425 (struct arm_linux_thread_points): Likewise.
1426 (arm_threads): New global variable.
1427 (arm_linux_find_breakpoints_by_tid): New function.
1428 (arm_hwbp_control_initialize): Likewise.
1429 (arm_hwbp_control_is_enabled): Likewise.
1430 (arm_hwbp_control_disable): Likewise.
1431 (arm_linux_hw_breakpoint_initialize): Likewise.
1432 (arm_linux_get_hwbp_type): Likewise.
1433 (arm_linux_hw_watchpoint_initialize): Likewise.
1434 (arm_linux_hw_breakpoint_equal): Likewise.
1435 (arm_linux_insert_hw_breakpoint1): Likewise.
1436 (arm_linux_remove_hw_breakpoint1): Likewise.
1437 (arm_linux_insert_hw_breakpoint): Likewise.
1438 (arm_linux_remove_hw_breakpoint): Likewise.
1439 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
1440 (arm_linux_insert_watchpoint): Likewise.
1441 (arm_linux_remove_watchpoint): Likewise.
1442 (arm_linux_stopped_data_address): Likewise.
1443 (arm_linux_stopped_by_watchpoint): Likewise.
1444 (arm_linux_watchpoint_addr_within_range): Likewise.
1445 (arm_linux_new_thread): Likewise.
1446 (arm_linux_thread_exit): Likewise.
1447 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
1448 related target callbacks. Register arm_linux_new_thread and
1449 arm_linux_thread_exit.
1450 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
1451 * arm-tdep.c (arm_pc_is_thumb): Make global.
1452 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
1454 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
1456 * breakpoint.c (update_watchpoint): Do not attempt to recreate
1457 per-frame locations while within a function epilogue.
1459 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
1461 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
1462 to GNU coding standards.
1464 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
1466 Allow use of mingw native on Windows 95 OS.
1467 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
1468 (ser_windows_close): Only call CancelIo if function exists.
1469 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
1470 to check for existence of CancelIo function in kernel32 DLL.
1472 2011-02-21 Hui Zhu <teawater@gmail.com>
1474 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
1475 * ax-gdb.c (gen_printf_expr_callback): New function.
1476 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
1477 * ax-general.c (ax_memcpy): New function.
1478 (ax_print): Handle "printf".
1480 * ax.h (ax_memcpy): Forward declare.
1481 * common/ax.def (invalid2): Removed.
1482 (printf): New entry.
1483 * printcmd.c (printcmd.h): New include.
1484 (string_printf): New function.
1485 (ui_printf): Removed.
1486 (printf_command): Remove static. Call string_printf.
1487 (eval_command): Call string_printf.
1488 * printcmd.h: New file.
1489 * tracepoint.c (validate_actionline,
1490 encode_actions_1): handle printf_command.
1492 2011-02-19 Michael Snyder <msnyder@vmware.com>
1494 * reverse.c (delete_one_bookmark): Argument is now bookmark
1495 id rather than pointer to bookmark struct.
1496 (delete_bookmark_command): Use get_number_or_range.
1497 (goto_bookmark_command): Parse with get_number instead of strtoul.
1498 (bookmark_1): New function. Print info for one bookmark.
1499 (bookmarks_info): Use get_number_or_range and bookmark_1.
1501 2011-02-18 Michael Snyder <msnyder@vmware.com>
1503 * thread.c (info_threads_command): Re-implement using
1504 get_number_or_range.
1505 (thread_apply_command): Ditto.
1507 2011-02-18 Tom Tromey <tromey@redhat.com>
1509 * common/ax.def: New file.
1510 * ax.h (enum agent_op): Use ax.def.
1511 * ax-general.c (aop_map): Use ax.def.
1513 2011-02-18 Tom Tromey <tromey@redhat.com>
1515 * ax-general.c (aop_map): Add pick and rot.
1516 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
1517 <DW_OP_rot>: Implement.
1518 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
1520 * ax-general.c (ax_pick): New function.
1522 2011-02-18 Tom Tromey <tromey@redhat.com>
1524 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
1526 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1527 Tom Tromey <tromey@redhat.com>
1529 * cp-support.c (make_symbol_overload_list_namespace): Do not call
1530 make_symbol_overload_list_block with NULL BLOCK.
1531 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
1533 2011-02-18 Pedro Alves <pedro@codesourcery.com>
1535 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
1536 * breakpoint.h (get_number_or_range): Declare.
1537 * printcmd.c (ALL_DISPLAYS): Declare.
1538 (delete_display): Reimplement taking a display pointer.
1539 (undisplay_command): Accept a range of displays to delete, using
1540 get_number_or_range.
1542 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
1544 * c-valprint.c (c_val_print): Add embedded_offset to address
1545 for arrays of unspecified length.
1546 * p-valprint.c (pascal_val_print): Likewise.
1548 2011-02-18 Yao Qi <yao@codesourcery.com>
1550 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
1551 (arm_process_displaced_insn): .. here. Remove parameter INSN.
1552 (thumb_process_displaced_insn): New.
1553 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
1554 call to arm_process_displaced_insn.
1555 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
1557 2011-02-17 Tom Tromey <tromey@redhat.com>
1559 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
1560 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
1561 compile_dwarf_to_ax. No longer static. Call
1562 dwarf2_compile_cfa_to_ax.
1563 (locexpr_tracepoint_var_ref): Update.
1564 (loclist_tracepoint_var_ref): Update.
1565 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
1566 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
1567 argument; add 'gdbarch' and 'pc'.
1568 (dwarf2_compile_cfa_to_ax): New function.
1569 (dwarf2_frame_cache): Update.
1571 2011-02-17 Joel Brobecker <brobecker@adacore.com>
1573 * ada-lang.c (ada_type_of_array): Fix the size of the array
1574 in the case of an unconstrained packed array.
1576 2011-02-17 Yao Qi <yao@codesourcery.com>
1578 * common/Makefile.in: Add more targets for make.
1580 2011-02-16 Tom Tromey <tromey@redhat.com>
1582 * dwarf2loc.c (unimplemented): Fix typo.
1584 2011-02-16 Tom Tromey <tromey@redhat.com>
1586 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
1587 (compile_dwarf_to_ax) <default>: Use unimplemented.
1588 <DW_OP_deref>: Update.
1589 (disassemble_dwarf_expression): Update.
1590 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
1591 (decode_locdesc): Update.
1592 * dwarf2expr.h (dwarf_stack_op_name): Update.
1594 2011-02-16 Tom Tromey <tromey@redhat.com>
1596 * ax.h (struct aop_map) <name>: Now const.
1598 2011-02-16 Tom Tromey <tromey@redhat.com>
1600 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
1603 2011-02-16 Yao Qi <yao@codesourcery.com>
1605 * infrun.c (get_displaced_step_closure_by_addr): New.
1606 * inferior.h: Declare it.
1607 * arm-tdep.c: (arm_pc_is_thumb): Call
1608 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
1611 2011-02-16 Pedro Alves <pedro@codesourcery.com>
1612 Jan Kratochvil <jan.kratochvil@redhat.com>
1615 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
1617 2011-02-16 Pedro Alves <pedro@codesourcery.com>
1618 Jan Kratochvil <jan.kratochvil@redhat.com>
1620 * value.c (value_contents_copy_raw): Extend describing comment.
1621 Assert that the destination contents we're overwriting are wholly
1623 (value_contents_copy): Extend describing comment.
1625 2011-02-16 Pedro Alves <pedro@codesourcery.com>
1626 Jan Kratochvil <jan.kratochvil@redhat.com>
1628 * value.c (value_available_contents_eq): Remove redundant local
1629 variables. Fix available contents comparision.
1630 * value.h (value_available_contents_eq): Extend describing
1633 2011-02-16 Yao Qi <yao@codesourcery.com>
1635 * thread.c (info_threads_command): Add missing i18n markup and remove
1638 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
1640 * breakpoint.c (longjmp_names): New variable.
1641 (struct breakpoint_objfile_data): New type.
1642 (breakpoint_objfile_key): New variable.
1643 (msym_not_found): New variable.
1644 (msym_not_found_p): New predicate.
1645 (get_breakpoint_objfile_data): New function.
1646 (create_overlay_event_breakpoint): Check per-objfile cache for
1648 (create_longjmp_master_breakpoint): Likewise.
1649 (create_std_terminate_master_breakpoint): Likewise.
1650 (create_exception_master_breakpoint): Likewise.
1651 (_initialize_breakpoint): Register per-objfile data key.
1653 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
1655 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
1657 (create_longjmp_master_breakpoint): Loop over longjmp names.
1658 (create_std_terminate_master_breakpoint): Const-propagate parameter
1660 (update_breakpoints_after_exec): Adjust.
1661 (breakpoint_re_set): Adjust.
1663 2011-02-15 Michael Snyder <msnyder@vmware.com>
1665 * thread.c (info_threads_command): Process arg as thread id,
1666 or list of thread ids.
1667 (thread_find_command): New command.
1668 (_initialize_thread): Document argument for info threads.
1669 Document 'thread find' command.
1670 * NEWS: Document new command "thread find".
1672 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1674 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
1675 * aclocal.m4: Regenerated with aclocal-1.11.1.
1676 * common/configure: Regenerate with autoconf-2.64.
1678 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
1680 * opencl-lang.c (build_opencl_types): Set the size of the built-in
1681 bool data type to a size of one byte.
1683 2011-02-15 Pedro Alves <pedro@codesourcery.com>
1684 Jan Kratochvil <jan.kratochvil@redhat.com>
1686 * target.c (memory_xfer_live_readonly_partial): Document where to
1687 look for interface description.
1689 2011-02-15 Yao Qi <yao@codesourcery.com>
1692 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
1693 order to store PC value on stack instead of text section.
1695 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
1697 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
1698 the EFP register set size.
1699 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
1700 data from the VMX register.
1701 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
1702 and write data from/to the VMX register.
1704 2011-02-14 Michael Snyder <msnyder@vmware.com>
1706 * command.h (enum command_class): New class 'no_set_class', for
1707 "show" commands without a corresponding "set" command.
1708 * value.c (_initialize_values): Use 'no_set_class' for "show values".
1709 * copying.c (_initialize_copying): Ditto for "show copying" and
1711 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
1713 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
1714 which there is no corresponding "set" command (eg. "show copying").
1716 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1717 Jan Kratochvil <jan.kratochvil@redhat.com>
1719 * exec.c (section_table_available_memory): Change `len' parameter
1721 * exec.h (section_table_available_memory): Ditto.
1722 * value.h (read_value_memory): Rename the `offset' parameter to
1725 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1726 Jan Kratochvil <jan.kratochvil@redhat.com>
1728 * memrange.c (compare_mem_ranges): Mention sort order in
1730 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
1731 * tracepoint.c (traceframe_available_memory): Extend comment to
1732 mention what happens to RESULT when the target does not support
1735 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1736 Jan Kratochvil <jan.kratochvil@redhat.com>
1738 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
1741 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1743 * value.c (value_bits_valid, value_bits_synthetic_pointer):
1744 No longer handle NULL values.
1746 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1748 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
1749 * value.c: Include "exceptions.h".
1750 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
1752 * cp-abi.c: Include gdb_assert.h.
1753 (baseclass_offset): Add `embedded_offset' and `val' parameters.
1754 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
1756 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
1757 parameters. No longer returns -1 on error.
1758 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
1760 * cp-valprint.c: Include exceptions.h.
1761 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
1762 the baseclass_offset. Handle unavailable base classes. Use
1763 val_print_invalid_address.
1764 * p-valprint.c: Include exceptions.h.
1765 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
1766 when fetching the baseclass_offset. No longer expect
1767 baseclass_offset returning -1. Handle unavailable base classes.
1768 Use val_print_invalid_address.
1769 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
1770 `valaddr' parameter, and change its type to gdb_byte pointer. Add
1771 `embedded_offset' and `val' parameters. Adjust.
1772 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
1773 parameter, and change its type to gdb_byte pointer. Add
1774 `embedded_offset' and `val' parameters. Adjust. No longer expect
1775 baseclass_offset returning -1.
1776 (value_dynamic_cast): Use value_contents_for_printing rather than
1777 value_contents. Adjust.
1778 (search_struct_field): No longer expect baseclass_offset returning
1780 (search_struct_method): If reading memory from the target is
1781 necessary, wrap it in a new value to pass to baseclass_offset. No
1782 longer expect baseclass_offset returning -1.
1783 (find_method_list): No longer expect baseclass_offset returning
1784 -1. Use value_contents_for_printing rather than value_contents.
1785 * valprint.c (val_print_invalid_address): New function.
1786 * valprint.h (val_print_invalid_address): Declare.
1787 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
1788 and `val' parameters. No longer expect baseclass_offset returning
1790 * gnu-v2-abi.c: Include "exceptions.h".
1791 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
1792 parameters. Handle unavailable memory. Recurse through
1793 gnuv2_baseclass_offset directly, rather than through
1794 baseclass_offset. No longer returns -1 on not found, instead
1796 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
1797 `val' parameters. Adjust.
1799 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1801 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
1802 almost but not quite adjacent.
1804 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1806 * value.h (value_entirely_available): Declare.
1807 * value.c (value_entirely_available): New function.
1808 * c-valprint.c (c_value_print): Don't try fetching the pointer's
1809 real type if the pointer is unavailable.
1811 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1813 * valops.c (value_repeat): Use read_value_memory instead of
1816 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1818 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
1819 * value.c (value_contents_copy_raw, value_contents_copy): New
1821 (value_primitive_field): Use value_contents_copy_raw instead of
1823 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
1825 (value_array, value_slice): Ditto.
1826 * valarith.c (value_subscripted_rvalue): Use
1827 value_contents_copy_raw instead of memcpy.
1829 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1831 <unavailable> references.
1833 * valops.c (get_value_at): Use value_from_contents_and_address,
1834 avoiding read_memory.
1836 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1838 * c-valprint.c (c_val_print): Print a string with unavailable
1839 contents as an array.
1841 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1843 * value.h (unpack_bits_as_long): Delete declaration.
1844 (unpack_value_bits_as_long): Declare.
1845 (unpack_value_field_as_long): Declare.
1846 (value_field_bitfield): Declare.
1847 * value.c (unpack_bits_as_long): Rename to...
1848 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
1849 value parameters. Return the extracted result in a new output
1850 parameter. If the value contents are unavailable, return false,
1851 otherwise return true.
1852 (unpack_value_bits_as_long): New.
1853 (unpack_field_as_long): Rename to...
1854 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
1855 Add embedded_offset and value parameters. Return the extracted
1856 result in a new output parameter. If the value contents are
1857 unavailable, return false, otherwise return true.
1858 (unpack_value_field_as_long): New.
1859 (unpack_field_as_long_1): New.
1860 (unpack_field_as_long): Reimplement as wrapper around
1861 unpack_value_field_as_long_1.
1862 (value_field_bitfield): New function.
1863 * valops.c (value_fetch_lazy): When fetching a bitfield, use
1864 unpack_value_bits_as_long. Mark the value as unavailable, if it
1866 * jv-valprint.c (java_print_value_fields): Use
1867 value_field_bitfield.
1868 * p-valprint.c (pascal_object_print_value_fields): Use
1869 value_field_bitfield.
1870 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
1872 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1874 * value.c (get_internalvar_integer): Also return the int value of
1875 TYPE_CODE_INT INTERNALVAR_VALUE values.
1876 (set_internalvar): Don't special case TYPE_CODE_INT.
1878 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1880 * value.c (struct internalvar) <enum internalvar_kind>: Remove
1881 INTERNALVAR_POINTER.
1883 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
1884 (set_internalvar): Remove special TYPE_CODE_PTR handling.
1885 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
1887 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1889 * value.h (value_available_contents_eq): Declare.
1890 * value.c (find_first_range_overlap): New function.
1891 (value_available_contents_eq): New function.
1892 * valprint.c (val_print_array_elements): Use
1893 value_available_contents_eq.
1894 * ada-valprint.c (val_print_packed_array_elements): Use
1895 value_available_contents_eq.
1896 * jv-valprint.c (java_value_print): Use
1897 value_available_contents_eq.
1899 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1901 * target.c (target_read_live_memory): New function.
1902 (memory_xfer_live_readonly_partial): New.
1903 (memory_xfer_partial): If reading from a traceframe, fallback to
1904 reading unavailable read-only memory from read-only regions of
1906 * tracepoint.c (disconnect_tracing): Adjust.
1907 (set_current_traceframe): New, factored out from
1908 set_traceframe_number.
1909 (set_traceframe_number): Reimplement to only change the traceframe
1910 number on the GDB side.
1911 (do_restore_current_traceframe_cleanup): Adjust.
1912 (make_cleanup_restore_traceframe_number): New.
1913 (cur_traceframe_number): New global.
1914 (tfile_open): Set cur_traceframe_number to no traceframe.
1915 (set_tfile_traceframe): New function.
1916 (tfile_trace_find): If looking up a traceframe using any method
1917 other than by number, make sure the current tfile traceframe
1918 matches gdb's current traceframe. Update the current tfile
1919 traceframe if the lookup succeeded.
1920 (tfile_fetch_registers, tfile_xfer_partial)
1921 (tfile_get_trace_state_variable_value): Make sure the remote
1922 traceframe matches gdb's current traceframe.
1923 * remote.c (remote_traceframe_number): New global.
1924 (remote_open_1): Set it to -1.
1925 (set_remote_traceframe): New function.
1926 (remote_fetch_registers, remote_store_registers)
1927 (remote_xfer_memory, remote_xfer_partial)
1928 (remote_get_trace_state_variable_value): Make sure the remote
1929 traceframe matches gdb's current traceframe.
1930 (remote_trace_find): If looking up a traceframe using any method
1931 other than by number, make sure the current remote traceframe
1932 matches gdb's current traceframe. Update the current remote
1933 traceframe if the lookup succeeded.
1934 * infrun.c (fetch_inferior_event): Adjust.
1935 * tracepoint.h (set_current_traceframe): Declare.
1936 (get_traceframe_number, set_traceframe_number): Add describing
1939 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1941 Mark pieces of values as unavailable if the corresponding memory
1944 * valops.c: Include tracepoint.h.
1945 (value_fetch_lazy): Use read_value_memory.
1946 (read_value_memory): New.
1947 * value.h (read_value_memory): Declare.
1948 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
1949 * exec.c (section_table_available_memory): New function.
1950 * exec.h (section_table_available_memory): Declare.
1952 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1954 * Makefile.in (SFILES): Add memrange.c.
1955 (HFILES_NO_SRCDIR): Add memrange.h.
1956 (COMMON_OBS): Add memrange.o.
1957 * memrange.c: New file.
1958 * memrange.h: New file.
1959 * tracepoint.c: Include memrange.h.
1960 (struct mem_range): Delete.
1961 (mem_range_s): Delete.
1962 (traceframe_available_memory): New function.
1963 * tracepoint.h (traceframe_available_memory): Declare.
1965 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1967 * target.h (struct traceframe_info): Forward declare.
1968 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
1969 (struct target_ops) <to_traceframe_info>: New field.
1970 (target_traceframe_info): New.
1971 * target.c (update_current_target): Inherit and default
1973 * remote.c (PACKET_qXfer_traceframe_info): New.
1974 (remote_protocol_features): Register qXfer:traceframe-info:read.
1975 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
1976 (remote_traceframe_info): New.
1977 (init_remote_ops): Install it.
1978 (_initialize_remote): Install "set/show remote traceframe-info"
1980 * tracepoint.h (parse_traceframe_info): Declare.
1981 * tracepoint.c (struct mem_range): New.
1982 (mem_range_s): New typedef.
1983 (struct traceframe_info): New.
1984 (traceframe_info): New global.
1985 (free_traceframe_info): New function.
1986 (clear_traceframe_info): New function.
1987 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
1989 (build_traceframe_info): New function.
1990 (tfile_traceframe_info): New function.
1991 (init_tfile_ops): Install tfile_traceframe_info.
1992 (traceframe_info_start_memory, free_result): New functions.
1993 (memory_attributes, traceframe_info_elements): New globals.
1994 (parse_traceframe_info, get_traceframe_info): New functions.
1995 * features/traceframe-info.dtd: New file.
1996 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
1998 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2000 Base support for <unavailable> value contents.
2002 * value.h (value_bytes_available): Declare.
2003 (mark_value_bytes_unavailable): Declare.
2004 * value.c (struct range): New struct.
2005 (range_s): New typedef.
2006 (ranges_overlap): New function.
2007 (range_lessthan): New function.
2008 (ranges_contain_p): New function.
2009 (struct value) <unavailable>: New field.
2010 (value_bytes_available): New function.
2011 (mark_value_bytes_unavailable): New function.
2012 (require_not_optimized_out): Constify parameter.
2013 (require_available): New function.
2014 (value_contents_all, value_contents): Require all bytes be
2016 (value_free): Free `unavailable'.
2017 (value_copy): Copy `unavailable'.
2018 * valprint.h (val_print_unavailable): Declare.
2019 * valprint.c (valprint_check_validity): Rename `offset' parameter
2020 to `embedded_offset'. If printing a scalar, check whether the
2021 value chunk is available.
2022 (val_print_unavailable): New.
2023 (val_print_scalar_formatted): Check whether the value is
2025 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
2026 pretty-printing unavailable values.
2028 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2030 Fix const/volatile qualifiers of C++ types, PR c++/12328.
2031 * c-typeprint.c (c_type_print_args): Update the function comment. New
2032 variable param_type, initialize it. Remove const/volatile qualifiers
2033 for language_cplus and !show_artificial. Use param_type.
2035 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2037 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
2038 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
2039 * symtab.h (struct symtab) <next>: Comment extension.
2041 2011-02-12 Yao Qi <yao@codesourcery.com>
2043 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
2045 2011-02-11 Yao Qi <yao@codesourcery.com>
2047 * common/Makefile.in: Add copyright header.
2049 2011-02-11 Pedro Alves <pedro@codesourcery.com>
2051 * infrun.c (proceed): Move switching out and in of tfind mode from
2053 (fetch_inferior_event): ... to here.
2055 2011-02-11 Yao Qi <yao@codesourcery.com>
2057 * Makefile.in: Remove signals.o from COMMON_OBS. Link
2059 * configure.ac: Add common to sub dir.
2060 * configure: Regenerate.
2062 2011-02-11 Yao Qi <yao@codesourcery.com>
2066 * common/Makefile.in: New.
2067 * common/configure.ac: New.
2068 * common/aclocal.m4: New.
2069 * common/configure: Generate.
2071 2011-02-10 Pedro Alves <pedro@codesourcery.com>
2073 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
2074 side of the parenthesis.
2077 2010-07-13 Jakub Jelinek <jakub@redhat.com>
2078 * vec.h (VEC_block_remove): Fix comment.
2080 2011-02-08 Michael Snyder <msnyder@vmware.com>
2082 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
2084 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2086 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
2087 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
2090 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2093 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
2095 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
2096 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
2098 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2100 * dwarf2read.c (read_subroutine_type): Set special calling
2101 convention flag for functions compiled by IBM XL C for OpenCL.
2102 * ppc-sysv-tdep.c: Include "dwarf2.h"
2103 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
2105 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
2106 IBM OpenCL vector types calling convention.
2107 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
2108 (ppc_sysv_abi_broken_return_value): Likewise.
2109 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
2110 types calling convention.
2111 (ppc64_sysv_abi_return_value): Likewise.
2112 * spu-tdep.c: Include "dwarf2.h"
2113 (spu_return_value): Implement IBM OpenCL vector types calling
2116 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2118 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
2119 correct ABI for AltiVec vector arguments.
2121 2011-02-07 Pedro Alves <pedro@codesourcery.com>
2123 * valprint.c (val_print): Extend comment.
2124 * ada-valprint.c (ada_valprint): Rewrite comment deferring
2125 interface explanation to val_print.
2126 (ada_val_print_array): Adjust comment to current interface.
2127 (print_field_values): Adjust comment to current interface.
2128 * c-valprint.c (c_val_print): Rewrite comment deferring interface
2129 explanation to val_print.
2130 * f-valprint.c (f_val_print): Ditto.
2131 * jv-valprint.c (java_val_print): Ditto.
2132 * m2-valprint.c (m2_val_print): Ditto.
2133 * p-valprint.c (pascal_val_print): Ditto.
2135 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
2137 * breakpoint.c (parse_breakpoint_sals): Fix description.
2139 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
2140 Oguz Kayral <oguzkayral@gmail.com>
2142 * python/py-inferior.c (python_on_normal_stop): New function.
2143 (python_on_resume): New function.
2144 (python_inferior_exit): New function.
2145 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
2146 inferior_exit observers.
2147 * python/py-evtregistry.c: New file.
2148 * python/py-threadevent.c : New file.
2149 * python/py-event.c: New file.
2150 * python/py-evts.c: New file.
2151 * python/py-continueevent.c: New file.
2152 * python/py-bpevent.c: New file.
2153 * python/py-signalevent.c: New file.
2154 * python/py-exetiedevent.c: New file.
2155 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
2156 Move struct breakpoint_object from here...
2157 * python/python-internal.h: ... to here.
2158 * python/py-event.h: New file.
2159 * python/py-events.h: New file.
2160 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
2161 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
2162 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
2163 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
2164 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
2165 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
2166 Add build rules for all the above.
2168 2011-02-04 Tom Tromey <tromey@redhat.com>
2170 * dwarf2read.c (dwarf2_section_empty_p): New function.
2171 (dwarf2_read_section): Use dwarf2_section_empty_p.
2172 (dwarf2_section_size): New function.
2173 (dwarf2_get_section_info): Unconditionally read section.
2174 (dwarf2_read_index): Use dwarf2_section_empty_p.
2175 (partial_read_comp_unit_head): Use dwarf2_section_size.
2176 (dwarf2_symbol_mark_computed): Likewise.
2178 2011-02-04 David Daney <ddaney@caviumnetworks.com>
2180 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
2182 2011-02-04 David Daney <ddaney@caviumnetworks.com>
2184 * mips-linux-tdep.c: Include xml-syscall.h.
2185 (mips_linux_get_syscall_number): New function.
2186 (mips_linux_init_abi): Add calls to
2187 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
2188 * data-directory/Makefile.in (SYSCALLS_FILES): Add
2189 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
2190 * syscalls/mips-n32-linux.xml: New file.
2191 * syscalls/mips-n64-linux.xml: New file.
2192 * syscalls/mips-o32-linux.xml: New file.
2194 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
2196 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
2197 Complain about inverted range entries.
2198 (dwarf2_record_block_ranges): Likewise.
2200 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2203 * breakpoint.c (update_watchpoint): Fix name of the
2204 update_global_location_list function.
2205 (print_one_breakpoint): Fix typo.
2206 (_initialize_breakpoint): Remove extra space in hbreak help
2208 * breakpoint.h (struct bp_location) <length>: Fix field
2211 2011-02-04 Pedro Alves <pedro@codesourcery.com>
2213 * regcache.c (registers_changed_ptid): Don't explictly always
2214 clear `current_regcache'. Only clear current_thread_ptid and
2215 current_thread_arch when PTID matches. Only reinit the frame
2216 cache if PTID matches the current inferior_ptid. Move alloca(0)
2218 (registers_changed): ... here.
2220 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
2222 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
2223 starts with __stack_chk_guard as stack guard symbol.
2225 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
2227 * disasm.c (compare_lines): Handle the end of sequence markers
2228 within the line table to better support disassembling over
2229 compilation unit boundaries.
2231 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2233 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
2234 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
2235 implementation even if no symbols are available.
2236 (thumb_analyze_prologue): Update call to skip_prologue_function.
2237 (arm_analyze_prologue): Likewise.
2239 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2241 * arm-tdep.c: Include "observer.h".
2242 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
2243 (arm_exidx_data_key): New static variable.
2244 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
2245 (struct arm_exidx_data): Likewise.
2246 (arm_exidx_data_free): New function.
2247 (arm_compare_exidx_entries): Likewise.
2248 (arm_obj_section_from_vma): Likewise.
2249 (arm_exidx_new_objfile): Likewise.
2250 (arm_find_exidx_entry): Likewise.
2251 (arm_exidx_fill_cache): Likewise.
2252 (arm_exidx_unwind_sniffer): Likewise.
2253 (arm_exidx_unwind): New global variable.
2254 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
2255 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
2256 observer. Register arm_exidx_data_key as objfile data.
2258 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2260 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
2261 due to accessing uninitialized variable. Fix indentation.
2263 2011-02-02 Pedro Alves <pedro@codesourcery.com>
2265 * c-valprint.c (c_value_print): When doing virtual base pointer
2266 adjustment, create a new value with adjusted contents rather than
2267 changing the contents of the value being printed (and getting it
2270 2011-02-02 Pedro Alves <pedro@codesourcery.com>
2272 * xml-support.c (xml_find_attribute): New.
2273 (xinclude_start_include): Use it.
2274 * xml-support.h (xml_find_attribute): Declare.
2275 * memory-map.c (memory_map_start_memory)
2276 (memory_map_start_property): Use xml_find_attribute.
2277 * osdata.c (osdata_start_osdata, osdata_start_column): Use
2279 * remote.c (start_thread): Use xml_find_attribute.
2280 * solib-target.c (library_list_start_segment)
2281 (library_list_start_section, library_list_start_library)
2282 (library_list_start_list): Use xml_find_attribute.
2283 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
2284 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
2285 (tdesc_start_field): Use xml_find_attribute.
2287 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
2289 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
2290 (BUILD_OCL_VTYPES): Update.
2292 2011-02-02 Joel Brobecker <brobecker@adacore.com>
2294 * configure.ac: Work around non-GNU sed limitation when computing
2295 python version number.
2296 * configure: Regenerate.
2298 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2300 Fix debug printing of TYPE_INSTANCE.
2301 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
2302 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
2304 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2306 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
2307 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
2308 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
2309 * ada-operator.inc: Rename the file to ...
2310 * ada-operator.def: ... here, wrap all the entries by macro OP.
2311 * expprint.c (op_name_standard): Remove all the entries. Include
2312 "std-operator.def" instead.
2313 * expression.h (enum exp_opcode): Include "std-operator.def" and
2314 "ada-operator.def". Move all the entries ...
2315 * std-operator.def: ... here, wrap all the entries by macro OP.
2317 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2319 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
2320 * breakpoint.c (remove_jit_event_breakpoints): New function.
2321 * jit.c (jit_descriptor_addr): Delete.
2322 (registering_code): Delete.
2323 (clear_int): Delete.
2324 (jit_inferior_data): New variable.
2325 (struct jit_inferior_data): New type.
2326 (get_jit_inferior_data): New function.
2327 (jit_inferior_data_cleanup): New function.
2328 (jit_read_descriptor): Adjust.
2329 (jit_register_code): Adjust.
2330 (jit_breakpoint_re_set_internal): New function; move code here ...
2331 (jit_inferior_init): ... from here.
2332 (jit_breakpoint_re_set): Adjust.
2333 (jit_reset_inferior_data_and_breakpoints): New function.
2334 (jit_inferior_created_observer): Adjust.
2335 (jit_inferior_exit_hook): Adjust.
2336 (jit_executable_changed_observer): New function.
2337 (jit_event_handler): Adjust.
2338 (_initialize_jit): Adjust.
2340 2011-01-31 Michael Snyder <msnyder@vmware.com>
2342 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
2345 2011-01-31 Tom Tromey <tromey@redhat.com>
2348 * python/python.c (execute_gdb_command): Call
2349 prevent_dont_repeat.
2350 * top.c (suppress_dont_repeat): New global.
2351 (dont_repeat): Use it.
2352 (prevent_dont_repeat): New function.
2353 * command.h (prevent_dont_repeat): Declare.
2355 2011-01-31 Tom Tromey <tromey@redhat.com>
2357 * infcmd.c (finish_backward): Use breakpoint_set_silent.
2358 * python/py-breakpoint.c (bppy_set_silent): Use
2359 breakpoint_set_silent.
2360 (bppy_set_thread): Use breakpoint_set_thread.
2361 (bppy_set_task): Use breakpoint_set_task.
2362 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
2363 (breakpoint_set_task): Declare.
2364 (make_breakpoint_silent): Remove.
2365 * breakpoint.c (breakpoint_set_silent): New function.
2366 (breakpoint_set_thread): Likewise.
2367 (breakpoint_set_task): Likewise.
2368 (make_breakpoint_silent): Remove.
2370 2011-01-31 Tom Tromey <tromey@redhat.com>
2372 * breakpoint.h (user_breakpoint_p): Declare.
2373 * breakpoint.c (user_breakpoint_p): New function.
2374 (breakpoint_1): Use it.
2375 (save_breakpoints): Likewise.
2377 2011-01-31 Joel Brobecker <brobecker@adacore.com>
2379 * configure.ac: Add handling of Python distribution on Windows.
2380 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
2381 sysconfig variables are not defined, then do not use them.
2382 On Windows, if LIBPL is not defined, then use prefix + '/libs'
2383 instead. On Windows, return all paths using forward-slashes
2384 rather than backslashes.
2386 2011-01-31 Joel Brobecker <brobecker@adacore.com>
2388 * configure.ac: Remove fallback behavior for building
2389 against Python. Remove tweaking of Python include path.
2390 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
2391 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
2392 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
2393 Always restore CPPFLAGS and LIBS after linking test.
2394 * configure: Regenerated.
2395 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
2396 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
2397 * python/python-internal.h: Adjust includes of Python .h files.
2399 2011-01-31 Joel Brobecker <brobecker@adacore.com>
2401 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
2404 2011-01-31 Joel Brobecker <brobecker@adacore.com>
2406 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
2409 2011-01-31 Yao Qi <yao@codesourcery.com>
2411 * arm-linux-nat.c: Update calls to regcache_register_status
2412 instead of regcache_valid_p.
2413 * aix-thread.c: Likewise.
2414 * i386gnu-nat.c: Likewise.
2416 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2419 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
2420 touching TYPE_FIELD_ARTIFICIAL.
2422 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
2424 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
2427 2011-01-28 Pedro Alves <pedro@codesourcery.com>
2429 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
2430 selected, don't try iterating over the traceframe's blocks.
2431 (tfile_has_stack): If there's no traceframe selected, then there's
2433 (tfile_has_registers): If there's no traceframe selected, then
2434 there's no registers.
2436 2011-01-28 Pedro Alves <pedro@codesourcery.com>
2438 * target.c (memory_xfer_partial): No need to restore shadows if we
2439 haven't read anything.
2441 2011-01-28 Pedro Alves <pedro@codesourcery.com>
2443 * mips-tdep.c (mips_print_register): Use get_frame_register_value
2444 and val_print_scalar_formatted.
2446 2011-01-27 Pedro Alves <pedro@codesourcery.com>
2448 * tracepoint.c (tfile_read): New.
2449 (tfile_open): Use it.
2450 (tfile_get_traceframe_address): Use it.
2451 (tfile_trace_find): Use it.
2452 (walk_blocks_callback_func): New typedef.
2453 (match_blocktype): New function.
2454 (traceframe_walk_blocks): New function.
2455 (traceframe_find_block_type): New function.
2456 (tfile_fetch_registers, tfile_xfer_partial)
2457 (tfile_get_trace_state_variable_value): Use
2458 traceframe_find_block_type and tfile_read.
2460 2011-01-26 Kevin Buettner <kevinb@redhat.com>
2462 * remote-mips.c: Add internationalization mark ups. Remove
2463 trailing \n from already marked up strings.
2465 2011-01-26 Tom Tromey <tromey@redhat.com>
2467 * python/py-prettyprint.c (print_string_repr): Clear
2468 'addressprint' option when calling val_print_string.
2469 (print_children): Handle Val_pretty_default. Clear 'addressprint'
2470 option when calling val_print_string.
2472 2011-01-26 Tom Tromey <tromey@redhat.com>
2474 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
2476 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
2478 (gdb_py_longest, gdb_py_ulongest): New typedefs.
2479 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
2480 (gdb_py_long_as_ulongest): New defines.
2481 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
2482 (gdb_py_int_as_long): Declare.
2483 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
2484 GDB_PY_LL_ARG, gdb_py_object_from_longest.
2485 (valpy_long): Add comment.
2486 * python/py-utils.c (get_addr_from_python): Use
2487 gdb_py_long_as_ulongest. Handle overflow properly.
2488 (gdb_py_object_from_longest): New function.
2489 (gdb_py_object_from_ulongest): Likewise.
2490 (gdb_py_int_as_long): Likewise.
2491 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
2492 * python/py-symtab.c (salpy_get_pc): Use
2493 gdb_py_long_from_ulongest.
2494 (salpy_get_line): Use PyInt_FromLong.
2495 * python/py-param.c (set_parameter_value): Use
2497 * python/py-lazy-string.c (stpy_get_address): Use
2498 gdb_py_long_from_ulongest.
2499 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
2500 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
2501 * python/py-breakpoint.c (bppy_set_thread): Use
2503 (bppy_set_task): Likewise.
2504 (bppy_set_ignore_count): Likewise.
2505 (bppy_set_hit_count): Likewise.
2506 * python/py-block.c (blpy_get_start): Use
2507 gdb_py_object_from_ulongest.
2508 (blpy_get_end): Likewise.
2509 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
2511 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
2514 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
2515 * gdb/solib.c (solib_read_symbols): Check for addr_low in
2516 equality test for objfile, initialize addr_low if needed.
2518 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2520 * tui/tui-regs.c (tui_register_format): Remove dead code.
2522 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2524 * printcmd.c (print_formatted): Use val_print_scalar_formatted
2525 instead of print_scalar_formatted.
2526 (print_scalar_formatted): Don't handle 's' format strings here,
2527 and add an assertion that we never see such format here.
2528 * valprint.h (val_print_scalar_formatted): Declare.
2529 * valprint.c (val_print_scalar_formatted): New.
2530 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
2531 instead of print_scalar_formatted.
2532 * jv-valprint.c (java_val_print): Ditto.
2533 * p-valprint.c (pascal_val_print): Ditto.
2534 * ada-valprint.c (ada_val_print_1): Ditto.
2535 * f-valprint.c (f_val_print): Ditto.
2536 * infcmd.c (registers_info): Ditto.
2537 * m2-valprint.c (m2_val_print): Ditto.
2539 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2541 * m2-valprint.c (print_unbounded_array): Pass
2542 value_contents_for_printing rather than value_contents, to
2543 m2_print_array_contents. Also pass in the value.
2545 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2547 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
2548 (save_gdb_index_command): Switch to .gdb_index version 4.
2550 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2552 * mi/mi-main.c (get_register): Use get_frame_register_value rather
2553 than frame_register, and always pass a valid value to val_print.
2555 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2557 Centralize printing "<optimized out>".
2559 * valprint.h (val_print_optimized_out): Declare.
2560 * cp-valprint.c (cp_print_value_fields): Use
2561 val_print_optimized_out.
2562 * jv-valprint.c (java_print_value_fields): Ditto.
2563 * p-valprint.c (pascal_object_print_value_fields): Ditto.
2564 * printcmd.c (print_formatted): Ditto.
2565 * valprint.c (valprint_check_validity): Ditto.
2566 (value_check_printable): Ditto.
2567 (val_print_optimized_out): New.
2569 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2571 * infcmd.c (default_print_registers_info): Allocate values so to
2572 never pass a NULL value to val_print.
2574 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2576 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
2577 boolean. Make sure to always pass a value that matches the
2578 contents buffer to callees. Preserve `address' for following
2580 * value.c (value_contents_for_printing_const): New.
2581 (value_address): Constify value argument.
2582 * value.h (value_contents_for_printing_const): Declare.
2583 (value_address): Constify value argument.
2585 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2587 * regcache.c (struct regcache_descr): Rename
2588 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
2589 and sizeof_cooked_register_valid_p to
2590 sizeof_cooked_register_status.
2591 (init_regcache_descr): Adjust.
2592 (struct regcache): Rename register_valid_p field to
2594 (regcache_xmalloc_1, regcache_xfree, regcache_save)
2595 (do_cooked_read): Adjust.
2596 (regcache_valid_p): Rename to ...
2597 (regcache_register_status): ... this. Adjust.
2598 (regcache_invalidate): Adjust.
2599 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
2601 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
2602 as unavailable, not valid.
2603 (regcache_dump): Adjust.
2604 * regcache.h (enum register_status): New.
2605 (regcache_register_status): Declare.
2606 (regcache_invalidate): Delete declaration.
2607 * corelow.c (get_core_registers): Adjust.
2608 * tracepoint.c (tfile_fetch_registers): Adjust.
2609 * trad-frame.c (REG_VALUE): Rename to ...
2610 (TF_REG_VALUE): ... this.
2611 (REG_UNKNOWN): Rename to ...
2612 (TF_REG_UNKNOWN): ... this.
2613 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
2614 * mi/mi-main.c (register_changed_p): Adjust.
2616 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2618 * regcache.c (struct regcache_descr): Remove outdated comment.
2619 (init_regcache_descr): Remove sizeof_raw_register_valid_p
2621 (regcache_xmalloc): Rename to ...
2622 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
2623 Allocate the regcache type accordingly.
2624 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
2625 (regcache_xfree): Asser the source is also readonly. Copy sizeof
2626 cooked registers, not raw.
2627 (regcache_dup_no_passthrough): Delete.
2628 (get_thread_arch_regcache): Use regcache_xmalloc_1.
2629 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
2630 mention obsolete write_register_bytes.
2631 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
2633 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2635 Stop remote_read_bytes from handling partial reads itself.
2637 * remote-fileio.c: Include target.h.
2638 (remote_fileio_write_bytes): Delete.
2639 (remote_fileio_func_open, remote_fileio_func_write)
2640 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
2642 (remote_fileio_func_stat): Use target_read_memory and
2643 target_write_memory.
2644 (remote_fileio_func_gettimeofday): Use target_write_memory.
2645 (remote_fileio_func_system): Use target_read_memory.
2646 * remote.c (remote_write_bytes): Make it static.
2647 (remote_read_bytes): Don't handle partial reads here.
2648 * remote.h (remote_read_bytes): Delete declaration.
2650 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2652 Simplify XML parsing a bit.
2654 * xml-support.h (gdb_xml_parse_quick): Declare.
2655 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
2656 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
2658 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
2659 gdb_xml_create_parser_and_cleanup_1.
2660 (gdb_xml_parse_quick): New.
2661 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
2662 * osdata.c (osdata_parse): Ditto.
2663 * remote.c (remote_threads_info): Ditto.
2664 * solib-target.c (solib_target_parse_libraries): Ditto.
2665 * xml-syscall.c (syscall_parse_xml): Ditto.
2666 * xml-tdesc.c (tdesc_parse_xml): Ditto.
2668 2011-01-24 Kevin Buettner <kevinb@redhat.com>
2670 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
2671 with remote-mips.o added to gdb_target_obs.
2672 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
2674 2011-01-24 Pedro Alves <pedro@codesourcery.com>
2676 * ada-valprint.c (val_print_packed_array_elements): Pass the
2677 correct struct value to val_print.
2678 (ada_val_print_1): Ditto.
2680 2011-01-24 Pedro Alves <pedro@codesourcery.com>
2682 Don't lose embedded_offset in printing routines throughout.
2684 * valprint.h (val_print_array_elements): Change prototype.
2685 * valprint.c (val_print_array_elements): Add `embedded_offset'
2686 parameter, and adjust to pass it down to val_print, while passing
2687 `valaddr' or `address' unmodified. Take embedded_offset into
2688 account when checking repetitions.
2689 * c-valprint.c (c_val_print): Pass embedded_offset to
2690 val_print_array_elements instead of adjusting `valaddr' and
2692 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
2693 embedded_offset to val_print_array_elements instead of adjusting
2695 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
2696 * p-valprint.c (pascal_val_print): Pass embedded_offset to
2697 val_print_array_elements and pascal_object_print_value_fields
2698 instead of adjusting `valaddr'.
2699 (pascal_object_print_value_fields): Add `offset' parameter, and
2701 (pascal_object_print_value): Add `offset' parameter, and adjust to
2703 (pascal_object_print_static_field): Use
2704 value_contents_for_printing/value_embedded_offset, rather than
2706 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
2707 parameter, and adjust to use it. Use
2708 value_contents_for_printing/value_embedded_offset, rather than
2710 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
2711 (ada_val_print_array): Add `offset' parameter, and adjust to use
2713 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
2714 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
2715 Instead work with offsets. Use
2716 value_contents_for_printing/value_embedded_offset, rather than
2717 value_contents. Change `defer_val_int' local type to CORE_ADDR,
2718 and use value_from_pointer to extract a target pointer, rather
2719 than value_from_longest.
2720 (print_variant_part): Add `offset' parameter. Replace
2721 `outer_valaddr' parameter by a new `outer_offset' parameter.
2722 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
2723 (ada_value_print): Use
2724 value_contents_for_printing/value_embedded_offset, rather than
2726 (print_record): Add `offset' parameter, and adjust to pass it
2728 (print_field_values): Add `offset' parameter. Replace
2729 `outer_valaddr' parameter by a new `outer_offset' parameter.
2730 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
2731 Use value_contents_for_printing/value_embedded_offset, rather than
2733 * d-valprint.c (dynamic_array_type): Use
2734 value_contents_for_printing/value_embedded_offset, rather than
2736 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
2737 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
2738 (java_print_value_fields): Take `offset' into account. Don't
2739 re-adjust `valaddr'. Instead pass down adjusted offsets.
2740 (java_val_print): Take `embedded_offset' into account. Pass it to
2741 java_print_value_fields.
2742 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
2743 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
2744 down adjusted offsets.
2745 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
2746 (f_val_print): Take `embedded_offset' into account.
2748 2011-01-21 Joel Brobecker <brobecker@adacore.com>
2750 * inflow.c: Include "gdbcmd.h".
2751 (interactive_mode): New static global, moved here from top.c.
2752 (show_interactive_mode): New function, moved here from top.c.
2753 use gdb_has_a_terminal instead of input_from_terminal_p to
2754 determine the current mode.
2755 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
2757 (_initialize_inflow): Add the "set/show interactive-mode"
2758 commands. Moved here from top.c, after having adjusted slightly
2760 * top.c (interactive_mode, show_interactive_mode): Delete, moved
2762 (input_from_terminal_p): Remove handling of "interactive-mode"
2763 setting, moved to infow.c.
2764 (init_main): Remove creation of the "set/show interactive-mode"
2765 commands, moved to inflow.c.
2767 2011-01-19 Joel Brobecker <brobecker@adacore.com>
2769 * NEWS: Add entry for native ia64-hpux support.
2771 2011-01-19 Tom Tromey <tromey@redhat.com>
2774 * thread.c (free_thread): Free 'name'.
2775 (print_thread_info): Emit thread name. Change CLI output.
2776 (thread_name_command): New function.
2777 (do_captured_thread_select): Emit newline.
2778 (_initialize_thread): Register 'thread name' command.
2779 * target.h (struct target_ops) <to_thread_name>: New field.
2780 (target_thread_name): New macro.
2781 * target.c (update_current_target): Handle to_thread_name.
2782 * python/py-infthread.c (thpy_get_name): New function.
2783 (thpy_set_name): Likewise.
2784 (thread_object_getset): Add "name".
2785 * linux-nat.c (linux_nat_thread_name): New function.
2786 (linux_nat_add_target): Set to_thread_name.
2787 * gdbthread.h (struct thread_info) <name>: New field.
2789 2011-01-18 Joel Brobecker <brobecker@adacore.com>
2791 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
2792 (ada_val_print_1): Likewise.
2794 2011-01-18 Joel Brobecker <brobecker@adacore.com>
2796 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
2797 upper limit address is not greater than the function end address
2798 when the upper limit could not be computed using the debugging
2801 2011-01-17 Tom Tromey <tromey@redhat.com>
2803 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
2805 * utils.c: Include gdb_regex.h.
2806 (do_regfree_cleanup): New function.
2807 (make_regfree_cleanup): Likewise.
2808 (get_regcomp_error): Likewise.
2809 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
2811 2011-01-17 Tom Tromey <tromey@redhat.com>
2813 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
2816 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
2818 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
2819 for internal variables.
2820 (last_was_structop): New static variable.
2821 (COMPLETE): New token.
2822 (field_exp): New rule to group all '.' suffix handling.
2823 Add mark_struct_expression calls when approriate to be able
2824 to correctly find fields for completion.
2825 (yylex): Adapt to handle field completion and set INTVAR when
2828 2011-01-14 Yao Qi <yao@codesourcery.com>
2830 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
2831 save_reggroup, restore_reggroup and all_reggroup.
2833 2011-01-14 Joel Brobecker <brobecker@adacore.com>
2835 * ada-valprint. (ada_printchar): Use the correct type length
2836 in call to ada_emit_char.
2837 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
2839 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
2841 * solib-som.h (hpux_major_release): Declare variable here.
2842 * solib-som.c: Remove <sys/utsname.h> header.
2843 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
2844 (hpux_major_release): Make global, change default value to
2845 DEFAULT_HPUX_MAJOR_RELEASE.
2846 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
2847 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
2848 Add "solib-som.h" header.
2849 (set_hpux_major_release): New function.
2850 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
2852 2011-01-14 Mike Frysinger <vapier@gentoo.org>
2854 * configure.tgt (*-*-uclinux*): Match more Linux os targets
2856 2011-01-14 Joel Brobecker <brobecker@adacore.com>
2858 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
2859 new-line at end of warning message.
2860 (ia64_hpux_store_register): Remove trailing new-line at end of
2862 * ia64-hpux-tdep.c: Rephrase comment.
2863 * solib-ia64-hpux.c (struct dld_info): Change type of field
2864 dld_flags from "long long" to ULONGEST.
2866 2011-01-14 Pedro Alves <pedro@codesourcery.com>
2868 * target.h (deprecated_child_ops): Delete declaration.
2869 * target.c (deprecated_child_ops): Delete definition.
2871 2011-01-14 Pedro Alves <pedro@codesourcery.com>
2873 * Makefile.in (hpux-thread.o): Delete rule.
2874 * configure.ac: Don't check for HPUX DCE threads support.
2875 * configure, config.in: Regenerate.
2876 * hppa-hpux-nat.c (child_suppress_run): Delete.
2877 (hppa_hpux_child_can_run): Delete.
2878 (_initialize_hppa_hpux_nat): Don't override to_can_run.
2879 * hpux-thread.c: Delete.
2881 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2883 * hpux-thread.c (hpux_pid_to_str): Delete.
2885 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2887 * ada-valprint.c (ada_emit_char): Remove strange code.
2888 Check that c is <= UCHAR_MAX before passing it to isascii.
2889 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
2891 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2893 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
2894 to the case where instream is stdin.
2896 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2898 * ia64-tdep.h (struct regcache): Forward declare.
2899 (struct ia64_infcall_ops): New struct type.
2900 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
2902 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
2903 Renames ia64_find_global_pointer.
2904 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
2905 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
2906 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
2908 (ia64_infcall_ops): New static global constant.
2909 (ia64_gdbarch_init): Set tdep->infcall_ops.
2910 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
2911 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
2912 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
2913 (ia64_hpux_dummy_code): New static global constant.
2914 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
2915 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
2916 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
2918 (ia64_hpux_infcall_ops): New static global constant.
2919 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
2920 for inferior function calls to work properly on ia64-hpux.
2922 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2924 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
2925 * ia64-tdep.h (struct frame_info): forward declaration.
2926 (struct gdbarch_tdep): Add field size_of_register_frame.
2927 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
2928 to determine the size of the register frame.
2929 (ia64_size_of_register_frame): New function.
2930 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
2931 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
2932 (IA64_HPUX_UREG_REASON): New macro.
2933 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
2935 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
2936 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
2937 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
2940 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2942 Add support for ia64-hpux.
2943 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
2944 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
2946 * configure.host: Add handling for ia64-hpux hosts. Add associated
2948 * configure.tgt: Add handling for ia64-hpux targets.
2949 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
2950 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
2951 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
2953 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2955 [ttrace] Compute thread list immediately after attach.
2956 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
2958 (inf_ttrace_attach): Use it.
2960 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2962 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
2963 if we could not determine the frame's function address. Instead,
2964 use the frame's PC, and then continue.
2966 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2968 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
2969 not already defined.
2971 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2973 * ia64-tdep.c (ia64_struct_type_p): New function.
2974 (ia64_extract_return_value): Handle integral values that are
2975 less than 8 bytes long.
2976 (ia64_push_dummy_call): Likewise.
2978 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2980 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
2981 floatformat_ia64_ext.
2982 (floatformat_ia64_ext_big): New static const.
2983 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
2985 2011-01-12 Tom Tromey <tromey@redhat.com>
2987 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
2989 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
2990 (mi_cmd_thread_list_ids): Likewise.
2991 (mi_cmd_data_list_changed_registers): Likewise.
2992 (mi_cmd_data_list_register_values): Likewise.
2993 (mi_cmd_data_write_register_values): Likewise.
2994 (mi_cmd_data_evaluate_expression): Likewise.
2995 (mi_cmd_data_read_memory): Likewise.
2996 (mi_cmd_data_read_memory_bytes): Likewise.
2997 (mi_cmd_data_write_memory): Likewise.
2998 (mi_cmd_enable_timings): Likewise.
2999 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
3000 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
3001 (mi_cmd_var_delete): Likewise.
3002 (mi_cmd_var_set_format): Likewise.
3003 (mi_cmd_var_show_format): Likewise.
3004 (mi_cmd_var_info_num_children): Likewise.
3005 (mi_cmd_var_list_children): Likewise.
3006 (mi_cmd_var_info_type): Likewise.
3007 (mi_cmd_var_info_expression): Likewise.
3008 (mi_cmd_var_show_attributes): Likewise.
3009 (mi_cmd_var_assign): Likewise.
3010 (mi_cmd_var_update): Likewise.
3011 (mi_cmd_enable_pretty_printing): Likewise.
3012 (mi_cmd_var_set_update_range): Likewise.
3013 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
3015 (mi_cmd_target_file_put): Likewise.
3016 (mi_cmd_target_file_delete): Likewise.
3017 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
3019 (mi_cmd_stack_info_depth): Likewise.
3020 (mi_cmd_stack_list_locals): Likewise.
3021 (mi_cmd_stack_list_args): Likewise.
3022 (mi_cmd_stack_select_frame): Likewise.
3023 (mi_cmd_stack_select_frame): Likewise.
3024 (mi_cmd_stack_info_frame): Likewise.
3025 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
3027 (mi_cmd_file_list_exec_source_files): Likewise.
3028 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
3029 (mi_cmd_env_cd): Likewise.
3030 (mi_cmd_env_path): Likewise.
3031 (mi_cmd_env_dir): Likewise.
3032 (mi_cmd_inferior_tty_show): Likewise.
3033 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
3034 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
3035 (mi_cmd_break_watch): Likewise.
3037 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
3039 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
3040 (ppc_linux_insert_hw_breakpoint): Likewise.
3041 (ppc_linux_remove_hw_breakpoint): Likewise.
3042 (ppc_linux_insert_watchpoint): Likewise.
3044 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
3045 Jan Kratochvil <jan.kratochvil@redhat.com>
3047 PR fortran/11104 and DWARF unbound arrays detection.
3048 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
3049 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
3050 unspecified upper bound.
3051 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
3052 variables array_size_array, tmp_type and offset_item. New variable
3053 array. Remove call to f77_get_upperbound. New variables array_type
3054 and index. Call value_subscripted_rvalue for each dimenasion. Remove
3055 the final call to deprecated_set_value_type.
3057 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3059 Make value allocations more lazy.
3060 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
3061 instead of allocate_value and set_value_lazy when possible.
3062 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
3063 instead of allocate_value and set_value_lazy.
3064 * findvar.c (value_of_register_lazy): Likewise.
3065 (read_var_value): Remove V preallocation, call just check_typedef in
3066 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
3067 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
3068 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
3069 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
3070 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
3071 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
3072 the end, remove set_value_lazy there.
3073 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
3074 instead of allocate_value and set_value_lazy when possible.
3075 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
3076 * value.c (allocate_computed_value): Use allocate_value_lazy instead
3077 of allocate_value and set_value_lazy.
3078 (value_from_contents_and_address): Use allocate_value_lazy instead of
3079 allocate_value and set_value_lazy when possible.
3081 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
3083 * disasm.c (dump_insns): Support dumping opcodes for MI.
3084 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
3085 dumping of instruction opcodes.
3087 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
3089 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
3092 2011-01-11 Tom Tromey <tromey@redhat.com>
3094 * thread.c (do_captured_thread_select): Emit newline before
3097 2011-01-11 Michael Snyder <msnyder@vmware.com>
3099 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
3100 * score-tdep.c: Ditto.
3101 * score-tdep.h: Ditto.
3102 * ser-base.c: Ditto.
3103 * ser-go32.c: Ditto.
3106 * ser-mingw.c: Ditto.
3107 * ser-pipe.c: Ditto.
3109 * ser-unix.c: Ditto.
3110 * sh64-tdep.c: Ditto.
3111 * shnbsd-nat.c: Ditto.
3115 * solib-darwin.c: Ditto.
3116 * solib-frv.c: Ditto.
3118 * solib-irix.c: Ditto.
3119 * solib-osf.c: Ditto.
3120 * solib-pa64.c: Ditto.
3121 * solib-som.c: Ditto.
3122 * solib-spu.c: Ditto.
3123 * solib-sunos.c: Ditto.
3124 * solib-svr4.c: Ditto.
3126 * sol-thread.c: Ditto.
3130 * sparc64-linux-tdep.c: Ditto.
3131 * sparc64-tdep.c: Ditto.
3132 * sparc-linux-nat.c: Ditto.
3133 * sparc-linux-tdep.c: Ditto.
3134 * sparc-sol2-nat.c: Ditto.
3135 * sparc-sol2-tdep.c: Ditto.
3136 * sparc-tdep.c: Ditto.
3137 * sparc-tdep.h: Ditto.
3138 * spu-tdep.c: Ditto.
3139 * stabsread.c: Ditto.
3140 * stabsread.h: Ditto.
3148 * target-descriptions.c: Ditto.
3149 * target-descriptions.h: Ditto.
3151 * target-memory.c: Ditto.
3152 * terminal.h: Ditto.
3155 * tracepoint.c: Ditto.
3156 * tracepoint.h: Ditto.
3157 * trad-frame.h: Ditto.
3158 * typeprint.c: Ditto.
3160 2011-01-11 Michael Snyder <msnyder@vmware.com>
3162 * ui-file.c: Comment cleanup, mostly periods and spaces.
3167 * v850-tdep.c: Ditto.
3168 * valarith.c: Ditto.
3170 * valprint.c: Ditto.
3171 * valprint.h: Ditto.
3176 * vax-tdep.c: Ditto.
3180 * windows-nat.c: Ditto.
3181 * windows-tdep.c: Ditto.
3182 * xcoffread.c: Ditto.
3183 * xcoffsolib.c: Ditto.
3184 * xml-support.c: Ditto.
3185 * xstormy16-tdep.c: Ditto.
3186 * xtensa-tdep.c: Ditto.
3187 * xtensa-tdep.h: Ditto.
3189 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3191 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
3192 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
3194 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3195 Thiago Jung Bauermann <bauerman@br.ibm.com>
3197 Implement support for PowerPC BookE ranged watchpoints.
3199 (struct breakpoint_ops) <resources_needed>: New method.
3200 Initialize to NULL in all existing breakpoint_ops instances.
3201 (struct breakpoint) <exact>: New field.
3202 (target_exact_watchpoints): Declare external global.
3203 * breakpoint.c (target_exact_watchpoints): New global flag.
3204 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
3205 b->enable_state to bp_enabled before calling
3206 hw_watchpoint_used_count.
3207 (hw_watchpoint_used_count): Iterate over all bp_locations in a
3208 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
3210 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
3211 if the watchpoint is exact.
3212 (resources_needed_watchpoint): New function.
3213 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
3214 (watch_command_1): Set b->exact if the user asked for an exact
3215 watchpoint and one can be set.
3216 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
3217 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
3218 the user asks for an exact watchpoint and one can be set. Return
3219 number of needed debug registers to watch the expression.
3220 * gdbtypes.c (is_scalar_type): New function, based on
3221 valprint.c:scalar_type_p.
3222 (is_scalar_type_recursive): New function.
3223 * gdbtypes.h (is_scalar_type_recursive): Declare.
3224 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
3225 handle regions when ranged watchpoints are available.
3226 (create_watchpoint_request): New function.
3227 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
3228 create_watchpoint_request.
3229 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
3230 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
3231 `set powerpc' and `show powerpc' commands.
3232 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
3233 Mention documentation comment in the target macro.
3234 (target_region_ok_for_hw_watchpoint): Document return value.
3236 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3238 * breakpoint.c (update_watchpoint): Decide on using a software or
3239 hardware watchpoint after the bp_locations are created.
3241 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3243 Convert hardware watchpoints to use breakpoint_ops.
3244 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
3245 <insert_location>: ... this. Return int instead of void.
3246 Accept pointer to struct bp_location instead of pointer to
3247 struct breakpoint. Adapt all implementations.
3248 (breakpoint_ops) <remove>: Rename to...
3249 <remove_location>: ... this. Accept pointer to struct bp_location
3250 instead of pointer to struct breakpoint. Adapt all implementations.
3251 * breakpoint.c (insert_catchpoint): Delete function.
3252 (insert_bp_location): Call the watchpoint or catchpoint's
3253 breakpoint_ops.insert method.
3254 (remove_breakpoint_1): Call the watchpoint or catchpoint's
3255 breakpoint_ops.remove method.
3256 (insert_watchpoint, remove_watchpoint): New functions.
3257 (watchpoint_breakpoint_ops): New structure.
3258 (watch_command_1): Initialize the OPS field.
3259 * inf-child.c (inf_child_insert_fork_catchpoint)
3260 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
3261 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
3262 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
3264 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
3265 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
3266 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
3267 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
3268 * target.c (update_current_target): Change default implementation of
3269 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
3270 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
3271 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
3272 to_set_syscall_catchpoint to return_one.
3273 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
3274 (debug_to_insert_exec_catchpoint): Report return value.
3275 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
3276 (to_insert_exec_catchpoint): Change declaration to return int instead
3279 2011-01-11 Michael Snyder <msnyder@vmware.com>
3281 * arm-tdep.c: Internationalization.
3284 * fork-child.c: Ditto.
3285 * nto-procfs.c: Ditto.
3286 * ppc-sysv-tdep.c: Ditto.
3288 * remote-mips.c: Ditto.
3290 * rs6000-nat.c: Ditto.
3291 * rs6000-tdep.c: Ditto.
3295 * xml-support.c: Ditto.
3296 * mi/mi-cmd-break.c: Ditto.
3297 * mi/mi-cmd-var.c: Ditto.
3298 * mi/mi-interp.c: Ditto.
3299 * mi/mi-main.c: Ditto.
3301 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
3303 * remote-sim.c (gdbsim_store_register): Update API to
3304 sim_store_register to check more error conditions.
3306 2011-01-10 Michael Snyder <msnyder@vmware.com>
3308 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
3309 * nto-tdep.c: Ditto.
3310 * nto-tdep.h: Ditto.
3311 * objc-exp.y: Ditto.
3312 * objc-lang.c: Ditto.
3313 * objfiles.c: Ditto.
3314 * objfiles.h: Ditto.
3315 * observer.c: Ditto.
3316 * opencl-lang.c: Ditto.
3319 * parser-defs.h: Ditto.
3322 * posix-hdep.c: Ditto.
3323 * ppcbug-rom.c: Ditto.
3324 * ppc-linux-nat.c: Ditto.
3325 * ppc-linux-tdep.c: Ditto.
3326 * ppc-linux-tdep.h: Ditto.
3327 * ppcnbsd-tdep.c: Ditto.
3328 * ppcobsd-tdep.c: Ditto.
3329 * ppcobsd-tdep.h: Ditto.
3330 * ppc-sysv-tdep.c: Ditto.
3331 * ppc-tdep.h: Ditto.
3332 * printcmd.c: Ditto.
3333 * proc-abi.c: Ditto.
3334 * proc-flags.c: Ditto.
3336 * proc-utils.h: Ditto.
3337 * progspace.h: Ditto.
3338 * prologue-value.c: Ditto.
3339 * prologue-value.h: Ditto.
3340 * psympriv.h: Ditto.
3342 * p-typeprint.c: Ditto.
3343 * p-valprint.c: Ditto.
3344 * ravenscar-sparc-thread.c: Ditto.
3345 * ravenscar-thread.c: Ditto.
3346 * ravenscar-thread.h: Ditto.
3348 * regcache.c: Ditto.
3349 * regcache.h: Ditto.
3351 * remote-fileio.c: Ditto.
3352 * remote-fileio.h: Ditto.
3354 * remote-m32r-sdi.c: Ditto.
3355 * remote-mips.c: Ditto.
3356 * remote-sim.c: Ditto.
3357 * rs6000-aix-tdep.c: Ditto.
3358 * rs6000-nat.c: Ditto.
3359 * rs6000-tdep.c: Ditto.
3361 2011-01-10 Michael Snyder <msnyder@vmware.com>
3363 * charset.c (validate): Internationalization.
3364 * coffread.c (read_one_sym): Ditto.
3365 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
3366 * h8300-tdep.c (H8300_extract_return_value): Ditto.
3367 * inflow.c (new_tty): Ditto.
3368 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
3369 * m32c-tdep.c (m32c_return_value): Ditto.
3370 * mep-tdep.c (mep_store_return_value): Ditto.
3371 * score-tdep.c (score7_fetch_insn): Ditto.
3372 * ser-mingw.c (pipe_windows_open): Ditto.
3373 * sh64-tdep.c (sh64_extract_return_value): Ditto.
3374 * spu-tdep.c (spu_register_type): Ditto.
3375 * tracepoint.c (trace_find_command): Ditto.
3376 * valarith.c (value_pos): Ditto.
3378 2011-01-10 Joel Brobecker <brobecker@adacore.com>
3380 * ada-valprint.c (printstr): Minor comment reformatting.
3382 2011-01-08 Michael Snyder <msnyder@vmware.com>
3384 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
3387 2011-01-08 Michael Snyder <msnyder@vmware.com>
3389 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
3390 * hppa-hpux-tdep.c: Ditto.
3391 * hppa-linux-nat.c: Ditto.
3392 * hppa-linux-tdep.c: Ditto.
3393 * hppanbsd-tdep.c: Ditto.
3394 * hppa-tdep.c: Ditto.
3395 * hppa-tdep.h: Ditto.
3396 * hpux-thread.c: Ditto.
3397 * i386-cygwin-tdep.c: Ditto.
3398 * i386-darwin-nat.c: Ditto.
3399 * i386gnu-nat.c: Ditto.
3400 * i386-linux-nat.c: Ditto.
3401 * i386-linux-tdep.c: Ditto.
3402 * i386-nat.c: Ditto.
3403 * i386-nat.h: Ditto.
3404 * i386nbsd-tdep.c: Ditto.
3405 * i386-sol2-nat.c: Ditto.
3406 * i386-stub.c: Ditto.
3407 * i386-tdep.c: Ditto.
3408 * i386-tdep.h: Ditto.
3409 * i387-tdep.c: Ditto.
3410 * ia64-linux-nat.c: Ditto.
3411 * ia64-linux-tdep.c: Ditto.
3412 * ia64-tdep.c: Ditto.
3416 * inferior.c: Ditto.
3417 * inferior.h: Ditto.
3423 * iq2000-tdep.c: Ditto.
3424 * irix5-nat.c: Ditto.
3430 * jv-typeprint.c: Ditto.
3431 * jv-valprint.c: Ditto.
3432 * language.c: Ditto.
3433 * language.h: Ditto.
3434 * linespec.c: Ditto.
3435 * linux-fork.c: Ditto.
3436 * linux-nat.c: Ditto.
3437 * linux-thread-db.c: Ditto.
3438 * lm32-tdep.c: Ditto.
3440 2011-01-08 Michael Snyder <msnyder@vmware.com>
3442 * m2-exp.y: Comment cleanup, mostly periods and spaces.
3444 * m2-typeprint.c: Ditto.
3445 * m2-valprint.c: Ditto.
3446 * m32c-tdep.c: Ditto.
3447 * m32r-linux-nat.c: Ditto.
3448 * m32r-rom.c: Ditto.
3449 * m32r-tdep.c: Ditto.
3450 * m32r-tdep.h: Ditto.
3451 * m68hc11-tdep.c: Ditto.
3452 * m58klinux-nat.c: Ditto.
3453 * m68k-tdep.c: Ditto.
3454 * m88k-tdep.c: Ditto.
3455 * m88k-tdep.h: Ditto.
3456 * machoread.c: Ditto.
3457 * macrocmd.c: Ditto.
3458 * macroexp.c: Ditto.
3459 * macrotab.c: Ditto.
3462 * mdebugread.c: Ditto.
3463 * mdebugread.h: Ditto.
3466 * memory-map.h: Ditto.
3467 * mep-tdep.c: Ditto.
3468 * microblaze-rom.c: Ditto.
3469 * microblaze-tdep.c: Ditto.
3471 * mips-irix-tdep.c: Ditto.
3472 * mips-linux-nat.c: Ditto.
3473 * mips-linux-tdep.c: Ditto.
3474 * mips-linux-tdep.h: Ditto.
3475 * mipsnbsd-nat.c: Ditto.
3476 * mipsnbsd-tdep.c: Ditto.
3477 * mipsread.c: Ditto.
3478 * mips-tdep.c: Ditto.
3479 * mips-tdep.h: Ditto.
3480 * mn10300-linux-tdep.c: Ditto.
3481 * mn10300-tdep.c: Ditto.
3482 * mn10300-tdep.h: Ditto.
3485 * moxie-tdep.c: Ditto.
3486 * moxie-tdep.h: Ditto.
3489 2011-01-08 Mike Frysinger <vapier@gentoo.org>
3491 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
3493 2011-01-08 Robert Millan <rmh@gnu.org>
3495 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
3497 2011-01-07 Michael Snyder <msnyder@vmware.com>
3499 * charset.c (_initialize_charset): Fix typo in string.
3501 2011-01-07 Michael Snyder <msnyder@vmware.com>
3503 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
3505 * tui/tui-layout.c (tui_set_layout_for_display_command):
3506 Split line so that operator goes to beginning of line.
3507 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
3508 assignment out of if statement.
3510 2011-01-07 Michael Snyder <msnyder@vmware.com>
3512 * ada-lang.c: Comment cleanup, mostly periods and spaces.
3513 * ada-lang.h: Ditto.
3514 * ada-tasks.c: Ditto.
3515 * ada-valprint.c: Ditto.
3516 * aix-threads.c: Ditto.
3517 * alpha-linux-nat.c: Ditto.
3518 * alpha-linux-tdep.c: Ditto.
3519 * alpha-mdebug-tdep.c: Ditto.
3520 * alpha-nat.c: Ditto.
3521 * alpha-osf1-tdep.c: Ditto.
3522 * alpha-tdep.c: Ditto.
3523 * alphabsd-nat.c: Ditto.
3524 * alphabsd-tdep.c: Ditto.
3525 * amd64-darwin-tdep.c: Ditto.
3526 * amd64-linux-nat.c: Ditto.
3527 * amd64-linux-tdep.c: Ditto.
3528 * amd64-sol2-tdep.c: Ditto.
3529 * amd64-tdep.c: Ditto.
3530 * amd64-fbsd-tdep.c: Ditto.
3531 * amd64-nbsd-tdep.c: Ditto.
3532 * amd64-obsd-tdep.c: Ditto.
3533 * amd64-linux-nat.c: Ditto.
3534 * amd64-linux-tdep.c: Ditto.
3535 * arm-tdep.c: Ditto.
3536 * arm-tdep.h: Ditto.
3537 * armnbsd-nat.c: Ditto.
3538 * avr-tdep.c: Ditto.
3539 * bfin-tdep.c: Ditto.
3541 * c-typeprintc: Ditto.
3542 * c-valprint.c: Ditto.
3543 * coff-pe-read.h: Ditto.
3544 * coffreead.c: Ditto.
3545 * cris-tdep.c: Ditto.
3547 * darwin-nat-info.c: Ditto.
3548 * darwin-nat.c: Ditto.
3549 * dbug-rom.c: Ditto.
3553 * dec-thread.c: Ditto.
3555 * demangle.c: Ditto.
3556 * dicos-tdep.c: Ditto.
3557 * dictionary.c: Ditto.
3558 * dictionary.h: Ditto.
3559 * dink32-rom.c: Ditto.
3561 * doublest.c: Ditto.
3563 * dummy-frame.c: Ditto.
3564 * dwarf2-frame.c: Ditto.
3565 * dwarf2expr.c: Ditto.
3566 * dwarf2loc.c: Ditto.
3567 * dwarf2read.c: Ditto.
3571 * event-top.h: Ditto.
3572 * exceptions.c: Ditto.
3573 * exceptions.h: Ditto.
3575 * expprint.c: Ditto.
3576 * expression.h: Ditto.
3580 * f-typeprint.c: Ditto.
3581 * f-valprint.c: Ditto.
3582 * fbsd-nat.c: Ditto.
3584 * fork-child.c: Ditto.
3587 * frv-linux-tdep.c: Ditto.
3588 * frv-tdep.c: Ditto.
3590 * gdb-stabs.h: Ditto.
3591 * gdb_assert.h: Ditto.
3592 * gdb_string.h: Ditto.
3593 * gdb_thread_db.h: Ditto.
3594 * gdb_wait.h: Ditto.
3595 * gdbarch.sh: Ditto.
3597 * gdbthread.h: Ditto.
3598 * gdbtypes.c: Ditto.
3599 * gdbtypes.h: Ditto.
3602 * gnu-v2-abi.c: Ditto.
3603 * gnu-v3-abi.c: Ditto.
3604 * go32-nat.c: Ditto.
3605 * gdbarch.c: Regenerate.
3606 * gdbarch.h: Regenerate.
3608 2011-01-07 Michael Snyder <msnyder@vmware.com>
3610 * ax-gdb.c: Adjust some long output strings.
3611 * breakpoint.c: Ditto.
3616 * linux-nat.c: Ditto.
3617 * solib-pa64.c: Ditto.
3618 * solib-som.c: Ditto.
3620 2011-01-06 Tom Tromey <tromey@redhat.com>
3624 * python/python.c (GdbMethods): Add "newest_frame" method.
3625 * python/python-internal.h (gdbpy_newest_frame): Declare.
3626 * python/py-frame.c (gdbpy_newest_frame): New function.
3628 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3630 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
3631 * jit.c (jit_debug): New variable.
3632 (show_jit_debug): New function.
3633 (struct target_buffer): Use ULONGEST.
3634 (bfd_open_from_target_memory): Likewise.
3635 (jit_register_code, jit_inferior_init): Add debug output.
3636 (_initialize_jit): Register "debug jit" command.
3638 2011-01-06 Tom Tromey <tromey@redhat.com>
3640 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
3641 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
3644 2011-01-06 Tom Tromey <tromey@redhat.com>
3646 * python/py-frame.c (frapy_block): Use get_frame_block.
3648 2011-01-06 Joel Brobecker <brobecker@adacore.com>
3650 Do not stop on SIGPRIO signals by default
3651 * infrun.c (_initialize_infrun): Unset signal_stop and
3652 signal_print for TARGET_SIGNAL_PRIO.
3654 2011-01-06 Joel Brobecker <brobecker@adacore.com>
3656 * ada-tasks.c: Fix style violation in comment.
3658 2011-01-06 Joel Brobecker <brobecker@adacore.com>
3660 * linespec.c (decode_compound, find_method): Remove trailing \n
3661 at end of error string.
3662 * solib-irix.c (irix_current_sos): Likewise.
3663 * varobj.c (uninstall_variable): Likewise.
3665 2011-01-06 Joel Brobecker <brobecker@adacore.com>
3667 * copyright.py: New script.
3668 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
3669 Launch emacs without exec'ing. Call copyright.py afterwards.
3671 2011-01-05 Michael Snyder <msnyder@vmware.com>
3673 * addrmap.c: Shorten lines of >= 80 columns.
3674 * arch-utils.c: Ditto.
3675 * arch-utils.h: Ditto.
3677 * ax-general.c: Ditto.
3679 * blockframe.c: Ditto.
3680 * breakpoint.c: Ditto.
3681 * buildsym.c: Ditto.
3683 * c-typeprint.c: Ditto.
3685 * coffread.c: Ditto.
3689 * cp-namespace.c: Ditto.
3690 * cp-support.c: Ditto.
3691 * dbug-rom.c: Ditto.
3696 * dictionary.c: Ditto.
3698 * doublest.c: Ditto.
3699 * dwarf2-frame.c: Ditto.
3700 * dwarf2expr.c: Ditto.
3701 * dwarf2loc.c: Ditto.
3702 * dwarf2read.c: Ditto.
3705 * event-loop.c: Ditto.
3706 * event-loop.h: Ditto.
3707 * exceptions.h: Ditto.
3709 * expprint.c: Ditto.
3710 * expression.h: Ditto.
3712 * f-valprint.c: Ditto.
3714 * frame-base.c: Ditto.
3715 * frame-unwind.c: Ditto.
3716 * frame-unwind.h: Ditto.
3720 * gdb-stabs.h: Ditto.
3721 * gdb_assert.h: Ditto.
3722 * gdb_dirent.h: Ditto.
3723 * gdb_obstack.h: Ditto.
3725 * gdbtypes.c: Ditto.
3726 * gdbtypes.h: Ditto.
3727 * inf-ttrace.c: Ditto.
3732 * inline-frame.h: Ditto.
3733 * language.c: Ditto.
3734 * language.h: Ditto.
3735 * libunwind-frame.c: Ditto.
3736 * libunwind-frame.h: Ditto.
3737 * linespec.c: Ditto.
3738 * linux-nat.c: Ditto.
3739 * linux-nat.h: Ditto.
3740 * linux-thread-db.c: Ditto.
3741 * machoread.c: Ditto.
3742 * macroexp.c: Ditto.
3743 * macrotab.c: Ditto.
3746 * mdebugread.c: Ditto.
3751 * objfiles.c: Ditto.
3752 * objfiles.h: Ditto.
3754 * p-typeprint.c: Ditto.
3755 * p-valprint.c: Ditto.
3757 * printcmd.c: Ditto.
3758 * proc-events.c: Ditto.
3760 * progspace.c: Ditto.
3761 * progspace.h: Ditto.
3762 * psympriv.h: Ditto.
3765 * regcache.c: Ditto.
3766 * regcache.h: Ditto.
3767 * remote-fileio.c: Ditto.
3769 * ser-mingw.c: Ditto.
3771 * ser-unix.c: Ditto.
3774 * solib-frv.c: Ditto.
3775 * solib-irix.c: Ditto.
3776 * solib-osf.c: Ditto.
3777 * solib-pa64.c: Ditto.
3778 * solib-som.c: Ditto.
3779 * solib-sunos.c: Ditto.
3780 * solib-svr4.c: Ditto.
3781 * solib-target.c: Ditto.
3785 * stabsread.c: Ditto.
3786 * stabsread.c: Ditto.
3789 * symfile-mem.c: Ditto.
3795 * target-descriptions.c: Ditto.
3796 * target-memory.c: Ditto.
3799 * terminal.h: Ditto.
3802 * tracepoint.c: Ditto.
3803 * tracepoint.h: Ditto.
3807 * user-regs.c: Ditto.
3808 * user-regs.h: Ditto.
3810 * valarith.c: Ditto.
3812 * valprint.c: Ditto.
3813 * valprint.h: Ditto.
3818 * xcoffread.c: Ditto.
3819 * xcoffsolib.c: Ditto.
3820 * xcoffsolib.h: Ditto.
3821 * xml-syscall.c: Ditto.
3822 * xml-tdesc.c: Ditto.
3824 2011-01-05 Michael Snyder <msnyder@vmware.com>
3826 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
3827 * cli/cli-decode.c: Ditto.
3828 * cli/cli-dump.c: Ditto.
3829 * cli/cli-logging.c: Ditto.
3830 * cli/cli-script.c: Ditto.
3831 * cli/cli-setshow.c: Ditto.
3832 * common/signals.c: Ditto.
3833 * mi/mi-cmd-break.c: Ditto.
3834 * mi/mi-cmd-disas.c: Ditto.
3835 * mi/mi-cmd-stack.c: Ditto.
3836 * mi/mi-cmd-var.c: Ditto.
3837 * mi/mi-cmds.c: Ditto.
3838 * mi/mi-common.h: Ditto.
3839 * mi/mi-console.c: Ditto.
3840 * mi/mi-interp.c: Ditto.
3841 * mi/mi-main.c: Ditto.
3842 * osf-share/cma_attr.c: Ditto.
3843 * osf-share/cma_deb_core.h: Ditto.
3844 * osf-share/cma_debug_client.h: Ditto.
3845 * osf-share/cma_handle.h: Ditto.
3846 * osf-share/cma_mutex.h: Ditto.
3847 * osf-share/cma_stack_int.h: Ditto.
3848 * osf-share/cma_tcb_defs.h: Ditto.
3849 * python/py-auto-load.c: Ditto.
3850 * python/py-breakpoint.c: Ditto.
3851 * python/py-cmd.c: Ditto.
3852 * python/py-frame.c: Ditto.
3853 * python/py-objfile.c: Ditto.
3854 * python/py-param.c: Ditto.
3855 * python/py-progspace.c: Ditto.
3856 * python/py-symbol.c: Ditto.
3857 * python/py-value.c: Ditto.
3858 * python/python-internal.h: Ditto.
3859 * python/python.c: Ditto.
3860 * tui/tui-data.c: Ditto.
3861 * tui/tui-disasm.c: Ditto.
3862 * tui/tui-hooks.c: Ditto.
3863 * tui/tui-io.c: Ditto.
3864 * tui/tui-layout.c: Ditto.
3865 * tui/tui-regs.c: Ditto.
3866 * tui/tui-source.c: Ditto.
3867 * tui/tui-stack.c: Ditto.
3868 * tui/tui-win.c: Ditto.
3869 * tui/tui-windata.c: Ditto.
3870 * tui/tui-winsource.c: Ditto.
3872 2011-01-05 Joel Brobecker <brobecker@adacore.com>
3874 * configure.ac, gdb.1: Copyright year update.
3876 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3878 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
3879 this_pc_in_block, morestack_msym and morestack_name. Check for
3880 "__morestack" minimal symbol there.
3882 2011-01-03 Joel Brobecker <brobecker@adacore.com>
3884 * symfile.c (find_sym_fns): Add call to dont_repeat.
3886 2011-01-01 Joel Brobecker <brobecker@adacore.com>
3888 Copyright year update in most files (performed by copyright.sh).
3890 2011-01-01 Joel Brobecker <brobecker@adacore.com>
3892 * top.c (print_gdb_version): Update copyright year in version output.
3894 For older changes see ChangeLog-2010.
3900 version-control: never