]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
gdb: Add sparc*-*-linux catch syscall support.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2010-02-24 David S. Miller <davem@davemloft.net>
2
3 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
4 * syscalls/sparc-linux.xml: New.
5 * syscalls/sparc64-linux.xml: New.
6 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
7 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
8 (sparc32_linux_get_syscall_number): New function.
9 (sparc32_linux_init_abi): Set syscall XML file name and hook up
10 syscall number fetcher.
11 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
12 (sparc64_linux_get_syscall_number): New function.
13 (sparc64_linux_init_abi): Set syscall XML file name and hook up
14 syscall number fetcher.
15
16 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
17
18 Multiexec MI
19
20 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
21 * inferior.c (add_inferior_silent): Notify inferior_added
22 observer.
23 (delete_inferior_1): Notify inferior_removed observer.
24 (exit_inferior_1): Pass inferior, not pid, to observer.
25 (inferior_appeared): Likewise.
26 (add_inferior_with_spaces): New.
27 (add_inferior_command): Use the above.
28 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
29 Declare.
30
31 * inflow.c (inflow_inferior_exit): Likewise.
32 * jit.c (jit_inferior_exit_hook): Likewise.
33
34 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
35 remove-inferior.
36 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
37 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
38 (report_initial_inferior): New.
39 (mi_inferior_removed): Register the above. Make sure
40 inferior_added observer is called on the first inferior.
41 (mi_new_thread, mi_thread_exit): Thread group is now identified by
42 inferior number, not pid.
43 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
44 affected.
45 * mi/mi-main.c (current_context): New.
46 (proceed_thread_callback): Use typed closure.
47 Proceed everything if pid is 0. Most implementation split into
48 (proceed_thread): ... this.
49 (run_one_inferior): New.
50 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
51 Adjust for multiexec behaviour.
52 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
53 (mi_cmd_execute): Handle the 'thread-group' option here.
54 Do some extra checks.
55 * mi-parse.c (mi_parse): Handle the --all and --thread-group
56 options.
57 * mi-parse.h (struct mi_parse): New fields all and thread_group.
58
59 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
60
61 Make -exec-run a proper MI commands.
62
63 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
64 * mi/mi-cmds.c (mi_cmds): Adjust.
65 * mi/mi-main.c (mi_cmd_exec_run): New.
66
67 2010-02-24 Pedro Alves <pedro@codesourcery.com>
68 Stan Shebs <stan@codesourcery.com>
69
70 * tracepoint.h (set_traceframe_number)
71 (cleanup_restore_current_traceframe): Declare.
72 * tracepoint.c (set_traceframe_number): New.
73 (struct current_traceframe_cleanup): New.
74 (do_restore_current_traceframe_cleanup)
75 (restore_current_traceframe_cleanup_dtor)
76 (make_cleanup_restore_current_traceframe): New.
77 * infrun.c: Include tracepoint.h.
78 (fetch_inferior_event): Switch out and in of tfind mode.
79
80 2010-02-24 Pedro Alves <pedro@codesourcery.com>
81
82 * breakpoint.c (breakpoint_init_inferior): Also delete
83 bp_shlib_event breakpoints.
84 * solib-frv.c (enable_break): Remove call to
85 remove_solib_event_breakpoints.
86 * solib-svr4.c (enable_break): Ditto.
87 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
88 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
89 * solib-som.c (som_solib_create_inferior_hook): Ditto.
90 * solib-spu.c (spu_enable_break): Ditto.
91
92 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
93
94 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
95
96 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
97
98 * varobj.c (varobj_update): Avoid non-constants in initializers.
99
100 2010-02-23 Tom Tromey <tromey@redhat.com>
101
102 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
103 handle big-endian values.
104 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
105
106 2010-02-22 Pedro Alves <pedro@codesourcery.com>
107
108 PR9605
109
110 gdb/
111 * breakpoint.c (insert_bp_location): If inserting the read
112 watchpoint failed, fallback to an access watchpoint.
113 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
114 if the value changed, if not watching the same memory for writes.
115 (watchpoint_locations_match): Add comment.
116 (update_global_location_list): Copy the location's watchpoint type.
117 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
118 handle read watchpoints here.
119 (i386_insert_watchpoint): Read watchpoints aren't supported.
120 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
121 packets.
122 * target.h (target_insert_watchpoint): Update description.
123
124 2010-02-19 Tom Tromey <tromey@redhat.com>
125
126 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
127 * m2-typeprint.c (m2_print_type): Update.
128 * gdbtypes.c (recursive_dump_type): Update.
129 (copy_type_recursive): Update.
130 * c-typeprint.c (c_type_print_varspec_prefix): Update.
131 (c_type_print_base): Update.
132 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
133 Remove.
134 (struct cplus_struct_type) <ntemplate_args>: Remove.
135 <struct template_arg>: Remove.
136 <is_dynamic>: Move earlier.
137 (TYPE_TEMPLATE_ARGS): Remove.
138 (TYPE_NTEMPLATE_ARGS): Remove.
139 (TYPE_TEMPLATE_ARG): Remove.
140
141 2010-02-19 Tom Tromey <tromey@redhat.com>
142
143 PR c++/8693, PR c++/9496:
144 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
145 * c-exp.y (lex_one_token): Rename from yylex. Don't call
146 write_dollar_variable. Don't try to classify NAME tokens.
147 (token_and_value): New type.
148 (token_fifo, popping, name_obstack): New globals.
149 (classify_name): New function.
150 (classify_inner_name): Likewise.
151 (yylex): Likewise.
152 (VARIABLE): Now has type sval.
153 (exp : VARIABLE): Call write_dollar_variable.
154 (qualified_name): Use TYPENAME, not typebase. Add production for
155 multiple "::" instances.
156 (variable): Use name_not_typename.
157 (qualified_type): Remove.
158 (typebase): Update.
159
160 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
161
162 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
163 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
164 found by bfd_get_section_by_name.
165 * symfile.h (struct section_addr_info) <sectindex>: New comment.
166
167 2010-02-19 Joel Brobecker <brobecker@adacore.com>
168
169 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
170 7.0 section" into "Changes in 7.1".
171
172 2010-02-19 Joel Brobecker <brobecker@adacore.com>
173
174 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
175 * version.in: Bump version to 7.1.50.20100219-cvs.
176
177 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
178
179 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
180 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
181
182 2010-02-17 Tom Tromey <tromey@redhat.com>
183
184 * NEWS: Add Python API Improvements section.
185
186 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
187
188 * NEWS: Correct typo.
189
190 2010-02-17 Tom Tromey <tromey@redhat.com>
191
192 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
193
194 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
195
196 * symfile.c (build_section_addr_info_from_objfile): Include sections
197 only if they are SEC_ALLOC or SEC_LOAD.
198
199 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
200
201 PR shlibs/11293
202 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
203 of ULONGEST for address size.
204
205 2010-02-17 Tom Tromey <tromey@redhat.com>
206
207 * NEWS: Add C++ improvements section.
208
209 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
210
211 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
212 PyThreadState_Swap): Avoid "statement with no effect" warning.
213
214 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
215
216 * solib-svr4.c (enable_break <target_auxv_search>): New variable
217 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
218
219 2010-02-17 Tristan Gingold <gingold@adacore.com>
220 Petr HluzĂ­n <petr.hluzin@gmail.com>
221
222 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
223 gdb_assert. Fix info->size for SIG prologue.
224
225 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
226
227 * infcmd.c (show_inferior_tty_command): Check for NULL.
228 Correct output message.
229
230 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
231
232 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
233 FUNCTION contains parentheses. Improve removal of a trailing
234 single quote.
235
236 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
237
238 * gcore.c (do_bfd_delete_cleanup): New function.
239 (gcore_command): Use it. Discard the cleanup after success.
240 (gcore_copy_callback): Delete dead code.
241
242 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
243
244 * symfile.c (addr_info_make_relative): Always use
245 find_lowest_section.
246
247 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
248
249 * NEWS: Added entry for namespace fixes.
250
251 2010-02-15 Tom Tromey <tromey@redhat.com>
252
253 * dwarf2read.c (guess_structure_name): Allocate name on the
254 objfile obstack.
255
256 2010-02-15 Tom Tromey <tromey@redhat.com>
257
258 * c-typeprint.c (c_type_print_base): Reverse order of test.
259
260 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
261
262 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
263 initialize it from ELF BFD. Extend the prelink condition by it.
264
265 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
266
267 * defs.h (parse_pid_to_attach): New.
268 * utils.c (parse_pid_to_attach): New.
269 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
270 * gnu-nat.c (gnu_attach): Likewise.
271 * nto-procfs.c (procfs_attach): Likewise.
272 * procfs.c (procfs_attach): Likewise.
273 * windows-nat.c (windows_attach): Likewise.
274 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
275 * inf-ttrace.c (inf_ttrace_attach): Likewise.
276 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
277 check.
278
279 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
280
281 * MAINTAINERS: Add myself for write after approval privileges.
282
283 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
284
285 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
286 block.
287
288 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
289
290 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
291 only if INFO_VERBOSE.
292
293 2010-02-12 Tomas Holmberg <th@virtutech.com>
294
295 * mi/mi-main.c: Added the --reverse flag to the following MI
296 commands: exec-continue, exec-finish, exec-next, exec-step,
297 exec-next-instruction, exec-step-instruction. This is to
298 support reverse execution over the MI interface to gdb.
299
300 2010-02-12 Pedro Alves <pedro@codesourcery.com>
301
302 * tracepoint.c (_initialize_tracepoint): Specify that the address
303 range of `tfind outsize' is exclusive, and that the address range
304 of `tfind range' is inclusive, in the commands' help strings.
305
306 2010-02-12 Joel Brobecker <brobecker@adacore.com>
307
308 Spurious "dll not found" error messages on x64-windows.
309 * windows-nat.c: Add include of complaints.h.
310 (handle_unload_dll): Change dll-not-found error into a complaint.
311
312 2010-02-12 Pedro Alves <pedro@codesourcery.com>
313
314 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
315 bp_tracepoint and bp_fast_tracepoint, not
316 bp_loc_software_breakpoint.
317 (update_global_location_list): Tracepoints are never duplicates of
318 anything.
319
320 2010-02-12 Pedro Alves <pedro@codesourcery.com>
321
322 * breakpoint.c (break_command_really): Change return type to int.
323 Return false if no breakpoint was created, true otherwise.
324 (trace_command): Don't set the tracepoint count if no tracepoint
325 was created.
326 (ftrace_command): Ditto.
327 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
328 created in the breakpoints table.
329
330 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
331 Ulrich Weigand <uweigand@de.ibm.com>
332
333 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
334
335 2010-02-11 Pedro Alves <pedro@codesourcery.com>
336
337 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
338 the offset value isn't of integral type.
339
340 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
341
342 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
343 New.
344
345 2010-02-11 Pedro Alves <pedro@codesourcery.com>
346
347 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
348 non-subscriptable types.
349 * valarith.c (binop_types_user_defined_p): New, abstracted out
350 from ...
351 (binop_user_defined_p): ... this.
352 * value.h (binop_types_user_defined_p): Declare.
353
354 2010-02-11 Pedro Alves <pedro@codesourcery.com>
355
356 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
357 Merge uploaded TSVs before merging uploaded tracepoints.
358
359 2010-02-11 Pedro Alves <pedro@codesourcery.com>
360
361 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
362
363 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
364
365 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
366 whitespace character after a dot in comment.
367 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
368 Likewise.
369 (list_args_or_locals): For the 'all' (that is
370 -stack-list-variables) case, always output list of tuples.
371 Output 'arg' field if variable is argument.
372
373 2010-02-10 Tom Tromey <tromey@redhat.com>
374
375 * parser-defs.h (parser_debug): Declare.
376 * parse.c (_initialize_parse): Install "debug parser" set/show
377 command.
378 (parser_debug): New global.
379 (show_parserdebug): New function.
380 * c-exp.y (c_parse): Set yydebug.
381
382 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
383
384 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
385 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
386 (tdesc_predefined_types): Add i387_ext, i386_eflags and
387 i386_mxcsr.
388 (tdesc_find_type): New.
389 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
390 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
391
392 * target-descriptions.h (tdesc_find_type): New.
393
394 2010-02-10 Michael Snyder <msnyder@vmware.com>
395
396 * gdb-gdb.py: Comment fix.
397
398 2010-02-09 Tristan Gingold <gingold@adacore.com>
399
400 * machoread.c (macho_symfile_relocate): New function.
401 (macho_sym_fns): Use macho_symfile_relocate instead of
402 default_symfile_relocate.
403 (macho_oso_data): New type.
404 (current_oso): New variable.
405 (macho_add_oso_symfile): Do not compute section_addr_info, but
406 instead set vma of sections.
407 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
408 Set and clear current_oso.
409
410 2010-02-09 Joel Brobecker <brobecker@adacore.com>
411
412 Wrong type description for tagged type parameter.
413 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
414 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
415 reference to a tagged type.
416
417 2010-02-09 Tristan Gingold <gingold@adacore.com>
418
419 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
420 brothers of the parent.
421
422 2010-02-08 Tom Tromey <tromey@redhat.com>
423
424 PR c++/8017:
425 * value.h: Update.
426 * valops.c (search_struct_field): Make 'name' const.
427 (search_struct_method): Likewise.
428 (find_method_list): Make 'method' const.
429 (value_struct_elt): Make 'name' and 'err' const.
430 (value_find_oload_method_list): Make 'method' const.
431 (find_overload_match): Make 'name' const.
432 * eval.c (evaluate_subexp_standard): New locals function,
433 function_name.
434 <OP_FUNCALL>: Handle OP_SCOPE specially.
435
436 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
437
438 * infrun.c (handle_inferior_event): Do not look up regcache
439 for exited processes.
440
441 Mon Feb 8 13:17:10 2010 Chris Moller <moller@mollerware.com>
442
443 PR gdb/10728
444 * valarith.c (value_ptrdiff): Added a test for a zero type length,
445 warn if found, and assume length = 1.
446
447 2010-02-08 Chris Moller <cmoller@redhat.com>
448
449 PR gdb/9067
450 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
451 cp_print_static_field) Fix use of obstacks.
452
453 2010-02-08 Pedro Alves <pedro@codesourcery.com>
454
455 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
456 resumed LWPs as resumed.
457 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
458 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
459 of throwing an internal error. If an LWP of a process we're not
460 waiting for reports a signal, don't force collecting a SIGSTOP,
461 and if it was breakpoint hit in non-stop mode, cancel it. Don't
462 go through all LWPs cancelling breakpoints in non-stop mode.
463 (resume_stopped_resumed_lwps): New.
464 (linux_nat_wait): Use it.
465
466 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
467
468 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
469 i386/amd64 and i386/amd64-linux.
470 (i386/i386-expedite): New.
471 (i386/i386-linux-expedite): Likewise.
472 (i386/amd64-expedite):Likewise.
473 (i386/amd64-linux-expedite): Likewise.
474 ($(outdir)/i386/i386-linux.dat): Likewise.
475 ($(outdir)/i386/amd64.dat): Likewise.
476 ($(outdir)/i386/amd64-linux.dat): Likewise.
477
478 * features/i386/32bit-core.xml: New.
479 * features/i386/32bit-linux.xml: Likewise.
480 * features/i386/32bit-sse.xml: Likewise.
481 * features/i386/64bit-core.xml: Likewise.
482 * features/i386/64bit-linux.xml: Likewise.
483 * features/i386/64bit-sse.xml: Likewise.
484 * features/i386/i386-linux.xml: Likewise.
485 * features/i386/i386.xml: Likewise.
486 * features/i386/amd64-linux.xml: Likewise.
487 * features/i386/amd64.xml: Likewise.
488 * features/i386/i386-linux.c: Likewise.
489 * features/i386/i386.c: Likewise.
490 * features/i386/amd64-linux.c: Likewise.
491 * features/i386/amd64.c: Likewise.
492
493 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
494
495 PR c++/7935:
496 * cp-support.h: Added char* alias element to using_direct data
497 struct.
498 (cp_add_using): Added char* alias argument.
499 (cp_add_using_directive): Ditto.
500 * cp-namespace.c: Updated with the above changes.
501 (cp_lookup_symbol_imports): Check for aliases.
502 * dwarf2read.c (read_import_statement): Figure out local alias
503 for the import and pass it on to cp_add_using.
504 (read_namespace): Pass alias argument to cp_add_using.
505
506 2010-02-05 Hui Zhu <teawater@gmail.com>
507
508 * defs.h (gdb_bfd_errmsg): New extern.
509 * exec.c (exec_file_attach): Change bfd_errmsg to
510 gdb_bfd_errmsg.
511 * utils.c (AMBIGUOUS_MESS1): New macro.
512 (AMBIGUOUS_MESS2): New macro.
513 (gdb_bfd_errmsg): New function.
514
515 2010-02-04 Doug Evans <dje@google.com>
516
517 * solib-svr4.c (enable_break): Add comment.
518
519 2010-02-04 Anthony Green <green@moxielogic.com>
520
521 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
522 gracefully.
523
524 2010-02-04 Tom Tromey <tromey@redhat.com>
525
526 * valops.c (search_struct_field): Account for
527 value_embedded_offset. Fix check for virtual base past the end of
528 the object. Use value_copy when making a slice of the value.
529
530 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
531
532 PR tui/9622
533 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
534 only if gdb_stdout is a tty.
535
536 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
537
538 * target-descriptions.c: Include "osabi.h".
539 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
540 OSABI.
541
542 2010-02-04 Tristan Gingold <gingold@adacore.com>
543
544 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
545 (macho_symtab_read): Adjust calls to macho_add_oso.
546 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
547 (macho_symfile_read): Adjust call to macho_oso_symfile.
548 (macho_new_init): Move this function after declarations.
549 (macho_symfile_init): Ditto.
550 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
551 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
552
553 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
554
555 Include MI command in remotelog.
556
557 * mi/mi-main.c (mi_execute_command): Call target_log_command.
558
559 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
560
561 * remote.c (remote_state): Remove gdbarch.
562 (init_remote_state): Don't set gdbarch.
563 (remote_query_supported): Pass target_gdbarch instead of
564 rs->gdbarch to gdbarch_qsupported.
565
566 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
567
568 * gdbarch.sh: Add qsupported.
569
570 * gdbarch.c: Regenerated.
571 * gdbarch.h: Likewise.
572
573 * remote.c (remote_state): Add gdbarch.
574 (init_remote_state): Set gdbarch.
575 (remote_query_supported): Support gdbarch_qsupported.
576
577 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
578
579 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
580 __FreeBSD_kernel_version.
581
582 2010-02-03 Tristan Gingold <gingold@adacore.com>
583
584 * symfile.h (struct sym_fns): Add sym_relocate field.
585 (default_symfile_relocate): New prototype.
586 (symfile_relocate_debug_section): First argument is now an objfile.
587 * symfile.c (default_symfile_relocate): Rename from
588 symfile_relocate_debug_section, first argument is now an objfile.
589 (symfile_relocate_debug_section): New function.
590 * coffread.c (coff_sym_fns): Set sym_relocate field.
591 * somread.c (som_sym_fns): Ditto.
592 * mipsread.c (ecoff_sym_fns): Ditto.
593 * machoread.c (macho_sym_fns): Ditto.
594 * elfread.c (elf_sym_fns): Ditto.
595 * dwarf2read.c (dwarf2_read_section): Ditto.
596 * xcoffread.c (xcoff_sym_fns): Ditto.
597 * dbxread.c (aout_sym_fns): Ditto.
598 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
599 (elfstab_build_psymtabs): Ditto.
600
601 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
602
603 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
604
605 2010-02-02 Tom Tromey <tromey@redhat.com>
606
607 * valops.c (value_cast_structs): Try downcasting using the RTTI
608 type.
609
610 2010-02-02 Tom Tromey <tromey@redhat.com>
611
612 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
613 (gnuv2_baseclass_offset): Now static.
614 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
615 * gnu-v2-abi.h: Remove.
616
617 2010-02-02 Tom Tromey <tromey@redhat.com>
618
619 * m2-typeprint.c (m2_record_fields): Don't use
620 TYPE_DECLARED_TYPE.
621 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
622 (struct main_type) <flag_declared_class>: New field.
623 (struct cplus_struct_type) <declared_type>: Remove.
624 <ntemplate_args>: Move earlier.
625 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
626 (DECLARED_TYPE_TEMPLATE): Remove.
627 (TYPE_DECLARED_TYPE): Remove.
628 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
629 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
630 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
631 TYPE_DECLARED_TYPE.
632
633 2010-02-02 Tom Tromey <tromey@redhat.com>
634
635 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
636 * valops.c (search_struct_field): Compute nbases after calling
637 CHECK_TYPEDEF.
638 (check_field): Call CHECK_TYPEDEF.
639 * cp-valprint.c (cp_print_value): Pass correct address to
640 baseclass_offset. Fix check for virtual base past the end of the
641 object. Don't offset address passed to cp_print_value_fields or
642 apply_val_pretty_printer.
643 (cp_print_value_fields): Fix call to val_print.
644 (cp_print_value_fields_rtti): New function.
645 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
646 * p-valprint.c (pascal_object_print_value_fields): Fix call to
647 val_print.
648 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
649 offset to address.
650 * language.h (struct language_defn) <la_val_print>: Document.
651 * c-lang.h (cp_print_value_fields_rtti): Declare.
652
653 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
654
655 PR libc/11214:
656 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
657 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
658 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
659
660 2010-02-01 Michael Matz <matz@suse.de>
661 Daniel Jacobowitz <dan@codesourcery.com>
662
663 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
664 functions use a frame pointer.
665
666 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
667
668 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
669 by a conditional setting DYN_ADDR. Use DYN_ADDR.
670 * config/djgpp/fnchange.lst: Add translations for
671 symbol-without-target_section.exp and symbol-without-target_section.c.
672
673 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
674
675 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
676 (remote_breakpoint_for_pc): Correct invalid_p check.
677 * gdbarch.c: Regenerated.
678
679 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
680
681 * arm-tdep.c (arm_find_mapping_symbol): New function, from
682 arm_pc_is_thumb.
683 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
684 (extend_buffer_earlier): New function.
685 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
686 (arm_adjust_breakpoint_address): New function.
687 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
688
689 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
690
691 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
692 (arm_linux_thumb2_le_breakpoint): New constants.
693 (arm_linux_init_abi): Set thumb2_breakpoint and
694 thumb2_breakpoint_size.
695 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
696 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
697 Implement support for single stepping through IT blocks if
698 a 32-bit Thumb breakpoint instruction is available.
699 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
700 is available, use it when needed.
701 (arm_remote_breakpoint_from_pc): New function.
702 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
703 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
704 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
705
706 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
707
708 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
709 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
710 * gdbarch.c, gdbarch.h: Regenerated.
711 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
712 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
713 gdbarch_remote_breakpoint_from_pc.
714
715 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
716
717 * infrun.c (prepare_to_proceed): Handle other signals which might
718 match a breakpoint.
719 (handle_inferior_event): Move the check for unusual breakpoint
720 signals earlier.
721
722 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
723
724 amd64 - function returning record with field straddling 2 registers.
725 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
726 a record of length <= 16 in which a field straddles the two
727 eightbytes.
728
729 2010-01-29 Joel Brobecker <brobecker@adacore.com>
730
731 Implement return values on amd64-windows.
732 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
733 (amd64_windows_return_value): New function.
734 (amd64_windows_init_abi): Call set_gdbarch_return_value with
735 amd64_windows_return_value.
736
737 2010-01-29 Joel Brobecker <brobecker@adacore.com>
738
739 amd64-windows: 32 bytes allocated on stack by caller for integer
740 parameter registers.
741 * i386-tdep.h (struct gdbarch_tdep): Add new field
742 integer_param_regs_saved_in_caller_frame.
743 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
744 tdep->integer_param_regs_saved_in_caller_frame to 1.
745 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
746 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
747
748 2010-01-29 Joel Brobecker <brobecker@adacore.com>
749
750 amd64-windows: memory args passed by pointer during function calls.
751 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
752 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
753 where tdep->memory_args_by_pointer is non-zero.
754 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
755 tdep->memory_args_by_pointer to 1.
756
757 2010-01-29 Joel Brobecker <brobecker@adacore.com>
758
759 amd64-windows: Integer parameters in function calls.
760 * i386-tdep.h (enum amd64_reg_class): New, moved here from
761 amd64-tdep.c.
762 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
763 call_dummy_integer_regs, and classify.
764 * amd64-tdep.h (amd64_classify): Add declaration.
765 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
766 (amd64_reg_class): Delete, moved to i386-tdep.h.
767 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
768 Replace call to amd64_classify by call to tdep->classify.
769 (amd64_push_arguments): Get the list of registers to use for
770 passing integer parameters from the gdbarch tdep structure,
771 rather than using a hardcoded one. Replace calls to amd64_classify
772 by calls to tdep->classify.
773 (amd64_push_dummy_call): Get the register number used for
774 the "hidden" argument from tdep->call_dummy_integer_regs.
775 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
776 and tdep->call_dummy_integer_regs. Set tdep->classify.
777 * amd64-windows-tdep.c: Add include of gdbtypes.h.
778 (amd64_windows_dummy_call_integer_regs): New static global.
779 (amd64_windows_classify): New function.
780 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
781 tdep->call_dummy_integer_regs and tdep->classify.
782
783 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
784
785 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
786 for the new regcache. All callers updated.
787 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
788 (get_thread_arch_regcache): Do not set aspace here.
789 * regcache.h (regcache_xmalloc): Update declaration.
790
791 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
792 regcache_xmalloc updated.
793
794 2010-01-28 Joel Brobecker <brobecker@adacore.com>
795
796 Another -Wunused-function error in procfs.c (sparc-solaris)
797 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
798 Only define if SYS_syssgi is defined.
799 (remove_dbx_link_breakpoint): Delete declaration. Move up.
800 (dbx_link_addr, insert_dbx_link_bpt_in_file)
801 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
802 is itself defined.
803
804 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
805
806 * windows-nat.c (windows_initialization_done): New variable.
807 (get_windows_debug_event): Issue error when process dies before
808 completely initializing.
809 (do_initial_windows_stuff): Set flag to indicate when we are done with
810 the initial steps of attaching to the child.
811
812 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
813
814 * symtab.h (struct symbol <symtab>): New comment on NULL values.
815
816 2010-01-27 Doug Evans <dje@google.com>
817
818 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
819
820 * breakpoint.c (bpstat_stop_status): Delete useless code.
821
822 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
823
824 * printcmd.c (display_uses_solib_p): Remove variable section. Access
825 objfile via SYMBOL_SYMTAB.
826
827 2010-01-26 Tom Tromey <tromey@redhat.com>
828
829 PR exp/7643:
830 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
831 coerce_array on result.
832
833 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
834
835 * cp-namespace.c (cp_lookup_symbol_namespace): Added
836 search_parent argument.
837 (cp_add_using): Initialize 'searched' field.
838 (reset_directive_searched): New function.
839 * cp-support.h: Add 'searched' field to using_direct struct.
840 (cp_lookup_symbol_imports): Ditto.
841 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
842 Perform recursive search.
843 Implement non parent search.
844 * valops.c (value_maybe_namespace_elt): Updated.
845
846 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
847
848 PR gdb/10929:
849 * dwarf2read.c (read_lexical_block_scope): Create blocks for
850 scopes which contain using directives even if they contain no
851 declarations.
852 * symtab.c (lookup_symbol_aux): Pass lowest level block to
853 la_lookup_symbol_nonlocal.
854 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
855 cp_lookup_symbol_namespace.
856 (cp_lookup_symbol_namespace): Perform an import lookup at every
857 block level.
858 (cp_lookup_symbol_imports): New function.
859 (cp_lookup_symbol_in_namespace): New function.
860
861 2010-01-25 Tom Tromey <tromey@redhat.com>
862
863 PR gdb/11049:
864 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
865 result.
866
867 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
868
869 * configure.ac: Only use host_os part when disabling TUI on osf.
870 Use test to check variables, prefix strings with x.
871 * configure: Regenerate.
872
873 * solib-osf.c (osf_current_sos): Initialize tail.
874
875 2010-01-25 gingold <gingold@adacore.com>
876
877 * windows-nat.c (windows_continue): Use %x to print thread id.
878 (get_windows_debug_event): Ditto.
879
880 2010-01-22 Tom Tromey <tromey@redhat.com>
881
882 PR symtab/11199:
883 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
884 type and arguments. Use smash_to_methodptr_type.
885 (read_structure_type): Call quirk_gcc_member_function_pointer
886 later.
887 * gdbtypes.h (smash_to_methodptr_type): Declare.
888 * gdbtypes.c (smash_to_methodptr_type): New function.
889 (lookup_methodptr_type): Use it.
890
891 2010-01-21 Tom Tromey <tromey@redhat.com>
892
893 PR symtab/11198:
894 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
895 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
896 * glibc-tdep.c (find_minsym_and_objfile): Remove.
897 (glibc_skip_solib_resolver): Use
898 lookup_minimal_symbol_and_objfile.
899
900 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
901
902 * inflow.c (check_syscall): Guard by #if clause for GO32 and
903 WIN32 targets.
904
905 2010-01-20 Tom Tromey <tromey@redhat.com>
906
907 PR backtrace/10770:
908 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
909 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
910 * dwarf2expr.c (new_dwarf_expr_context): Allocate
911 dwarf_stack_values, not CORE_ADDRs.
912 (execute_stack_op): Change DW_OP_div and comparison operators to
913 use signed operands.
914
915 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
916
917 Per-inferior args and tty and environment.
918
919 * infcmd.c (inferior_args): Rename to ...
920 (inferior_args_scratch): ... this.
921 (inferior_io_terminal): Rename to ...
922 (inferior_io_terminal_scratch): ... this.
923 (inferior_argc, inferior_argv): Remove.
924 (set_inferior_io_terminal, get_inferior_io_terminal): Store
925 inside current_inferior().
926 (set_inferior_tty_command, show_inferior_tty_command): New.
927 (get_inferior_args, set_inferior_args): Store inside
928 current_inferior().
929 (notice_args_set): Likewise and rename to...
930 (set_args_command): ... this.
931 (set_inferior_args_vector): Likewise.
932 (notice_args_read): Rename to...
933 (show_args_command): ...new.
934 (tty_command): Remove.
935 (run_command_1): Don't free old args, as they are freed by
936 set_inferior_arg now.
937 (run_no_args_command): Likewise.
938 (inferior_environ): Remove.
939 (run_command_1): Use environment of the current inferior.
940 (environment_info, set_environment_command)
941 (unset_environment_command, path_info, path_command): Likewise.
942 (_initialize_infcmd): Adjust for function and variable renames.
943 Do not init inferior_environ.
944 * inferior.h (set_inferior_arg): Adjust prototype.
945 (struct inferior): New fields args, argc, argv, terminal, environment.
946 (inferior_environ): Remove declaration.
947 * inferior.c (free_inferior): Free new fields.
948 (add_inferior_silent): Initialize 'environment' field.
949 * main.c (captured_main): Set arguments only after the initial
950 inferior has been created. Set set_inferior_io_terminal,
951 not tty_command.
952 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
953 inferior.
954 (_initialize_mi_cmd_env): Adjust for disappearance of global
955 inferior_environ.
956 * solib.c (solib_find): Use environment of the current inferior.
957
958 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
959
960 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
961 HAVE_PYTHON.
962 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
963
964 2010-01-20 Joel Brobecker <brobecker@adacore.com>
965
966 Get rid of ada-lang.c:function_name_from_pc.
967 * ada-lang.c: Add "stack.h" #include.
968 (function_name_from_pc): Delete.
969 (is_known_support_routine): Replace call to function_name_from_pc
970 by call to find_frame_funname.
971 (ada_unhandled_exception_name_addr_from_raise): Likewise.
972
973 2010-01-19 Tom Tromey <tromey@redhat.com>
974
975 PR c++/11026:
976 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
977 objfile obstack.
978
979 2010-01-19 Tom Tromey <tromey@redhat.com>
980
981 * top.c (stop_sig, float_handler, do_nothing): Remove.
982
983 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
984
985 * breakpoint.c (watchpoint_check): Check the call
986 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
987 Extend the comment.
988 * config/djgpp/fnchange.lst: Add translations for
989 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
990 watchpoint-cond-gone-stripped.c.
991
992 2010-01-19 Tom Tromey <tromey@redhat.com>
993
994 PR c++/8000:
995 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
996 into parent scope, and enumerator into grandparent scope.
997
998 2010-01-19 Joel Brobecker <brobecker@adacore.com>
999
1000 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
1001
1002 2010-01-19 Joel Brobecker <brobecker@adacore.com>
1003
1004 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
1005 i[34567]86-*-solaris2.1[0-9]*.
1006 * configure.tgt: Likewise.
1007
1008 2010-01-19 Joel Brobecker <brobecker@adacore.com>
1009
1010 * NEWS: Document the source command enhancement allowing it
1011 to load Python scripts. Document the "set/show script-extension"
1012 commands.
1013
1014 2010-01-19 Joel Brobecker <brobecker@adacore.com>
1015
1016 Add -Wunused-function to compile flags.
1017 * configure.ac: Add -Wunused-function to build_warnings.
1018 * configure: Regenerate.
1019
1020 2010-01-19 Joel Brobecker <brobecker@adacore.com>
1021
1022 "delete" ada-lex.c:input function, not used.
1023 * ada-lex.l: #define YY_NO_INPUT.
1024
1025 2010-01-19 Joel Brobecker <brobecker@adacore.com>
1026
1027 Delete free_named_symtabs and associated cleanup.
1028 * symfile.h (free_named_symtabs): Delete declaration.
1029 * symfile.c: Remove some commented out code (clear_symtab_users_once).
1030 (cashier_psymtab): Comment function out.
1031 Delete declaration.
1032 (free_named_symtabs): Delete.
1033 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
1034 * dbxread.c (end_psymtab): Likewise.
1035 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
1036 * exec.c (exec_close_1): Ditto.
1037 * xcoffread.c (xcoff_end_psymtab): Likewise.
1038
1039 2010-01-19 Joel Brobecker <brobecker@adacore.com>
1040
1041 * stack.c (print_block_frame_labels): Comment function out.
1042
1043 2010-01-19 Joel Brobecker <brobecker@adacore.com>
1044
1045 Delete unused or undefined functions.
1046 * breakpoint.c (ep_parse_optional_filename): Delete.
1047 * dcache.c (dcache_write_line): Remove declaration.
1048 * infrun.c (build_infrun): Remove declaration.
1049 * tracepoint.c (tracepoint_save_command): Remove declaration.
1050 * linux-nat.c (init_lwp_list): Delete. No longer used.
1051 * event-loop.c (check_async_signal_handlers): Delete declaration.
1052 * infrun.c (init_execution_control_state): Delete.
1053 (proceed): Update comment to avoid mentioning
1054 init_execution_control_state.
1055 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
1056 * ada-lang.c (ada_to_static_fixed_value): Delete.
1057 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
1058 * cp-namespace.c (cp_copy_usings): Delete.
1059 * xml-syscall.c (xml_number_of_syscalls): Delete.
1060 * progspace.c (find_program_space_by_num): Delete.
1061 * inflow.c (handle_sigio): Delete declaration.
1062 * hppa-tdep.c (hppa_alignof): Delete.
1063 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
1064 (mipsnbsd_core_osabi_sniffer): Delete.
1065
1066 2010-01-18 Tom Tromey <tromey@redhat.com>
1067
1068 PR c++/9680:
1069 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
1070 (CONST_CAST): New tokens.
1071 (exp): Add new productions.
1072 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
1073 reinterpret_cast.
1074 (is_cast_operator): New function.
1075 (yylex): Handle cast operators specially.
1076 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
1077 UNOP_REINTERPRET_CAST>: New cases.
1078 * expprint.c (print_subexp_standard): Likewise.
1079 (op_name_standard): Likewise.
1080 (dump_subexp_body_standard): Likewise.
1081 * parse.c (operator_length_standard): Likewise.
1082 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
1083 UNOP_REINTERPRET_CAST.
1084 * gdbtypes.c (class_types_same_p): New function.
1085 (is_ancestor): Use it.
1086 (is_public_ancestor): New function.
1087 (is_unique_ancestor_worker): Likewise.
1088 (is_unique_ancestor): Likewise.
1089 * gdbtypes.h (class_types_same_p, is_public_ancestor)
1090 (is_unique_ancestor): Declare.
1091 * valops.c (value_reinterpret_cast): New function.
1092 (dynamic_cast_check_1): Likewise.
1093 (dynamic_cast_check_2): Likewise.
1094 (value_dynamic_cast): Likewise.
1095 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
1096
1097 2010-01-18 Joel Brobecker <brobecker@adacore.com>
1098
1099 Fix build failure when building without Python support.
1100 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
1101 is not defined.
1102
1103 2010-01-18 Joel Brobecker <brobecker@adacore.com>
1104
1105 Use XVS field type instead of doing a parallel lookup.
1106 * ada-lang.c (ada_get_base_type): Follow the XVS field type
1107 if it is a reference type instead of doing a type lookup using
1108 the XVS field name.
1109
1110 2010-01-18 Joel Brobecker <brobecker@adacore.com>
1111
1112 Trust PAD types instead of using PAD___XVS.
1113 * ada-lang.c (trust_pad_over_xvs): New static variable.
1114 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
1115 parallel XVS type, follow the XVS type instead of the PAD type.
1116 (unwrap_value): Make sure that there is no parallel XVE type
1117 before returning the value as is.
1118 (set_ada_list, show_ada_list): New static variables.
1119 (set_ada_command, show_ada_command): New functions.
1120 (_initialize_ada_language): Add new "set/show ada" prefix commands.
1121 Add new "set/show ada trust-PAD-over-XVS" setting.
1122
1123 2010-01-18 Tom Tromey <tromey@redhat.com>
1124 Thiago Jung Bauermann <bauerman@br.ibm.com>
1125
1126 Allow "source" to load python scripts.
1127 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
1128 * python/python.c (source_python_script): New function.
1129 * python/python.h (source_python_script): Add declaration.
1130 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
1131 (script_ext_off, script_ext_soft, script_ext_strict)
1132 (script_ext_enums, script_ext_mode): New static constants.
1133 (show_script_ext_mode, find_and_open_script): New functions.
1134 (source_script): Enhance to handle Python scripts.
1135 (init_cli_cmds): Add set/show script-extension commands.
1136
1137 2010-01-16 Stan Shebs <stan@codesourcery.com>
1138
1139 * tracepoint.h (struct trace_status): Use unsigned long long
1140 instead of size_t.
1141 * tracepoint.c (trace_status_command): Fix printf directive.
1142 (trace_save_command): Check fwrite returns, fix printf directive.
1143 (trace_filename): New global.
1144 (tfile_open): Set it, check read returns.
1145 (tfile_close): Free trace_filename.
1146 (tfile_get_traceframe_address): Check read returns.
1147 (tfile_trace_find): Ditto.
1148 (tfile_fetch_registers): Ditto.
1149 (tfile_xfer_partial): Ditto.
1150 (tfile_get_trace_state_variable_value): Ditto.
1151
1152 2010-01-15 Stan Shebs <stan@codesourcery.com>
1153
1154 Add trace file support.
1155 * tracepoint.h (enum trace_stop_reason): New enum.
1156 (struct trace_status): New struct.
1157 (parse_trace_status): Declare.
1158 (struct uploaded_tp): Move here from remote.c,
1159 add fields for actions.
1160 (struct uploaded_tsv): New struct.
1161 * tracepoint.c (tfile_ops): New target vector.
1162 (trace_fd): New global.
1163 (tfile_open): New function.
1164 (tfile_close): New function.
1165 (tfile_files_info): New function.
1166 (tfile_get_trace_status): New function.
1167 (tfile_get_traceframe_address): New function.
1168 (tfile_trace_find): New function.
1169 (tfile_fetch_registers): New function.
1170 (tfile_xfer_partial): New function.
1171 (tfile_get_trace_state_variable_value): New function.
1172 (init_tfile_ops): New function.
1173 (_initialize_tracepoint): Call it, add tfile target.
1174 (trace_status): New global.
1175 (current_trace_status): New function.
1176 (trace_running_p): Remove, change all users to get from
1177 current_trace_status()->running.
1178 (get_trace_status): Remove.
1179 (trace_status_command): Call target_get_trace_status directly,
1180 report more detail including tracing stop reasons.
1181 (trace_find_command): Always allow tfind on a file.
1182 (trace_find_pc_command): Ditto.
1183 (trace_find_tracepoint_command): Ditto.
1184 (trace_find_line_command): Ditto.
1185 (trace_find_range_command): Ditto.
1186 (trace_find_outside_command): Ditto.
1187 (trace_frames_offset, cur_offset): Declare as off_t.
1188 (trace_regblock_size): Rename from reg_size, update users.
1189 (parse_trace_status): New function.
1190 (tfile_interp_line): New function.
1191 (disconnect_or_stop_tracing): Ensure current trace
1192 status before asking what to do.
1193 (stop_reason_names): New global.
1194 (trace_save_command): New command.
1195 (get_uploaded_tp): Move here from remote.c.
1196 (find_matching_tracepoint): Ditto.
1197 (merge_uploaded_tracepoints): New function.
1198 (parse_trace_status): Use stop_reason_names.
1199 (_initialize_tracepoint): Define tsave command.
1200 * target.h (target_ops): New fields to_save_trace_data,
1201 to_upload_tracepoints, to_upload_trace_state_variables,
1202 to_get_raw_trace_data, change to_get_trace_status
1203 to take a pointer to a status struct.
1204 (target_save_trace_data): New macro.
1205 (target_upload_tracepoints): New macro.
1206 (target_upload_trace_state_variables): New macro.
1207 (target_get_raw_trace_data): New macro.
1208 * target.c (update_current_target): Add new methods, change
1209 signature of to_get_trace_status.
1210 * remote.c (hex2bin): Make globally visible.
1211 (bin2hex): Ditto.
1212 (remote_download_trace_state_variable): Download name also.
1213 (remote_get_trace_status): Update parameter, use
1214 parse_trace_status.
1215 (remote_save_trace_data): New function.
1216 (remote_upload_tracepoints): New function.
1217 (remote_upload_trace_state_variables): New function.
1218 (remote_get_raw_trace_data): New function.
1219 (remote_start_remote): Use them.
1220 (_initialize_remote_ops): Add operations.
1221 * ax-gdb.c: Include breakpoint.h.
1222 * breakpoint.c (create_tracepoint_from_upload): Use
1223 break_command_really, return tracepoint, warn about unimplemented
1224 parts.
1225 * NEWS: Mention trace file addition.
1226
1227 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1228
1229 Fix compilation warning on gcc-3.4.
1230 * exec.c (print_section_info): Move the `displacement' variable
1231 initialization to its declaration.
1232
1233 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1234
1235 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
1236 comparison.
1237
1238 2010-01-15 Eric Botcazou <botcazou@adacore.com>
1239
1240 "info tasks" broken by typedefs in ATCB type definitions.
1241 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
1242 ada_check_typedef before retrieving the length of the type for
1243 regular fields.
1244
1245 2010-01-15 Joel Brobecker <brobecker@adacore.com>
1246
1247 Do not use name-based lookup for unconstrained packed arrays.
1248 * ada-lang.c (find_parallel_type_by_descriptive_type):
1249 Limit the fallback to name-based lookups to the case where
1250 the type is a constrained packed array.
1251
1252 2010-01-15 Joel Brobecker <brobecker@adacore.com>
1253
1254 Enhance gdb-gdb.py to handle main_type.type_specific.
1255 * gdb-gdb.py: Print the type-specific part of struct main_type.
1256
1257 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1258
1259 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
1260 * configure: Regenerate.
1261 * config.in: Regenerate.
1262 * utils.c: Include sys/resource.h.
1263 (dump_core, can_dump_core): New.
1264 (internal_vproblem): Update the comment. Check can_dump_core while
1265 setting dump_core_p. Replace two abort calls by dump_core calls.
1266
1267 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1268 Eli Zaretskii <eliz@gnu.org>
1269
1270 * NEWS: Document the PIE support.
1271
1272 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1273
1274 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
1275 (check_is_pie_binary, _initialize_linux_tdep): Remove.
1276
1277 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1278
1279 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
1280 Replace exec_entry_point call by bfd_get_start_address.
1281
1282 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1283
1284 Support Valgrind attachments broken by the PIE support.
1285 * auxv.c: Include gdbcore.h.
1286 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
1287 parameters ops, object and annex. Remove their assertions.
1288 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
1289 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
1290 (memory_xfer_auxv): ... here.
1291 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
1292 memory_xfer_auxv.
1293 * procfs.c (procfs_xfer_partial): Likewise.
1294 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
1295 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
1296 (svr4_solib_create_inferior_hook): Conditionalize the
1297 svr4_relocate_main_executable call.
1298
1299 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1300
1301 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
1302 target_section. Find SECT in current_target_sections, gdb_assert it.
1303 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
1304 New variable abfd.
1305 * symtab.c (lookup_objfile_from_block): Return the binary file instead
1306 of separate debug info file.
1307
1308 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1309
1310 Support PIEs with no symfile_objfile.
1311 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
1312 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
1313
1314 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1315
1316 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
1317 code part to ...
1318 (svr4_static_exec_displacement): ... a new function.
1319 (svr4_exec_displacement): New function.
1320 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
1321 new_offsets using alloca now. Remove variable old_chain and changed.
1322 Call objfile_relocate unconditionally now.
1323
1324 2010-01-14 Doug Evans <dje@google.com>
1325
1326 * gdbtypes.c (arch_flags_type): Fix comment.
1327 * gdbtypes.h (arch_composite_type): Fix comment.
1328
1329 2009-01-14 Tristan Gingold <gingold@adacore.com>
1330
1331 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
1332 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
1333 to symbol_file_add_from_bfd. Add OSO as separate objfile.
1334 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
1335 macho_add_oso_symfile.
1336 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
1337
1338 2010-01-14 Joel Brobecker <brobecker@adacore.com>
1339
1340 Tru64: Dead threads are never deleted.
1341 * dec-thread.c (dec_thread_ptid_is_alive): New function.
1342 (dec_thread_count_gdb_threads): Fix counter increment.
1343 (dec_thread_add_gdb_thread): Fix *listp increment.
1344 (resync_thread_list): Fix bug in deletion of dead threads that
1345 caused all threads to be deleted, instead of just the dead ones.
1346
1347 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
1348
1349 PR python/10705
1350
1351 * python/python-internal.h: Add lazy_string_object_type
1352 definition.
1353 (create_lazy_string_object, gdbpy_initialize_lazy_string)
1354 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
1355 * python/py-value.c (valpy_lazy_string): New function.
1356 (convert_value_from_python): Add lazy string conversion.
1357 * python/py-prettyprint.c (pretty_print_one_value): Check if
1358 return is also a lazy string.
1359 (print_string_repr): Add lazy string printing branch.
1360 (print_children): Likewise.
1361 * python/py-lazy-string.c: New file. Implement lazy strings.
1362 * python/python.c (_initialize_python): Call
1363 gdbpy_initialize_lazy_string.
1364 * varobj.c (value_get_print_value): Add lazy string printing
1365 branch. Account for encoding.
1366 * c-lang.c (c_printstr): Account for new encoding argument. If
1367 encoding is NULL, find encoding suited for type, otherwise use
1368 user encoding.
1369 * language.h (language_defn): Add encoding argument.
1370 (LA_PRINT_STRING): Likewise.
1371 * language.c (unk_lang_printstr): Update to reflect new encoding
1372 argument to language_defn.
1373 * ada-lang.h (ada_printstr): Likewise.
1374 * c-lang.h (c_printstr): Likewise.
1375 * p-lang.h (pascal_printstr);
1376 * f-lang.c (f_printstr): Likewise.
1377 * m2-lang.c (m2_printstr): Likewise.
1378 * objc-lang.c (objc_printstr): Likewise.
1379 * p-lang.c (pascal_printstr): Likewise.
1380 * scm-lang.c (scm_printstr): Likewise.
1381 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
1382 encoding argument.
1383 * ada-valprint.c (ada_printstr): Likewise.
1384 * f-valprint.c (f_val_print): Likewise
1385 * m2-valprint.c (m2_val_print): Likewise.
1386 * p-valprint.c (pascal_val_print): Likewise.
1387 * expprint.c (print_subexp_standard): Likewise.
1388 * valprint.c (val_print_string): Likewise.
1389 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
1390 (SUBDIR_PYTHON_SRCS): Likewise.
1391 (py-lazy-string.o): New rule.
1392
1393 2010-01-13 Doug Evans <dje@google.com>
1394
1395 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
1396 uninitialized" warning from gcc on local `tree'.
1397
1398 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
1399
1400 Implement core awareness.
1401
1402 * bcache.c (compare_ints): Remove
1403 (print_percentage): Use compare_positive_ints.
1404 * defs.h (compare_positive_ints): Declare.
1405 * linux-nat.h (struct lin_lwp): New field core.
1406 (linux_nat_core_of_thread_1): Declare.
1407 * linux-nat.c (add_lwp): Init the 'core' field.
1408 (linux_nat_wait_1): Record the core.
1409 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
1410 (linux_nat_add_target): Register the above.
1411 * linux-thread-db.c (update_thread_core): New.
1412 (thread_db_find_new_threads): Update core information for
1413 every thread.
1414 * remote.c (struct private_thread_info): New.
1415 (free_private_thread_info, demand_private_info): New.
1416 (PACKET_qXfer_threads, use_osdata_threads): New.
1417 (struct thread_item, threads_parsing_context
1418 (start_thread, end_thread, thread_attributes)
1419 (thread_children, threads_children, threads_elements): New.
1420 (remote_threads_info): Try qXfer:threads before anything
1421 else.
1422 (remote_protocol_packets): Register qXfer:threads.
1423 (remote_open_1): Init use_osdata_threads.
1424 (struct stop_reply): New field 'core'.
1425 (remote_parse_stop_reply): Parse core number.
1426 (process_stop_reply): Record core number.
1427 (remote_xfer_partial): Handle qXfer:threads.
1428 (remote_core_of_thread): New.
1429 (init_remote_ops): Register remote_core_of_thread.
1430 (_initialize_remote): Register qXfer:read.
1431 * target.c (target_core_of_thread): New
1432 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
1433 (struct target_ops): New field to_core_of_threads.
1434 (target_core_of_thread): Declare.
1435 * gdbthread.h (struct thread_info): New field private_dtor.
1436 * thread.c (print_thread_info): Report the core.
1437 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
1438 * utils.c (compare_positive_ints): New.
1439 * features/threads.dtd: New.
1440 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
1441 * mi/mi-main.c (struct collect_cores_data, collect_cores)
1442 (do_nothing, free_vector_of_osdata_items)
1443 (splay_tree_int_comparator, free_splay_tree): New.
1444 (print_one_inferior_data): Implemented printing of selected
1445 inferiors. Collect and print cores.
1446 (output_cores): New.
1447 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
1448 thread groups together with --available.
1449
1450 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1451
1452 * configure: Regenerate (for _STRUCTURED_PROC).
1453
1454 2010-01-12 Joel Brobecker <brobecker@adacore.com>
1455
1456 Delete dead function.
1457 * ada-lang.c (extract_string): Delete. No longer used.
1458
1459 2010-01-12 Joel Brobecker <brobecker@adacore.com>
1460
1461 Fix -Wunused warning in dec-thread.c.
1462 * dec-thread.c (dec_thread_count_gdb_threads)
1463 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
1464
1465 2010-01-12 Joel Brobecker <brobecker@adacore.com>
1466
1467 * ada-valprint.c (ada_print_floating): Remove trailing space.
1468
1469 2010-01-12 Joel Brobecker <brobecker@adacore.com>
1470
1471 Add support for DW_AT_GNAT_descriptive_type.
1472 * gdbtypes.h (enum type_specific_kind): New enum.
1473 (struct main_type) [type_specific_field]: New component.
1474 [type_specific]: Add new component "gnat_stuff".
1475 (struct gnat_aux_type): New type.
1476 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
1477 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
1478 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
1479 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
1480 (TYPE_SPECIFIC_FIELD): New macros.
1481 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
1482 type does not hold any cplus-specific data.
1483 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
1484 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
1485 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
1486 cplus-specific data.
1487 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
1488 Set new component TYPE_SPECIFIC_FIELD (type).
1489 (gnat_aux_default): New constant.
1490 (allocate_gnat_aux_type): New function.
1491 (init_type): Add initialization the type-specific stuff for
1492 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
1493 (print_gnat_stuff): New function.
1494 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
1495 specific data. Adjust code that prints the contents of the
1496 type-specific union using the TYPE_SPECIFIC_FIELD value.
1497 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
1498 the type cplus stuff for Ada types.
1499 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
1500 Error out if these routines are called with an Ada type.
1501 (read_structure_type, read_array_type, read_subrange_type):
1502 Add call to set_descriptive_type.
1503 (set_die_type): Initialize the gnat-specific data if necessary.
1504 (need_gnat_info, die_descriptive_type, set_descriptive_type):
1505 New functions.
1506 * ada-lang.c (decode_constrained_packed_array_type): Use
1507 decode_constrained_packed_array_type instead of doing a standard
1508 lookup to locate a parallel type.
1509 (find_parallel_type_by_descriptive_type): New function.
1510 (ada_find_parallel_type_with_name): New function.
1511 (ada_find_parallel_type): Reimplement using
1512 ada_find_parallel_type_with_name.
1513 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
1514 to check if type has a cplus stuff.
1515 * linespec.c (total_number_of_methods): Likewise.
1516 * mdebugread.c (new_type): Likewise.
1517
1518 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1519
1520 * NEWS: Document the 0b binary number prefix parsing.
1521
1522 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1523
1524 * objfiles.c (objfile_relocate1): Change the return type to int.
1525 Describe the new return value. Return non-zero if data changed.
1526 (objfile_relocate): New variable changed. Set it. Call
1527 breakpoint_re_set depending on CHANGED.
1528
1529 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1530
1531 Implement binary numbers parsing.
1532 * c-exp.y (parse_number): New case 'b' and 'B'.
1533
1534 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1535 Tristan Gingold <gingold@adacore.com>
1536
1537 * solib.c (info_sharedlibrary_command): Replace
1538 objfile_has_partial_symbols and objfile_has_full_symbols calls by
1539 objfile_has_symbols.
1540
1541 2010-01-10 Joel Brobecker <brobecker@adacore.com>
1542
1543 * NEWS: Document the improvements made to the mips-irix port.
1544
1545 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1546
1547 Fix the documentation of valprint.c:value_print.
1548 * valprint.c (value_print): Update the function description to
1549 mention that the syntax of the output follows the current_language,
1550 not necessarily C.
1551
1552 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1553
1554 Fix displacement of separate debug info files.
1555 * objfiles.c (objfile_relocate): Rename to ...
1556 (objfile_relocate1): ... here and make it static. Extend the comment.
1557 (objfile_relocate): New function.
1558 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
1559 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
1560 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
1561 allocated using alloca.
1562 * symfile.c (copy_section_addr_info): Remove.
1563 (build_section_addr_info_from_objfile): Make it global. New variables
1564 addr_bit and mask, use them.
1565 * symfile.h (build_section_addr_info_from_objfile): New prototype.
1566 (copy_section_addr_info): Remove.
1567
1568 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1569
1570 Signal unwinder for mips-irix N32.
1571 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
1572 tramp-frame.h.
1573 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
1574 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
1575 (SIGCONTEXT_LO_OFF): New macros.
1576 (mips_irix_n32_tramp_frame_init): New function.
1577 (mips_irix_n32_tramp_frame): New static constant.
1578 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
1579
1580 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1581
1582 Breakpoint in shared library does not work on mips-irix.
1583 * procfs.c: #include "observer.h".
1584 (procfs_inferior_created): New function, moving here the code
1585 which unsets the syssgi syscall-exit notifications.
1586 (procfs_create_inferior): Remove the code which unsets the syssgi
1587 syscall-exit notifications. It is too early to do this here.
1588 (_initialize_procfs): Attach the procfs_inferior_created observer.
1589
1590 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1591
1592 Wrong return convention for arrays (mips-irix).
1593 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
1594 128 bits or smaller are returned the same way as structs
1595 and unions of the the same size.
1596
1597 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1598
1599 Cannot set the PC on mips-irix.
1600 * irix5-nat.c (fill_gregset): Check regno against the raw PC
1601 register number, no the cooked one.
1602
1603 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1604
1605 Error while loading core file on mips-irix.
1606 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
1607 if debugging from a core file.
1608
1609 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1610
1611 GDB hangs when attaching to process on mips-irix.
1612 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
1613 attaching to a process.
1614
1615 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1616
1617 Use the correct breakpoint instruction on mips-irix.
1618 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
1619 containing the correct breakpoint instruction to use on mips-irix.
1620 Use it when the osabi is GDB_OSABI_IRIX.
1621
1622 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1623
1624 -Wunused warning in procfs.c (mips-irix only).
1625 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
1626 throughout instead of using praddset and prdelset respectively.
1627
1628 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1629
1630 GDB crash while stepping into function.
1631 * infrun.c (handle_inferior_event): Refetch the current frame
1632 after handling what.main_action, in case that pointer became
1633 dangling.
1634
1635 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1636
1637 Fix build failure of solaris-hosted cross debuggers.
1638 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
1639
1640 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
1641
1642 Fix build failure on sparc-solaris.
1643 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
1644
1645 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1646
1647 Move some symfile code into subroutines.
1648 * symfile.h (relative_addr_info_to_section_offsets)
1649 (addr_info_make_relative): New prototypes.
1650 * symfile.c (default_symfile_offsets): Move a part to ...
1651 (relative_addr_info_to_section_offsets): ... this new function.
1652 (default_symfile_offsets): Call it.
1653 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
1654 this part to ...
1655 (addr_info_make_relative): ... this new function.
1656
1657 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1658
1659 Add from_tty to solib_create_inferior_hook.
1660 * infcmd.c (post_create_inferior): Move solib_add after
1661 solib_create_inferior_hook. Pass from_tty to
1662 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
1663 0 from_tty and comment why.
1664 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
1665 * linux-nat.c (linux_child_follow_fork): Likewise.
1666 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
1667 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
1668 from_tty.
1669 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
1670 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1671 * solib-null.c (null_solib_create_inferior_hook): Likewise.
1672 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1673 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
1674 * solib-som.c (som_solib_create_inferior_hook): Likewise.
1675 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
1676 Pass it to svr4_so_ops.solib_create_inferior_hook.
1677 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
1678 from_tty.
1679 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
1680 solib_add.
1681 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
1682 enable_break.
1683 * solib-target.c (solib_target_solib_create_inferior_hook): New
1684 parameter from_tty.
1685 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
1686 it to ops->solib_create_inferior_hook.
1687 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
1688 Move solib_add after solib_create_inferior_hook, call it now with
1689 from_tty as 0. New comment there.
1690 * solib.h (solib_create_inferior_hook): New parameter from_tty.
1691 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
1692 Likewise.
1693
1694 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
1695
1696 Fix multiexec race.
1697 * infrun.c (handle_inferior_event): Use get_thread_regcache
1698 with events ptid, not get_current_regcache.
1699
1700 2009-01-08 Joel Brobecker <brobecker@adacore.com>
1701
1702 GDB crash with empty executable name (MinGW).
1703 * source.c (openp): Add assert that parameter string is not NULL.
1704 if parameter string is an empty string, then return with a failure
1705 immediately.
1706
1707 2009-01-08 Joel Brobecker <brobecker@adacore.com>
1708
1709 Get rid of support for VAX Floats.
1710 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
1711 (ada_vax_float_print_function): Delete.
1712 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
1713 (ada_vax_float_print_function): Delete.
1714 * ada-typeprint.c (print_vax_floating_point_type): Delete.
1715 (ada_print_type): Remove support for VAX floats.
1716 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
1717
1718 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1719
1720 * stabsread.c (read_args): Handle zero arguments.
1721
1722 2009-01-08 Joel Brobecker <brobecker@adacore.com>
1723
1724 Cannot find in-tree libiconv.a after reconfigure.
1725 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
1726 that we can use, then cache the path to this archive.
1727 * configure: Regenerate.
1728
1729 2010-01-07 Stan Shebs <stan@codesourcery.com>
1730
1731 Make tracepoint operations go through target vector.
1732 * target.h (enum trace_find_type): New enum.
1733 (struct target_ops): New fields to_trace_init,
1734 to_download_tracepoint, to_download_trace_state_variable,
1735 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
1736 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
1737 to_set_disconnected_tracing.
1738 (target_trace_init): New macro.
1739 (target_download_tracepoint): New macro.
1740 (target_download_trace_state_variable): New macro.
1741 (target_trace_start): New macro.
1742 (target_trace_set_readonly_regions): New macro.
1743 (target_get_trace_status): New macro.
1744 (target_trace_stop): New macro.
1745 (target_trace_find): New macro.
1746 (target_get_trace_state_variable_value): New macro.
1747 (target_set_disconnected_tracing): New macro.
1748 * target.c (update_current_target): Inherit and set defaults for
1749 tracepoint operations.
1750 * tracepoint.c (default_collect): Make globally visible.
1751 (target_is_remote): Remove, along with all calls.
1752 (tvariables_info): Call target_get_trace_state_variable_value.
1753 (remote_set_transparent_ranges): Remove.
1754 (trace_start_command): Call target_trace_init,
1755 target_download_tracepoint, etc.
1756 (download_tracepoint): Remove.
1757 (trace_stop_command): Simplify.
1758 (stop_tracing): Call target_trace_stop.
1759 (get_trace_status): Call target_get_trace_status.
1760 (trace_status_command): Add case for targets that cannot trace.
1761 (finish_tfind_command): Change to take numerical arguments, call
1762 target_trace_find.
1763 (trace_find_command): Update call to finish_tfind_command.
1764 (trace_find_pc_command): Ditto.
1765 (trace_find_tracepoint_command): Ditto.
1766 (trace_find_line_command): Ditto.
1767 (trace_find_range_command): Ditto.
1768 (trace_find_outside_command): Ditto.
1769 (set_disconnected_tracing_value): Call
1770 target_set_disconnected_tracing.
1771 * remote.c: Add protocol encoding bits from tracepoint.c.
1772 (trace_error): Move from tracepoint.c.
1773 (remote_get_noisy_reply): Ditto.
1774 (free_actions_list_cleanup_wrapper): Ditto.
1775 (free_actions_list): Ditto.
1776 (remote_trace_init): New function.
1777 (remote_download_tracepoint): New function.
1778 (remote_download_trace_state_variable): New function.
1779 (remote_trace_set_readonly_regions): New function.
1780 (remote_trace_start): New function.
1781 (remote_get_trace_status): New function.
1782 (remote_trace_stop): New function.
1783 (remote_trace_find): New function.
1784 (remote_download_trace_state_variable): New function.
1785 (remote_set_disconnected_tracing): New function.
1786 (init_remote_ops): Add tracepoint operations.
1787
1788 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
1789
1790 2010-01-07 Tristan Gingold <gingold@adacore.com>
1791
1792 * symfile.c (build_section_addr_info_from_objfile): New function.
1793 (symbol_file_add_separate): Don't use offsets from objfile but
1794 built an addr info.
1795
1796 2010-01-06 Stan Shebs <stan@codesourcery.com>
1797
1798 Support disconnected tracing.
1799 * infcmd.c (detach_command): Ask whether to stop tracing.
1800 * cli/cli-cmds.c (quit_command): Ditto.
1801 * breakpoint.h (struct breakpoint): New field number_on_target.
1802 * breakpoint.c (create_tracepoint_from_upload): New function.
1803 (get_tracepoint_by_number_on_target): New function.
1804 * remote.c (struct remote): New field disconnected_tracing.
1805 (remote_disconnected_tracing_feature): New function.
1806 (remote_protocol_features): Add DisconnectedTracing.
1807 (struct uploaded_tp): New struct.
1808 (uploaded_tps): New global.
1809 (get_uploaded_tp): New function.
1810 (find_matching_tracepoint): New function.
1811 (remote_get_tracing_state): New function.
1812 (remote_start_remote): Call it.
1813 * tracepoint.c (disconnected_tracing): New global.
1814 (trace_start_command): Initialize number_on_target.
1815 (stop_tracing): New function, split out from...
1816 (trace_stop_command): Call stop_tracing.
1817 (get_trace_status): New function, split out from...
1818 (trace_status_command): Call get_trace_status, add info on
1819 disconnection behavior.
1820 (disconnect_or_stop_tracing): New function.
1821 (finish_tfind_command): Translate from number on target.
1822 (trace_find_tracepoint_command): Translate to number on target.
1823 (send_disconnected_tracing_value): New function.
1824 (set_disconnected_tracing): New function.
1825 (_initialize_tracepoint): Add disconnected-tracing variable.
1826 * NEWS: Mention disconnected tracing.
1827
1828 2010-01-06 Tristan Gingold <gingold@adacore.com>
1829
1830 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
1831 parameter to main_objfile. Iterate on all separate debug objfiles.
1832 * symfile.h (symbol_file_add_separate)
1833 (find_separate_debug_file_by_debuglink): Remove parameter names.
1834 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
1835 (reread_symbols): Use free_objfile_separate_debug.
1836 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
1837 Adjust comment.
1838 (objfile_separate_debug_iterate, add_separate_debug_objfile)
1839 (free_objfile_separate_debug): New prototypes.
1840 * objfiles.c (objfile_separate_debug_iterate): New function.
1841 (add_separate_debug_objfile, free_objfile_separate_debug): New
1842 functions.
1843 (free_objfile): Use free_objfile_separate_debug. Adjust for
1844 multiple separate debug objfile.
1845 (objfile_has_symbols): Adjust comment. Iterate on all separate
1846 debug objfiles.
1847 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
1848 debug objfile.
1849 (lookup_minimal_symbol_text): Ditto.
1850 (lookup_minimal_symbol_by_pc_name): Ditto.
1851 (lookup_minimal_symbol_solib_trampoline): Ditto.
1852 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
1853 debug objfiles.
1854
1855 2010-01-05 Stan Shebs <stan@codesourcery.com>
1856
1857 Add fast tracepoints.
1858 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
1859 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
1860 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
1861 * breakpoint.c (tracepoint_type): New function.
1862 (ALL_TRACEPOINTS): Use it.
1863 (should_be_inserted): Ditto.
1864 (bpstat_check_location): Ditto.
1865 (print_one_breakpoint_location): Ditto.
1866 (user_settable_breakpoint): Ditto.
1867 (set_breakpoint_location_function): Ditto.
1868 (disable_breakpoints_in_shlibs): Ditto.
1869 (delete_trace_command): Ditto.
1870 (print_it_typical): Add bp_fast_tracepoint case.
1871 (bpstat_what): Ditto.
1872 (print_one_breakpoint_location): Ditto.
1873 (allocate_bp_location): Ditto.
1874 (mention): Ditto.
1875 (breakpoint_re_set_one): Ditto.
1876 (disable_command): Ditto.
1877 (enable_command): Ditto.
1878 (check_fast_tracepoint_sals): New function.
1879 (break_command_really): Call it.
1880 (ftrace_command): New function.
1881 (_initialize_breakpoint): Add ftrace command.
1882 * gdbarch.sh (fast_tracepoint_valid_at): New.
1883 * gdbarch.h, gdbarch.c: Regenerate.
1884 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
1885 (i386_gdbarch_init): Use it.
1886 * remote.c (struct remote_state): New field fast_tracepoints.
1887 (PACKET_FastTracepoints): New packet config type.
1888 (remote_fast_tracepoint_feature): New function.
1889 (remote_protocol_features): Add FastTracepoints.
1890 (remote_supports_fast_tracepoints): New function.
1891 (_initialize_remote): Add FastTracepoints.
1892 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
1893 * NEWS: Mention fast tracepoints.
1894
1895 2010-01-06 Joel Brobecker <brobecker@adacore.com>
1896
1897 * gdb-gdb.py: New file.
1898
1899 2010-01-05 Michael Snyder <msnyder@vmware.com>
1900
1901 * infrun.c (handle_inferior_event): Fix typo in comment.
1902
1903 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1904
1905 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
1906
1907 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1908
1909 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
1910 and s390x-linux64.
1911 (s390-linux32-expedite): Define.
1912 (s390-linux64-expedite): Define.
1913 (s390x-linux64-expedite): Define.
1914 * features/s390-acr.xml: New file.
1915 * features/s390-fpr.xml: New file.
1916 * features/s390-core32.xml: New file.
1917 * features/s390-core64.xml: New file.
1918 * features/s390x-core64.xml: New file.
1919 * features/s390-linux32.xml: New file.
1920 * features/s390-linux64.xml: New file.
1921 * features/s390x-linux64.xml: New file.
1922 * features/s390-linux32.c: New generated file.
1923 * features/s390-linux64.c: New generated file.
1924 * features/s390x-linux64.c: New generated file.
1925
1926 * regformats/s390-linux32.dat: New generated file.
1927 * regformats/s390-linux64.dat: New generated file.
1928 * regformats/s390x-linux64.dat: New generated file.
1929 * regformats/reg-s390.dat: Remove.
1930 * regformats/reg-s390x.dat: Remove.
1931
1932 * s390-nat.c: Include "auxv.h" and <elf.h>.
1933 (HWCAP_S390_HIGH_GPRS): Define if undefined.
1934 (s390_target_wordsize): New function.
1935 (s390_auxv_parse): Likewise.
1936 (s390_get_hwcap): Likewise.
1937 (s390_read_description): Likewise.
1938 (_initialize_s390_nat): Install s390_auxv_parse and
1939 s390_read_description.
1940
1941 * s390-tdep.c: Include "features/s390-linux32.c",
1942 "features/s390-linux64.c", and "features/s390x-linux64.c".
1943 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
1944 (s390_register_call_saved): New function.
1945 (s390_register_name): Remove.
1946 (s390_register_type): Remove.
1947 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
1948 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
1949 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
1950 (s390_pseudo_register_name): New function.
1951 (s390_pseudo_register_type): New function.
1952 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
1953 Handle full GPR pesudos and varying pseudo register numbers.
1954 (s390_pseudo_register_write): Likewise
1955 (s390x_pseudo_register_read): Remove.
1956 (s390x_pseudo_register_write): Likewise.
1957 (s390_register_group): Remove.
1958 (s390_pseudo_register_group): New function.
1959 (s390_regmap_gregset): Add GPR upper halves.
1960 (s390x_regmap_gregset): Likewise.
1961 (s390_regmap_fpregset): Likewise.
1962 (s390_regmap_upper): New global variable.
1963 (s390_upper_regset): New global variable.
1964 (s390_upper_regset_sections): New global variable.
1965 (s390_regset_from_core_section): Handle GPR upper halves.
1966 (s390_core_read_description): New function.
1967 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
1968 register information. Handle varying pseudo register numbers.
1969 (s390_backchain_frame_unwind_cache): Likewise.
1970 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
1971 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
1972 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
1973 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
1974 Handle varying pseudo register numbers.
1975 (s390_unwind_pc): Handle varying pseudo register numbers.
1976 (s390_dwarf2_prev_register): New function.
1977 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
1978 register information. Handle varying pseudo register numbers.
1979 Install s390_dwarf2_prev_register to unwind full GPRs.
1980 (s390_gdbarch_init): Handle target descriptions. Assign varying
1981 pseudo register numbers. Install s390_adjust_frame_regnum.
1982 (_initialize_s390_tdep): Initialize target descriptions.
1983
1984 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
1985 (S390_NUM_REGS): Redefine to include upper half registers.
1986 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
1987 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
1988 (tdesc_s390_linux32): Add declaration.
1989 (tdesc_s390_linux64): Likewise.
1990 (tdesc_s390x_linux64): Likewise.
1991
1992 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1993
1994 * regset.h (struct core_regset_section): Add HUMAN_NAME.
1995 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
1996 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
1997 (ppc_linux_vmx_regset_sections): Likewise.
1998 (ppc_linux_fp_regset_sections): Likewise.
1999
2000 * corelow.c (get_core_register_section): Constify arguments.
2001 (get_core_registers): Use gdbarch_core_regset_sections instead
2002 of hard-coded platform-specific register section names.
2003
2004 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
2005
2006 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
2007 a register, assume the least-significant part is used.
2008 (write_pieced_value): Likewise.
2009
2010 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
2011
2012 * printcmd.c: Include "arch-utils.h".
2013 (do_one_display): Re-parse expression if current architecture changed.
2014
2015 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2016 Joel Brobecker <brobecker@adacore.com>
2017
2018 * gdbtypes.c (check_typedef): New comment on type length.
2019 * value.c (allocate_value_lazy): Remove the unused atype variable. New
2020 comment on type length.
2021 (value_primitive_field): Keep the original TYPE value, new comment.
2022
2023 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2024
2025 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
2026 p_start. Change != comparisons to > and < comparisons.
2027
2028 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2029
2030 * cli/cli-script.c (process_next_line): Check P2 overrun.
2031
2032 2009-01-01 Joel Brobecker <brobecker@adacore.com>
2033
2034 Update the copyright hearder to add year 2010 for most GDB files.
2035
2036 2009-01-01 Joel Brobecker <brobecker@adacore.com>
2037
2038 Fix build failure in inf-ptrace.c.
2039 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
2040
2041 2010-01-01 Joel Brobecker <brobecker@adacore.com>
2042
2043 * top.c (print_gdb_version): Update copyright year.
2044
2045 2010-01-01 Joel Brobecker <brobecker@adacore.com>
2046
2047 Fix break *FUN'address thread NUM.
2048 * ada-lex.l (task): Expand rule to also match the thread keyword.
2049
2050 2010-01-01 Joel Brobecker <brobecker@adacore.com>
2051
2052 Fix break *FUN'address task NUM.
2053 * ada-lex.l (task): New rule.
2054 * ada-lang.c (valid_task_id): Make sure the Ada task list has
2055 been built before using it.
2056
2057 For older changes see ChangeLog-2009.
2058 \f
2059 Local Variables:
2060 mode: change-log
2061 left-margin: 8
2062 fill-column: 74
2063 version-control: never
2064 coding: utf-8
2065 End: