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