b319c0b4cbedf71e18e6ebf1828245cc3bfcaf42
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2011-02-10  Pedro Alves  <pedro@codesourcery.com>
2
3         * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
4         side of the parenthesis.
5
6         Merge from GCC:
7         2010-07-13  Jakub Jelinek  <jakub@redhat.com>
8         * vec.h (VEC_block_remove): Fix comment.
9
10 2011-02-08  Michael Snyder  <msnyder@vmware.com>
11
12         * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
13
14 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
15
16         * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
17         in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
18         psubd and paddd.
19
20 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
21
22         PR 12361.
23         * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
24         phsubsw.
25         (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
26         (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
27
28 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
29
30         * dwarf2read.c (read_subroutine_type): Set special calling
31         convention flag for functions compiled by IBM XL C for OpenCL.
32         * ppc-sysv-tdep.c: Include "dwarf2.h"
33         (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
34         calling convention.
35         (do_ppc_sysv_return_value): Add FUNC_TYPE argument.  Implement
36         IBM OpenCL vector types calling convention.
37         (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
38         (ppc_sysv_abi_broken_return_value): Likewise.
39         (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
40         types calling convention.
41         (ppc64_sysv_abi_return_value): Likewise.
42         * spu-tdep.c: Include "dwarf2.h"
43         (spu_return_value): Implement IBM OpenCL vector types calling
44         convention.
45
46 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
47
48         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
49         correct ABI for AltiVec vector arguments.
50
51 2011-02-07  Pedro Alves  <pedro@codesourcery.com>
52
53         * valprint.c (val_print): Extend comment.
54         * ada-valprint.c (ada_valprint): Rewrite comment deferring
55         interface explanation to val_print.
56         (ada_val_print_array): Adjust comment to current interface.
57         (print_field_values): Adjust comment to current interface.
58         * c-valprint.c (c_val_print): Rewrite comment deferring interface
59         explanation to val_print.
60         * f-valprint.c (f_val_print): Ditto.
61         * jv-valprint.c (java_val_print): Ditto.
62         * m2-valprint.c (m2_val_print): Ditto.
63         * p-valprint.c (pascal_val_print): Ditto.
64
65 2011-02-07  Thiago Jung Bauermann  <bauerman@br.ibm.com>
66
67         * breakpoint.c (parse_breakpoint_sals): Fix description.
68
69 2011-02-04  Sami Wagiaalla  <swagiaal@redhat.com>
70             Oguz Kayral <oguzkayral@gmail.com>
71
72         * python/py-inferior.c (python_on_normal_stop): New function.
73         (python_on_resume): New function.
74         (python_inferior_exit): New function.
75         (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
76         inferior_exit observers.
77         * python/py-evtregistry.c: New file.
78         * python/py-threadevent.c : New file.
79         * python/py-event.c: New file.
80         * python/py-evts.c: New file.
81         * python/py-continueevent.c: New file.
82         * python/py-bpevent.c: New file.
83         * python/py-signalevent.c: New file.
84         * python/py-exetiedevent.c: New file.
85         * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
86         Move struct breakpoint_object from here...
87         * python/python-internal.h: ... to here.
88         * python/py-event.h: New file.
89         * python/py-events.h: New file.
90         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
91         py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
92         py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
93         (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
94         py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
95         py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
96         Add build rules for all the above.
97
98 2011-02-04  Tom Tromey  <tromey@redhat.com>
99
100         * dwarf2read.c (dwarf2_section_empty_p): New function.
101         (dwarf2_read_section): Use dwarf2_section_empty_p.
102         (dwarf2_section_size): New function.
103         (dwarf2_get_section_info): Unconditionally read section.
104         (dwarf2_read_index): Use dwarf2_section_empty_p.
105         (partial_read_comp_unit_head): Use dwarf2_section_size.
106         (dwarf2_symbol_mark_computed): Likewise.
107
108 2011-02-04 David Daney <ddaney@caviumnetworks.com>
109
110         * NEWS: Add item for "catch syscall" on mips*-linux* targets.
111
112 2011-02-04 David Daney <ddaney@caviumnetworks.com>
113
114         * mips-linux-tdep.c: Include xml-syscall.h.
115         (mips_linux_get_syscall_number): New function.
116         (mips_linux_init_abi): Add calls to
117         mips_linux_get_syscall_number() and set_xml_syscall_file_name().
118         * data-directory/Makefile.in (SYSCALLS_FILES): Add
119         mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
120         * syscalls/mips-n32-linux.xml: New file.
121         * syscalls/mips-n64-linux.xml: New file.
122         * syscalls/mips-o32-linux.xml: New file.
123
124 2011-02-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
125
126         * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
127         Complain about inverted range entries.
128         (dwarf2_record_block_ranges): Likewise.
129
130 2011-02-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
131
132         Fix some typos.
133         * breakpoint.c (update_watchpoint): Fix name of the
134         update_global_location_list function.
135         (print_one_breakpoint): Fix typo.
136         (_initialize_breakpoint): Remove extra space in hbreak help
137         string.
138         * breakpoint.h (struct bp_location) <length>: Fix field
139         description.
140
141 2011-02-04  Pedro Alves  <pedro@codesourcery.com>
142
143         * regcache.c (registers_changed_ptid): Don't explictly always
144         clear `current_regcache'.  Only clear current_thread_ptid and
145         current_thread_arch when PTID matches.  Only reinit the frame
146         cache if PTID matches the current inferior_ptid.  Move alloca(0)
147         call to ...
148         (registers_changed): ... here.
149
150 2011-02-03  Ulrich Weigand  <ulrich.weigand@linaro.org>
151
152         * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
153         starts with __stack_chk_guard as stack guard symbol.
154
155 2011-02-03  Andrew Burgess  <aburgess@broadcom.com>
156
157         * disasm.c (compare_lines): Handle the end of sequence markers
158         within the line table to better support disassembling over
159         compilation unit boundaries.
160
161 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
162
163         * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
164         arguments.  Skip in-prologue calls to glibc __aeabi_read_tp
165         implementation even if no symbols are available.
166         (thumb_analyze_prologue): Update call to skip_prologue_function.
167         (arm_analyze_prologue): Likewise.
168
169 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
170
171         * arm-tdep.c: Include "observer.h".
172         (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
173         (arm_exidx_data_key): New static variable.
174         (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
175         (struct arm_exidx_data): Likewise.
176         (arm_exidx_data_free): New function.
177         (arm_compare_exidx_entries): Likewise.
178         (arm_obj_section_from_vma): Likewise.
179         (arm_exidx_new_objfile): Likewise.
180         (arm_find_exidx_entry): Likewise.
181         (arm_exidx_fill_cache): Likewise.
182         (arm_exidx_unwind_sniffer): Likewise.
183         (arm_exidx_unwind): New global variable.
184         (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
185         (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
186         observer.  Register arm_exidx_data_key as objfile data.
187
188 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
189
190         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
191         due to accessing uninitialized variable.  Fix indentation.
192
193 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
194
195         * c-valprint.c (c_value_print): When doing virtual base pointer
196         adjustment, create a new value with adjusted contents rather than
197         changing the contents of the value being printed (and getting it
198         wrong).
199
200 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
201
202         * xml-support.c (xml_find_attribute): New.
203         (xinclude_start_include): Use it.
204         * xml-support.h (xml_find_attribute): Declare.
205         * memory-map.c (memory_map_start_memory)
206         (memory_map_start_property): Use xml_find_attribute.
207         * osdata.c (osdata_start_osdata, osdata_start_column): Use
208         xml_find_attribute.
209         * remote.c (start_thread): Use xml_find_attribute.
210         * solib-target.c (library_list_start_segment)
211         (library_list_start_section, library_list_start_library)
212         (library_list_start_list): Use xml_find_attribute.
213         * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
214         (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
215         (tdesc_start_field): Use xml_find_attribute.
216
217 2011-02-02  Ulrich Weigand  <uweigand@de.ibm.com>
218
219         * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
220         (BUILD_OCL_VTYPES): Update.
221
222 2011-02-02  Joel Brobecker  <brobecker@adacore.com>
223
224         * configure.ac: Work around non-GNU sed limitation when computing
225         python version number.
226         * configure: Regenerate.
227
228 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
229
230         Fix debug printing of TYPE_INSTANCE.
231         * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
232         (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
233
234 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
235
236         Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
237         OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
238         OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
239         * ada-operator.inc: Rename the file to ...
240         * ada-operator.def: ... here, wrap all the entries by macro OP.
241         * expprint.c (op_name_standard): Remove all the entries.  Include
242         "std-operator.def" instead.
243         * expression.h (enum exp_opcode): Include "std-operator.def" and
244         "ada-operator.def".  Move all the entries ...
245         * std-operator.def: ... here, wrap all the entries by macro OP.
246
247 2011-01-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
248
249         * breakpoint.h (remove_jit_event_breakpoints): New prototype.
250         * breakpoint.c (remove_jit_event_breakpoints): New function.
251         * jit.c (jit_descriptor_addr): Delete.
252         (registering_code): Delete.
253         (clear_int): Delete.
254         (jit_inferior_data): New variable.
255         (struct jit_inferior_data): New type.
256         (get_jit_inferior_data): New function.
257         (jit_inferior_data_cleanup): New function.
258         (jit_read_descriptor): Adjust.
259         (jit_register_code): Adjust.
260         (jit_breakpoint_re_set_internal): New function; move code here ...
261         (jit_inferior_init): ... from here.
262         (jit_breakpoint_re_set): Adjust.
263         (jit_reset_inferior_data_and_breakpoints): New function.
264         (jit_inferior_created_observer): Adjust.
265         (jit_inferior_exit_hook): Adjust.
266         (jit_executable_changed_observer): New function.
267         (jit_event_handler): Adjust.
268         (_initialize_jit): Adjust.
269
270 2011-01-31  Michael Snyder  <msnyder@vmware.com>
271
272         * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
273         line.
274
275 2011-01-31  Tom Tromey  <tromey@redhat.com>
276
277         PR python/12216:
278         * python/python.c (execute_gdb_command): Call
279         prevent_dont_repeat.
280         * top.c (suppress_dont_repeat): New global.
281         (dont_repeat): Use it.
282         (prevent_dont_repeat): New function.
283         * command.h (prevent_dont_repeat): Declare.
284
285 2011-01-31  Tom Tromey  <tromey@redhat.com>
286
287         * infcmd.c (finish_backward): Use breakpoint_set_silent.
288         * python/py-breakpoint.c (bppy_set_silent): Use
289         breakpoint_set_silent.
290         (bppy_set_thread): Use breakpoint_set_thread.
291         (bppy_set_task): Use breakpoint_set_task.
292         * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
293         (breakpoint_set_task): Declare.
294         (make_breakpoint_silent): Remove.
295         * breakpoint.c (breakpoint_set_silent): New function.
296         (breakpoint_set_thread): Likewise.
297         (breakpoint_set_task): Likewise.
298         (make_breakpoint_silent): Remove.
299
300 2011-01-31  Tom Tromey  <tromey@redhat.com>
301
302         * breakpoint.h (user_breakpoint_p): Declare.
303         * breakpoint.c (user_breakpoint_p): New function.
304         (breakpoint_1): Use it.
305         (save_breakpoints): Likewise.
306
307 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
308
309         * configure.ac: Add handling of Python distribution on Windows.
310         * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
311         sysconfig variables are not defined, then do not use them.
312         On Windows, if LIBPL is not defined, then use prefix + '/libs'
313         instead.  On Windows, return all paths using forward-slashes
314         rather than backslashes.
315
316 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
317
318         * configure.ac: Remove fallback behavior for building
319         against Python.  Remove tweaking of Python include path.
320         Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
321         (AC_TRY_LIBPYTHON):  Adjust program used in linking test.
322         If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
323         Always restore CPPFLAGS and LIBS after linking test.
324         * configure: Regenerated.
325         * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
326         (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
327         * python/python-internal.h: Adjust includes of Python .h files.
328
329 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
330
331         * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
332         in error message.
333
334 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
335
336         * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
337         value test.
338
339 2011-01-31  Yao Qi  <yao@codesourcery.com>
340
341         * arm-linux-nat.c: Update calls to regcache_register_status
342         instead of regcache_valid_p.
343         * aix-thread.c: Likewise.
344         * i386gnu-nat.c: Likewise.
345
346 2011-01-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
347
348         Fix crash.
349         * valops.c (compare_parameters): Verify TYPE_NFIELDS before
350         touching TYPE_FIELD_ARTIFICIAL.
351
352 2011-01-28  Richard Earnshaw  <rearnsha@arm.com>
353
354         * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
355         Committers.
356
357 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
358
359         * tracepoint.c (tfile_xfer_partial): If there's no traceframe
360         selected, don't try iterating over the traceframe's blocks.
361         (tfile_has_stack): If there's no traceframe selected, then there's
362         no stack.
363         (tfile_has_registers): If there's no traceframe selected, then
364         there's no registers.
365
366 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
367
368         * target.c (memory_xfer_partial): No need to restore shadows if we
369         haven't read anything.
370
371 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
372
373         * mips-tdep.c (mips_print_register): Use get_frame_register_value
374         and val_print_scalar_formatted.
375
376 2011-01-27  Pedro Alves  <pedro@codesourcery.com>
377
378         * tracepoint.c (tfile_read): New.
379         (tfile_open): Use it.
380         (tfile_get_traceframe_address): Use it.
381         (tfile_trace_find): Use it.
382         (walk_blocks_callback_func): New typedef.
383         (match_blocktype): New function.
384         (traceframe_walk_blocks): New function.
385         (traceframe_find_block_type): New function.
386         (tfile_fetch_registers, tfile_xfer_partial)
387         (tfile_get_trace_state_variable_value): Use
388         traceframe_find_block_type and tfile_read.
389
390 2011-01-26  Kevin Buettner  <kevinb@redhat.com>
391
392         * remote-mips.c: Add internationalization mark ups.  Remove
393         trailing \n from already marked up strings.
394
395 2011-01-26  Tom Tromey  <tromey@redhat.com>
396
397         * python/py-prettyprint.c (print_string_repr): Clear
398         'addressprint' option when calling val_print_string.
399         (print_children): Handle Val_pretty_default.  Clear 'addressprint'
400         option when calling val_print_string.
401
402 2011-01-26  Tom Tromey  <tromey@redhat.com>
403
404         * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
405         GDB_PY_LL_ARG.
406         * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
407         macros.
408         (gdb_py_longest, gdb_py_ulongest): New typedefs.
409         (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
410         (gdb_py_long_as_ulongest): New defines.
411         (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
412         (gdb_py_int_as_long): Declare.
413         * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
414         GDB_PY_LL_ARG, gdb_py_object_from_longest.
415         (valpy_long): Add comment.
416         * python/py-utils.c (get_addr_from_python): Use
417         gdb_py_long_as_ulongest.  Handle overflow properly.
418         (gdb_py_object_from_longest): New function.
419         (gdb_py_object_from_ulongest): Likewise.
420         (gdb_py_int_as_long): Likewise.
421         * python/py-type.c (typy_array): Use gdb_py_int_as_long.
422         * python/py-symtab.c (salpy_get_pc): Use
423         gdb_py_long_from_ulongest.
424         (salpy_get_line): Use PyInt_FromLong.
425         * python/py-param.c (set_parameter_value): Use
426         gdb_py_int_as_long.
427         * python/py-lazy-string.c (stpy_get_address): Use
428         gdb_py_long_from_ulongest.
429         * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
430         * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
431         * python/py-breakpoint.c (bppy_set_thread): Use
432         gdb_py_int_as_long.
433         (bppy_set_task): Likewise.
434         (bppy_set_ignore_count): Likewise.
435         (bppy_set_hit_count): Likewise.
436         * python/py-block.c (blpy_get_start): Use
437         gdb_py_object_from_ulongest.
438         (blpy_get_end): Likewise.
439         (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
440
441 2011-01-25  Mathieu Lacage  <mathieu.lacage@inria.fr>
442
443         PR/symtab 11766:
444         * gdb/objfiles.h (struct objfile) <addr_low>: New field.
445         * gdb/solib.c (solib_read_symbols): Check for addr_low in
446         equality test for objfile, initialize addr_low if needed.
447
448 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
449
450         * tui/tui-regs.c (tui_register_format): Remove dead code.
451
452 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
453
454         * printcmd.c (print_formatted): Use val_print_scalar_formatted
455         instead of print_scalar_formatted.
456         (print_scalar_formatted): Don't handle 's' format strings here,
457         and add an assertion that we never see such format here.
458         * valprint.h (val_print_scalar_formatted): Declare.
459         * valprint.c (val_print_scalar_formatted): New.
460         * c-valprint.c (c_val_print): Use val_print_scalar_formatted
461         instead of print_scalar_formatted.
462         * jv-valprint.c (java_val_print): Ditto.
463         * p-valprint.c (pascal_val_print): Ditto.
464         * ada-valprint.c (ada_val_print_1): Ditto.
465         * f-valprint.c (f_val_print): Ditto.
466         * infcmd.c (registers_info): Ditto.
467         * m2-valprint.c (m2_val_print): Ditto.
468
469 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
470
471         * m2-valprint.c (print_unbounded_array): Pass
472         value_contents_for_printing rather than value_contents, to
473         m2_print_array_contents.  Also pass in the value.
474
475 2011-01-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
476
477         * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
478         (save_gdb_index_command): Switch to .gdb_index version 4.
479
480 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
481
482         * mi/mi-main.c (get_register): Use get_frame_register_value rather
483         than frame_register, and always pass a valid value to val_print.
484
485 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
486
487         Centralize printing "<optimized out>".
488
489         * valprint.h (val_print_optimized_out): Declare.
490         * cp-valprint.c (cp_print_value_fields): Use
491         val_print_optimized_out.
492         * jv-valprint.c (java_print_value_fields): Ditto.
493         * p-valprint.c (pascal_object_print_value_fields): Ditto.
494         * printcmd.c (print_formatted): Ditto.
495         * valprint.c (valprint_check_validity): Ditto.
496         (value_check_printable): Ditto.
497         (val_print_optimized_out): New.
498
499 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
500
501         * infcmd.c (default_print_registers_info): Allocate values so to
502         never pass a NULL value to val_print.
503
504 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
505
506         * cp-valprint.c (cp_print_value): Treat the 'skip' local as
507         boolean.  Make sure to always pass a value that matches the
508         contents buffer to callees.  Preserve `address' for following
509         iterations.
510         * value.c (value_contents_for_printing_const): New.
511         (value_address): Constify value argument.
512         * value.h (value_contents_for_printing_const): Declare.
513         (value_address): Constify value argument.
514
515 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
516
517         * regcache.c (struct regcache_descr): Rename
518         sizeof_raw_register_valid_p field to sizeof_raw_register_status,
519         and sizeof_cooked_register_valid_p to
520         sizeof_cooked_register_status.
521         (init_regcache_descr): Adjust.
522         (struct regcache): Rename register_valid_p field to
523         register_status.
524         (regcache_xmalloc_1, regcache_xfree, regcache_save)
525         (do_cooked_read): Adjust.
526         (regcache_valid_p): Rename to ...
527         (regcache_register_status): ... this.  Adjust.
528         (regcache_invalidate): Adjust.
529         (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
530         Adjust.
531         (regcache_raw_supply): Adjust.  If buf i NULL, mark the register
532         as unavailable, not valid.
533         (regcache_dump): Adjust.
534         * regcache.h (enum register_status): New.
535         (regcache_register_status): Declare.
536         (regcache_invalidate): Delete declaration.
537         * corelow.c (get_core_registers): Adjust.
538         * tracepoint.c (tfile_fetch_registers): Adjust.
539         * trad-frame.c (REG_VALUE): Rename to ...
540         (TF_REG_VALUE): ... this.
541         (REG_UNKNOWN): Rename to ...
542         (TF_REG_UNKNOWN): ... this.
543         (trad_frame_set_value, trad_frame_set_unknown): Adjust.
544         * mi/mi-main.c (register_changed_p): Adjust.
545
546 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
547
548         * regcache.c (struct regcache_descr): Remove outdated comment.
549         (init_regcache_descr): Remove sizeof_raw_register_valid_p
550         overallocate hack.
551         (regcache_xmalloc): Rename to ...
552         (regcache_xmalloc_1): ... this.  Add `readonly_p' parameter.
553         Allocate the regcache type accordingly.
554         (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
555         (regcache_xfree): Asser the source is also readonly.  Copy sizeof
556         cooked registers, not raw.
557         (regcache_dup_no_passthrough): Delete.
558         (get_thread_arch_regcache): Use regcache_xmalloc_1.
559         * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
560         mention obsolete write_register_bytes.
561         * regcache.h (regcache_dup_no_passthrough): Delete declaration.
562
563 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
564
565         Stop remote_read_bytes from handling partial reads itself.
566
567         * remote-fileio.c: Include target.h.
568         (remote_fileio_write_bytes): Delete.
569         (remote_fileio_func_open, remote_fileio_func_write)
570         (remote_fileio_func_rename, remote_fileio_func_unlink): Use
571         target_read_memory.
572         (remote_fileio_func_stat): Use target_read_memory and
573         target_write_memory.
574         (remote_fileio_func_gettimeofday): Use target_write_memory.
575         (remote_fileio_func_system): Use target_read_memory.
576         * remote.c (remote_write_bytes): Make it static.
577         (remote_read_bytes): Don't handle partial reads here.
578         * remote.h (remote_read_bytes): Delete declaration.
579
580 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
581
582         Simplify XML parsing a bit.
583
584         * xml-support.h (gdb_xml_parse_quick): Declare.
585         * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
586         from gdb_xml_create_parser_and_cleanup, and added `old_chain'
587         parameter.
588         (gdb_xml_create_parser_and_cleanup): Reimplement on top of
589         gdb_xml_create_parser_and_cleanup_1.
590         (gdb_xml_parse_quick): New.
591         * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
592         * osdata.c (osdata_parse): Ditto.
593         * remote.c (remote_threads_info): Ditto.
594         * solib-target.c (solib_target_parse_libraries): Ditto.
595         * xml-syscall.c (syscall_parse_xml): Ditto.
596         * xml-tdesc.c (tdesc_parse_xml): Ditto.
597
598 2011-01-24  Kevin Buettner  <kevinb@redhat.com>
599
600         * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
601         with remote-mips.o added to gdb_target_obs.
602         * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
603
604 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
605
606         * ada-valprint.c (val_print_packed_array_elements): Pass the
607         correct struct value to val_print.
608         (ada_val_print_1): Ditto.
609
610 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
611
612         Don't lose embedded_offset in printing routines throughout.
613
614         * valprint.h (val_print_array_elements): Change prototype.
615         * valprint.c (val_print_array_elements): Add `embedded_offset'
616         parameter, and adjust to pass it down to val_print, while passing
617         `valaddr' or `address' unmodified.  Take embedded_offset into
618         account when checking repetitions.
619         * c-valprint.c (c_val_print): Pass embedded_offset to
620         val_print_array_elements instead of adjusting `valaddr' and
621         `address'.
622         * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
623         embedded_offset to val_print_array_elements instead of adjusting
624         `valaddr'.
625         * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
626         * p-valprint.c (pascal_val_print): Pass embedded_offset to
627         val_print_array_elements and pascal_object_print_value_fields
628         instead of adjusting `valaddr'.
629         (pascal_object_print_value_fields): Add `offset' parameter, and
630         adjust to use it.
631         (pascal_object_print_value): Add `offset' parameter, and adjust to
632         use it.
633         (pascal_object_print_static_field): Use
634         value_contents_for_printing/value_embedded_offset, rather than
635         value_contents.
636         * ada-valprint.c (val_print_packed_array_elements): Add `offset'
637         parameter, and adjust to use it.  Use
638         value_contents_for_printing/value_embedded_offset, rather than
639         value_contents.
640         (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
641         (ada_val_print_array): Add `offset' parameter, and adjust to use
642         it.
643         (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
644         `embedded_offset' to `offset'.  Don't re-adjust `valaddr'.
645         Instead work with offsets.  Use
646         value_contents_for_printing/value_embedded_offset, rather than
647         value_contents.  Change `defer_val_int' local type to CORE_ADDR,
648         and use value_from_pointer to extract a target pointer, rather
649         than value_from_longest.
650         (print_variant_part): Add `offset' parameter.  Replace
651         `outer_valaddr' parameter by a new `outer_offset' parameter.
652         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
653         (ada_value_print): Use
654         value_contents_for_printing/value_embedded_offset, rather than
655         value_contents.
656         (print_record): Add `offset' parameter, and adjust to pass it
657         down.
658         (print_field_values): Add `offset' parameter.  Replace
659         `outer_valaddr' parameter by a new `outer_offset' parameter.
660         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
661         Use value_contents_for_printing/value_embedded_offset, rather than
662         value_contents.
663         * d-valprint.c (dynamic_array_type): Use
664         value_contents_for_printing/value_embedded_offset, rather than
665         value_contents.
666         * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
667         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
668         (java_print_value_fields): Take `offset' into account.  Don't
669         re-adjust `valaddr'.  Instead pass down adjusted offsets.
670         (java_val_print): Take `embedded_offset' into account.  Pass it to
671         java_print_value_fields.
672         * f-valprint.c (f77_print_array_1): Add `embedded_offset'
673         parameter.  Don't re-adjust `valaddr' or `address'.  Instead pass
674         down adjusted offsets.
675         (f77_print_array): Add `embedded_offset' parameter.  Pass it down.
676         (f_val_print): Take `embedded_offset' into account.
677
678 2011-01-21  Joel Brobecker  <brobecker@adacore.com>
679
680         * inflow.c: Include "gdbcmd.h".
681         (interactive_mode): New static global, moved here from top.c.
682         (show_interactive_mode): New function, moved here from top.c.
683         use gdb_has_a_terminal instead of input_from_terminal_p to
684         determine the current mode.
685         (gdb_has_a_terminal): Add handling of the "iteractive-mode"
686         setting.
687         (_initialize_inflow): Add the "set/show interactive-mode"
688         commands.  Moved here from top.c, after having adjusted slightly
689         the help text.
690         * top.c (interactive_mode, show_interactive_mode): Delete, moved
691         to inflow.c.
692         (input_from_terminal_p): Remove handling of "interactive-mode"
693         setting, moved to infow.c.
694         (init_main): Remove creation of the "set/show interactive-mode"
695         commands, moved to inflow.c.
696
697 2011-01-19  Joel Brobecker  <brobecker@adacore.com>
698
699         * NEWS: Add entry for native ia64-hpux support.
700
701 2011-01-19  Tom Tromey  <tromey@redhat.com>
702
703         PR mi/8618:
704         * thread.c (free_thread): Free 'name'.
705         (print_thread_info): Emit thread name.  Change CLI output.
706         (thread_name_command): New function.
707         (do_captured_thread_select): Emit newline.
708         (_initialize_thread): Register 'thread name' command.
709         * target.h (struct target_ops) <to_thread_name>: New field.
710         (target_thread_name): New macro.
711         * target.c (update_current_target): Handle to_thread_name.
712         * python/py-infthread.c (thpy_get_name): New function.
713         (thpy_set_name): Likewise.
714         (thread_object_getset): Add "name".
715         * linux-nat.c (linux_nat_thread_name): New function.
716         (linux_nat_add_target): Set to_thread_name.
717         * gdbthread.h (struct thread_info) <name>: New field.
718
719 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
720
721         * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
722         (ada_val_print_1): Likewise.
723
724 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
725
726         * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
727         upper limit address is not greater than the function end address
728         when the upper limit could not be computed using the debugging
729         info.
730
731 2011-01-17  Tom Tromey  <tromey@redhat.com>
732
733         * cli/cli-cmds.c (apropos_command): Free the compiled regex.  Use
734         get_regcomp_error.
735         * utils.c: Include gdb_regex.h.
736         (do_regfree_cleanup): New function.
737         (make_regfree_cleanup): Likewise.
738         (get_regcomp_error): Likewise.
739         * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
740
741 2011-01-17  Tom Tromey  <tromey@redhat.com>
742
743         * cli/cli-cmds.c (apropos_command): Fix formatting.  Don't call
744         re_compile_fastmap.
745
746 2011-01-17  Pierre Muller  <muller@ics.u-strasbg.fr>
747
748         * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
749         for internal variables.
750         (last_was_structop): New static variable.
751         (COMPLETE): New token.
752         (field_exp): New rule to group all '.' suffix handling.
753         Add mark_struct_expression calls when approriate to be able
754         to correctly find fields for completion.
755         (yylex): Adapt to handle field completion and set INTVAR when
756         required.
757
758 2011-01-14  Yao Qi  <yao@codesourcery.com>
759
760         * arm-tdep.c (arm_register_reggroup_p): FPS register is in
761         save_reggroup, restore_reggroup and all_reggroup.
762
763 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
764
765         * ada-valprint. (ada_printchar): Use the correct type length
766         in call to ada_emit_char.
767         * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
768
769 2011-01-14  Pierre Muller  <muller@ics.u-strasbg.fr>
770
771         * solib-som.h (hpux_major_release): Declare variable here.
772         * solib-som.c:  Remove <sys/utsname.h> header.
773         (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
774         (hpux_major_release): Make global, change default value to
775         DEFAULT_HPUX_MAJOR_RELEASE.
776         (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE. 
777         * hppa-hpux-nat.c: Add <sys/utsname.h> include.
778         Add "solib-som.h" header.
779         (set_hpux_major_release): New function.
780         (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
781
782 2011-01-14  Mike Frysinger  <vapier@gentoo.org>
783
784         * configure.tgt (*-*-uclinux*): Match more Linux os targets
785
786 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
787
788         * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
789         new-line at end of warning message.
790         (ia64_hpux_store_register): Remove trailing new-line at end of
791         error message.
792         * ia64-hpux-tdep.c: Rephrase comment.
793         * solib-ia64-hpux.c (struct dld_info): Change type of field
794         dld_flags from "long long" to ULONGEST.
795
796 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
797
798         * target.h (deprecated_child_ops): Delete declaration.
799         * target.c (deprecated_child_ops): Delete definition.
800
801 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
802
803         * Makefile.in (hpux-thread.o): Delete rule.
804         * configure.ac: Don't check for HPUX DCE threads support.
805         * configure, config.in: Regenerate.
806         * hppa-hpux-nat.c (child_suppress_run): Delete.
807         (hppa_hpux_child_can_run): Delete.
808         (_initialize_hppa_hpux_nat): Don't override to_can_run.
809         * hpux-thread.c: Delete.
810
811 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
812
813         * hpux-thread.c (hpux_pid_to_str): Delete.
814
815 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
816
817         * ada-valprint.c (ada_emit_char): Remove strange code.
818         Check that c is <= UCHAR_MAX before passing it to isascii.
819         (char_at): Do not assume that TYPE_LEN is either 1 or 2.
820
821 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
822
823         * top.c (input_from_terminal_p): Restrict the use of interactive_mode
824         to the case where instream is stdin.
825
826 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
827
828         * ia64-tdep.h (struct regcache): Forward declare.
829         (struct ia64_infcall_ops): New struct type.
830         (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
831         and "infcall_ops".
832         * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
833         Renames ia64_find_global_pointer.
834         (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
835         (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
836         (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
837         methods.
838         (ia64_infcall_ops): New static global constant.
839         (ia64_gdbarch_init): Set tdep->infcall_ops.
840         * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
841         (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
842         * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
843         (ia64_hpux_dummy_code): New static global constant.
844         (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
845         (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
846         (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
847         New function.
848         (ia64_hpux_infcall_ops): New static global constant.
849         (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
850         for inferior function calls to work properly on ia64-hpux.
851
852 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
853
854         * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
855         * ia64-tdep.h (struct frame_info): forward declaration.
856         (struct gdbarch_tdep): Add field size_of_register_frame.
857         * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
858         to determine the size of the register frame.
859         (ia64_size_of_register_frame): New function.
860         (ia64_gdbarch_init): Set tdep->size_of_register_frame.
861         * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
862         (IA64_HPUX_UREG_REASON): New macro.
863         (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
864         New functions.
865         (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
866         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
867         (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
868         objects.
869
870 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
871
872         Add support for ia64-hpux.
873         * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
874         ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
875
876         * configure.host: Add handling for ia64-hpux hosts.  Add associated
877         floatformats.
878         * configure.tgt: Add handling for ia64-hpux targets.
879         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
880         (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
881         (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
882
883 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
884
885         [ttrace] Compute thread list immediately after attach.
886         * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
887         New subprogram.
888         (inf_ttrace_attach): Use it.
889
890 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
891
892         * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
893         if we could not determine the frame's function address.  Instead,
894         use the frame's PC, and then continue.
895
896 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
897
898         * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
899         not already defined.
900
901 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
902
903         * ia64-tdep.c (ia64_struct_type_p): New function.
904         (ia64_extract_return_value): Handle integral values that are
905         less than 8 bytes long.
906         (ia64_push_dummy_call): Likewise.
907
908 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
909
910         * ia64-tdep.c (floatformat_ia64_ext_little): Renames
911         floatformat_ia64_ext.
912         (floatformat_ia64_ext_big): New static const.
913         (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
914
915 2011-01-12  Tom Tromey  <tromey@redhat.com>
916
917         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
918         messages.
919         * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
920         (mi_cmd_thread_list_ids): Likewise.
921         (mi_cmd_data_list_changed_registers): Likewise.
922         (mi_cmd_data_list_register_values): Likewise.
923         (mi_cmd_data_write_register_values): Likewise.
924         (mi_cmd_data_evaluate_expression): Likewise.
925         (mi_cmd_data_read_memory): Likewise.
926         (mi_cmd_data_read_memory_bytes): Likewise.
927         (mi_cmd_data_write_memory): Likewise.
928         (mi_cmd_enable_timings): Likewise.
929         * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
930         * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
931         (mi_cmd_var_delete): Likewise.
932         (mi_cmd_var_set_format): Likewise.
933         (mi_cmd_var_show_format): Likewise.
934         (mi_cmd_var_info_num_children): Likewise.
935         (mi_cmd_var_list_children): Likewise.
936         (mi_cmd_var_info_type): Likewise.
937         (mi_cmd_var_info_expression): Likewise.
938         (mi_cmd_var_show_attributes): Likewise.
939         (mi_cmd_var_assign): Likewise.
940         (mi_cmd_var_update): Likewise.
941         (mi_cmd_enable_pretty_printing): Likewise.
942         (mi_cmd_var_set_update_range): Likewise.
943         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
944         messages.
945         (mi_cmd_target_file_put): Likewise.
946         (mi_cmd_target_file_delete): Likewise.
947         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
948         messages.
949         (mi_cmd_stack_info_depth): Likewise.
950         (mi_cmd_stack_list_locals): Likewise.
951         (mi_cmd_stack_list_args): Likewise.
952         (mi_cmd_stack_select_frame): Likewise.
953         (mi_cmd_stack_select_frame): Likewise.
954         (mi_cmd_stack_info_frame): Likewise.
955         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
956         messages.
957         (mi_cmd_file_list_exec_source_files): Likewise.
958         * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
959         (mi_cmd_env_cd): Likewise.
960         (mi_cmd_env_path): Likewise.
961         (mi_cmd_env_dir): Likewise.
962         (mi_cmd_inferior_tty_show): Likewise.
963         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
964         * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
965         (mi_cmd_break_watch): Likewise.
966
967 2011-01-12  Thiago Jung Bauermann  <bauerman@br.ibm.com>
968
969         * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
970         (ppc_linux_insert_hw_breakpoint): Likewise.
971         (ppc_linux_remove_hw_breakpoint): Likewise.
972         (ppc_linux_insert_watchpoint): Likewise.
973
974 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
975             Jan Kratochvil  <jan.kratochvil@redhat.com>
976
977         PR fortran/11104 and DWARF unbound arrays detection.
978         * dwarf2read.c (read_subrange_type): Set zero length on unspecified
979         upper bound.  Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
980         unspecified upper bound.
981         * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
982         variables array_size_array, tmp_type and offset_item.  New variable
983         array.  Remove call to f77_get_upperbound.  New variables array_type
984         and index.  Call value_subscripted_rvalue for each dimenasion.  Remove
985         the final call to deprecated_set_value_type.
986
987 2011-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
988
989         Make value allocations more lazy.
990         * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
991         instead of allocate_value and set_value_lazy when possible.
992         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy 
993         instead of allocate_value and set_value_lazy.
994         * findvar.c (value_of_register_lazy): Likewise.
995         (read_var_value): Remove V preallocation, call just check_typedef in
996         advance.  Move allocate_value to LOC_CONST, LOC_LABEL, 
997         LOC_CONST_BYTES.  Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
998         LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK.  Set ADDR instead of
999         set_value_address and break in LOC_BLOCK.  Use allocate_value_lazy and
1000         remove lval_memory set in LOC_REGPARM_ADDR.  Use allocate_value_lazy
1001         in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT.  Add setting lval_memory at
1002         the end, remove set_value_lazy there.
1003         * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
1004         instead of allocate_value and set_value_lazy when possible.
1005         * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
1006         * value.c (allocate_computed_value): Use allocate_value_lazy instead
1007         of allocate_value and set_value_lazy.
1008         (value_from_contents_and_address): Use allocate_value_lazy instead of
1009         allocate_value and set_value_lazy when possible.
1010
1011 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
1012
1013         * disasm.c (dump_insns): Support dumping opcodes for MI.
1014         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
1015         dumping of instruction opcodes.
1016
1017 2011-01-09  Robert Millan  <rmh@gnu.org>  (tiny patch)
1018
1019         * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
1020         appropiately.
1021
1022 2011-01-11  Tom Tromey  <tromey@redhat.com>
1023
1024         * thread.c (do_captured_thread_select): Emit newline before
1025         printing frame.
1026
1027 2011-01-11  Michael Snyder  <msnyder@vmware.com>
1028
1029         * s390-tdep.c: Comment cleanup, mostly periods and spaces.
1030         * score-tdep.c: Ditto.
1031         * score-tdep.h: Ditto.
1032         * ser-base.c: Ditto.
1033         * ser-go32.c: Ditto.
1034         * serial.c: Ditto.
1035         * serial.h: Ditto.
1036         * ser-mingw.c: Ditto.
1037         * ser-pipe.c: Ditto.
1038         * ser-tcp.c: Ditto.
1039         * ser-unix.c: Ditto.
1040         * sh64-tdep.c: Ditto.
1041         * shnbsd-nat.c: Ditto.
1042         * sh-tdep.c: Ditto.
1043         * sh-tdep.h: Ditto.
1044         * solib.c: Ditto.
1045         * solib-darwin.c: Ditto.
1046         * solib-frv.c: Ditto.
1047         * solib.h: Ditto.
1048         * solib-irix.c: Ditto.
1049         * solib-osf.c: Ditto.
1050         * solib-pa64.c: Ditto.
1051         * solib-som.c: Ditto.
1052         * solib-spu.c: Ditto.
1053         * solib-sunos.c: Ditto.
1054         * solib-svr4.c: Ditto.
1055         * solist.h: Ditto.
1056         * sol-thread.c: Ditto.
1057         * somread.c: Ditto.
1058         * source.c: Ditto.
1059         * source.h: Ditto.
1060         * sparc64-linux-tdep.c: Ditto.
1061         * sparc64-tdep.c: Ditto.
1062         * sparc-linux-nat.c: Ditto.
1063         * sparc-linux-tdep.c: Ditto.
1064         * sparc-sol2-nat.c: Ditto.
1065         * sparc-sol2-tdep.c: Ditto.
1066         * sparc-tdep.c: Ditto.
1067         * sparc-tdep.h: Ditto.
1068         * spu-tdep.c: Ditto.
1069         * stabsread.c: Ditto.
1070         * stabsread.h: Ditto.
1071         * stack.c: Ditto.
1072         * symfile.c: Ditto.
1073         * symfile.h: Ditto.
1074         * symmisc.c: Ditto.
1075         * symtab.c: Ditto.
1076         * symtab.h: Ditto.
1077         * target.c: Ditto.
1078         * target-descriptions.c: Ditto.
1079         * target-descriptions.h: Ditto.
1080         * target.h: Ditto.
1081         * target-memory.c: Ditto.
1082         * terminal.h: Ditto.
1083         * thread.c: Ditto.
1084         * top.c: Ditto.
1085         * tracepoint.c: Ditto.
1086         * tracepoint.h: Ditto.
1087         * trad-frame.h: Ditto.
1088         * typeprint.c: Ditto.
1089
1090 2011-01-11  Michael Snyder  <msnyder@vmware.com>
1091
1092         * ui-file.c: Comment cleanup, mostly periods and spaces.
1093         * ui-file.h: Ditto.
1094         * ui-out.c: Ditto.
1095         * ui-out.h: Ditto.
1096         * utils.c: Ditto.
1097         * v850-tdep.c: Ditto.
1098         * valarith.c: Ditto.
1099         * valops.c: Ditto.
1100         * valprint.c: Ditto.
1101         * valprint.h: Ditto.
1102         * value.c: Ditto.
1103         * value.h: Ditto.
1104         * varobj.c: Ditto.
1105         * varobj.h: Ditto.
1106         * vax-tdep.c: Ditto.
1107         * vec.c: Ditto.
1108         * vec.h: Ditto.
1109         * version.h: Ditto.
1110         * windows-nat.c: Ditto.
1111         * windows-tdep.c: Ditto.
1112         * xcoffread.c: Ditto.
1113         * xcoffsolib.c: Ditto.
1114         * xml-support.c: Ditto.
1115         * xstormy16-tdep.c: Ditto.
1116         * xtensa-tdep.c: Ditto.
1117         * xtensa-tdep.h: Ditto.
1118
1119 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1120
1121         * breakpoint.c (resources_needed_watchpoint): Fix indentation.
1122         * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
1123
1124 2011-01-11  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
1125             Thiago Jung Bauermann  <bauerman@br.ibm.com>
1126
1127         Implement support for PowerPC BookE ranged watchpoints.
1128         * breakpoint.h 
1129         (struct breakpoint_ops) <resources_needed>: New method.
1130         Initialize to NULL in all existing breakpoint_ops instances.
1131         (struct breakpoint) <exact>: New field.
1132         (target_exact_watchpoints): Declare external global.
1133         * breakpoint.c (target_exact_watchpoints): New global flag.
1134         (update_watchpoint): Set b->type to bp_hardware_watchpoint and
1135         b->enable_state to bp_enabled before calling
1136         hw_watchpoint_used_count.
1137         (hw_watchpoint_used_count): Iterate over all bp_locations in a
1138         watchpoint.  Call breakpoint's breakpoint_ops.resources_needed
1139         if available.
1140         (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
1141         if the watchpoint is exact.
1142         (resources_needed_watchpoint): New function.
1143         (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
1144         (watch_command_1): Set b->exact if the user asked for an exact
1145         watchpoint and one can be set.
1146         (can_use_hardware_watchpoint): Add exact_watchpoints argument.
1147         Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
1148         the user asks for an exact watchpoint and one can be set.  Return
1149         number of needed debug registers to watch the expression.
1150         * gdbtypes.c (is_scalar_type): New function, based on
1151         valprint.c:scalar_type_p.
1152         (is_scalar_type_recursive): New function.
1153         * gdbtypes.h (is_scalar_type_recursive): Declare.
1154         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
1155         handle regions when ranged watchpoints are available.
1156         (create_watchpoint_request): New function.
1157         (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
1158         create_watchpoint_request.
1159         * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
1160         (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
1161         `set powerpc' and `show powerpc' commands.
1162         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
1163         Mention documentation comment in the target macro.
1164         (target_region_ok_for_hw_watchpoint): Document return value.
1165
1166 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1167
1168         * breakpoint.c (update_watchpoint): Decide on using a software or
1169         hardware watchpoint after the bp_locations are created.
1170
1171 2010-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1172
1173         Convert hardware watchpoints to use breakpoint_ops.
1174         * breakpoint.h (breakpoint_ops) <insert>: Rename to...
1175         <insert_location>: ... this.  Return int instead of void.
1176         Accept pointer to struct bp_location instead of pointer to
1177         struct breakpoint.  Adapt all implementations.
1178         (breakpoint_ops) <remove>: Rename to... 
1179         <remove_location>: ... this.  Accept pointer to struct bp_location
1180         instead of pointer to struct breakpoint.  Adapt all implementations.
1181         * breakpoint.c (insert_catchpoint): Delete function.
1182         (insert_bp_location): Call the watchpoint or catchpoint's
1183         breakpoint_ops.insert method.
1184         (remove_breakpoint_1): Call the watchpoint or catchpoint's
1185         breakpoint_ops.remove method.
1186         (insert_watchpoint, remove_watchpoint): New functions.
1187         (watchpoint_breakpoint_ops): New structure.
1188         (watch_command_1): Initialize the OPS field.
1189         * inf-child.c (inf_child_insert_fork_catchpoint)
1190         (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
1191         (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
1192         (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
1193         Delete functions.
1194         (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
1195         to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
1196         to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
1197         to_remove_exec_catchpoint and to_set_syscall_catchpoint.
1198         * target.c (update_current_target): Change default implementation of
1199         to_insert_fork_catchpoint, to_remove_fork_catchpoint,
1200         to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
1201         to_insert_exec_catchpoint, to_remove_exec_catchpoint and
1202         to_set_syscall_catchpoint to return_one.
1203         (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
1204         (debug_to_insert_exec_catchpoint): Report return value.
1205         * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
1206         (to_insert_exec_catchpoint): Change declaration to return int instead
1207         of void.
1208
1209 2011-01-11  Michael Snyder  <msnyder@vmware.com>
1210
1211         * arm-tdep.c: Internationalization.
1212         * c-lang.c: Ditto.
1213         * charset.c: Ditto.
1214         * fork-child.c: Ditto.
1215         * nto-procfs.c: Ditto.
1216         * ppc-sysv-tdep.c: Ditto.
1217         * procfs.c: Ditto.
1218         * remote-mips.c: Ditto.
1219         * remote.c: Ditto.
1220         * rs6000-nat.c: Ditto.
1221         * rs6000-tdep.c: Ditto.
1222         * target.c: Ditto.
1223         * valops.c: Ditto.
1224         * value.c: Ditto.
1225         * xml-support.c: Ditto.
1226         * mi/mi-cmd-break.c: Ditto.
1227         * mi/mi-cmd-var.c: Ditto.
1228         * mi/mi-interp.c: Ditto.
1229         * mi/mi-main.c: Ditto.
1230
1231 2011-01-11  Andrew Burgess  <aburgess@broadcom.com>
1232
1233         * remote-sim.c (gdbsim_store_register): Update API to
1234         sim_store_register to check more error conditions.
1235
1236 2011-01-10  Michael Snyder  <msnyder@vmware.com>
1237
1238         * nto-procfs.c: Comment cleanup, mostly periods and spaces.
1239         * nto-tdep.c: Ditto.
1240         * nto-tdep.h: Ditto.
1241         * objc-exp.y: Ditto.
1242         * objc-lang.c: Ditto.
1243         * objfiles.c: Ditto.
1244         * objfiles.h: Ditto.
1245         * observer.c: Ditto.
1246         * opencl-lang.c: Ditto.
1247         * osabi.c: Ditto.
1248         * parse.c: Ditto.
1249         * parser-defs.h: Ditto.
1250         * p-exp.y: Ditto.
1251         * p-lang.c: Ditto.
1252         * posix-hdep.c: Ditto.
1253         * ppcbug-rom.c: Ditto.
1254         * ppc-linux-nat.c: Ditto.
1255         * ppc-linux-tdep.c: Ditto.
1256         * ppc-linux-tdep.h: Ditto.
1257         * ppcnbsd-tdep.c: Ditto.
1258         * ppcobsd-tdep.c: Ditto.
1259         * ppcobsd-tdep.h: Ditto.
1260         * ppc-sysv-tdep.c: Ditto.
1261         * ppc-tdep.h: Ditto.
1262         * printcmd.c: Ditto.
1263         * proc-abi.c: Ditto.
1264         * proc-flags.c: Ditto.
1265         * procfs.c: Ditto.
1266         * proc-utils.h: Ditto.
1267         * progspace.h: Ditto.
1268         * prologue-value.c: Ditto.
1269         * prologue-value.h: Ditto.
1270         * psympriv.h: Ditto.
1271         * psymtab.c: Ditto.
1272         * p-typeprint.c: Ditto.
1273         * p-valprint.c: Ditto.
1274         * ravenscar-sparc-thread.c: Ditto.
1275         * ravenscar-thread.c: Ditto.
1276         * ravenscar-thread.h: Ditto.
1277         * record.c: Ditto.
1278         * regcache.c: Ditto.
1279         * regcache.h: Ditto.
1280         * remote.c: Ditto.
1281         * remote-fileio.c: Ditto.
1282         * remote-fileio.h: Ditto.
1283         * remote.h: Ditto.
1284         * remote-m32r-sdi.c: Ditto.
1285         * remote-mips.c: Ditto.
1286         * remote-sim.c: Ditto.
1287         * rs6000-aix-tdep.c: Ditto.
1288         * rs6000-nat.c: Ditto.
1289         * rs6000-tdep.c: Ditto.
1290
1291 2011-01-10  Michael Snyder  <msnyder@vmware.com>
1292
1293         * charset.c (validate): Internationalization.
1294         * coffread.c (read_one_sym): Ditto.
1295         * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
1296         * h8300-tdep.c (H8300_extract_return_value): Ditto.
1297         * inflow.c (new_tty): Ditto.
1298         * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
1299         * m32c-tdep.c (m32c_return_value): Ditto.
1300         * mep-tdep.c (mep_store_return_value): Ditto.
1301         * score-tdep.c (score7_fetch_insn): Ditto.
1302         * ser-mingw.c (pipe_windows_open): Ditto.
1303         * sh64-tdep.c (sh64_extract_return_value): Ditto.
1304         * spu-tdep.c (spu_register_type): Ditto.
1305         * tracepoint.c (trace_find_command): Ditto.
1306         * valarith.c (value_pos): Ditto.
1307
1308 2011-01-10  Joel Brobecker  <brobecker@adacore.com>
1309
1310         * ada-valprint.c (printstr): Minor comment reformatting.
1311
1312 2011-01-08  Michael Snyder  <msnyder@vmware.com>
1313
1314         * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
1315         markup.
1316
1317 2011-01-08  Michael Snyder  <msnyder@vmware.com>
1318
1319         * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
1320         * hppa-hpux-tdep.c: Ditto.
1321         * hppa-linux-nat.c: Ditto.
1322         * hppa-linux-tdep.c: Ditto.
1323         * hppanbsd-tdep.c: Ditto.
1324         * hppa-tdep.c: Ditto.
1325         * hppa-tdep.h: Ditto.
1326         * hpux-thread.c: Ditto.
1327         * i386-cygwin-tdep.c: Ditto.
1328         * i386-darwin-nat.c: Ditto.
1329         * i386gnu-nat.c: Ditto.
1330         * i386-linux-nat.c: Ditto.
1331         * i386-linux-tdep.c: Ditto.
1332         * i386-nat.c: Ditto.
1333         * i386-nat.h: Ditto.
1334         * i386nbsd-tdep.c: Ditto.
1335         * i386-sol2-nat.c: Ditto.
1336         * i386-stub.c: Ditto.
1337         * i386-tdep.c: Ditto.
1338         * i386-tdep.h: Ditto.
1339         * i387-tdep.c: Ditto.
1340         * ia64-linux-nat.c: Ditto.
1341         * ia64-linux-tdep.c: Ditto.
1342         * ia64-tdep.c: Ditto.
1343         * infcall.c: Ditto.
1344         * infcall.h: Ditto.
1345         * infcmd.c: Ditto.
1346         * inferior.c: Ditto.
1347         * inferior.h: Ditto.
1348         * infloop.c: Ditto.
1349         * inflow.c: Ditto.
1350         * infrun.c: Ditto.
1351         * interps.c: Ditto.
1352         * interps.h: Ditto.
1353         * iq2000-tdep.c: Ditto.
1354         * irix5-nat.c: Ditto.
1355         * jit.c: Ditto.
1356         * jit.h: Ditto.
1357         * jv-exp.y: Ditto.
1358         * jv-lang.c: Ditto.
1359         * jv-lang.h: Ditto.
1360         * jv-typeprint.c: Ditto.
1361         * jv-valprint.c: Ditto.
1362         * language.c: Ditto.
1363         * language.h: Ditto.
1364         * linespec.c: Ditto.
1365         * linux-fork.c: Ditto.
1366         * linux-nat.c: Ditto.
1367         * linux-thread-db.c: Ditto.
1368         * lm32-tdep.c: Ditto.
1369
1370 2011-01-08  Michael Snyder  <msnyder@vmware.com>
1371
1372         * m2-exp.y: Comment cleanup, mostly periods and spaces.
1373         * m2-lang.c: Ditto.
1374         * m2-typeprint.c: Ditto.
1375         * m2-valprint.c: Ditto.
1376         * m32c-tdep.c: Ditto.
1377         * m32r-linux-nat.c: Ditto.
1378         * m32r-rom.c: Ditto.
1379         * m32r-tdep.c: Ditto.
1380         * m32r-tdep.h: Ditto.
1381         * m68hc11-tdep.c: Ditto.
1382         * m58klinux-nat.c: Ditto.
1383         * m68k-tdep.c: Ditto.
1384         * m88k-tdep.c: Ditto.
1385         * m88k-tdep.h: Ditto.
1386         * machoread.c: Ditto.
1387         * macrocmd.c: Ditto.
1388         * macroexp.c: Ditto.
1389         * macrotab.c: Ditto.
1390         * main.c: Ditto.
1391         * maint.c: Ditto.
1392         * mdebugread.c: Ditto.
1393         * mdebugread.h: Ditto.
1394         * memattr.c: Ditto.
1395         * memattr.h: Ditto.
1396         * memory-map.h: Ditto.
1397         * mep-tdep.c: Ditto.
1398         * microblaze-rom.c: Ditto.
1399         * microblaze-tdep.c: Ditto.
1400         * minsyms.c: Ditto.
1401         * mips-irix-tdep.c: Ditto.
1402         * mips-linux-nat.c: Ditto.
1403         * mips-linux-tdep.c: Ditto.
1404         * mips-linux-tdep.h: Ditto.
1405         * mipsnbsd-nat.c: Ditto.
1406         * mipsnbsd-tdep.c: Ditto.
1407         * mipsread.c: Ditto.
1408         * mips-tdep.c: Ditto.
1409         * mips-tdep.h: Ditto.
1410         * mn10300-linux-tdep.c: Ditto.
1411         * mn10300-tdep.c: Ditto.
1412         * mn10300-tdep.h: Ditto.
1413         * monitor.c: Ditto.
1414         * monitor.h: Ditto.
1415         * moxie-tdep.c: Ditto.
1416         * moxie-tdep.h: Ditto.
1417         * mt-tdep.c: Ditto.
1418
1419 2011-01-08  Mike Frysinger  <vapier@gentoo.org>
1420
1421         * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
1422
1423 2011-01-08  Robert Millan  <rmh@gnu.org>
1424
1425         * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
1426
1427 2011-01-07  Michael Snyder  <msnyder@vmware.com>
1428
1429         * charset.c (_initialize_charset): Fix typo in string.
1430
1431 2011-01-07  Michael Snyder  <msnyder@vmware.com>
1432
1433         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
1434         for i18n.
1435         * tui/tui-layout.c (tui_set_layout_for_display_command): 
1436         Split line so that operator goes to beginning of line.
1437         * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
1438         assignment out of if statement.
1439
1440 2011-01-07  Michael Snyder  <msnyder@vmware.com>
1441
1442         * ada-lang.c: Comment cleanup, mostly periods and spaces.
1443         * ada-lang.h: Ditto.
1444         * ada-tasks.c: Ditto.
1445         * ada-valprint.c: Ditto.
1446         * aix-threads.c: Ditto.
1447         * alpha-linux-nat.c: Ditto.
1448         * alpha-linux-tdep.c: Ditto.
1449         * alpha-mdebug-tdep.c: Ditto.
1450         * alpha-nat.c: Ditto.
1451         * alpha-osf1-tdep.c: Ditto.
1452         * alpha-tdep.c: Ditto.
1453         * alphabsd-nat.c: Ditto.
1454         * alphabsd-tdep.c: Ditto.
1455         * amd64-darwin-tdep.c: Ditto.
1456         * amd64-linux-nat.c: Ditto.
1457         * amd64-linux-tdep.c: Ditto.
1458         * amd64-sol2-tdep.c: Ditto.
1459         * amd64-tdep.c: Ditto.
1460         * amd64-fbsd-tdep.c: Ditto.
1461         * amd64-nbsd-tdep.c: Ditto.
1462         * amd64-obsd-tdep.c: Ditto.
1463         * amd64-linux-nat.c: Ditto.
1464         * amd64-linux-tdep.c: Ditto.
1465         * arm-tdep.c: Ditto.
1466         * arm-tdep.h: Ditto.
1467         * armnbsd-nat.c: Ditto.
1468         * avr-tdep.c: Ditto.
1469         * bfin-tdep.c: Ditto.
1470         * bsd-kvm.c: Ditto.
1471         * c-typeprintc: Ditto.
1472         * c-valprint.c: Ditto.
1473         * coff-pe-read.h: Ditto.
1474         * coffreead.c: Ditto.
1475         * cris-tdep.c: Ditto.
1476         * d-lang.c: Ditto.
1477         * darwin-nat-info.c: Ditto.
1478         * darwin-nat.c: Ditto.
1479         * dbug-rom.c: Ditto.
1480         * dbxread.c: Ditto.
1481         * dcache.c: Ditto.
1482         * dcache.h: Ditto.
1483         * dec-thread.c: Ditto.
1484         * defs.h: Ditto.
1485         * demangle.c: Ditto.
1486         * dicos-tdep.c: Ditto.
1487         * dictionary.c: Ditto.
1488         * dictionary.h: Ditto.
1489         * dink32-rom.c: Ditto.
1490         * disasm.c: Ditto.
1491         * doublest.c: Ditto.
1492         * dsrec.c: Ditto.
1493         * dummy-frame.c: Ditto.
1494         * dwarf2-frame.c: Ditto.
1495         * dwarf2expr.c: Ditto.
1496         * dwarf2loc.c: Ditto.
1497         * dwarf2read.c: Ditto.
1498         * elfread.c: Ditto.
1499         * environ.c: Ditto.
1500         * eval.c: Ditto.
1501         * event-top.h: Ditto.
1502         * exceptions.c: Ditto.
1503         * exceptions.h: Ditto.
1504         * exec.c: Ditto.
1505         * expprint.c: Ditto.
1506         * expression.h: Ditto.
1507         * f-exp.y: Ditto.
1508         * f-lang.c: Ditto.
1509         * f-lang.h: Ditto.
1510         * f-typeprint.c: Ditto.
1511         * f-valprint.c: Ditto.
1512         * fbsd-nat.c: Ditto.
1513         * findvar.c: Ditto.
1514         * fork-child.c: Ditto.
1515         * frame.c: Ditto.
1516         * frame.h: Ditto.
1517         * frv-linux-tdep.c: Ditto.
1518         * frv-tdep.c: Ditto.
1519         * gcore.c: Ditto.
1520         * gdb-stabs.h: Ditto.
1521         * gdb_assert.h: Ditto.
1522         * gdb_string.h: Ditto.
1523         * gdb_thread_db.h: Ditto.
1524         * gdb_wait.h: Ditto.
1525         * gdbarch.sh: Ditto.
1526         * gdbcore.h: Ditto.
1527         * gdbthread.h: Ditto.
1528         * gdbtypes.c: Ditto.
1529         * gdbtypes.h: Ditto.
1530         * gnu-nat.c: Ditto.
1531         * gnu-nat.h: Ditto.
1532         * gnu-v2-abi.c: Ditto.
1533         * gnu-v3-abi.c: Ditto.
1534         * go32-nat.c: Ditto.
1535         * gdbarch.c: Regenerate.
1536         * gdbarch.h: Regenerate.
1537
1538 2011-01-07  Michael Snyder  <msnyder@vmware.com>
1539
1540         * ax-gdb.c: Adjust some long output strings.
1541         * breakpoint.c: Ditto.
1542         * charset.c: Ditto.
1543         * cp-abi.c: Ditto.
1544         * infcall.c: Ditto.
1545         * infrun.c: Ditto.
1546         * linux-nat.c: Ditto.
1547         * solib-pa64.c: Ditto.
1548         * solib-som.c: Ditto.
1549
1550 2011-01-06  Tom Tromey  <tromey@redhat.com>
1551
1552         PR python/12367:
1553         * NEWS: Add item.
1554         * python/python.c (GdbMethods): Add "newest_frame" method.
1555         * python/python-internal.h (gdbpy_newest_frame): Declare.
1556         * python/py-frame.c (gdbpy_newest_frame): New function.
1557
1558 2010-01-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
1559
1560         * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
1561         * jit.c (jit_debug): New variable.
1562         (show_jit_debug): New function.
1563         (struct target_buffer): Use ULONGEST.
1564         (bfd_open_from_target_memory): Likewise.
1565         (jit_register_code, jit_inferior_init): Add debug output.
1566         (_initialize_jit): Register "debug jit" command.
1567
1568 2011-01-06  Tom Tromey  <tromey@redhat.com>
1569
1570         * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
1571         * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
1572         and ARCH_FRAME.
1573
1574 2011-01-06  Tom Tromey  <tromey@redhat.com>
1575
1576         * python/py-frame.c (frapy_block): Use get_frame_block.
1577
1578 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
1579
1580         Do not stop on SIGPRIO signals by default
1581         * infrun.c (_initialize_infrun): Unset signal_stop and
1582         signal_print for TARGET_SIGNAL_PRIO.
1583
1584 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
1585
1586         * ada-tasks.c: Fix style violation in comment.
1587
1588 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
1589
1590         * linespec.c (decode_compound, find_method): Remove trailing \n
1591         at end of error string.
1592         * solib-irix.c (irix_current_sos): Likewise.
1593         * varobj.c (uninstall_variable): Likewise.
1594
1595 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
1596
1597         * copyright.py: New script.
1598         * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
1599         Launch emacs without exec'ing. Call copyright.py afterwards.
1600
1601 2011-01-05  Michael Snyder  <msnyder@vmware.com>
1602
1603         * addrmap.c: Shorten lines of >= 80 columns.
1604         * arch-utils.c: Ditto.
1605         * arch-utils.h: Ditto.
1606         * ax-gdb.c: Ditto.
1607         * ax-general.c: Ditto.
1608         * bcache.c: Ditto.
1609         * blockframe.c: Ditto.
1610         * breakpoint.c: Ditto.
1611         * buildsym.c: Ditto.
1612         * c-lang.c: Ditto.
1613         * c-typeprint.c: Ditto.
1614         * charset.c: Ditto.
1615         * coffread.c: Ditto.
1616         * command.h: Ditto.
1617         * corelow.c: Ditto.
1618         * cp-abi.c: Ditto.
1619         * cp-namespace.c: Ditto.
1620         * cp-support.c: Ditto.
1621         * dbug-rom.c: Ditto.
1622         * dbxread.c: Ditto.
1623         * defs.h: Ditto.
1624         * dfp.c: Ditto.
1625         * dfp.h: Ditto.
1626         * dictionary.c: Ditto.
1627         * disasm.c: Ditto.
1628         * doublest.c: Ditto.
1629         * dwarf2-frame.c: Ditto.
1630         * dwarf2expr.c: Ditto.
1631         * dwarf2loc.c: Ditto.
1632         * dwarf2read.c: Ditto.
1633         * elfread.c: Ditto.
1634         * eval.c: Ditto.
1635         * event-loop.c: Ditto.
1636         * event-loop.h: Ditto.
1637         * exceptions.h: Ditto.
1638         * exec.c: Ditto.
1639         * expprint.c: Ditto.
1640         * expression.h: Ditto.
1641         * f-lang.c: Ditto.
1642         * f-valprint.c: Ditto.
1643         * findcmd.c: Ditto.
1644         * frame-base.c: Ditto.
1645         * frame-unwind.c: Ditto.
1646         * frame-unwind.h: Ditto.
1647         * frame.c: Ditto.
1648         * frame.h: Ditto.
1649         * gcore.c: Ditto.
1650         * gdb-stabs.h: Ditto.
1651         * gdb_assert.h: Ditto.
1652         * gdb_dirent.h: Ditto.
1653         * gdb_obstack.h: Ditto.
1654         * gdbcore.h: Ditto.
1655         * gdbtypes.c: Ditto.
1656         * gdbtypes.h: Ditto.
1657         * inf-ttrace.c: Ditto.
1658         * infcall.c: Ditto.
1659         * infcmd.c: Ditto.
1660         * inflow.c: Ditto.
1661         * infrun.c: Ditto.
1662         * inline-frame.h: Ditto.
1663         * language.c: Ditto.
1664         * language.h: Ditto.
1665         * libunwind-frame.c: Ditto.
1666         * libunwind-frame.h: Ditto.
1667         * linespec.c: Ditto.
1668         * linux-nat.c: Ditto.
1669         * linux-nat.h: Ditto.
1670         * linux-thread-db.c: Ditto.
1671         * machoread.c: Ditto.
1672         * macroexp.c: Ditto.
1673         * macrotab.c: Ditto.
1674         * main.c: Ditto.
1675         * maint.c: Ditto.
1676         * mdebugread.c: Ditto.
1677         * memattr.c: Ditto.
1678         * minsyms.c: Ditto.
1679         * monitor.c: Ditto.
1680         * monitor.h: Ditto.
1681         * objfiles.c: Ditto.
1682         * objfiles.h: Ditto.
1683         * osabi.c: Ditto.
1684         * p-typeprint.c: Ditto.
1685         * p-valprint.c: Ditto.
1686         * parse.c: Ditto.
1687         * printcmd.c: Ditto.
1688         * proc-events.c: Ditto.
1689         * procfs.c: Ditto.
1690         * progspace.c: Ditto.
1691         * progspace.h: Ditto.
1692         * psympriv.h: Ditto.
1693         * psymtab.c: Ditto.
1694         * record.c: Ditto.
1695         * regcache.c: Ditto.
1696         * regcache.h: Ditto.
1697         * remote-fileio.c: Ditto.
1698         * remote.c: Ditto.
1699         * ser-mingw.c: Ditto.
1700         * ser-tcp.c: Ditto.
1701         * ser-unix.c: Ditto.
1702         * serial.c: Ditto.
1703         * serial.h: Ditto.
1704         * solib-frv.c: Ditto.
1705         * solib-irix.c: Ditto.
1706         * solib-osf.c: Ditto.
1707         * solib-pa64.c: Ditto.
1708         * solib-som.c: Ditto.
1709         * solib-sunos.c: Ditto.
1710         * solib-svr4.c: Ditto.
1711         * solib-target.c: Ditto.
1712         * solib.c: Ditto.
1713         * somread.c: Ditto.
1714         * source.c: Ditto.
1715         * stabsread.c: Ditto.
1716         * stabsread.c: Ditto.
1717         * stack.c: Ditto.
1718         * stack.h: Ditto.
1719         * symfile-mem.c: Ditto.
1720         * symfile.c: Ditto.
1721         * symfile.h: Ditto.
1722         * symmisc.c: Ditto.
1723         * symtab.c: Ditto.
1724         * symtab.h: Ditto.
1725         * target-descriptions.c: Ditto.
1726         * target-memory.c: Ditto.
1727         * target.c: Ditto.
1728         * target.h: Ditto.
1729         * terminal.h: Ditto.
1730         * thread.c: Ditto.
1731         * top.c: Ditto.
1732         * tracepoint.c: Ditto.
1733         * tracepoint.h: Ditto.
1734         * ui-file.c: Ditto.
1735         * ui-file.h: Ditto.
1736         * ui-out.h: Ditto.
1737         * user-regs.c: Ditto.
1738         * user-regs.h: Ditto.
1739         * utils.c: Ditto.
1740         * valarith.c: Ditto.
1741         * valops.c: Ditto.
1742         * valprint.c: Ditto.
1743         * valprint.h: Ditto.
1744         * value.c: Ditto.
1745         * varobj.c: Ditto.
1746         * varobj.h: Ditto.
1747         * vec.h: Ditto.
1748         * xcoffread.c: Ditto.
1749         * xcoffsolib.c: Ditto.
1750         * xcoffsolib.h: Ditto.
1751         * xml-syscall.c: Ditto.
1752         * xml-tdesc.c: Ditto.
1753
1754 2011-01-05  Michael Snyder  <msnyder@vmware.com>
1755
1756         * cli/cli-cmds.c: Shorten lines of >= 80 columns.
1757         * cli/cli-decode.c: Ditto.
1758         * cli/cli-dump.c: Ditto.
1759         * cli/cli-logging.c: Ditto.
1760         * cli/cli-script.c: Ditto.
1761         * cli/cli-setshow.c: Ditto.
1762         * common/signals.c: Ditto.
1763         * mi/mi-cmd-break.c: Ditto.
1764         * mi/mi-cmd-disas.c: Ditto.
1765         * mi/mi-cmd-stack.c: Ditto.
1766         * mi/mi-cmd-var.c: Ditto.
1767         * mi/mi-cmds.c: Ditto.
1768         * mi/mi-common.h: Ditto.
1769         * mi/mi-console.c: Ditto.
1770         * mi/mi-interp.c: Ditto.
1771         * mi/mi-main.c: Ditto.
1772         * osf-share/cma_attr.c: Ditto.
1773         * osf-share/cma_deb_core.h: Ditto.
1774         * osf-share/cma_debug_client.h: Ditto.
1775         * osf-share/cma_handle.h: Ditto.
1776         * osf-share/cma_mutex.h: Ditto.
1777         * osf-share/cma_stack_int.h: Ditto.
1778         * osf-share/cma_tcb_defs.h: Ditto.
1779         * python/py-auto-load.c: Ditto.
1780         * python/py-breakpoint.c: Ditto.
1781         * python/py-cmd.c: Ditto.
1782         * python/py-frame.c: Ditto.
1783         * python/py-objfile.c: Ditto.
1784         * python/py-param.c: Ditto.
1785         * python/py-progspace.c: Ditto.
1786         * python/py-symbol.c: Ditto.
1787         * python/py-value.c: Ditto.
1788         * python/python-internal.h: Ditto.
1789         * python/python.c: Ditto.
1790         * tui/tui-data.c: Ditto.
1791         * tui/tui-disasm.c: Ditto.
1792         * tui/tui-hooks.c: Ditto.
1793         * tui/tui-io.c: Ditto.
1794         * tui/tui-layout.c: Ditto.
1795         * tui/tui-regs.c: Ditto.
1796         * tui/tui-source.c: Ditto.
1797         * tui/tui-stack.c: Ditto.
1798         * tui/tui-win.c: Ditto.
1799         * tui/tui-windata.c: Ditto.
1800         * tui/tui-winsource.c: Ditto.
1801
1802 2011-01-05  Joel Brobecker  <brobecker@adacore.com>
1803
1804         * configure.ac, gdb.1: Copyright year update.
1805
1806 2011-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1807
1808         * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
1809         this_pc_in_block, morestack_msym and morestack_name.  Check for
1810         "__morestack" minimal symbol there.
1811
1812 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
1813
1814         * symfile.c (find_sym_fns): Add call to dont_repeat.
1815
1816 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
1817
1818         Copyright year update in most files (performed by copyright.sh).
1819
1820 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
1821
1822         * top.c (print_gdb_version): Update copyright year in version output.
1823
1824 For older changes see ChangeLog-2010.
1825 \f
1826 Local Variables:
1827 mode: change-log
1828 left-margin: 8
1829 fill-column: 74
1830 version-control: never
1831 coding: utf-8
1832 End: