1 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
4 there's always a frame. Use get_frame_pc_if_available instead of
5 get_frame_pc, and if there's no PC available, don't look up a
8 2011-03-18 Pedro Alves <pedro@codesourcery.com>
10 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
13 2011-03-18 Pedro Alves <pedro@codesourcery.com>
15 * tracepoint.c (set_traceframe_context): Handle unavailable PC
18 2011-03-18 Pedro Alves <pedro@codesourcery.com>
20 * frame.h (frame_unwind_caller_pc_if_available): Declare.
21 * frame.c (frame_unwind_caller_pc_if_available): New.
22 * stack.c (frame_info): Handle unavailable PC.
24 2011-03-18 Pedro Alves <pedro@codesourcery.com>
26 * frame.c (frame_unwind_pc): Rename to ...
27 (frame_unwind_pc_if_available): ... this. New `pc' output
28 parameter. Change return type to int. Gracefully handle
29 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
30 happened, or 1 otherwise.
31 (frame_unwind_pc): Reimplement on top of
32 frame_unwind_pc_if_available.
33 (get_frame_func): Rename to ...
34 (get_frame_func_if_available): New `pc' output parameter. Change
35 return type to int. Gracefully handle the PC not being available.
36 (get_frame_func): Reimplement on top of
37 get_frame_func_if_available.
38 (select_frame): Handle the PC being unavailable.
39 (get_prev_frame): Handle the PC being unavailable.
40 (get_frame_pc_if_available): New.
41 (get_frame_address_in_block_if_available): New.
42 (find_frame_sal): Handle the frame PC not being available.
43 * frame.h (get_frame_pc_if_available): Declare.
44 (get_frame_address_in_block_if_available): Declare.
45 (get_frame_func_if_available): Declare.
46 * stack.c (print_frame_info): Handle the PC being unavailable.
47 (find_frame_funname): Ditto.
48 (print_frame): Handle the PC being unavailable.
49 (get_frame_language): Ditto.
50 * blockframe.c (get_frame_block): Ditto.
51 * macroscope.c (default_macro_scope): Ditto.
52 * tui/tui-stack.c (tui_show_frame_info): Ditto.
54 2011-03-18 Pedro Alves <pedro@codesourcery.com>
56 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
57 NOT_AVAILABLE_ERROR when evaluating the location expression.
59 2011-03-18 Pedro Alves <pedro@codesourcery.com>
61 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
62 returning that the register piece is unavailable/optimized out.
63 (write_pieced_value): Handle get_frame_register_bytes returning
64 that the register piece is unavailable/optimized out when doing a
65 read-modify write of a bitfield.
66 * findvar.c (value_from_register): Handle get_frame_register_bytes
67 returning that the register piece is unavailable/optimized out.
68 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
69 and `unavailablep'. Throw error on bad debug info. Use
70 frame_register instead of frame_register_read, to fill in the new
72 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
74 * valops.c: (value_assign): Adjust, and handle
75 get_frame_register_bytes failing.
76 * spu-tdep.c: Include exceptions.h.
77 (spu_software_single_step): Adjust, and handle
78 get_frame_register_bytes failing.
79 (spu_get_longjmp_target): Ditto.
80 * gdbarch.sh (register_to_value): Change to return int. New
81 parameters `optimizedp' and `unavailablep'.
82 * gdbarch.h, gdbarch.c: Regenerate.
83 * i386-tdep.c (i386_register_to_value): Adjust to new
84 gdbarch_register_to_value interface.
85 * i387-tdep.c (i387_register_to_value): Ditto.
86 * i387-tdep.h (i387_register_to_value): Ditto.
87 * alpha-tdep.c (alpha_register_to_value): Ditto.
88 * ia64-tdep.c (ia64_register_to_value): Ditto.
89 * m68k-tdep.c (m68k_register_to_value): Ditto.
90 * mips-tdep.c (mips_register_to_value): Ditto.
91 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
93 2011-03-18 Pedro Alves <pedro@codesourcery.com>
95 * findvar.c (value_of_register): Mark the value as unavailable, if
96 the register is unavailable.
97 * frame.h (frame_register_unwind): New `unavailablep' parameter.
98 (frame_register): New `unavailablep' parameter.
99 (frame_register_read): Update comment.
100 * frame.c (frame_register_unwind): New `unavailablep' parameter.
101 Set it if the register is unavailable. If the register is
102 unavailable, clear the output buffer.
103 (frame_register): New `unavailablep' parameter. Pass it down.
104 (frame_unwind_register): Adjust.
105 (put_frame_register): Adjust.
106 (frame_register_read): Adjust. Also return false if the register
108 (frame_register_unwind_location): Adjust.
109 * sentinel-frame.c (sentinel_frame_prev_register): If the register
110 is unavailable, mark the value accordingly.
111 * stack.c (frame_info): Handle unavailable registers.
113 2011-03-18 Pedro Alves <pedro@codesourcery.com>
115 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
116 simplify, using regcache_cooked_read.
118 2011-03-18 Pedro Alves <pedro@codesourcery.com>
120 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
121 (regcache_raw_read_unsigned, regcache_raw_read_signed)
122 (regcache_raw_read_unsigned, regcache_raw_read_part)
123 (regcache_cooked_read, regcache_cooked_read_signed)
124 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
125 (regcache_cooked_read_ftype): Change return to enum
127 * regcache.c: Include exceptions.h
128 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
129 (do_cooked_read): Change return to enum register_status. Always
130 forward to regcache_cooked_read.
131 (regcache_raw_read): Change return to enum register_status. If
132 the register is not REG_VALID, memset the buffer. Return the
134 (regcache_raw_read_signed): Handle non-REG_VALID registers and
135 return the register's status.
136 (regcache_raw_read_unsigned): Ditto.
137 (regcache_cooked_read): Change return to enum register_status.
138 Assert that with read-only regcaches, the register's status must
139 be known. If the regcache is read-only, and the register is not
140 REG_VALID, memset the buffer. Return the register's status.
141 (regcache_cooked_read_signed): Change return to enum
142 register_status. Handle non-REG_VALID registers and return the
144 (regcache_cooked_read_unsigned): Change return to enum
145 register_status. Handle non-REG_VALID registers and return the
147 (regcache_xfer_part, regcache_raw_read_part)
148 (regcache_cooked_read_part): Change return to enum
149 register_status. Return the register's status.
150 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
152 (regcache_dump): Handle unavailable cooked registers.
153 * frame.c (do_frame_register_read): Adjust interface to match
154 regcache_cooked_read_ftype.
155 * gdbarch.sh (pseudo_register_read): Change return to enum
157 * gdbarch.h, gdbarch.c: Regenerate.
159 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
161 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
162 register_status. If reading a raw register indicates the raw
163 register is not valid, return the raw register's status,
164 otherwise, return REG_VALID.
165 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
166 register_status. Handle non-REG_VALID raw registers and return
167 the register's status.
168 * arm-tdep.c (arm_neon_quad_read)
169 (arm_pseudo_read): Change return to enum register_status. Handle
170 non-REG_VALID raw registers and return the register's status.
171 * avr-tdep.c (avr_pseudo_register_read): Ditto.
172 * frv-tdep.c (frv_pseudo_register_read): Ditto.
173 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
174 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
175 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
177 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
178 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
179 (m32c_part_write, m32c_cat_read, m32c_cat_write)
180 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
181 (m32c_pseudo_register_read): Change return to enum
182 register_status. Adjust.
183 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
184 enum register_status. Return the register's status.
185 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
186 register_status. Return the register's status.
187 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
188 * mips-tdep.c (mips_pseudo_register_read): Ditto.
189 * mt-tdep.c (mt_pseudo_register_read): Ditto.
190 * rs6000-tdep.c (move_ev_register_func): New typedef.
191 (e500_move_ev_register): Use it. Change return to enum
192 register_status. Return the register's status.
193 (do_regcache_raw_read): New function.
194 (do_regcache_raw_write): New function.
195 (e500_pseudo_register_read): Change return to enum
196 register_status. Return the register's status. Use
197 do_regcache_raw_read.
198 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
199 (dfp_pseudo_register_read): Change return to enum register_status.
200 Return the register's status.
201 (vsx_pseudo_register_read): Ditto.
202 (efpr_pseudo_register_read): Ditto.
203 (rs6000_pseudo_register_read): Ditto.
204 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
205 register_status. Return the register's status.
206 * sh64-tdep.c (pseudo_register_read_portions): New function.
207 (sh64_pseudo_register_read): Change return to enum
208 register_status. Use pseudo_register_read_portions. Return the
210 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
211 register_status. Return the register's status.
212 * sh-tdep.c (pseudo_register_read_portions): New function.
213 (sh_pseudo_register_read): Change return to enum register_status.
214 Use pseudo_register_read_portions. Return the register's status.
215 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
216 enum register_status. Return the register's status.
217 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
218 * spu-tdep.c (spu_pseudo_register_read_spu)
219 (spu_pseudo_register_read): Ditto.
220 * xtensa-tdep.c (xtensa_register_read_masked)
221 (xtensa_pseudo_register_read): Ditto.
222 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
224 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
226 * python/py-value.c (valpy_getitem): Fix formatting of error function
229 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
231 ARI fixes: Add missing internationalization markups throughout
233 * darwin-nat-info.c: Ditto.
236 * mi/mi-main.c: Ditto.
238 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
240 ARI fixes: Add missing internationalization markups throughout
243 * cp-name-parser.y: Ditto.
249 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
251 ARI fixes: Messages should have no trailing new lines.
252 * darwin-nat.c (mach_check_error): Remove trailing new line from
253 warning function call message.
254 * record.c (bfdcore_read): Idem for error call.
256 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
258 * common/signals.c (target_signal_from_host): Add _ markup to error
259 function call message.
260 (target_signal_to_host): Add _ markup and remove trailing new line
261 from warning call message.
262 (target_signal_from_command): Add _ markup to error function call
265 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
269 * python/python.c (gdbpy_write): Accept a stream argument and
270 operate to the appropriate stream.
271 (gdbpy_flush): Likewise.
272 (_initialize_python): Add stream constants.
273 (finish_python_initialization): Add GdbOutputErrorFile class.
275 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
277 * MAINTAINERS: Add myself as a write-after-approval maintainer.
279 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
281 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
282 to store_signed_integer. Add debug message when relocating CALL
283 instructions. Fix formatting of debug message.
284 * i386-tdep.c (i386_relocate_instruction): Ditto.
286 2011-03-17 Joel Brobecker <brobecker@gnat.com>
288 * target.h (struct target_ops): Remove to_lookup_symbol field.
289 (target_lookup_symbol): Delete macro.
290 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
291 (update_current_target, setup_target_debug): Remove handling
292 of to_lookup_symbol target_ops field.
293 * ada-tasks.c (get_known_tasks_addr): Remove use of
294 target_lookup_symbol.
295 * coffread.c (coff_symtab_read): Likewise.
296 * dbxread.c (read_dbx_symtab): Ditto.
298 2011-03-17 Joel Brobecker <brobecker@gnat.com>
301 * configure.ac: Add getthrds declaration check.
302 * configure, config.in: Regenerate.
303 * aix-thread.c (getthrds): Declare only if not already declared
304 in procinfo.h. More declaration out of get_signaled_thread to
307 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
309 * python/py-symtab.c: Populate symtab_object_methods,
311 (stpy_is_valid): New function.
312 (salpy_is_valid): Ditto.
313 * python/py-symbol.c: Declare symbol_object_methods. Populate.
314 (sympy_is_valid): New function.
315 * python/py-objfile.c: Declare objfile_object_methods. Populate.
316 (objfpy_is_valid): New function.
317 * python/py-inferior.c: Populate inferior_object_methods.
318 (infpy_is_valid): New function.
319 * python/py-infthread.c: Populate thread_object_methods.
320 (thpy_is_valid): New function.
321 * python/py-block.c: Declare block_object_methods. Populate. Declare
322 block_iterator_object_methods. Populate.
323 (blpy_is_valid): New function.
324 (blpy_iter_is_valid): Ditto.
326 2011-03-16 Keith Seitz <keiths@redhat.com>
328 * linespec.c (find_methods): Canonicalize NAME before looking
330 (name_end): New function.
331 (keep_name_info): New function.
332 (decode_line_1): Use keep_name_info.
333 (decode_compound): Likewise.
334 * cli/cli-utils.h (remove_trailing_whitespace): New function.
335 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
338 * linespec.c (locate_first_half): Keep overload information, too.
339 (decode_compound): Use a string to represent break characters
341 If P points to a break character, do not increment it.
342 For C++ and Java, keep overload information and relevant keywords.
343 If we cannot find a symbol, search the minimal symbols.
346 * linespec.c (decode_compound): Rename SAVED_ARG to
348 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
350 Pass a valid block to lookup_symbol.
351 (lookup_prefix_sym): Likewise.
352 (find_method): Construct search name based on SYM_CLASS instead
354 * psymtab.c (lookup_partial_symbol): Add language parameter.
355 (lookup_symbol_aux_psymtabs): Likewise.
356 Don't assume that the psymtab we found was the right one. Search
357 for the desired symbol in the symtab to be certain.
358 (psymtab_search_name): New function.
359 (lookup_partial_symbol): Use psymtab_search_name.
360 Add language parameter.
361 (read_symtabs_for_function): Add language parameter and pass to
362 lookup_partial_symbol.
363 (find_symbol_file_from_partial): Likewise.
365 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
368 * dwarf2read.c (noop_record_line): New function.
369 (dwarf_decode_lines): Ignore line tables for GCd functions.
371 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
373 Fix ARI warnings about new lines at the end of messages, which
374 are unneeded as there is a new line added at the end of the message
376 * darwin-nat.c (darwin_stop_inferior): Ditto.
377 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
378 * dfp.c (decimal_to_number): Ditto.
379 * exec.c (print_section_info): Ditto.
380 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
381 * osdata.c (get_osdata): Ditto.
382 * record.c (bfdcore_write): Ditto.
383 * remote-mips.c (mips_readchar): Ditto.
384 * remote.c (read_ptid): Ditto.
385 * ser-mingw.c (ser_windows_raw): Ditto.
386 * tracepoint.c (add_local_symbols): Ditto.
387 * windows-nat.c (fake_create_process): Ditto.
389 2011-03-16 Tom Tromey <tromey@redhat.com>
391 * tracepoint.c (stop_tracing): Don't declare.
392 * event-top.c (after_char_processing_hook): Add `(void)'.
394 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
396 * NEWS: Add Parameter sub-classing description.
398 2011-03-16 Kai Tietz <ktietz@redhat.com>
400 * MAINTAINERS: Update my e-mail address.
402 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
404 * MAINTAINERS: Add myself for write after approval privileges.
406 2011-03-15 Michael Snyder <msnyder@vmware.com>
408 * frame.c (find_frame_sal): Assert sym is not null.
410 * dbxread.c (process_one_symbol): Assert 'name' is not null.
412 * objc-lang.c (selectors_info): Check strchr for null result.
414 * stabsread.c (define_symbol): Guard against bad stabstring input.
416 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
418 Remove trailing spaces and tabulations from pascal language
425 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
427 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
428 than LOW. Comment it.
429 (read_partial_die): Call complaint for inappropriate zero LOWPC or
430 HIGHPC not strictly higher than LOWPC.
432 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
434 Fix formatting of function declarations returning a pointer in
436 * varobj.c (varobj_add_child): Ditto.
437 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
438 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
440 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
442 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
443 for the "generic" vector ABI used with GCC 4.3 and later.
444 (ppc64_sysv_abi_return_value): Likewise.
446 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
448 * infcall.c (call_function_by_hand): Function return value is
449 always a non_lval, even when using struct_return.
451 2011-03-15 Pedro Alves <pedro@codesourcery.com>
453 * printcmd.c (ALL_DISPLAYS_SAFE): New.
454 (map_display_numbers): New.
455 (do_delete_display): New.
456 (undisplay_command): Use map_display_numbers.
457 (do_enable_disable_display): New.
458 (enable_disable_display_command): New function.
459 (enable_display): Delete.
460 (enable_display_command): New.
461 (disable_display_command): Reimplement.
462 (_initialize_printcmd): Adjust "enable display" command to use
463 `enable_display_command' as callback.
465 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
467 * NEWS: Add Python breakpoint 'stop' operation.
469 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
471 * NEWS: Delete duplicate entry. Fix typo.
473 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
475 Fix ARI warning about function names in first column.
476 Put prototype declaration on same line as return type.
479 * python/py-stopevent.h: Ditto.
480 For long function names, split parameters to
481 allow function name on same line as return type.
482 * solib-pa64.c: Ditto.
485 For long function declaration, use single line.
486 * hppa-tdep.h: Ditto.
489 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
491 * python/python.h: Declare gdbpy_should_stop and
492 gdbpy_breakpoint_has_py_cond.
493 * python/python.c: Add python.h to includes. Remove python.h from
494 HAVE_PYTHON definition
495 (gdbpy_should_stop): New dummy function.
496 (gdbpy_breakpoint_has_py_cond): New dummy function.
497 * python/py-breakpoint.c (bppy_init): Rewrite to allow
498 sub-classing capabilities.
499 (gdbpy_should_stop): New function.
500 (gdbpy_breakpoint_has_py_cond): New function.
501 (local_setattro): New function.
502 * breakpoint.c (condition_command): Add check for Python 'stop'
504 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
505 operation function as part of stop/continue tests.
507 2011-03-14 Tom Tromey <tromey@redhat.com>
510 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
511 (needs_frame_dwarf_call): Likewise.
513 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
515 Fix ARI warning about functions without parameters that do not
517 * breakpoint.c (all_tracepoints): Replace () by (void).
518 * f-exp.y (match_string_literal): Ditto.
520 * m2-exp.y (yylex): Ditto.
521 * mep-tdep.c (current_me_module): Ditto.
522 (current_options): Ditto.
523 (current_cop_data_bus_width): Ditto.
524 (current_cr_names): Ditto.
525 (current_cr_is_float): Ditto.
526 (current_ccr_names): Ditto.
527 * objc-exp.y (yylex): Ditto.
528 * p-exp.y (yylex): Ditto.
529 * remote.c (send_interrupt_sequence): Ditto.
530 * tracepoint.c (current_trace_status): Ditto.
531 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
532 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
534 2011-03-11 Michael Snyder <msnyder@vmware.com>
536 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
537 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
538 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
539 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
540 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
542 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
543 (delete_async_event_handler): Ditto.
545 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
547 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
549 * top.c (set_verbose): Assert showcmd was found.
551 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
553 * xtensa-tdep.c (warning_once): Correct style issues.
555 2011-03-11 Yao Qi <yao@codesourcery.com>
557 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
559 2011-03-11 Andreas Schwab <schwab@redhat.com>
561 * common/aclocal.m4: Remove.
563 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
565 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
566 (xtensa_write_register, xtensa_read_register): Likewise.
567 (xtensa_hextochar): Removed.
568 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
570 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
572 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
573 (xtensa_call0_frame_cache_t): Update comments. New fields added.
574 (xtensa_alloc_frame_cache): Add initialization for new fields.
575 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
576 (warning_once): New function.
577 (xtensa_insn_kind): New item c0opc_and.
578 (call0_classify_opcode): Add the case for AND instruction.
579 (call0_track_op): Change arguments. New local variable litbase.
580 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
581 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
583 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
584 (call0_analyze_prologue): Update the comments. Change arguments.
585 Add the variety of updates to handle extended prologues, which now can
586 conduct dynamic stack adjustments.
587 (call0_frame_cache): Likewise.
588 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
589 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
591 2011-03-10 Michael Snyder <msnyder@vmware.com>
593 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
594 (cmd_qtframe): Ditto.
595 (cmd_qtbuffer): Ditto.
596 (cmd_bigqtbuffer): Ditto.
598 2011-03-10 Tom Tromey <tromey@redhat.com>
600 * tracepoint.c (trace_actions_command): Update.
601 * thread.c (thread_apply_command): Update.
602 * reverse.c (delete_bookmark_command): Update.
603 (bookmarks_info): Update.
604 * printcmd.c (undisplay_command): Update.
605 * memattr.c (mem_enable_command): Update.
606 (mem_disable_command): Update.
607 (mem_delete_command): Update.
608 * inferior.c (detach_inferior_command): Update.
609 (kill_inferior_command): Update.
610 (remove_inferior_command): Update.
611 * cli/cli-utils.h (struct get_number_or_range_state): New.
612 (init_number_or_range): Declare.
613 (get_number_or_range): Update.
614 * cli/cli-utils.c (init_number_or_range): New function.
615 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
617 (number_is_in_list): Update.
618 * breakpoint.h (get_tracepoint_by_number): Update.
619 * breakpoint.c (map_breakpoint_numbers): Update for change to
621 (find_location_by_number): Use get_number, not
623 (trace_pass_set_count): New function.
624 (trace_pass_command): Update for change to get_number_or_range.
626 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
629 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
631 * python/py-param.c (add_setshow_generic): Add set/show callback
632 parameters. Register Python object context.
633 (get_show_value): New function.
634 (get_set_value): New function.
635 (call_doc_function): New function.
636 (get_doc_string): Move behind get_show_value/get_set_value.
638 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
640 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
642 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
644 * xtensa-tdep.c (xtensa_read_register): Add comment.
645 (xtensa_write_register): Likewise.
646 (xtensa_hextochar): Add comment and update to match coding conventions.
647 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
648 (execute_l32e, execute_s32e, execute_code): Update comments.
649 (xtensa_exception_handler_t): Update to match coding conventions.
650 (xtensa_insn_kind): Likewise.
652 2011-03-09 Michael Snyder <msnyder@vmware.com>
654 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
656 2011-03-09 Pedro Alves <pedro@codesourcery.com>
658 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
660 2011-03-09 Tom Tromey <tromey@redhat.com>
662 * thread.c (restore_selected_frame): Handle frame_level == -1.
663 (make_cleanup_restore_current_thread): Use
664 get_selected_frame_if_set.
665 * frame.h (get_selected_frame_if_set): Declare.
666 * frame.c (get_selected_frame_if_set): New function.
668 2011-03-09 Pedro Alves <pedro@codesourcery.com>
670 * cli/cli-cmds.c (shell_escape): Use lbasename.
671 * coffread.c (coff_start_symtab): Constify parameter.
672 (complete_symtab): Constify `name' parameter.
673 (coff_symtab_read): Constify `filestring' local.
674 (coff_getfilename): Constify return and `result' local.
676 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
677 * linux-fork.c (info_checkpoints_command): Use lbasename.
678 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
679 * minsyms.c (lookup_minimal_symbol): Use lbasename.
680 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
681 * procfs.c (procfs_make_note_section): Use lbasename.
682 * tui/tui-io.c (printable_part): Constity return and parameter.
684 (print_filename): Constify parameters, and local `s'.
685 (tui_rl_display_match_list): Constify local `temp'.
687 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
690 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
691 Fix DWARF-3+ DW_AT_accessibility default assumption.
692 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
693 cu->header.version >= 3.
695 2011-03-09 Yao Qi <yao@codesourcery.com>
697 * common/Makefile.in: Remove.
698 * common/configure: Remove.
699 * common/configure.ac: Remove.
701 2011-03-09 Yao Qi <yao@codesourcery.com>
704 2011-02-11 Yao Qi <yao@codesourcery.com>
706 * common/Makefile.in: Add copyright header.
708 2011-02-11 Yao Qi <yao@codesourcery.com>
710 * Makefile.in: Remove signals.o from COMMON_OBS. Link
712 * configure.ac: Add common to sub dir.
713 * configure: Regenerate.
715 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
717 * xtensa-tdep.c (call0_ret): New function.
718 (xtensa_skip_prologue): Speed up analysis.
720 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
722 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
723 while executing MI command -data-list-changed-registers.
725 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
727 * xtensa-tdep.c (xtensa_read_register): New function.
728 (xtensa_write_register): New function.
729 (xtensa_find_register_by_name): New function.
730 (xtensa_windowed_frame_cache): Update comments in type description.
731 (xtensa_frame_cache): Likewise.
732 (xtensa_window_interrupt_insn): New function.
733 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
734 (xtensa_insn_kind): Add new instructions.
735 (rwx_special_register): New function.
736 (call0_classify_opcode): Add new instructions to the analysis.
737 (a0_saved, a7_saved, a11_saved): New variables.
738 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
739 (execute_l32e): New function.
740 (execute_s32e): New function.
741 (xtensa_exception_handler_t): New type.
742 (execute_code): New function.
743 (xtensa_window_interrupt_frame_cache): New function to conduct frame
744 analysis for Xtensa Window Exception handlers.
746 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
748 * xtensa-tdep.c (TX_PS): New.
749 (windowing_enabled): Update to count for Call0 ABI.
750 (xtensa_hextochar): New.
751 (xtensa_init_reggroups): Make algorithm generic.
752 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
754 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
756 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
758 2011-03-08 Michael Snyder <msnyder@vmware.com>
760 * i386-tdep.c (i386_follow_jump): Check return value of
762 (i386_analyze_struct_return): Ditto.
763 (i386_skip_probe): Ditto.
764 (i386_match_insn): Ditto.
765 (i386_skip_noop): Ditto.
766 (i386_analyze_frame_setup): Ditto.
767 (i386_analyze_register_saves): Ditto.
768 (i386_skip_prologue): Ditto.
769 (i386_skip_main_prologue): Ditto.
771 * target.c (read_whatever_is_readable): Fix memory leak.
773 * i386-tdep.c (i386_process_record): Document fall through.
775 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
777 Fix DWARF-3+ DW_AT_accessibility default assumption.
778 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
779 cu->header.version >= 3.
781 2011-03-08 Pedro Alves <pedro@codesourcery.com>
783 * remote.c (remote_check_symbols): Skip if the target has no
786 2011-03-08 Joel Brobecker <brobecker@adacore.com>
788 * target.c (read_whatever_is_readable): Reformat comment,
789 with a minor typo fix. Minor reformatting of the code.
791 2011-03-08 Yao Qi <yao@codesourcery.com>
793 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
794 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
795 Use cached result instead of calling displaced_in_arm_mode again.
796 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
797 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
798 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
799 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
800 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
801 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
802 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
803 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
804 (cleanup_block_load_pc, copy_block_xfer): Likewise.
805 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
806 (arm_catch_kernel_helper_return): Likewise.
807 * gdb/arm-tdep.h : Update function declarations.
809 2011-03-07 Michael Snyder <msnyder@vmware.com>
811 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
813 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
815 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
817 * elfread.c (elf_symtab_read): Stop memory leak.
819 * main.c (captured_main): Fix memory leak.
821 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
823 * ada-lang.c (compare_names): Call is_name_suffix with string1
826 2011-03-07 Tom Tromey <tromey@redhat.com>
828 * xcoffread.c (xcoff_sym_fns): Update.
829 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
830 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
831 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
832 (symbol_file_add_with_addrs_or_offsets): Likewise.
833 (reread_symbols): Handle OBJF_PSYMTABS_READ.
834 * somread.c (som_sym_fns): Update.
835 * psymtab.h (require_partial_symbols): Declare.
836 * psymtab.c (require_partial_symbols): New function.
837 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
838 (ALL_OBJFILE_PSYMTABS): Undef.
839 (ALL_PSYMTABS): Move from psympriv.h.
840 (lookup_partial_symtab, find_pc_sect_psymtab)
841 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
842 (find_last_source_symtab_from_partial)
843 (forget_cached_source_info_partial)
844 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
845 (expand_partial_symbol_tables, read_psymtabs_with_filename)
846 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
847 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
848 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
849 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
850 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
851 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
852 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
854 * mipsread.c (ecoff_sym_fns): Update.
855 * machoread.c (macho_sym_fns): Update.
856 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
857 (read_psyms): New function.
858 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
859 (elf_sym_fns_lazy_psyms): New global.
860 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
861 dwarf2_build_psymtabs.
862 * dbxread.c (aout_sym_fns): Update.
863 * coffread.c (coff_sym_fns): Update.
865 2011-03-07 Tom Tromey <tromey@redhat.com>
867 * infrun.c (print_exited_reason): Include inferior id and pid in
870 2011-03-07 Tom Tromey <tromey@redhat.com>
872 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
874 (target_has_execution_1): Update.
875 (target_has_execution_current): Declare.
876 (target_has_execution): Call target_has_execution_current.
877 (default_child_has_execution): Update.
878 * target.c (default_child_has_execution): Add 'the_ptid'
880 (target_has_execution_1): Likewise.
881 (target_has_execution_current): New function.
882 (add_target): Update.
883 (init_dummy_target): Update.
884 * remote-m32r-sdi.c (m32r_has_execution): New function.
885 (init_m32r_ops): Use it.
886 * record.c (record_core_has_execution): Now static. Add
887 'the_ptid' parameter.
888 * inferior.c (have_live_inferiors): Don't save current thread.
889 Use target_has_execution_1.
891 2011-03-07 Yao Qi <yao@codesourcery.com>
893 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
895 2011-03-07 Joel Brobecker <brobecker@adacore.com>
897 * elfread.c (elf_symtab_read): Minor reformatting.
899 2011-03-07 Joel Brobecker <brobecker@adacore.com>
901 * objc-lang.c (selectors_info): Minor reformatting.
903 2011-03-07 Joel Brobecker <brobecker@adacore.com>
905 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
907 2011-03-07 Joel Brobecker <brobecker@adacore.com>
908 Michael Snyder <msnyder@vmware.com>
910 * ada-valprint.c (ada_val_print_array): Move the declaration of
911 "byte_order" and "elttype" inside the block where these variables
912 are actually used. Remove some special handling for the case
913 where "elttype" and "eltlen" are null. Replace by a comment
914 and a couple of assertion checks.
916 2011-03-05 Michael Snyder <msnyder@vmware.com>
918 * source.c (add_path): Replace semicolon at end of block.
919 * dwarf2expr.c (execute_stack_op): Ditto.
921 2011-03-05 Mike Frysinger <vapier@gentoo.org>
923 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
924 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
925 (bfin-*-*): Likewise.
927 2011-03-05 Michael Snyder <msnyder@vmware.com>
929 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
930 * mdebugread.c (parse_symbol): Ditto.
931 * parse.c (parse_exp_in_context): Ditto.
932 * source.c (add_path): Ditto.
933 * utils.c (gnu_debuglink_crc32): Ditto.
934 * varobj.c (variable_language): Ditto.
936 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
938 2011-03-04 Michael Snyder <msnyder@vmware.com>
940 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
942 * symfile.c (simple_overlay_update): Check for null return value
943 from lookup_minimal_symbol.
945 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
947 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
949 * eval.c (parse_and_eval_address_1): Remove function.
950 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
951 instead of parse_and_eval_address_1.
952 * value.h (parse_and_eval_address_1): Remove prototype.
954 2011-03-04 Michael Snyder <msnyder@vmware.com>
956 * remote.c (putpkt_binary): Document that case stmt falls through.
958 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
960 * breakpointc (print_it_typical): Move NULL check from here...
961 (print_bp_stop_message): ... to here.
963 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
965 * breakpoint.c (enable_command): Use break instead of continue,
966 and fill in a missing break.
967 (disable_command): Ditto.
969 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
971 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
972 (terminal_save_ours): Remove misleading comment.
973 (inflow_inferior_data_cleanup): Free ttystate.
974 (inflow_inferior_exit): Likewise.
975 (copy_terminal_info): Copy ttystate.
977 * serial.c (serial_copy_tty_state): New function.
978 * serial.h (serial_copy_tty_state): Add prototype.
979 (struct serial_ops): Add copy_tty_state callback.
980 * ser-base.c (ser_base_copy_tty_state): New function.
981 * ser-base.h (ser_base_copy_tty_state): Add prototype.
982 * ser-go32.c (dos_copy_tty_state): New function.
983 (dos_ops): Install copy_tty_state callback.
984 * ser-mingw.c (_initialize_ser_windows): Likewise.
985 * ser-pipe.c (_initialize_ser_pipe): Likewise.
986 * ser-unix.c (hardwire_copy_tty_state): New function.
987 (_initialize_ser_hardwire): Install it.
989 2011-03-04 Michael Snyder <msnyder@vmware.com>
991 * breakpoint.c (create_breakpoint): Add missing break statement.
993 Reverting this patch:
994 * infcall.c (call_function_by_hand): Add break statements for lint.
996 Reverting this patch:
997 * cli/cli-script.c (script_from_file): Add break for lint.
999 2011-03-04 Michael Snyder <msnyder@vmware.com>
1001 * solib.c (reload_shared_libraries_1): Close memory leak.
1003 2011-03-03 Tom Tromey <tromey@redhat.com>
1006 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
1009 2011-03-03 Michael Snyder <msnyder@vmware.com>
1011 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
1012 fields of struct 'st' to zero.
1014 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
1015 sal.pspace before calling set_current_source_symtab_and_line.
1017 2011-03-03 Yao Qi <yao@codesourcery.com>
1019 * Makefile.in (configure-common): Remove. Let Makefile
1020 in dir common to rebuild itself.
1021 (common/Makefile): Likewise.
1023 2011-03-03 Joel Brobecker <brobecker@adacore.com>
1025 * utils.c (parse_escape): Add i18n markup in error message.
1027 2011-03-03 Yao Qi <yao@codesourcery.com>
1029 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
1031 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
1032 (displaced_write_reg, displaced_read_reg): Likewise.
1033 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
1034 (cleanup_block_load_pc, copy_block_xfer): Likewise.
1035 (cleanup_branch): Replace magic number 14 and 15 with
1036 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
1038 2011-03-02 Michael Snyder <msnyder@vmware.com>
1040 * maint.c (maintenance_do_deprecate): No need to check for NULL.
1042 * cli/cli-script.c (script_from_file): Add break for lint.
1044 * mdebugread.c (parse_partial_symbols): Fix indent.
1046 * target-descriptions.c (tdesc_gdb_type): No need to call
1047 xstrdup, callee saves a copy.
1049 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
1051 * infcall.c (call_function_by_hand): Add break statements for lint.
1053 * utils.c (parse_escape): Escape the escape char.
1055 * python/py-inferior.c (build_inferior_list): Error out if
1056 PyList_Append fails.
1057 (gdbpy_inferiors): Error out if build_inferior_list fails.
1059 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
1062 * record.c (record_restore): Move printf to before error return.
1064 2011-03-02 Yao Qi <yao@codesourcery.com>
1066 * arm-tdep.h (struct displaced_step_closure): Add two new fields
1067 is_thumb and insn_size.
1068 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
1069 on both ARM and Thumb mode.
1070 (arm_process_displaced_insn): Set is_thumb and insn_size.
1071 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
1072 (arm_displaced_step_fixup): Likewise.
1074 2011-03-01 Michael Snyder <msnyder@vmware.com>
1076 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
1078 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
1080 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
1082 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
1084 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
1087 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
1088 which shadows function parameter.
1090 * tracepoint.c (create_tsv_from_upload): Superfluous call
1091 to xstrdup. Callee already calls xstrdup.
1093 * linespec.c (decode_line_1): Remove unnecessary null check.
1095 * tracepoint.c (scope_info): Fix mem leak, remove underused
1098 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
1099 superfluous null check.
1101 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
1102 (value_of_builtin_frame_fp_reg): Ditto.
1104 * event-top.c (display_gdb_prompt): Remove superfluous null check.
1106 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
1109 * linespec.c (decode_line_1): Check for null before dereference.
1111 * reverse.c (record_restore): Move null-check to before pointer
1114 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
1116 * objc-lang.c (selectors_info): Add explanitory comment.
1117 (classes_info): Ditto.
1119 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1121 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
1122 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
1123 versions of the trampoline. Handle Thumb vs. ARM addresses.
1124 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
1125 (arm_linux_init_abi): Install it.
1126 * arm-tdep.c (arm_psr_thumb_bit): Make global.
1127 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
1129 2011-02-28 Michael Snyder <msnyder@vmware.com>
1131 * ui-out.c (ui_out_field_core_addr): Make local char buffer
1132 a little bigger, to avoid possibility of an overflow.
1134 * breakpoint.c (breakpoint_adjustment_warning): Make local char
1135 buffers a little bigger, to avoid possibility of an overflow.
1137 * coffread.c (coff_getfilename): Add check to avoid overflow.
1139 * objc-lang.c (selectors_info): Add a small safety margin to
1141 (classes_info): Error out on too long REGEXP.
1143 * infrun.c (handle_inferior_event): Remove unused function call.
1145 * fork-child.c (fork_inferior): Remove ifdef'd code and
1148 * linux-thread-db.c (attach_thread): Discard unused value.
1150 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
1152 * remote.c (remote_get_noisy_reply): Discard unused value.
1153 (remote_vcont_resume): Ditto.
1154 (remote_stop_ns): Ditto.
1156 * linespec.c (decode_objc): Delete unused variable.
1158 * tui/tui-regs.c (tui_register_format): Delete unused variable.
1160 * dwarf2read.c (add_partial_symbol): Discard unused values.
1161 (read_base_type): Delete unused variable.
1163 * dbxread.c (read_dbx_symtab): Discard unused value.
1165 * eval.c (evaluate_subexp_standard): Delete unused variable,
1166 and discard unused values.
1168 * infcmd.c (_initialize_infcmd): Discard unused values.
1170 * stabsread.c (rs6000_builtin_type): Missing break statement.
1172 * dbxread.c (process_one_symbol): Discard unused value.
1174 * coffread.c (coff_end_symtab): Delete unused variable.
1176 * dwarf2read.c (dw2_get_file_names): Discard unused value.
1177 (dwarf2_add_typedef): Delete unused variable.
1178 (read_namespace): Ditto.
1179 (dwarf_decode_macros): Ditto.
1181 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
1183 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
1185 * p-valprint.c (pascal_val_print): Discard unused value.
1187 * utils.c (nquery): Call va_end before return;
1191 * proc-service.c (ps_plog): Call va_end before return.
1193 2011-02-28 Tom Tromey <tromey@redhat.com>
1195 * python/python.c (gdbpy_value_cst): New global.
1196 (_initialize_python): Initialize it.
1197 * python/python-internal.h (gdbpy_value_cst): Declare.
1198 * python/py-value.c (convert_value_from_python): Use
1201 2011-02-28 Michael Snyder <msnyder@vmware.com>
1203 * python/py-cmd.c (cmdpy_init): Fix memory leak.
1205 * breakpoint.c (catch_syscall_completer): Free malloced list.
1207 * jv-lang.c (java_primitive_type_from_name): Add missing break.
1209 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
1210 (lval_func_check_synthetic_pointer): Ditto.
1211 (lval_func_free_closure): Fix use-after-free.
1213 2011-02-28 Tom Tromey <tromey@redhat.com>
1215 * psymtab.c (expand_partial_symbol_tables): Use
1216 ALL_OBJFILE_PSYMTABS.
1218 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1220 * objc-lang.c (selectors_info): Error on too long REGEXP.
1222 2011-02-28 Michael Snyder <msnyder@vmware.com>
1224 * python/py-param.c (set_parameter_value): Add missing
1227 * linux-record.c (record_linux_system_call): Add missing
1230 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1232 * breakpoint.c (print_one_breakpoint_location): Remove unused
1233 argument PRINT_ADDRESS_BITS. Update callers.
1234 (print_one_breakpoint): Likewise.
1236 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1238 * breakpoint.c (wrap_indent_at_field): New function.
1239 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
1240 Allocate ui_stream locally instead of using STB argument.
1241 (print_one_breakpoint_location): Update call.
1242 * ui-out.c (ui_out_query_field): New function.
1243 * ui-out.h (ui_out_query_field): Add prototype.
1245 2011-02-28 Joel Brobecker <brobecker@adacore.com>
1247 From Michael Snyder <msnyder@vmware.com>
1248 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
1250 2011-02-27 Michael Snyder <msnyder@vmware.com>
1252 * objc-lang.c (selectors_info): Prevent string overrun.
1254 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
1257 * symtab.c (rbreak_command): Move variable 'file_name' to
1260 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
1261 param with a local variable of the same name.
1263 2011-02-27 Michael Snyder <msnyder@vmware.com>
1265 * value.c (value_from_history_ref): New function.
1266 * value.h (value_from_history_ref): Export.
1267 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
1268 to parse value history references.
1269 * cli/cli-utils.h (get_number_trailer): Update comment.
1271 2011-02-27 Michael Snyder <msnyder@vmware.com>
1273 * inferior.c (detach_inferior_command): Use get_number_or_range.
1274 (kill_inferior_command): Ditto.
1275 (remove_inferior_command): Ditto.
1276 (initialize_inferiors): Make command names plural.
1277 Update help strings.
1279 2011-02-27 Michael Snyder <msnyder@vmware.com>
1281 * darwin-nat-info.c: Fix comment typo.
1282 * dwarf2expr.h: Ditto.
1283 * fbsd-nat.c: Ditto.
1284 * fbsd-nat.h: Ditto.
1285 * frame-unwind.h: Ditto.
1287 * hppa-hpux-tdep.c: Ditto.
1288 * i386-linux-nat.c: Ditto.
1289 * linux-nat.c: Ditto.
1290 * nbsd-nat.c: Ditto.
1291 * nbsd-nat.h: Ditto.
1292 * ppc-linux-tdep.c: Ditto.
1295 * tui/tui-winsource.c: Ditto.
1297 2011-02-26 Michael Snyder <msnyder@vmware.com>
1299 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
1301 * maint.c (maintenance_do_deprecate): Plug a memory leak.
1303 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
1304 with a local variable of the same name.
1306 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
1307 param with a local variable of the same name.
1308 (i387_supply_xsave): Ditto.
1310 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
1311 that it does not shadow a function parameter.
1313 * i386-nat.c (i386_length_and_rw_bits): Document that case
1314 statement is meant to fall through.
1316 * expprint.c (dump_subexp_body_standard): Document that case
1317 statement is meant to fall through.
1319 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
1320 dead if statement. Condition can't be false.
1322 2011-02-25 Michael Snyder <msnyder@vmware.com>
1324 * arm-tdep.c: Fix typos in comments.
1325 * bsd-uthread.c: Ditto.
1326 * completer.c: Ditto.
1328 * cp-namespace.c: Ditto.
1329 * cp-support.c: Ditto.
1330 * cris-tdep.c: Ditto.
1332 * dwarf2read.c: Ditto.
1334 * gdbtypes.h: Ditto.
1335 * inferior.h: Ditto.
1336 * mdebugread.c: Ditto.
1337 * mips-tdep.c: Ditto.
1338 * ppc-linux-nat.c: Ditto.
1339 * ppc-linux-tdep.c: Ditto.
1340 * printcmd.c: Ditto.
1341 * sol-thread.c: Ditto.
1342 * solib-frv.c: Ditto.
1344 * sparc64-tdep.c: Ditto.
1345 * spu-tdep.c: Ditto.
1346 * stabsread.c: Ditto.
1351 * python/py-block.c: Ditto.
1352 * python/py-symbol.c: Ditto.
1353 * python/py-symtab.c: Ditto.
1354 * python/py-value.c: Ditto.
1355 * tui/tui-win.c: Ditto.
1357 2011-02-25 Michael Snyder <msnyder@vmware.com>
1359 * inferior.c (print_inferior): Accept a string instead of an int
1360 for requested_inferiors, and use get_number_or_range to parse it.
1361 (info_inferiors_command): Pass args string to print_inferior.
1362 (initialize_inferiors): Change help string for info inferiors.
1363 * inferior.h (print_inferior): Export prototype change.
1365 2011-02-25 Tom Tromey <tromey@redhat.com>
1367 * common/ax.def (invalid2): Set to 0x31.
1369 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1371 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
1373 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
1375 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
1377 2011-02-24 Michael Snyder <msnyder@vmware.com>
1379 * Makefile.in (clean): Make clean should remove generated files
1380 observer.h and observer.inc.
1382 2011-02-24 Joel Brobecker <brobecker@adacore.com>
1384 Revert the following patch (not approved yet):
1385 2011-02-21 Hui Zhu <teawater@gmail.com>
1386 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
1387 * ax-gdb.c (gen_printf_expr_callback): New function.
1388 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
1389 * ax-general.c (ax_memcpy): New function.
1390 (ax_print): Handle "printf".
1392 * ax.h (ax_memcpy): Forward declare.
1393 * common/ax.def (invalid2): Removed.
1394 (printf): New entry.
1395 * printcmd.c (printcmd.h): New include.
1396 (string_printf): New function.
1397 (ui_printf): Removed.
1398 (printf_command): Remove static. Call string_printf.
1399 (eval_command): Call string_printf.
1400 * printcmd.h: New file.
1401 * tracepoint.c (validate_actionline,
1402 encode_actions_1): handle printf_command.
1404 2011-02-23 Tom Tromey <tromey@redhat.com>
1406 * ax-general.c (ax_pick): Add missing newline.
1408 2011-02-23 Michael Snyder <msnyder@vmware.com>
1410 * breakpoint.c (breakpoint_1): Change first argument from an int
1411 to a char pointer, so that the function now accepts a list of
1412 breakpoints rather than just one. Use new function
1413 'number_is_in_list' to implement.
1414 (breakpoints_info): Pass char * instead of int to breakpoint_1.
1415 (watchpoints_info): Ditto.
1416 (tracepoints_info): Ditto.
1417 (maintenance_info_breakpoints): Ditto.
1418 (_initialize_breakpoint): Update help strings to reflect the fact
1419 that these functions can now take more than one argument.
1420 * cli/cli-utils.c (number_is_in_list): New function.
1421 * cli/cli-utils.h (number_is_in_list): Export.
1423 2011-02-23 Michael Snyder <msnyder@vmware.com>
1425 * memattr.c (mem_enable_command): Use get_number_or_range.
1426 (mem_disable_command): Ditto.
1427 (mem_delete_command): Ditto.
1428 (_initialize_mem): Tweak usage message to reflect multiple
1431 2011-02-22 Doug Evans <dje@google.com>
1433 Add gdb.lookup_global_symbol python function.
1435 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
1436 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
1437 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
1439 2011-02-22 Tom Tromey <tromey@redhat.com>
1441 * language.c (language_class_name_from_physname): Rename
1442 'curr_language' argument to 'lang'; use in body.
1444 2011-02-22 Michael Snyder <msnyder@vmware.com>
1446 * cli/cli-utils.c (number_is_in_list): Check for zero return.
1448 2011-02-22 Pedro Alves <pedro@codesourcery.com>
1450 * frame-unwind.h: Fix comment to mention the this frame, not the
1453 2011-02-22 Tom Tromey <tromey@redhat.com>
1455 * symfile.c (auto_solib_limit): Remove.
1456 * symfile.h (auto_solib_limit): Remove.
1458 2011-02-22 Joel Brobecker <brobecker@adacore.com>
1460 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
1462 2011-02-21 Michael Snyder <msnyder@vmware.com>
1464 * gdbthread.h (print_thread_info): Change prototype.
1465 * thread.c (print_thread_info): Accept char* instead of int for
1466 requested_threads argument. Use new function number_is_in_list
1467 to determine which threads to list.
1468 (info_threads_command): Pass char* to print_thread_info.
1469 * cli/cli-utils.c (number_is_in_list): New function.
1470 * cli/cli-utils.h (number_is_in_list): Export.
1471 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
1473 (print_one_inferior): Ditto.
1474 (mi_cmd_list_thread_groups): Ditto.
1476 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1478 * common/Makefile.in (CFLAGS): New.
1479 (COMPILE): Add $(CFLAGS).
1481 2011-02-21 Tom Tromey <tromey@redhat.com>
1483 * breakpoint.c (catch_syscall_command_1): Fix typo.
1485 2011-02-21 Tom Tromey <tromey@redhat.com>
1487 * reverse.c: Include cli-utils.h.
1488 * printcmd.c: Include cli-utils.h.
1489 (string_printf): Use skip_spaces.
1490 * cli/cli-utils.h: New file.
1491 * cli/cli-utils.c: New file.
1492 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
1493 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
1494 * breakpoint.h (get_number, get_number_or_range): Move to
1496 * breakpoint.c: Include cli-utils.h.
1497 (get_number_trailer, get_number, get_number_or_range)
1498 (ep_skip_leading_whitespace): Move to cli-utils.c.
1499 (create_breakpoint_sal, find_condition_and_thread)
1500 (decode_static_tracepoint_spec, watch_command_1)
1501 (watch_maybe_just_location, ep_parse_optional_if_clause)
1502 (catch_fork_command_1, catch_exec_command_1)
1503 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
1504 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
1505 (SUBDIR_CLI_SRCS): Add cli-utils.c.
1506 (HFILES_NO_SRCDIR): Add cli-utils.h.
1507 (cli-utils.o): New target.
1509 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
1511 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
1512 before calling discard_all_inferiors.
1514 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
1516 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
1517 (struct builtin_opencl_type): Remove.
1518 (builtin_opencl_type): Change return type to "struct type **".
1519 (lookup_opencl_vector_type): Update caller.
1520 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
1521 (build_opencl_types): Install plain array of "struct type *"
1522 instead of "struct builtin_opencl_type".
1524 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1525 Ulrich Weigand <uweigand@de.ibm.com>
1527 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
1528 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
1529 (struct arm_linux_hwbp_cap): New type.
1530 (arm_linux_get_hwbp_cap): New function.
1531 (arm_linux_get_hw_breakpoint_count): Likewise.
1532 (arm_linux_get_hw_watchpoint_count): Likewise.
1533 (arm_linux_can_use_hw_breakpoint): Likewise.
1534 (arm_hwbp_type): New type.
1535 (arm_hwbp_control_t): Likewise.
1536 (struct arm_linux_hw_breakpoint): Likewise.
1537 (struct arm_linux_thread_points): Likewise.
1538 (arm_threads): New global variable.
1539 (arm_linux_find_breakpoints_by_tid): New function.
1540 (arm_hwbp_control_initialize): Likewise.
1541 (arm_hwbp_control_is_enabled): Likewise.
1542 (arm_hwbp_control_disable): Likewise.
1543 (arm_linux_hw_breakpoint_initialize): Likewise.
1544 (arm_linux_get_hwbp_type): Likewise.
1545 (arm_linux_hw_watchpoint_initialize): Likewise.
1546 (arm_linux_hw_breakpoint_equal): Likewise.
1547 (arm_linux_insert_hw_breakpoint1): Likewise.
1548 (arm_linux_remove_hw_breakpoint1): Likewise.
1549 (arm_linux_insert_hw_breakpoint): Likewise.
1550 (arm_linux_remove_hw_breakpoint): Likewise.
1551 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
1552 (arm_linux_insert_watchpoint): Likewise.
1553 (arm_linux_remove_watchpoint): Likewise.
1554 (arm_linux_stopped_data_address): Likewise.
1555 (arm_linux_stopped_by_watchpoint): Likewise.
1556 (arm_linux_watchpoint_addr_within_range): Likewise.
1557 (arm_linux_new_thread): Likewise.
1558 (arm_linux_thread_exit): Likewise.
1559 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
1560 related target callbacks. Register arm_linux_new_thread and
1561 arm_linux_thread_exit.
1562 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
1563 * arm-tdep.c (arm_pc_is_thumb): Make global.
1564 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
1566 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
1568 * breakpoint.c (update_watchpoint): Do not attempt to recreate
1569 per-frame locations while within a function epilogue.
1571 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
1573 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
1574 to GNU coding standards.
1576 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
1578 Allow use of mingw native on Windows 95 OS.
1579 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
1580 (ser_windows_close): Only call CancelIo if function exists.
1581 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
1582 to check for existence of CancelIo function in kernel32 DLL.
1584 2011-02-21 Hui Zhu <teawater@gmail.com>
1586 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
1587 * ax-gdb.c (gen_printf_expr_callback): New function.
1588 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
1589 * ax-general.c (ax_memcpy): New function.
1590 (ax_print): Handle "printf".
1592 * ax.h (ax_memcpy): Forward declare.
1593 * common/ax.def (invalid2): Removed.
1594 (printf): New entry.
1595 * printcmd.c (printcmd.h): New include.
1596 (string_printf): New function.
1597 (ui_printf): Removed.
1598 (printf_command): Remove static. Call string_printf.
1599 (eval_command): Call string_printf.
1600 * printcmd.h: New file.
1601 * tracepoint.c (validate_actionline,
1602 encode_actions_1): handle printf_command.
1604 2011-02-19 Michael Snyder <msnyder@vmware.com>
1606 * reverse.c (delete_one_bookmark): Argument is now bookmark
1607 id rather than pointer to bookmark struct.
1608 (delete_bookmark_command): Use get_number_or_range.
1609 (goto_bookmark_command): Parse with get_number instead of strtoul.
1610 (bookmark_1): New function. Print info for one bookmark.
1611 (bookmarks_info): Use get_number_or_range and bookmark_1.
1613 2011-02-18 Michael Snyder <msnyder@vmware.com>
1615 * thread.c (info_threads_command): Re-implement using
1616 get_number_or_range.
1617 (thread_apply_command): Ditto.
1619 2011-02-18 Tom Tromey <tromey@redhat.com>
1621 * common/ax.def: New file.
1622 * ax.h (enum agent_op): Use ax.def.
1623 * ax-general.c (aop_map): Use ax.def.
1625 2011-02-18 Tom Tromey <tromey@redhat.com>
1627 * ax-general.c (aop_map): Add pick and rot.
1628 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
1629 <DW_OP_rot>: Implement.
1630 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
1632 * ax-general.c (ax_pick): New function.
1634 2011-02-18 Tom Tromey <tromey@redhat.com>
1636 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
1638 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1639 Tom Tromey <tromey@redhat.com>
1641 * cp-support.c (make_symbol_overload_list_namespace): Do not call
1642 make_symbol_overload_list_block with NULL BLOCK.
1643 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
1645 2011-02-18 Pedro Alves <pedro@codesourcery.com>
1647 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
1648 * breakpoint.h (get_number_or_range): Declare.
1649 * printcmd.c (ALL_DISPLAYS): Declare.
1650 (delete_display): Reimplement taking a display pointer.
1651 (undisplay_command): Accept a range of displays to delete, using
1652 get_number_or_range.
1654 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
1656 * c-valprint.c (c_val_print): Add embedded_offset to address
1657 for arrays of unspecified length.
1658 * p-valprint.c (pascal_val_print): Likewise.
1660 2011-02-18 Yao Qi <yao@codesourcery.com>
1662 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
1663 (arm_process_displaced_insn): .. here. Remove parameter INSN.
1664 (thumb_process_displaced_insn): New.
1665 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
1666 call to arm_process_displaced_insn.
1667 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
1669 2011-02-17 Tom Tromey <tromey@redhat.com>
1671 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
1672 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
1673 compile_dwarf_to_ax. No longer static. Call
1674 dwarf2_compile_cfa_to_ax.
1675 (locexpr_tracepoint_var_ref): Update.
1676 (loclist_tracepoint_var_ref): Update.
1677 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
1678 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
1679 argument; add 'gdbarch' and 'pc'.
1680 (dwarf2_compile_cfa_to_ax): New function.
1681 (dwarf2_frame_cache): Update.
1683 2011-02-17 Joel Brobecker <brobecker@adacore.com>
1685 * ada-lang.c (ada_type_of_array): Fix the size of the array
1686 in the case of an unconstrained packed array.
1688 2011-02-17 Yao Qi <yao@codesourcery.com>
1690 * common/Makefile.in: Add more targets for make.
1692 2011-02-16 Tom Tromey <tromey@redhat.com>
1694 * dwarf2loc.c (unimplemented): Fix typo.
1696 2011-02-16 Tom Tromey <tromey@redhat.com>
1698 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
1699 (compile_dwarf_to_ax) <default>: Use unimplemented.
1700 <DW_OP_deref>: Update.
1701 (disassemble_dwarf_expression): Update.
1702 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
1703 (decode_locdesc): Update.
1704 * dwarf2expr.h (dwarf_stack_op_name): Update.
1706 2011-02-16 Tom Tromey <tromey@redhat.com>
1708 * ax.h (struct aop_map) <name>: Now const.
1710 2011-02-16 Tom Tromey <tromey@redhat.com>
1712 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
1715 2011-02-16 Yao Qi <yao@codesourcery.com>
1717 * infrun.c (get_displaced_step_closure_by_addr): New.
1718 * inferior.h: Declare it.
1719 * arm-tdep.c: (arm_pc_is_thumb): Call
1720 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
1723 2011-02-16 Pedro Alves <pedro@codesourcery.com>
1724 Jan Kratochvil <jan.kratochvil@redhat.com>
1727 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
1729 2011-02-16 Pedro Alves <pedro@codesourcery.com>
1730 Jan Kratochvil <jan.kratochvil@redhat.com>
1732 * value.c (value_contents_copy_raw): Extend describing comment.
1733 Assert that the destination contents we're overwriting are wholly
1735 (value_contents_copy): Extend describing comment.
1737 2011-02-16 Pedro Alves <pedro@codesourcery.com>
1738 Jan Kratochvil <jan.kratochvil@redhat.com>
1740 * value.c (value_available_contents_eq): Remove redundant local
1741 variables. Fix available contents comparision.
1742 * value.h (value_available_contents_eq): Extend describing
1745 2011-02-16 Yao Qi <yao@codesourcery.com>
1747 * thread.c (info_threads_command): Add missing i18n markup and remove
1750 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
1752 * breakpoint.c (longjmp_names): New variable.
1753 (struct breakpoint_objfile_data): New type.
1754 (breakpoint_objfile_key): New variable.
1755 (msym_not_found): New variable.
1756 (msym_not_found_p): New predicate.
1757 (get_breakpoint_objfile_data): New function.
1758 (create_overlay_event_breakpoint): Check per-objfile cache for
1760 (create_longjmp_master_breakpoint): Likewise.
1761 (create_std_terminate_master_breakpoint): Likewise.
1762 (create_exception_master_breakpoint): Likewise.
1763 (_initialize_breakpoint): Register per-objfile data key.
1765 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
1767 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
1769 (create_longjmp_master_breakpoint): Loop over longjmp names.
1770 (create_std_terminate_master_breakpoint): Const-propagate parameter
1772 (update_breakpoints_after_exec): Adjust.
1773 (breakpoint_re_set): Adjust.
1775 2011-02-15 Michael Snyder <msnyder@vmware.com>
1777 * thread.c (info_threads_command): Process arg as thread id,
1778 or list of thread ids.
1779 (thread_find_command): New command.
1780 (_initialize_thread): Document argument for info threads.
1781 Document 'thread find' command.
1782 * NEWS: Document new command "thread find".
1784 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1786 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
1787 * aclocal.m4: Regenerated with aclocal-1.11.1.
1788 * common/configure: Regenerate with autoconf-2.64.
1790 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
1792 * opencl-lang.c (build_opencl_types): Set the size of the built-in
1793 bool data type to a size of one byte.
1795 2011-02-15 Pedro Alves <pedro@codesourcery.com>
1796 Jan Kratochvil <jan.kratochvil@redhat.com>
1798 * target.c (memory_xfer_live_readonly_partial): Document where to
1799 look for interface description.
1801 2011-02-15 Yao Qi <yao@codesourcery.com>
1804 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
1805 order to store PC value on stack instead of text section.
1807 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
1809 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
1810 the EFP register set size.
1811 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
1812 data from the VMX register.
1813 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
1814 and write data from/to the VMX register.
1816 2011-02-14 Michael Snyder <msnyder@vmware.com>
1818 * command.h (enum command_class): New class 'no_set_class', for
1819 "show" commands without a corresponding "set" command.
1820 * value.c (_initialize_values): Use 'no_set_class' for "show values".
1821 * copying.c (_initialize_copying): Ditto for "show copying" and
1823 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
1825 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
1826 which there is no corresponding "set" command (eg. "show copying").
1828 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1829 Jan Kratochvil <jan.kratochvil@redhat.com>
1831 * exec.c (section_table_available_memory): Change `len' parameter
1833 * exec.h (section_table_available_memory): Ditto.
1834 * value.h (read_value_memory): Rename the `offset' parameter to
1837 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1838 Jan Kratochvil <jan.kratochvil@redhat.com>
1840 * memrange.c (compare_mem_ranges): Mention sort order in
1842 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
1843 * tracepoint.c (traceframe_available_memory): Extend comment to
1844 mention what happens to RESULT when the target does not support
1847 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1848 Jan Kratochvil <jan.kratochvil@redhat.com>
1850 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
1853 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1855 * value.c (value_bits_valid, value_bits_synthetic_pointer):
1856 No longer handle NULL values.
1858 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1860 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
1861 * value.c: Include "exceptions.h".
1862 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
1864 * cp-abi.c: Include gdb_assert.h.
1865 (baseclass_offset): Add `embedded_offset' and `val' parameters.
1866 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
1868 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
1869 parameters. No longer returns -1 on error.
1870 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
1872 * cp-valprint.c: Include exceptions.h.
1873 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
1874 the baseclass_offset. Handle unavailable base classes. Use
1875 val_print_invalid_address.
1876 * p-valprint.c: Include exceptions.h.
1877 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
1878 when fetching the baseclass_offset. No longer expect
1879 baseclass_offset returning -1. Handle unavailable base classes.
1880 Use val_print_invalid_address.
1881 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
1882 `valaddr' parameter, and change its type to gdb_byte pointer. Add
1883 `embedded_offset' and `val' parameters. Adjust.
1884 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
1885 parameter, and change its type to gdb_byte pointer. Add
1886 `embedded_offset' and `val' parameters. Adjust. No longer expect
1887 baseclass_offset returning -1.
1888 (value_dynamic_cast): Use value_contents_for_printing rather than
1889 value_contents. Adjust.
1890 (search_struct_field): No longer expect baseclass_offset returning
1892 (search_struct_method): If reading memory from the target is
1893 necessary, wrap it in a new value to pass to baseclass_offset. No
1894 longer expect baseclass_offset returning -1.
1895 (find_method_list): No longer expect baseclass_offset returning
1896 -1. Use value_contents_for_printing rather than value_contents.
1897 * valprint.c (val_print_invalid_address): New function.
1898 * valprint.h (val_print_invalid_address): Declare.
1899 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
1900 and `val' parameters. No longer expect baseclass_offset returning
1902 * gnu-v2-abi.c: Include "exceptions.h".
1903 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
1904 parameters. Handle unavailable memory. Recurse through
1905 gnuv2_baseclass_offset directly, rather than through
1906 baseclass_offset. No longer returns -1 on not found, instead
1908 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
1909 `val' parameters. Adjust.
1911 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1913 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
1914 almost but not quite adjacent.
1916 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1918 * value.h (value_entirely_available): Declare.
1919 * value.c (value_entirely_available): New function.
1920 * c-valprint.c (c_value_print): Don't try fetching the pointer's
1921 real type if the pointer is unavailable.
1923 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1925 * valops.c (value_repeat): Use read_value_memory instead of
1928 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1930 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
1931 * value.c (value_contents_copy_raw, value_contents_copy): New
1933 (value_primitive_field): Use value_contents_copy_raw instead of
1935 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
1937 (value_array, value_slice): Ditto.
1938 * valarith.c (value_subscripted_rvalue): Use
1939 value_contents_copy_raw instead of memcpy.
1941 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1943 <unavailable> references.
1945 * valops.c (get_value_at): Use value_from_contents_and_address,
1946 avoiding read_memory.
1948 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1950 * c-valprint.c (c_val_print): Print a string with unavailable
1951 contents as an array.
1953 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1955 * value.h (unpack_bits_as_long): Delete declaration.
1956 (unpack_value_bits_as_long): Declare.
1957 (unpack_value_field_as_long): Declare.
1958 (value_field_bitfield): Declare.
1959 * value.c (unpack_bits_as_long): Rename to...
1960 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
1961 value parameters. Return the extracted result in a new output
1962 parameter. If the value contents are unavailable, return false,
1963 otherwise return true.
1964 (unpack_value_bits_as_long): New.
1965 (unpack_field_as_long): Rename to...
1966 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
1967 Add embedded_offset and value parameters. Return the extracted
1968 result in a new output parameter. If the value contents are
1969 unavailable, return false, otherwise return true.
1970 (unpack_value_field_as_long): New.
1971 (unpack_field_as_long_1): New.
1972 (unpack_field_as_long): Reimplement as wrapper around
1973 unpack_value_field_as_long_1.
1974 (value_field_bitfield): New function.
1975 * valops.c (value_fetch_lazy): When fetching a bitfield, use
1976 unpack_value_bits_as_long. Mark the value as unavailable, if it
1978 * jv-valprint.c (java_print_value_fields): Use
1979 value_field_bitfield.
1980 * p-valprint.c (pascal_object_print_value_fields): Use
1981 value_field_bitfield.
1982 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
1984 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1986 * value.c (get_internalvar_integer): Also return the int value of
1987 TYPE_CODE_INT INTERNALVAR_VALUE values.
1988 (set_internalvar): Don't special case TYPE_CODE_INT.
1990 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1992 * value.c (struct internalvar) <enum internalvar_kind>: Remove
1993 INTERNALVAR_POINTER.
1995 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
1996 (set_internalvar): Remove special TYPE_CODE_PTR handling.
1997 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
1999 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2001 * value.h (value_available_contents_eq): Declare.
2002 * value.c (find_first_range_overlap): New function.
2003 (value_available_contents_eq): New function.
2004 * valprint.c (val_print_array_elements): Use
2005 value_available_contents_eq.
2006 * ada-valprint.c (val_print_packed_array_elements): Use
2007 value_available_contents_eq.
2008 * jv-valprint.c (java_value_print): Use
2009 value_available_contents_eq.
2011 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2013 * target.c (target_read_live_memory): New function.
2014 (memory_xfer_live_readonly_partial): New.
2015 (memory_xfer_partial): If reading from a traceframe, fallback to
2016 reading unavailable read-only memory from read-only regions of
2018 * tracepoint.c (disconnect_tracing): Adjust.
2019 (set_current_traceframe): New, factored out from
2020 set_traceframe_number.
2021 (set_traceframe_number): Reimplement to only change the traceframe
2022 number on the GDB side.
2023 (do_restore_current_traceframe_cleanup): Adjust.
2024 (make_cleanup_restore_traceframe_number): New.
2025 (cur_traceframe_number): New global.
2026 (tfile_open): Set cur_traceframe_number to no traceframe.
2027 (set_tfile_traceframe): New function.
2028 (tfile_trace_find): If looking up a traceframe using any method
2029 other than by number, make sure the current tfile traceframe
2030 matches gdb's current traceframe. Update the current tfile
2031 traceframe if the lookup succeeded.
2032 (tfile_fetch_registers, tfile_xfer_partial)
2033 (tfile_get_trace_state_variable_value): Make sure the remote
2034 traceframe matches gdb's current traceframe.
2035 * remote.c (remote_traceframe_number): New global.
2036 (remote_open_1): Set it to -1.
2037 (set_remote_traceframe): New function.
2038 (remote_fetch_registers, remote_store_registers)
2039 (remote_xfer_memory, remote_xfer_partial)
2040 (remote_get_trace_state_variable_value): Make sure the remote
2041 traceframe matches gdb's current traceframe.
2042 (remote_trace_find): If looking up a traceframe using any method
2043 other than by number, make sure the current remote traceframe
2044 matches gdb's current traceframe. Update the current remote
2045 traceframe if the lookup succeeded.
2046 * infrun.c (fetch_inferior_event): Adjust.
2047 * tracepoint.h (set_current_traceframe): Declare.
2048 (get_traceframe_number, set_traceframe_number): Add describing
2051 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2053 Mark pieces of values as unavailable if the corresponding memory
2056 * valops.c: Include tracepoint.h.
2057 (value_fetch_lazy): Use read_value_memory.
2058 (read_value_memory): New.
2059 * value.h (read_value_memory): Declare.
2060 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
2061 * exec.c (section_table_available_memory): New function.
2062 * exec.h (section_table_available_memory): Declare.
2064 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2066 * Makefile.in (SFILES): Add memrange.c.
2067 (HFILES_NO_SRCDIR): Add memrange.h.
2068 (COMMON_OBS): Add memrange.o.
2069 * memrange.c: New file.
2070 * memrange.h: New file.
2071 * tracepoint.c: Include memrange.h.
2072 (struct mem_range): Delete.
2073 (mem_range_s): Delete.
2074 (traceframe_available_memory): New function.
2075 * tracepoint.h (traceframe_available_memory): Declare.
2077 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2079 * target.h (struct traceframe_info): Forward declare.
2080 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
2081 (struct target_ops) <to_traceframe_info>: New field.
2082 (target_traceframe_info): New.
2083 * target.c (update_current_target): Inherit and default
2085 * remote.c (PACKET_qXfer_traceframe_info): New.
2086 (remote_protocol_features): Register qXfer:traceframe-info:read.
2087 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
2088 (remote_traceframe_info): New.
2089 (init_remote_ops): Install it.
2090 (_initialize_remote): Install "set/show remote traceframe-info"
2092 * tracepoint.h (parse_traceframe_info): Declare.
2093 * tracepoint.c (struct mem_range): New.
2094 (mem_range_s): New typedef.
2095 (struct traceframe_info): New.
2096 (traceframe_info): New global.
2097 (free_traceframe_info): New function.
2098 (clear_traceframe_info): New function.
2099 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
2101 (build_traceframe_info): New function.
2102 (tfile_traceframe_info): New function.
2103 (init_tfile_ops): Install tfile_traceframe_info.
2104 (traceframe_info_start_memory, free_result): New functions.
2105 (memory_attributes, traceframe_info_elements): New globals.
2106 (parse_traceframe_info, get_traceframe_info): New functions.
2107 * features/traceframe-info.dtd: New file.
2108 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
2110 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2112 Base support for <unavailable> value contents.
2114 * value.h (value_bytes_available): Declare.
2115 (mark_value_bytes_unavailable): Declare.
2116 * value.c (struct range): New struct.
2117 (range_s): New typedef.
2118 (ranges_overlap): New function.
2119 (range_lessthan): New function.
2120 (ranges_contain_p): New function.
2121 (struct value) <unavailable>: New field.
2122 (value_bytes_available): New function.
2123 (mark_value_bytes_unavailable): New function.
2124 (require_not_optimized_out): Constify parameter.
2125 (require_available): New function.
2126 (value_contents_all, value_contents): Require all bytes be
2128 (value_free): Free `unavailable'.
2129 (value_copy): Copy `unavailable'.
2130 * valprint.h (val_print_unavailable): Declare.
2131 * valprint.c (valprint_check_validity): Rename `offset' parameter
2132 to `embedded_offset'. If printing a scalar, check whether the
2133 value chunk is available.
2134 (val_print_unavailable): New.
2135 (val_print_scalar_formatted): Check whether the value is
2137 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
2138 pretty-printing unavailable values.
2140 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2142 Fix const/volatile qualifiers of C++ types, PR c++/12328.
2143 * c-typeprint.c (c_type_print_args): Update the function comment. New
2144 variable param_type, initialize it. Remove const/volatile qualifiers
2145 for language_cplus and !show_artificial. Use param_type.
2147 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2149 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
2150 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
2151 * symtab.h (struct symtab) <next>: Comment extension.
2153 2011-02-12 Yao Qi <yao@codesourcery.com>
2155 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
2157 2011-02-11 Yao Qi <yao@codesourcery.com>
2159 * common/Makefile.in: Add copyright header.
2161 2011-02-11 Pedro Alves <pedro@codesourcery.com>
2163 * infrun.c (proceed): Move switching out and in of tfind mode from
2165 (fetch_inferior_event): ... to here.
2167 2011-02-11 Yao Qi <yao@codesourcery.com>
2169 * Makefile.in: Remove signals.o from COMMON_OBS. Link
2171 * configure.ac: Add common to sub dir.
2172 * configure: Regenerate.
2174 2011-02-11 Yao Qi <yao@codesourcery.com>
2178 * common/Makefile.in: New.
2179 * common/configure.ac: New.
2180 * common/aclocal.m4: New.
2181 * common/configure: Generate.
2183 2011-02-10 Pedro Alves <pedro@codesourcery.com>
2185 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
2186 side of the parenthesis.
2189 2010-07-13 Jakub Jelinek <jakub@redhat.com>
2190 * vec.h (VEC_block_remove): Fix comment.
2192 2011-02-08 Michael Snyder <msnyder@vmware.com>
2194 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
2196 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2198 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
2199 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
2202 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2205 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
2207 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
2208 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
2210 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2212 * dwarf2read.c (read_subroutine_type): Set special calling
2213 convention flag for functions compiled by IBM XL C for OpenCL.
2214 * ppc-sysv-tdep.c: Include "dwarf2.h"
2215 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
2217 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
2218 IBM OpenCL vector types calling convention.
2219 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
2220 (ppc_sysv_abi_broken_return_value): Likewise.
2221 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
2222 types calling convention.
2223 (ppc64_sysv_abi_return_value): Likewise.
2224 * spu-tdep.c: Include "dwarf2.h"
2225 (spu_return_value): Implement IBM OpenCL vector types calling
2228 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2230 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
2231 correct ABI for AltiVec vector arguments.
2233 2011-02-07 Pedro Alves <pedro@codesourcery.com>
2235 * valprint.c (val_print): Extend comment.
2236 * ada-valprint.c (ada_valprint): Rewrite comment deferring
2237 interface explanation to val_print.
2238 (ada_val_print_array): Adjust comment to current interface.
2239 (print_field_values): Adjust comment to current interface.
2240 * c-valprint.c (c_val_print): Rewrite comment deferring interface
2241 explanation to val_print.
2242 * f-valprint.c (f_val_print): Ditto.
2243 * jv-valprint.c (java_val_print): Ditto.
2244 * m2-valprint.c (m2_val_print): Ditto.
2245 * p-valprint.c (pascal_val_print): Ditto.
2247 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
2249 * breakpoint.c (parse_breakpoint_sals): Fix description.
2251 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
2252 Oguz Kayral <oguzkayral@gmail.com>
2254 * python/py-inferior.c (python_on_normal_stop): New function.
2255 (python_on_resume): New function.
2256 (python_inferior_exit): New function.
2257 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
2258 inferior_exit observers.
2259 * python/py-evtregistry.c: New file.
2260 * python/py-threadevent.c : New file.
2261 * python/py-event.c: New file.
2262 * python/py-evts.c: New file.
2263 * python/py-continueevent.c: New file.
2264 * python/py-bpevent.c: New file.
2265 * python/py-signalevent.c: New file.
2266 * python/py-exetiedevent.c: New file.
2267 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
2268 Move struct breakpoint_object from here...
2269 * python/python-internal.h: ... to here.
2270 * python/py-event.h: New file.
2271 * python/py-events.h: New file.
2272 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
2273 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
2274 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
2275 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
2276 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
2277 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
2278 Add build rules for all the above.
2280 2011-02-04 Tom Tromey <tromey@redhat.com>
2282 * dwarf2read.c (dwarf2_section_empty_p): New function.
2283 (dwarf2_read_section): Use dwarf2_section_empty_p.
2284 (dwarf2_section_size): New function.
2285 (dwarf2_get_section_info): Unconditionally read section.
2286 (dwarf2_read_index): Use dwarf2_section_empty_p.
2287 (partial_read_comp_unit_head): Use dwarf2_section_size.
2288 (dwarf2_symbol_mark_computed): Likewise.
2290 2011-02-04 David Daney <ddaney@caviumnetworks.com>
2292 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
2294 2011-02-04 David Daney <ddaney@caviumnetworks.com>
2296 * mips-linux-tdep.c: Include xml-syscall.h.
2297 (mips_linux_get_syscall_number): New function.
2298 (mips_linux_init_abi): Add calls to
2299 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
2300 * data-directory/Makefile.in (SYSCALLS_FILES): Add
2301 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
2302 * syscalls/mips-n32-linux.xml: New file.
2303 * syscalls/mips-n64-linux.xml: New file.
2304 * syscalls/mips-o32-linux.xml: New file.
2306 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
2308 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
2309 Complain about inverted range entries.
2310 (dwarf2_record_block_ranges): Likewise.
2312 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2315 * breakpoint.c (update_watchpoint): Fix name of the
2316 update_global_location_list function.
2317 (print_one_breakpoint): Fix typo.
2318 (_initialize_breakpoint): Remove extra space in hbreak help
2320 * breakpoint.h (struct bp_location) <length>: Fix field
2323 2011-02-04 Pedro Alves <pedro@codesourcery.com>
2325 * regcache.c (registers_changed_ptid): Don't explictly always
2326 clear `current_regcache'. Only clear current_thread_ptid and
2327 current_thread_arch when PTID matches. Only reinit the frame
2328 cache if PTID matches the current inferior_ptid. Move alloca(0)
2330 (registers_changed): ... here.
2332 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
2334 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
2335 starts with __stack_chk_guard as stack guard symbol.
2337 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
2339 * disasm.c (compare_lines): Handle the end of sequence markers
2340 within the line table to better support disassembling over
2341 compilation unit boundaries.
2343 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2345 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
2346 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
2347 implementation even if no symbols are available.
2348 (thumb_analyze_prologue): Update call to skip_prologue_function.
2349 (arm_analyze_prologue): Likewise.
2351 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2353 * arm-tdep.c: Include "observer.h".
2354 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
2355 (arm_exidx_data_key): New static variable.
2356 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
2357 (struct arm_exidx_data): Likewise.
2358 (arm_exidx_data_free): New function.
2359 (arm_compare_exidx_entries): Likewise.
2360 (arm_obj_section_from_vma): Likewise.
2361 (arm_exidx_new_objfile): Likewise.
2362 (arm_find_exidx_entry): Likewise.
2363 (arm_exidx_fill_cache): Likewise.
2364 (arm_exidx_unwind_sniffer): Likewise.
2365 (arm_exidx_unwind): New global variable.
2366 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
2367 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
2368 observer. Register arm_exidx_data_key as objfile data.
2370 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2372 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
2373 due to accessing uninitialized variable. Fix indentation.
2375 2011-02-02 Pedro Alves <pedro@codesourcery.com>
2377 * c-valprint.c (c_value_print): When doing virtual base pointer
2378 adjustment, create a new value with adjusted contents rather than
2379 changing the contents of the value being printed (and getting it
2382 2011-02-02 Pedro Alves <pedro@codesourcery.com>
2384 * xml-support.c (xml_find_attribute): New.
2385 (xinclude_start_include): Use it.
2386 * xml-support.h (xml_find_attribute): Declare.
2387 * memory-map.c (memory_map_start_memory)
2388 (memory_map_start_property): Use xml_find_attribute.
2389 * osdata.c (osdata_start_osdata, osdata_start_column): Use
2391 * remote.c (start_thread): Use xml_find_attribute.
2392 * solib-target.c (library_list_start_segment)
2393 (library_list_start_section, library_list_start_library)
2394 (library_list_start_list): Use xml_find_attribute.
2395 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
2396 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
2397 (tdesc_start_field): Use xml_find_attribute.
2399 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
2401 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
2402 (BUILD_OCL_VTYPES): Update.
2404 2011-02-02 Joel Brobecker <brobecker@adacore.com>
2406 * configure.ac: Work around non-GNU sed limitation when computing
2407 python version number.
2408 * configure: Regenerate.
2410 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2412 Fix debug printing of TYPE_INSTANCE.
2413 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
2414 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
2416 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2418 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
2419 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
2420 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
2421 * ada-operator.inc: Rename the file to ...
2422 * ada-operator.def: ... here, wrap all the entries by macro OP.
2423 * expprint.c (op_name_standard): Remove all the entries. Include
2424 "std-operator.def" instead.
2425 * expression.h (enum exp_opcode): Include "std-operator.def" and
2426 "ada-operator.def". Move all the entries ...
2427 * std-operator.def: ... here, wrap all the entries by macro OP.
2429 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2431 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
2432 * breakpoint.c (remove_jit_event_breakpoints): New function.
2433 * jit.c (jit_descriptor_addr): Delete.
2434 (registering_code): Delete.
2435 (clear_int): Delete.
2436 (jit_inferior_data): New variable.
2437 (struct jit_inferior_data): New type.
2438 (get_jit_inferior_data): New function.
2439 (jit_inferior_data_cleanup): New function.
2440 (jit_read_descriptor): Adjust.
2441 (jit_register_code): Adjust.
2442 (jit_breakpoint_re_set_internal): New function; move code here ...
2443 (jit_inferior_init): ... from here.
2444 (jit_breakpoint_re_set): Adjust.
2445 (jit_reset_inferior_data_and_breakpoints): New function.
2446 (jit_inferior_created_observer): Adjust.
2447 (jit_inferior_exit_hook): Adjust.
2448 (jit_executable_changed_observer): New function.
2449 (jit_event_handler): Adjust.
2450 (_initialize_jit): Adjust.
2452 2011-01-31 Michael Snyder <msnyder@vmware.com>
2454 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
2457 2011-01-31 Tom Tromey <tromey@redhat.com>
2460 * python/python.c (execute_gdb_command): Call
2461 prevent_dont_repeat.
2462 * top.c (suppress_dont_repeat): New global.
2463 (dont_repeat): Use it.
2464 (prevent_dont_repeat): New function.
2465 * command.h (prevent_dont_repeat): Declare.
2467 2011-01-31 Tom Tromey <tromey@redhat.com>
2469 * infcmd.c (finish_backward): Use breakpoint_set_silent.
2470 * python/py-breakpoint.c (bppy_set_silent): Use
2471 breakpoint_set_silent.
2472 (bppy_set_thread): Use breakpoint_set_thread.
2473 (bppy_set_task): Use breakpoint_set_task.
2474 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
2475 (breakpoint_set_task): Declare.
2476 (make_breakpoint_silent): Remove.
2477 * breakpoint.c (breakpoint_set_silent): New function.
2478 (breakpoint_set_thread): Likewise.
2479 (breakpoint_set_task): Likewise.
2480 (make_breakpoint_silent): Remove.
2482 2011-01-31 Tom Tromey <tromey@redhat.com>
2484 * breakpoint.h (user_breakpoint_p): Declare.
2485 * breakpoint.c (user_breakpoint_p): New function.
2486 (breakpoint_1): Use it.
2487 (save_breakpoints): Likewise.
2489 2011-01-31 Joel Brobecker <brobecker@adacore.com>
2491 * configure.ac: Add handling of Python distribution on Windows.
2492 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
2493 sysconfig variables are not defined, then do not use them.
2494 On Windows, if LIBPL is not defined, then use prefix + '/libs'
2495 instead. On Windows, return all paths using forward-slashes
2496 rather than backslashes.
2498 2011-01-31 Joel Brobecker <brobecker@adacore.com>
2500 * configure.ac: Remove fallback behavior for building
2501 against Python. Remove tweaking of Python include path.
2502 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
2503 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
2504 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
2505 Always restore CPPFLAGS and LIBS after linking test.
2506 * configure: Regenerated.
2507 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
2508 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
2509 * python/python-internal.h: Adjust includes of Python .h files.
2511 2011-01-31 Joel Brobecker <brobecker@adacore.com>
2513 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
2516 2011-01-31 Joel Brobecker <brobecker@adacore.com>
2518 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
2521 2011-01-31 Yao Qi <yao@codesourcery.com>
2523 * arm-linux-nat.c: Update calls to regcache_register_status
2524 instead of regcache_valid_p.
2525 * aix-thread.c: Likewise.
2526 * i386gnu-nat.c: Likewise.
2528 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2531 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
2532 touching TYPE_FIELD_ARTIFICIAL.
2534 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
2536 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
2539 2011-01-28 Pedro Alves <pedro@codesourcery.com>
2541 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
2542 selected, don't try iterating over the traceframe's blocks.
2543 (tfile_has_stack): If there's no traceframe selected, then there's
2545 (tfile_has_registers): If there's no traceframe selected, then
2546 there's no registers.
2548 2011-01-28 Pedro Alves <pedro@codesourcery.com>
2550 * target.c (memory_xfer_partial): No need to restore shadows if we
2551 haven't read anything.
2553 2011-01-28 Pedro Alves <pedro@codesourcery.com>
2555 * mips-tdep.c (mips_print_register): Use get_frame_register_value
2556 and val_print_scalar_formatted.
2558 2011-01-27 Pedro Alves <pedro@codesourcery.com>
2560 * tracepoint.c (tfile_read): New.
2561 (tfile_open): Use it.
2562 (tfile_get_traceframe_address): Use it.
2563 (tfile_trace_find): Use it.
2564 (walk_blocks_callback_func): New typedef.
2565 (match_blocktype): New function.
2566 (traceframe_walk_blocks): New function.
2567 (traceframe_find_block_type): New function.
2568 (tfile_fetch_registers, tfile_xfer_partial)
2569 (tfile_get_trace_state_variable_value): Use
2570 traceframe_find_block_type and tfile_read.
2572 2011-01-26 Kevin Buettner <kevinb@redhat.com>
2574 * remote-mips.c: Add internationalization mark ups. Remove
2575 trailing \n from already marked up strings.
2577 2011-01-26 Tom Tromey <tromey@redhat.com>
2579 * python/py-prettyprint.c (print_string_repr): Clear
2580 'addressprint' option when calling val_print_string.
2581 (print_children): Handle Val_pretty_default. Clear 'addressprint'
2582 option when calling val_print_string.
2584 2011-01-26 Tom Tromey <tromey@redhat.com>
2586 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
2588 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
2590 (gdb_py_longest, gdb_py_ulongest): New typedefs.
2591 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
2592 (gdb_py_long_as_ulongest): New defines.
2593 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
2594 (gdb_py_int_as_long): Declare.
2595 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
2596 GDB_PY_LL_ARG, gdb_py_object_from_longest.
2597 (valpy_long): Add comment.
2598 * python/py-utils.c (get_addr_from_python): Use
2599 gdb_py_long_as_ulongest. Handle overflow properly.
2600 (gdb_py_object_from_longest): New function.
2601 (gdb_py_object_from_ulongest): Likewise.
2602 (gdb_py_int_as_long): Likewise.
2603 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
2604 * python/py-symtab.c (salpy_get_pc): Use
2605 gdb_py_long_from_ulongest.
2606 (salpy_get_line): Use PyInt_FromLong.
2607 * python/py-param.c (set_parameter_value): Use
2609 * python/py-lazy-string.c (stpy_get_address): Use
2610 gdb_py_long_from_ulongest.
2611 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
2612 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
2613 * python/py-breakpoint.c (bppy_set_thread): Use
2615 (bppy_set_task): Likewise.
2616 (bppy_set_ignore_count): Likewise.
2617 (bppy_set_hit_count): Likewise.
2618 * python/py-block.c (blpy_get_start): Use
2619 gdb_py_object_from_ulongest.
2620 (blpy_get_end): Likewise.
2621 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
2623 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
2626 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
2627 * gdb/solib.c (solib_read_symbols): Check for addr_low in
2628 equality test for objfile, initialize addr_low if needed.
2630 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2632 * tui/tui-regs.c (tui_register_format): Remove dead code.
2634 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2636 * printcmd.c (print_formatted): Use val_print_scalar_formatted
2637 instead of print_scalar_formatted.
2638 (print_scalar_formatted): Don't handle 's' format strings here,
2639 and add an assertion that we never see such format here.
2640 * valprint.h (val_print_scalar_formatted): Declare.
2641 * valprint.c (val_print_scalar_formatted): New.
2642 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
2643 instead of print_scalar_formatted.
2644 * jv-valprint.c (java_val_print): Ditto.
2645 * p-valprint.c (pascal_val_print): Ditto.
2646 * ada-valprint.c (ada_val_print_1): Ditto.
2647 * f-valprint.c (f_val_print): Ditto.
2648 * infcmd.c (registers_info): Ditto.
2649 * m2-valprint.c (m2_val_print): Ditto.
2651 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2653 * m2-valprint.c (print_unbounded_array): Pass
2654 value_contents_for_printing rather than value_contents, to
2655 m2_print_array_contents. Also pass in the value.
2657 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2659 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
2660 (save_gdb_index_command): Switch to .gdb_index version 4.
2662 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2664 * mi/mi-main.c (get_register): Use get_frame_register_value rather
2665 than frame_register, and always pass a valid value to val_print.
2667 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2669 Centralize printing "<optimized out>".
2671 * valprint.h (val_print_optimized_out): Declare.
2672 * cp-valprint.c (cp_print_value_fields): Use
2673 val_print_optimized_out.
2674 * jv-valprint.c (java_print_value_fields): Ditto.
2675 * p-valprint.c (pascal_object_print_value_fields): Ditto.
2676 * printcmd.c (print_formatted): Ditto.
2677 * valprint.c (valprint_check_validity): Ditto.
2678 (value_check_printable): Ditto.
2679 (val_print_optimized_out): New.
2681 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2683 * infcmd.c (default_print_registers_info): Allocate values so to
2684 never pass a NULL value to val_print.
2686 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2688 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
2689 boolean. Make sure to always pass a value that matches the
2690 contents buffer to callees. Preserve `address' for following
2692 * value.c (value_contents_for_printing_const): New.
2693 (value_address): Constify value argument.
2694 * value.h (value_contents_for_printing_const): Declare.
2695 (value_address): Constify value argument.
2697 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2699 * regcache.c (struct regcache_descr): Rename
2700 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
2701 and sizeof_cooked_register_valid_p to
2702 sizeof_cooked_register_status.
2703 (init_regcache_descr): Adjust.
2704 (struct regcache): Rename register_valid_p field to
2706 (regcache_xmalloc_1, regcache_xfree, regcache_save)
2707 (do_cooked_read): Adjust.
2708 (regcache_valid_p): Rename to ...
2709 (regcache_register_status): ... this. Adjust.
2710 (regcache_invalidate): Adjust.
2711 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
2713 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
2714 as unavailable, not valid.
2715 (regcache_dump): Adjust.
2716 * regcache.h (enum register_status): New.
2717 (regcache_register_status): Declare.
2718 (regcache_invalidate): Delete declaration.
2719 * corelow.c (get_core_registers): Adjust.
2720 * tracepoint.c (tfile_fetch_registers): Adjust.
2721 * trad-frame.c (REG_VALUE): Rename to ...
2722 (TF_REG_VALUE): ... this.
2723 (REG_UNKNOWN): Rename to ...
2724 (TF_REG_UNKNOWN): ... this.
2725 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
2726 * mi/mi-main.c (register_changed_p): Adjust.
2728 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2730 * regcache.c (struct regcache_descr): Remove outdated comment.
2731 (init_regcache_descr): Remove sizeof_raw_register_valid_p
2733 (regcache_xmalloc): Rename to ...
2734 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
2735 Allocate the regcache type accordingly.
2736 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
2737 (regcache_xfree): Asser the source is also readonly. Copy sizeof
2738 cooked registers, not raw.
2739 (regcache_dup_no_passthrough): Delete.
2740 (get_thread_arch_regcache): Use regcache_xmalloc_1.
2741 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
2742 mention obsolete write_register_bytes.
2743 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
2745 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2747 Stop remote_read_bytes from handling partial reads itself.
2749 * remote-fileio.c: Include target.h.
2750 (remote_fileio_write_bytes): Delete.
2751 (remote_fileio_func_open, remote_fileio_func_write)
2752 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
2754 (remote_fileio_func_stat): Use target_read_memory and
2755 target_write_memory.
2756 (remote_fileio_func_gettimeofday): Use target_write_memory.
2757 (remote_fileio_func_system): Use target_read_memory.
2758 * remote.c (remote_write_bytes): Make it static.
2759 (remote_read_bytes): Don't handle partial reads here.
2760 * remote.h (remote_read_bytes): Delete declaration.
2762 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2764 Simplify XML parsing a bit.
2766 * xml-support.h (gdb_xml_parse_quick): Declare.
2767 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
2768 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
2770 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
2771 gdb_xml_create_parser_and_cleanup_1.
2772 (gdb_xml_parse_quick): New.
2773 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
2774 * osdata.c (osdata_parse): Ditto.
2775 * remote.c (remote_threads_info): Ditto.
2776 * solib-target.c (solib_target_parse_libraries): Ditto.
2777 * xml-syscall.c (syscall_parse_xml): Ditto.
2778 * xml-tdesc.c (tdesc_parse_xml): Ditto.
2780 2011-01-24 Kevin Buettner <kevinb@redhat.com>
2782 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
2783 with remote-mips.o added to gdb_target_obs.
2784 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
2786 2011-01-24 Pedro Alves <pedro@codesourcery.com>
2788 * ada-valprint.c (val_print_packed_array_elements): Pass the
2789 correct struct value to val_print.
2790 (ada_val_print_1): Ditto.
2792 2011-01-24 Pedro Alves <pedro@codesourcery.com>
2794 Don't lose embedded_offset in printing routines throughout.
2796 * valprint.h (val_print_array_elements): Change prototype.
2797 * valprint.c (val_print_array_elements): Add `embedded_offset'
2798 parameter, and adjust to pass it down to val_print, while passing
2799 `valaddr' or `address' unmodified. Take embedded_offset into
2800 account when checking repetitions.
2801 * c-valprint.c (c_val_print): Pass embedded_offset to
2802 val_print_array_elements instead of adjusting `valaddr' and
2804 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
2805 embedded_offset to val_print_array_elements instead of adjusting
2807 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
2808 * p-valprint.c (pascal_val_print): Pass embedded_offset to
2809 val_print_array_elements and pascal_object_print_value_fields
2810 instead of adjusting `valaddr'.
2811 (pascal_object_print_value_fields): Add `offset' parameter, and
2813 (pascal_object_print_value): Add `offset' parameter, and adjust to
2815 (pascal_object_print_static_field): Use
2816 value_contents_for_printing/value_embedded_offset, rather than
2818 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
2819 parameter, and adjust to use it. Use
2820 value_contents_for_printing/value_embedded_offset, rather than
2822 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
2823 (ada_val_print_array): Add `offset' parameter, and adjust to use
2825 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
2826 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
2827 Instead work with offsets. Use
2828 value_contents_for_printing/value_embedded_offset, rather than
2829 value_contents. Change `defer_val_int' local type to CORE_ADDR,
2830 and use value_from_pointer to extract a target pointer, rather
2831 than value_from_longest.
2832 (print_variant_part): Add `offset' parameter. Replace
2833 `outer_valaddr' parameter by a new `outer_offset' parameter.
2834 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
2835 (ada_value_print): Use
2836 value_contents_for_printing/value_embedded_offset, rather than
2838 (print_record): Add `offset' parameter, and adjust to pass it
2840 (print_field_values): Add `offset' parameter. Replace
2841 `outer_valaddr' parameter by a new `outer_offset' parameter.
2842 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
2843 Use value_contents_for_printing/value_embedded_offset, rather than
2845 * d-valprint.c (dynamic_array_type): Use
2846 value_contents_for_printing/value_embedded_offset, rather than
2848 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
2849 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
2850 (java_print_value_fields): Take `offset' into account. Don't
2851 re-adjust `valaddr'. Instead pass down adjusted offsets.
2852 (java_val_print): Take `embedded_offset' into account. Pass it to
2853 java_print_value_fields.
2854 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
2855 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
2856 down adjusted offsets.
2857 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
2858 (f_val_print): Take `embedded_offset' into account.
2860 2011-01-21 Joel Brobecker <brobecker@adacore.com>
2862 * inflow.c: Include "gdbcmd.h".
2863 (interactive_mode): New static global, moved here from top.c.
2864 (show_interactive_mode): New function, moved here from top.c.
2865 use gdb_has_a_terminal instead of input_from_terminal_p to
2866 determine the current mode.
2867 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
2869 (_initialize_inflow): Add the "set/show interactive-mode"
2870 commands. Moved here from top.c, after having adjusted slightly
2872 * top.c (interactive_mode, show_interactive_mode): Delete, moved
2874 (input_from_terminal_p): Remove handling of "interactive-mode"
2875 setting, moved to infow.c.
2876 (init_main): Remove creation of the "set/show interactive-mode"
2877 commands, moved to inflow.c.
2879 2011-01-19 Joel Brobecker <brobecker@adacore.com>
2881 * NEWS: Add entry for native ia64-hpux support.
2883 2011-01-19 Tom Tromey <tromey@redhat.com>
2886 * thread.c (free_thread): Free 'name'.
2887 (print_thread_info): Emit thread name. Change CLI output.
2888 (thread_name_command): New function.
2889 (do_captured_thread_select): Emit newline.
2890 (_initialize_thread): Register 'thread name' command.
2891 * target.h (struct target_ops) <to_thread_name>: New field.
2892 (target_thread_name): New macro.
2893 * target.c (update_current_target): Handle to_thread_name.
2894 * python/py-infthread.c (thpy_get_name): New function.
2895 (thpy_set_name): Likewise.
2896 (thread_object_getset): Add "name".
2897 * linux-nat.c (linux_nat_thread_name): New function.
2898 (linux_nat_add_target): Set to_thread_name.
2899 * gdbthread.h (struct thread_info) <name>: New field.
2901 2011-01-18 Joel Brobecker <brobecker@adacore.com>
2903 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
2904 (ada_val_print_1): Likewise.
2906 2011-01-18 Joel Brobecker <brobecker@adacore.com>
2908 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
2909 upper limit address is not greater than the function end address
2910 when the upper limit could not be computed using the debugging
2913 2011-01-17 Tom Tromey <tromey@redhat.com>
2915 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
2917 * utils.c: Include gdb_regex.h.
2918 (do_regfree_cleanup): New function.
2919 (make_regfree_cleanup): Likewise.
2920 (get_regcomp_error): Likewise.
2921 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
2923 2011-01-17 Tom Tromey <tromey@redhat.com>
2925 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
2928 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
2930 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
2931 for internal variables.
2932 (last_was_structop): New static variable.
2933 (COMPLETE): New token.
2934 (field_exp): New rule to group all '.' suffix handling.
2935 Add mark_struct_expression calls when approriate to be able
2936 to correctly find fields for completion.
2937 (yylex): Adapt to handle field completion and set INTVAR when
2940 2011-01-14 Yao Qi <yao@codesourcery.com>
2942 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
2943 save_reggroup, restore_reggroup and all_reggroup.
2945 2011-01-14 Joel Brobecker <brobecker@adacore.com>
2947 * ada-valprint. (ada_printchar): Use the correct type length
2948 in call to ada_emit_char.
2949 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
2951 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
2953 * solib-som.h (hpux_major_release): Declare variable here.
2954 * solib-som.c: Remove <sys/utsname.h> header.
2955 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
2956 (hpux_major_release): Make global, change default value to
2957 DEFAULT_HPUX_MAJOR_RELEASE.
2958 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
2959 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
2960 Add "solib-som.h" header.
2961 (set_hpux_major_release): New function.
2962 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
2964 2011-01-14 Mike Frysinger <vapier@gentoo.org>
2966 * configure.tgt (*-*-uclinux*): Match more Linux os targets
2968 2011-01-14 Joel Brobecker <brobecker@adacore.com>
2970 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
2971 new-line at end of warning message.
2972 (ia64_hpux_store_register): Remove trailing new-line at end of
2974 * ia64-hpux-tdep.c: Rephrase comment.
2975 * solib-ia64-hpux.c (struct dld_info): Change type of field
2976 dld_flags from "long long" to ULONGEST.
2978 2011-01-14 Pedro Alves <pedro@codesourcery.com>
2980 * target.h (deprecated_child_ops): Delete declaration.
2981 * target.c (deprecated_child_ops): Delete definition.
2983 2011-01-14 Pedro Alves <pedro@codesourcery.com>
2985 * Makefile.in (hpux-thread.o): Delete rule.
2986 * configure.ac: Don't check for HPUX DCE threads support.
2987 * configure, config.in: Regenerate.
2988 * hppa-hpux-nat.c (child_suppress_run): Delete.
2989 (hppa_hpux_child_can_run): Delete.
2990 (_initialize_hppa_hpux_nat): Don't override to_can_run.
2991 * hpux-thread.c: Delete.
2993 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2995 * hpux-thread.c (hpux_pid_to_str): Delete.
2997 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2999 * ada-valprint.c (ada_emit_char): Remove strange code.
3000 Check that c is <= UCHAR_MAX before passing it to isascii.
3001 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
3003 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3005 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
3006 to the case where instream is stdin.
3008 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3010 * ia64-tdep.h (struct regcache): Forward declare.
3011 (struct ia64_infcall_ops): New struct type.
3012 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
3014 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
3015 Renames ia64_find_global_pointer.
3016 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
3017 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
3018 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
3020 (ia64_infcall_ops): New static global constant.
3021 (ia64_gdbarch_init): Set tdep->infcall_ops.
3022 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
3023 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
3024 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
3025 (ia64_hpux_dummy_code): New static global constant.
3026 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
3027 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
3028 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
3030 (ia64_hpux_infcall_ops): New static global constant.
3031 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
3032 for inferior function calls to work properly on ia64-hpux.
3034 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3036 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
3037 * ia64-tdep.h (struct frame_info): forward declaration.
3038 (struct gdbarch_tdep): Add field size_of_register_frame.
3039 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
3040 to determine the size of the register frame.
3041 (ia64_size_of_register_frame): New function.
3042 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
3043 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
3044 (IA64_HPUX_UREG_REASON): New macro.
3045 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
3047 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
3048 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
3049 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
3052 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3054 Add support for ia64-hpux.
3055 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
3056 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
3058 * configure.host: Add handling for ia64-hpux hosts. Add associated
3060 * configure.tgt: Add handling for ia64-hpux targets.
3061 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
3062 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
3063 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
3065 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3067 [ttrace] Compute thread list immediately after attach.
3068 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
3070 (inf_ttrace_attach): Use it.
3072 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3074 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
3075 if we could not determine the frame's function address. Instead,
3076 use the frame's PC, and then continue.
3078 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3080 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
3081 not already defined.
3083 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3085 * ia64-tdep.c (ia64_struct_type_p): New function.
3086 (ia64_extract_return_value): Handle integral values that are
3087 less than 8 bytes long.
3088 (ia64_push_dummy_call): Likewise.
3090 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3092 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
3093 floatformat_ia64_ext.
3094 (floatformat_ia64_ext_big): New static const.
3095 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
3097 2011-01-12 Tom Tromey <tromey@redhat.com>
3099 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
3101 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
3102 (mi_cmd_thread_list_ids): Likewise.
3103 (mi_cmd_data_list_changed_registers): Likewise.
3104 (mi_cmd_data_list_register_values): Likewise.
3105 (mi_cmd_data_write_register_values): Likewise.
3106 (mi_cmd_data_evaluate_expression): Likewise.
3107 (mi_cmd_data_read_memory): Likewise.
3108 (mi_cmd_data_read_memory_bytes): Likewise.
3109 (mi_cmd_data_write_memory): Likewise.
3110 (mi_cmd_enable_timings): Likewise.
3111 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
3112 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
3113 (mi_cmd_var_delete): Likewise.
3114 (mi_cmd_var_set_format): Likewise.
3115 (mi_cmd_var_show_format): Likewise.
3116 (mi_cmd_var_info_num_children): Likewise.
3117 (mi_cmd_var_list_children): Likewise.
3118 (mi_cmd_var_info_type): Likewise.
3119 (mi_cmd_var_info_expression): Likewise.
3120 (mi_cmd_var_show_attributes): Likewise.
3121 (mi_cmd_var_assign): Likewise.
3122 (mi_cmd_var_update): Likewise.
3123 (mi_cmd_enable_pretty_printing): Likewise.
3124 (mi_cmd_var_set_update_range): Likewise.
3125 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
3127 (mi_cmd_target_file_put): Likewise.
3128 (mi_cmd_target_file_delete): Likewise.
3129 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
3131 (mi_cmd_stack_info_depth): Likewise.
3132 (mi_cmd_stack_list_locals): Likewise.
3133 (mi_cmd_stack_list_args): Likewise.
3134 (mi_cmd_stack_select_frame): Likewise.
3135 (mi_cmd_stack_select_frame): Likewise.
3136 (mi_cmd_stack_info_frame): Likewise.
3137 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
3139 (mi_cmd_file_list_exec_source_files): Likewise.
3140 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
3141 (mi_cmd_env_cd): Likewise.
3142 (mi_cmd_env_path): Likewise.
3143 (mi_cmd_env_dir): Likewise.
3144 (mi_cmd_inferior_tty_show): Likewise.
3145 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
3146 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
3147 (mi_cmd_break_watch): Likewise.
3149 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
3151 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
3152 (ppc_linux_insert_hw_breakpoint): Likewise.
3153 (ppc_linux_remove_hw_breakpoint): Likewise.
3154 (ppc_linux_insert_watchpoint): Likewise.
3156 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
3157 Jan Kratochvil <jan.kratochvil@redhat.com>
3159 PR fortran/11104 and DWARF unbound arrays detection.
3160 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
3161 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
3162 unspecified upper bound.
3163 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
3164 variables array_size_array, tmp_type and offset_item. New variable
3165 array. Remove call to f77_get_upperbound. New variables array_type
3166 and index. Call value_subscripted_rvalue for each dimenasion. Remove
3167 the final call to deprecated_set_value_type.
3169 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3171 Make value allocations more lazy.
3172 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
3173 instead of allocate_value and set_value_lazy when possible.
3174 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
3175 instead of allocate_value and set_value_lazy.
3176 * findvar.c (value_of_register_lazy): Likewise.
3177 (read_var_value): Remove V preallocation, call just check_typedef in
3178 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
3179 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
3180 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
3181 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
3182 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
3183 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
3184 the end, remove set_value_lazy there.
3185 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
3186 instead of allocate_value and set_value_lazy when possible.
3187 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
3188 * value.c (allocate_computed_value): Use allocate_value_lazy instead
3189 of allocate_value and set_value_lazy.
3190 (value_from_contents_and_address): Use allocate_value_lazy instead of
3191 allocate_value and set_value_lazy when possible.
3193 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
3195 * disasm.c (dump_insns): Support dumping opcodes for MI.
3196 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
3197 dumping of instruction opcodes.
3199 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
3201 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
3204 2011-01-11 Tom Tromey <tromey@redhat.com>
3206 * thread.c (do_captured_thread_select): Emit newline before
3209 2011-01-11 Michael Snyder <msnyder@vmware.com>
3211 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
3212 * score-tdep.c: Ditto.
3213 * score-tdep.h: Ditto.
3214 * ser-base.c: Ditto.
3215 * ser-go32.c: Ditto.
3218 * ser-mingw.c: Ditto.
3219 * ser-pipe.c: Ditto.
3221 * ser-unix.c: Ditto.
3222 * sh64-tdep.c: Ditto.
3223 * shnbsd-nat.c: Ditto.
3227 * solib-darwin.c: Ditto.
3228 * solib-frv.c: Ditto.
3230 * solib-irix.c: Ditto.
3231 * solib-osf.c: Ditto.
3232 * solib-pa64.c: Ditto.
3233 * solib-som.c: Ditto.
3234 * solib-spu.c: Ditto.
3235 * solib-sunos.c: Ditto.
3236 * solib-svr4.c: Ditto.
3238 * sol-thread.c: Ditto.
3242 * sparc64-linux-tdep.c: Ditto.
3243 * sparc64-tdep.c: Ditto.
3244 * sparc-linux-nat.c: Ditto.
3245 * sparc-linux-tdep.c: Ditto.
3246 * sparc-sol2-nat.c: Ditto.
3247 * sparc-sol2-tdep.c: Ditto.
3248 * sparc-tdep.c: Ditto.
3249 * sparc-tdep.h: Ditto.
3250 * spu-tdep.c: Ditto.
3251 * stabsread.c: Ditto.
3252 * stabsread.h: Ditto.
3260 * target-descriptions.c: Ditto.
3261 * target-descriptions.h: Ditto.
3263 * target-memory.c: Ditto.
3264 * terminal.h: Ditto.
3267 * tracepoint.c: Ditto.
3268 * tracepoint.h: Ditto.
3269 * trad-frame.h: Ditto.
3270 * typeprint.c: Ditto.
3272 2011-01-11 Michael Snyder <msnyder@vmware.com>
3274 * ui-file.c: Comment cleanup, mostly periods and spaces.
3279 * v850-tdep.c: Ditto.
3280 * valarith.c: Ditto.
3282 * valprint.c: Ditto.
3283 * valprint.h: Ditto.
3288 * vax-tdep.c: Ditto.
3292 * windows-nat.c: Ditto.
3293 * windows-tdep.c: Ditto.
3294 * xcoffread.c: Ditto.
3295 * xcoffsolib.c: Ditto.
3296 * xml-support.c: Ditto.
3297 * xstormy16-tdep.c: Ditto.
3298 * xtensa-tdep.c: Ditto.
3299 * xtensa-tdep.h: Ditto.
3301 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3303 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
3304 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
3306 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3307 Thiago Jung Bauermann <bauerman@br.ibm.com>
3309 Implement support for PowerPC BookE ranged watchpoints.
3311 (struct breakpoint_ops) <resources_needed>: New method.
3312 Initialize to NULL in all existing breakpoint_ops instances.
3313 (struct breakpoint) <exact>: New field.
3314 (target_exact_watchpoints): Declare external global.
3315 * breakpoint.c (target_exact_watchpoints): New global flag.
3316 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
3317 b->enable_state to bp_enabled before calling
3318 hw_watchpoint_used_count.
3319 (hw_watchpoint_used_count): Iterate over all bp_locations in a
3320 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
3322 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
3323 if the watchpoint is exact.
3324 (resources_needed_watchpoint): New function.
3325 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
3326 (watch_command_1): Set b->exact if the user asked for an exact
3327 watchpoint and one can be set.
3328 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
3329 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
3330 the user asks for an exact watchpoint and one can be set. Return
3331 number of needed debug registers to watch the expression.
3332 * gdbtypes.c (is_scalar_type): New function, based on
3333 valprint.c:scalar_type_p.
3334 (is_scalar_type_recursive): New function.
3335 * gdbtypes.h (is_scalar_type_recursive): Declare.
3336 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
3337 handle regions when ranged watchpoints are available.
3338 (create_watchpoint_request): New function.
3339 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
3340 create_watchpoint_request.
3341 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
3342 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
3343 `set powerpc' and `show powerpc' commands.
3344 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
3345 Mention documentation comment in the target macro.
3346 (target_region_ok_for_hw_watchpoint): Document return value.
3348 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3350 * breakpoint.c (update_watchpoint): Decide on using a software or
3351 hardware watchpoint after the bp_locations are created.
3353 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3355 Convert hardware watchpoints to use breakpoint_ops.
3356 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
3357 <insert_location>: ... this. Return int instead of void.
3358 Accept pointer to struct bp_location instead of pointer to
3359 struct breakpoint. Adapt all implementations.
3360 (breakpoint_ops) <remove>: Rename to...
3361 <remove_location>: ... this. Accept pointer to struct bp_location
3362 instead of pointer to struct breakpoint. Adapt all implementations.
3363 * breakpoint.c (insert_catchpoint): Delete function.
3364 (insert_bp_location): Call the watchpoint or catchpoint's
3365 breakpoint_ops.insert method.
3366 (remove_breakpoint_1): Call the watchpoint or catchpoint's
3367 breakpoint_ops.remove method.
3368 (insert_watchpoint, remove_watchpoint): New functions.
3369 (watchpoint_breakpoint_ops): New structure.
3370 (watch_command_1): Initialize the OPS field.
3371 * inf-child.c (inf_child_insert_fork_catchpoint)
3372 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
3373 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
3374 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
3376 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
3377 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
3378 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
3379 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
3380 * target.c (update_current_target): Change default implementation of
3381 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
3382 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
3383 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
3384 to_set_syscall_catchpoint to return_one.
3385 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
3386 (debug_to_insert_exec_catchpoint): Report return value.
3387 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
3388 (to_insert_exec_catchpoint): Change declaration to return int instead
3391 2011-01-11 Michael Snyder <msnyder@vmware.com>
3393 * arm-tdep.c: Internationalization.
3396 * fork-child.c: Ditto.
3397 * nto-procfs.c: Ditto.
3398 * ppc-sysv-tdep.c: Ditto.
3400 * remote-mips.c: Ditto.
3402 * rs6000-nat.c: Ditto.
3403 * rs6000-tdep.c: Ditto.
3407 * xml-support.c: Ditto.
3408 * mi/mi-cmd-break.c: Ditto.
3409 * mi/mi-cmd-var.c: Ditto.
3410 * mi/mi-interp.c: Ditto.
3411 * mi/mi-main.c: Ditto.
3413 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
3415 * remote-sim.c (gdbsim_store_register): Update API to
3416 sim_store_register to check more error conditions.
3418 2011-01-10 Michael Snyder <msnyder@vmware.com>
3420 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
3421 * nto-tdep.c: Ditto.
3422 * nto-tdep.h: Ditto.
3423 * objc-exp.y: Ditto.
3424 * objc-lang.c: Ditto.
3425 * objfiles.c: Ditto.
3426 * objfiles.h: Ditto.
3427 * observer.c: Ditto.
3428 * opencl-lang.c: Ditto.
3431 * parser-defs.h: Ditto.
3434 * posix-hdep.c: Ditto.
3435 * ppcbug-rom.c: Ditto.
3436 * ppc-linux-nat.c: Ditto.
3437 * ppc-linux-tdep.c: Ditto.
3438 * ppc-linux-tdep.h: Ditto.
3439 * ppcnbsd-tdep.c: Ditto.
3440 * ppcobsd-tdep.c: Ditto.
3441 * ppcobsd-tdep.h: Ditto.
3442 * ppc-sysv-tdep.c: Ditto.
3443 * ppc-tdep.h: Ditto.
3444 * printcmd.c: Ditto.
3445 * proc-abi.c: Ditto.
3446 * proc-flags.c: Ditto.
3448 * proc-utils.h: Ditto.
3449 * progspace.h: Ditto.
3450 * prologue-value.c: Ditto.
3451 * prologue-value.h: Ditto.
3452 * psympriv.h: Ditto.
3454 * p-typeprint.c: Ditto.
3455 * p-valprint.c: Ditto.
3456 * ravenscar-sparc-thread.c: Ditto.
3457 * ravenscar-thread.c: Ditto.
3458 * ravenscar-thread.h: Ditto.
3460 * regcache.c: Ditto.
3461 * regcache.h: Ditto.
3463 * remote-fileio.c: Ditto.
3464 * remote-fileio.h: Ditto.
3466 * remote-m32r-sdi.c: Ditto.
3467 * remote-mips.c: Ditto.
3468 * remote-sim.c: Ditto.
3469 * rs6000-aix-tdep.c: Ditto.
3470 * rs6000-nat.c: Ditto.
3471 * rs6000-tdep.c: Ditto.
3473 2011-01-10 Michael Snyder <msnyder@vmware.com>
3475 * charset.c (validate): Internationalization.
3476 * coffread.c (read_one_sym): Ditto.
3477 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
3478 * h8300-tdep.c (H8300_extract_return_value): Ditto.
3479 * inflow.c (new_tty): Ditto.
3480 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
3481 * m32c-tdep.c (m32c_return_value): Ditto.
3482 * mep-tdep.c (mep_store_return_value): Ditto.
3483 * score-tdep.c (score7_fetch_insn): Ditto.
3484 * ser-mingw.c (pipe_windows_open): Ditto.
3485 * sh64-tdep.c (sh64_extract_return_value): Ditto.
3486 * spu-tdep.c (spu_register_type): Ditto.
3487 * tracepoint.c (trace_find_command): Ditto.
3488 * valarith.c (value_pos): Ditto.
3490 2011-01-10 Joel Brobecker <brobecker@adacore.com>
3492 * ada-valprint.c (printstr): Minor comment reformatting.
3494 2011-01-08 Michael Snyder <msnyder@vmware.com>
3496 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
3499 2011-01-08 Michael Snyder <msnyder@vmware.com>
3501 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
3502 * hppa-hpux-tdep.c: Ditto.
3503 * hppa-linux-nat.c: Ditto.
3504 * hppa-linux-tdep.c: Ditto.
3505 * hppanbsd-tdep.c: Ditto.
3506 * hppa-tdep.c: Ditto.
3507 * hppa-tdep.h: Ditto.
3508 * hpux-thread.c: Ditto.
3509 * i386-cygwin-tdep.c: Ditto.
3510 * i386-darwin-nat.c: Ditto.
3511 * i386gnu-nat.c: Ditto.
3512 * i386-linux-nat.c: Ditto.
3513 * i386-linux-tdep.c: Ditto.
3514 * i386-nat.c: Ditto.
3515 * i386-nat.h: Ditto.
3516 * i386nbsd-tdep.c: Ditto.
3517 * i386-sol2-nat.c: Ditto.
3518 * i386-stub.c: Ditto.
3519 * i386-tdep.c: Ditto.
3520 * i386-tdep.h: Ditto.
3521 * i387-tdep.c: Ditto.
3522 * ia64-linux-nat.c: Ditto.
3523 * ia64-linux-tdep.c: Ditto.
3524 * ia64-tdep.c: Ditto.
3528 * inferior.c: Ditto.
3529 * inferior.h: Ditto.
3535 * iq2000-tdep.c: Ditto.
3536 * irix5-nat.c: Ditto.
3542 * jv-typeprint.c: Ditto.
3543 * jv-valprint.c: Ditto.
3544 * language.c: Ditto.
3545 * language.h: Ditto.
3546 * linespec.c: Ditto.
3547 * linux-fork.c: Ditto.
3548 * linux-nat.c: Ditto.
3549 * linux-thread-db.c: Ditto.
3550 * lm32-tdep.c: Ditto.
3552 2011-01-08 Michael Snyder <msnyder@vmware.com>
3554 * m2-exp.y: Comment cleanup, mostly periods and spaces.
3556 * m2-typeprint.c: Ditto.
3557 * m2-valprint.c: Ditto.
3558 * m32c-tdep.c: Ditto.
3559 * m32r-linux-nat.c: Ditto.
3560 * m32r-rom.c: Ditto.
3561 * m32r-tdep.c: Ditto.
3562 * m32r-tdep.h: Ditto.
3563 * m68hc11-tdep.c: Ditto.
3564 * m58klinux-nat.c: Ditto.
3565 * m68k-tdep.c: Ditto.
3566 * m88k-tdep.c: Ditto.
3567 * m88k-tdep.h: Ditto.
3568 * machoread.c: Ditto.
3569 * macrocmd.c: Ditto.
3570 * macroexp.c: Ditto.
3571 * macrotab.c: Ditto.
3574 * mdebugread.c: Ditto.
3575 * mdebugread.h: Ditto.
3578 * memory-map.h: Ditto.
3579 * mep-tdep.c: Ditto.
3580 * microblaze-rom.c: Ditto.
3581 * microblaze-tdep.c: Ditto.
3583 * mips-irix-tdep.c: Ditto.
3584 * mips-linux-nat.c: Ditto.
3585 * mips-linux-tdep.c: Ditto.
3586 * mips-linux-tdep.h: Ditto.
3587 * mipsnbsd-nat.c: Ditto.
3588 * mipsnbsd-tdep.c: Ditto.
3589 * mipsread.c: Ditto.
3590 * mips-tdep.c: Ditto.
3591 * mips-tdep.h: Ditto.
3592 * mn10300-linux-tdep.c: Ditto.
3593 * mn10300-tdep.c: Ditto.
3594 * mn10300-tdep.h: Ditto.
3597 * moxie-tdep.c: Ditto.
3598 * moxie-tdep.h: Ditto.
3601 2011-01-08 Mike Frysinger <vapier@gentoo.org>
3603 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
3605 2011-01-08 Robert Millan <rmh@gnu.org>
3607 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
3609 2011-01-07 Michael Snyder <msnyder@vmware.com>
3611 * charset.c (_initialize_charset): Fix typo in string.
3613 2011-01-07 Michael Snyder <msnyder@vmware.com>
3615 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
3617 * tui/tui-layout.c (tui_set_layout_for_display_command):
3618 Split line so that operator goes to beginning of line.
3619 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
3620 assignment out of if statement.
3622 2011-01-07 Michael Snyder <msnyder@vmware.com>
3624 * ada-lang.c: Comment cleanup, mostly periods and spaces.
3625 * ada-lang.h: Ditto.
3626 * ada-tasks.c: Ditto.
3627 * ada-valprint.c: Ditto.
3628 * aix-threads.c: Ditto.
3629 * alpha-linux-nat.c: Ditto.
3630 * alpha-linux-tdep.c: Ditto.
3631 * alpha-mdebug-tdep.c: Ditto.
3632 * alpha-nat.c: Ditto.
3633 * alpha-osf1-tdep.c: Ditto.
3634 * alpha-tdep.c: Ditto.
3635 * alphabsd-nat.c: Ditto.
3636 * alphabsd-tdep.c: Ditto.
3637 * amd64-darwin-tdep.c: Ditto.
3638 * amd64-linux-nat.c: Ditto.
3639 * amd64-linux-tdep.c: Ditto.
3640 * amd64-sol2-tdep.c: Ditto.
3641 * amd64-tdep.c: Ditto.
3642 * amd64-fbsd-tdep.c: Ditto.
3643 * amd64-nbsd-tdep.c: Ditto.
3644 * amd64-obsd-tdep.c: Ditto.
3645 * amd64-linux-nat.c: Ditto.
3646 * amd64-linux-tdep.c: Ditto.
3647 * arm-tdep.c: Ditto.
3648 * arm-tdep.h: Ditto.
3649 * armnbsd-nat.c: Ditto.
3650 * avr-tdep.c: Ditto.
3651 * bfin-tdep.c: Ditto.
3653 * c-typeprintc: Ditto.
3654 * c-valprint.c: Ditto.
3655 * coff-pe-read.h: Ditto.
3656 * coffreead.c: Ditto.
3657 * cris-tdep.c: Ditto.
3659 * darwin-nat-info.c: Ditto.
3660 * darwin-nat.c: Ditto.
3661 * dbug-rom.c: Ditto.
3665 * dec-thread.c: Ditto.
3667 * demangle.c: Ditto.
3668 * dicos-tdep.c: Ditto.
3669 * dictionary.c: Ditto.
3670 * dictionary.h: Ditto.
3671 * dink32-rom.c: Ditto.
3673 * doublest.c: Ditto.
3675 * dummy-frame.c: Ditto.
3676 * dwarf2-frame.c: Ditto.
3677 * dwarf2expr.c: Ditto.
3678 * dwarf2loc.c: Ditto.
3679 * dwarf2read.c: Ditto.
3683 * event-top.h: Ditto.
3684 * exceptions.c: Ditto.
3685 * exceptions.h: Ditto.
3687 * expprint.c: Ditto.
3688 * expression.h: Ditto.
3692 * f-typeprint.c: Ditto.
3693 * f-valprint.c: Ditto.
3694 * fbsd-nat.c: Ditto.
3696 * fork-child.c: Ditto.
3699 * frv-linux-tdep.c: Ditto.
3700 * frv-tdep.c: Ditto.
3702 * gdb-stabs.h: Ditto.
3703 * gdb_assert.h: Ditto.
3704 * gdb_string.h: Ditto.
3705 * gdb_thread_db.h: Ditto.
3706 * gdb_wait.h: Ditto.
3707 * gdbarch.sh: Ditto.
3709 * gdbthread.h: Ditto.
3710 * gdbtypes.c: Ditto.
3711 * gdbtypes.h: Ditto.
3714 * gnu-v2-abi.c: Ditto.
3715 * gnu-v3-abi.c: Ditto.
3716 * go32-nat.c: Ditto.
3717 * gdbarch.c: Regenerate.
3718 * gdbarch.h: Regenerate.
3720 2011-01-07 Michael Snyder <msnyder@vmware.com>
3722 * ax-gdb.c: Adjust some long output strings.
3723 * breakpoint.c: Ditto.
3728 * linux-nat.c: Ditto.
3729 * solib-pa64.c: Ditto.
3730 * solib-som.c: Ditto.
3732 2011-01-06 Tom Tromey <tromey@redhat.com>
3736 * python/python.c (GdbMethods): Add "newest_frame" method.
3737 * python/python-internal.h (gdbpy_newest_frame): Declare.
3738 * python/py-frame.c (gdbpy_newest_frame): New function.
3740 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3742 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
3743 * jit.c (jit_debug): New variable.
3744 (show_jit_debug): New function.
3745 (struct target_buffer): Use ULONGEST.
3746 (bfd_open_from_target_memory): Likewise.
3747 (jit_register_code, jit_inferior_init): Add debug output.
3748 (_initialize_jit): Register "debug jit" command.
3750 2011-01-06 Tom Tromey <tromey@redhat.com>
3752 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
3753 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
3756 2011-01-06 Tom Tromey <tromey@redhat.com>
3758 * python/py-frame.c (frapy_block): Use get_frame_block.
3760 2011-01-06 Joel Brobecker <brobecker@adacore.com>
3762 Do not stop on SIGPRIO signals by default
3763 * infrun.c (_initialize_infrun): Unset signal_stop and
3764 signal_print for TARGET_SIGNAL_PRIO.
3766 2011-01-06 Joel Brobecker <brobecker@adacore.com>
3768 * ada-tasks.c: Fix style violation in comment.
3770 2011-01-06 Joel Brobecker <brobecker@adacore.com>
3772 * linespec.c (decode_compound, find_method): Remove trailing \n
3773 at end of error string.
3774 * solib-irix.c (irix_current_sos): Likewise.
3775 * varobj.c (uninstall_variable): Likewise.
3777 2011-01-06 Joel Brobecker <brobecker@adacore.com>
3779 * copyright.py: New script.
3780 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
3781 Launch emacs without exec'ing. Call copyright.py afterwards.
3783 2011-01-05 Michael Snyder <msnyder@vmware.com>
3785 * addrmap.c: Shorten lines of >= 80 columns.
3786 * arch-utils.c: Ditto.
3787 * arch-utils.h: Ditto.
3789 * ax-general.c: Ditto.
3791 * blockframe.c: Ditto.
3792 * breakpoint.c: Ditto.
3793 * buildsym.c: Ditto.
3795 * c-typeprint.c: Ditto.
3797 * coffread.c: Ditto.
3801 * cp-namespace.c: Ditto.
3802 * cp-support.c: Ditto.
3803 * dbug-rom.c: Ditto.
3808 * dictionary.c: Ditto.
3810 * doublest.c: Ditto.
3811 * dwarf2-frame.c: Ditto.
3812 * dwarf2expr.c: Ditto.
3813 * dwarf2loc.c: Ditto.
3814 * dwarf2read.c: Ditto.
3817 * event-loop.c: Ditto.
3818 * event-loop.h: Ditto.
3819 * exceptions.h: Ditto.
3821 * expprint.c: Ditto.
3822 * expression.h: Ditto.
3824 * f-valprint.c: Ditto.
3826 * frame-base.c: Ditto.
3827 * frame-unwind.c: Ditto.
3828 * frame-unwind.h: Ditto.
3832 * gdb-stabs.h: Ditto.
3833 * gdb_assert.h: Ditto.
3834 * gdb_dirent.h: Ditto.
3835 * gdb_obstack.h: Ditto.
3837 * gdbtypes.c: Ditto.
3838 * gdbtypes.h: Ditto.
3839 * inf-ttrace.c: Ditto.
3844 * inline-frame.h: Ditto.
3845 * language.c: Ditto.
3846 * language.h: Ditto.
3847 * libunwind-frame.c: Ditto.
3848 * libunwind-frame.h: Ditto.
3849 * linespec.c: Ditto.
3850 * linux-nat.c: Ditto.
3851 * linux-nat.h: Ditto.
3852 * linux-thread-db.c: Ditto.
3853 * machoread.c: Ditto.
3854 * macroexp.c: Ditto.
3855 * macrotab.c: Ditto.
3858 * mdebugread.c: Ditto.
3863 * objfiles.c: Ditto.
3864 * objfiles.h: Ditto.
3866 * p-typeprint.c: Ditto.
3867 * p-valprint.c: Ditto.
3869 * printcmd.c: Ditto.
3870 * proc-events.c: Ditto.
3872 * progspace.c: Ditto.
3873 * progspace.h: Ditto.
3874 * psympriv.h: Ditto.
3877 * regcache.c: Ditto.
3878 * regcache.h: Ditto.
3879 * remote-fileio.c: Ditto.
3881 * ser-mingw.c: Ditto.
3883 * ser-unix.c: Ditto.
3886 * solib-frv.c: Ditto.
3887 * solib-irix.c: Ditto.
3888 * solib-osf.c: Ditto.
3889 * solib-pa64.c: Ditto.
3890 * solib-som.c: Ditto.
3891 * solib-sunos.c: Ditto.
3892 * solib-svr4.c: Ditto.
3893 * solib-target.c: Ditto.
3897 * stabsread.c: Ditto.
3898 * stabsread.c: Ditto.
3901 * symfile-mem.c: Ditto.
3907 * target-descriptions.c: Ditto.
3908 * target-memory.c: Ditto.
3911 * terminal.h: Ditto.
3914 * tracepoint.c: Ditto.
3915 * tracepoint.h: Ditto.
3919 * user-regs.c: Ditto.
3920 * user-regs.h: Ditto.
3922 * valarith.c: Ditto.
3924 * valprint.c: Ditto.
3925 * valprint.h: Ditto.
3930 * xcoffread.c: Ditto.
3931 * xcoffsolib.c: Ditto.
3932 * xcoffsolib.h: Ditto.
3933 * xml-syscall.c: Ditto.
3934 * xml-tdesc.c: Ditto.
3936 2011-01-05 Michael Snyder <msnyder@vmware.com>
3938 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
3939 * cli/cli-decode.c: Ditto.
3940 * cli/cli-dump.c: Ditto.
3941 * cli/cli-logging.c: Ditto.
3942 * cli/cli-script.c: Ditto.
3943 * cli/cli-setshow.c: Ditto.
3944 * common/signals.c: Ditto.
3945 * mi/mi-cmd-break.c: Ditto.
3946 * mi/mi-cmd-disas.c: Ditto.
3947 * mi/mi-cmd-stack.c: Ditto.
3948 * mi/mi-cmd-var.c: Ditto.
3949 * mi/mi-cmds.c: Ditto.
3950 * mi/mi-common.h: Ditto.
3951 * mi/mi-console.c: Ditto.
3952 * mi/mi-interp.c: Ditto.
3953 * mi/mi-main.c: Ditto.
3954 * osf-share/cma_attr.c: Ditto.
3955 * osf-share/cma_deb_core.h: Ditto.
3956 * osf-share/cma_debug_client.h: Ditto.
3957 * osf-share/cma_handle.h: Ditto.
3958 * osf-share/cma_mutex.h: Ditto.
3959 * osf-share/cma_stack_int.h: Ditto.
3960 * osf-share/cma_tcb_defs.h: Ditto.
3961 * python/py-auto-load.c: Ditto.
3962 * python/py-breakpoint.c: Ditto.
3963 * python/py-cmd.c: Ditto.
3964 * python/py-frame.c: Ditto.
3965 * python/py-objfile.c: Ditto.
3966 * python/py-param.c: Ditto.
3967 * python/py-progspace.c: Ditto.
3968 * python/py-symbol.c: Ditto.
3969 * python/py-value.c: Ditto.
3970 * python/python-internal.h: Ditto.
3971 * python/python.c: Ditto.
3972 * tui/tui-data.c: Ditto.
3973 * tui/tui-disasm.c: Ditto.
3974 * tui/tui-hooks.c: Ditto.
3975 * tui/tui-io.c: Ditto.
3976 * tui/tui-layout.c: Ditto.
3977 * tui/tui-regs.c: Ditto.
3978 * tui/tui-source.c: Ditto.
3979 * tui/tui-stack.c: Ditto.
3980 * tui/tui-win.c: Ditto.
3981 * tui/tui-windata.c: Ditto.
3982 * tui/tui-winsource.c: Ditto.
3984 2011-01-05 Joel Brobecker <brobecker@adacore.com>
3986 * configure.ac, gdb.1: Copyright year update.
3988 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3990 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
3991 this_pc_in_block, morestack_msym and morestack_name. Check for
3992 "__morestack" minimal symbol there.
3994 2011-01-03 Joel Brobecker <brobecker@adacore.com>
3996 * symfile.c (find_sym_fns): Add call to dont_repeat.
3998 2011-01-01 Joel Brobecker <brobecker@adacore.com>
4000 Copyright year update in most files (performed by copyright.sh).
4002 2011-01-01 Joel Brobecker <brobecker@adacore.com>
4004 * top.c (print_gdb_version): Update copyright year in version output.
4006 For older changes see ChangeLog-2010.
4012 version-control: never