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